From e7b78f7226d6ceda9468856ea613130edfe9fd1d Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz Date: Tue, 18 Dec 2018 11:44:22 +0000 Subject: [PATCH] msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN. 2018-12-18 Jozef Lawrynowicz * config/msp430/msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN. From-SVN: r267229 --- gcc/ChangeLog | 4 ++++ gcc/config/msp430/msp430.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f7c79d31a1..5c8fc7e830d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-12-18 Jozef Lawrynowicz + + * config/msp430/msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN. + 2018-12-18 Jakub Jelinek PR target/88513 diff --git a/gcc/config/msp430/msp430.h b/gcc/config/msp430/msp430.h index 380e63e5a71..deb42eb0503 100644 --- a/gcc/config/msp430/msp430.h +++ b/gcc/config/msp430/msp430.h @@ -159,6 +159,11 @@ extern const char * msp430_select_hwmult_lib (int, const char **); #define PTR_SIZE (TARGET_LARGE ? 4 : 2) #define POINTERS_EXTEND_UNSIGNED 1 +/* TARGET_VTABLE_ENTRY_ALIGN defaults to POINTER_SIZE, which is 20 for + TARGET_LARGE. Pointer alignment is always 16 for MSP430, so set explicitly + here. */ +#define TARGET_VTABLE_ENTRY_ALIGN 16 + #define ADDR_SPACE_NEAR 1 #define ADDR_SPACE_FAR 2 -- 2.30.2