re PR tree-optimization/43347 (Warning about symbols generated by SRA being used uninitialized)

2010-03-17  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/43347
	* tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
	original base is DECL_ARTIFICIAL or DECL_IGNORED_P.

From-SVN: r157515
This commit is contained in:
Martin Jambor 2010-03-17 13:02:35 +01:00 committed by Martin Jambor
parent 4c2084cdb3
commit ec24771ffd
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2010-03-17 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/43347
* tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
PR rtl-optimization/42216

View File

@ -1664,6 +1664,7 @@ create_access_replacement (struct access *access)
DECL_SOURCE_LOCATION (repl) = DECL_SOURCE_LOCATION (access->base);
DECL_ARTIFICIAL (repl) = 1;
DECL_IGNORED_P (repl) = DECL_IGNORED_P (access->base);
if (DECL_NAME (access->base)
&& !DECL_IGNORED_P (access->base)
@ -1676,11 +1677,10 @@ create_access_replacement (struct access *access)
SET_DECL_DEBUG_EXPR (repl, access->expr);
DECL_DEBUG_EXPR_IS_FROM (repl) = 1;
DECL_IGNORED_P (repl) = 0;
TREE_NO_WARNING (repl) = TREE_NO_WARNING (access->base);
}
DECL_IGNORED_P (repl) = DECL_IGNORED_P (access->base);
TREE_NO_WARNING (repl) = TREE_NO_WARNING (access->base);
else
TREE_NO_WARNING (repl) = 1;
if (dump_file)
{