[PATCH 10/10] Don't use copysign in initializer
Sam James
sam@gentoo.org
Sat Dec 14 09:39:12 GMT 2024
"H.J. Lu" <hjl.tools@gmail.com> writes:
> On Fri, Dec 13, 2024, 9:34 PM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Dez 13 2024, H.J. Lu wrote:
>
> > GCC 4.9 issues an error for copysign in initializer:
> >
> > In file included from tst-printf-format-p-double.c:20:0:
> > tst-printf-format-skeleton-double.c:29:3: error: initializer element is not a constant expression [-Werror]
> > { -HUGE_VAL, -DBL_MAX, -DBL_MIN, copysign (0, -1), -NAN, NAN, 0, DBL_MIN,
>
> Is there a compiler where -0.0 doesn't do the right thing?
>
> -0.0 works for all GCCs I tried. Will make the change.
>
> Thank you.
LGTM (of course).
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
More information about the Libc-alpha
mailing list