diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-07 22:44:35 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-07 22:44:35 +0000 |
commit | 620542d5ec1167b92f70cdc6d24c15ccc3270d03 (patch) | |
tree | 5278a930d81980ad58b9d6ec8bebad3a9d0f30ec /gcc/c-decl.c | |
parent | 3964baf611656668d50535be1c807b5c00aa02a4 (diff) | |
download | gcc-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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |