diff options
author | Steve Ellcey <sje@cup.hp.com> | 2011-06-14 20:21:34 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2011-06-14 20:21:34 +0000 |
commit | 30644fc48bde92746faa9bca4f82dffc0617c83c (patch) | |
tree | 7e077dd8c7e66640bbe3ae93db6738aba383ba8d /gcc | |
parent | c49a69620430855d0b44d4248f4722b0ce0e6013 (diff) | |
download | gcc-30644fc48bde92746faa9bca4f82dffc0617c83c.zip gcc-30644fc48bde92746faa9bca4f82dffc0617c83c.tar.gz gcc-30644fc48bde92746faa9bca4f82dffc0617c83c.tar.bz2 |
decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode.
2011-06-14 Steve Ellcey <sje@cup.hp.com>
* decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode.
From-SVN: r175053
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ef71b69..1b47938 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2011-06-14 Steve Ellcey <sje@cup.hp.com> + + * decl.c (cxx_init_decl_processing): Use ptr_mode instead of Pmode. + 2011-06-14 Jason Merrill <jason@redhat.com> * error.c (type_to_string): Print typedef-stripped version too. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index f4988f9..3ccefb9 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); } |