This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: mips-tdep.c: Fix new-ABI handling of composite return values
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Maciej W. Rozycki" <macro at mips dot com>
- Cc: gdb-patches at sourceware dot org, David Ung <davidu at mips dot com>, "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Tue, 25 Sep 2007 11:10:22 -0400
- Subject: Re: mips-tdep.c: Fix new-ABI handling of composite return values
- References: <Pine.LNX.4.61.0709251522080.6904@perivale.mips.com>
On Tue, Sep 25, 2007 at 03:50:26PM +0100, Maciej W. Rozycki wrote:
> 2007-09-25 David Ung <davidu@mips.com>
> Maciej W. Rozycki <macro@mips.com>
>
> * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
> rules return composite types in registers as appropriate.
128-bit long double is also handled in this patch - that's not a
composite type. I think that's a merge error, though. If you look
above the float / double block you'll find another copy of
128-bit long double support in HEAD.
> else if (TYPE_CODE (type) == TYPE_CODE_STRUCT
> && TYPE_NFIELDS (type) <= 2
> && TYPE_NFIELDS (type) >= 1
> && ((TYPE_NFIELDS (type) == 1
> - && (TYPE_CODE (TYPE_FIELD_TYPE (type, 0))
> + && (TYPE_CODE (check_typedef (TYPE_FIELD_TYPE (type, 0)))
Funny indentation. Is the only substantive change in this patch the
new calls to check_typedef?
--
Daniel Jacobowitz
CodeSourcery