aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2016-07-11 11:29:39 +0200
committerYvan Roux <yvan.roux@linaro.org>2016-07-11 11:31:40 +0200
commit58632c1a76afecc82f34a8c875abfe100a6f1fff (patch)
treea838c594301dda5059a34ea107e37e1f2c9407e0 /gcc/stor-layout.c
parent9a84dc335246b2eb2fd2d7b190b5c2aa6e156df4 (diff)
Merge branches/gcc-6-branch rev 238201.
Change-Id: Ib44920195c04c4e75202c096d6140ff9e9a7c78b
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 26581e3e131..dd40ca00af8 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -2147,10 +2147,8 @@ layout_type (tree type)
case COMPLEX_TYPE:
TYPE_UNSIGNED (type) = TYPE_UNSIGNED (TREE_TYPE (type));
SET_TYPE_MODE (type,
- mode_for_size (2 * TYPE_PRECISION (TREE_TYPE (type)),
- (TREE_CODE (TREE_TYPE (type)) == REAL_TYPE
- ? MODE_COMPLEX_FLOAT : MODE_COMPLEX_INT),
- 0));
+ GET_MODE_COMPLEX_MODE (TYPE_MODE (TREE_TYPE (type))));
+
TYPE_SIZE (type) = bitsize_int (GET_MODE_BITSIZE (TYPE_MODE (type)));
TYPE_SIZE_UNIT (type) = size_int (GET_MODE_SIZE (TYPE_MODE (type)));
break;