This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32968] selected_(int|real)_kind fail with -fdefault-integer-8
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Aug 2007 21:42:42 -0000
- Subject: [Bug fortran/32968] selected_(int|real)_kind fail with -fdefault-integer-8
- References: <bug-32968-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from sgk at troutmask dot apl dot washington dot edu 2007-08-02 21:42 -------
Subject: Re: selected_(int|real)_kind fail with -fdefault-integer-8
On Thu, Aug 02, 2007 at 11:17:02PM +0200, Dominique Dhumieres wrote:
>
> look to yours, but with -fdefault-integer-8, I get '1 4' instead of
> '2 4'.
We probably wanted to use 'i = 10', which should gives '8 8'.
In looking at the dump again (removing the stuff from PRINT), we have
int8 i;
i = 10;
{
{
int8 D.996;
D.996 = (int8) _gfortran_selected_int_kind (&i);
_gfortran_transfer_integer (&dt_parm.1, &D.996, 8);
}
I bet I need to force 'i' to int4.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32968