This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa/arm] Make arm float->double arg pass portable(ish)
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [rfa/arm] Make arm float->double arg pass portable(ish)
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 06 Jul 2001 15:08:25 +0100
- cc: gdb-patches at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Organization: ARM Ltd.
- Reply-To: Richard dot Earnshaw at arm dot com
DOUBLEST dblval;
! dblval = extract_floating (val, len);
len = TARGET_DOUBLE_BIT / TARGET_CHAR_BIT;
! val = alloca (len);
! store_floating (val, len, dblval);
Are TARGET_DOUBLE_BIT and TARGET_CHAR_BIT really variable? If not, it
would be better to have a local char array of the right size and avoid all
this alloca() rubbish.
R.