From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: egcs@cygnus.com Subject: dwarf2out patch Date: Sat, 01 Nov 1997 12:42:00 -0000 Message-id: <9126.878417058@chunks.cygnus.com> X-SW-Source: 1997-11/msg00009.html This should fix most of the problems with dwarf2 exceptions using the latest snapshot: * dwarf2out.c (output_call_frame_info): Fix length argument to ASM_OUTPUT_ASCII. (output_die, output_pubnames, output_line_info): Likewise. Index: dwarf2out.c =================================================================== RCS file: /cvs/cvsfiles/egcs/gcc/dwarf2out.c,v retrieving revision 1.17 diff -c -3 -p -r1.17 dwarf2out.c *** dwarf2out.c 1997/10/31 16:30:48 1.17 --- dwarf2out.c 1997/11/01 20:38:24 *************** output_call_frame_info (for_eh) *** 1567,1573 **** } else { ! ASM_OUTPUT_ASCII (asm_out_file, "eh", 2); } fputc ('\n', asm_out_file); --- 1567,1573 ---- } else { ! ASM_OUTPUT_ASCII (asm_out_file, "eh", 3); } fputc ('\n', asm_out_file); *************** output_die (die) *** 5158,5164 **** else ASM_OUTPUT_ASCII (asm_out_file, a->dw_attr_val.v.val_str, ! strlen (a->dw_attr_val.v.val_str)); break; default: --- 5158,5164 ---- else ASM_OUTPUT_ASCII (asm_out_file, a->dw_attr_val.v.val_str, ! strlen (a->dw_attr_val.v.val_str) + 1); break; default: *************** output_pubnames () *** 5310,5316 **** } else { ! ASM_OUTPUT_ASCII (asm_out_file, pub->name, strlen (pub->name)); } fputc ('\n', asm_out_file); --- 5310,5316 ---- } else { ! ASM_OUTPUT_ASCII (asm_out_file, pub->name, strlen (pub->name) + 1); } fputc ('\n', asm_out_file); *************** output_line_info () *** 5546,5552 **** { ASM_OUTPUT_ASCII (asm_out_file, file_table[ft_index], ! strlen (file_table[ft_index])); } fputc ('\n', asm_out_file); --- 5546,5552 ---- { ASM_OUTPUT_ASCII (asm_out_file, file_table[ft_index], ! strlen (file_table[ft_index]) + 1); } fputc ('\n', asm_out_file); Jeff Law (law@cygnus.com) Cygnus Solutions EGCS GNU Compiler System http://www.cygnus.com http://www.cygnus.com/egcs