This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Purge JUMP_TABLES_IN_TEXT_SECTION from config/sparc
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 4 Dec 2006 10:33:13 +0100
- Subject: Purge JUMP_TABLES_IN_TEXT_SECTION from config/sparc
The SPARC back-end does place jump tables in text sections but uses its own
machinery to that effect. They was a couple of orphaned references in the
directory.
Applied to mainline.
2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/sp64-elf.h (JUMP_TABLES_IN_TEXT_SECTION): Delete.
* config/sparc/sysv4.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
--
Eric Botcazou
Index: config/sparc/sp64-elf.h
===================================================================
--- config/sparc/sp64-elf.h (revision 119153)
+++ config/sparc/sp64-elf.h (working copy)
@@ -108,11 +108,3 @@ crtbegin.o%s \
#undef LONG_DOUBLE_TYPE_SIZE
#define LONG_DOUBLE_TYPE_SIZE 128
-
-/* The medium/anywhere code model practically requires us to put jump tables
- in the text section as gcc is unable to distinguish LABEL_REF's of jump
- tables from other label refs (when we need to). */
-/* But we now defer the tables to the end of the function, so we make
- this 0 to not confuse the branch shortening code. */
-#undef JUMP_TABLES_IN_TEXT_SECTION
-#define JUMP_TABLES_IN_TEXT_SECTION 0
Index: config/sparc/sysv4.h
===================================================================
--- config/sparc/sysv4.h (revision 119153)
+++ config/sparc/sysv4.h (working copy)
@@ -48,13 +48,6 @@ Boston, MA 02110-1301, USA. */
#undef SKIP_ASM_OP
#undef SET_ASM_OP /* Has no equivalent. See ASM_OUTPUT_DEF below. */
-/* The native assembler can't compute differences between symbols in different
- sections when generating pic code, so we must put jump tables in the
- text section. */
-/* But we now defer the tables to the end of the function, so we make
- this 0 to not confuse the branch shortening code. */
-#define JUMP_TABLES_IN_TEXT_SECTION 0
-
/* Pass -K to the assembler when PIC. */
#undef ASM_SPEC
#define ASM_SPEC \