On Fri, 10 Feb 2023 16:58:49 +0000, Farley, Peter wrote: >I have been writing some MetalC programs and ran into a case where the normal >OPTIMIZE setting (OPT(2)) provably inlined a couple of small functions. It is >not immediately obvious in the MetalC ASM output, but when the functions are >inlined there is no entry point for them, no FPB or FEPM compiler control data >generated for them, etc. > ... That's just wrong. Even if the compiler intends to generate inline code for calls to a function, it should generate an externally callable entry name, perhaps to an inline code body, regardless of optimization level.
SR. The modifier "static" has a flavor of "not external", and might be used to declare an inline-only function. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN