This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/32942] Wrong code with with -fdefault-integer-8



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]