public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* dwarf2out patch
@ 1997-11-01 12:42 Jeffrey A Law
  0 siblings, 0 replies; only message in thread
From: Jeffrey A Law @ 1997-11-01 12:42 UTC (permalink / raw)
  To: egcs

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-11-01 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-11-01 12:42 dwarf2out patch Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).