From 5535633407a3c84b4f19b9c2f88be92cb51ba8e3 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 24 Jan 2012 19:06:38 +0000 Subject: rtl.texi (MEM_IN_STRUCT_P, [...]): Delete. gcc/ * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete. (in_struct, return_val): Remove MEM documentation. * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val. (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete. (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P and MEM_SCALAR. * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise. * cfgexpand.c (add_alias_set_conflicts): Likewise. * expr.c (store_field): Likewise. * function.c (assign_stack_temp_for_type): Likewise. * ifcvt.c (noce_try_cmove_arith): Likewise. * reload1.c (reload): Likewise. * config/alpha/alpha.c (alpha_set_memflags_1): Likewise. (alpha_set_memflags): Likewise. * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify. gcc/testsuite/ * gcc.dg/memcpy-4.c: Don't expect /s on MEMs. From-SVN: r183486 --- gcc/function.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 94e51f4..4508ae2 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -939,14 +939,7 @@ assign_stack_temp_for_type (enum machine_mode mode, HOST_WIDE_INT size, /* If a type is specified, set the relevant flags. */ if (type != 0) - { - MEM_VOLATILE_P (slot) = TYPE_VOLATILE (type); - gcc_checking_assert (!MEM_SCALAR_P (slot) && !MEM_IN_STRUCT_P (slot)); - if (AGGREGATE_TYPE_P (type) || TREE_CODE (type) == COMPLEX_TYPE) - MEM_IN_STRUCT_P (slot) = 1; - else - MEM_SCALAR_P (slot) = 1; - } + MEM_VOLATILE_P (slot) = TYPE_VOLATILE (type); MEM_NOTRAP_P (slot) = 1; return slot; -- cgit v1.1