gcc/libgfortran/runtime
Tobias Burnus 0d52899f78 re PR fortran/36132 (_gfortran_internal_pack on optional arguments)
2008-07-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36132
        PR fortran/29952
        PR fortran/36909
        * trans.c (gfc_trans_runtime_check): Allow run-time warning
        * besides
        run-time error.
        * trans.h (gfc_trans_runtime_check): Update declaration.
        * trans-array.c
        * (gfc_trans_array_ctor_element,gfc_trans_array_bound_check,
        gfc_conv_array_ref,gfc_conv_ss_startstride,gfc_trans_dummy_array_bias):
        Updated gfc_trans_runtime_check calls.
        (gfc_conv_array_parameter): Implement flag_check_array_temporaries,
        fix packing/unpacking for nonpresent optional actuals to optional
        formals.
        * trans-array.h (gfc_conv_array_parameter): Update declaration.
        * trans-expr.c (gfc_conv_substring,gfc_trans_arrayfunc_assign,
        gfc_conv_function_call): Updated gfc_trans_runtime_check calls.
        (gfc_conv_function_call): Update gfc_conv_array_parameter calls.
        * trans-expr.c (gfc_trans_goto): Updated gfc_trans_runtime_check
        calls.
        * trans-io.c (set_string,gfc_conv_intrinsic_repeat): Ditto.
        (gfc_conv_intrinsic_transfer,gfc_conv_intrinsic_loc): Same for
        gfc_conv_array_parameter.
        * trans-intrinsics.c (gfc_conv_intrinsic_bound): Ditto.
        * trans-decl.c (gfc_build_builtin_function_decls): Add
        gfor_fndecl_runtime_warning_at.
        * lang.opt: New option fcheck-array-temporaries.
        * gfortran.h (gfc_options): New flag_check_array_temporaries.
        * options.c (gfc_init_options, gfc_handle_option): Handle flag.
        * invoke.texi: New option fcheck-array-temporaries.

2008-07-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36132
        PR fortran/29952
        PR fortran/36909
        * runtime/error.c: New function runtime_error_at.
        * gfortran.map: Ditto.
        * libgfortran.h: Ditto.

2008-07-27  Tobias Burnus  <burnus@net-b.de>

        PR fortran/36132
        PR fortran/29952
        PR fortran/36909
        gfortran.dg/internal_pack_4.f90: New.
        gfortran.dg/internal_pack_5.f90: New.
        gfortran.dg/array_temporaries_2.f90: New.

From-SVN: r138186
2008-07-27 12:45:44 +02:00
..
backtrace.c re PR libfortran/32972 (performance of pack/unpack) 2008-04-13 20:15:58 +00:00
compile_options.c re PR fortran/36515 (Integer read from stdin yields a value overflow for a valid integer.) 2008-06-15 20:02:58 +00:00
convert_char.c select.c: Moved content to select_inc.c. 2008-05-18 12:00:20 +00:00
environ.c re PR fortran/33795 (Environment variable GFORTRAN_UNBUFFERED_<number> not working) 2007-10-19 04:10:58 +00:00
error.c re PR fortran/36132 (_gfortran_internal_pack on optional arguments) 2008-07-27 12:45:44 +02:00
fpu.c
in_pack_generic.c re PR libfortran/32972 (performance of pack/unpack) 2008-04-13 20:15:58 +00:00
in_unpack_generic.c re PR libfortran/32972 (performance of pack/unpack) 2008-04-13 20:15:58 +00:00
main.c re PR libfortran/35863 ([F2003] Implement ENCODING="UTF-8") 2008-06-13 20:28:08 +00:00
memory.c
pause.c
select_inc.c select.c: Moved content to select_inc.c. 2008-05-18 12:00:20 +00:00
select.c select.c: Moved content to select_inc.c. 2008-05-18 12:00:20 +00:00
stop.c
string.c