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
The following reply was made to PR port-sparc64/41406; it has been noted by
GNATS.
From: matthew green <mrg%eterna.com.au@localhost>
To: gnats-bugs%NetBSD.org@localhost, raymond.meyer%rambler.ru@localhost
Cc: port-sparc64-maintainer%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost
Subject: re: port-sparc64/41406: gcc - 32-bit executable generation is broken
on sparc64
Date: Tue, 12 May 2009 02:58:49 +1000
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