Bug 15504 - ICE in final_scan_insn
Summary: ICE in final_scan_insn
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.0.0
: P2 normal
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-05-17 22:03 UTC by Erik Schnetter
Modified: 2004-10-30 21:12 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail: 4.0.0
Last reconfirmed: 2004-05-17 22:32:13


Attachments
Failing source code (2.22 KB, text/plain)
2004-05-17 22:04 UTC, Erik Schnetter
Details
used module (548 bytes, text/plain)
2004-05-17 22:06 UTC, Erik Schnetter
Details
used module (250 bytes, text/plain)
2004-05-17 22:06 UTC, Erik Schnetter
Details
used module (193 bytes, text/plain)
2004-05-17 22:07 UTC, Erik Schnetter
Details
used module (400 bytes, text/plain)
2004-05-17 22:07 UTC, Erik Schnetter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Schnetter 2004-05-17 22:03:12 UTC
I receive an ICE from gfortran: 
 
$ gcc/bin/gfortran --version 
GNU Fortran 95 (GCC 3.5.0 20040517 (experimental)) 
 
/home/eschnett/gcc/bin/gfortran -march=pentium4 -malign-double 
-m128bit-long-double -ftrapv -g3 -Wall -c -o $current_wd/D3_extract.F.o 
$current_wd/D3_extract.f 
/home/eschnett/Calpha/Cactus/configs/einstein-gcc-debug/build/Extract/D3_extract.f: 
In function `d3_extract': 
/home/eschnett/Calpha/Cactus/configs/einstein-gcc-debug/build/Extract/D3_extract.f:-11: 
internal compiler error: in final_scan_insn, at final.c:1848 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
I will attach the source code files.
Comment 1 Erik Schnetter 2004-05-17 22:04:54 UTC
Created attachment 6320 [details]
Failing source code
Comment 2 Erik Schnetter 2004-05-17 22:06:17 UTC
Created attachment 6321 [details]
used module
Comment 3 Erik Schnetter 2004-05-17 22:06:59 UTC
Created attachment 6322 [details]
used module
Comment 4 Erik Schnetter 2004-05-17 22:07:24 UTC
Created attachment 6323 [details]
used module
Comment 5 Erik Schnetter 2004-05-17 22:07:51 UTC
Created attachment 6324 [details]
used module
Comment 6 Andrew Pinski 2004-05-17 22:32:12 UTC
Confirmed, for some reason the line number is negative (-11), either the middle-end is producing the 
wrong note which I almost think is the case then it is a dup of bug 14711 or PR 14712 or bug 15426.  
Note the number of lines in this testcase is less than 1000.  Or the fortran front-end is producing them, 
which means this is a recent regression.
Comment 7 Andrew Pinski 2004-05-17 22:35:56 UTC
Middle-end and not a target bug.
Comment 8 Andrew Pinski 2004-08-16 00:11:05 UTC
Well this testcase now works so closing as fixed, I am going to assume it was a front-end problem 
which has been fixed.