aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-09-18 20:43:13 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-09-18 20:43:13 +0000
commit5ae6cd0d1b33941dc142292062ff565cd99e4504 (patch)
treedc06eda173c4ba3b692dac9d2c7c0e70f0eeba75 /gcc/stmt.c
parentbdf1f1c16d069eb1b1509cbef8fa1316d4349ba7 (diff)
downloadgcc-5ae6cd0d1b33941dc142292062ff565cd99e4504.zip
gcc-5ae6cd0d1b33941dc142292062ff565cd99e4504.tar.gz
gcc-5ae6cd0d1b33941dc142292062ff565cd99e4504.tar.bz2
re PR target/11184 ([ia64 hpux] ICE on __builtin_apply building libobjc)
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. From-SVN: r71539
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index b62f83e..18f46c8 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -520,10 +520,7 @@ expand_computed_goto (tree exp)
{
rtx x = expand_expr (exp, NULL_RTX, VOIDmode, 0);
-#ifdef POINTERS_EXTEND_UNSIGNED
- if (GET_MODE (x) != Pmode)
- x = convert_memory_address (Pmode, x);
-#endif
+ x = convert_memory_address (Pmode, x);
emit_queue ();