[llvm-bugs] [Bug 46835] New: ICF merges functions with different exception handling
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jul 24 09:17:44 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46835
Bug ID: 46835
Summary: ICF merges functions with different exception handling
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: rafael at espindo.la
CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com
I just hit this trying to use ICF in scylla:
$ cat test.cc
void foo();
void bar() {
try {
foo();
} catch (int) {
}
}
void zed() {
try {
foo();
} catch (float) {
}
}
$ g++ -c test.cc -Os -ffunction-sections -fPIC
$ ld.lld -shared test.o -o test.so --icf=all --print-icf-sections
selected section test.o:(.text._Z3barv)
removing identical section test.o:(.text._Z3zedv)
--
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/20200724/3f0af023/attachment.html>
More information about the llvm-bugs
mailing list