https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84615
--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- (In reply to Janne Blomqvist from comment #12) > So to be clear, the problem seems to be that while the code generation for > the function itself appears Ok, it generates the interface wrong (i.e. uses > the declared charlen kind instead of C_SIZE_T), and thus calling it doesn't > work properly. I'm confused. Should not the charlen kind be identical to C_SIZE_T, also for -m32?