This is the mail archive of the gcc-patches@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]

Re: [tree-ssa] Fix PR 13863, gcc.dg/uninit-D.c fails


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~


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