From: Daniel Franke Date: Mon, 26 May 2008 07:43:17 +0000 (-0400) Subject: re PR bootstrap/36331 (Gcc failed to bootstrap) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25497730f69beb06d1a4055f18c1ace3c6898c6c;p=gcc.git re PR bootstrap/36331 (Gcc failed to bootstrap) 2008-05-26 Daniel Franke PR bootstrap/36331 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__. From-SVN: r135892 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e2a40d5ef7..4e68ae5619e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-26 Daniel Franke + + PR bootstrap/36331 + * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__. + 2008-05-26 Dominique Dhumieres * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h". 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 . Currently only defines limits