diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-27 07:26:53 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-27 07:26:53 +0000 |
commit | d5417a490ff4fec810a67dc82d51921d735e16f8 (patch) | |
tree | 99c13dbecb38c7b681018ea92637e4389256c86d /gcc/stmt.c | |
parent | 70a1301022178c62588754701663e8731e9ce453 (diff) | |
download | gcc-d5417a490ff4fec810a67dc82d51921d735e16f8.tar.gz |
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: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 4 |
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 |