public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tromey at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode Date: Tue, 13 May 2008 14:52:00 -0000 [thread overview] Message-ID: <20080513145115.551.qmail@sourceware.org> (raw) In-Reply-To: <bug-22168-638@http.gcc.gnu.org/bugzilla/> ------- Comment #17 from tromey at gcc dot gnu dot org 2008-05-13 14:51 ------- Subject: Bug 22168 Author: tromey Date: Tue May 13 14:50:27 2008 New Revision: 135264 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135264 Log: libcpp PR preprocessor/22168: * include/cpplib.h (struct cpp_options) <objc>: Update documentation. * expr.c (eval_token): Warn for use of assertions. * directives.c (directive_diagnostics): Warn about extensions. (DEPRECATED): New define. (DIRECTIVE_TABLE): Use it. gcc PR preprocessor/22168: * doc/cpp.texi (Top): Update menu. (Alternatives to Wrapper #ifndef): New node. (Other Directives): Document deprecation. (Obsolete Features): Remove menu. (Assertions): Merge node into Obsolete Features. (Obsolete once-only headers): Move earlier; rename to Alternatives to Wrapper #ifndef. * doc/cppopts.texi: Update. * c.opt (Wdeprecated): Enable for C and ObjC. * doc/invoke.texi (Option Summary): Move -Wno-deprecated. (C++ Dialect Options): Move -Wno-deprecated from here to... (Warning Options): ... here. gcc/testsuite PR preprocessor/22168: * gcc.dg/pch/import-2.hs: Add -Wno-deprecated. * gcc.dg/pch/import-1.hs: Add -Wno-deprecated. * gcc.dg/pch/import-2.c: Add -Wno-deprecated. * gcc.dg/pch/import-1.c: Add -Wno-deprecated. * gcc.dg/cpp/import2.c: Add -Wno-deprecated. * gcc.dg/cpp/import1.c: Add -Wno-deprecated. * gcc.dg/cpp/trad/assert3.c: Add -Wno-deprecated. * gcc.dg/cpp/trad/assert2.c: Add -Wno-deprecated. * gcc.dg/cpp/trad/assert1.c: Add -Wno-deprecated. * gcc.dg/cpp/ident.c: Add -Wno-deprecated. * gcc.dg/cpp/ident-1.c: Add -Wno-deprecated. * gcc.dg/cpp/extratokens.c: Add -Wno-deprecated. * gcc.dg/cpp/assert3.c: Add -Wno-deprecated. * gcc.dg/cpp/assert2.c: Add -Wno-deprecated. * gcc.dg/cpp/assert1.c: Add -Wno-deprecated. * gcc.dg/cpp/assert4.c: Compile with -ansi and not -pedantic. Add -Wno-deprecated. * gcc.dg/cpp/pr22168.c: New file. * gcc.dg/cpp/pr22168-2.c: New file. Added: trunk/gcc/testsuite/gcc.dg/cpp/pr22168-2.c trunk/gcc/testsuite/gcc.dg/cpp/pr22168.c Modified: trunk/gcc/ChangeLog trunk/gcc/c.opt trunk/gcc/doc/cpp.texi trunk/gcc/doc/cppopts.texi trunk/gcc/doc/invoke.texi trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/cpp/assert1.c trunk/gcc/testsuite/gcc.dg/cpp/assert2.c trunk/gcc/testsuite/gcc.dg/cpp/assert3.c trunk/gcc/testsuite/gcc.dg/cpp/assert4.c trunk/gcc/testsuite/gcc.dg/cpp/extratokens.c trunk/gcc/testsuite/gcc.dg/cpp/ident-1.c trunk/gcc/testsuite/gcc.dg/cpp/ident.c trunk/gcc/testsuite/gcc.dg/cpp/import1.c trunk/gcc/testsuite/gcc.dg/cpp/import2.c trunk/gcc/testsuite/gcc.dg/cpp/trad/assert1.c trunk/gcc/testsuite/gcc.dg/cpp/trad/assert2.c trunk/gcc/testsuite/gcc.dg/cpp/trad/assert3.c trunk/gcc/testsuite/gcc.dg/pch/import-1.c trunk/gcc/testsuite/gcc.dg/pch/import-1.hs trunk/gcc/testsuite/gcc.dg/pch/import-2.c trunk/gcc/testsuite/gcc.dg/pch/import-2.hs trunk/libcpp/ChangeLog trunk/libcpp/directives.c trunk/libcpp/expr.c trunk/libcpp/include/cpplib.h -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22168
next prev parent reply other threads:[~2008-05-13 14:52 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-22168-638@http.gcc.gnu.org/bugzilla/> 2006-12-29 2:54 ` tromey at gcc dot gnu dot org 2007-01-01 21:57 ` patchapp at dberlin dot org 2007-01-08 1:33 ` tromey at gcc dot gnu dot org 2007-05-21 8:54 ` manu at gcc dot gnu dot org 2008-02-26 20:49 ` tromey at gcc dot gnu dot org 2008-05-13 14:52 ` tromey at gcc dot gnu dot org [this message] 2008-05-13 15:22 ` tromey at gcc dot gnu dot org 2005-06-24 2:04 [Bug preprocessor/22168] New: #if #A == #B should have a diagnostic geoffk at gcc dot gnu dot org 2005-06-24 18:02 ` [Bug preprocessor/22168] #if #A == #B should have a diagnostic in ISO C mode geoffk at gcc dot gnu dot org 2005-06-24 22:24 ` neil at gcc dot gnu dot org 2005-06-24 22:26 ` pinskia at gcc dot gnu dot org 2005-06-24 22:41 ` schwab at suse dot de 2005-06-24 23:09 ` joseph at codesourcery dot com 2005-06-25 22:11 ` jsm28 at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20080513145115.551.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).