[Bug objc/53345] some OPT_Wformat is enabled by default

2019-07-26 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53345

Eric Gallager  changed:

   What|Removed |Added

 CC||iains at gcc dot gnu.org

--- Comment #5 from Eric Gallager  ---
cc-ing Iain since this is specific to Objective C

[Bug objc/53345] some OPT_Wformat is enabled by default

2018-04-27 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53345

Eric Gallager  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=67479

--- Comment #4 from Eric Gallager  ---
(In reply to Manuel López-Ibáñez from comment #2)
> A relatively simple fix is a new option OPT_Wformat_pedantic that is enabled
> by default. 

That's bug 67479

[Bug objc/53345] some OPT_Wformat is enabled by default

2017-07-27 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53345

Eric Gallager  changed:

   What|Removed |Added

   Keywords||diagnostic
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-07-27
 CC||egallager at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Eric Gallager  ---
(In reply to Manuel López-Ibáñez from comment #1)
> 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)

I can't reproduce with that exact command, but I can if I force Objective-C:

$ /usr/local/bin/gcc -fno-diagnostics-show-caret-ansi -pedantic-errors -S 
-m32 -o warn-nsstring.s
/private/var/root/gcc-git/gcc/testsuite/gcc.dg/warn-nsstring.c 
$ /usr/local/bin/gcc -x objective-c -fno-diagnostics-show-caret -c -ansi
-pedantic-errors -S  -m32 -o warn-nsstring.s
/private/var/root/gcc-git/gcc/testsuite/gcc.dg/warn-nsstring.c 
/private/var/root/gcc-git/gcc/testsuite/gcc.dg/warn-nsstring.c:4:1: error:
format string argument is not a string type
/private/var/root/gcc-git/gcc/testsuite/gcc.dg/warn-nsstring.c:5:1: error:
format string argument is not a string type
$

So, confirmed since the 2nd command errors.

[Bug objc/53345] some OPT_Wformat is enabled by default

2012-05-14 Thread manu at gcc dot gnu.org
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)


[Bug objc/53345] some OPT_Wformat is enabled by default

2012-05-14 Thread manu at gcc dot gnu.org
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.