https://llvm.org/bugs/show_bug.cgi?id=25283
Bug ID: 25283 Summary: Executable crashes when linked with lld & -O2 Product: lld Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedb...@nondot.org Reporter: ism...@i10z.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15141 --> https://llvm.org/bugs/attachment.cgi?id=15141&action=edit Testcase This is on Linux x86_64: λ clang -v clang version 3.8.0 (trunk 250995) Target: x86_64-suse-linux Thread model: posix InstalledDir: /opt/clang/bin Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/5 Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/5 Candidate multilib: .;@m64 Candidate multilib: 32;@m32 Selected multilib: .;@m64 λ clang++ -x c++ -O2 -std=c++11 -fuse-ld=lld2 mandelbrot-mp.ii λ ./a.out [1] 30266 segmentation fault (core dumped) ./a.out Works fine if I use -O1 or gold linker. Testcase attached. -- 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