diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-12-10 01:30:19 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2021-12-10 02:02:13 +0100 |
commit | 213b7d9cf76d73f7b716a6f9119971cb65bd85e2 (patch) | |
tree | cf553feadc4dac8fe5157a1e5393b21ba416e74b /gcc/d | |
parent | 4b4839e325cfb27156d416f1efc230b9a30b0d2e (diff) | |
download | gcc-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.cc | 3 |
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 ()) { |