[PATCH] Error on invalid options in -### mode

Rafael Espíndola rafael.espindola at gmail.com
Wed Dec 4 11:02:19 PST 2013


On 4 December 2013 13:38, Reid Kleckner <rnk at google.com> wrote:
>
>   Why should we change this?  It's inconsistent with gcc:
>
>     $ gcc -### -asdf |& grep 'error:' ; echo $?
>     gcc: error: unrecognized option ‘-asdf’
>     0

Oh, I am undecided now.

The issue that got me started on this patch is that it is easy to
write broken tests. Notice test/Driver/gfortran.f90 for example. It
would fail if -### was removed, which doesn't seem to be the intent of
the test.

Cheers,
Rafael




More information about the cfe-commits mailing list