public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: Stefan Kanthak <stefan.kanthak@nexgo.de>
Cc: <gcc@gcc.gnu.org>
Subject: Re: Are some builtin functions (for example log() vs. sqrt()) more equal than others?
Date: Fri, 30 Jul 2021 16:33:56 +0000	[thread overview]
Message-ID: <alpine.DEB.2.22.394.2107301631370.581212@digraph.polyomino.org.uk> (raw)
In-Reply-To: <D728606F9F0D4BF18F22E26ADCE3E82F@H270>

None of these are valid constant expressions as defined by the standard 
(constant expressions cannot involve evaluated function calls).  Some 
might be accepted as an extension, but I expect that since the 
optimization for constant arguments is intended for valid calls that would 
otherwise be executed at runtime, not for static initializers, it's 
avoiding optimizations that would result in the loss of floating-point 
exception flag raising.

-- 
Joseph S. Myers
joseph@codesourcery.com

  reply	other threads:[~2021-07-30 16:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30 15:30 Stefan Kanthak
2021-07-30 16:33 ` Joseph Myers [this message]
2021-07-30 19:53   ` Stefan Kanthak
2021-07-30 20:51     ` Joseph Myers
2021-07-30 21:54       ` Stefan Kanthak

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.22.394.2107301631370.581212@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=gcc@gcc.gnu.org \
    --cc=stefan.kanthak@nexgo.de \
    /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).