Hi This patch back ports r176293 from gcc-4_6-branch to google/gcc-4_6 branch. BB reorder hides the optimization opportunity, so disable it for the test case.
Tested with make check-gcc RUNTESTFLAGS="--target_board=arm-sim/thumb/arch=armv7-a arm.exp=pr42093.c" thanks Carrot 2011-07-19 Guozhi Wei <car...@google.com> Backport r176293 from gcc-4_6-branch 2011-07-14 Janis Johnson <jani...@codesourcery.com> * gcc.target/arm/pr42093.c: Use "-fno-reorder-blocks". Index: gcc.target/arm/pr42093.c =================================================================== --- gcc.target/arm/pr42093.c (revision 176431) +++ gcc.target/arm/pr42093.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-options "-mthumb -O2" } */ +/* { dg-options "-mthumb -O2 -fno-reorder-blocks" } */ /* { dg-require-effective-target arm_thumb2_ok } */ /* { dg-final { scan-assembler-not "tbb" } } */ /* { dg-final { scan-assembler-not "tbh" } } */ -- This patch is available for review at http://codereview.appspot.com/4743049