Thread overview
[Issue 37] Inlining fails for functions with const parameters
Feb 19, 2013
Iain Buclaw
Feb 19, 2013
Johannes Pfau
Feb 19, 2013
Iain Buclaw
Mar 04, 2013
Johannes Pfau
February 19, 2013
http://gdcproject.org/bugzilla/show_bug.cgi?id=37

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-02-19 09:24:42 UTC ---
When you say force inlining, I take it you mean you are doing some trickery in the debugger. :-)

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.
February 19, 2013
http://gdcproject.org/bugzilla/show_bug.cgi?id=37

--- Comment #2 from Johannes Pfau <johannespfau@gmail.com> 2013-02-19 11:43:55 UTC ---
No, that error message was also reported by jerro and he added some pragma(always_inline) implementation to his copy of gdc.

The error is reported either from ipa-inline.c or from ipa-inline-analysis.c, grep for "CIF_MISMATCHED_ARGUMENTS". Both check for call_stmt_cannot_inline_p which is probably set in ipa-inline.c:

if (edge->callee->symbol.decl
  && !gimple_check_call_matching_types
      (edge->call_stmt,    edge->callee->symbol.decl))
  edge->call_stmt_cannot_inline_p = true;

gimple_check_call_matching_types is declared in gimple-low.c

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.
February 19, 2013
http://gdcproject.org/bugzilla/show_bug.cgi?id=37

--- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> 2013-02-19 12:59:31 UTC ---
That's lovely.  always_inline attribute has been removed from the set of available pragmas.  Actually I might remove all gcc-related pragmas in the near future and replace with @attributes instead.  But that's open for discussion on how best to proceed.

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.
March 04, 2013
http://gdcproject.org/bugzilla/show_bug.cgi?id=37

Johannes Pfau <johannespfau@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Johannes Pfau <johannespfau@gmail.com> 2013-03-04 13:07:36 UTC ---
Fixed https://github.com/D-Programming-GDC/GDC/commit/d7cb86d493ee1e85a3b55f73de55bb7f91d279cb

-- 
Configure issuemail: http://gdcproject.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all issue changes.