gcc version 4.1.0 (SUSE Linux) Trivial file fails to compile with -ff2c: gcc orient.f -ff2c -c -O -Wall -o orient.o orient.f: In function 'angnrm': orient.f:1: internal compiler error: in emit_move_insn, at expr.c:3158 Please submit a full bug report, with preprocessed source if appropriate. Omitting the -ff2c compiles the file. A different machine compiles this fine: gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) - although the output code differs depending on the -ff2c option.
Created attachment 13119 [details] trimmed down source file Just the ont function that provokes the problem.
Works, in terms of compiles, with gfortran-4.3 (svn version, 20070220). Did you try the latest 4.1.2 release?
Unfortunately it is not possible to test that here at the moment. This is not critical as I can avoid needing this code. Not sure if we do actually need to specify the -ff2c flag anyway, I have a report that we needed it to compile other code with the earlier compiler.
Having got gcc 4.1.3 (which supplied 4.1.2 prerelease) and some newer version of the GMP library installed. gcc --version gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE Linux) The problem still occurs gcc orient.f -ff2c -c -O -Wall -o orient.o orient.f: In function 'angnrm': orient.f:1: internal compiler error: in emit_move_insn, at expr.c:3162 Please submit a full bug report, with preprocessed source if appropriate.
*** This bug has been marked as a duplicate of 25392 ***