This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] |
Hi all, Here's an updated patch. I've added -finit-character=<n>, where 0 <= n <= 127 is an ASCII value. Derived types aren't initialized, but I've documented this in the manual. I've added a test that checks initialization of SAVE'd variables. This has been bootstrapped (+make pdf) and regression tested on x86_64-unknown-linux-gnu. I won't have reliable internet access for the next couple of days, but I'll be back online by Monday evening. -Asher 2007-08-31 Asher Langton <langton2@llnl.gov> 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. 2007-08-31 Asher Langton <langton2@llnl.gov> 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. On 8/17/07, Asher Langton <langton2@llnl.gov> wrote: > :ADDPATCH fortran: > > > Hi all, > > Here's a patch to add -finit-local-zero, as well as some finer-grained > options. I have a working version of the runtime-controlled > initialization as discussed previously, but it still needs to be > cleaned up a bit, so I'll submit it as a separate patch: > > http://gcc.gnu.org/ml/fortran/2007-06/msg00028.html > > I've bootstrapped and regression tested this on x86_64-linux. > Everything passes in the ordinary regression tests, and with > RUNTESTFLAGS="--tool_opts -finit-local-zero" added, the only failures > are tests that invoke cc1 ("cc1: warning: command line option > "-finit-local-zero" is valid for Fortran but not for C"). > > -Asher > > > 2007-08-17 Asher Langton <langton2@llnl.gov> > > 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, > 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-*). > (apple_default_init_local): Apply local initializer (-finit-*). > (resolve_fl_variable): Try to add local initializer (-finit-*). > * options.c (gfc_init_options, gfc_handle_option): Handle > -finit-local-zero, -finit-real, -finit-integer, -finit-logical > flags, and -finit-character flags. > > 2007-08-17 Asher Langton <langton2@llnl.gov> > > 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. > >
Attachment:
gfc070831_142756.diff
Description: Binary data
Attachment:
init_flag_1.f90
Description: Binary data
Attachment:
init_flag_2.f90
Description: Binary data
Attachment:
init_flag_3.f90
Description: Binary data
Attachment:
init_flag_4.f90
Description: Binary data
Attachment:
init_flag_5.f90
Description: Binary data
Attachment:
init_flag_6.f90
Description: Binary data
Attachment:
init_flag_7.f90
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |