[U-Boot-Users] [PATCH 1/6] AVR32: Use -g instead of -gstabs in AFLAGS_DEBUG
Haavard Skinnemoen
hskinnemoen at atmel.com
Thu Oct 26 17:55:31 CEST 2006
On Wed, 25 Oct 2006 23:52:06 +0200
"Haavard Skinnemoen" <hskinnemoen at gmail.com> wrote:
> Indeed. I can send you a new patch tomorrow which simply removes
> -Wa,-g for all targets (the -g option should still be there.)
Hmmm...it turns out that avr32-gcc does in fact not pass on any
--gdwarf2 option to the assembler when using -g. Of course, if this is
only true for AVR32, we can fix this, but I'm a bit concerned that this
behaviour is arch-specific.
FWIW, here's a patch to remove the -Wa,-g option. If you decide to go
for it, I'll make sure the AVR32 toolchain gets fixed.
Haavard
---
From: Haavard Skinnemoen <hskinnemoen at atmel.com>
Subject: [PATCH] Don't pass any debug options directly to the assembler
When passing the -g option to gcc, gcc automatically selects a suitable
--g<format> option to pass on to the assembler. Thus, there's no point
in forcing a specific debug option on the assembler using the -Wa
mechanism.
Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
---
config.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/config.mk b/config.mk
index 46e956f..f65d3ca 100644
--- a/config.mk
+++ b/config.mk
@@ -169,7 +169,9 @@ CFLAGS := $(CPPFLAGS) -Wall -Wno-trigrap
endif
endif
-AFLAGS_DEBUG := -Wa,-g
+# $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
+# option to the assembler.
+AFLAGS_DEBUG :=
# turn jbsr into jsr for m68k
ifeq ($(ARCH),m68k)
--
1.4.1.1
More information about the U-Boot
mailing list