PowerPC - unexpected handler being optimized out
| Bugzilla Link | 32611 |
| Resolution | FIXED |
| Resolved on | Mar 05, 2019 16:09 |
| Version | trunk |
| OS | Linux |
| Blocks | llvm/llvm-project#37754 |
| Attachments | reproduce the unexpected handler issue |
| Reporter | LLVM Bugzilla Contributor |
| CC | @zmodem,@hfinkel,@nemanjai,@stefanp-ibm |
| Fixed by commit(s) | rL340641 |
Extended Description
This happens in the release_40 branch.
% clang++ unexpected.cpp -O3 % a.out terminate called after throwing an instance of 'int' Aborted % clang++ unexpected.cpp -O0 % a.out Unexpected handler was called. terminate called after throwing an instance of 'int' Aborted
g++ and the x86 backend generate the latter output as well.
mentioned in issue llvm/llvm-project#37754
Merged to 7.0 in r340731.
Marking this as a blocker for 7.0 so we don't forget to merge it to the release.
It would be good to merge this into 7.0 as well if it can be approved/committed in time.
Have a fix in this patch: https://reviews.llvm.org/D50987
This is still reproducible on trunk. clang++ now emits a warning about the code, but the Unexpected handler is still optimized away.
assigned to @stefanp-ibm