This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[google] Backport r176293 from gcc-4_6-branch to google/gcc-4_6 (issue4743049)
- From: carrot at google dot com (Guozhi Wei)
- To: reply at codereview dot appspotmail dot com, dougkwan at google dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 19 Jul 2011 09:38:40 +0800 (CST)
- Subject: [google] Backport r176293 from gcc-4_6-branch to google/gcc-4_6 (issue4743049)
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 <carrot@google.com>
Backport r176293 from gcc-4_6-branch
2011-07-14 Janis Johnson <janisjo@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