Am 09.09.24 um 20:01 schrieb Richard Biener:
But it will require some ugly m4 hackery... I'll take a look if I can make it work.
> I meant you shouldn’t need new library entry points for unsigned > but simply call the signed ones (and switch the signed implementation > to use unsigned arithmetic due to the overflow issue). That's clear. The evil m4 hackery comes from the way that the files are generated. The file name is passed to m4, which is then parsed with the macros in libgfortran/m4/iparm.m4 , where (among other things) 'i' in the name of the file to be generated is translated to GFC_INTEGER_... in the macros rtype, rtype_name and rtype_code (if that exists). So, I will need to either persudade iparm.m4 to check for the matmul name and redefine the get_typename macro accordingly, or (probably the easier option) to redefine rtype and friends if rtype_name happens to match ^GFC_INTEGER, in matmul.m4. Best regards Thomas