public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/19402] New: __builtin_powi? still missing
@ 2005-01-12 17:40 pcarlini at suse dot de
  2005-01-12 20:53 ` [Bug middle-end/19402] " rguenth at tat dot physik dot uni-tuebingen dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: pcarlini at suse dot de @ 2005-01-12 17:40 UTC (permalink / raw)
  To: gcc-bugs

In order to efficiently implement in the c++ run-time library the overloads of
std::pow for integer (*) exponent mandated in 26.5, three additional builtins are
badly needed, for float, double and long double base. For a discussion, see this
thread:

  http://gcc.gnu.org/ml/gcc-patches/2003-07/msg02738.html

See also libstdc++/11706.

(*) But not necessarily constant!

-- 
           Summary: __builtin_powi? still missing
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pcarlini at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org,gdr at integrable-
                    solutions dot net,roger at eyesopen dot com


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


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

* [Bug middle-end/19402] __builtin_powi? still missing
  2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
@ 2005-01-12 20:53 ` rguenth at tat dot physik dot uni-tuebingen dot de
  2005-01-14 13:53 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at tat dot physik dot uni-tuebingen dot de @ 2005-01-12 20:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at tat dot physik
                   |                            |dot uni-tuebingen dot de


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


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

* [Bug middle-end/19402] __builtin_powi? still missing
  2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
  2005-01-12 20:53 ` [Bug middle-end/19402] " rguenth at tat dot physik dot uni-tuebingen dot de
@ 2005-01-14 13:53 ` pinskia at gcc dot gnu dot org
  2005-01-28 15:29 ` rguenth at tat dot physik dot uni-tuebingen dot de
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-14 13:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-14 13:53 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-01-14 13:53:30
               date|                            |


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


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

* [Bug middle-end/19402] __builtin_powi? still missing
  2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
  2005-01-12 20:53 ` [Bug middle-end/19402] " rguenth at tat dot physik dot uni-tuebingen dot de
  2005-01-14 13:53 ` pinskia at gcc dot gnu dot org
@ 2005-01-28 15:29 ` rguenth at tat dot physik dot uni-tuebingen dot de
  2005-02-07 22:03 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at tat dot physik dot uni-tuebingen dot de @ 2005-01-28 15:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de  2005-01-28 15:29 -------
Looking into it.

-- 


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


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

* [Bug middle-end/19402] __builtin_powi? still missing
  2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
                   ` (2 preceding siblings ...)
  2005-01-28 15:29 ` rguenth at tat dot physik dot uni-tuebingen dot de
@ 2005-02-07 22:03 ` rguenth at gcc dot gnu dot org
  2005-02-10  0:42 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-02-07 22:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-02-07 13:33 -------
(Unreviewed) patch here:
http://gcc.gnu.org/ml/gcc-patches/2005-02/msg00156.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-01-14 13:53:30         |2005-02-07 13:33:25
               date|                            |


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


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

* [Bug middle-end/19402] __builtin_powi? still missing
  2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
                   ` (3 preceding siblings ...)
  2005-02-07 22:03 ` rguenth at gcc dot gnu dot org
@ 2005-02-10  0:42 ` cvs-commit at gcc dot gnu dot org
  2005-02-10  0:42 ` rguenth at gcc dot gnu dot org
  2005-04-20  2:19 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-10  0:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-09 20:58 -------
Subject: Bug 19402

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rguenth@gcc.gnu.org	2005-02-09 20:58:13

Modified files:
	gcc            : ChangeLog builtins.c builtins.def 
	                 libgcc-std.ver libgcc2.c libgcc2.h mklibgcc.in 
	                 optabs.c optabs.h 
	gcc/doc        : extend.texi 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: pr19402-2.c pr19402-1.c 

Log message:
	2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
	
	PR middle-end/19402
	
	* builtins.def: New __builtin_powi[lf].
	* builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
	(expand_builtin_powi): New function.
	(expand_builtin): Dispatch to expand_builtin_powi.
	* libgcc2.h: Add prototypes for __builtin_powi[lf].
	* libgcc2.c: Add __builtin_powi[lf] implementation.
	* mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
	* optabs.h: Add powi_optab.
	* optabs.c (init_optabs): Initialize powi_optab.
	* doc/extend.texi: Document __builtin_powi[lf].
	
	* gcc.dg/pr19402-1.c: New testcase.
	* gcc.dg/pr19402-2.c: likewise.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7422&r2=2.7423
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.c.diff?cvsroot=gcc&r1=1.416&r2=1.417
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/builtins.def.diff?cvsroot=gcc&r1=1.92&r2=1.93
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/libgcc-std.ver.diff?cvsroot=gcc&r1=1.27&r2=1.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/libgcc2.c.diff?cvsroot=gcc&r1=1.179&r2=1.180
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/libgcc2.h.diff?cvsroot=gcc&r1=1.33&r2=1.34
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/mklibgcc.in.diff?cvsroot=gcc&r1=1.80&r2=1.81
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/optabs.c.diff?cvsroot=gcc&r1=1.258&r2=1.259
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/optabs.h.diff?cvsroot=gcc&r1=1.47&r2=1.48
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/extend.texi.diff?cvsroot=gcc&r1=1.238&r2=1.239
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5007&r2=1.5008
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr19402-2.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr19402-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug middle-end/19402] __builtin_powi? still missing
  2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
                   ` (4 preceding siblings ...)
  2005-02-10  0:42 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-10  0:42 ` rguenth at gcc dot gnu dot org
  2005-04-20  2:19 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-02-10  0:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rguenth at gcc dot gnu dot org  2005-02-09 20:59 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug middle-end/19402] __builtin_powi? still missing
  2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
                   ` (5 preceding siblings ...)
  2005-02-10  0:42 ` rguenth at gcc dot gnu dot org
@ 2005-04-20  2:19 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-20  2:19 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2005-04-20  2:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-12 17:40 [Bug middle-end/19402] New: __builtin_powi? still missing pcarlini at suse dot de
2005-01-12 20:53 ` [Bug middle-end/19402] " rguenth at tat dot physik dot uni-tuebingen dot de
2005-01-14 13:53 ` pinskia at gcc dot gnu dot org
2005-01-28 15:29 ` rguenth at tat dot physik dot uni-tuebingen dot de
2005-02-07 22:03 ` rguenth at gcc dot gnu dot org
2005-02-10  0:42 ` cvs-commit at gcc dot gnu dot org
2005-02-10  0:42 ` rguenth at gcc dot gnu dot org
2005-04-20  2:19 ` pinskia at gcc dot gnu dot org

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