https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98591
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>: https://gcc.gnu.org/g:492b90f33dfb37576dc7ae424d67b2be8b959bf2 commit r11-6724-g492b90f33dfb37576dc7ae424d67b2be8b959bf2 Author: Nathan Sidwell <nat...@acm.org> Date: Fri Jan 15 08:48:54 2021 -0800 c++: Fix langspecs with -fsyntax-only [PR98591] -fsyntax-only is handled specially in the driver and causes it to add '-o /dev/null' (or a suitable OS-specific variant thereof). PCH is handled in the language driver. I'd not sufficiently protected the -fmodule-only action of adding a dummy assembler from the actions of -fsyntax-only, so we ended up with two -o options. PR c++/98591 gcc/cp/ * lang-specs.h: Fix handling of -fmodule-only with -fsyntax-only.