public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30250]  New: Evaluate lgamma/gamma at compile-time
@ 2006-12-18 14:50 ghazi at gcc dot gnu dot org
  2006-12-24  3:33 ` [Bug middle-end/30250] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2006-12-18 14:50 UTC (permalink / raw)
  To: gcc-bugs

We should use MPFR to evaluate c99 lgamma function (and the common extension
function gamma).  However we have to wait until MPFR implements a suitable
interface as described here:

http://gforge.inria.fr/plugins/scmsvn/viewcvs.php/trunk/TODO?root=mpfr&rev=4214&r1=4205&r2=4214


-- 
           Summary: Evaluate lgamma/gamma at compile-time
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: middle-end
        AssignedTo: ghazi at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org
 BugsThisDependsOn: 29335


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


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

* [Bug middle-end/30250] Evaluate lgamma/gamma at compile-time
  2006-12-18 14:50 [Bug middle-end/30250] New: Evaluate lgamma/gamma at compile-time ghazi at gcc dot gnu dot org
@ 2006-12-24  3:33 ` pinskia at gcc dot gnu dot org
  2007-05-07  6:35 ` ghazi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-24  3:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-24 03:33 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-12-24 03:33:42
               date|                            |


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


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

* [Bug middle-end/30250] Evaluate lgamma/gamma at compile-time
  2006-12-18 14:50 [Bug middle-end/30250] New: Evaluate lgamma/gamma at compile-time ghazi at gcc dot gnu dot org
  2006-12-24  3:33 ` [Bug middle-end/30250] " pinskia at gcc dot gnu dot org
@ 2007-05-07  6:35 ` ghazi at gcc dot gnu dot org
  2007-05-10  7:14 ` patchapp at dberlin dot org
  2007-05-19  4:18 ` ghazi at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-05-07  6:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ghazi at gcc dot gnu dot org  2007-05-07 07:35 -------
I'll be doing the reentrant lgamma_r/gamma_r versions as well.  (They're
actually easier because I get the signgam identifer as a pointer parameter
rather than having to find it at global scope.)


-- 


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


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

* [Bug middle-end/30250] Evaluate lgamma/gamma at compile-time
  2006-12-18 14:50 [Bug middle-end/30250] New: Evaluate lgamma/gamma at compile-time ghazi at gcc dot gnu dot org
  2006-12-24  3:33 ` [Bug middle-end/30250] " pinskia at gcc dot gnu dot org
  2007-05-07  6:35 ` ghazi at gcc dot gnu dot org
@ 2007-05-10  7:14 ` patchapp at dberlin dot org
  2007-05-19  4:18 ` ghazi at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: patchapp at dberlin dot org @ 2007-05-10  7:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from patchapp at dberlin dot org  2007-05-10 08:14 -------
Subject: Bug number PR middle-end/30250

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00619.html


-- 


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


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

* [Bug middle-end/30250] Evaluate lgamma/gamma at compile-time
  2006-12-18 14:50 [Bug middle-end/30250] New: Evaluate lgamma/gamma at compile-time ghazi at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-05-10  7:14 ` patchapp at dberlin dot org
@ 2007-05-19  4:18 ` ghazi at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2007-05-19  4:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ghazi at gcc dot gnu dot org  2007-05-19 05:18 -------
Subject: Bug 30250

Author: ghazi
Date: Sat May 19 04:18:05 2007
New Revision: 124849

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124849
Log:
        PR middle-end/30250
        * builtins.c (do_mpfr_lgamma_r): New.
        (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
        * tree.h (CASE_FLT_FN_REENT): New.

testsuite:
        * gcc.dg/torture/builtin-math-2.c: Add gamma_r/lgamma_r tests.
        * gcc.dg/torture/builtin-math-4.c: Likewise.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/builtin-math-2.c
    trunk/gcc/testsuite/gcc.dg/torture/builtin-math-4.c
    trunk/gcc/tree.h


-- 


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


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

end of thread, other threads:[~2007-05-19  4:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-18 14:50 [Bug middle-end/30250] New: Evaluate lgamma/gamma at compile-time ghazi at gcc dot gnu dot org
2006-12-24  3:33 ` [Bug middle-end/30250] " pinskia at gcc dot gnu dot org
2007-05-07  6:35 ` ghazi at gcc dot gnu dot org
2007-05-10  7:14 ` patchapp at dberlin dot org
2007-05-19  4:18 ` ghazi 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).