From e5e67ff967aaa455da0384f53d6e7df0f2810bd6 Mon Sep 17 00:00:00 2001 From: uros Date: Wed, 31 Dec 2008 15:36:44 +0000 Subject: * sched-deps.c (sched_analyze_2) [UNSPEC_VOLATILE]: Flush pending memory loads and stores. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142983 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/sched-deps.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/sched-deps.c') diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 81fcb806228..bff83a2b844 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -2132,9 +2132,12 @@ sched_analyze_2 (struct deps *deps, rtx x, rtx insn) flush_pending_lists (deps, insn, true, false); break; + case UNSPEC_VOLATILE: + flush_pending_lists (deps, insn, true, true); + /* FALLTHRU */ + case ASM_OPERANDS: case ASM_INPUT: - case UNSPEC_VOLATILE: { /* Traditional and volatile asm instructions must be considered to use and clobber all hard registers, all pseudo-registers and all of -- cgit v1.2.1