]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/56455 (ICE in final_scan_insn)
authorJakub Jelinek <jakub@redhat.com>
Wed, 27 Feb 2013 07:26:53 +0000 (08:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 27 Feb 2013 07:26:53 +0000 (08:26 +0100)
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

gcc/ChangeLog
gcc/stmt.c

index 2bee7d99eec15256bbd5b00dbad8d6a1b469edaa..c9d00d6298bdcc5067495bc45640aaba28d5eb27 100644 (file)
@@ -1,3 +1,9 @@
+2013-02-27  Jakub Jelinek  <jakub@redhat.com>
+
+       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.
+
 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/56461
index c5ba10b69fa815abaf5b9acd71e5f51f133dacc8..ca58786c43ca59f957732445422a92bc9ea0db58 100644 (file)
@@ -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