summaryrefslogtreecommitdiff
path: root/gcc/flow.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-07-24 10:54:59 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2001-07-24 08:54:59 +0000
commit8f54d2fffdddf8dab5a7820d284c4aeaa0e837b2 (patch)
treeab2e8ae568de710f7cdef4545f31ea50b0300b44 /gcc/flow.c
parent016c22b5b416c34399f4bc4bb63e74b164e64f50 (diff)
downloadgcc-8f54d2fffdddf8dab5a7820d284c4aeaa0e837b2.tar.gz
* flow.c (delete_noop_moves): Do not confuse libcall regions.
From-SVN: r44290
Diffstat (limited to 'gcc/flow.c')
-rw-r--r--gcc/flow.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 904684a37cd..5850daf191f 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -4327,9 +4327,11 @@ delete_noop_moves (f)
next = NEXT_INSN (insn);
if (INSN_P (insn) && noop_move_p (insn))
{
- if (insn == bb->end)
- bb->end = PREV_INSN (insn);
- flow_delete_insn (insn);
+ /* Do not call flow_delete_insn here to not confuse backward
+ pointers of LIBCALL block. */
+ PUT_CODE (insn, NOTE);
+ NOTE_LINE_NUMBER (insn) = NOTE_INSN_DELETED;
+ NOTE_SOURCE_FILE (insn) = 0;
}
}
}