https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369
--- Comment #14 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- the '-x f77' id documented here: https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Overall-Options.html#Overall-Options All it does is tell the compiler the source is fixed form or free-form. Admittedly that is confusing. -std= is definately what should be used for various dialects of fortran. The .f suffix on the file also tells the compiler fixed form. With this, we should consider changing the use of the option as it does no relate to dialect but rather the form of the source code.