aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2006-08-25 16:13:54 +0000
committerBob Wilson <bwilson@gcc.gnu.org>2006-08-25 16:13:54 +0000
commit9eb8a531c0127cff8323c43fc9b148e585cd9288 (patch)
tree8b5b8faa37256845dd613ea224abcc08250d5f55
parent7849b3de894a9e76cff084f4cd58c28c722b8713 (diff)
downloadgcc-9eb8a531c0127cff8323c43fc9b148e585cd9288.zip
gcc-9eb8a531c0127cff8323c43fc9b148e585cd9288.tar.gz
gcc-9eb8a531c0127cff8323c43fc9b148e585cd9288.tar.bz2
xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a literal_prefix directive.
* config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a literal_prefix directive. (XTENSA_DECLARE_FUNCTION_SIZE): Delete. * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete. * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete. From-SVN: r116403
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config/xtensa/elf.h13
-rw-r--r--gcc/config/xtensa/linux.h13
-rw-r--r--gcc/config/xtensa/xtensa.h22
4 files changed, 10 insertions, 46 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fcb447c..c228c3c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2006-08-25 Bob Wilson <bob.wilson@acm.org>
+
+ * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Do not emit a
+ literal_prefix directive.
+ (XTENSA_DECLARE_FUNCTION_SIZE): Delete.
+ * config/xtensa/linux.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
+ * config/xtensa/elf.h (ASM_DECLARE_FUNCTION_SIZE): Delete.
+
2006-08-25 David Edelsohn <edelsohn@gnu.org>
PR target/28753
diff --git a/gcc/config/xtensa/elf.h b/gcc/config/xtensa/elf.h
index 306c57c..34cf379 100644
--- a/gcc/config/xtensa/elf.h
+++ b/gcc/config/xtensa/elf.h
@@ -80,19 +80,6 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
/* Do not force "-fpic" for this target. */
#define XTENSA_ALWAYS_PIC 0
-/* Redefine the standard ELF version of ASM_DECLARE_FUNCTION_SIZE to
- allow adding the ".end literal_prefix" directive at the end of the
- function. */
-#undef ASM_DECLARE_FUNCTION_SIZE
-#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \
- do \
- { \
- if (!flag_inhibit_size_directive) \
- ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME); \
- XTENSA_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL); \
- } \
- while (0)
-
/* Search for headers in $tooldir/arch/include and for libraries and
startfiles in $tooldir/arch/lib. */
#define GCC_DRIVER_HOST_INITIALIZATION \
diff --git a/gcc/config/xtensa/linux.h b/gcc/config/xtensa/linux.h
index 0a64a1e..71f6fc6 100644
--- a/gcc/config/xtensa/linux.h
+++ b/gcc/config/xtensa/linux.h
@@ -60,16 +60,3 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
/* Always enable "-fpic" for Xtensa Linux. */
#define XTENSA_ALWAYS_PIC 1
-
-/* Redefine the standard ELF version of ASM_DECLARE_FUNCTION_SIZE to
- allow adding the ".end literal_prefix" directive at the end of the
- function. */
-#undef ASM_DECLARE_FUNCTION_SIZE
-#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \
- do \
- { \
- if (!flag_inhibit_size_directive) \
- ASM_OUTPUT_MEASURED_SIZE (FILE, FNAME); \
- XTENSA_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL); \
- } \
- while (0)
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h
index e541e2a..c290a38 100644
--- a/gcc/config/xtensa/xtensa.h
+++ b/gcc/config/xtensa/xtensa.h
@@ -1193,36 +1193,18 @@ typedef struct xtensa_args
#define BSS_SECTION_ASM_OP "\t.section\t.bss"
-/* Define output to appear before the constant pool. If the function
- has been assigned to a specific ELF section, or if it goes into a
- unique section, set the name of that section to be the literal
- prefix. */
+/* Define output to appear before the constant pool. */
#define ASM_OUTPUT_POOL_PROLOGUE(FILE, FUNNAME, FUNDECL, SIZE) \
do { \
- tree fnsection; \
- resolve_unique_section ((FUNDECL), 0, flag_function_sections); \
- fnsection = DECL_SECTION_NAME (FUNDECL); \
- if (fnsection != NULL_TREE) \
- { \
- const char *fnsectname = TREE_STRING_POINTER (fnsection); \
- fprintf (FILE, "\t.begin\tliteral_prefix %s\n", \
- strcmp (fnsectname, ".text") ? fnsectname : ""); \
- } \
if ((SIZE) > 0) \
{ \
+ resolve_unique_section ((FUNDECL), 0, flag_function_sections); \
switch_to_section (function_section (FUNDECL)); \
fprintf (FILE, "\t.literal_position\n"); \
} \
} while (0)
-/* Define code to write out the ".end literal_prefix" directive for a
- function in a special section. This is appended to the standard ELF
- code for ASM_DECLARE_FUNCTION_SIZE. */
-#define XTENSA_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL) \
- if (DECL_SECTION_NAME (DECL) != NULL_TREE) \
- fprintf (FILE, "\t.end\tliteral_prefix\n")
-
/* A C statement (with or without semicolon) to output a constant in
the constant pool, if it needs special treatment. */
#define ASM_OUTPUT_SPECIAL_POOL_ENTRY(FILE, X, MODE, ALIGN, LABELNO, JUMPTO) \