changeset 214:963664f4ed8f

[project @ 2002-12-08 14:37:00 by bellard] fixes for buggy GCC compilers
author bellard
date Sun, 08 Dec 2002 14:37:00 +0000
parents e82d6bc5f24d
children 57616c10f44b
files tcctest.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tcctest.c	Sun Dec 08 14:36:36 2002 +0000
+++ b/tcctest.c	Sun Dec 08 14:37:00 2002 +0000
@@ -10,6 +10,9 @@
 
 #define C99_MACROS
 
+/* gcc 2.95.3 does not handle correctly CR in strings or after strays */
+//#define CORRECT_CR_HANDLING
+
 /* test various include syntaxes */
 
 #define TCCLIB_INC <tcclib.h>
@@ -23,7 +26,8 @@
 
 #include TCCLIB_INC1.h>
 
-#include TCCLIB_INC3 ".h"
+/* gcc 3.2 does not accept that (bug ?) */
+//#include TCCLIB_INC3 ".h"
 
 #include <tcclib.h>
 
@@ -1573,17 +1577,22 @@
 ntf("whitspace:\n");
 #endif
     pf("N=%d\n", 2);
+
+#ifdef CORRECT_CR_HANDLING
     pri\
 ntf("aaa=%d\n", 3);
+#endif
 
     pri\
 \
 ntf("min=%d\n", 4);
     printf("len1=%d\n", strlen("
 "));
+#ifdef CORRECT_CR_HANDLING
     str = "
 ";
     printf("len1=%d str[0]=%d\n", strlen(str), str[0]);
+#endif
     printf("len1=%d\n", strlen("
a
 "));
 }