This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
tweak sra debug output
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Oct 2004 17:54:11 -0700
- Subject: tweak sra debug output
I noticed while looking at something else that the following copyrename
pass made the opposite choice than what it should have. Fixed thus.
r~
* tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
Index: tree-sra.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-sra.c,v
retrieving revision 2.37
diff -c -p -d -r2.37 tree-sra.c
*** tree-sra.c 28 Sep 2004 07:59:52 -0000 2.37
--- tree-sra.c 21 Oct 2004 00:48:10 -0000
*************** instantiate_element (struct sra_elt *elt
*** 1106,1111 ****
--- 1106,1112 ----
DECL_SOURCE_LOCATION (var) = DECL_SOURCE_LOCATION (base);
TREE_NO_WARNING (var) = TREE_NO_WARNING (base);
DECL_ARTIFICIAL (var) = DECL_ARTIFICIAL (base);
+ DECL_IGNORED_P (var) = DECL_IGNORED_P (base);
if (DECL_NAME (base) && !DECL_IGNORED_P (base))
{