This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [fortran] fix -Wuninitialized -Werror in fortran/module.c
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 16 Nov 2009 15:44:04 -0800
- Subject: Re: [fortran] fix -Wuninitialized -Werror in fortran/module.c
- References: <or4oouvy6z.fsf@livre.localdomain>
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.
--
Steve