This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Remove commented-out/useless definitions ofCASE_VECTOR_PC_RELATIVE.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 07 Feb 2004 00:06:59 -0500 (EST)
- Subject: [patch] Remove commented-out/useless definitions ofCASE_VECTOR_PC_RELATIVE.
Hi,
Attached is a patch to remove commented-out/useless definitions of
CASE_VECTOR_PC_RELATIVE to make the future hookization easy.
arc has a target-specific comment, but AFAIK nobody is talking about
implementing PIC on arc, at least on the GCC mailing list.
frv has a default definition because CASE_VECTOR_PC_RELATIVE is 0 by
default and is automatically turned on when flag_pic != 0.
iq2000 wants to be explicit but there is no target-specific comment.
m32r has the same target-specific comment as in arc, but this is just
a cut-n-paste. Since Kazuhiro Inaoka recently implemented PIC
support, the comment reflects the current situation.
The rest of the patch simply removes commented-out definitions.
I didn't touch mmix because it has a meaningful target-specific
comment.
Built cc1 of frv-elf and iq2000-elf. OK to apply?
Kazu Hirata
2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
* config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
config/iq2000/iq2000.h, config/m32r/m32r.h,
config/pdp11/pdp11.h, config/sparc/sparc.h,
config/xtensa/xtensa.h: Remove commented-out or useless
definitions of CASE_PC_RELATIVE.
Index: arc/arc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arc/arc.h,v
retrieving revision 1.72
diff -u -r1.72 arc.h
--- arc/arc.h 6 Feb 2004 06:18:22 -0000 1.72
+++ arc/arc.h 7 Feb 2004 04:39:52 -0000
@@ -1186,15 +1186,6 @@
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE Pmode
-/* Define as C expression which evaluates to nonzero 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. */
-/* It's not clear what PIC will look like or whether we want to use -fpic
- for the embedded form currently being talked about. For now require -fpic
- to get pc relative switch tables. */
-/*#define CASE_VECTOR_PC_RELATIVE 1 */
-
/* Define if operations between registers always perform the operation
on the full register even if a narrower mode is specified. */
#define WORD_REGISTER_OPERATIONS
Index: arm/arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.221
diff -u -r1.221 arm.h
--- arm/arm.h 6 Feb 2004 06:18:22 -0000 1.221
+++ arm/arm.h 7 Feb 2004 04:39:54 -0000
@@ -2399,12 +2399,6 @@
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE Pmode
-/* Define as C expression which evaluates to nonzero 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 1 */
-
/* signed 'char' is most compatible, but RISC OS wants it unsigned.
unsigned is probably best, but may break some code. */
#ifndef DEFAULT_SIGNED_CHAR
Index: frv/frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.39
diff -u -r1.39 frv.h
--- frv/frv.h 6 Feb 2004 06:18:27 -0000 1.39
+++ frv/frv.h 7 Feb 2004 04:39:57 -0000
@@ -2878,11 +2878,6 @@
(*targetm.asm_out.internal_label) (STREAM, PREFIX, NUM); \
} while (0)
-/* Define this to determine whether case statement labels are relative to
- the start of the case statement or not. */
-
-#define CASE_VECTOR_PC_RELATIVE (flag_pic)
-
/* Assembler Commands for Exception Regions. */
Index: h8300/h8300.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.h,v
retrieving revision 1.170
diff -u -r1.170 h8300.h
--- h8300/h8300.h 6 Feb 2004 06:18:28 -0000 1.170
+++ h8300/h8300.h 7 Feb 2004 04:39:58 -0000
@@ -931,12 +931,6 @@
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE Pmode
-/* Define as C expression which evaluates to nonzero 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 1 */
-
/* Define this as 1 if `char' should by default be signed; else as 0.
On the H8/300, sign extension is expensive, so we'll say that chars
Index: i386/i386.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.h,v
retrieving revision 1.374
diff -u -r1.374 i386.h
--- i386/i386.h 6 Feb 2004 06:18:28 -0000 1.374
+++ i386/i386.h 7 Feb 2004 04:40:00 -0000
@@ -2518,12 +2518,6 @@
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE (!TARGET_64BIT || flag_pic ? SImode : DImode)
-/* Define as C expression which evaluates to nonzero 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 1 */
-
/* Define this as 1 if `char' should by default be signed; else as 0. */
#define DEFAULT_SIGNED_CHAR 1
Index: i860/i860.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i860/i860.h,v
retrieving revision 1.42
diff -u -r1.42 i860.h
--- i860/i860.h 6 Feb 2004 06:18:29 -0000 1.42
+++ i860/i860.h 7 Feb 2004 04:40:01 -0000
@@ -821,12 +821,6 @@
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE SImode
-/* Define as C expression which evaluates to nonzero 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 1 */
-
/* Define this as 1 if `char' should by default be signed; else as 0. */
#define DEFAULT_SIGNED_CHAR 1
Index: iq2000/iq2000.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/iq2000/iq2000.h,v
retrieving revision 1.11
diff -u -r1.11 iq2000.h
--- iq2000/iq2000.h 6 Feb 2004 06:18:30 -0000 1.11
+++ iq2000/iq2000.h 7 Feb 2004 04:40:03 -0000
@@ -867,8 +867,6 @@
#define CASE_VECTOR_MODE SImode
-#define CASE_VECTOR_PC_RELATIVE 0
-
#define WORD_REGISTER_OPERATIONS
#define LOAD_EXTEND_OP(MODE) ZERO_EXTEND
Index: m32r/m32r.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m32r/m32r.h,v
retrieving revision 1.105
diff -u -r1.105 m32r.h
--- m32r/m32r.h 6 Feb 2004 06:18:30 -0000 1.105
+++ m32r/m32r.h 7 Feb 2004 04:40:04 -0000
@@ -1725,15 +1725,6 @@
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE (flag_pic ? SImode : Pmode)
-/* Define as C expression which evaluates to nonzero 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. */
-/* It's not clear what PIC will look like or whether we want to use -fpic
- for the embedded form currently being talked about. For now require -fpic
- to get pc relative switch tables. */
-/*#define CASE_VECTOR_PC_RELATIVE 1 */
-
/* Define if operations between registers always perform the operation
on the full register even if a narrower mode is specified. */
#define WORD_REGISTER_OPERATIONS
Index: pdp11/pdp11.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pdp11/pdp11.h,v
retrieving revision 1.57
diff -u -r1.57 pdp11.h
--- pdp11/pdp11.h 6 Feb 2004 06:18:34 -0000 1.57
+++ pdp11/pdp11.h 7 Feb 2004 04:40:09 -0000
@@ -880,12 +880,6 @@
`tablejump' insn. */
#define CASE_TAKES_INDEX_RAW
-/* Define as C expression which evaluates to nonzero 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 1 */
-
/* Define this as 1 if `char' should by default be signed; else as 0. */
#define DEFAULT_SIGNED_CHAR 1
Index: sparc/sparc.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.h,v
retrieving revision 1.242
diff -u -r1.242 sparc.h
--- sparc/sparc.h 6 Feb 2004 06:18:34 -0000 1.242
+++ sparc/sparc.h 7 Feb 2004 04:40:17 -0000
@@ -2221,12 +2221,6 @@
(! TARGET_PTR64 ? SImode : flag_pic ? DImode : TARGET_CM_MEDLOW ? SImode : DImode)
#endif
-/* Define as C expression which evaluates to nonzero 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 1 */
-
/* Define this as 1 if `char' should by default be signed; else as 0. */
#define DEFAULT_SIGNED_CHAR 1
Index: xtensa/xtensa.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/xtensa/xtensa.h,v
retrieving revision 1.49
diff -u -r1.49 xtensa.h
--- xtensa/xtensa.h 6 Feb 2004 06:18:36 -0000 1.49
+++ xtensa/xtensa.h 7 Feb 2004 04:40:17 -0000
@@ -1127,11 +1127,6 @@
for the index in the tablejump instruction. */
#define CASE_VECTOR_MODE (SImode)
-/* 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 */
-
/* Define this as 1 if 'char' should by default be signed; else as 0. */
#define DEFAULT_SIGNED_CHAR 0