This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 8/9] tree.c: switch to targetm.pointer_size ()
- From: tbsaunde+gcc at tbsaunde dot org
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 26 Jul 2015 23:10:14 -0400
- Subject: [PATCH 8/9] tree.c: switch to targetm.pointer_size ()
- Authentication-results: sourceware.org; auth=none
- References: <1437966615-21093-1-git-send-email-tbsaunde+gcc at tbsaunde dot org>
From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
gcc/ChangeLog:
2015-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* tree.c (build_common_tree_nodes): Call targetm.pointer_size ().
---
gcc/tree.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/tree.c b/gcc/tree.c
index 94263af..02cbda8 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -9986,7 +9986,8 @@ build_common_tree_nodes (bool signed_char, bool short_double)
= build_pointer_type (build_type_variant (void_type_node, 1, 0));
fileptr_type_node = ptr_type_node;
- pointer_sized_int_node = build_nonstandard_integer_type (POINTER_SIZE, 1);
+ pointer_sized_int_node
+ = build_nonstandard_integer_type (targetm.pointer_size (), 1);
float_type_node = make_node (REAL_TYPE);
TYPE_PRECISION (float_type_node) = FLOAT_TYPE_SIZE;
--
2.4.0