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 middle-end/34483] New: wo_prof_two_strs.c:56: internal compiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605


Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/wo_prof_two_strs.c   -O3
-fipa-struct
-reorg -fdump-ipa-all -fwhole-program -combine -fipa-type-escape
-fno-show-colum
n  -lm   -o ./wo_prof_two_strs.exe    (timeout = 300)
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/wo_prof_two_strs.c: In function
'm
ain':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/wo_prof_two_strs.c:56: internal
co
mpiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/wo_prof_two_strs.c: In function
'm
ain':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/wo_prof_two_strs.c:56: internal
co
mpiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

FAIL: gcc.dg/struct/wo_prof_two_strs.c (internal compiler error)
FAIL: gcc.dg/struct/wo_prof_two_strs.c (test for excess errors)
Excess errors:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/wo_prof_two_strs.c:56: internal
co
mpiler error: in find_new_var_of_type, at ipa-struct-reorg.c:605

WARNING: gcc.dg/struct/wo_prof_two_strs.c compilation failed to produce
executab
le
FAIL: gcc.dg/struct/wo_prof_two_strs.c scan-ipa-dump ipa_struct_reorg "Number
of
 structures to transform is 2"

and

Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/
/te
st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_two_strs.c    -O3
-fwhole-prog
ram -combine -fipa-type-escape -fprofile-use -fipa-struct-reorg -fdump-ipa-all
-
fno-show-column  -lm   -o
/test/gnu/gcc/objdir/gcc/testsuite/gcc/w_prof_two_strs
.x02    (timeout = 300)
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_two_strs.c: In function
'ma
in':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_two_strs.c:53: internal
com
piler error: in find_new_var_of_type, at ipa-struct-reorg.c:605
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
compiler exited with status 1
output is:
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_two_strs.c: In function
'ma
in':
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_two_strs.c:53: internal
com
piler error: in find_new_var_of_type, at ipa-struct-reorg.c:605
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

FAIL: gcc.dg/struct/w_prof_two_strs.c compilation,  -O3 -fwhole-program
-combine
 -fipa-type-escape -fprofile-use -fipa-struct-reorg -fdump-ipa-all (internal
com
piler error)
UNRESOLVED: gcc.dg/struct/w_prof_two_strs.c execution,    -O3 -fwhole-program
-c
ombine -fipa-type-escape -fprofile-use -fipa-struct-reorg -fdump-ipa-all

For the first, I see the following backtrace:

(gdb) p var
$2 = (new_var) 0x0
(gdb) bt
#0  find_new_var_of_type (orig_var=0x800003fffde810a0,
    new_type=0x800003fffde7dcc0) at ../../gcc/gcc/ipa-struct-reorg.c:605
#1  0x4000000000d4f140 in gen_cast_stmt (before_cast=0x800003fffde916e0,
    new_type=0x800003fffde7dcc0, orig_cast_stmt=0x800003fffde79f30,
    res_p=0x800003fffdff1460) at ../../gcc/gcc/ipa-struct-reorg.c:652
#2  0x4000000000d56564 in create_new_malloc (malloc_stmt=0x800003fffde79f00,
    new_type=0x800003fffde7dcc0, new_stmts=0x800003fffdff1370,
    num=0x800003fffde8d0c0) at ../../gcc/gcc/ipa-struct-reorg.c:1747
#3  0x4000000000d582a0 in create_new_alloc_sites (m_data=0x8000000100128410,
    context=0x800003fffde7b270) at ../../gcc/gcc/ipa-struct-reorg.c:2167
#4  0x4000000000d5bd98 in create_new_alloc_sites_for_func (
    node=0x800003fffde41400) at ../../gcc/gcc/ipa-struct-reorg.c:2645
#5  0x4000000000d5f4c4 in do_reorg_for_func (node=0x800003fffde41400)
    at ../../gcc/gcc/ipa-struct-reorg.c:3191
#6  0x4000000000d61b40 in do_reorg_1 ()
    at ../../gcc/gcc/ipa-struct-reorg.c:3664
#7  0x4000000000d629e4 in do_reorg () at ../../gcc/gcc/ipa-struct-reorg.c:3915
#8  0x4000000000d62b04 in reorg_structs ()
    at ../../gcc/gcc/ipa-struct-reorg.c:3956
#9  0x4000000000d62b58 in reorg_structs_drive ()
    at ../../gcc/gcc/ipa-struct-reorg.c:3967
#10 0x40000000007349c8 in execute_one_pass (pass=0x8000000100048cd8)
    at ../../gcc/gcc/passes.c:1118
---Type <return> to continue, or q <return> to quit---
#11 0x4000000000734e30 in execute_ipa_pass_list (pass=0x8000000100048cd8)
    at ../../gcc/gcc/passes.c:1187
#12 0x4000000000d2ceb0 in ipa_passes () at ../../gcc/gcc/cgraphunit.c:1339
#13 0x4000000000d2d154 in cgraph_optimize ()
    at ../../gcc/gcc/cgraphunit.c:1386
#14 0x40000000001a80e4 in c_write_global_declarations ()
    at ../../gcc/gcc/c-decl.c:8077
#15 0x4000000000881768 in compile_file () at ../../gcc/gcc/toplev.c:1055
#16 0x40000000008852dc in do_compile () at ../../gcc/gcc/toplev.c:2245
#17 0x40000000008853f8 in toplev_main (argc=22, argv=0x800003fffdff06c0)
    at ../../gcc/gcc/toplev.c:2277
#18 0x40000000002b86f8 in main (argc=Cannot access memory at address 0x0
) at ../../gcc/gcc/main.c:35

(gdb) p debug_tree (orig_var)
 <var_decl 800003fffde810a0 p1.5
    type <pointer_type 800003fffde78cc0
        type <record_type 800003fffde78900 str_t1 no-force-blk type_0 BLK
            size <integer_cst 800003fffdec88d0 constant invariant 64>
            unit size <integer_cst 800003fffdec8900 constant invariant 8>
            align 32 symtab 0 alias set -1 canonical type 800003fffde786c0
fields <field_decl 800003fffde6d1e0 a> context <translation_unit_decl
800003fffde7d600 D.2666>
            pointer_to_this <pointer_type 800003fffde78cc0>>
        public unsigned DI size <integer_cst 800003fffdec88d0 64> unit size
<integer_cst 800003fffdec8900 8>
        align 64 symtab 0 alias set -1 canonical type 800003fffde78d80>
    used unsigned ignored DI file
/test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_two_strs.c line 37 col 3
size <integer_cst 800003fffdec88d0 64> unit size <integer_cst 800003fffdec8900
8>
    align 64 context <function_decl 800003fffde7b270 main> chain <var_decl
800003fffde81140 D.2651>>

(gdb) p debug_tree (new_type)
 <record_type 800003fffde7dcc0 struct.0_sub.0 SF
    size <integer_cst 800003fffdec87e0 type <integer_type 800003fffded3180
bit_size_type> constant invariant 32>
    unit size <integer_cst 800003fffdec8450 type <integer_type 800003fffded30c0
long unsigned int> constant invariant 4>
    align 32 symtab 0 alias set -1 canonical type 800003fffde7dcc0
    fields <field_decl 800003fffde6d3c0 d
        type <real_type 800003fffdee7600 float SF size <integer_cst
800003fffdec87e0 32> unit size <integer_cst 800003fffdec8450 4>
            align 32 symtab 0 alias set 4 canonical type 800003fffdee7600
precision 32
            pointer_to_this <pointer_type 800003fffdee7840>>
        SF file /test/gnu/gcc/gcc/gcc/testsuite/gcc.dg/struct/w_prof_two_strs.c
line 12 col 9 size <integer_cst 800003fffdec87e0 32> unit size <integer_cst
800003fffdec8450 4>
        align 32 offset_align 128
        offset <integer_cst 800003fffdec8480 constant invariant 0>
        bit offset <integer_cst 800003fffdee50c0 constant invariant 0> context
<record_type 800003fffde7dcc0 struct.0_sub.0>>
    pointer_to_this <pointer_type 800003fffde7de40>>

On entry, orig_var was:

(gdb) p debug_tree (orig_var)
 <ssa_name 800003fffde8d1e0
    type <pointer_type 800003fffde78cc0
        type <record_type 800003fffde78900 str_t1 no-force-blk type_0 BLK
            size <integer_cst 800003fffdec88d0 constant invariant 64>
            unit size <integer_cst 800003fffdec8900 constant invariant 8>
            align 32 symtab 0 alias set -1 canonical type 800003fffde786c0
fields <field_decl 800003fffde6d1e0 a> context <translation_unit_decl
800003fffde7d600 D.2666>
            pointer_to_this <pointer_type 800003fffde78cc0>>
        public unsigned DI size <integer_cst 800003fffdec88d0 64> unit size
<integer_cst 800003fffdec8900 8>
        align 64 symtab 0 alias set -1 canonical type 800003fffde78d80>
    visited var <var_decl 800003fffde810a0 p1.5> def_stmt <gimple_modify_stmt
800003fffde79f30>
    version 12>


-- 
           Summary: wo_prof_two_strs.c:56: internal compiler error: in
                    find_new_var_of_type, at ipa-struct-reorg.c:605
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        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=34483


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