[Bug fortran/81552] -finit-integer=n is restricted to 32-bit INTEGER.
jb at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 14 21:34:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81552
--- Comment #5 from Janne Blomqvist <jb at gcc dot gnu.org> ---
Author: jb
Date: Thu Feb 14 21:33:29 2019
New Revision: 268906
URL: https://gcc.gnu.org/viewcvs?rev=268906&root=gcc&view=rev
Log:
PR 81552 Improve and document -flag-init-integer
Make the option handling code parse the -flag-init-integer value as a
C long type, allowing a larger range on systems where long is a larger
type than int. Document the behavior.
Regtested on x86_64-pc-linux-gnu, committed as obvious.
2019-02-14 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/81552
* gfortran.h (gfc_option_t): Make flag_init_integer_value a long.
* options.c (gfc_handle_option): Use strtol instead of atoi.
* invoke.texi: Document -finit-integer behavior in more detail
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/invoke.texi
trunk/gcc/fortran/options.c
More information about the Gcc-bugs
mailing list