|
|
| Bugzilla Link |
2268 |
| Resolution |
FIXED |
| Resolved on |
May 30, 2009 03:00 |
| Version |
unspecified |
| OS |
Linux |
| Depends On |
#2629 |
| Attachments |
testcase |
| CC |
@pwo |
Extended Description
While building glibc I get:
cc1: /home/edwin/llvm/llvm-svn/trunk/lib/Target/X86/X86FloatingPoint.cpp:975: void::FPS::handleSpecialFP(llvm::ilist_iteratorllvm::MachineInstr&):
Assertion `StackTop == 1 && "Stack should have one element on it to return!"' failed.
../sysdeps/ieee754/dbl-64/e_j0.c:529: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://developer.apple.com/bugreporter for instructions.
make[2]: *** [/home/edwin/glibc-2.7/build-tree/i386-libc/math/e_j0.o] Error 1
To reproduce:
$ llvm-gcc -c -O1 testcase-min.i
cc1: /home/edwin/llvm/llvm-svn/trunk/lib/Target/X86/X86FloatingPoint.cpp:975: void::FPS::handleSpecialFP(llvm::ilist_iteratorllvm::MachineInstr&): Assertion `StackTop == 1 && "Stack should have one element on it to return!"' failed.
testcase-min.i:53: internal compiler error: Aborted
This error occurs 27 times during the glibc build
$ grep "Stack should have one element on it to return" ../../i386-libc/log|wc -l
27
I was able to build these files with an older llvm revision a while ago.
I am unable to reproduce this by generating llvm bitcode (does llvm-gcc run another pass that is not in -std-compile-opts?)
These both work:
$ llvm-gcc -O1 testcase-min.i -c -emit-llvm -o -|opt -std-compile-opts|llc|as
$ llvm-gcc -O1 testcase-min.i -c -emit-llvm -o -|llc|as
$ uname -a
Linux thunder 2.6.25-rc6-00268-gd2532dd-dirty #23 SMP PREEMPT Sun Mar 23 18:34:55 EET 2008 i686 GNU/Linux