[Issue 20925] pragma(inline) should emit code to the calling CU + appropriate linker flags
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 13 02:36:13 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20925
--- Comment #2 from kinke <kinke at gmx.net> ---
IMO, `pragma(inline, true)` should clearly keep on being a strong hint for the
optimizer to inline a function into callers, everything else would be a bad
misnomer following C++.
I do deem the request for linkonce_odr emission into each referencing CU as
valid, but it should use another syntax.
As to `internal` linkage for `private pragma(inline, true)` IIUC - what's the
justification for the private special case and a reason *not* to fold any
remainining multiple definitions to a single one when linking?
--
More information about the Digitalmars-d-bugs
mailing list