This is the mail archive of the gcc-patches@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: Revised patch to generate correct dwarf2 debugging info


I'm applying this tweak, now that the size can be calculated dynamically:

2000-09-21  Jason Merrill  <jason@redhat.com>

	* dwarf2out.c (add_const_value_attribute): Multiply by length, not 4.

*** dwarf2out.c.~1~	Sun Sep 17 15:47:48 2000
--- dwarf2out.c	Wed Sep 20 21:55:32 2000
*************** add_const_value_attribute (die, rtl)
*** 7674,7680 ****
  	if (GET_MODE_CLASS (mode) == MODE_FLOAT)
  	  {
  	    register unsigned length = GET_MODE_SIZE (mode) / sizeof (long);
!  	    long *array = (long *) xmalloc (sizeof (long) * 4);
  	    REAL_VALUE_TYPE rv;
  
  	    REAL_VALUE_FROM_CONST_DOUBLE (rv, rtl);
--- 7693,7699 ----
  	if (GET_MODE_CLASS (mode) == MODE_FLOAT)
  	  {
  	    register unsigned length = GET_MODE_SIZE (mode) / sizeof (long);
!  	    long *array = (long *) xmalloc (sizeof (long) * length);
  	    REAL_VALUE_TYPE rv;
  
  	    REAL_VALUE_FROM_CONST_DOUBLE (rv, rtl);

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