public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "vincent.riviere at freesbee dot fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/47672] math-68881.h does not support C99
Date: Mon, 06 Jun 2011 19:06:00 -0000	[thread overview]
Message-ID: <bug-47672-4-v4yKQVDC6s@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-47672-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47672

--- Comment #4 from Vincent Riviere <vincent.riviere at freesbee dot fr> 2011-06-06 19:06:07 UTC ---
Normal math implementation should always reside inside libm, to fully support 
exceptions, error handling, etc.

When better speed is required, and strict standard compliance is not required,
a user can compile his program with -ffast-math. As a result, any call to sin()
will be implemented by a single fsin instruction rather than a call to libm.
The purpose is the same as math-68881.h. But the implementation is different:
math-68881.h relies on the preprocessor, while -ffast-math is directly handled
by GCC at low level for better register usage, etc. This is why ideally
math-68881.h should be removed from GCC and -ffast-math always used by the
users, when needed. However, someone reported that all the functionnality of
math-68881.h was not reported to -ffast-math: some instructions are missing.

So I propose the following roadmap:

1) Commit my proposed patch, then close this bug. This will fix the current
math-68881.h for C99. I hit that problem when compiling libtiff.

2) Move the missing functionnality from math-68881.h to -ffast-math, then
remove math-68881.h from GCC.


  parent reply	other threads:[~2011-06-06 19:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09 23:24 [Bug c/47672] New: " vincent.riviere at freesbee dot fr
2011-02-09 23:43 ` [Bug c/47672] " vincent.riviere at freesbee dot fr
2011-05-02 17:47 ` [Bug target/47672] " schwab@linux-m68k.org
2011-06-06  9:03 ` alanh at fairlite dot co.uk
2011-06-06 19:06 ` vincent.riviere at freesbee dot fr [this message]
2011-06-06 19:55 ` mikpe at it dot uu.se
2011-06-06 21:21 ` vincent.riviere at freesbee dot fr
2015-01-17  7:57 ` law at redhat dot com

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=bug-47672-4-v4yKQVDC6s@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).