summaryrefslogtreecommitdiffstats
path: root/gcc/c-cppbuiltin.c
diff options
context:
space:
mode:
authordfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-26 07:43:17 +0000
committerdfranke <dfranke@138bc75d-0d04-0410-961f-82ee72b054a4>2008-05-26 07:43:17 +0000
commit3f798f0c641b57063d0a4a57385d217b83065b1e (patch)
tree66a238eacab02b1a5923cee6e6cb802056f67da8 /gcc/c-cppbuiltin.c
parent39aecd3b86c674ff92748a95bf5e823fbbf963ed (diff)
downloadppe42-gcc-3f798f0c641b57063d0a4a57385d217b83065b1e.tar.gz
ppe42-gcc-3f798f0c641b57063d0a4a57385d217b83065b1e.zip
2008-05-26 Daniel Franke <franke.daniel@gmail.com>
PR bootstrap/36331 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135892 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-cppbuiltin.c')
-rw-r--r--gcc/c-cppbuiltin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-cppbuiltin.c b/gcc/c-cppbuiltin.c
index 2f2033de537..63e5ad4e41b 100644
--- a/gcc/c-cppbuiltin.c
+++ b/gcc/c-cppbuiltin.c
@@ -384,6 +384,8 @@ define__GNUC__ (void)
cpp_define_formatted (parse_in, "__GNUC_MINOR__=%d", minor);
cpp_define_formatted (parse_in, "__GNUC_PATCHLEVEL__=%d", patchlevel);
+ if (c_dialect_cxx ())
+ cpp_define_formatted (parse_in, "__GNUG__=%d", major);
}
/* Define macros used by <stdint.h>. Currently only defines limits
OpenPOWER on IntegriCloud