Module Name:    src
Committed By:   njoly
Date:           Fri Mar  9 08:03:53 UTC 2012

Modified Files:
        src/lib/libm: Makefile

Log Message:
On alpha compile the math library with dynamic rounding mode instead
of fixed normal IEEE rounding mode. This makes function that depends on
the current rounding mode, such as rint(3), just work.


To generate a diff of this commit:
cvs rdiff -u -r1.120 -r1.121 src/lib/libm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.120 src/lib/libm/Makefile:1.121
--- src/lib/libm/Makefile:1.120	Sat Sep 17 10:51:52 2011
+++ src/lib/libm/Makefile	Fri Mar  9 08:03:53 2012
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.120 2011/09/17 10:51:52 jruoho Exp $
+#  $NetBSD: Makefile,v 1.121 2012/03/09 08:03:53 njoly Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -117,6 +117,10 @@ WARNS?=4
 .PATH:	${.CURDIR}/src
 .PATH:	${.CURDIR}/noieee_src
 
+.if (${MACHINE_ARCH} == "alpha")
+CFLAGS+= -mfp-rounding-mode=d
+.endif
+
 .if (${MACHINE_ARCH} != "vax")
 CPPFLAGS+= -D_MULTI_LIBM -D_POSIX_MODE
 # XXX noieee libm is gross

Reply via email to