www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 268] New: Implement thunk generation in frontend

https://bugzilla.gdcproject.org/show_bug.cgi?id=268

            Bug ID: 268
           Summary: Implement thunk generation in frontend
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: johannespfau gmail.com

Almost forgot about this. We have some disabled tests/ features in GCC <= 4.9
as GCC thunk generation is limited. Link:
https://github.com/D-Programming-GDC/GDC/commit/50d87f28208341aff7e32939cea9cb4e72bce6ac#commitcomment-21212855

------------------------------------------------------------------------------
Generate the thunk in the frontend, which may benefit all versions - in
particular there is no support for variadic thunks that must fallback on the
generic version.

The body should look like this:

_DTsomeFunc(this, args)
{
  this += offset;
  someFunc(this, args);
}

The tricky bit is making sure that args are passed down correctly from va_args.

-- 
You are receiving this mail because:
You are watching all bug changes.
Jul 30 2017