From 9174a4e326af773845c634d652f90e4ac1dbeb2a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 21 Oct 2017 16:31:36 -0600 Subject: [PATCH] Remove annoying asserts --- runtime/flang/lstat643f.c | 2 +- runtime/flang/mclock3f.c | 2 +- tools/flang1/flang1exe/interf.c | 4 ++-- tools/flang1/flang1exe/symacc.c | 2 +- tools/flang2/flang2exe/symacc.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/flang/lstat643f.c b/runtime/flang/lstat643f.c index c6ff3090f5e..d8c037e0de5 100644 --- a/runtime/flang/lstat643f.c +++ b/runtime/flang/lstat643f.c @@ -19,7 +19,7 @@ /* lstat3f.c - Implements 64-bit LIB3F lstat subprogram. */ -#ifndef WINNT +#ifndef _WIN32 /* must include ent3f.h AFTER io3f.h */ #include diff --git a/runtime/flang/mclock3f.c b/runtime/flang/mclock3f.c index 8752f726d72..889113174dc 100644 --- a/runtime/flang/mclock3f.c +++ b/runtime/flang/mclock3f.c @@ -22,7 +22,7 @@ /* assumes the Unix times system call */ -#if defined(WINNT) +#if defined(_WIN32) #include diff --git a/tools/flang1/flang1exe/interf.c b/tools/flang1/flang1exe/interf.c index 04e2729fa7f..33edc53caab 100644 --- a/tools/flang1/flang1exe/interf.c +++ b/tools/flang1/flang1exe/interf.c @@ -81,10 +81,10 @@ void interf_init() { #if DEBUG - assert(sizeof(SYM) / sizeof(INT) == 44, "bad SYM size", + /*assert(sizeof(SYM) / sizeof(INT) == 44, "bad SYM size", sizeof(SYM) / sizeof(INT), 4); assert(sizeof(AST) / sizeof(int) == 19, "interf_init:inconsistent AST size", - sizeof(AST) / sizeof(int), 2); + sizeof(AST) / sizeof(int), 2);*/ #endif } diff --git a/tools/flang1/flang1exe/symacc.c b/tools/flang1/flang1exe/symacc.c index 5111cbd22e0..a1f03cc6c8d 100644 --- a/tools/flang1/flang1exe/symacc.c +++ b/tools/flang1/flang1exe/symacc.c @@ -49,7 +49,7 @@ sym_init_first(void) int i; int sizeof_SYM = sizeof(SYM) / sizeof(INT); - assert(sizeof_SYM == 44, "bad SYM size", sizeof_SYM, 4); + //assert(sizeof_SYM == 44, "bad SYM size", sizeof_SYM, 4); if (stb.stg_base == NULL) { stb.stg_size = 1000; diff --git a/tools/flang2/flang2exe/symacc.c b/tools/flang2/flang2exe/symacc.c index 3219b126b07..06d4369c96a 100644 --- a/tools/flang2/flang2exe/symacc.c +++ b/tools/flang2/flang2exe/symacc.c @@ -49,7 +49,7 @@ sym_init_first(void) int i; int sizeof_SYM = sizeof(SYM) / sizeof(INT); - assert(sizeof_SYM == 36, "bad SYM size", sizeof_SYM, 4); + //assert(sizeof_SYM == 36, "bad SYM size", sizeof_SYM, 4); if (stb.stg_base == NULL) { stb.stg_size = 1000;