* [PATCH] PR54224 Warn for unused internal procedures -- update testcase
@ 2015-11-05 9:48 Dominique d'Humières
2015-11-06 19:42 ` Jerry DeLisle
0 siblings, 1 reply; 2+ messages in thread
From: Dominique d'Humières @ 2015-11-05 9:48 UTC (permalink / raw)
To: gfortran; +Cc: gcc-patches
Is there any objection to commit the following (see comments 21 and 22)?
Dominique
Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog (revision 229793)
+++ gcc/testsuite/ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2015-11-05 Dominique d'Humieres <dominiq@lps.ens.fr>
+
+ PR fortran/54224
+ * gfortran.dg/warn_unused_function_2.f90: Add two new
+ "defined but not used" subroutines.
+
2015-11-05 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/loadpre2.c: Avoid undefined behavior due to
Index: gcc/testsuite/gfortran.dg/warn_unused_function_2.f90
===================================================================
--- gcc/testsuite/gfortran.dg/warn_unused_function_2.f90 (revision 229793)
+++ gcc/testsuite/gfortran.dg/warn_unused_function_2.f90 (working copy)
@@ -2,6 +2,7 @@
! { dg-options "-Wall" }
!
! [4.8 Regression] PR 54997: -Wunused-function gives false warnings
+! PR 54224: missing warnings with -Wunused-function
!
! Contributed by Janus Weil <janus@gcc.gnu.org>
@@ -14,6 +15,9 @@
subroutine s1 ! { dg-warning "defined but not used" }
call s2(s3)
+ contains
+ subroutine s4 ! { dg-warning "defined but not used" }
+ end subroutine
end subroutine
subroutine s2(dummy) ! { dg-warning "Unused dummy argument" }
@@ -30,5 +34,10 @@
entry en
end subroutine
+program test
+contains
+ subroutine s5 ! { dg-warning "defined but not used" }
+ end subroutine
+end
! { dg-final { cleanup-modules "m" } }
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] PR54224 Warn for unused internal procedures -- update testcase
2015-11-05 9:48 [PATCH] PR54224 Warn for unused internal procedures -- update testcase Dominique d'Humières
@ 2015-11-06 19:42 ` Jerry DeLisle
0 siblings, 0 replies; 2+ messages in thread
From: Jerry DeLisle @ 2015-11-06 19:42 UTC (permalink / raw)
To: Dominique d'Humières, gfortran; +Cc: gcc-patches
On 11/05/2015 01:48 AM, Dominique d'Humières wrote:
> Is there any objection to commit the following (see comments 21 and 22)?
>
> Dominique
>
OK, simple.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-06 19:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-05 9:48 [PATCH] PR54224 Warn for unused internal procedures -- update testcase Dominique d'Humières
2015-11-06 19:42 ` Jerry DeLisle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).