[PATCH] Avoid uninit warnings with Fortran optional args (PR fortran/52370)

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Feb 11 20:43:00 GMT 2014


On Tue, Feb 11, 2014 at 09:38:20PM +0100, Jakub Jelinek wrote:
> 
> Optional dummy arg support vars are often undefined in various paths,
> while the predicated uninit analysis can sometimes avoid false positives,
> sometimes it can't.  So IMHO we should set TREE_NO_WARNING here, it is
> already set on the other support vars like size.N, ubound.N, lbound.N, etc.
> but not on the actual data pointer.
> 
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
> 

Yes.  Although trunk is in stage 4, your patch seems to be relatively
benign.

-- 
Steve



More information about the Gcc-patches mailing list