public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22511] New: cc1plus: error: unrecognized command line option "-Wno-pointer-sign"
@ 2005-07-16 14:23 eric dot valette at free dot fr
2005-07-16 14:32 ` [Bug other/22511] [3.4 Regression] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: eric dot valette at free dot fr @ 2005-07-16 14:23 UTC (permalink / raw)
To: gcc-bugs
Handling of -Wno-pointer-sign when used with g++ is not consistent with other C
specific warning option (at least -Wstrict-prototypes -Wdeclaration-after-statement)
May I suggest to also emit a warning instead of an error as many people use
CXXFLAGS= $(CFLAGS) + $(c++ specific options)
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid
for C/ObjC but not for C++
cc1plus: error: unrecognized command line option "-Wno-pointer-sign"
--
Summary: cc1plus: error: unrecognized command line option "-Wno-
pointer-sign"
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: eric dot valette at free dot fr
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22511
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug other/22511] [3.4 Regression] cc1plus: error: unrecognized command line option "-Wno-pointer-sign"
2005-07-16 14:23 [Bug c++/22511] New: cc1plus: error: unrecognized command line option "-Wno-pointer-sign" eric dot valette at free dot fr
@ 2005-07-16 14:32 ` pinskia at gcc dot gnu dot org
2005-07-16 15:03 ` eric dot valette at free dot fr
2005-08-31 13:29 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-16 14:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-16 14:23 -------
Confirmed. Only a 3.4 regression.
4.0.0 and 4.0.1 (and the mainline) produces:
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
3.0.4 produced no warning or error.
2.95.3 did not have "-Wpointer-sign" so we errored out when using "-Wno-pointer-sign".
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c++ |other
Ever Confirmed| |1
Keywords| |diagnostic
Known to fail| |3.4.0 3.3.3 3.2.3
Known to work| |4.0.0 4.1.0 4.0.1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-16 14:23:17
date| |
Summary|cc1plus: error: unrecognized|[3.4 Regression] cc1plus:
|command line option "-Wno- |error: unrecognized command
|pointer-sign" |line option "-Wno-pointer-
| |sign"
Target Milestone|--- |3.4.5
Version|4.0.1 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22511
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug other/22511] [3.4 Regression] cc1plus: error: unrecognized command line option "-Wno-pointer-sign"
2005-07-16 14:23 [Bug c++/22511] New: cc1plus: error: unrecognized command line option "-Wno-pointer-sign" eric dot valette at free dot fr
2005-07-16 14:32 ` [Bug other/22511] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2005-07-16 15:03 ` eric dot valette at free dot fr
2005-08-31 13:29 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: eric dot valette at free dot fr @ 2005-07-16 15:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From eric dot valette at free dot fr 2005-07-16 14:32 -------
Yes you are right g++ is :
g++ -v
Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.5/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4
--enable-shared --with-system-zlib --enable-nls --without-included-gettext
--program-suffix=-3.4 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --disable-werror i486-linux-gnu
Thread model: posix
gcc version 3.4.5 20050706 (prerelease) (Debian 3.4.4-5)
Thanks for you quick response
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22511
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug other/22511] [3.4 Regression] cc1plus: error: unrecognized command line option "-Wno-pointer-sign"
2005-07-16 14:23 [Bug c++/22511] New: cc1plus: error: unrecognized command line option "-Wno-pointer-sign" eric dot valette at free dot fr
2005-07-16 14:32 ` [Bug other/22511] [3.4 Regression] " pinskia at gcc dot gnu dot org
2005-07-16 15:03 ` eric dot valette at free dot fr
@ 2005-08-31 13:29 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-08-31 13:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rguenth at gcc dot gnu dot org 2005-08-31 13:25 -------
3.4 does not contain such option at all. I wonder in what way 3.0.4 was
special in this regard ;)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22511
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-08-31 13:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-16 14:23 [Bug c++/22511] New: cc1plus: error: unrecognized command line option "-Wno-pointer-sign" eric dot valette at free dot fr
2005-07-16 14:32 ` [Bug other/22511] [3.4 Regression] " pinskia at gcc dot gnu dot org
2005-07-16 15:03 ` eric dot valette at free dot fr
2005-08-31 13:29 ` rguenth at gcc dot gnu dot 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).