This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Fix PR 13863, gcc.dg/uninit-D.c fails
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 6 Feb 2004 00:23:26 -0800
- Subject: Re: [tree-ssa] Fix PR 13863, gcc.dg/uninit-D.c fails
- References: <B2B492FB-586E-11D8-AD61-000393A6D2F2@physics.uc.edu>
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~