llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

PowerPC - unexpected handler being optimized out

Open llvmbot opened this issue 9 years ago • 7 comments

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.

llvmbot avatar Apr 10 '17 23:04 llvmbot

mentioned in issue llvm/llvm-project#37754

zmodem avatar Nov 27 '21 00:11 zmodem

Merged to 7.0 in r340731.

zmodem avatar Aug 27 '18 10:08 zmodem

Marking this as a blocker for 7.0 so we don't forget to merge it to the release.

nemanjai avatar Aug 24 '18 15:08 nemanjai

It would be good to merge this into 7.0 as well if it can be approved/committed in time.

nemanjai avatar Aug 24 '18 15:08 nemanjai

Have a fix in this patch: https://reviews.llvm.org/D50987

stefanp-synopsys avatar Aug 24 '18 15:08 stefanp-synopsys

This is still reproducible on trunk. clang++ now emits a warning about the code, but the Unexpected handler is still optimized away.

llvmbot avatar Apr 11 '18 19:04 llvmbot

assigned to @stefanp-ibm

llvmbot avatar Apr 10 '17 23:04 llvmbot