This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[AVR][4.3][4.2][4.1][patch] for PR 18553/29449
- From: "Anatoly Sokolov" <aesok at post dot ru>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 20 Nov 2006 21:08:29 +0300
- Subject: [AVR][4.3][4.2][4.1][patch] for PR 18553/29449
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