[Bug 67] Imported functions are not inlined.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 25 00:32:48 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=67
unknown at simplemachines.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |unknown at simplemachines.org
------- Comment #1 from unknown at simplemachines.org 2006-03-25 02:32 -------
That's because in inline.c, when checking to see if a function can be inlined,
it checks to see if the semantic run has happened yet. Which makes sense,
because that needs to happen to inline it.
Simply adding a semantic3 to Import fixes this (because then imported functions
are get a sematic run), although honestly I'm not sure if that's the right fix.
It may be a lot slower to do this, and it may certainly have been left out on
purpose.
Maybe it can be sematic3'd only when -inline is passed, if that can work.
Really, I must say, I always expected that this worked and now wonder how much
benefit/deteriment it would give if it did.
Thanks,
-[Unknown]
--
More information about the Digitalmars-d-bugs
mailing list