[patch] Make gcc not pass -g to assembler when -g0 is specified
Michael Meissner
meissner@linux.vnet.ibm.com
Thu Jan 15 19:11:00 GMT 2009
On Thu, Jan 15, 2009 at 06:41:23PM +0100, Michael Matz wrote:
> Hi,
>
> we have a case where gcc is used as preprocessor/assembler combination
> (i.e. for an .S file), and -g0 is explicitely passed to make it not
> generate any debug information. Unfortunately in that situation gcc (the
> driver) still passes --gdwarf2 to GNU as, which was explicitely requested
> not to happen.
>
> This patch deactivates this if -g0 is seen in the command line in the same
> ways its already deactivated for *cpp_option.
>
> Bootstraping on x86 works, regtesting in progress. Okay if it passes?
Ok.
--
Michael Meissner, IBM
4 Technology Place Drive, MS 2203A, Westford, MA, 01886, USA
meissner@linux.vnet.ibm.com
More information about the Gcc-patches
mailing list