<font><font face="tahoma,sans-serif">Hi all,</font></font><div><font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif">I have an interesting problem. I am doing bootstrap in 3 stage and noticed that stage2 compiler is miscompiled only on Linux x86 (64bit is fine). stage1 compiler passes all tests so gcc should be fine. Here is the failing tests in stage2:</font></font></div>

<div><font><font face="tahoma,sans-serif"><br></font></font></div><div><font><font face="tahoma,sans-serif"><div>FAIL: Clang :: CodeGen/const-init.c (1125 of 4216)</div><div>******************** TEST 'Clang :: CodeGen/const-init.c' FAILED ********************</div>

<div>Script:</div><div>--</div><div>/home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/stage2/Release+Asserts/bin/clang -cc1 -internal-isystem /home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/stage2/Release+Asserts/bin/../lib/clang/3.1/include -triple i386-pc-linux-gnu -ffreestanding -verify -emit-llvm -o - /home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/tools/clang/test/CodeGen/const-init.c | FileCheck /home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/tools/clang/test/CodeGen/const-init.c</div>

<div>--</div><div>Exit Code: 1</div><div>Command Output (stderr):</div><div>--</div><div>/home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/tools/clang/test/CodeGen/const-init.c:141:12: error: expected string not found in input</div>

<div> // CHECK: @g28.b = internal global <12 x i16> <i16 0, i16 0, i16 0, i16 -32768, i16 16383, i16 0, i16 0, i16 0, i16 0, i16 -32768, i16 16384, i16 0></div><div>           ^</div><div><stdin>:51:44: note: scanning from here</div>

<div>@g28.a = internal global <1 x i64> <i64 10>, align 8</div><div>                                           ^</div><div><stdin>:52:1: note: possible intended match here</div><div>@g28.b = internal global <12 x i16> <i16 0, i16 0, i16 0, i16 -32768, i16 16383, i16 16383, i16 16383, i16 16383, i16 0, i16 0, i16 0, i16 0>, align 32</div>

<div>^</div><div>--</div><div><br></div><div><br></div><div><div>FAIL: Clang :: CodeGenObjC/interface.m (1846 of 4216)</div><div>******************** TEST 'Clang :: CodeGenObjC/interface.m' FAILED ********************</div>

<div>Script:</div><div>--</div><div>/home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/stage2/Release+Asserts/bin/clang -cc1 -internal-isystem /home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/stage2/Release+Asserts/bin/../lib/clang/3.1/include -triple i386-apple-darwin9 -fobjc-fragile-abi -O3 -emit-llvm -o /home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/stage2/tools/clang/test/CodeGenObjC/Output/interface.m.tmp /home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/tools/clang/test/CodeGenObjC/interface.m</div>

<div>grep 'ret i32 385' /home/abuild/rpmbuild/BUILD/llvm-3.0.99.svn149865/stage2/tools/clang/test/CodeGenObjC/Output/interface.m.tmp</div><div>--</div><div>Exit Code: 1</div></div><div><br></div><div><br></div><div>

It would be nice if any of you can give a hint on what file(s) might be miscompiled so I can try to debug this issue.</div><div><br></div><div>Regards,</div><div>ismail</div><div><br></div></font></font></div>