This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/50148] GCC fails to bootstrap with -O3 due to "may be used uninitialized" errors
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Aug 2011 21:33:23 +0000
- Subject: [Bug bootstrap/50148] GCC fails to bootstrap with -O3 due to "may be used uninitialized" errors
- Auto-submitted: auto-generated
- References: <bug-50148-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50148
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-08-24 21:33:23 UTC ---
(In reply to comment #0)
> Created attachment 25070 [details]
> Patch for c-parser.c
>
> Error message:
>
> ../../gcc-4.7/gcc/c-parser.c: In function 'c_expr
> c_parser_postfix_expression_after_primary(c_parser*, location_t, c_expr)':
> ../../gcc-4.7/gcc/c-parser.c:6664:16: error: 'origtypes' may be used
> uninitialized in this function [-Werror=maybe-uninitialized]
This patch is correct and does prevent the warning as we are using an
uninitialized value of origtypes (though if we inline build_function_call_vec
and then convert_arguments, the only time it is used unitialized is when
exprlist is non NULL but that requires a lot of optimizations to happen really
and it might only be seen by the human eye rather the compiler).