[llvm-bugs] [Bug 25907] New: Compiler seg-faults in lto for indirect goto

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 20 21:32:46 PST 2015


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: unassignedclangbugs at nondot.org
          Reporter: santosh.zanjurne at amd.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151221/f4eb62d3/attachment.html>


More information about the llvm-bugs mailing list