public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/53345] New: some OPT_Wformat is enabled by default
@ 2012-05-14 14:55 manu at gcc dot gnu.org
  2012-05-14 15:00 ` [Bug objc/53345] " manu at gcc dot gnu.org
  2012-05-14 15:02 ` manu at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-14 14:55 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53345
           Summary: some OPT_Wformat is enabled by default
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: manu@gcc.gnu.org


If a warning is controlled by warn_format, then it is disabled by default.
However, cl_options[OPT_Wformat] is initialized to -1 by optc-gen.awk, so
anything not checking warn_format is enabled by default. What a mess... :-(


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug objc/53345] some OPT_Wformat is enabled by default
  2012-05-14 14:55 [Bug objc/53345] New: some OPT_Wformat is enabled by default manu at gcc dot gnu.org
@ 2012-05-14 15:00 ` manu at gcc dot gnu.org
  2012-05-14 15:02 ` manu at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-14 15:00 UTC (permalink / raw)
  To: gcc-bugs

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joseph at codesourcery dot
                   |                            |com, mikestump at comcast
                   |                            |dot net

--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-14 14:55:04 UTC ---
This affects in particular the objc FE:

Executing on host: /home/manuel/test4/187442M/build/gcc/xgcc
-B/home/manuel/test4/187442M/build/gcc/
/home/manuel/test4/src/gcc/testsuite/gcc.dg/warn-nsstring.c 
-fno-diagnostics-show-caret    -ansi -pedantic-errors -S  -m32 -o
warn-nsstring.s    (timeout = 300)
FAIL: gcc.dg/warn-nsstring.c  (test for warnings, line 4)
FAIL: gcc.dg/warn-nsstring.c  (test for warnings, line 5)
PASS: gcc.dg/warn-nsstring.c (test for excess errors)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug objc/53345] some OPT_Wformat is enabled by default
  2012-05-14 14:55 [Bug objc/53345] New: some OPT_Wformat is enabled by default manu at gcc dot gnu.org
  2012-05-14 15:00 ` [Bug objc/53345] " manu at gcc dot gnu.org
@ 2012-05-14 15:02 ` manu at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: manu at gcc dot gnu.org @ 2012-05-14 15:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-05-14 15:00:32 UTC ---
A relatively simple fix is a new option OPT_Wformat_pedantic that is enabled by
default. Another option is to enable Wformat by default. That doesn't sound too
bad.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-14 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 14:55 [Bug objc/53345] New: some OPT_Wformat is enabled by default manu at gcc dot gnu.org
2012-05-14 15:00 ` [Bug objc/53345] " manu at gcc dot gnu.org
2012-05-14 15:02 ` manu at gcc dot gnu.org

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).