pkgsrc-Changes archive

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

CVS commit: pkgsrc/benchmarks/paranoia



Module Name:    pkgsrc
Committed By:   gdt
Date:           Thu Mar 26 00:15:57 UTC 2026

Modified Files:
        pkgsrc/benchmarks/paranoia: Makefile

Log Message:
benchmarks/paranoia: Set -fexcess-precision=standard

because the point is to test IEEE754, and an operating system
providing "not IEEE754" by default is a red herring.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/benchmarks/paranoia/Makefile

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

Modified files:

Index: pkgsrc/benchmarks/paranoia/Makefile
diff -u pkgsrc/benchmarks/paranoia/Makefile:1.22 pkgsrc/benchmarks/paranoia/Makefile:1.23
--- pkgsrc/benchmarks/paranoia/Makefile:1.22    Thu Oct  9 14:06:00 2014
+++ pkgsrc/benchmarks/paranoia/Makefile Thu Mar 26 00:15:57 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2014/10/09 14:06:00 wiz Exp $
+# $NetBSD: Makefile,v 1.23 2026/03/26 00:15:57 gdt Exp $
 
 DISTNAME=              paranoia
 PKGNAME=               paranoia-960101
@@ -19,9 +19,12 @@ WRKSRC=                      ${WRKDIR}
 
 INSTALLATION_DIRS=     bin
 
-# The use of -ffloat-store in CFLAGS is controversial.  The point of
-# the program is to test the compiler/machine environment, and
-# therefore this Makefile should not set non-default flags.
+# The point of the program is to test standard arithmetic.  However,
+# operating systems may offer extended (non-standard!) precision by
+# default.  Ask for IEEE754 compliance.
+# \todo Validate that this flag is always ok, and if trouble
+# conditionalize it.
+CFLAGS+=       -fexcess-precision=standard
 
 do-build:
        (cd ${WRKSRC} ; ${CC} ${CFLAGS} -o paranoia paranoia.c -lm)



Home | Main Index | Thread Index | Old Index