[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added Status|NEW |RESOLVED Known to work||4.8.2, 4.9.0 Resolution|--- |FIXED Known to fail||4.4.7, 4.5.5, 4.6.4, 4.7.3 --- Comment #4 from Dominique d'Humieres dominiq at lps dot ens.fr --- Compiling the test with gfortran 4.8 r190335 (2012-08-13) and -Wunused gives the warning pr31124.f90:11:0: warning: 'bar' defined but not used [-Wunused-function] subroutine bar() ^ r190335 (2012-08-13) does not give any warning. This has been fixed likely by r190325 Author:burnus Date:Sun Aug 12 09:52:33 2012 UTC (17 months ago) Changed paths:5 Log Message: 2012-08-12 Tobias Burnus bur...@net-b.de PR fortran/54221 * trans-decl.c (gfc_finish_var_decl, build_function_decl): Fix setting private module vars/procs as TREE_PUBLIC(...) = 0. 2012-08-12 Tobias Burnus bur...@net-b.de PR fortran/54221 * vect/vect-gems.f90: Don't mark module vars as PRIVATE as they appear uninitialized on the RHS. * gfortran.dg/public_private_module_6.f90: New. Closing as FIXED.
[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
--- Comment #2 from terry at chem dot gu dot se 2007-11-15 10:19 --- *** Bug 34092 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
--- Comment #3 from terry at chem dot gu dot se 2007-11-15 10:27 --- (In reply to comment #2) *** Bug 34092 has been marked as a duplicate of this bug. *** So, to summarise: Unused parameters have been fixed in general, but unused private module entities remain undetected (as of 4.3.0 20071109). (There must surely be a piece of code excluding module variables from unused warnings? That needs to be taught about the private attribute.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2007-03-18 18:10:44 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124
[Bug fortran/31124] Warn of unused PRIVATE module variables/procedures
--- Comment #1 from terry at chem dot gu dot se 2007-03-11 01:57 --- I've filed #31129 specifically for the parameter case. This is unrelated to the private attribute. -- terry at chem dot gu dot se changed: What|Removed |Added CC||terry at chem dot gu dot se http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31124