[PATCH 10/10] Don't use copysign in initializer
H.J. Lu
hjl.tools@gmail.com
Fri Dec 13 23:39:19 GMT 2024
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.
> --
> 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."
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20241214/80594f75/attachment-0001.htm>
More information about the Libc-alpha
mailing list