summaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-30 21:48:13 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-30 21:48:13 +0000
commitb2976eba1ccd9c1aa7400c15c26bd353b6d1deef (patch)
treea33a060acdb55e72d33b838b476073e5e1078f88 /gcc/ifcvt.c
parent8ec32caf268da30ad73940428431d6238044041f (diff)
downloadgcc-b2976eba1ccd9c1aa7400c15c26bd353b6d1deef.tar.gz
Fix null pointer crash and a merge error
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index 61dd48d7ce3..3ce996f8edd 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -426,17 +426,6 @@ cond_exec_process_if_block (ce_info, do_multiple_p)
#ifdef IFCVT_MODIFY_TESTS
/* If the machine description needs to modify the tests, such as setting a
conditional execution register from a comparison, it can do so here. */
- IFCVT_MODIFY_TESTS (true_expr, false_expr, test_bb, then_bb, else_bb,
- join_bb);
-
- /* See if the conversion failed */
- if (!true_expr || !false_expr)
- goto fail;
-#endif
-
-#ifdef IFCVT_MODIFY_TESTS
- /* If the machine description needs to modify the tests, such as setting a
- conditional execution register from a comparison, it can do so here. */
IFCVT_MODIFY_TESTS (ce_info, true_expr, false_expr);
/* See if the conversion failed */
@@ -460,6 +449,9 @@ cond_exec_process_if_block (ce_info, do_multiple_p)
basic_block bb = test_bb;
basic_block last_test_bb = ce_info->last_test_bb;
+ if (! false_expr)
+ goto fail;
+
do
{
rtx start, end;