This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Dwarf EH bug in dwarf2out.c


> 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);




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]