aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index e0ce201b86b..cfc5cc581c9 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -800,6 +800,8 @@ promote_mode (const_tree type ATTRIBUTE_UNUSED, machine_mode mode,
case REFERENCE_TYPE:
case POINTER_TYPE:
*punsignedp = POINTERS_EXTEND_UNSIGNED;
+ if (SHARED_TYPE_P (TREE_TYPE (type)))
+ return TYPE_MODE (upc_pts_type_node);
return targetm.addr_space.address_mode
(TYPE_ADDR_SPACE (TREE_TYPE (type)));
break;