* c-decl.c (pushdecl): Set DECL_ORIGINAL_TYPE once only.
authorGreg McGary <gkm@gnu.org>
Sat, 7 Feb 1998 22:44:35 +0000 (22:44 +0000)
committerJeff Law <law@gcc.gnu.org>
Sat, 7 Feb 1998 22:44:35 +0000 (15:44 -0700)
From-SVN: r17765

gcc/ChangeLog
gcc/c-decl.c

index ccd100b7d6bbde0698fbe5bf78de2f66103b65f9..1d00e4da2310d19dfe4e681c6137c8994ff07d80 100644 (file)
@@ -1,3 +1,7 @@
+Sat Feb  7 23:46:09 1998  Greg McGary  <gkm@gnu.org>
+
+       * c-decl.c (pushdecl): Set DECL_ORIGINAL_TYPE once only.
+
 Sat Feb  7 15:11:28 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
         * aclocal.m4 (GCC_FUNC_PRINTF_PTR): New macro to test the printf
index 95d7ed124567ae1823ea57c2a354f22972c8dc6b..7ac50de75de82c9c93e2b705cee74de3d71ec3d5 100644 (file)
@@ -2144,7 +2144,8 @@ pushdecl (x)
              if (TYPE_NAME (TREE_TYPE (x)) == 0)
                TYPE_NAME (TREE_TYPE (x)) = x;
             }
-          else if (TREE_TYPE (x) != error_mark_node)
+          else if (TREE_TYPE (x) != error_mark_node
+                  && DECL_ORIGINAL_TYPE (x) == NULL_TREE)
             {
               tree tt = TREE_TYPE (x);
              DECL_ORIGINAL_TYPE (x) = tt;