]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Do not implicitly set DECL_DECLARED_INLINE_P on member functions.
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 25 Jun 2020 07:33:26 +0000 (09:33 +0200)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:15:02 +0000 (13:15 -0300)
commit8da795d172ba734468668fc564793c7d1a0209ae
tree7d62a3f79fd6675474c2611b513191007baf0412
parent85e9c8a01a9c89f7d14454e8a929ff1033ec15b6
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.
gcc/d/decl.cc