https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42954
--- Comment #47 from Christopher Albert <albert at tugraz dot at> --- Created attachment 64225 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64225&action=edit v2: Enable target preprocessor macros with -cpp v2 patch superseding attachment 64224. Changes from v1: 1. Set flag_iso=1 (was 0). This suppresses bare-name macros like "unix", "linux", "i386" that would silently replace valid Fortran identifiers. Only the reserved-namespace forms (__unix__, __linux__, __i386__, etc.) are defined. 2. Remove dead __attribute__((target("avx512f,avx512bw"))) block from gfortran.dg/gomp/declare-variant-10.f90. The #ifdef guard was always false before this patch (gfortran never defined __x86_64__); now it activates, but gfortran does not support C-style __attribute__ syntax. The scan-dump expectations already handle both paths. 3. Fix gfc_define_ix86_target_macros to suppress bare "i386" on 32-bit, consistent with flag_iso=1. Bootstrapped and regression-tested on x86_64-pc-linux-gnu: - check-gfortran: 76597 passes, 6 FAIL (all bessel_6.f90, known PR124819) - check-target-libgomp-fortran: 1182 passes, 0 FAIL, both libgomp.fortran/fortran.exp and libgomp.oacc-fortran/fortran.exp ran - Zero new FAIL/XPASS compared to unpatched trunk
