public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/17190] New: MPFR semantics for mpfr_get_z_exp changed
@ 2004-08-25 20:44 dje at gcc dot gnu dot org
  2004-08-25 20:49 ` [Bug fortran/17190] " pbrook at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-08-25 20:44 UTC (permalink / raw)
  To: gcc-bugs

mpfr_get_z_exp() changed to return both a negative exponent and a negative 
value between 2.0.1 (included in gmp-4.1.3) and 2.0.2.  
fortran/arith.c:gfc_mpfr_to_mpz() expects a positive value and negates the 
sign, producing an incorrect result with newer versions of MPFR.

-- 
           Summary: MPFR semantics for mpfr_get_z_exp changed
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dje at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: *-*-*
  GCC host triplet: *-*-*
GCC target triplet: *-*-*


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


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

* [Bug fortran/17190] MPFR semantics for mpfr_get_z_exp changed
  2004-08-25 20:44 [Bug fortran/17190] New: MPFR semantics for mpfr_get_z_exp changed dje at gcc dot gnu dot org
@ 2004-08-25 20:49 ` pbrook at gcc dot gnu dot org
  2004-08-25 21:04 ` cvs-commit at gcc dot gnu dot org
  2004-08-25 21:09 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pbrook at gcc dot gnu dot org @ 2004-08-25 20:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pbrook at gcc dot gnu dot org  2004-08-25 20:48 -------
This is a bug in mpfr 2.0.1, but it's easy to work around.  Patch is testing 
now. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-08-25 20:48:58
               date|                            |


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


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

* [Bug fortran/17190] MPFR semantics for mpfr_get_z_exp changed
  2004-08-25 20:44 [Bug fortran/17190] New: MPFR semantics for mpfr_get_z_exp changed dje at gcc dot gnu dot org
  2004-08-25 20:49 ` [Bug fortran/17190] " pbrook at gcc dot gnu dot org
@ 2004-08-25 21:04 ` cvs-commit at gcc dot gnu dot org
  2004-08-25 21:09 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-25 21:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-08-25 21:04 -------
Subject: Bug 17190

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pbrook@gcc.gnu.org	2004-08-25 21:04:49

Modified files:
	gcc/fortran    : ChangeLog arith.c 

Log message:
	PR fortran/17190
	* arith.c (gfc_mpfr_to_mpz): Workaround mpfr bug.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.174&r2=1.175
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/arith.c.diff?cvsroot=gcc&r1=1.11&r2=1.12



-- 


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


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

* [Bug fortran/17190] MPFR semantics for mpfr_get_z_exp changed
  2004-08-25 20:44 [Bug fortran/17190] New: MPFR semantics for mpfr_get_z_exp changed dje at gcc dot gnu dot org
  2004-08-25 20:49 ` [Bug fortran/17190] " pbrook at gcc dot gnu dot org
  2004-08-25 21:04 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-25 21:09 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-25 21:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-25 21:09 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-08-25 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-25 20:44 [Bug fortran/17190] New: MPFR semantics for mpfr_get_z_exp changed dje at gcc dot gnu dot org
2004-08-25 20:49 ` [Bug fortran/17190] " pbrook at gcc dot gnu dot org
2004-08-25 21:04 ` cvs-commit at gcc dot gnu dot org
2004-08-25 21:09 ` 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).