This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Make gcc not pass -g to assembler when -g0 is specified
- From: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Jan 2009 13:50:31 -0500
- Subject: Re: [patch] Make gcc not pass -g to assembler when -g0 is specified
- References: <Pine.LNX.4.64.0901151837400.29566@wotan.suse.de>
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