[PATCH] Automatics in equivalence statements
Jeff Law
law@redhat.com
Thu Aug 15 21:27:00 GMT 2019
On 8/14/19 2:45 AM, Mark Eggleston wrote:
> I now have commit access.
>
> gcc/fortran
>
> Â Â Â Jeff Law <law@redhat.com>
> Â Â Â Mark Eggleston <mark.eggleston@codethink.com>
>
> Â Â Â * gfortran.h: Add gfc_check_conflict declaration.
> Â Â Â * symbol.c (check_conflict): Rename cfg_check_conflict and remove
> Â Â Â static.
> Â Â Â * symbol.c (cfg_check_conflict): Remove automatic in equivalence
> Â Â Â conflict check.
> Â Â Â * symbol.c (save_symbol): Add check for in equivalence to stop the
> Â Â Â the save attribute being added.
> Â Â Â * trans-common.c (build_equiv_decl): Add is_auto parameter and
> Â Â Â add !is_auto to condition where TREE_STATIC (decl) is set.
> Â Â Â * trans-common.c (build_equiv_decl): Add local variable is_auto,
> Â Â Â set it true if an atomatic attribute is encountered in the variable
>    list. Call build_equiv_decl with is_auto as an additional parameter.
> Â Â Â flag_dec_format_defaults is enabled.
> Â Â Â * trans-common.c (accumulate_equivalence_attributes) : New subroutine.
> Â Â Â * trans-common.c (find_equivalence) : New local variable dummy_symbol,
> Â Â Â accumulated equivalence attributes from each symbol then check for
> Â Â Â conflicts.
>
> gcc/testsuite
>
> Â Â Â Mark Eggleston <mark.eggleston@codethink.com>
>
> Â Â Â * gfortran.dg/auto_in_equiv_1.f90: New test.
> Â Â Â * gfortran.dg/auto_in_equiv_2.f90: New test.
> Â Â Â * gfortran.dg/auto_in_equiv_3.f90: New test.
>
> OK to commit?
>
> How do I know that I have approval to commit?
Yes, this is OK to commit. Steve acked it in a private message to me.
Normally you'll get an ACK/OK on the public list. But private ACKs or
ACKs on IRC also count as approval :-)
jeff
More information about the Fortran
mailing list