netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.

* config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
        (JUMP_TABLES_IN_TEXT_SECTION): Define.

From-SVN: r46298
This commit is contained in:
Krister Walfridsson 2001-10-17 00:38:40 +02:00 committed by Richard Henderson
parent d39ac0fdc0
commit 087772344c
2 changed files with 15 additions and 0 deletions

View 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 ....

View 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.
*/