User account creation filtered due to spam.

Bug 13863 - [tree-ssa] gcc.dg/uninit-D.c fails
Summary: [tree-ssa] gcc.dg/uninit-D.c fails
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: tree-ssa
: P2 minor
Target Milestone: tree-ssa
Assignee: Andrew Pinski
Keywords: diagnostic, patch
Depends on:
Blocks: Wuninitialized 13127
  Show dependency treegraph
Reported: 2004-01-26 05:15 UTC by Andrew Pinski
Modified: 2005-11-02 19:17 UTC (History)
1 user (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2004-02-06 05:26:47


Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2004-01-26 05:15:23 UTC
The test gcc.dg/uninit-D.c fails on the tree-ssa because the tree-ssa warns about
initializing variable with self.
Comment 1 Andrew Pinski 2004-01-26 05:16:26 UTC
I will take care of it, basically my idea is to mark the variable somehow as 
initialized when converting between the language trees to gimple.
Comment 2 Andrew Pinski 2004-01-31 03:42:04 UTC
When I do this, I can remove the language hooks (which I had forgot to document).
Comment 3 Andrew Pinski 2004-02-06 05:26:46 UTC
Using TREE_NO_WARNING should fix it in the front-end trees to gimplifier phase.
Comment 4 Andrew Pinski 2004-02-06 06:43:51 UTC
Patch here: <>, I should say I think this 
will work, I have not tested it yet.
Comment 5 CVS Commits 2004-02-06 15:20:34 UTC
Subject: Bug 13863

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	2004-02-06 15:20:31

Modified files:
	gcc            : ChangeLog.tree-ssa c-common.c c-common.h 
	                 c-lang.c c-simplify.c function.c 
	                 langhooks-def.h langhooks.c langhooks.h 
	gcc/cp         : ChangeLog.tree-ssa cp-lang.c 
	gcc/objc       : objc-lang.c 

Log message:
	2004-02-06  Andrew Pinski  <>
	PR c/13863
	* 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.
	* langhooks.c (lhd_decl_uninit): Remove.
	* langhooks.h (lhd_decl_uninit): Remove prototype.
	2004-02-06  Andrew Pinski  <>
	PR c/13863
	* cp-lang.c (LANG_HOOKS_DECL_UNINIT): Remove.


Comment 6 Andrew Pinski 2004-02-06 15:23:40 UTC
Fixed by the patch, on to PR 13127.