NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: port-sparc64/41406: gcc - 32-bit executable generation is broken on sparc64




argh.

i fixed this in december but forgot to get it pulled up to
netbsd 5.0.  that has now been requested.

i've included the patch below.


.mrg.


Index: src/sys/arch/sparc/include/math.h
diff -c src/sys/arch/sparc/include/math.h:1.4 
src/sys/arch/sparc/include/math.h:1.5
*** src/sys/arch/sparc/include/math.h:1.4       Tue Feb 19 13:08:15 2002
--- src/sys/arch/sparc/include/math.h   Mon Dec 15 00:25:05 2008
***************
*** 1,3 ****
! /*    $NetBSD: math.h,v 1.4 2002/02/19 13:08:15 simonb Exp $  */
  
  #define       __HAVE_NANF
--- 1,7 ----
! /*    $NetBSD: math.h,v 1.5 2008/12/15 00:25:05 mrg Exp $     */
  
  #define       __HAVE_NANF
+ 
+ #ifdef _LP64
+ #define       __HAVE_LONG_DOUBLE
+ #endif
Index: src/sys/arch/sparc64/include/math.h
diff -c src/sys/arch/sparc64/include/math.h:1.6 
src/sys/arch/sparc64/include/math.h:1.7
*** src/sys/arch/sparc64/include/math.h:1.6     Sun Dec 11 12:19:10 2005
--- src/sys/arch/sparc64/include/math.h Mon Dec 15 00:25:05 2008
***************
*** 1,4 ****
! /*    $NetBSD: math.h,v 1.6 2005/12/11 12:19:10 christos Exp $        */
  
! #define       __HAVE_LONG_DOUBLE
! #define       __HAVE_NANF
--- 1,3 ----
! /*    $NetBSD: math.h,v 1.7 2008/12/15 00:25:05 mrg Exp $     */
  
! #include <sparc/math.h>


Home | Main Index | Thread Index | Old Index