]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Oct 2004 00:49:25 +0000 (00:49 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Oct 2004 00:49:25 +0000 (00:49 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89356 138bc75d-0d04-0410-961f-82ee72b054a4

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))
     {