This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] MIPS gas: Don't infer optimisation from debug option
- From: Thiemo Seufer <ths at networkno dot de>
- To: binutils at sourceware dot org
- Date: Tue, 18 Jul 2006 14:08:05 +0100
- Subject: [PATCH] MIPS gas: Don't infer optimisation from debug option
Hello All,
this patch stops MIPS gas from infering the optimisation level from
debug options.
Comments?
Thiemo
2006-07-18 Thiemo Seufer <ths@mips.com>
Nigel Stephens <nigel@mips.com>
* config/tc-mips.c (md_parse_option): Don't infer optimisation
options from debug options.
Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.348
diff -u -p -r1.348 tc-mips.c
--- gas/config/tc-mips.c 7 Jul 2006 23:17:55 -0000 1.348
+++ gas/config/tc-mips.c 17 Jul 2006 09:04:59 -0000
@@ -10993,11 +11010,6 @@ md_parse_option (int c, char *arg)
mips_debug = 2;
else
mips_debug = atoi (arg);
- /* When the MIPS assembler sees -g or -g2, it does not do
- optimizations which limit full symbolic debugging. We take
- that to be equivalent to -O0. */
- if (mips_debug == 2)
- mips_optimize = 1;
break;
case OPTION_MIPS1: