This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32942] Wrong code with with -fdefault-integer-8
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2007 18:04:02 -0000
- Subject: [Bug fortran/32942] Wrong code with with -fdefault-integer-8
- References: <bug-32942-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from kargl at gcc dot gnu dot org 2007-07-31 18:04 -------
(In reply to comment #0)
> I have reduced the failure for intrinsic_rrspacing.f90 to:
>
> integer i
> real x
> x = 3.0
> print *, exponent (x)
> i = exponent (x)
> print *, i
> end
>
> which gives with -fdefault-integer-8
>
> 8589934720
> 2
>
(snip)
>
> Any explanation?
>
trans-types.c(gfc_get_int_type) is used to build the
gfc_int4_type_node in trans-io.h. -fdefault-integer-8
is probably causing gfc_int4_type_node to be set to 8
instead of 4.
--
kargl at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32942