From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6783 invoked by alias); 31 Jul 2009 13:57:32 -0000 Received: (qmail 6743 invoked by uid 48); 31 Jul 2009 13:57:18 -0000 Date: Fri, 31 Jul 2009 13:57:00 -0000 Message-ID: <20090731135718.6742.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/448] -related issues (C99 issues) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "paolo dot carlini at oracle dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg02543.txt.bz2 ------- Comment #25 from paolo dot carlini at oracle dot com 2009-07-31 13:57 ------- Something like this should be enough, barring objections, I'll polish it, add a testcase and submit it. Index: c-cppbuiltin.c =================================================================== --- c-cppbuiltin.c (revision 150315) +++ c-cppbuiltin.c (working copy) @@ -561,7 +561,15 @@ if (flag_rtti) cpp_define (pfile, "__GXX_RTTI"); if (cxx_dialect == cxx0x) - cpp_define (pfile, "__GXX_EXPERIMENTAL_CXX0X__"); + { + cpp_define (pfile, "__GXX_EXPERIMENTAL_CXX0X__"); + /* Note that this is a temporary solution: eventually the + and headers will have to know about + C++0x mode and provide the macros unconditionally. */ + cpp_define (pfile, "__STDC_LIMIT_MACROS"); + cpp_define (pfile, "__STDC_CONSTANT_MACROS"); + cpp_define (pfile, "__STDC_FORMAT_MACROS"); + } } /* Note that we define this for C as well, so that we know if __attribute__((cleanup)) will interface with EH. */ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=448