public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
@ 2007-12-15 17:21 danglin at gcc dot gnu dot org
  2007-12-17 15:15 ` [Bug middle-end/34483] " olga at gcc dot gnu dot org
                   ` (55 more replies)
  0 siblings, 56 replies; 57+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-12-15 17:21 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 57+ messages in thread

end of thread, other threads:[~2008-11-01 20:16 UTC | newest]

Thread overview: 57+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-15 17:21 [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 danglin at gcc dot gnu dot org
2007-12-17 15:15 ` [Bug middle-end/34483] " olga at gcc dot gnu dot org
2007-12-24  2:08 ` dave at hiauly1 dot hia dot nrc dot ca
2007-12-28 14:58 ` rsandifo at gcc dot gnu dot org
2007-12-28 19:28 ` olga at gcc dot gnu dot org
2007-12-28 19:38 ` rsandifo at nildram dot co dot uk
2007-12-28 19:54 ` dave at hiauly1 dot hia dot nrc dot ca
2007-12-29  1:25 ` dave at hiauly1 dot hia dot nrc dot ca
2007-12-29 16:20 ` hjl at lucon dot org
2007-12-30 12:19 ` olga at gcc dot gnu dot org
2007-12-30 14:54 ` pinskia at gcc dot gnu dot org
2007-12-31 19:44 ` dominiq at lps dot ens dot fr
2008-01-02 13:24 ` rsandifo at nildram dot co dot uk
2008-01-02 15:16 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-02 17:26 ` dominiq at lps dot ens dot fr
2008-01-03  2:40 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-07 14:10 ` olga at gcc dot gnu dot org
2008-01-07 20:19 ` dominiq at lps dot ens dot fr
2008-01-08 16:11 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-15 14:55 ` olga at gcc dot gnu dot org
2008-01-15 20:50 ` dominiq at lps dot ens dot fr
2008-01-16  7:13 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-20 14:35 ` olga at gcc dot gnu dot org
2008-01-20 15:29 ` dominiq at lps dot ens dot fr
2008-01-20 18:10 ` olga at gcc dot gnu dot org
2008-01-20 19:27 ` dominiq at lps dot ens dot fr
2008-01-20 21:33 ` dominiq at lps dot ens dot fr
2008-01-21 14:10 ` olga at gcc dot gnu dot org
2008-01-21 14:27 ` dominiq at lps dot ens dot fr
2008-01-21 15:18 ` dominiq at lps dot ens dot fr
2008-01-21 19:10 ` olga at il dot ibm dot com
2008-01-21 19:56 ` dominiq at lps dot ens dot fr
2008-01-21 20:41 ` olga at il dot ibm dot com
2008-01-21 20:42 ` dominiq at lps dot ens dot fr
2008-01-21 20:55 ` olga at il dot ibm dot com
2008-01-21 21:43 ` dominiq at lps dot ens dot fr
2008-01-22 21:02 ` olga at il dot ibm dot com
2008-01-22 22:12 ` olga at il dot ibm dot com
2008-01-22 23:26 ` dominiq at lps dot ens dot fr
2008-01-22 23:42 ` olga at il dot ibm dot com
2008-01-22 23:50 ` dominiq at lps dot ens dot fr
2008-01-24 13:53 ` dominiq at lps dot ens dot fr
2008-01-24 16:43 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-25  0:34 ` danglin at gcc dot gnu dot org
2008-01-25  9:14 ` olga at il dot ibm dot com
2008-01-25 19:30 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-26 22:46 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-29 10:15 ` alond at il dot ibm dot com
2008-01-30 20:14 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-31 18:53 ` alond at il dot ibm dot com
2008-01-31 22:24 ` dave at hiauly1 dot hia dot nrc dot ca
2008-01-31 22:30 ` dave at hiauly1 dot hia dot nrc dot ca
2008-02-03 14:49 ` olga at gcc dot gnu dot org
2008-02-05  2:43 ` dave at hiauly1 dot hia dot nrc dot ca
2008-02-07 10:26 ` olga at gcc dot gnu dot org
2008-02-07 15:34 ` dave at hiauly1 dot hia dot nrc dot ca
2008-11-01 20:16 ` danglin at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).