NetBSD-Bugs archive

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

Re: bin/59093: compile errors for userland on amd64 with gcc and -march=nativ



The following reply was made to PR bin/59093; it has been noted by GNATS.

From: Onno van der Linden <o.vd.linden%quicknet.nl@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/59093: compile errors for userland on amd64 with gcc and
 -march=nativ
Date: Sat, 22 Feb 2025 15:40:40 +0100

 It looks like nadj needs to be initialized to zero in lgammal_r() in
 ld128/e_lgammal_r.c too (just like in __ieee754_lgamma_r() and
 __ieee754_lgammaf_r()):
 
 --- /usr/src/lib/libm/ld128/e_lgammal_r.c	2024-01-21 19:53:15.000000000 +0100
 +++ /usr/src/lib/libm/ld128/e_lgammal_r.c.new	2025-02-22 15:35:03.976922498 +0100
 @@ -221,7 +221,7 @@
  long double
  lgammal_r(long double x, int *signgamp)
  {
 -	long double nadj,p,p1,p2,q,r,t,w,y,z;
 +	long double nadj = 0,p,p1,p2,q,r,t,w,y,z;
  	uint64_t llx,lx;
  	int i;
  	uint16_t hx,ix;
 


Home | Main Index | Thread Index | Old Index