public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "manu at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/26494] -pedantic-errors can be overridden by -W*
Date: Thu, 15 Feb 2007 22:31:00 -0000	[thread overview]
Message-ID: <20070215223134.9167.qmail@sourceware.org> (raw)
In-Reply-To: <bug-26494-9631@http.gcc.gnu.org/bugzilla/>



------- Comment #9 from manu at gcc dot gnu dot org  2007-02-15 22:31 -------
Subject: Bug 26494

Author: manu
Date: Thu Feb 15 22:31:17 2007
New Revision: 122017

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122017
Log:
2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

        PR c/26494
        * doc/invoke.texi (Warning Options): Remove
        -Werror-implicit-function-declaration.
        (Wimplicit-function-declaration): Update description.
        * opts.c (common_handle_option): Move handling of -Werror=* to...
        (enable_warning_as_error): ...here.
        * opts.h (enable_warning_as_error): Declare.
        * c-decl.c (implicit_decl_warning): Unless
        -Wno-implicit-function-declaration is given, emit a pedwarn if
        -std=c99 or emit a warning if -Wimplicit-function-declaration.
        * c.opt (Wimplicit-function-declaration): Replace
        mesg_implicit_function_declaration with
        warn_implicit_function_declaration.
        * c-opts.c (c_common_handle_option):
        -Werror-implicit-function-declaration is exactly equal as
        -Werror=implicit-function-declaration.
        (set_Wimplicit): Replace mesg_implicit_function_declaration with
        warn_implicit_function_declaration.
        (c_common_post_options): -Wimplict-function-declaration is enabled
        by default by -std=c99, otherwise is disabled by default.
        * c-objc-common.c (c_objc_common_init): Remove flawed logic.
testsuite/
        * gcc.dg/Wimplicit-function-declaration-c89.c: New.
        * gcc.dg/Wimplicit-function-declaration-c89-default.c: New.
        * gcc.dg/Wimplicit-function-declaration-c89-pedantic.c: New.
        * gcc.dg/Wimplicit-function-declaration-c99.c: New.
        * gcc.dg/Wimplicit-function-declaration-c99-pedantic.c: New.
        * gcc.dg/Werror-implicit-function-declaration.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/Werror-implicit-function-declaration.c
    trunk/gcc/testsuite/gcc.dg/Wimplicit-function-declaration-c89-default.c
    trunk/gcc/testsuite/gcc.dg/Wimplicit-function-declaration-c89-pedantic.c
    trunk/gcc/testsuite/gcc.dg/Wimplicit-function-declaration-c89.c
    trunk/gcc/testsuite/gcc.dg/Wimplicit-function-declaration-c99-pedantic.c
    trunk/gcc/testsuite/gcc.dg/Wimplicit-function-declaration-c99.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/c-objc-common.c
    trunk/gcc/c-opts.c
    trunk/gcc/c.opt
    trunk/gcc/doc/invoke.texi
    trunk/gcc/opts.c
    trunk/gcc/opts.h
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26494


  parent reply	other threads:[~2007-02-15 22:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-28 11:35 [Bug c/26494] New: " fn_x at hotmail dot com
2006-02-28 13:11 ` [Bug c/26494] " pinskia at gcc dot gnu dot org
2007-01-22 23:48 ` manu at gcc dot gnu dot org
2007-01-23  0:05 ` truedfx at gentoo dot org
2007-01-23  0:08 ` truedfx at gentoo dot org
2007-01-23  0:10 ` manu at gcc dot gnu dot org
2007-01-23  0:23 ` truedfx at gentoo dot org
2007-01-24 19:10 ` patchapp at dberlin dot org
2007-01-25  9:55 ` patchapp at dberlin dot org
2007-02-15 22:31 ` manu at gcc dot gnu dot org [this message]
2007-02-15 22:34 ` manu 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=20070215223134.9167.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: link
Be 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).