aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2021-12-10 01:30:19 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2021-12-10 02:02:13 +0100
commit213b7d9cf76d73f7b716a6f9119971cb65bd85e2 (patch)
treecf553feadc4dac8fe5157a1e5393b21ba416e74b /gcc/d
parent4b4839e325cfb27156d416f1efc230b9a30b0d2e (diff)
downloadgcc-213b7d9cf76d73f7b716a6f9119971cb65bd85e2.zip
gcc-213b7d9cf76d73f7b716a6f9119971cb65bd85e2.tar.gz
gcc-213b7d9cf76d73f7b716a6f9119971cb65bd85e2.tar.bz2
d: Align methods to MINIMUM_METHOD_BOUNDARY.
Aligns all D defined methods to MINIMUM_METHOD_BOUNDARY, improving interoperability with C++ methods. gcc/d/ChangeLog: * decl.cc (get_symbol_decl): Align methods to MINIMUM_METHOD_BOUNDARY.
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/decl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc
index a4976b6..c69f566 100644
--- a/gcc/d/decl.cc
+++ b/gcc/d/decl.cc
@@ -1248,6 +1248,9 @@ get_symbol_decl (Declaration *decl)
DECL_VINDEX (decl->csym) = size_int (fd->vtblIndex);
DECL_VIRTUAL_P (decl->csym) = 1;
}
+
+ /* Align method to the minimum boundary for target. */
+ SET_DECL_ALIGN (decl->csym, MINIMUM_METHOD_BOUNDARY);
}
else if (fd->isMain () || fd->isCMain ())
{