lto-wrapper: Pass through -funwind-tables and -fasynchronous-unwind-tables
commit9453e3cd0ffd0c377a648b83a9a5fdc5809e60d7
authorAndreas Schwab <schwab@suse.de>
Tue, 17 Jan 2023 15:47:13 +0000 (17 16:47 +0100)
committerAndreas Schwab <schwab@suse.de>
Thu, 9 Feb 2023 08:57:44 +0000 (9 09:57 +0100)
tree86ece4f22c3874585a39ca3c666fabbba17667c4
parentb1ed0c9671b99c6b06cbb8c61be14cdec0998de8
lto-wrapper: Pass through -funwind-tables and -fasynchronous-unwind-tables

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.
gcc/lto-wrapper.cc