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 c++/37057] 7 Internal Compiler Errors when compiling OpenFOAM-1.5



------- Comment #15 from dje at gcc dot gnu dot org  2008-09-14 15:35 -------
Honza,

I think that your recent pt.c:tsubst_decl() fix coincidentally may have fixed
this as well.  Tracing the ggc_alloc_stat() calls, struct function only appears
to be allocated once, but likely is copied when it should not be.

Jørn,

Could you try rebuilding GCC 4.3.1 with Honza's patch and report if it fixes
your failures?

http://gcc.gnu.org/ml/gcc-patches/2008-09/msg00999.html


#0  ggc_alloc_stat (size=84) at /farm/dje/src/src/gcc/ggc-page.c:1251
#1  0x100059ac in ggc_alloc_cleared_stat (size=84)
    at /farm/dje/src/src/gcc/ggc-common.c:132
#2  0x10072b10 in allocate_struct_function (fndecl=0x30119c00, 
    abstract_p=1 '\001') at /farm/dje/src/src/gcc/function.c:3944
#3  0x10562c28 in start_preparsed_function (decl1=0x30119c00, 
    attrs=0x20029648, flags=0) at /farm/dje/src/src/gcc/cp/decl.c:11544
#4  0x10581d78 in start_function (declspecs=0x2006e360, declarator=0x10, 
    attrs=0x0) at /farm/dje/src/src/gcc/cp/decl.c:11727
#5  0x107340e0 in cp_parser_init_declarator (parser=0x304ef230, 
    decl_specifiers=0x2ff21f20, checks=0x0, 
    function_definition_allowed_p=1 '\001', member_p=0 '\0', 
    declares_class_or_enum=806084960, function_definition_p=0x2ff21f18 "\001")
    at /farm/dje/src/src/gcc/cp/parser.c:17371
#6  0x10735bec in cp_parser_single_declaration (parser=0x304ef230, checks=0x0, 
    member_p=0 '\0', explicit_specialization_p=0 '\0', friend_p=0x2ff21fd8 "")
    at /farm/dje/src/src/gcc/cp/parser.c:17717
#7  0x10735ed4 in cp_parser_template_declaration_after_export (
    parser=0x304ef230, member_p=0 '\0')
    at /farm/dje/src/src/gcc/cp/parser.c:17570
#8  0x1073d484 in cp_parser_declaration (parser=0x304ef230)
    at /farm/dje/src/src/gcc/cp/parser.c:7885
#9  0x1073da88 in cp_parser_declaration_seq_opt (parser=0x304ef230)
    at /farm/dje/src/src/gcc/cp/parser.c:7816
#10 0x1073e7d0 in cp_parser_namespace_definition (parser=0x304ef230)
    at /farm/dje/src/src/gcc/cp/parser.c:12029
#11 0x1073d390 in cp_parser_declaration (parser=0x304ef230)
    at /farm/dje/src/src/gcc/cp/parser.c:7917
#12 0x1073da88 in cp_parser_declaration_seq_opt (parser=0x304ef230)
    at /farm/dje/src/src/gcc/cp/parser.c:7816
#13 0x1073e370 in c_parse_file () at /farm/dje/src/src/gcc/cp/parser.c:3031
#14 0x107abf98 in c_common_parse_file (set_yydebug=806760888)
    at /farm/dje/src/src/gcc/c-opts.c:1239
#15 0x10003800 in toplev_main (argc=537008760, argv=0x109696c0)
    at /farm/dje/src/src/gcc/toplev.c:968
#16 0x100003a0 in main (argc=806760888, argv=0x10)
    at /farm/dje/src/src/gcc/main.c:35
#17 0x10000214 in __start ()

(gdb) print fndecl
$6 = 0x30119c00
(gdb) pt
 <function_decl 30119c00 _M_destroy
    type <method_type 3017ab60
        type <void_type 300214e0 void type_6 VOID
            align 8 symtab 0 alias set -1 canonical type 300214e0
            pointer_to_this <pointer_type 30021548>>
        SI
        size <integer_cst 300073e8 constant 32>
        unit size <integer_cst 300070f0 constant 4>
        align 32 symtab 0 alias set -1 canonical type 301211a0 method basetype
<record_type 3011d9c0 _Rep>
        arg-types <tree_list 3017b1e0 value <pointer_type 30120680>
            chain <tree_list 3017b1a0 value <reference_type 3017a958>
                chain <tree_list 30014f60 value <void_type 300214e0 void>>>>
        throws <tree_list 300b3040>>
    nothrow public static external in_system_header no-static-chain SI file
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include/c++/bits/basic_string.tcc
line 420 col 42 align 32 context <record_type 3011d9c0 _Rep> initial
<error_mark 30014aa0>
    arguments <parm_decl 30171d70 this
        type <pointer_type 301206e8 type <record_type 3011d9c0 _Rep>
            readonly unsigned type_0 type_6 SI size <integer_cst 300073e8 32>
unit size <integer_cst 300070f0 4>
            align 32 symtab 0 alias set -1 canonical type 301206e8>
        readonly unsigned SI file
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include/c++/bits/basic_string.tcc
line 420 col 42 size <integer_cst 300073e8 32> unit size <integer_cst 300070f0
4>
        align 32
        chain <parm_decl 30171d20 __a type <reference_type 3017a958>
            unsigned SI file
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include/c++/bits/basic_string.tcc
line 420 col 30 size <integer_cst 300073e8 32> unit size <integer_cst 300070f0
4>
            align 32>>
    result <result_decl 30171dc0 D.9306 type <void_type 300214e0 void>
        ignored VOID file
/opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.3.1/include/c++/bits/basic_string.tcc
line 420 col 42
        align 8>
    template-info 3017b320 chain <function_decl 30119c80 _M_refcopy>>


-- 

dje at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2008-
                   |                            |09/msg00999.html


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


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