aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-02-27 07:26:53 +0000
committerJakub Jelinek <jakub@redhat.com>2013-02-27 07:26:53 +0000
commit73c24d77716845eef991aec87a04392fe5c637c1 (patch)
tree99c13dbecb38c7b681018ea92637e4389256c86d /gcc/stmt.c
parentbdbd5f6f302e2c3bae861fa4864195b2e6510663 (diff)
PR target/56455
* stmt.c (expand_switch_as_decision_tree_p): If flag_pic and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@196304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index c5ba10b69fa..ca58786c43c 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -1760,6 +1760,10 @@ expand_switch_as_decision_tree_p (tree range,
return true;
if (!flag_jump_tables)
return true;
+#ifndef ASM_OUTPUT_ADDR_DIFF_ELT
+ if (flag_pic)
+ return true;
+#endif
/* If the switch is relatively small such that the cost of one
indirect jump on the target are higher than the cost of a