diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1992-12-04 19:13:25 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1992-12-04 19:13:25 -0500 |
commit | 09b6dfc1765a33579616ad48fca5a36d5a631a9e (patch) | |
tree | cdfc74875a10d306a03abe05bb49c7a8b57fa787 | |
parent | 4bdf6e3d08a603fcfc175c4b3376b6c7f41efa6f (diff) | |
download | gcc-09b6dfc1765a33579616ad48fca5a36d5a631a9e.zip gcc-09b6dfc1765a33579616ad48fca5a36d5a631a9e.tar.gz gcc-09b6dfc1765a33579616ad48fca5a36d5a631a9e.tar.bz2 |
(ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Copy
definitions from i386v4.h to get PIC code correct.
From-SVN: r2833
-rw-r--r-- | gcc/config/i386/386bsd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config/i386/386bsd.h b/gcc/config/i386/386bsd.h index 68b1096..067be38 100644 --- a/gcc/config/i386/386bsd.h +++ b/gcc/config/i386/386bsd.h @@ -129,3 +129,19 @@ \ return ret; \ } + +/* The following macros are stolen from i386v4.h */ +/* These have to be defined to get PIC code correct */ + +/* This is how to output an element of a case-vector that is relative. + This is only used for PIC code. See comments by the `casesi' insn in + i386.md for an explanation of the expression this outputs. */ + +#undef ASM_OUTPUT_ADDR_DIFF_ELT +#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, 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 |