From: Richard Kenner Date: Tue, 17 Jun 2003 13:40:37 +0000 (+0000) Subject: ia64.c (ia64_expand_builtin, [...]): Handle POINTERS_EXTEND_UNSIGNED. X-Git-Tag: releases/gcc-3.4.0~5730 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8419b6757b44f0bb3d8bd20e50197576fbdcb927;p=thirdparty%2Fgcc.git ia64.c (ia64_expand_builtin, [...]): Handle POINTERS_EXTEND_UNSIGNED. * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP): Handle POINTERS_EXTEND_UNSIGNED. From-SVN: r68083 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 114ffd81e487..1dfed6281e93 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-17 Richard Kenner + + * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP): + Handle POINTERS_EXTEND_UNSIGNED. + 2003-06-17 Rainer Orth * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 && diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index b7f9b289caa7..dd9426870fbe 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -8253,6 +8253,9 @@ ia64_expand_builtin (exp, target, subtarget, mode, ignore) if (! target || ! register_operand (target, DImode)) target = gen_reg_rtx (DImode); emit_insn (gen_bsp_value (target)); +#ifdef POINTERS_EXTEND_UNSIGNED + target = convert_memory_address (ptr_mode, target); +#endif return target; case IA64_BUILTIN_FLUSHRS: