https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117434
kargls at comcast dot net changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargls at comcast dot net --- Comment #1 from kargls at comcast dot net --- Commenting out the error message allows the code to compile. If one uses -O0 on x86_64-*-freebsd, one gets % gfcx -o z f.f90 && ./z /usr/local/bin/ld: warning: /tmp/ccOYCa0i.o: requires executable stack (because the .note.GNU-stack section is executable) With higher optimizations such as -O1, the code compiles and executes. I've been unable to find the necessary set of conditions to skip the error. The executable stack situation will also need to be addressed.