Commit 3f6fe18e by Richard Kenner

(expand_end_case): Don't use ADDR_DIFF_VEC for PIC if

ASM_OUTPUT_ADDR_DIFF_ELT is not defined.

From-SVN: r11260
parent 979721f8
......@@ -4817,6 +4817,9 @@ expand_end_case (orig_index)
|| count < CASE_VALUES_THRESHOLD
|| ((unsigned HOST_WIDE_INT) (TREE_INT_CST_LOW (range))
> 10 * count)
#ifndef ASM_OUTPUT_ADDR_DIFF_ELT
|| flag_pic
#endif
|| TREE_CODE (index_expr) == INTEGER_CST
/* These will reduce to a constant. */
|| (TREE_CODE (index_expr) == CALL_EXPR
......
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