From: Ulrich Weigand Date: Tue, 17 Nov 2009 16:11:44 +0000 (+0000) Subject: * reload.c (find_reloads_address): Fix typo. X-Git-Tag: releases/gcc-4.5.0~2312 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=263839d33b9fc3c1145b70c957ed733765661381;p=thirdparty%2Fgcc.git * reload.c (find_reloads_address): Fix typo. From-SVN: r154253 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49c55a441a8c..58ce8e4b89a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-11-17 Ulrich Weigand + + * reload.c (find_reloads_address): Fix typo. + 2009-11-17 Ulrich Weigand * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC diff --git a/gcc/reload.c b/gcc/reload.c index 3333697f2e06..a7791c2869e2 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -5239,7 +5239,7 @@ find_reloads_address (enum machine_mode mode, rtx *memrefloc, rtx ad, if (CONSTANT_P (ad) && ! strict_memory_address_addr_space_p (mode, ad, as)) { enum machine_mode address_mode = GET_MODE (ad); - if (ad == VOIDmode) + if (address_mode == VOIDmode) address_mode = targetm.addr_space.address_mode (as); /* If AD is an address in the constant pool, the MEM rtx may be shared.