[AVR][4.3][4.2][4.1][patch] for PR 18553/29449
Anatoly Sokolov
aesok@post.ru
Mon Nov 20 18:11:00 GMT 2006
Hi.
The AVR target uses the ELF object format, but the preprocessor token
"OBJECT_FORMAT_ELF" not defined in "avr.h". Without the token, specifying
the valid "-ffunction-sections" compiler switch causes AVR-GCC to incorrectly
give the warning "-ffunction-sections may affect debugging on some targets".
Also, this patch define DWARF2_DEBUGGING_INFO for AVR target.
Applied to trunk, 4.2 and 4.1.
Anatoly.
2006-11-20 Anatoly Sokolov <aesok@post.ru>
PR target/18553
PR target/29449
* config/avr/avr.h (OBJECT_FORMAT_ELF): Define.
* config/avr/avr.h (DWARF2_DEBUGGING_INFO): Define.
Index: gcc/config/avr/avr.h
===================================================================
--- gcc/config/avr/avr.h (revision 119016)
+++ gcc/config/avr/avr.h (working copy)
@@ -918,3 +918,7 @@
#define CR_TAB "\n\t"
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+
+#define DWARF2_DEBUGGING_INFO 1
+
+#define OBJECT_FORMAT_ELF
More information about the Gcc-patches
mailing list