This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Kill check for eh_personality_libfunc
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 2 Sep 2009 17:01:25 +0200 (CEST)
- Subject: [PATCH] Kill check for eh_personality_libfunc
This removes a IMHO pointless check for eh_personality_libfunc in
the predicate that is supposed to decide if we emit cfi via asm or
not. It allows a LTO FIXME to be removed.
Bootstrapped and tested on x86_64-unknown-linux-gnu on trunk and lto.
I'll install this tomorrow if nobody complains.
Thanks,
Richard.
2009-09-02 Richard Guenther <rguenther@suse.de>
* dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
eh_personality_libfunc.
Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 151320)
+++ gcc/dwarf2out.c (working copy)
@@ -163,7 +163,7 @@ dwarf2out_do_cfi_asm (void)
#endif
if (!flag_dwarf2_cfi_asm || !dwarf2out_do_frame ())
return false;
- if (saved_do_cfi_asm || !eh_personality_libfunc)
+ if (saved_do_cfi_asm)
return true;
if (!HAVE_GAS_CFI_PERSONALITY_DIRECTIVE)
return false;