* c-decl.c (pushdecl): Set DECL_ORIGINAL_TYPE once only.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 1998 22:44:35 +0000 (22:44 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Feb 1998 22:44:35 +0000 (22:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17765 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-decl.c

index ccd100b..1d00e4d 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 95d7ed1..7ac50de 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;