[PATCH] Automatics in equivalence statements
Mark Eggleston
mark.eggleston@codethink.co.uk
Fri Aug 16 15:51:00 GMT 2019
On 14/08/2019 18:10, Jeff Law wrote:
> 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.
Committed as revision 274565.
> Normally you'll get an ACK/OK on the public list. But private ACKs or
> ACKs on IRC also count as approval :-)
>
> jeff
>
--
https://www.codethink.co.uk/privacy.html
More information about the Gcc-patches
mailing list