This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Testcase for PR61801


Hi!

I've cleaned up the testcase some more, tested on 4.8/4.9/trunk that
it fails without the sched-deps.c fix too (both -m32 and -m64) and
works with the fix.  Committed to all branches.

2014-08-06  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/61801
	* gcc.target/i386/pr61801.c: Rewritten.

--- gcc/testsuite/gcc.target/i386/pr61801.c.jj	2014-08-01 09:23:37.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/pr61801.c	2014-08-06 10:30:32.133472004 +0200
@@ -1,22 +1,21 @@
+/* PR rtl-optimization/61801 */
 /* { dg-do compile } */
 /* { dg-options "-Os -fcompare-debug" } */
 
-int a, b, c;
-void fn1 ()
+int a, c;
+int bar (void);
+void baz (void);
+
+void
+foo (void)
 {
   int d;
-  if (fn2 () && !0)
+  if (bar ())
     {
-      b = (
-	   {
-	   int e;
-	   fn3 ();
-	   switch (0)
-	   default:
-	   asm volatile("" : "=a"(e) : "0"(a), "i"(0));
-	   e;
-	   });
-      d = b;
+      int e;
+      baz ();
+      asm volatile ("" : "=a" (e) : "0" (a), "i" (0));
+      d = e;
     }
   c = d;
 }

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]