[fortran] fix -Wuninitialized -Werror in fortran/module.c

Alexandre Oliva aoliva@redhat.com
Wed Nov 18 06:15:00 GMT 2009


On Nov 16, 2009, Steve Kargl <sgk@troutmask.apl.washington.edu> wrote:

> On Mon, Nov 16, 2009 at 09:37:08PM -0200, Alexandre Oliva wrote:
>> After much inlining and optimization, GCC is not clever enough to
>> realize that variable op is initialized in every path to every use.
>> 
>> I ran into this on ia64-linux-gnu, IIRC with bootstrap-O3.
>> 
>> Ok to install?

> Yes.  Can you add a "/* Silence GCC.  */" comment after the
> semicolon to make it clear that the 0 value is never used.

Thanks, here's what I just checked in.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfortran-module-init-nowarn.patch
Type: text/x-diff
Size: 573 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091118/1764e05d/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer


More information about the Gcc-patches mailing list