Commit f0c988c8 by Bernd Schmidt Committed by Bernd Schmidt

Fix recently introduced error in expand_end_case.

From-SVN: r32511
parent 93ca4ba7
2000-03-13 Bernd Schmidt <bernds@cygnus.co.uk>
* stmt.c (expand_end_case): RANGE may be signed, and when checking
whether it is too large we must also verify that it isn't negative.
2000-03-13 Jakub Jelinek <jakub@redhat.com>
* config/sparc/sparc.md: Remove all traces of TARGET_LIVE_G0.
......
......@@ -5402,6 +5402,9 @@ expand_end_case (orig_index)
else if (count < CASE_VALUES_THRESHOLD
|| compare_tree_int (range, 10 * count) > 0
/* RANGE may be signed, and really large ranges will show up
as negative numbers. */
|| compare_tree_int (range, 0) < 0
#ifndef ASM_OUTPUT_ADDR_DIFF_ELT
|| flag_pic
#endif
......
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