grokfield miscompiled with -O9

Zack Weinberg zack@wolery.cumb.org
Sat Jan 8 23:14:00 GMT 2000


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;
 }


More information about the Gcc-bugs mailing list