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



--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-29 19:07:23 
UTC ---

(In reply to comment #5)

> Created attachment 28829 [details]

> Proposed fix

> 

> I suppose something across these lines should do the trick.  I am not sure 
> what

> exactly is the codition for var to be needed to go through 
> wrapup_global_decl. 

> Also I think types are usually going in there, too.



It doesn't work:



lto1: internal compiler error: Segmentation fault

0x994661 crash_signal

        /export/gnu/import/git/gcc/gcc/toplev.c:334

0x5206c8 gt_ggc_mx_lang_tree_node(void*)

        ./gtype-lto.h:37

0x522623 gt_ggc_mx_lang_tree_node(void*)

        ./gtype-lto.h:389

0x522539 gt_ggc_mx_lang_tree_node(void*)

        ./gtype-lto.h:380

0x5399ab gt_ggc_ma_gimple_type_leader

        ./gt-lto-lto.h:154

0x7419c4 ggc_mark_root_tab

        /export/gnu/import/git/gcc/gcc/ggc-common.c:138

0x741a74 ggc_mark_roots()

        /export/gnu/import/git/gcc/gcc/ggc-common.c:157

0x5433e5 ggc_collect()

        /export/gnu/import/git/gcc/gcc/ggc-page.c:2087

0x5388b4 read_cgraph_and_symbols

        /export/gnu/import/git/gcc/gcc/lto/lto.c:2993

0x5393c9 lto_main()

        /export/gnu/import/git/gcc/gcc/lto/lto.c:3383

Please submit a full bug report,

with preprocessed source if appropriate.

Please include the complete backtrace with any bug report.

See <http://gcc.gnu.org/bugs.html> for instructions.

Reply via email to