From 3ddf29dea498799b26b75d23ee7de01c16dec542 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 5 Jun 1996 17:44:38 -0700 Subject: (ROUND_TYPE_ALIGN): Add check for TYPE_PACKED. From-SVN: r12173 --- gcc/config/i960/i960.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/config/i960') 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)))) -- cgit v1.1