From 2f02b2c29168b6db2a25deb8073557330f652508 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Mon, 13 Nov 2017 17:26:41 +0000 Subject: re PR lto/81351 (Many LTO testcases FAIL) PR lto/81351 * debug.h (dwarf2out_do_eh_frame): Declare. * dwarf2cfi.c (dwarf2out_do_eh_frame): New predicate. (dwarf2out_do_frame): Use it. (dwarf2out_do_cfi_asm): Likewise. * dwarf2out.c (dwarf2out_frame_finish): Likewise. (dwarf2out_assembly_start): Likewise. (dwarf2out_begin_prologue): Fix comment. * toplev.c (compile_file): Always call dwarf2out_frame_finish if the target needs either debug or unwind DWARF2 info. * lto-opts.c (lto_write_options): Do not save -fexceptions, -fnon-call-exceptions, -ffp-contract, -fmath-errno, -fsigned-zeros, -ftrapping-math, -ftrapv and -fwrapv. From-SVN: r254697 --- gcc/debug.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/debug.h') diff --git a/gcc/debug.h b/gcc/debug.h index 19b27848ca8..277d990c20f 100644 --- a/gcc/debug.h +++ b/gcc/debug.h @@ -241,8 +241,7 @@ extern void dwarf2out_vms_end_prologue (unsigned int, const char *); extern void dwarf2out_vms_begin_epilogue (unsigned int, const char *); extern void dwarf2out_end_epilogue (unsigned int, const char *); extern void dwarf2out_frame_finish (void); -/* Decide whether we want to emit frame unwind information for the current - translation unit. */ +extern bool dwarf2out_do_eh_frame (void); extern bool dwarf2out_do_frame (void); extern bool dwarf2out_do_cfi_asm (void); extern void dwarf2out_switch_text_section (void); -- cgit v1.2.3