On 20 March 2012 02:51, Philip Herron <redbrain@xxxxxxxxxxx> 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