diff options
author | Jeff Law <law@gcc.gnu.org> | 1994-03-16 10:01:27 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1994-03-16 10:01:27 -0700 |
commit | cface0264d1ae43cf4dded0a7d61614af6dcc05b (patch) | |
tree | 1dfb217a1cbeef5a6f4e8e9b61fa3f8f4158db45 | |
parent | f8eb03658ea5b282968f62e641d490f6de6a8540 (diff) | |
download | gcc-cface0264d1ae43cf4dded0a7d61614af6dcc05b.zip gcc-cface0264d1ae43cf4dded0a7d61614af6dcc05b.tar.gz gcc-cface0264d1ae43cf4dded0a7d61614af6dcc05b.tar.bz2 |
pa.h (ASM_OUTPUT_ADDR_DIFF_ELT): Rewrite to match ASM_OUTPUT_ADDR_VEC_ELT which is PIC-safe.
* pa.h (ASM_OUTPUT_ADDR_DIFF_ELT): Rewrite to match
ASM_OUTPUT_ADDR_VEC_ELT which is PIC-safe.
From-SVN: r6798
-rw-r--r-- | gcc/config/pa/pa.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index b3ed1a3..295dd66 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -1814,11 +1814,14 @@ readonly_data () \ #define JUMP_TABLES_IN_TEXT_SECTION /* This is how to output an element of a case-vector that is relative. - (The HP-PA does not use such vectors, - but we must define this macro anyway.) */ + This must be defined correctly as it is used when generating PIC code. + + I belive it safe to use the same definition as ASM_OUTPUT_ADDR_VEC_ELT + on the PA since ASM_OUTPUT_ADDR_VEC_ELT uses pc-relative jump instructions + rather than a table of absolute addresses. */ #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \ - fprintf (FILE, "\tword L%d-L%d\n", VALUE, REL) + fprintf (FILE, "\tb L$%04d\n\tnop\n", VALUE) /* This is how to output an assembler line that says to advance the location counter |