This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/50148] GCC fails to bootstrap with -O3 due to "may be used uninitialized" errors


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]