Fix complex floats on sparc.
authorDavid S. Miller <davem@redhat.com>
Wed, 28 Sep 2011 17:59:42 +0000 (17:59 +0000)
committerDavid S. Miller <davem@redhat.com>
Wed, 28 Sep 2011 17:59:42 +0000 (17:59 +0000)
commitfe10a582b69fc09ce4775071aa619b0a6fc5dd1a
tree90f615bc2c8d392eb1532c4aacb28a0b717b84d4
parent766ad876093f4df3a7f3836df3c705a2243ea2e7
Fix complex floats on sparc.

* sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
* sparc-tdep.c (sparc_complex_floating_p): New function.
(sparc32_store_arguments): Handle complex floats.
(sparc32_extract_return_value): Likewise.
(sparc32_store_return_value): Likewise.
(sparc32_stabs_argument_has_addr): Likewise.
* sparc64-tdep.c (sparc64_complex_floating_p): New function.
(sparc64_store_floating_fields): Handle complex floats.
(sparc64_store_arguments): Likewise.
(sparc64_store_return_value): Likewise.
gdb/ChangeLog
gdb/sparc-tdep.c
gdb/sparc-tdep.h
gdb/sparc64-tdep.c