From 0c37ca1c84a2cf2d560fb45954dfd898288e3f31 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Sat, 22 Jun 2002 05:02:57 -0700 Subject: [PATCH] PR target/6841 target/6770 target/6719 2002-06-22 David S. Miller PR target/6841 target/6770 target/6719 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or GENERAL_OR_EXTRA_FP_REGS. From-SVN: r54909 --- gcc/ChangeLog | 7 +++++++ gcc/config/sparc/sparc.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 79f86a670800..bf92a1b14640 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2002-06-22 David S. Miller + + PR target/6841 target/6770 target/6719 + * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return + NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or + GENERAL_OR_EXTRA_FP_REGS. + 2002-06-21 Rainer Orth * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index fa90afa02160..7b59128a7a29 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -1414,6 +1414,8 @@ extern char leaf_reg_remap[]; #define PREFERRED_RELOAD_CLASS(X,CLASS) \ (CONSTANT_P (X) \ ? ((FP_REG_CLASS_P (CLASS) \ + || (CLASS) == GENERAL_OR_FP_REGS \ + || (CLASS) == GENERAL_OR_EXTRA_FP_REGS \ || (GET_MODE_CLASS (GET_MODE (X)) == MODE_FLOAT \ && ! TARGET_FPU) \ || (GET_MODE (X) == TFmode \ -- 2.47.2