aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc/sched-deps.c
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2002-10-10 04:40:18 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2002-10-10 04:40:18 +0000
commit423134a002b5ea83b68270c33130754764fa5f4c (patch)
treef505e08c93c8d3d8e51f5dac050b459cce4d4ae2 /contrib/gcc/sched-deps.c
parent10882802bbbce9d52009a76b83e5508d388df999 (diff)
downloadsrc-423134a002b5ea83b68270c33130754764fa5f4c.tar.gz
src-423134a002b5ea83b68270c33130754764fa5f4c.zip
Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on October 9th 2002 20:15 EST.
Notes
Notes: svn path=/vendor/gcc/dist/; revision=104752
Diffstat (limited to 'contrib/gcc/sched-deps.c')
-rw-r--r--contrib/gcc/sched-deps.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/contrib/gcc/sched-deps.c b/contrib/gcc/sched-deps.c
index f2f64d39669b..4e14ee26eaaa 100644
--- a/contrib/gcc/sched-deps.c
+++ b/contrib/gcc/sched-deps.c
@@ -923,7 +923,15 @@ sched_analyze_insn (deps, x, insn, loop_notes)
code = GET_CODE (x);
}
if (code == SET || code == CLOBBER)
- sched_analyze_1 (deps, x, insn);
+ {
+ sched_analyze_1 (deps, x, insn);
+
+ /* Bare clobber insns are used for letting life analysis, reg-stack
+ and others know that a value is dead. Depend on the last call
+ instruction so that reg-stack won't get confused. */
+ if (code == CLOBBER)
+ add_dependence_list (insn, deps->last_function_call, REG_DEP_OUTPUT);
+ }
else if (code == PARALLEL)
{
int i;