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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs