Check for circularity only if ENABLE_CHECKING is defined
From-SVN: r26517
This commit is contained in:
parent
75e8000e18
commit
0f4668ef1a
@ -1,3 +1,8 @@
|
|||||||
|
Sat Apr 17 14:36:19 1999 Craig Burley <craig@jcb-sc.com>
|
||||||
|
|
||||||
|
* tree.c (chainon): Check for circularity only if
|
||||||
|
ENABLE_CHECKING is defined.
|
||||||
|
|
||||||
1999-04-17 10:15 -0400 Zack Weinberg <zack@rabi.columbia.edu>
|
1999-04-17 10:15 -0400 Zack Weinberg <zack@rabi.columbia.edu>
|
||||||
|
|
||||||
* cccp.c: Make fatal non-static.
|
* cccp.c: Make fatal non-static.
|
||||||
|
@ -1956,9 +1956,11 @@ chainon (op1, op2)
|
|||||||
for (t1 = op1; TREE_CHAIN (t1); t1 = TREE_CHAIN (t1))
|
for (t1 = op1; TREE_CHAIN (t1); t1 = TREE_CHAIN (t1))
|
||||||
;
|
;
|
||||||
TREE_CHAIN (t1) = op2;
|
TREE_CHAIN (t1) = op2;
|
||||||
|
#ifdef ENABLE_CHECKING
|
||||||
for (t2 = op2; t2; t2 = TREE_CHAIN (t2))
|
for (t2 = op2; t2; t2 = TREE_CHAIN (t2))
|
||||||
if (t2 == t1)
|
if (t2 == t1)
|
||||||
abort (); /* Circularity created. */
|
abort (); /* Circularity created. */
|
||||||
|
#endif
|
||||||
return op1;
|
return op1;
|
||||||
}
|
}
|
||||||
else return op2;
|
else return op2;
|
||||||
|
Loading…
Reference in New Issue
Block a user