[llvm-commits] [llvm-gcc-4.2] r58577 - /llvm-gcc-4.2/trunk/gcc/stmt.c
Bill Wendling
isanbard at gmail.com
Sun Nov 2 17:42:08 PST 2008
Author: void
Date: Sun Nov 2 19:42:08 2008
New Revision: 58577
URL: http://llvm.org/viewvc/llvm-project?rev=58577&view=rev
Log:
Disallow for TARGET_THUMB && TARGET_LONG_CALLS.
Modified:
llvm-gcc-4.2/trunk/gcc/stmt.c
Modified: llvm-gcc-4.2/trunk/gcc/stmt.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/stmt.c?rev=58577&r1=58576&r2=58577&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/stmt.c (original)
+++ llvm-gcc-4.2/trunk/gcc/stmt.c Sun Nov 2 19:42:08 2008
@@ -2387,6 +2387,8 @@
/* Label to jump to if no case matches. */
tree default_label_decl;
+ /* APPLE LOCAL ARM switch tables 6288519 */
+ bool have_casesi;
/* The switch body is lowered in gimplify.c, we should never have
switches with a non-NULL SWITCH_BODY here. */
gcc_assert (!SWITCH_BODY (exp));
@@ -2481,6 +2483,8 @@
/* Compute span of values. */
range = fold_build2 (MINUS_EXPR, index_type, maxval, minval);
+ /* APPLE LOCAL ARM switch tables 6288519 */
+ have_casesi = HAVE_casesi;
/* Try implementing this switch statement by a short sequence of
bit-wise comparisons. However, we let the binary-tree case
below handle constant index expressions. */
@@ -2526,7 +2530,8 @@
|| TREE_CONSTANT (index_expr)
/* If neither casesi or tablejump is available, we can
only go this way. */
- || (!HAVE_casesi && !HAVE_tablejump))
+ /* APPLE LOCAL ARM switch tables 6288519 */
+ || (!have_casesi && !HAVE_tablejump))
{
index = expand_normal (index_expr);
More information about the llvm-commits
mailing list