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/65894] [6 Regression] severe regression in gfortran 6.0.0


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

--- Comment #32 from Mikael Morin <mikael at gcc dot gnu.org> ---
Author: mikael
Date: Sat May  9 13:36:14 2015
New Revision: 222968

URL: https://gcc.gnu.org/viewcvs?rev=222968&root=gcc&view=rev
Log:
Fix fortran/65894 elemental procedures wrong-code

gcc/fortran/
2015-05-09  Mikael Morin  <mikael@gcc.gnu.org>

        PR fortran/65894
        * trans-array.h (gfc_scalar_elemental_arg_saved_as_reference):
        New prototype.
        * trans-array.c (gfc_scalar_elemental_arg_saved_as_reference):
        New function.
        (gfc_add_loop_ss_code): Use gfc_scalar_elemental_arg_saved_as_reference
        as conditional.
        (gfc_walk_elemental_function_args): Set the dummy_arg field.
        * trans.h (gfc_ss_info): New subfield dummy_arg.
        * trans-expr.c (gfc_conv_procedure_call): Revert the change
        of revision 222361.
        (gfc_conv_expr): Use gfc_scalar_elemental_arg_saved_as_reference
        as conditional.

gcc/testsuite/
2015-05-09  Andre Vehreschild  <vehre@gmx.de>

        PR fortran/65894
        * gfortran.dg/elemental_subroutine_11.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/elemental_subroutine_11.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/fortran/trans.h
    trunk/gcc/testsuite/ChangeLog


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