The -funwind-tables and -fasynchronous-unwind-tables options are relevant
for the output pass, so they need to be passed through by the LTO wrapper.
Otherwise, dwarf2out_assembly_start may output a ".cfi_sections
.debug_frame" directive when debug info is enabled even if every
translation unit was compiled with -funwind-tables.
gcc/
* lto-wrapper.cc (merge_and_complain): Handle
-funwind-tables and -fasynchronous-unwind-tables.
(append_compiler_options): Likewise.
case OPT_fopenmp:
case OPT_fopenacc:
+ case OPT_fasynchronous_unwind_tables:
+ case OPT_funwind_tables:
/* For selected options we can merge conservatively. */
if (existing_opt == -1)
decoded_options.safe_push (*foption);
case OPT_fopenacc_dim_:
case OPT_foffload_abi_:
case OPT_fcf_protection_:
+ case OPT_fasynchronous_unwind_tables:
+ case OPT_funwind_tables:
case OPT_g:
case OPT_O:
case OPT_Ofast: