Mips patch to honor -mfp32

Michael Meissner meissner@redhat.com
Tue Sep 11 07:34:00 GMT 2001


The GCC patch I submitted last night now defines __mips_fpr to be the
fpr register size on MIPS, and this patch that I committed honors
that.

2001-09-11  Michael Meissner  <meissner@redhat.com>

	* mips/crt0.S (_start): If -mfp32, don't enable 64-bit floating
	point registers, even if we are compiling for a mips3 or greater.

*** libgloss/mips/crt0.S.~1~	Thu Aug  9 00:18:25 2001
--- libgloss/mips/crt0.S	Sat Sep  8 02:37:50 2001
***************
*** 1,7 ****
  /*
   * crt0.S -- startup file for MIPS.
   *
!  * Copyright (c) 1995, 1996, 1997 Cygnus Support
   *
   * The authors hereby grant permission to use, copy, modify, distribute,
   * and license this software and its documentation for any purpose, provided
--- 1,7 ----
  /*
   * crt0.S -- startup file for MIPS.
   *
!  * Copyright (c) 1995, 1996, 1997, 2001 Cygnus Support
   *
   * The authors hereby grant permission to use, copy, modify, distribute,
   * and license this software and its documentation for any purpose, provided
*************** _start:
*** 64,70 ****
  	nop
  	move	s0,$31
  #endif
! #if __mips < 3
  #define STATUS_MASK (SR_CU1|SR_PE)
  #else
  # For mips3 or mips4, turn on 64-bit addressing and additional float regs
--- 64,70 ----
  	nop
  	move	s0,$31
  #endif
! #if (__mips < 3) || (__mips_fpr==32)
  #define STATUS_MASK (SR_CU1|SR_PE)
  #else
  # For mips3 or mips4, turn on 64-bit addressing and additional float regs

-- 
Michael Meissner, Red Hat, Inc.  (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482



More information about the Newlib mailing list