Bug 30979 - internal compiler error -ff2c
Summary: internal compiler error -ff2c
Status: RESOLVED DUPLICATE of bug 25392
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-27 12:19 UTC by Tim Bevan
Modified: 2007-02-27 15:28 UTC (History)
6 users (show)

See Also:
Host: i586-suse-linux
Target: i586-suse-linux
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
trimmed down source file (356 bytes, text/plain)
2007-02-27 12:21 UTC, Tim Bevan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Bevan 2007-02-27 12:19:34 UTC
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.
Comment 1 Tim Bevan 2007-02-27 12:21:54 UTC
Created attachment 13119 [details]
trimmed down source file

Just the ont function that provokes the problem.
Comment 2 Daniel Franke 2007-02-27 13:11:52 UTC
Works, in terms of compiles, with gfortran-4.3 (svn version, 20070220).
Did you try the latest 4.1.2 release?
Comment 3 Tim Bevan 2007-02-27 13:51:42 UTC
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. 
Comment 4 Tim Bevan 2007-02-27 15:03:48 UTC
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.

Comment 5 Andrew Pinski 2007-02-27 15:28:28 UTC

*** This bug has been marked as a duplicate of 25392 ***