https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80032
--- Comment #5 from Jan Smets <jan.smets at nokia dot com> --- I think suggested patch might generate bad code. (but hard to track down on my embedded target, it's stuck at a point where I don't have exceptions/backtraces available yet).