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/81552] -finit-integer=n is restricted to 32-bit INTEGER.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81552

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-26
            Summary|-finit-integer=n            |-finit-integer=n is
                   |                            |restricted to 32-bit
                   |                            |INTEGER.
     Ever confirmed|0                           |1
           Severity|normal                      |enhancement

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
>   In fact, N is an 32-bit INTEGER in the range [-2147483648 ; 2147483647]

This is true even for arrays of 64-bit INTEGER:

integer(8) :: i(4)
print *, i
end

compiled with -finit-integer=2147483648 gives at run time

          -2147483648          -2147483648          -2147483648         
-2147483648

at least since gcc 4.8.5.

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