This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran,ping] support for large kinds in front-end and library
- From: Feng Wang <wf_cs at yahoo dot com>
- To: Steven Bosscher <stevenb at novell dot com>, Richard Henderson <rth at redhat dot com>
- Cc: fortran at gcc dot gnu dot org, FX Coudert <fxcoudert at gmail dot com>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 4 Aug 2005 09:45:42 +0800 (CST)
- Subject: Re: [gfortran,ping] support for large kinds in front-end and library
--- Steven Bosscher <stevenb@novell.com> wrote:
> On Thursday 04 August 2005 00:57, Richard Henderson wrote:
> > On Thu, Aug 04, 2005 at 12:55:18AM +0200, Steven Bosscher wrote:
> > > FWIW gfortran on ia64 does not support real(16). It does support
> > > real(10) and integer(16).
> >
> > Are you sure?
>
> I tested it for FX on a linux ia64 box, but ...
>
> > It would be on ia64-hpux, not ia64-linux.
>
> ...not on HP-UX. It is of course always the system that almost nobody
> has access to that blocks an interesting patch :-/ Who can help out
> here?
>
I also only have access to an ia64-linux-gnu box. FYI, This is my test:
$cat real.f90
real (kind = 10) a
real (kind = 16) b
a = 2.
b = 2.
print *, a, b
end
$ gfortran real.f90
In file real.f90:2
real (kind = 16) b
1
Error: Kind 16 not supported for type REAL at (1)
$gfortran -v
...
gcc version 4.1.0 20050801 (experimental)
But ifort 8.1 gives the contrary result.
$ifort real.f90
fortcom: Error: real.f90, line 1: This is an incorrect value for a kind type
par
ameter in this context. [KIND]
real (kind = 10) a
------^
compilation aborted for real.f90 (code 1)
For the C program, I tested:
$cat real.c
#include <stdio.h>
int main ()
{
__float80 a;
__float128 b;
a = 2.0;
b = 2.0;
printf ("%f, %f\n", a, b);
}
$gcc real.c
$./a.out
-2.000000, -0.000000
__float128 seems not to be supported.
Best Regards,
Feng Wang
--
Creative Compiler Research Group,
National University of Defense Technology, China.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 1GB free storage!
http://sg.whatsnew.mail.yahoo.com