aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/stor-layout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 0e6efe9..66f77db 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -618,6 +618,11 @@ layout_type (type)
TYPE_MODE (type) = VOIDmode;
break;
+ case OFFSET_TYPE:
+ TYPE_SIZE (type) = size_int (GET_MODE_BITSIZE (Pmode));
+ TYPE_MODE (type) = Pmode;
+ break;
+
case FUNCTION_TYPE:
case METHOD_TYPE:
TYPE_MODE (type) = mode_for_size (2 * GET_MODE_BITSIZE (Pmode),