In that sense, creating .eh_frame entries for outlined functions is correct. However, if outlined functions do not contain CFI instructions, I think we can take the hit on the quality of the debugging information or the precision of profiling for the `-Oz` case only, for the benefit of the code size.
Only that at the time we set the `uwtable` attribute we don't really know if the new function will endp containing CFI instructions, so that won't work.
How about using `-fno-asynchronous-unwind-tables` ? IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.