C-function Calling ABI (structures)

Bug #1763930 reported by edA-qa on 2018-04-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Leaf
Critical
Unassigned

Bug Description

The `native_call_byte_direct.lfb`, and SDL_text's `TTF_RenderUTF8_Blend` function use a structure as a parameter. LLVM does not create a proper ABI-compliant call for these structures. If you look at C Code it'll coerce structures into smaller types on the small side and then reassemble on the receiving end.

This means that each OS/system will require an ABI module that sits in the LLVM-gen layer and can produce ABI compatible calls -- note that we already do this for return values, guessing at which ones can be proper returns or not.

edA-qa (eda-qa) on 2018-04-14
Changed in leaflang:
importance: Undecided → Critical
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers