This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dwarf EH bug in dwarf2out.c
- To: "H.J. Lu" <hjl at lucon dot org>
- Subject: Re: Dwarf EH bug in dwarf2out.c
- From: Robert Lipe <robertl at dgii dot com>
- Date: Sat, 1 Nov 1997 02:40:36 -0600
- Cc: egcs at cygnus dot com
- References: <m0xRVWI-0004ecC@ocean.lucon.org>
> dwarf2out.c uses ASM_OUTPUT_ASCII to output "eh",
>
> .ascii "eh"
>
> in asm code, which is not '\0' terminated. But frame.c assumes it
> is and use strcmp/strlen on it. It doesn't work at all.
Bummer. That sent my target down in flames, too.
This patch seems to make it work better.
*** dwarf2out.c_ Sat Nov 1 00:49:11 1997
--- dwarf2out.c Sat Nov 1 02:35:27 1997
***************
*** 1567,1573 ****
}
else
{
! ASM_OUTPUT_ASCII (asm_out_file, "eh", 2);
}
fputc ('\n', asm_out_file);
--- 1567,1573 ----
}
else
{
! ASM_OUTPUT_DWARF_STRING (asm_out_file, "eh");
}
fputc ('\n', asm_out_file);