OSDN Git Service

1999-02-09 10:30 -0500 Zack Weinberg <zack@rabi.columbia.edu>
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Feb 1999 07:31:59 +0000 (07:31 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 9 Feb 1999 07:31:59 +0000 (07:31 +0000)
* cpplib.c (do_define): Allow redefining __STDC__ with -D.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25109 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cpplib.c

index 4c92854..60d81ad 100644 (file)
@@ -1,3 +1,7 @@
+1999-02-09 10:30 -0500  Zack Weinberg  <zack@rabi.columbia.edu>
+
+       * cpplib.c (do_define): Allow redefining __STDC__ with -D.
+
 1999-02-09  Jim Blandy  <jimb@zwingli.cygnus.com>
 
        * configure.in: For PowerPC configurations, accept "401", "ec603e",
index 7904659..32b70e6 100644 (file)
@@ -1410,7 +1410,7 @@ do_define (pfile, keyword)
       else if (hp->type == T_MACRO)
        ok = ! compare_defs (pfile, mdef.defn, hp->value.defn);
       /* Redefining a constant is ok with -D.  */
-      else if (hp->type == T_CONST)
+      else if (hp->type == T_CONST || hp->type == T_STDC)
         ok = ! CPP_OPTIONS (pfile)->done_initializing;
       /* Print the warning if it's not ok.  */
       if (!ok)