aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-07-30 12:53:17 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-07-30 12:53:17 -0400
commit260ced47a74fd7867dac1853f75f9a6837501869 (patch)
treedcf0166b2648f90ab8b25015302c6b1874775598 /gcc
parent3861b613802f54152f91c8113cd77bf391357eda (diff)
downloadgcc-260ced47a74fd7867dac1853f75f9a6837501869.zip
gcc-260ced47a74fd7867dac1853f75f9a6837501869.tar.gz
gcc-260ced47a74fd7867dac1853f75f9a6837501869.tar.bz2
(CASE_VECTOR_PC_RELATIVE): Define.
(ASM_OUTPUT_ADDR_VEC_ELT): Abort. (ASM_OUTPUT_ADDR_DIFF_ELT): Now what used to be previous definition. From-SVN: r7830
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/alpha/alpha.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h
index d5652c8..d9731a8 100644
--- a/gcc/config/alpha/alpha.h
+++ b/gcc/config/alpha/alpha.h
@@ -1278,8 +1278,11 @@ extern char *current_function_name;
/* Define this if the tablejump instruction expects the table
to contain offsets from the address of the table.
- Do not define this if the table should contain absolute addresses. */
-/* #define CASE_VECTOR_PC_RELATIVE */
+ Do not define this if the table should contain absolute addresses.
+ On the Alpha, the table is really GP-relative, not relative to the PC
+ of the table, but we pretend that it is PC-relative; this should be OK,
+ but we hsould try to find some better way sometime. */
+#define CASE_VECTOR_PC_RELATIVE
/* Specify the tree operation to be used to convert reals to integers. */
#define IMPLICIT_FIX_EXPR FIX_ROUND_EXPR
@@ -1711,15 +1714,15 @@ literal_section () \
#define ASM_OUTPUT_BYTE(FILE,VALUE) \
fprintf (FILE, "\t.byte 0x%x\n", (VALUE) & 0xff)
-/* This is how to output an element of a case-vector that is absolute. */
+/* This is how to output an element of a case-vector that is absolute.
+ (Alpha does not use such vectors, but we must define this macro anyway.) */
-#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) \
- fprintf (FILE, "\t.gprel32 $%d\n", (VALUE) + 32)
+#define ASM_OUTPUT_ADDR_VEC_ELT(FILE, VALUE) abort ()
-/* This is how to output an element of a case-vector that is relative.
- (Alpha does not use such vectors, but we must define this macro anyway.) */
+/* This is how to output an element of a case-vector that is relative. */
-#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) abort ()
+#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
+ fprintf (FILE, "\t.gprel32 $%d\n", (VALUE) + 32)
/* This is how to output an assembler line
that says to advance the location counter