* aix-thread.c (fill_fprs): Fix off-by-one error comparing regno

with FPLAST_REGNUM.
This commit is contained in:
Jim Blandy 2004-05-04 17:40:40 +00:00
parent 2d6ed997cf
commit edf6116900
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-05-04 Jim Blandy <jimb@redhat.com>
* aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
with FPLAST_REGNUM.
2004-05-03 Joel Brobecker <brobecker@gnat.com> 2004-05-03 Joel Brobecker <brobecker@gnat.com>
* dwarf2read.c (dwarf2_create_include_psymtab): Fix build * dwarf2read.c (dwarf2_create_include_psymtab): Fix build

View File

@ -1262,7 +1262,7 @@ fill_fprs (double *vals)
{ {
int regno; int regno;
for (regno = FP0_REGNUM; regno < FPLAST_REGNUM; regno++) for (regno = FP0_REGNUM; regno <= FPLAST_REGNUM; regno++)
if (register_cached (regno)) if (register_cached (regno))
regcache_collect (regno, vals + regno); regcache_collect (regno, vals + regno);
} }