* sparc64-tdep.c (sparc64_store_floating_fields): Update comment

such that it mentions a specific version of GCC that exhibits this
bug.
This commit is contained in:
Mark Kettenis 2004-01-03 23:24:57 +00:00
parent 696419f58e
commit 5154b0cdb1
2 changed files with 10 additions and 2 deletions

View File

@ -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> 2004-01-03 Mark Kettenis <kettenis@gnu.org>
* sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a

View File

@ -674,8 +674,10 @@ sparc64_store_floating_fields (struct regcache *regcache, struct type *type,
at all, but rather as an ordinary `float' argument. This at all, but rather as an ordinary `float' argument. This
argument will be stored in %f1, as required by the psABI. argument will be stored in %f1, as required by the psABI.
However, as a member of a structure the psABI requires it to However, as a member of a structure the psABI requires it to
be stored in. To appease GCC, if a structure has only a be stored in %f0. This bug is present in GCC 3.3.2, but
single `float' member, we store its value in %f1 too. */ 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) if (TYPE_NFIELDS (type) == 1)
{ {
struct type *subtype = check_typedef (TYPE_FIELD_TYPE (type, 0)); struct type *subtype = check_typedef (TYPE_FIELD_TYPE (type, 0));