https://llvm.org/bugs/show_bug.cgi?id=25907
Bug ID: 25907 Summary: Compiler seg-faults in lto for indirect goto Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: LLVM Codegen Assignee: unassignedclangb...@nondot.org Reporter: santosh.zanju...@amd.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified The regression was introduced in svn r255909 Revision details: http://reviews.llvm.org/D14838 Assigned to the owner, Teresa Johnson. clang igt.c -flto -O1 ld: trunk/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:112: {anonymous}::BitcodeReaderMDValueList::~BitcodeReaderMDValueList(): Assertion `!NumFwdRefs || SavedFwdRefs' failed. clang: error: unable to execute command: Aborted (core dumped) clang: error: linker command failed due to signal (use -v to see invocation) Testcase from llvm test-suite: #include <stdio.h> int main() { static const void *L[] = {&&L1, &&L2, &&L3, &&L4, 0 }; unsigned i = 0; printf("A\n"); L1: printf("B\n"); L2: printf("C\n"); L3: printf("D\n"); goto *L[i++]; L4: printf("E\n"); return 0; } -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs