On Jan 18 2023, Michael Matz wrote: > So, it's quite clear that the option merging algorithm related to all this > is somewhat broken, the global (or per function, or whatever) > -funwind-tables option from hello.o doesn't make it correctly into the > output (when -g is there). Adding -fexception makes it work because then > the functions will have personalities and on LTO-read-in _that_ will > implicitely enable funwind-tables again (which should have been enabled > already by the option-read-in).
My guess is that flag_unwind_tables is not yet set when .cfi_sections is emitted (which is done by dwarf2out_assembly_start before compile starts). -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."