From de334ef66a24e7ab148d658bc91c780b22425cd5 Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Tue, 26 Oct 2004 17:36:29 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.h | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 270f1bdbb4d..9869e4174bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-10-26 Aldy Hernandez + + * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500 + doubles. + 2004-10-26 Kazu Hirata * stmt.c (expand_case): Update a comment. diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index a64d6827538..50b6ac1cfcc 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 -- 2.30.2