* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer

types.
This commit is contained in:
Daniel Jacobowitz 2007-09-06 20:21:16 +00:00
parent b5d84f6ee2
commit f0027ce269
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
* ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
types.
2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
Jim Blandy <jimb@codesourcery.com> Jim Blandy <jimb@codesourcery.com>

View File

@ -388,8 +388,13 @@ do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *type,
} }
return RETURN_VALUE_REGISTER_CONVENTION; return RETURN_VALUE_REGISTER_CONVENTION;
} }
if (TYPE_CODE (type) == TYPE_CODE_INT else if ((TYPE_CODE (type) == TYPE_CODE_INT
&& TYPE_LENGTH (type) <= tdep->wordsize) || TYPE_CODE (type) == TYPE_CODE_CHAR
|| TYPE_CODE (type) == TYPE_CODE_BOOL
|| TYPE_CODE (type) == TYPE_CODE_PTR
|| TYPE_CODE (type) == TYPE_CODE_REF
|| TYPE_CODE (type) == TYPE_CODE_ENUM)
&& TYPE_LENGTH (type) <= tdep->wordsize)
{ {
if (readbuf) if (readbuf)
{ {