C++ conversion status update

Pedro Alves palves@redhat.com
Wed Dec 16 22:59:00 GMT 2015

On 12/16/2015 10:10 PM, Pedro Alves wrote:

> "When an unrecognized warning option is requested (e.g., -Wunknown-warning), GCC emits a
> diagnostic stating that the option is not recognized. However, if the -Wno- form is used, the
> behavior is slightly different: no diagnostic is produced for -Wno-unknown-warning unless other
> diagnostics are being produced. This allows the use of new -Wno- options with old
> compilers, but if something goes wrong, the compiler warns that an unrecognized
> option is present."
> I think we can handle this by making that warning-support test code
> check whether -Wfoo works when we actually want -Wno-foo.

Proposed fix posted at:


Pedro Alves

More information about the Gdb mailing list