From: David Malcolm Date: Tue, 19 Jul 2016 13:04:32 +0000 (+0000) Subject: Fix copy&paste bug in function-tests.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=00f06cd7331fa1264d8e93173c0663dea5373442;p=gcc.git Fix copy&paste bug in function-tests.c gcc/ChangeLog: * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify the flags of the exit block and bb2, not just the entry block. From-SVN: r238470 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 271706c0200..b00409c7951 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-19 David Malcolm + + * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify + the flags of the exit block and bb2, not just the entry block. + 2016-07-19 Richard Biener PR tree-optimization/71901 diff --git a/gcc/function-tests.c b/gcc/function-tests.c index edd355fa153..a59a066448b 100644 --- a/gcc/function-tests.c +++ b/gcc/function-tests.c @@ -433,14 +433,14 @@ verify_three_block_rtl_cfg (function *fun) basic_block exit = EXIT_BLOCK_PTR_FOR_FN (fun); ASSERT_TRUE (exit != NULL); - ASSERT_EQ (BB_RTL, entry->flags & BB_RTL); + ASSERT_EQ (BB_RTL, exit->flags & BB_RTL); ASSERT_EQ (NULL, BB_HEAD (exit)); /* The "real" basic block should be flagged as RTL, and have one or more insns. */ basic_block bb2 = get_real_block (fun); ASSERT_TRUE (bb2 != NULL); - ASSERT_EQ (BB_RTL, entry->flags & BB_RTL); + ASSERT_EQ (BB_RTL, bb2->flags & BB_RTL); ASSERT_TRUE (BB_HEAD (bb2) != NULL); }