This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix -mdisable-fpregs on hppa64-*-*
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 7 Aug 2005 23:48:21 -0400 (EDT)
- Subject: [committed] Fix -mdisable-fpregs on hppa64-*-*
This little bug in -mdisable-fpregs has been around since the hppa64
port was instroduced. We weren't fixing fr31. This caused some nasty
problems that were difficult to debug in some 64-bit linux kernels.
The change doesn't affect normal user space code.
Tested on hppa64-hp-hpux11.11. Committed to all active branches.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
Index: config/pa/pa64-regs.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa64-regs.h,v
retrieving revision 1.20
diff -u -3 -p -r1.20 pa64-regs.h
--- config/pa/pa64-regs.h 5 Jul 2005 01:57:01 -0000 1.20
+++ config/pa/pa64-regs.h 7 Aug 2005 23:03:57 -0000
@@ -106,7 +106,7 @@ Boston, MA 02110-1301, USA. */
int i; \
if (TARGET_DISABLE_FPREGS || TARGET_SOFT_FLOAT)\
{ \
- for (i = FP_REG_FIRST; i < FP_REG_LAST; i++)\
+ for (i = FP_REG_FIRST; i <= FP_REG_LAST; i++)\
fixed_regs[i] = call_used_regs[i] = 1; \
} \
if (flag_pic) \