public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/34245]  New: Missing __builtin_fpclassify
@ 2007-11-27 11:46 pcarlini at suse dot de
  2007-11-27 12:49 ` [Bug middle-end/34245] " rguenth at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: pcarlini at suse dot de @ 2007-11-27 11:46 UTC (permalink / raw)
  To: gcc-bugs

Builtins for all the other floating-point classification macros are already
implemented and it would be nice to complete the set with __builtin_fpclassify
(could be certainly exploited in libstdc++, also)


-- 
           Summary: Missing __builtin_fpclassify
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pcarlini at suse dot de


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/34245] Missing __builtin_fpclassify
  2007-11-27 11:46 [Bug middle-end/34245] New: Missing __builtin_fpclassify pcarlini at suse dot de
@ 2007-11-27 12:49 ` rguenth at gcc dot gnu dot org
  2007-11-27 15:35 ` joseph at codesourcery dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-11-27 12:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-11-27 12:49 -------
Confirmed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-11-27 12:49:12
               date|                            |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/34245] Missing __builtin_fpclassify
  2007-11-27 11:46 [Bug middle-end/34245] New: Missing __builtin_fpclassify pcarlini at suse dot de
  2007-11-27 12:49 ` [Bug middle-end/34245] " rguenth at gcc dot gnu dot org
@ 2007-11-27 15:35 ` joseph at codesourcery dot com
  2007-11-27 16:01 ` pcarlini at suse dot de
  2007-11-27 16:20 ` joseph at codesourcery dot com
  3 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2007-11-27 15:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from joseph at codesourcery dot com  2007-11-27 15:34 -------
Subject: Re:   New: Missing __builtin_fpclassify

As previously discussed, this builtin would either need to be used in the 
form

#define fpclassify(x) __builtin_fpclassify(FP_INFINITE, FP_NAN, FP_NORMAL,
FP_SUBNORMAL, FP_ZERO, (x))

or would need GCC to be configured with target-specific information about 
FP_*, since the values of the FP_* macros are not standardized.


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/34245] Missing __builtin_fpclassify
  2007-11-27 11:46 [Bug middle-end/34245] New: Missing __builtin_fpclassify pcarlini at suse dot de
  2007-11-27 12:49 ` [Bug middle-end/34245] " rguenth at gcc dot gnu dot org
  2007-11-27 15:35 ` joseph at codesourcery dot com
@ 2007-11-27 16:01 ` pcarlini at suse dot de
  2007-11-27 16:20 ` joseph at codesourcery dot com
  3 siblings, 0 replies; 6+ messages in thread
From: pcarlini at suse dot de @ 2007-11-27 16:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pcarlini at suse dot de  2007-11-27 16:00 -------
(In reply to comment #2)
> As previously discussed,

Didn't know about that. If you have a pointer, I would like to read the thread.

                           this builtin would either need to be used in the 
> form
> 
> #define fpclassify(x) __builtin_fpclassify(FP_INFINITE, FP_NAN, FP_NORMAL,
> FP_SUBNORMAL, FP_ZERO, (x))

In my opinion, this would be already a nice improvement.

> or would need GCC to be configured with target-specific information about 
> FP_*, since the values of the FP_* macros are not standardized.

I see. At the moment, I'm not able to understand whether that is a major /
controversial change... I would appreciate some additional details, if
possible. Thanks.


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/34245] Missing __builtin_fpclassify
  2007-11-27 11:46 [Bug middle-end/34245] New: Missing __builtin_fpclassify pcarlini at suse dot de
                   ` (2 preceding siblings ...)
  2007-11-27 16:01 ` pcarlini at suse dot de
@ 2007-11-27 16:20 ` joseph at codesourcery dot com
  3 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2007-11-27 16:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from joseph at codesourcery dot com  2007-11-27 16:20 -------
Subject: Re:  Missing __builtin_fpclassify

On Tue, 27 Nov 2007, pcarlini at suse dot de wrote:

> > As previously discussed,
> 
> Didn't know about that. If you have a pointer, I would like to read the thread.

http://gcc.gnu.org/ml/gcc-patches/2007-01/msg02210.html


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug middle-end/34245] Missing __builtin_fpclassify
       [not found] <bug-34245-16141@http.gcc.gnu.org/bugzilla/>
@ 2009-07-24  9:07 ` paolo dot carlini at oracle dot com
  0 siblings, 0 replies; 6+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-07-24  9:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2009-07-24 09:07 -------
Implemented here:

2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

        * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
        * builtins.c (fold_builtin_fpclassify): New.
        (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
        * builtins.def (BUILT_IN_FPCLASSIFY): New.
        * c-common.c (handle_type_generic_attribute): Adjust to accept
        fixed arguments before an elipsis.
        (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
        * doc/extend.texi: Document __builtin_fpclassify.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.4.0


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-24  9:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27 11:46 [Bug middle-end/34245] New: Missing __builtin_fpclassify pcarlini at suse dot de
2007-11-27 12:49 ` [Bug middle-end/34245] " rguenth at gcc dot gnu dot org
2007-11-27 15:35 ` joseph at codesourcery dot com
2007-11-27 16:01 ` pcarlini at suse dot de
2007-11-27 16:20 ` joseph at codesourcery dot com
     [not found] <bug-34245-16141@http.gcc.gnu.org/bugzilla/>
2009-07-24  9:07 ` paolo dot carlini at oracle dot com

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).