From 0501c12e681626c5a8f07310ac7e14fd98eddc0e Mon Sep 17 00:00:00 2001 From: wilson Date: Thu, 6 Jun 1996 00:44:38 +0000 Subject: [PATCH] (ROUND_TYPE_ALIGN): Add check for TYPE_PACKED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12173 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/i960/i960.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/i960/i960.h b/gcc/config/i960/i960.h index aa09de91cd7..6b78eaaba7f 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)))) -- 2.11.4.GIT