* support/cpp2/cpphash.h, support/cpp2/cpplex.c,
authorborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 23 Dec 2006 19:52:42 +0000 (19:52 +0000)
committerborutr <borutr@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 23 Dec 2006 19:52:42 +0000 (19:52 +0000)
  support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
  preproc.c: an other try to fix bug #982435: introduced
  -pedantic-parse-number command line option and pedantic_parse_number
  pragma

git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4523 4a8a32a2-be11-0410-ad9d-d568d2c75423

ChangeLog
support/regression/tests/preproc.c

index de6c3a6e1378ee05fe1603f7ca9730e658b5dcc7..415324cd428c3b3ddf80ddb9f3907ff04a84b469 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,10 @@
 2006-12-23 Borut Razem <borut.razem AT siol.net>
 
        * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
-         support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx:
-         an other try to fix bug #982435: introduced -pedantic-parse-number
-         command line option and pedantic_parse_number pragma
+         support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
+         preproc.c: an other try to fix bug #982435: introduced
+         -pedantic-parse-number command line option and pedantic_parse_number
+         pragma
 
 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
 
@@ -34,7 +35,7 @@
 2006-12-20 Borut Razem <borut.razem AT siol.net>
 
        * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
-       * support/regression/tests/bug-1351710.c: renamed from bug-1351710.c,
+       * support/regression/tests/preproc.c: renamed from bug-1351710.c,
          added regression test for bug #982435
 
 2006-12-18 Borut Razem <borut.razem AT siol.net>
index 110a69f15ec99733162aef99e8d20f925aba143c..f83d9921d6eb8b3e2b4e22915951e00ee1010012 100644 (file)
@@ -30,7 +30,10 @@ return "A"
  */
 #if !defined (__GNUC__) && !defined (_MSC_VER)
 /* since this fails on GCC cpp and MSVC cl -E... */
+#pragma pedantic_parse_number +
+
 #define LO_B(x) ((x) & 0xff)
+#define BAD(x) ((x) & 0xff)
 
 unsigned char
 hexeminus(void)
@@ -39,6 +42,9 @@ unsigned char a=0x\
 fe\
 -\
 LO_B(3);
-return a;
+
+unsigned char b=0xfe-BAD(3);
+
+return (a + b);
 }
 #endif