From 0f4668ef1ac72bd6e64d97cc72e8d182755ce7ed Mon Sep 17 00:00:00 2001 From: Craig Burley Date: Sat, 17 Apr 1999 11:43:57 +0000 Subject: [PATCH] Check for circularity only if ENABLE_CHECKING is defined From-SVN: r26517 --- gcc/ChangeLog | 5 +++++ gcc/tree.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c1d7e8fd167..2abcb43e0ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Sat Apr 17 14:36:19 1999 Craig Burley + + * tree.c (chainon): Check for circularity only if + ENABLE_CHECKING is defined. + 1999-04-17 10:15 -0400 Zack Weinberg * cccp.c: Make fatal non-static. diff --git a/gcc/tree.c b/gcc/tree.c index d2594208c84..b61c11587ec 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1956,9 +1956,11 @@ chainon (op1, op2) for (t1 = op1; TREE_CHAIN (t1); t1 = TREE_CHAIN (t1)) ; TREE_CHAIN (t1) = op2; +#ifdef ENABLE_CHECKING for (t2 = op2; t2; t2 = TREE_CHAIN (t2)) if (t2 == t1) abort (); /* Circularity created. */ +#endif return op1; } else return op2;