Re: [patch, fortran] PR 52669, warn about unused PRIVATE module variables

2013-07-14 Thread Thomas Koenig
Hi Tobias, I think you should also handle: module m private integer :: k end module m and module m2 integer :: ll end module m2 when compiled with -fmodule-private. Taken care of in the attached patch, the way you suggested works. Committed as rev. 200950. Tha

Re: [patch, fortran] PR 52669, warn about unused PRIVATE module variables

2013-07-12 Thread Tobias Burnus
Am 12.07.2013 23:07, Thomas Koenig wrote: here is a rather self-evident patch for PR 52669. Regression-tested. OK for trunk? I think you should also handle: module m private integer :: k end module m and module m2 integer :: ll end module m2 when compiled with -fmodule-p

[patch, fortran] PR 52669, warn about unused PRIVATE module variables

2013-07-12 Thread Thomas Koenig
Hello world, here is a rather self-evident patch for PR 52669. Regression-tested. OK for trunk? Thomas 2013-07-12 Thomas Koenig PR fortran/52669 * trans-decl.c (gfc_create_module_variable): Optionally warn about private module variable which is not used.