c++: Fix langspecs with -fsyntax-only [PR98591]

Nathan Sidwell nathan@acm.org
Fri Jan 15 16:53:33 GMT 2021


-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.	

-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr98591.diff
Type: text/x-patch
Size: 3856 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210115/08dc8a39/attachment.bin>


More information about the Gcc-patches mailing list