From 85d654ddd4b94ecbd2d2f291a6b6404fcde249ec Mon Sep 17 00:00:00 2001 From: mmitchel Date: Thu, 18 Sep 2003 20:43:13 +0000 Subject: PR target/11184 * builtins.c (expand_builtin_apply): Use convert_memory_address before returning the value. * alias.c (find_base_value): Simplify use of convert_memory_address. (find_base_term): Likewise. * builtins.c (expand_builtin_stejmp_setup): Likewise. (expand_builtin_longjmp): Likewise. (expand_builtin_prefetch): Likewise. (get_memory_rtx): Likewise. (expand_builtin_return): Likewise. (expand_builtin_memcpy): Likewise. (expand_builtin_strncpy): Likewise. (expand_builtin_memset): Likewise. (expand_builtin_va_arg): Likewise. (expand_builtin_va_copy): Likewise. (expand_builtin_alloca): Likewise. * calls.c (expand_call): Likewise. * except.c (expand_builtin_extract_return_addr): Likewise. (expand_builtin_eh_return): Likewise. * explow.c (convert_memory_address): Define even when POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address is already in the right mode. * explow.c (memory_address): Simplify use of convert_memory_address. (probe_stack_range): Likewise. * expmed.c (make_tree): Likewise. * expr.c (emit_block_move_in_libcall): Likewise. (expand_assignment): Likewise. (expand_expr): Likewise. * function.c (assign_parms): Likewise. (expand_function_end): Likewise. * integrate.c (copy_rtx_and_substitute): Likewise. * stmt.c (expand_computed_goto): Likewise. PR target/11184 * gcc.dg/builtin-apply1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71539 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/expmed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gcc/expmed.c') diff --git a/gcc/expmed.c b/gcc/expmed.c index c59f8651b7b..6acc8956e26 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -4115,12 +4115,10 @@ make_tree (tree type, rtx x) t = make_node (RTL_EXPR); TREE_TYPE (t) = type; -#ifdef POINTERS_EXTEND_UNSIGNED /* If TYPE is a POINTER_TYPE, X might be Pmode with TYPE_MODE being ptr_mode. So convert. */ - if (POINTER_TYPE_P (type) && GET_MODE (x) != TYPE_MODE (type)) + if (POINTER_TYPE_P (type)) x = convert_memory_address (TYPE_MODE (type), x); -#endif RTL_EXPR_RTL (t) = x; /* There are no insns to be output -- cgit v1.2.1