aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-02-27 08:26:53 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-02-27 08:26:53 +0100
commitf5c2cacaad0d670aee9993c31c0eb93887e49d33 (patch)
tree99c13dbecb38c7b681018ea92637e4389256c86d /gcc/stmt.c
parent34bf36a481038f491c62bfce23d524a22a266f1d (diff)
downloadgcc-f5c2cacaad0d670aee9993c31c0eb93887e49d33.zip
gcc-f5c2cacaad0d670aee9993c31c0eb93887e49d33.tar.gz
gcc-f5c2cacaad0d670aee9993c31c0eb93887e49d33.tar.bz2
re PR target/56455 (ICE in final_scan_insn)
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. From-SVN: r196304
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 c5ba10b..ca58786 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