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: Patch to generate correct dwarf2 debugging info



  In message <200009141713.KAA11201@elmo.cygnus.com>you write:
  > Hi Will,
  > 
  > : --- 7671,7675 ----
  > :   	  {
  > :   	    register unsigned length = GET_MODE_SIZE (mode) / sizeof (l
  > ong);
  > : !  	    long *array = xmalloc(sizeof(long) * 4);
  > :   	    REAL_VALUE_TYPE rv;
  > 
  > As an alternative to xmalloc'ing why not just use a normal automatic
  > declaration, ie:
  > 
  > 	     long array [4 * sizeof (long)];
The whole point of the patch was to avoid using a local.

Note that we pass ARRAY to add_AT_float, which in turn stuffs its value 
away and we look at it later (output_die) -- *after* the function where
ARRAY was  defined has returned and its stack space deallocated.

jeff



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