PR gdb/12783
* i386-tdep.c (i386_return_value): Handle complex double and long double.
This commit is contained in:
parent
6e933c51ce
commit
2445fd7b3a
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2012-10-24 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
PR gdb/12783
|
||||||
|
* i386-tdep.c (i386_return_value): Handle complex double and long
|
||||||
|
double.
|
||||||
|
|
||||||
2012-10-24 Joel Brobecker <brobecker@adacore.com>
|
2012-10-24 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
|
* windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
|
||||||
|
|
|
@ -2630,6 +2630,9 @@ i386_return_value (struct gdbarch *gdbarch, struct value *function,
|
||||||
|| code == TYPE_CODE_UNION
|
|| code == TYPE_CODE_UNION
|
||||||
|| code == TYPE_CODE_ARRAY)
|
|| code == TYPE_CODE_ARRAY)
|
||||||
&& !i386_reg_struct_return_p (gdbarch, type))
|
&& !i386_reg_struct_return_p (gdbarch, type))
|
||||||
|
/* Complex double and long double uses the struct return covention. */
|
||||||
|
|| (code == TYPE_CODE_COMPLEX && TYPE_LENGTH (type) == 16)
|
||||||
|
|| (code == TYPE_CODE_COMPLEX && TYPE_LENGTH (type) == 24)
|
||||||
/* 128-bit decimal float uses the struct return convention. */
|
/* 128-bit decimal float uses the struct return convention. */
|
||||||
|| (code == TYPE_CODE_DECFLOAT && TYPE_LENGTH (type) == 16))
|
|| (code == TYPE_CODE_DECFLOAT && TYPE_LENGTH (type) == 16))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue