Dwarf EH bug in dwarf2out.c
Robert Lipe
robertl@dgii.com
Sat Nov 1 00:41:00 GMT 1997
> 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);
More information about the Gcc
mailing list