From 3010be13ffbde1eaaf7a43199893b23f40c537e4 Mon Sep 17 00:00:00 2001 From: Arnaud Desitter Date: Tue, 19 Apr 2005 18:56:13 +0000 Subject: [PATCH] invoke.texi: Update -Waliasing description. * invoke.texi: Update -Waliasing description. Co-Authored-By: Steven G. Kargl From-SVN: r98418 --- gcc/fortran/ChangeLog | 5 +++++ gcc/fortran/invoke.texi | 20 +++++++++++++++----- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 998bbf3aeac..fb06ed8ef9c 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,8 @@ +2005-04-19 Arnaud Desitter + Steven G. Kargl + + * invoke.texi: Update -Waliasing description + 2005-04-19 Francois-Xavier Coudert PR fortran/16861 diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 7ffd7af5515..971dda1975c 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -329,12 +329,22 @@ This currently includes @option{-Wunused-labels}, @option{-Waliasing}, @cindex options, -Waliasing @item -Waliasing @cindex aliasing -Warn about possible aliasing of dummy arguments. The following example -will trigger the warning as it would be illegal to @code{bar} to -modify either parameter. +Warn about possible aliasing of dummy arguments. Specifically, it warns +if the same actual argument is associated with a dummy argument with +@code{intent(in)} and a dummy argument with @code{intent(out)} in a call +with an explicit interface. + +The following example will trigger the warning. @smallexample - INTEGER A - CALL BAR(A,A) + interface + subroutine bar(a,b) + integer, intent(in) :: a + integer, intent(out) :: b + end subroutine + end interface + integer :: a + + call bar(a,a) @end smallexample -- 2.30.2