From: Roger Sayle Date: Tue, 8 Oct 2002 20:49:02 +0000 (+0000) Subject: re PR target/8087 (sparc-sun-solaris2.7 C testsuite failures in execute/20020720... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11f3e4c7ca8cd3dab7591c4a0ccb2288d2914f59;p=gcc.git re PR target/8087 (sparc-sun-solaris2.7 C testsuite failures in execute/20020720-1.c w/-m64 or on sparcv9/sparc64) PR target/8087 * simplify-rtx.c (avoid_constant_pool_reference): Allow constant pool references that are constructed using LO_SUM. From-SVN: r57942 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 719625767fb..1ebd0b3a2c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-10-08 Roger Sayle + + PR target/8087 + * simplify-rtx.c (avoid_constant_pool_reference): Allow constant + pool references that are constructed using LO_SUM. + 2002-10-08 Nathan Sidwell * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index c49ad634bd5..cd7e28b45c7 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -146,6 +146,9 @@ avoid_constant_pool_reference (x) return x; addr = XEXP (x, 0); + if (GET_CODE (addr) == LO_SUM) + addr = XEXP (addr, 1); + if (GET_CODE (addr) != SYMBOL_REF || ! CONSTANT_POOL_ADDRESS_P (addr)) return x;