Commit 6553db01 by Greg McGary Committed by Jeff Law

* c-decl.c (pushdecl): Set DECL_ORIGINAL_TYPE once only.

From-SVN: r17765
parent d52dae61
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
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment