aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-08-29 03:11:59 +0000
committerRichard Stallman <rms@gnu.org>1992-08-29 03:11:59 +0000
commitf47ee9f26e76d69459ce6f1db367da63ff7ac6c9 (patch)
tree7ccbcd626d2f40c8f388de83b01a9951d8739797 /gcc/tree.c
parentf786509d93b6761d4f41c9ed7fc142773abcd34a (diff)
downloadgcc-f47ee9f26e76d69459ce6f1db367da63ff7ac6c9.zip
gcc-f47ee9f26e76d69459ce6f1db367da63ff7ac6c9.tar.gz
gcc-f47ee9f26e76d69459ce6f1db367da63ff7ac6c9.tar.bz2
(chainon): Check for op2 being the last elt of the chain.
From-SVN: r1987
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index c22f3b8a..8f03250 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1490,6 +1490,7 @@ chainon (op1, op2)
{
for (t = op1; TREE_CHAIN (t); t = TREE_CHAIN (t))
if (t == op2) abort (); /* Circularity being created */
+ if (t == op2) abort (); /* Circularity being created */
TREE_CHAIN (t) = op2;
return op1;
}