diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1996-06-05 17:44:38 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1996-06-05 17:44:38 -0700 |
commit | 3ddf29dea498799b26b75d23ee7de01c16dec542 (patch) | |
tree | f48515ad10ed8782573c0c0224ad60810904e8a0 /gcc/config/i960 | |
parent | 564890c98537ee4637edba5c5c91287ec123cb99 (diff) | |
download | gcc-3ddf29dea498799b26b75d23ee7de01c16dec542.zip gcc-3ddf29dea498799b26b75d23ee7de01c16dec542.tar.gz gcc-3ddf29dea498799b26b75d23ee7de01c16dec542.tar.bz2 |
(ROUND_TYPE_ALIGN): Add check for TYPE_PACKED.
From-SVN: r12173
Diffstat (limited to 'gcc/config/i960')
-rw-r--r-- | gcc/config/i960/i960.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index aa09de9..6b78eaa 100644 --- a/gcc/config/i960/i960.h +++ b/gcc/config/i960/i960.h @@ -402,7 +402,8 @@ extern int target_flags; #define ROUND_TYPE_ALIGN(TYPE, COMPUTED, SPECIFIED) \ ((TREE_CODE (TYPE) == REAL_TYPE && TYPE_MODE (TYPE) == XFmode) \ ? 128 /* Put 80 bit floating point elements on 128 bit boundaries. */ \ - : ((!TARGET_OLD_ALIGN && TREE_CODE (TYPE) == RECORD_TYPE) \ + : ((!TARGET_OLD_ALIGN && !TYPE_PACKED (TYPE) \ + && TREE_CODE (TYPE) == RECORD_TYPE) \ ? i960_round_align (MAX ((COMPUTED), (SPECIFIED)), TYPE_SIZE (TYPE)) \ : MAX ((COMPUTED), (SPECIFIED)))) |