From a99503b17d0f9fef4bfdb1fc4ff6a7786ce821d7 Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Tue, 16 Dec 1997 23:52:36 +0000 Subject: [PATCH] jump.c: (optimize_jump): Don't use the return register as a source1 of a conditional move. * jump.c: (optimize_jump): Don't use the return register as a source1 of a conditional move. From-SVN: r17123 --- gcc/ChangeLog | 5 +++++ gcc/jump.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 115cdd2e3a2..1ffe005be4d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 17 00:51:36 1997 Stan Cox (scox@cygnus.com) + + * jump.c: (optimize_jump): Don't use the return register as a + source1 of a conditional move. + Tue Dec 16 23:45:40 1997 Richard Henderson * sparc.c (DF_MODES): Or the mask not the bit number. diff --git a/gcc/jump.c b/gcc/jump.c index 00e31cf22ec..8d097da226e 100644 --- a/gcc/jump.c +++ b/gcc/jump.c @@ -1198,6 +1198,10 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) rtx cond0, cond1, aval, bval; rtx target; + if (SMALL_REGISTER_CLASSES + && FUNCTION_VALUE_REGNO_P (REGNO (temp3))) + temp3 = temp1; + /* Copy the compared variables into cond0 and cond1, so that any side effects performed in or after the old comparison, will not affect our compare which will come later. */ -- 2.30.2