Commit cface026 by Jeff Law

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
parent f8eb0365
...@@ -1814,11 +1814,14 @@ readonly_data () \ ...@@ -1814,11 +1814,14 @@ readonly_data () \
#define JUMP_TABLES_IN_TEXT_SECTION #define JUMP_TABLES_IN_TEXT_SECTION
/* This is how to output an element of a case-vector that is relative. /* This is how to output an element of a case-vector that is relative.
(The HP-PA does not use such vectors, This must be defined correctly as it is used when generating PIC code.
but we must define this macro anyway.) */
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) \ #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 /* This is how to output an assembler line
that says to advance the location counter that says to advance the location counter
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment