[Issue 10985] Inliner doesn't attempt to inline non-templated functions from libraries (even having the full source)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 7 17:48:47 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10985



--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2013-09-07 17:48:45 PDT ---
(In reply to comment #1)
> I suspect this is a regression, but haven't yet made the time to try some older
> releases.  Any volunteers?

I tested on about a dozen of old releases. 
It either was breaking many times in between or never worked starting at least
with 2.030 (where I had to remove @property annotations).

E.g. here 2.030 is exactly the same (just less info):

D:\D\inline_test>dmd -v -inline test_inline.d mylib.lib
parse     test_inline
semantic  test_inline
import    object       
(C:\dmd\windows\bin\..\..\src\druntime\import\object.di)
import    mylib (mylib.d)
semantic2 test_inline
semantic3 test_inline
inline scan test_inline
code      test_inline
function  main
function  templated
function  templated
C:\dmd\windows\bin\link.exe test_inline,,,"mylib.lib"+user32+kernel32/noi;

D:\D\inline_test>dmd -v -inline test_inline.d mylib.d
parse     test_inline
parse     mylib
semantic  test_inline
import    object       
(C:\dmd\windows\bin\..\..\src\druntime\import\object.di)
semantic  mylib
semantic2 test_inline
semantic2 mylib
semantic3 test_inline
semantic3 mylib
inline scan test_inline
inline scan mylib
code      test_inline
function  main
function  templated
function  templated
code      mylib
function  fuzz
function  buzz
function  nonTemplated
C:\dmd\windows\bin\link.exe test_inline,,,user32+kernel32/noi;

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list