Bug 39147 - [4.4 Regression] Gcc accepts invalid options
Summary: [4.4 Regression] Gcc accepts invalid options
Status: RESOLVED DUPLICATE of bug 28322
Alias: None
Product: gcc
Classification: Unclassified
Component: driver (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: 4.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-10 17:26 UTC by H.J. Lu
Modified: 2009-02-10 18:01 UTC (History)
6 users (show)

See Also:
Host:
Target:
Build:
Known to work: 4.3.4
Known to fail: 4.4.0
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2009-02-10 17:26:56 UTC
Gcc accepts any -Wno-foobar, even if -Wfoobar doesn't exist:

[hjl@gnu-6 gcc]$ ./xgcc -B./ -Wno-foobar -S /tmp/x.c
[hjl@gnu-6 gcc]$ ./xgcc -B./ -Wfoobar -S /tmp/x.c
cc1: error: unrecognized command line option "-Wfoobar"
[hjl@gnu-6 gcc]$
Comment 1 Andrew Pinski 2009-02-10 17:32:59 UTC
I think this is by design.
Comment 2 H.J. Lu 2009-02-10 17:40:35 UTC
(In reply to comment #1)
> I think this is by design.
> 

It is different from gcc 4.3. Where is this feature documented?
Comment 3 Jakub Jelinek 2009-02-10 18:01:53 UTC

*** This bug has been marked as a duplicate of 28322 ***