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++/44561] using nullptr_t with -flto/-fwhopr causes ICE: tree code 'lang_type' is not supported in gimple streams


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

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-14 11:59:50 UTC ---
Author: rguenth
Date: Thu Oct 14 11:59:47 2010
New Revision: 165462

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165462
Log:
2010-10-14  Richard Guenther  <rguenther@suse.de>

    PR lto/44561
    * tree.def (NULLPTR_TYPE): New tree code.
    * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
    * dwarf2out.c (is_base_type): Likewise.
    (gen_type_die_with_usage): Likewise.
    * sdbout.c (plain_type_1): Likewise.
    * tree.c (build_int_cst_wide): Likewise.
    * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types
    are equal.

    cp/
    * cp-tree.h (NULLPTR_TYPE_P): Adjust.
    * decl.c (cxx_init_decl_processing): Build a NULLPTR_TYPE node,
    use build_int_cst.
    * error.c (dump_type): Handle NULLPTR_TYPE.
    (dump_type_prefix): Likewise.
    (dump_type_suffix): Likewise.
    * mangle.c (write_type): Likewise.
    * name-lookup.c (arg_assoc_type): Likewise.
    * rtti.c (typeinfo_in_lib_p): Likewise.
    * pt.c (tsubst): Likewise.

    * g++.dg/lto/20101010-3_0.C: New testcase.
    * g++.dg/lto/20101010-4_0.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/lto/20101010-3_0.C
    trunk/gcc/testsuite/g++.dg/lto/20101010-4_0.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/error.c
    trunk/gcc/cp/mangle.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/rtti.c
    trunk/gcc/dbxout.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/gimple.c
    trunk/gcc/sdbout.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c
    trunk/gcc/tree.def


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