OSDN Git Service

PR fortran/20441
authorlangton <langton@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Sep 2007 02:34:14 +0000 (02:34 +0000)
committerlangton <langton@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 Sep 2007 02:34:14 +0000 (02:34 +0000)
commita28eb9a86954e46488228a9a434f816ca39ee194
tree6f87e3fe355a7263be01fcc31cadd9d2cbcca2ac
parent84786a68feb112962e57bf50061937f84a972154
PR fortran/20441
        * gfortran.h : Add init_local_* enums and init_flag_* flags to
gfc_option_t.
* lang.opt: Add -finit-local-zero, -finit-real, -finit-integer,
-finit-character, and -finit-logical flags.
* invoke.texi: Document new options.
* resolve.c (build_init_assign): New function.
(apply_init_assign): Move part of function into build_init_assign.
(build_default_init_expr): Build local initializer (-finit-*).
(apply_default_init_local): Apply local initializer (-finit-*).
(resolve_fl_variable): Try to add local initializer (-finit-*).
* options.c (gfc_init_options, gfc_handle_option,
gfc_post_options): Handle -finit-local-zero, -finit-real,
-finit-integer, -finit-character, and -finit-logical flags.

PR fortran/20441
* gfortran.dg/init_flag_1.f90: New.
* gfortran.dg/init_flag_2.f90: New.
* gfortran.dg/init_flag_3.f90: New.
* gfortran.dg/init_flag_4.f90: New.
* gfortran.dg/init_flag_5.f90: New.
* gfortran.dg/init_flag_6.f90: New.
* gfortran.dg/init_flag_7.f90: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128643 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/invoke.texi
gcc/fortran/lang.opt
gcc/fortran/options.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/init_flag_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/init_flag_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/init_flag_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/init_flag_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/init_flag_5.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/init_flag_6.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/init_flag_7.f90 [new file with mode: 0644]