aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2007-02-14 23:38:01 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2007-02-14 23:38:01 +0000
commit07cb6e8c67e1a2d18e44a6efac90bfffd6f60181 (patch)
tree0b1be463b155b65ac7791e3f21009cc72f326b92 /gcc/function.c
parent702f9d782f241a8192e3cd2e10caa6ccb70bcbe6 (diff)
downloadgcc-07cb6e8c67e1a2d18e44a6efac90bfffd6f60181.zip
gcc-07cb6e8c67e1a2d18e44a6efac90bfffd6f60181.tar.gz
gcc-07cb6e8c67e1a2d18e44a6efac90bfffd6f60181.tar.bz2
emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex types as aggregates not scalars.
* emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex types as aggregates not scalars. * function.c (assign_stack_temp_for_type): Likewise. testsuite: * gcc.dg/torture/complex-alias-1.c: New test. From-SVN: r121968
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 31958b1..b667a17 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -763,7 +763,8 @@ assign_stack_temp_for_type (enum machine_mode mode, HOST_WIDE_INT size,
if (type != 0)
{
MEM_VOLATILE_P (slot) = TYPE_VOLATILE (type);
- MEM_SET_IN_STRUCT_P (slot, AGGREGATE_TYPE_P (type));
+ MEM_SET_IN_STRUCT_P (slot, (AGGREGATE_TYPE_P (type)
+ || TREE_CODE (type) == COMPLEX_TYPE));
}
MEM_NOTRAP_P (slot) = 1;