[LLVMbugs] [Bug 2145] New: llvm-gcc emits invalid aliases
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Mar 12 15:51:46 PDT 2008
http://llvm.org/bugs/show_bug.cgi?id=2145
Summary: llvm-gcc emits invalid aliases
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: unassignedbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=1538)
--> (http://llvm.org/bugs/attachment.cgi?id=1538)
problem input
The attached code emits an alias that references another alias, which generates
invalid bitcode (according to the assembly documentation). It isn't clear to me
whether or not this is intended to work. The x86 backend compiles it fine but
AsmWriter fails on it, and linking it as bytecode does not seem to work (more
testcases available on request).
--
ddunbar at ozzy:test$ llvm-gcc -c test.c && nm test.o
00000000 T a
00000000 T b
00000000 T c
ddunbar at ozzy:test$ llvm-gcc -O4 -c test.c && llvm-nm test.o
T a
T b
? c
ddunbar at ozzy:test$ llvm-gcc -O4 -c test.c && llc test.o
ddunbar at ozzy:test$ llvm-gcc -O4 -c test.c && llvm-dis test.o
llvm-dis: AsmWriter.cpp:1012: void llvm::AssemblyWriter::printAlias(const
llvm::GlobalAlias*): Assertion `0 && "Unsupported aliasee"' failed.
llvm-dis(_ZN40_GLOBAL__N_Signals.cpp_00000000_644EB5E213SignalHandlerEi+0x20f)[0x814f5ff]
/lib/tls/i686/cmov/libc.so.6(abort+0x109)[0xb7cbdfb9]
/lib/tls/i686/cmov/libc.so.6(__assert_fail+0x10f)[0xb7cb5fbf]
llvm-dis(_ZN4llvm14AssemblyWriter10printAliasEPKNS_11GlobalAliasE+0x14d)[0x8099b1d]
[0xbfeb6934]
Aborted
--
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list