https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120960
Bug ID: 120960 Summary: jit: The static initialization of builtin_data uses flag_openacc and flag_openmp (which have not been set yet) Product: gcc Version: 15.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: jit Assignee: dmalcolm at gcc dot gnu.org Reporter: jamborm at gcc dot gnu.org CC: antoyo at gcc dot gnu.org Target Milestone: --- In jit "FE," builtin_data array holding information about builtin functions is a static array and is statically initialized using macros DEF_GOACC_BUILTIN_COMPILER, DEF_GOMP_BUILTIN_COMPILER and others which use flag_openacc and flag_openmp to initialize one of the fields of elements of the array. Unless I am missing something obvious, because this is done in a static initializer, this happens before the flags have a chance to hold any meaningful value - although I am not sure whether there is such a thing as a meaningful value for these in the case of JIT. Of course, feel free to close this as WONTFIX if this is not deemed to be a problem for this use case.