Hi! Since the 2022-09-12 backport of this: On 2022-08-29T20:43:26+0200, Tobias Burnus wrote: > nvptx: libgomp+mkoffload.cc: Prepare for reverse offload fn lookup ... to og12 in commit 2b6ad53fd76c7bb9605be417d137a7d9a18f2117, the og12 branch didn't build anymore: [...]/gcc/config/nvptx/mkoffload.cc: In function 'void process(FILE*, FILE*, uint32_t)': [...]/gcc/config/nvptx/mkoffload.cc:284:59: error: 'UNLIKELY' was not declared in this scope if (UNLIKELY (startswith (input + i, ".target sm_"))) ^ [...]/gcc/config/nvptx/mkoffload.cc:289:57: error: 'UNLIKELY' was not declared in this scope if (UNLIKELY (startswith (input + i, ".version "))) ^ make[2]: *** [[...]/gcc/config/nvptx/t-nvptx:8: mkoffload.o] Error 1 > --- a/gcc/config/nvptx/mkoffload.cc > +++ b/gcc/config/nvptx/mkoffload.cc > @@ -261,6 +281,16 @@ process (FILE *in, FILE *out, uint32_t omp_requires) > case '\n': > fprintf (out, "\\n\"\n\t\""); > /* Look for mappings on subsequent lines. */ > + if (UNLIKELY (startswith (input + i, ".target sm_"))) > + { > + sm_ver = input + i + strlen (".target sm_"); > + continue; > + } > + if (UNLIKELY (startswith (input + i, ".version "))) > + { > + version = input + i + strlen (".version "); > + continue; > + } To fix this, I've pushed a (very much reduced) partial cherry-pick of commit r13-171-g22d9c8802add09a93308319fc37dd3a0f1125393 "Come up with {,UN}LIKELY macros" to og12 branch in commit 44b77201a5431450f608b4538fefb1319127de13, see attached. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955