CVS commit: pkgsrc/benchmarks/paranoia

"Greg Troxel" <[email protected]> Thu, 30 Jul 2026 23:12:20 +0000
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	gdt
Date:		Thu Jul 30 23:12:20 UTC 2026

Modified Files:
	pkgsrc/benchmarks/paranoia: distinfo
	pkgsrc/benchmarks/paranoia/patches: patch-aa

Log Message:
benchmarks/paranoia: Declare main as returning int


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/benchmarks/paranoia/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/benchmarks/paranoia/patches/patch-aa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 4.6 KB)
Modified files:

Index: pkgsrc/benchmarks/paranoia/distinfo
diff -u pkgsrc/benchmarks/paranoia/distinfo:1.6 pkgsrc/benchmarks/paranoia/distinfo:1.7
--- pkgsrc/benchmarks/paranoia/distinfo:1.6	Tue Oct 26 10:02:54 2021
+++ pkgsrc/benchmarks/paranoia/distinfo	Thu Jul 30 23:12:19 2026
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2021/10/26 10:02:54 nia Exp $
+$NetBSD: distinfo,v 1.7 2026/07/30 23:12:19 gdt Exp $
 
 BLAKE2s (paranoia.c) = 8ad9787560bcb1e733b92e841f91b592f9b8d0806f4ff8dd3a4467194f7f7867
 SHA512 (paranoia.c) = 13a3310c31c6a0790c8caadb7d344827cb92bb90ab1d59fe285432cd742abbe24f008cc0f4a4907d8af21bc767c02b2fdc6202426000d504906675cea28cf9ec
 Size (paranoia.c) = 58985 bytes
-SHA1 (patch-aa) = 596225abb8d2e4c7458ba9fd33c39313121d5e5c
+SHA1 (patch-aa) = 84e4b318b8d00a90098d4f64293b8a062ad88cb4

Index: pkgsrc/benchmarks/paranoia/patches/patch-aa
diff -u pkgsrc/benchmarks/paranoia/patches/patch-aa:1.1 pkgsrc/benchmarks/paranoia/patches/patch-aa:1.2
--- pkgsrc/benchmarks/paranoia/patches/patch-aa:1.1	Tue Mar 16 08:54:32 1999
+++ pkgsrc/benchmarks/paranoia/patches/patch-aa	Thu Jul 30 23:12:19 2026
@@ -1,10 +1,12 @@
-$NetBSD: patch-aa,v 1.1 1999/03/16 08:54:32 agc Exp $
+$NetBSD: patch-aa,v 1.2 2026/07/30 23:12:19 gdt Exp $
 
 The sigfpe function clashes with the gcc one. Rename it for now.
 
---- paranoia.c	1999/03/16 08:41:31	1.1
-+++ paranoia.c	1999/03/16 08:42:30
-@@ -213,7 +213,7 @@
+Declare main with int return type.
+
+--- paranoia.c.orig	2026-07-30 23:07:35.097693690 +0000
++++ paranoia.c
+@@ -213,7 +213,7 @@ s/$/\
  /^jmp_buf/s/^/extern /
  /^Sig_type/s/^/extern /
  s/$/\
@@ -13,7 +15,7 @@ The sigfpe function clashes with the gcc
  w paranoia.h
  q
  
-@@ -381,7 +381,7 @@
+@@ -381,7 +381,7 @@ int Break, Done, NotMonot, Monot, Anomaly, IEEE,
  
  /* floating point exception receiver */
   void
@@ -22,7 +24,15 @@ The sigfpe function clashes with the gcc
  {
  	fpecount++;
  	printf("\n* * * FLOATING-POINT ERROR %d * * *\n", x);
-@@ -422,7 +422,7 @@
+@@ -396,6 +396,7 @@ sigfpe(INT x)
+ 	exit(1);
+ }
+ 
++int
+ main(VOID)
+ {
+ 	/* First two assignments use integer right-hand sides. */
+@@ -422,7 +423,7 @@ main(VOID)
  	Milestone = 0;
  	/*=============================================*/
  #ifndef NOSIGNAL
@@ -31,7 +41,7 @@ The sigfpe function clashes with the gcc
  #endif
  	Instructions();
  	Pause();
-@@ -1493,7 +1493,7 @@
+@@ -1493,7 +1494,7 @@ void part6(VOID){
  		}
  	if (UfNGrad) {
  		printf("\n");
@@ -40,7 +50,7 @@ The sigfpe function clashes with the gcc
  		if (setjmp(ovfl_buf)) {
  			printf("Underflow / UfThold failed!\n");
  			R = H + H;
-@@ -1519,7 +1519,7 @@
+@@ -1519,7 +1520,7 @@ void part6(VOID){
  			printf("    if (X == Z)  ...  else");
  			printf("  ... (f(X) - f(Z)) / (X - Z) ...\n");
  			printf("encounter Division by Zero although actually\n");
@@ -49,7 +59,7 @@ The sigfpe function clashes with the gcc
  			if (setjmp(ovfl_buf)) printf("X / Z fails!\n");
  			else printf("X / Z = 1 + %g .\n", (X / Z - Half) - Half);
  			sigsave = 0;
-@@ -1563,7 +1563,7 @@
+@@ -1563,7 +1564,7 @@ void part7(VOID){
  		BadCond(Serious, "trap on underflow.\n");
  		}
  	else {
@@ -58,7 +68,7 @@ The sigfpe function clashes with the gcc
  		V9 = POW(HInvrse, Y2);
  		sigsave = 0;
  		printf(" %.17e .\n", V9);
-@@ -1670,7 +1670,7 @@
+@@ -1670,7 +1671,7 @@ void part7(VOID){
  	printf("This may generate an error.\n");
  	Y = - CInvrse;
  	V9 = HInvrse * Y;
@@ -67,7 +77,7 @@ The sigfpe function clashes with the gcc
  	if (setjmp(ovfl_buf)) { I = 0; V9 = Y; goto overflow; }
  	do {
  		V = Y;
-@@ -1792,7 +1792,7 @@
+@@ -1792,7 +1793,7 @@ int part8(VOID){
  			case 5: X = Radix;
  			}
  		Y = X;
@@ -76,7 +86,7 @@ The sigfpe function clashes with the gcc
  		if (setjmp(ovfl_buf))
  			printf("  X / X  traps when X = %g\n", X);
  		else {
-@@ -1819,7 +1819,7 @@
+@@ -1819,7 +1820,7 @@ int part8(VOID){
  	read (KEYBOARD, ch, 8);
  	if ((ch[0] == 'Y') || (ch[0] == 'y')) {
  #endif
@@ -85,7 +95,7 @@ The sigfpe function clashes with the gcc
  		printf("    Trying to compute 1 / 0 produces ...");
  		if (!setjmp(ovfl_buf)) printf("  %.7e .\n", One / MyZero);
  		sigsave = 0;
-@@ -1831,7 +1831,7 @@
+@@ -1831,7 +1832,7 @@ int part8(VOID){
  	read (KEYBOARD, ch, 80);
  	if ((ch[0] == 'Y') || (ch[0] == 'y')) {
  #endif
@@ -94,7 +104,7 @@ The sigfpe function clashes with the gcc
  		printf("\n    Trying to compute 0 / 0 produces ...");
  		if (!setjmp(ovfl_buf)) printf("  %.7e .\n", Zero / MyZero);
  		sigsave = 0;
-@@ -2071,7 +2071,7 @@
+@@ -2071,7 +2072,7 @@ TstPtUf(VOID)
  	if (Z != Zero) {
  		printf("Since comparison denies Z = 0, evaluating ");
  		printf("(Z + Z) / Z should be safe.\n");