diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/rs6000/rs6000.h | 8 |
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 |
