Index: flang/runtime/extrema.cpp =================================================================== --- flang/runtime/extrema.cpp +++ flang/runtime/extrema.cpp @@ -214,11 +214,13 @@ TotalNumericMaxOrMinLoc( "MAXLOC", result, x, kind, source, line, mask, back); } +#ifdef __SIZEOF_INT128__ void RTNAME(MaxlocInteger16)(Descriptor &result, const Descriptor &x, int kind, const char *source, int line, const Descriptor *mask, bool back) { TotalNumericMaxOrMinLoc( "MAXLOC", result, x, kind, source, line, mask, back); } +#endif void RTNAME(MaxlocReal4)(Descriptor &result, const Descriptor &x, int kind, const char *source, int line, const Descriptor *mask, bool back) { TotalNumericMaxOrMinLoc( @@ -268,11 +270,13 @@ TotalNumericMaxOrMinLoc( "MINLOC", result, x, kind, source, line, mask, back); } +#ifdef __SIZEOF_INT128__ void RTNAME(MinlocInteger16)(Descriptor &result, const Descriptor &x, int kind, const char *source, int line, const Descriptor *mask, bool back) { TotalNumericMaxOrMinLoc( "MINLOC", result, x, kind, source, line, mask, back); } +#endif void RTNAME(MinlocReal4)(Descriptor &result, const Descriptor &x, int kind, const char *source, int line, const Descriptor *mask, bool back) { TotalNumericMaxOrMinLoc(