Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gcc XXX Temporarily disable the tablejump switch{} ...
details: https://anonhg.NetBSD.org/src/rev/ef5768a928ed
branches: trunk
changeset: 473265:ef5768a928ed
user: pk <pk%NetBSD.org@localhost>
date: Thu May 27 12:18:35 1999 +0000
description:
XXX Temporarily disable the tablejump switch{} implementation when
compiling into PIC code. Currently, the tablejump method requires
Global Offset Table access which undermines its use in self-relocating
code such as the run-time linker.
diffstat:
gnu/dist/gcc/stmt.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diffs (23 lines):
diff -r e077212ca63b -r ef5768a928ed gnu/dist/gcc/stmt.c
--- a/gnu/dist/gcc/stmt.c Thu May 27 11:19:04 1999 +0000
+++ b/gnu/dist/gcc/stmt.c Thu May 27 12:18:35 1999 +0000
@@ -4836,9 +4836,19 @@
|| count < CASE_VALUES_THRESHOLD
|| ((unsigned HOST_WIDE_INT) (TREE_INT_CST_LOW (range))
> 10 * count)
+#if 0
+/*
+ * XXX - Disabled temporarily.
+ * Use non-tablejump switch{} implementation when doing PIC code
+ * Currently, the tablejump method requires GOT access which undermines
+ * its use in self-relocating code such as the run-time linker.
+ */
#ifndef ASM_OUTPUT_ADDR_DIFF_ELT
|| flag_pic
#endif
+#else
+ || flag_pic
+#endif
|| TREE_CODE (index_expr) == INTEGER_CST
/* These will reduce to a constant. */
|| (TREE_CODE (index_expr) == CALL_EXPR
Home |
Main Index |
Thread Index |
Old Index