summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-01-03 23:24:57 +0000
committerMark Kettenis <kettenis@gnu.org>2004-01-03 23:24:57 +0000
commit331f3d6bb7004d6909a713e81a2cfb9900812241 (patch)
tree6043285bb286333549328a31f70cae8ced2325c6 /gdb
parent4ed83266a1e481d45c7e446ddda5815de3f2034c (diff)
downloadgdb-331f3d6bb7004d6909a713e81a2cfb9900812241.tar.gz
* sparc64-tdep.c (sparc64_store_floating_fields): Update comment
such that it mentions a specific version of GCC that exhibits this bug.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/sparc64-tdep.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 65db16f443e..a2bbed57a7e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2004-01-04 Mark Kettenis <kettenis@gnu.org>
+
+ * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
+ such that it mentions a specific version of GCC that exhibits this
+ bug.
+
2004-01-03 Mark Kettenis <kettenis@gnu.org>
* sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c
index bf3aeca1dbd..7e707918174 100644
--- a/gdb/sparc64-tdep.c
+++ b/gdb/sparc64-tdep.c
@@ -674,8 +674,10 @@ sparc64_store_floating_fields (struct regcache *regcache, struct type *type,
at all, but rather as an ordinary `float' argument. This
argument will be stored in %f1, as required by the psABI.
However, as a member of a structure the psABI requires it to
- be stored in. To appease GCC, if a structure has only a
- single `float' member, we store its value in %f1 too. */
+ be stored in %f0. This bug is present in GCC 3.3.2, but
+ probably in older releases to. To appease GCC, if a
+ structure has only a single `float' member, we store its
+ value in %f1 too (we already have stored in %f0). */
if (TYPE_NFIELDS (type) == 1)
{
struct type *subtype = check_typedef (TYPE_FIELD_TYPE (type, 0));