diff options
| author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-03 16:58:25 +0000 |
|---|---|---|
| committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-10-03 16:58:25 +0000 |
| commit | f69dfa183beb025c32805dd078bcfcca288f6bb3 (patch) | |
| tree | 32499abe264ce170d9c1df99e03b6e5a8c7387be | |
| parent | 1537598044c4b61b54d293ff94f0643cbfab661d (diff) | |
| download | ppe42-gcc-f69dfa183beb025c32805dd078bcfcca288f6bb3.tar.gz ppe42-gcc-f69dfa183beb025c32805dd078bcfcca288f6bb3.zip | |
* cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128988 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cfgrtl.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc66c032b94..5d7d7a17313 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2007-10-03 Alexandre Oliva <aoliva@redhat.com> + * cfgrtl.c (rtl_block_ends_with_call_p): Skip notes at the end. + +2007-10-03 Alexandre Oliva <aoliva@redhat.com> + * gcse.c (hash_scan_set): Insert set in insn before note at the end of basic block. diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 2893c837051..cfeca97eaee 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)); } |

