[Bug gold/23482] New: Identical code folding can break C++ exception handling invariants

2018-08-03 Thread oremanj at gmail dot com
Severity: normal Priority: P2 Component: gold Assignee: ccoutant at gmail dot com Reporter: oremanj at gmail dot com CC: ian at airs dot com Target Milestone: --- Recent versions of GCC at reasonable optimization levels will automatically split

[Bug gold/23482] Identical code folding can break C++ exception handling invariants

2018-08-03 Thread oremanj at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23482 --- Comment #1 from Joshua Oreman --- Created attachment 11162 --> https://sourceware.org/bugzilla/attachment.cgi?id=11162&action=edit Reproducer for reported issue -- You are receiving this mail because: You are on the CC list for the bug

[Bug gold/21066] icf folds template functions with different exception handling semantics

2018-08-10 Thread oremanj at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21066 --- Comment #4 from Joshua Oreman --- As I pointed out in PR 23482, hot/cold function splitting (the new gcc -freorder-blocks-and-partition optimization) can make this an issue even without any LSDA at all. Seems a full fix will need to consid

[Bug gold/21066] icf folds template functions with different exception handling semantics

2018-09-26 Thread oremanj at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21066 --- Comment #5 from Joshua Oreman --- Created attachment 11278 --> https://sourceware.org/bugzilla/attachment.cgi?id=11278&action=edit Proposed fix I believe this patch fixes all the issues described in this thread. I also submitted it to t