Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 443816 (PR55352) - sys-devel/gcc-4.7.2 - Erroneous gfortran warning of unused module variable when variable is only used in namelist
Summary: sys-devel/gcc-4.7.2 - Erroneous gfortran warning of unused module variable wh...
Status: RESOLVED FIXED
Alias: PR55352
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR55352
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-18 18:11 UTC by Marc van der Sluys
Modified: 2012-12-25 18:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gfortran-unused-mod-namelist.patch (gfortran-unused-mod-namelist.patch,1.93 KB, patch)
2012-11-18 18:11 UTC, Marc van der Sluys
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc van der Sluys 2012-11-18 18:11:10 UTC
Created attachment 329870 [details, diff]
gfortran-unused-mod-namelist.patch

I reported a bug to the upstream gcc Bugzilla (gfortran-4.7.2 -Wall gives a warning about unused module variables when those variables are only used in a namelist, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55352) and adapted their patch for use with the Gentoo ebuild sys-devel/gcc-4.7.2.ebuild.  This patch is attached and could be used (for gcc-4.7.2-r1?) until the issue is fixed upstream.
Comment 1 SpanKY gentoo-dev 2012-11-19 18:11:48 UTC
we'll merge it once it gets committed to mainline
Comment 2 Marc van der Sluys 2012-11-23 19:57:58 UTC
Bug will be fixed upstream in gcc-4.7.3 and 4.8.0:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55352#c10
Comment 3 SpanKY gentoo-dev 2012-12-25 06:58:16 UTC
do you want this in 4.7.2 ?  or are you happy with just waiting for 4.7.3 ?
Comment 4 Marc van der Sluys 2012-12-25 11:14:50 UTC
(In reply to comment #3)
> do you want this in 4.7.2 ?  or are you happy with just waiting for 4.7.3 ?

I'm fine with waiting - I added the patch to my local overlay and everything works: 
http://astrofloyd.wordpress.com/2012/12/25/erroneous-gfortran-warning-of-unused-module-variable-when-variable-is-only-used-in-namelist/
Comment 5 Marc van der Sluys 2012-12-25 11:18:36 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > do you want this in 4.7.2 ?  or are you happy with just waiting for 4.7.3 ?
> 
> I'm fine with waiting - I added the patch to my local overlay and everything
> works: 

Sorry, link should be the original one:
http://astrofloyd.wordpress.com/2012/11/18/erroneous-gfortran-warning-of-unused-module-variable-when-variable-is-only-used-in-namelist/