r159131 - in /trunk: gcc/ChangeLog gcc/c-common...

jason@gcc.gnu.org jason@gcc.gnu.org
Thu May 6 20:51:00 GMT 2010


Author: jason
Date: Thu May  6 20:51:52 2010
New Revision: 159131

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159131
Log:
	Add support for C++0x nullptr.
gcc:
	* c-common.c (c_common_reswords): Add nullptr.
	* c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
	* dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
	(gen_type_die_with_usage): Likewise.
	* dbxout.c (dbxout_type): Likewise.
	* sdbout.c (plain_type_1): Likewise.
gcc/cp:
	* cp-tree.def: Add NULLPTR_TYPE.
	* cp-tree.h: Add nullptr_node.
	(cp_tree_index): Add CPTI_NULLPTR.
	(SCALAR_TYPE_P): Add NULLPTR_TYPE.
	* call.c (null_ptr_cst_p): Handle nullptr.
	(standard_conversion): Likewise.
	(convert_arg_to_ellipsis): Likewise.
	* mangle.c (write_type): Likewise.
	* name-lookup.c (arg_assoc_type): Likewise.
	* parser.c (cp_parser_primary_expression): Likewise.
	* typeck.c (cp_build_binary_op): Likewise.
	(build_reinterpret_cast_1): Likewise.
	* error.c (dump_type): Likewise.
	(dump_type_prefix, dump_type_suffix): Likewise.
	* decl.c (cxx_init_decl_processing): Likewise.
	* cxx-pretty-print.c (pp_cxx_constant): Likewise.
	* cvt.c (ocp_convert): Likewise.
	* rtti.c (typeinfo_in_lib_p, emit_support_tinfos): Put
	nullptr_t tinfo in libsupc++.
libstdc++-v3:
	* config/abi/pre/gnu.ver: Add typeinfo for decltype(nullptr).
libiberty:
	* cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
	(cplus_demangle_type): Handle nullptr.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/pre/gnu.ver

Changes in other areas also in this revision:
Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr01.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr02.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr03.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr04.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr05.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr06.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr07.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr08.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr09.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr10.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr11.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr12.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr13.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr14.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr15.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr16.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr17.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr18.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr19.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr20.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr21.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr22.C
    trunk/gcc/testsuite/g++.dg/debug/nullptr01.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/c-common.h
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.def
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/cvt.c
    trunk/gcc/cp/cxx-pretty-print.c
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/error.c
    trunk/gcc/cp/mangle.c
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/rtti.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/dbxout.c
    trunk/gcc/dwarf2out.c
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/sdbout.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C
    trunk/gcc/testsuite/gcc.dg/Wcxx-compat-2.c
    trunk/libiberty/ChangeLog
    trunk/libiberty/cp-demangle.c
    trunk/libiberty/cp-demangle.h
    trunk/libiberty/testsuite/demangle-expected



More information about the Libstdc++-cvs mailing list