[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 03:41:28 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20925

--- Comment #8 from kinke <kinke at gmx.net> ---
(In reply to Manu from comment #7)
> To be fair though; `pragma(inline, false)` isn't really clear from any
> perspective. What should it mean normally? Is it supposed to mean something
> useful? I don't think it's likely anyone would ever want that.

I doubt there are many cases for it outside of testcases, but there are some,
e.g., inline asm with stack alignment assumptions here:
https://github.com/ldc-developers/druntime/blob/f5e154743d844c5ec1ea3b086abb6daca6e1713b/src/core/thread/fiber.d#L250-L252

--


More information about the Digitalmars-d-bugs mailing list