diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 98f1146f996..efac978ff3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-02-20 Roger Sayle + + * explow.c (force_reg): Avoid useless REG_EQUAL notes. + 2003-02-20 Toon Moene PR fortran/9038 @@ -7,11 +11,14 @@ Thu Feb 20 21:41:19 CET 2003 Jan Hubicka - * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New global variables. - (lang_independent_options): Add -fsched2-use-superblocks -fsced2-use-traces. + * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New + global variables. + (lang_independent_options): Add -fsched2-use-superblocks + -fsced2-use-traces. (rest_of_compilation): Deal with it. * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare. - * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces): Declare. + * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces): + Declare. * rtl.h (reg_to_stack): Update prototype. * reg-stack.c (reg_to_stack): Return when something has changed; update liveness when executing after superblock scheduling. diff --git a/gcc/explow.c b/gcc/explow.c index df5bcf659ef..fb133687c4a 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -775,7 +775,8 @@ force_reg (mode, x) if INSN set something else (such as a SUBREG of TEMP). */ if (CONSTANT_P (x) && (set = single_set (insn)) != 0 - && SET_DEST (set) == temp) + && SET_DEST (set) == temp + && ! rtx_equal_p (x, SET_SRC (set))) set_unique_reg_note (insn, REG_EQUAL, x); return temp;