From: Alexandre Oliva Date: Wed, 3 Oct 2007 16:58:25 +0000 (+0000) Subject: * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end. X-Git-Tag: releases/gcc-4.3.0~2236 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92ddef6949e6bc309220c1f09e7d0b0da13699c7;p=thirdparty%2Fgcc.git * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end. From-SVN: r128988 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc66c032b944..5d7d7a17313a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-10-03 Alexandre Oliva + + * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end. + 2007-10-03 Alexandre Oliva * gcse.c (hash_scan_set): Insert set in insn before note at diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 2893c8370514..cfeca97eaee5 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -2702,7 +2702,8 @@ rtl_block_ends_with_call_p (basic_block bb) while (!CALL_P (insn) && insn != BB_HEAD (bb) - && keep_with_call_p (insn)) + && (keep_with_call_p (insn) + || NOTE_P (insn))) insn = PREV_INSN (insn); return (CALL_P (insn)); }