[Patch] for PR 28528: C language extensions override -x in C++ driver

Geoffrey Keating geoffk@apple.com
Thu Aug 24 19:46:00 GMT 2006

Danny Smith <dannysmith@clear.net.nz> writes:

> The problem is that g++ lang driver is failing to swallow the 'lang-arg'
> to "-x lang-arg" option in the case when it delimited by a space. This
> fixes by always check on what follows '-x' and setting 'quote' if
> appropriate. Also, we were emitting .gch files even when -fsyntax-only
> was specified. That is inconsistent with other usages of -fsyntax-only.
> OK? Bootstrapped and tested on i686-pc-mingw32 with no new regressions.
> :ADDPATCH driver:
> cp/ChangeLog
> 	PR driver/28528
> 	* g++spec.c (lang_specific_driver): Always check if we need to
> 	swallow a space-separated  arg to '-x'.
> 	*lang-specs.h:  Don't create ouput files for '-xc++-header'
> 	if -fsyntax-only.  

This is OK.


More information about the Gcc-patches mailing list