This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/28176] New: FAIL: gfortran.dg/actual_array_constructor_1.f90 -O0 (ICE)


Executing on host: /mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../gfortran
-B/
mnt/gnu/gcc/objdir/gcc/testsuite/gfortran/../../
/mnt/gnu/gcc/gcc/gcc/testsuite/
gfortran.dg/actual_array_constructor_1.f90   -O0   -pedantic-errors 
-L/mnt/gnu/
gcc/objdir/hppa64-hp-hpux11.00/./libgfortran/.libs
-L/mnt/gnu/gcc/objdir/hppa64-
hp-hpux11.00/./libgfortran/.libs
-L/mnt/gnu/gcc/objdir/hppa64-hp-hpux11.00/./lib
iberty  -lm   -o ./actual_array_constructor_1.exe    (timeout = 300)
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/actual_array_constructor_1.f90: In
fu
nction 'redirect_':^M
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/actual_array_constructor_1.f90:21:
in
ternal compiler error: Segmentation fault^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
See <URL:http://gcc.gnu.org/bugs.html> for instructions.^M
compiler exited with status 1
output is:
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/actual_array_constructor_1.f90: In
fu
nction 'redirect_':^M
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/actual_array_constructor_1.f90:21:
in
ternal compiler error: Segmentation fault^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
See <URL:http://gcc.gnu.org/bugs.html> for instructions.^M
FAIL: gfortran.dg/actual_array_constructor_1.f90  -O0  (internal compiler
error)
FAIL: gfortran.dg/actual_array_constructor_1.f90  -O0  (test for excess errors)
Excess errors:
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/actual_array_constructor_1.f90:21:
in
ternal compiler error: Segmentation fault

WARNING: gfortran.dg/actual_array_constructor_1.f90  -O0  compilation failed to
produce executable

# /opt/gnu64/bin/gdb ../../f951
GNU gdb 6.4.50.20051209-cvs
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa64-hp-hpux11.11"...
(gdb) r `cat xx.sh`
Starting program: /mnt/gnu/gcc/objdir/gcc/f951 `cat xx.sh`
Detaching after fork from child process 1902.
GNU F95 version 4.2.0 20060626 (experimental) (hppa64-hp-hpux11.00)
        compiled by GNU C version 4.2.0 20060626 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal SIGSEGV, Segmentation fault.
aggregate_value_p (exp=0x0, fntype=0x0) at ../../gcc/gcc/function.c:1750
1750      tree type = (TYPE_P (exp)) ? exp : TREE_TYPE (exp);
(gdb) bt
#0  aggregate_value_p (exp=0x0, fntype=0x0) at ../../gcc/gcc/function.c:1750
#1  0x4000000000284214 in emit_library_call_value_1 (retval=0,
    orgfun=0x800003fffed5d8c0, value=0x0, fn_type=<value optimized out>,
    outmode=VOIDmode, nargs=<value optimized out>, p=0x800003fffeff2038)
    at ../../gcc/gcc/calls.c:3312
#2  0x4000000000284958 in emit_library_call_value (orgfun=0x0, value=0x8,
    fn_type=2640219, outmode=CCmode, nargs=128) at ../../gcc/gcc/calls.c:3967
#3  0x40000000003d60d0 in expand_binop (mode=TImode,
    binoptab=<value optimized out>, op0=0x800003fffedd8be0,
    op1=0x800003fffedd8ba0, target=<value optimized out>, unsignedp=0,
    methods=<value optimized out>) at ../../gcc/gcc/optabs.c:1888
#4  0x40000000002f5768 in expand_mult (mode=TImode,
    op0=<value optimized out>, op1=0x800003fffedd8ba0,
    target=0x800003fffedd8b80, unsignedp=1) at ../../gcc/gcc/expmed.c:3227
#5  0x4000000000305d18 in expand_expr_real_1 (exp=<value optimized out>,
    target=0x800003fffedd8b80, tmode=<value optimized out>,
    modifier=<value optimized out>, alt_rtl=0x800003fffeff1948)
    at ../../gcc/gcc/expr.c:8145
#6  0x400000000030ebc0 in expand_expr_real (exp=0x800003fffedf4288,
    target=0x800003fffedd8b80, tmode=TImode, modifier=EXPAND_NORMAL,
    alt_rtl=0x800003fffeff1948) at ../../gcc/gcc/expr.c:6690
#7  0x4000000000315ae4 in store_expr (exp=0x800003fffedf4288,
    target=0x800003fffedd8b80, call_param_p=0) at ../../gcc/gcc/expr.c:4370
---Type <return> to continue, or q <return> to quit---
#8  0x4000000000300384 in expand_assignment (to=0x800003fffedfbd10,
    from=<value optimized out>) at ../../gcc/gcc/expr.c:4249
#9  0x40000000003061a4 in expand_expr_real_1 (exp=<value optimized out>,
    target=<value optimized out>, tmode=<value optimized out>,
    modifier=<value optimized out>, alt_rtl=0x0) at ../../gcc/gcc/expr.c:8587
#10 0x400000000030ea88 in expand_expr_real (exp=0x800003fffedf4c18,
    target=0x800003fffed5a400, tmode=VOIDmode, modifier=EXPAND_NORMAL,
    alt_rtl=0x0) at ../../gcc/gcc/expr.c:6684
#11 0x400000000044b584 in expand_expr_stmt (exp=0x0) at expr.h:493
#12 0x400000000049a5d8 in expand_gimple_basic_block (bb=0x800003fffedfe258)
    at ../../gcc/gcc/cfgexpand.c:1368
#13 0x400000000049bb4c in tree_expand_cfg () at ../../gcc/gcc/cfgexpand.c:1634
#14 0x4000000000495394 in execute_one_pass (pass=0x800000010001b728)
    at ../../gcc/gcc/passes.c:864
#15 0x40000000004956b0 in execute_pass_list (pass=0x800000010001b728)
    at ../../gcc/gcc/passes.c:911
#16 0x40000000001e129c in tree_rest_of_compilation (fndecl=0x800003fffedefe00)
    at ../../gcc/gcc/tree-optimize.c:418
#17 0x4000000000192144 in gfc_expand_function (fndecl=0x800003fffedefe00)
    at ../../gcc/gcc/fortran/f95-lang.c:236
#18 0x40000000004e939c in cgraph_expand_function (node=0x800003fffedfb4d0)
    at ../../gcc/gcc/cgraphunit.c:1112
#19 0x40000000004eaf64 in cgraph_assemble_pending_functions ()
---Type <return> to continue, or q <return> to quit---
    at ../../gcc/gcc/cgraphunit.c:364
#20 0x40000000004ea3d0 in cgraph_finalize_function (decl=0x800003fffedefe00,
    nested=0 '\0') at ../../gcc/gcc/cgraphunit.c:490
#21 0x40000000001b4434 in gfc_generate_function_code (
    ns=<value optimized out>) at ../../gcc/gcc/fortran/trans-decl.c:3075
#22 0x400000000019c9e8 in gfc_generate_module_code (ns=0x80000001000c0178)
    at ../../gcc/gcc/fortran/trans.c:685
#23 0x400000000016fe18 in gfc_parse_file ()
    at ../../gcc/gcc/fortran/parse.c:3201
#24 0x400000000019c1a8 in gfc_be_parse_file (
    set_yydebug=<value optimized out>) at ../../gcc/gcc/fortran/f95-lang.c:303
#25 0x400000000045790c in toplev_main (argc=<value optimized out>,
    argv=<value optimized out>) at ../../gcc/gcc/toplev.c:999
#26 0x40000000001dcaf4 in main (argc=0, argv=0x0) at ../../gcc/gcc/main.c:35

Looks like a TImode problem.  Although this is a 64-bit target, it doesn't
support TImode.

>From frame 6:

(gdb) p debug_tree (to)
 <var_decl 800003fffedfbd10 D.905
    type <integer_type 800003fffed62160 bit_size_type public unsigned sizetype
TI
        size <integer_cst 800003fffed56a20 constant invariant 128>
        unit size <integer_cst 800003fffed56a50 constant invariant 16>
        align 128 symtab 0 alias set -1 precision 68 min <integer_cst
800003fffed56c60 0> max <integer_cst 800003fffed56b70 0xfffffffffffffffff>>
    used unsigned ignored TI file
/mnt/gnu/gcc/gcc/gcc/testsuite/gfortran.dg/actual_array_constructor_1.f90 line
21 size <integer_cst 800003fffed56a20 128> unit size <integer_cst
800003fffed56a50 16>
    align 128 context <function_decl 800003fffedefe00 redirect_>
    (reg:TI 84 [ D.905 ]) chain <var_decl 800003fffedfbdc0 D.906>>


-- 
           Summary: FAIL: gfortran.dg/actual_array_constructor_1.f90  -O0
                    (ICE)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa64-hp-hpux11.11
  GCC host triplet: hppa64-hp-hpux11.11
GCC target triplet: hppa64-hp-hpux11.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28176


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]