public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* cgraph error on fndecls
@ 2012-03-20  2:51 Philip Herron
  2012-03-21  4:51 ` Philip Herron
  0 siblings, 1 reply; 2+ messages in thread
From: Philip Herron @ 2012-03-20  2:51 UTC (permalink / raw)
  To: GCC

Hey all

I started getting really active again working on my front-end and i am
getting this error:

gpy1: internal compiler error: in cgraph_analyze_functions, at cgraphunit.c:1210

And i am unsure what i am missing i have 2 bare bones fndecls trying
to be compiled and once i pass the decls to
cgraph_finalize_compilation_unit (); I get that error. Not sure where
to debug this, as i dont really understand how cgraph really works.

<function_decl 0xb7933b00 t_class_attrib_1.py.foobar.__init__
    type <function_type 0xb7944a20
        type <void_type 0xb793a6c0 VOID
            align 8 symtab 0 alias set -1 canonical type 0xb793a6c0
            pointer_to_this <pointer_type 0xb793a720>>
        QI
        size <integer_cst 0xb792a770 constant 8>
        unit size <integer_cst 0xb792a78c constant 1>
        align 8 symtab 0 alias set -1 canonical type 0xb7944a20
        arg-types <tree_list 0xb7938060 value <void_type 0xb793a6c0>>>
    used public static QI file <built-in> line 0 col 0 align 8 initial
<block 0xb7949000>
    result <result_decl 0xb79314ec D.47 type <void_type 0xb793a6c0>
        VOID file <built-in> line 0 col 0
        align 8 context <function_decl 0xb7933b00
t_class_attrib_1.py.foobar.__init__>>
    (mem:QI (symbol_ref:SI ("t_class_attrib_1.py.foobar.__init__")
[flags 0x3] <function_decl 0xb7933b00
t_class_attrib_1.py.foobar.__init__>) [0 S1 A8])
    struct-function 0xb79377e8>
 <function_decl 0xb7933a80 t_class_attrib_1.py.foobar.__field_init__
    type <function_type 0xb7944a20
        type <void_type 0xb793a6c0 VOID
            align 8 symtab 0 alias set -1 canonical type 0xb793a6c0
            pointer_to_this <pointer_type 0xb793a720>>
        QI
        size <integer_cst 0xb792a770 constant 8>
        unit size <integer_cst 0xb792a78c constant 1>
        align 8 symtab 0 alias set -1 canonical type 0xb7944a20
        arg-types <tree_list 0xb7938060 value <void_type 0xb793a6c0>>>
    used public static QI file <built-in> line 0 col 0 align 8 initial
<block 0xb7949030>
    result <result_decl 0xb7931498 D.45 type <void_type 0xb793a6c0>
        VOID file <built-in> line 0 col 0
        align 8 context <function_decl 0xb7933a80
t_class_attrib_1.py.foobar.__field_init__>>
    struct-function 0xb7937844>
gpy1: internal compiler error: in cgraph_analyze_functions, at cgraphunit.c:1210

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

* Re: cgraph error on fndecls
  2012-03-20  2:51 cgraph error on fndecls Philip Herron
@ 2012-03-21  4:51 ` Philip Herron
  0 siblings, 0 replies; 2+ messages in thread
From: Philip Herron @ 2012-03-21  4:51 UTC (permalink / raw)
  To: GCC

On 20 March 2012 02:51, Philip Herron <redbrain@gcc.gnu.org> wrote:
> Hey all
>
> I started getting really active again working on my front-end and i am
> getting this error:
>
> gpy1: internal compiler error: in cgraph_analyze_functions, at cgraphunit.c:1210
>
> And i am unsure what i am missing i have 2 bare bones fndecls trying
> to be compiled and once i pass the decls to
> cgraph_finalize_compilation_unit (); I get that error. Not sure where
> to debug this, as i dont really understand how cgraph really works.
>
> <function_decl 0xb7933b00 t_class_attrib_1.py.foobar.__init__
>    type <function_type 0xb7944a20
>        type <void_type 0xb793a6c0 VOID
>            align 8 symtab 0 alias set -1 canonical type 0xb793a6c0
>            pointer_to_this <pointer_type 0xb793a720>>
>        QI
>        size <integer_cst 0xb792a770 constant 8>
>        unit size <integer_cst 0xb792a78c constant 1>
>        align 8 symtab 0 alias set -1 canonical type 0xb7944a20
>        arg-types <tree_list 0xb7938060 value <void_type 0xb793a6c0>>>
>    used public static QI file <built-in> line 0 col 0 align 8 initial
> <block 0xb7949000>
>    result <result_decl 0xb79314ec D.47 type <void_type 0xb793a6c0>
>        VOID file <built-in> line 0 col 0
>        align 8 context <function_decl 0xb7933b00
> t_class_attrib_1.py.foobar.__init__>>
>    (mem:QI (symbol_ref:SI ("t_class_attrib_1.py.foobar.__init__")
> [flags 0x3] <function_decl 0xb7933b00
> t_class_attrib_1.py.foobar.__init__>) [0 S1 A8])
>    struct-function 0xb79377e8>
>  <function_decl 0xb7933a80 t_class_attrib_1.py.foobar.__field_init__
>    type <function_type 0xb7944a20
>        type <void_type 0xb793a6c0 VOID
>            align 8 symtab 0 alias set -1 canonical type 0xb793a6c0
>            pointer_to_this <pointer_type 0xb793a720>>
>        QI
>        size <integer_cst 0xb792a770 constant 8>
>        unit size <integer_cst 0xb792a78c constant 1>
>        align 8 symtab 0 alias set -1 canonical type 0xb7944a20
>        arg-types <tree_list 0xb7938060 value <void_type 0xb793a6c0>>>
>    used public static QI file <built-in> line 0 col 0 align 8 initial
> <block 0xb7949030>
>    result <result_decl 0xb7931498 D.45 type <void_type 0xb793a6c0>
>        VOID file <built-in> line 0 col 0
>        align 8 context <function_decl 0xb7933a80
> t_class_attrib_1.py.foobar.__field_init__>>
>    struct-function 0xb7937844>
> gpy1: internal compiler error: in cgraph_analyze_functions, at cgraphunit.c:1210

It seems  cgraph_add_new_function (fndecl, false); was causing me
problems and removing it has fixed the problem.

--Phil

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

end of thread, other threads:[~2012-03-21  4:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20  2:51 cgraph error on fndecls Philip Herron
2012-03-21  4:51 ` Philip Herron

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).