https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121041
--- Comment #3 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> --- Created attachment 61931 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61931&action=edit older patch for illustrative purposes For the record, I started out with this simpler patch, which has the same effect, but is flawed in that it duplicates the logic that decides when the exception handling code is empty - including the constant '20' - and is thus susceptible to code rot if just one copy is changed.