summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-02 01:04:22 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-02 01:04:22 +0000
commit417eae69747e6171adb932960d3a6c6bd2c3b3df (patch)
tree866afeb63f0ca9af344fd08604df26b6fc92be42 /gcc
parent66eb9e7effb32fd1fe991395f3defa18eeb3c56b (diff)
downloadgcc-417eae69747e6171adb932960d3a6c6bd2c3b3df.tar.gz
Make -fdata-sections work for AVR port.
PR target/14064 * config/avr/avr.c (avr_unique_section): Delete prototype and definition. (TARGET_ASM_UNIQUE_SECTION): Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/avr/avr.c35
2 files changed, 7 insertions, 35 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6ecbd2fb93c..5d1334aa942 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2004-09-01 James E Wilson <wilson@specifixinc.com>
+
+ PR target/14064
+ * config/avr/avr.c (avr_unique_section): Delete prototype and
+ definition.
+ (TARGET_ASM_UNIQUE_SECTION): Delete.
+
2004-09-01 Ziemowit Laski <zlaski@apple.com>
* c-parse.in (primary): Call objc_build_message_expr(),
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 509980559c4..d080b8d1840 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -68,7 +68,6 @@ static void avr_file_start (void);
static void avr_file_end (void);
static void avr_output_function_prologue (FILE *, HOST_WIDE_INT);
static void avr_output_function_epilogue (FILE *, HOST_WIDE_INT);
-static void avr_unique_section (tree, int);
static void avr_insert_attributes (tree, tree *);
static unsigned int avr_section_type_flags (tree, const char *, int);
@@ -231,8 +230,6 @@ int avr_case_values_threshold = 30000;
#define TARGET_ASM_FUNCTION_EPILOGUE avr_output_function_epilogue
#undef TARGET_ATTRIBUTE_TABLE
#define TARGET_ATTRIBUTE_TABLE avr_attribute_table
-#undef TARGET_ASM_UNIQUE_SECTION
-#define TARGET_ASM_UNIQUE_SECTION avr_unique_section
#undef TARGET_ASM_FUNCTION_RODATA_SECTION
#define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
#undef TARGET_INSERT_ATTRIBUTES
@@ -4356,38 +4353,6 @@ avr_assemble_integer (rtx x, unsigned int size, int aligned_p)
return default_assemble_integer (x, size, aligned_p);
}
-/* Sets section name for declaration DECL. */
-
-static void
-avr_unique_section (tree decl, int reloc ATTRIBUTE_UNUSED)
-{
- int len;
- const char *name, *prefix;
- char *string;
-
- name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl));
- name = (* targetm.strip_name_encoding) (name);
-
- if (TREE_CODE (decl) == FUNCTION_DECL)
- {
- if (flag_function_sections)
- prefix = ".text.";
- else
- prefix = ".text";
- }
- else
- abort ();
-
- if (flag_function_sections)
- {
- len = strlen (name) + strlen (prefix);
- string = alloca (len + 1);
- sprintf (string, "%s%s", prefix, name);
- DECL_SECTION_NAME (decl) = build_string (len, string);
- }
-}
-
-
/* The routine used to output NUL terminated strings. We use a special
version of this for most svr4 targets because doing so makes the
generated assembly code more compact (and thus faster to assemble)