Commit f5c2caca by Jakub Jelinek Committed by Jakub Jelinek

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
parent 34bf36a4
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment