This is the mail archive of the gcc-bugs@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]

Re: grokfield miscompiled with -O9



Your patch fixed the bug, but the test case you committed fell off the end
of main, and the value in the return register (at least on x86) is the 1
from the test, so dg.exp thinks the test failed.  I've committed the appended
patch.

zw

===================================================================
Index: 20000108-1.c
--- 20000108-1.c	2000/01/08 19:53:48	1.1
+++ 20000108-1.c	2000/01/09 07:10:54
@@ -14,4 +14,5 @@ int main () {
   /* i =  1; */ asm ("" : "=r" (i) : "0" (i ? 1 : 2));
   if (i != 1)
     abort();
+  return 0;
 }

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