This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD does not list all defined macros (in particular, __STDC__)
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2006 21:51:13 -0000
- Subject: [Bug preprocessor/25717] [3.4/4.0/4.1/4.2 Regression] -dD does not list all defined macros (in particular, __STDC__)
- References: <bug-25717-11985@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from jakub at gcc dot gnu dot org 2006-01-23 21:51 -------
Subject: Bug 25717
Author: jakub
Date: Mon Jan 23 21:51:10 2006
New Revision: 110145
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110145
Log:
PR preprocessor/25717
* init.c (cpp_init_builtins): If __STDC__ will not change value
between system headers and other sources, define it as a normal
macro rather than a builtin.
* macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check
cpp_in_system_header condition.
Modified:
branches/gcc-4_1-branch/libcpp/ChangeLog
branches/gcc-4_1-branch/libcpp/init.c
branches/gcc-4_1-branch/libcpp/macro.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25717