[PATCH] Fix bogus option suggestions for RejectNegative options (PR driver/71651)

Joseph Myers joseph@codesourcery.com
Wed Jun 29 22:33:00 GMT 2016


On Fri, 24 Jun 2016, David Malcolm wrote:

> PR driver/71651 identifies an issue where the driver can make
> nonsensical suggestions for options flagged as RejectNegative:
> 
>  $ gcc -fno-stack-protector-explicit
>  gcc: error: unrecognized command line option '-fno-stack-protector-explicit';
>  did you mean '-fno-stack-protector-explicit'?
> 
> where the driver erroneously suggests the same bogus option that was
> provided.
> 
> Fixed thusly.
> 
> Successfully bootstrapped&regretested on x86_64-pc-linux-gnu.
> 
> OK for trunk and gcc-6-branch?

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list