www.digitalmars.com         C & C++   DMDScript  

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


            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:

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