[Bug 268] New: Implement thunk generation in frontend

via D.gnu d.gnu at puremagic.com
Sun Jul 30 01:14:11 PDT 2017


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 at gdcproject.org
          Reporter: johannespfau at 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.


More information about the D.gnu mailing list