[tree-ssa] Fix PR 13863, gcc.dg/uninit-D.c fails
Richard Henderson
rth@redhat.com
Sat Feb 21 13:45:00 GMT 2004
On Thu, Feb 05, 2004 at 10:35:47PM -0800, Andrew Pinski wrote:
> * c-common.c (c_decl_uninit_1): Remove.
> (c_decl_uninit): Remove.
> * c-common.h (c_decl_uninit): Remove prototype.
> * c-lang.c (LANG_HOOKS_DECL_UNINIT): Delete.
> * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Delete.
> * c-simplify.c (gimplify_decl_stmt): Set TREE_NO_WARNING
> on the decl where the initial is itself.
> * function.c (uninitialized_vars_warning): Remove old comment
> and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
> and do not call the langhook.
> * langhooks-def.h (LANG_HOOKS_DECL_UNINIT): Remove.
> (LANG_HOOKS_INITIALIZER): Remove usage of LANG_HOOKS_DECL_UNINIT.
> * langhooks.c (lhd_decl_uninit): Remove.
> * langhooks.h (lhd_decl_uninit): Remove prototype.
>
> cp/ChangeLog:
>
> cp-lang.c (LANG_HOOKS_DECL_UNINIT): Remove.
Ok, except,
> + /* Do not warn about int x = x; as it is a GCC extension
> to turn
> + off this warning but only if warn_init_self is zero.
> */
Watch the line wrap.
r~
More information about the Gcc-patches
mailing list