Bug 15929 - ICE with test compile/actual.f90
Summary: ICE with test compile/actual.f90
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
: 16050 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-11 02:27 UTC by David Billinghurst
Modified: 2004-07-10 00:44 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-06-11 02:33:26


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Billinghurst 2004-06-11 02:27:48 UTC
Test compile/actual.f90 passes at -O0 and -O1 but fails with higher 
optimization with CVS of 2004-06-11.  The error is

Executing on host: /disk4/billingd/obj/gcc-f/gcc/testsuite/../gfortran -
B/disk4/billingd/obj/gcc-f/gcc/testsuite/../  -w  -O2   -c  -
o /disk4/billingd/obj/gcc-
f/gcc/testsuite/actual.o /disk4/billingd/src/gcc/gcc/testsuite/gfortran.fortran
-torture/compile/actual.f90    (timeout = 300)
/disk4/billingd/src/gcc/gcc/testsuite/gfortran.fortran-
torture/compile/actual.f90: In function `MAIN__':
/disk4/billingd/src/gcc/gcc/testsuite/gfortran.fortran-
torture/compile/actual.f90:8: error: Missing callgraph edge for call expr:
 <call_expr 40194d0
    type <real_type 401d080 real4 SF
        size <integer_cst 40760c0 constant invariant 32>
        unit size <integer_cst 40760e0 constant invariant 4>
        align 32 symtab 0 alias set 2 precision 32
        pointer_to_this <pointer_type 401d200> reference_to_this 
<reference_type 4073200>>
    side-effects
    arg 0 <addr_expr 4075ee0
        type <pointer_type 4073b80 type <function_type 4073280>
            unsigned SI
            size <integer_cst 4013aa0 constant invariant 32>
            unit size <integer_cst 4013b20 constant invariant 4>
            align 32 symtab 0 alias set -1>
        constant invariant
        arg 0 <function_decl 407c400 fun type <function_type 4073280>
            addressable public external SI 
file /disk4/billingd/src/gcc/gcc/testsuite/gfortran.fortran-
torture/compile/actual.f90 line 21 chain <function_decl 4073800 MAIN__>>>
    arg 1 <tree_list 4075f00
        value <var_decl 407d680 a type <reference_type 4073200>
            readonly used unsigned SI 
file /disk4/billingd/src/gcc/gcc/testsuite/gfortran.fortran-
torture/compile/actual.f90 line 21 size <integer_cst 4013aa0 32> unit size 
<integer_cst 4013b20 4>
            align 32 context <function_decl 4073800 MAIN__> abstract_origin 
<parm_decl 4073e00 a> chain <var_decl 407d780>>>
    /disk4/billingd/src/gcc/gcc/testsuite/gfortran.fortran-
torture/compile/actual.f90:35>
MAIN__/2: 21 insns (33 after inlining) needed tree
  called by: 
  calls: 
/disk4/billingd/src/gcc/gcc/testsuite/gfortran.fortran-
torture/compile/actual.f90:8: internal compiler error: verify_cgraph_node 
failed.
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
Comment 1 Andrew Pinski 2004-06-11 02:33:26 UTC
Confirmed, known fails everywhere, this is caused by unit-at-a-time.
Comment 2 Andrew Pinski 2004-06-18 09:32:08 UTC
*** Bug 16050 has been marked as a duplicate of this bug. ***
Comment 3 Tobias Schlüter 2004-06-26 16:30:45 UTC
Is this still true? If yes, what architecture are you on?
Comment 4 Andrew Pinski 2004-06-26 19:22:51 UTC
This is fixed for now, but waiting to see if this was caused by Kenner's patch which should be reverted 
soon unless he fixes a performance problem.
Comment 5 David Billinghurst 2004-06-28 01:25:49 UTC
Confirm now OK on mips-sgi-irix6.5
Comment 6 Roger Hill-Cottingham 2004-06-29 07:54:16 UTC
Confirmed now OK for x86_64-unknown-linux-gnu and sparc-sun-solaris2.8.