mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* i386-tdep.c (i386_extract_return_value): Don't return the return
value of a void function. (i386_store_return_value): Likewise.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2001-04-04 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* i386-tdep.c (i386_extract_return_value): Don't return the return
|
||||||
|
value of a void function.
|
||||||
|
(i386_store_return_value): Likewise.
|
||||||
|
|
||||||
2001-04-03 Andrew Cagney <ac131313@redhat.com>
|
2001-04-03 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
Obsolete w65-*-* target.
|
Obsolete w65-*-* target.
|
||||||
|
@ -735,8 +735,10 @@ i386_extract_return_value (struct type *type, char *regbuf, char *valbuf)
|
|||||||
|
|
||||||
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
|
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
|
||||||
&& TYPE_NFIELDS (type) == 1)
|
&& TYPE_NFIELDS (type) == 1)
|
||||||
return i386_extract_return_value (TYPE_FIELD_TYPE (type, 0),
|
{
|
||||||
regbuf, valbuf);
|
i386_extract_return_value (TYPE_FIELD_TYPE (type, 0), regbuf, valbuf);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (TYPE_CODE (type) == TYPE_CODE_FLT)
|
if (TYPE_CODE (type) == TYPE_CODE_FLT)
|
||||||
{
|
{
|
||||||
@ -798,7 +800,10 @@ i386_store_return_value (struct type *type, char *valbuf)
|
|||||||
|
|
||||||
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
|
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
|
||||||
&& TYPE_NFIELDS (type) == 1)
|
&& TYPE_NFIELDS (type) == 1)
|
||||||
return i386_store_return_value (TYPE_FIELD_TYPE (type, 0), valbuf);
|
{
|
||||||
|
i386_store_return_value (TYPE_FIELD_TYPE (type, 0), valbuf);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (TYPE_CODE (type) == TYPE_CODE_FLT)
|
if (TYPE_CODE (type) == TYPE_CODE_FLT)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user