From: Bruno Haible <bruno@clisp.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Jesse <jesse.caldwell@colorado.edu>,
34817@debbugs.gnu.org, bug-gnulib@gnu.org
Subject: Re: bug#34817: coreutils 8.31 compile failure on rhel5
Date: Wed, 13 Mar 2019 23:36:25 +0100 [thread overview]
Message-ID: <3275109.1JdEJAp8OA@omega> (raw)
In-Reply-To: <20672bb0-97a3-7aab-4b6c-47807f3b1f0d@cs.ucla.edu>
Hi Paul,
> Making the variable 'static' might cause some compilers to notice that
> the variable never changes, so it's a constant, so it can be folded, and
> then they (mistakenly) convert -0.0 to 0.0. Originally the variable was
> extern and the extern hack prevents most compilers from doing this
> incorrect optimization (unless they're doing whole-program optimization,
> which typically they aren't). Since making the variable static removed
> the hack, I decided it was clearer to use the larger change, which makes
> it more obvious that we aren't trying to work around this potential
> problem any more.
Yes, I perfectly agree. When I said "a simpler fix", I did not mean
"a better fix". Your fix is the more reliable one!
Bruno
next prev parent reply other threads:[~2019-03-13 22:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201903111716.x2BHGEjY016306@refuge.colorado.edu>
2019-03-11 23:42 ` bug#34817: coreutils 8.31 compile failure on rhel5 Paul Eggert
2019-03-13 18:35 ` Bruno Haible
2019-03-13 21:49 ` Paul Eggert
2019-03-13 22:36 ` Bruno Haible [this message]
2019-03-11 23:54 Jesse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3275109.1JdEJAp8OA@omega \
--to=bruno@clisp.org \
--cc=34817@debbugs.gnu.org \
--cc=bug-gnulib@gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=jesse.caldwell@colorado.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).