From: Trevor Saunders <tbsaunde+...@tbsaunde.org> gcc/ChangeLog:
2015-07-26 Trevor Saunders <tbsaunde+...@tbsaunde.org> * stor-layout.c (layout_type): Call targetm.pointer_size (). --- gcc/stor-layout.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 160ffe2..6043398 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -2228,12 +2228,13 @@ layout_type (tree type) break; case OFFSET_TYPE: - TYPE_SIZE (type) = bitsize_int (POINTER_SIZE); + TYPE_SIZE (type) = bitsize_int (targetm.pointer_size ()); TYPE_SIZE_UNIT (type) = size_int (pointer_size_units ()); /* A pointer might be MODE_PARTIAL_INT, but ptrdiff_t must be integral, which may be an __intN. */ - SET_TYPE_MODE (type, mode_for_size (POINTER_SIZE, MODE_INT, 0)); - TYPE_PRECISION (type) = POINTER_SIZE; + SET_TYPE_MODE (type, mode_for_size (targetm.pointer_size (), MODE_INT, + 0)); + TYPE_PRECISION (type) = targetm.pointer_size (); break; case FUNCTION_TYPE: -- 2.4.0