summaryrefslogtreecommitdiff
path: root/gcc/config/msp430
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2018-12-18 11:44:22 +0000
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>2018-12-18 11:44:22 +0000
commite7b78f7226d6ceda9468856ea613130edfe9fd1d (patch)
tree544cf9c0e8030196d036b7d18f64f936e7242f2a /gcc/config/msp430
parent4714942e0fbd2aa23f12f88d80b93e9b6ff4c041 (diff)
downloadgcc-e7b78f7226d6ceda9468856ea613130edfe9fd1d.tar.gz
msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN.
2018-12-18 Jozef Lawrynowicz <jozef.l@mittosystems.com> * config/msp430/msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN. From-SVN: r267229
Diffstat (limited to 'gcc/config/msp430')
-rw-r--r--gcc/config/msp430/msp430.h5
1 files changed, 5 insertions, 0 deletions
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