This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR 38487 Spurious warning: "Actual argument might interfere..."
- From: Tobias Burnus <burnus at net-b dot de>
- To: Mikael Morin <mikael dot morin at tele2 dot fr>
- Cc: correctifs gcc <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Mon, 15 Dec 2008 16:08:40 +0100
- Subject: Re: [Patch, Fortran] PR 38487 Spurious warning: "Actual argument might interfere..."
- References: <49467A87.7060900@tele2.fr>
Hello Mikael,
Mikael Morin wrote:
> this disables the warning I added for PR 35681 in the pointer case as
> there may be too many false positive.
>
> No regression on x86_64-unknown-linux-gnu. Ok for trunk?
>
I wonder whether one might get for e->expr_type != EXPR_VARIABLE a
spurious warning, but I don't think so.
Thus: OK and thanks for the patch.
Tobias
> 2008-12-15 Mikael Morin <mikael.morin@tele2.fr>
>
> PR fortran/38487
> * gfortran.dg/elemental_dependency_2.f90: New test.
>
> 2008-12-15 Mikael Morin <mikael.morin@tele2.fr>
>
> PR fortran/38487
> * dependency.c (gfc_is_data_pointer): New function.
> (gfc_check_argument_var_dependency): Disable the warning
> in the pointer case.
> (gfc_check_dependency): Use gfc_is_data_pointer.
>