From 620542d5ec1167b92f70cdc6d24c15ccc3270d03 Mon Sep 17 00:00:00 2001 From: law Date: Sat, 7 Feb 1998 22:44:35 +0000 Subject: [PATCH] * 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 --- gcc/ChangeLog | 4 ++++ gcc/c-decl.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ccd100b..1d00e4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Sat Feb 7 23:46:09 1998 Greg McGary + + * c-decl.c (pushdecl): Set DECL_ORIGINAL_TYPE once only. + Sat Feb 7 15:11:28 1998 Kaveh R. Ghazi * 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 95d7ed1..7ac50de 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; -- 2.7.4