From cdc30c457970d9876af28cdfe7e3a90d590e55ae Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Tue, 25 Jul 2006 22:38:37 +0200 Subject: [PATCH] tree-chrec.c (chrec_convert_aggressive): Return NULL on failure. * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure. From-SVN: r115740 --- gcc/ChangeLog | 4 ++++ gcc/tree-chrec.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 636ec2374723..80caad9edded 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2006-07-25 Zdenek Dvorak + + * tree-chrec.c (chrec_convert_aggressive): Return NULL on failure. + 2006-07-25 Nick Clifton * ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the diff --git a/gcc/tree-chrec.c b/gcc/tree-chrec.c index f9b804e61774..f36fc9b02918 100644 --- a/gcc/tree-chrec.c +++ b/gcc/tree-chrec.c @@ -1326,7 +1326,7 @@ chrec_convert_aggressive (tree type, tree chrec) /* If we cannot perform arithmetic in TYPE, avoid creating an scev. */ if (avoid_arithmetics_in_type_p (type)) - return false; + return NULL_TREE; left = CHREC_LEFT (chrec); right = CHREC_RIGHT (chrec);