aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2004-10-26 17:36:29 +0000
committerAldy Hernandez <aldyh@gcc.gnu.org>2004-10-26 17:36:29 +0000
commitde334ef66a24e7ab148d658bc91c780b22425cd5 (patch)
tree35b5ebb4a8942f6518eaa7b60b580e87341325c0 /gcc
parentb2c5a1e912e708928f3f0697cb6248fd647bd85b (diff)
downloadgcc-de334ef66a24e7ab148d658bc91c780b22425cd5.zip
gcc-de334ef66a24e7ab148d658bc91c780b22425cd5.tar.gz
gcc-de334ef66a24e7ab148d658bc91c780b22425cd5.tar.bz2
rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500 doubles.
* config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500 doubles. [[Split portion of a mixed commit.]] From-SVN: r89592.2
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.h8
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 270f1bd..9869e41 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-26 Aldy Hernandez <aldyh@redhat.com>
+
+ * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
+ doubles.
+
2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
* stmt.c (expand_case): Update a comment.
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index a64d682..50b6ac1 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -759,9 +759,13 @@ extern const char *rs6000_warn_altivec_long_switch;
store_bit_field() will force (subreg:DI (reg:V2SI x))'s to the
back-end. Because a single GPR can hold a V2SI, but not a DI, the
best thing to do is set structs to BLKmode and avoid Severe Tire
- Damage. */
+ Damage.
+
+ On e500 v2, DF and DI modes suffer from the same anomaly. DF can
+ fit into 1, whereas DI still needs two. */
#define MEMBER_TYPE_FORCES_BLK(FIELD, MODE) \
- (TARGET_SPE && TREE_CODE (TREE_TYPE (FIELD)) == VECTOR_TYPE)
+ ((TARGET_SPE && TREE_CODE (TREE_TYPE (FIELD)) == VECTOR_TYPE) \
+ || (TARGET_E500_DOUBLE && (MODE) == DFmode))
/* A bit-field declared as `int' forces `int' alignment for the struct. */
#define PCC_BITFIELD_TYPE_MATTERS 1