[Bug target/47672] math-68881.h does not support C99

2015-01-16 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47672

Jeffrey A. Law law at redhat dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||law at redhat dot com
 Resolution|--- |WONTFIX

--- Comment #7 from Jeffrey A. Law law at redhat dot com ---
math-m68881.h is obsolete and should not be used.  There are no plans to
fix/upgrade the contents of that file.


[Bug target/47672] math-68881.h does not support C99

2011-06-06 Thread alanh at fairlite dot co.uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47672

Alan Hourihane alanh at fairlite dot co.uk changed:

   What|Removed |Added

 CC||alanh at fairlite dot co.uk

--- Comment #3 from Alan Hourihane alanh at fairlite dot co.uk 2011-06-06 
09:02:59 UTC ---
Should math-68881.h be part of a OS's libc/libm then ?


[Bug target/47672] math-68881.h does not support C99

2011-06-06 Thread vincent.riviere at freesbee dot fr
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.


[Bug target/47672] math-68881.h does not support C99

2011-06-06 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47672

--- Comment #5 from Mikael Pettersson mikpe at it dot uu.se 2011-06-06 
19:54:58 UTC ---
(In reply to comment #4)
 However, someone reported that all the functionnality of
 math-68881.h was not reported to -ffast-math: some instructions are missing.
...
 2) Move the missing functionnality from math-68881.h to -ffast-math, then
 remove math-68881.h from GCC.

I only see this PR and PR49295 mention math-68881.h, and neither PR lists any
missing instructions.

What specific instructions are missing from -ffast-math?


[Bug target/47672] math-68881.h does not support C99

2011-06-06 Thread vincent.riviere at freesbee dot fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47672

--- Comment #6 from Vincent Riviere vincent.riviere at freesbee dot fr 
2011-06-06 21:20:46 UTC ---
 What specific instructions are missing from -ffast-math?

I don't know myself, but I have been told it was the case.
http://gcc.gnu.org/ml/gcc/2011-02/msg00186.html


[Bug target/47672] math-68881.h does not support C99

2011-05-02 Thread sch...@linux-m68k.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47672

--- Comment #2 from Andreas Schwab sch...@linux-m68k.org 2011-05-02 17:20:40 
UTC ---
I'd rather remove that file.