Bug 24096 - huge() returns infinity for long doubles
Summary: huge() returns infinity for long doubles
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Alan Modra
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: patch
Depends on:
Blocks:
 
Reported: 2005-09-28 00:10 UTC by Alan Modra
Modified: 2005-11-18 17:49 UTC (History)
1 user (show)

See Also:
Host:
Target: powerpc-*-*, mips-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-10-16 01:17:51


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Modra 2005-09-28 00:10:46 UTC
powerpc64-linux, powerpc-darwin, and other targets that use the IBM extended
double format for long double currently fail gfortran.dg/large_real_kind_1.f90,
due to huge() returning infinity.

Patch at http://gcc.gnu.org/ml/fortran/2005-09/msg00533.html
Comment 1 Alan Modra 2005-11-06 11:09:29 UTC
Revised patch http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00388.html
Comment 2 Alan Modra 2005-11-15 20:33:54 UTC
Subject: Bug 24096

Author: amodra
Date: Tue Nov 15 20:33:48 2005
New Revision: 107041

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=107041
Log:
	PR fortran/24096
	* trans-types.c (gfc_init_kinds): Use one less for max_exponent
	of IBM extended double format.


Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-types.c

Comment 3 Alan Modra 2005-11-15 20:35:23 UTC
Fixed mainline.