https://bugs.llvm.org/show_bug.cgi?id=36272

            Bug ID: 36272
           Summary: [LLD/ELF] - ICF folds functions with different LSDA.
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: gri...@accesssoftek.com
                CC: llvm-bugs@lists.llvm.org

Created attachment 19828
  --> https://bugs.llvm.org/attachment.cgi?id=19828&action=edit
test.c

We knew about that (and had some patches in this direction, 
for example D38319 and others), but I do not think we had
a realistic use case before. And it was probably not
documented in bugtracker.

I found this issue in binutils bugtracker today and
verified it is reproduced with use of LLD head.
(for reference: https://sourceware.org/bugzilla/show_bug.cgi?id=21066)

test.c is attached. When compiled and linked with LLD and --icf=all
it crashes:

./test 
caught expected exception
ERROR: caught unexpected exception
terminate called after throwing an instance of 'second_exception'
Aborted (core dumped)

without ICF output is:
./test 
caught expected exception
caught expected exception

-- 
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

Reply via email to