* tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
authorRichard Henderson <rth@redhat.com>
Thu, 21 Oct 2004 00:49:25 +0000 (17:49 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 21 Oct 2004 00:49:25 +0000 (17:49 -0700)
From-SVN: r89356

gcc/ChangeLog
gcc/tree-sra.c

index 3cb03ce06add0144c5b9f60703303c01d641d121..792b602d007b3f391738c675b0ce92f93a035f07 100644 (file)
@@ -1,3 +1,7 @@
+2004-10-20  Richard Henderson  <rth@redhat.com>
+
+       * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
+
 2004-10-20  Kelley Cook  <kcook@gcc.gnu.org>
 
        * configure.ac: Revert my previous patch.
index c6e1c4ed872db2c23f4e1361ec046b629f90c6c4..7519c3cfa676f56967708b87f8a0572f959fd2bd 100644 (file)
@@ -1106,6 +1106,7 @@ instantiate_element (struct sra_elt *elt)
   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))
     {