netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
authorKrister Walfridsson <cato@df.lth.se>
Tue, 16 Oct 2001 22:38:40 +0000 (00:38 +0200)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 16 Oct 2001 22:38:40 +0000 (15:38 -0700)
        * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
        (JUMP_TABLES_IN_TEXT_SECTION): Define.

From-SVN: r46298

gcc/ChangeLog
gcc/config/i386/netbsd-elf.h

index cbf0c5d07aec097b44a579fc65e2d6a49efb9008..92bd5db1d3f80f4b7a8bb1b1a54fadca3830d0e0 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-16  Krister Walfridsson  <cato@df.lth.se>
+       * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
+       (JUMP_TABLES_IN_TEXT_SECTION): Define.
+
 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
 
        * cfg.c (free_edge): Break out from ....
index e37b1c11c0206f95c6fd94e6e8c28fff417f9caa..48d8129163f5cf90bdc54360038e0f33e2e391fb 100644 (file)
@@ -168,6 +168,16 @@ Boston, MA 02111-1307, USA.  */
   }
 #endif
 
+/* This is how to output an element of a case-vector that is relative.
+   This is only used for PIC code.  */
+#undef ASM_OUTPUT_ADDR_DIFF_ELT
+#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
+  fprintf ((FILE), "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
+
+/* Indicate that jump tables go in the text section.  This is
+   necessary when compiling PIC code.  */
+#define JUMP_TABLES_IN_TEXT_SECTION (flag_pic)
+
 /*
  * We always use gas here, so we don't worry about ECOFF assembler problems.
  */