https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84391
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is the correct behavior; the driver itself has option checking. If you want a custom option, you need to either use directly the -specs option which disables option checking or add the .opt file inside GCC to say the option is a driver only option. GCC will either use its internal specs or use the file called specs for the specs but that does not disable option checking.