aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-25 09:33:26 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-06-25 17:02:47 +0200
commit27a68020110f671ef3b64cdce27f7b723f8a1fec (patch)
treead5539bbd94257fce30003983dd45f6b6482905a /gcc/d
parentbbd6a326f4e630f017e4cd715f617587048d4501 (diff)
downloadgcc-27a68020110f671ef3b64cdce27f7b723f8a1fec.zip
gcc-27a68020110f671ef3b64cdce27f7b723f8a1fec.tar.gz
gcc-27a68020110f671ef3b64cdce27f7b723f8a1fec.tar.bz2
d: Do not implicitly set DECL_DECLARED_INLINE_P on member functions.
This has been questionable behaviour since it was added, and though it has no effect on wider discussions around what should be the correct semantics of pragma(inline) within D modules, doing this tree-level optimization has mostly zero benefit as cross-module inlining doesn't happen anyway. gcc/d/ChangeLog: * decl.cc (get_symbol_decl): Do not implicitly set DECL_DECLARED_INLINE_P on member functions.
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/decl.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/d/decl.cc b/gcc/d/decl.cc
index 77144fe..15eb9a4 100644
--- a/gcc/d/decl.cc
+++ b/gcc/d/decl.cc
@@ -1250,13 +1250,6 @@ get_symbol_decl (Declaration *decl)
}
/* Miscellaneous function flags. */
- if (fd->isMember2 () || fd->isFuncLiteralDeclaration ())
- {
- /* See grokmethod in cp/decl.c. Maybe we shouldn't be setting inline
- flags without reason or proper handling. */
- DECL_DECLARED_INLINE_P (decl->csym) = 1;
- DECL_NO_INLINE_WARNING_P (decl->csym) = 1;
- }
/* In [pragma/inline], functions decorated with `pragma(inline)' affects
whether they are inlined or not. */