aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ"orn Rennecke <joern.rennecke@superh.com>2003-04-04 15:01:15 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2003-04-04 16:01:15 +0100
commit5d8062175840a586ad1f4724c52317e8cc016e98 (patch)
tree13391c7284558912c1e51886b51c95f5bc0cb308
parent0dc5ac92ebfb70eeb8485ba52252808be43ca971 (diff)
downloadgcc-5d8062175840a586ad1f4724c52317e8cc016e98.zip
gcc-5d8062175840a586ad1f4724c52317e8cc016e98.tar.gz
gcc-5d8062175840a586ad1f4724c52317e8cc016e98.tar.bz2
sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of (NORMAL_MODE).
* sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of (NORMAL_MODE). * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE. From-SVN: r65241
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/sh/sh.c2
-rw-r--r--gcc/config/sh/sh.h6
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 098a39d..6317830 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
+ (NORMAL_MODE).
+ * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
+
2003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* doc/contrib.texi (Contributors): Add entries for Wolfgang
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index e4a55de..54ad2cf 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -7180,7 +7180,7 @@ fpscr_set_from_mem (mode, regs_live)
enum attr_fp_mode fp_mode = mode;
rtx addr_reg = get_free_reg (regs_live);
- if (fp_mode == (enum attr_fp_mode) NORMAL_MODE (FP_MODE))
+ if (fp_mode == (enum attr_fp_mode) ACTUAL_NORMAL_MODE (FP_MODE))
emit_insn (gen_fpu_switch1 (addr_reg));
else
emit_insn (gen_fpu_switch0 (addr_reg));
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index c2f3160..1b2f381 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -3288,10 +3288,12 @@ extern int rtx_equal_function_value_matters;
#define OPTIMIZE_MODE_SWITCHING(ENTITY) TARGET_SH4
+#define ACTUAL_NORMAL_MODE(ENTITY) \
+ (TARGET_FPU_SINGLE ? FP_MODE_SINGLE : FP_MODE_DOUBLE)
+
#define NORMAL_MODE(ENTITY) \
(sh_cfun_interrupt_handler_p () ? FP_MODE_NONE \
- : TARGET_FPU_SINGLE ? FP_MODE_SINGLE \
- : FP_MODE_DOUBLE)
+ : ACTUAL_NORMAL_MODE (ENTITY))
#define EPILOGUE_USES(REGNO) ((TARGET_SH2E || TARGET_SH4) \
&& (REGNO) == FPSCR_REG)