From 3f798f0c641b57063d0a4a57385d217b83065b1e Mon Sep 17 00:00:00 2001 From: dfranke Date: Mon, 26 May 2008 07:43:17 +0000 Subject: 2008-05-26 Daniel Franke 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 --- gcc/c-cppbuiltin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/c-cppbuiltin.c') 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 -- cgit v1.2.1