msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN.
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Tue, 18 Dec 2018 11:44:22 +0000 (11:44 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Tue, 18 Dec 2018 11:44:22 +0000 (11:44 +0000)
2018-12-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* config/msp430/msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN.

From-SVN: r267229

gcc/ChangeLog
gcc/config/msp430/msp430.h

index 6f7c79d31a11e33cdf1f525991b60cdb4c7a115f..5c8fc7e830d948a75ceef00b52bf61e1378cf901 100644 (file)
@@ -1,3 +1,7 @@
+2018-12-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * config/msp430/msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN.
+
 2018-12-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/88513
index 380e63e5a71d3f436ff2b6218ba6cf164fe157aa..deb42eb050351402df47b794161bd3c77f206a17 100644 (file)
@@ -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