summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-11 20:02:16 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-03-11 20:02:16 +0000
commit2538b6a32033377dcdcd8d45ac3450be8410dc0c (patch)
tree001b9477a1dad8e230c1ce4e94b884f373e5b51f
parentb375837dc4d00625cb1fccd8906fdd1153939404 (diff)
downloadppe42-gcc-2538b6a32033377dcdcd8d45ac3450be8410dc0c.tar.gz
ppe42-gcc-2538b6a32033377dcdcd8d45ac3450be8410dc0c.zip
PR target/14496
* config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for TARGET_SINGLE_FLOAT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@79342 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/mips/mips.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 10a741753c0..bf5617d263d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-11 Richard Sandiford <rsandifo@redhat.com>
+
+ PR target/14496
+ * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
+ TARGET_SINGLE_FLOAT.
+
2004-03-11 Steve Ellcey <sje@cup.hp.com>
* config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index cb3a9f39349..7622cb32e66 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -1308,8 +1308,10 @@ extern const struct mips_cpu_info *mips_tune_info;
/* The largest size of value that can be held in floating-point
registers. */
-#define UNITS_PER_FPVALUE \
- (TARGET_SOFT_FLOAT ? 0 : (LONG_DOUBLE_TYPE_SIZE / BITS_PER_UNIT))
+#define UNITS_PER_FPVALUE \
+ (TARGET_SOFT_FLOAT ? 0 \
+ : TARGET_SINGLE_FLOAT ? UNITS_PER_FPREG \
+ : LONG_DOUBLE_TYPE_SIZE / BITS_PER_UNIT)
/* The number of bytes in a double. */
#define UNITS_PER_DOUBLE (TYPE_PRECISION (double_type_node) / BITS_PER_UNIT)
OpenPOWER on IntegriCloud