This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR54389 - DECL_PURE_P: set for implicit_pure but not for impure elemental
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 28 Aug 2012 20:05:55 +0200
- Subject: Re: [Patch, Fortran] PR54389 - DECL_PURE_P: set for implicit_pure but not for impure elemental
- References: <503C8692.2090003@net-b.de>
On 28/08/2012 10:51, Tobias Burnus wrote:
> DECL_PURE_P was also set for elemental procedures, which is wrong if
> they are IMPURE.
>
> Additionally, we do the same checks for PURE also for
> attr.implicit_pure. I think the checks are strict enough that we can
> dare to set DECL_PURE_P also for gfortran's attr.implicit_pure
> procedures. What do you think?
Let's try.
>
> Build on x86-64-linux. (I will also regtest it.)
> OK for the trunk?
OK (if it passes).
Mikael