From: Steve Ellcey Date: Tue, 14 Jun 2011 20:21:34 +0000 (+0000) Subject: decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30644fc48bde92746faa9bca4f82dffc0617c83c;p=gcc.git decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode. 2011-06-14 Steve Ellcey * decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode. From-SVN: r175053 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ef71b697e88..1b47938b170 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2011-06-14 Steve Ellcey + + * decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode. + 2011-06-14 Jason Merrill * error.c (type_to_string): Print typedef-stripped version too. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index f4988f910de..3ccefb901e1 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3672,7 +3672,7 @@ cxx_init_decl_processing (void) TYPE_SIZE_UNIT (nullptr_type_node) = size_int (GET_MODE_SIZE (ptr_mode)); TYPE_UNSIGNED (nullptr_type_node) = 1; TYPE_PRECISION (nullptr_type_node) = GET_MODE_BITSIZE (ptr_mode); - SET_TYPE_MODE (nullptr_type_node, Pmode); + SET_TYPE_MODE (nullptr_type_node, ptr_mode); record_builtin_type (RID_MAX, "decltype(nullptr)", nullptr_type_node); nullptr_node = build_int_cst (nullptr_type_node, 0); }