summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-07 22:44:35 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-02-07 22:44:35 +0000
commit620542d5ec1167b92f70cdc6d24c15ccc3270d03 (patch)
tree5278a930d81980ad58b9d6ec8bebad3a9d0f30ec
parent3964baf611656668d50535be1c807b5c00aa02a4 (diff)
downloadgcc-620542d5ec1167b92f70cdc6d24c15ccc3270d03.tar.gz
* c-decl.c (pushdecl): Set DECL_ORIGINAL_TYPE once only.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17765 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-decl.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ccd100b7d6b..1d00e4da231 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 95d7ed12456..7ac50de75de 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -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;