This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to generate correct dwarf2 debugging info
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: Patch to generate correct dwarf2 debugging info
- From: Graham Stott <grahams at redhat dot com>
- Date: Thu, 14 Sep 2000 18:23:38 +0100
- CC: wcohen at redhat dot com, gcc-patches at gcc dot gnu dot org
- References: <200009141713.KAA11201@elmo.cygnus.com>
Nick
Nick Clifton wrote:
>
> Hi Will,
>
> : --- 7671,7675 ----
> : {
> : register unsigned length = GET_MODE_SIZE (mode) / sizeof (long);
> : ! 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)];
>
> Cheers
> Nick
I think you've missed the problem. The address of the array is
stored in a AT struct so the life-time of array needs to match the
life-time of the AT.
Graham