This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Make gcc not pass -g to assembler when -g0 is specified


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]