[Bug bootstrap/81470] [8 Regression] Bootstrap comparison failures in gcc/ada
rainer@emrich-ebersheim.de
gcc-bugzilla@gcc.gnu.org
Thu Nov 30 12:06:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81470
--- Comment #12 from Rainer Emrich <rainer@emrich-ebersheim.de> ---
(In reply to Olivier Hainque from comment #11)
> Comment on attachment 42747 [details]
> don't emit .cfi_personality/.cfi_lsda for !dwarf2 eh
>
> >diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
> >index 3d619b8..62b5c77 100644
> >--- a/gcc/dwarf2out.c
> >+++ b/gcc/dwarf2out.c
> >@@ -958,10 +958,16 @@ dwarf2out_do_cfi_startproc (bool second)
> > {
> > int enc;
> > rtx ref;
> >- rtx personality = get_personality_function (current_function_decl);
> >
> > fprintf (asm_out_file, "\t.cfi_startproc\n");
> >
> >+ /* .cfi_personality and .cfi_lsda are only relevant to DWARF2
> >+ eh unwinders. */
> >+ if (targetm_common.except_unwind_info (&global_options) != UI_DWARF2)
> >+ return;
> >+
> >+ rtx personality = get_personality_function (current_function_decl);
> >+
> > if (personality)
> > {
> > enc = ASM_PREFERRED_EH_DATA_FORMAT (/*code=*/2, /*global=*/1);
Confirmed, this patch solves the issue.
Thanks
More information about the Gcc-bugs
mailing list