Commit 11f3e4c7 by Roger Sayle Committed by Roger Sayle

re PR target/8087 (sparc-sun-solaris2.7 C testsuite failures in…

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
parent a976603e
2002-10-08 Roger Sayle <roger@eyesopen.com>
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 <nathan@codesourcery.com> 2002-10-08 Nathan Sidwell <nathan@codesourcery.com>
* c-opts.c (c_common_decode_option): Add warn_strict_aliasing to * c-opts.c (c_common_decode_option): Add warn_strict_aliasing to
......
...@@ -146,6 +146,9 @@ avoid_constant_pool_reference (x) ...@@ -146,6 +146,9 @@ avoid_constant_pool_reference (x)
return x; return x;
addr = XEXP (x, 0); addr = XEXP (x, 0);
if (GET_CODE (addr) == LO_SUM)
addr = XEXP (addr, 1);
if (GET_CODE (addr) != SYMBOL_REF if (GET_CODE (addr) != SYMBOL_REF
|| ! CONSTANT_POOL_ADDRESS_P (addr)) || ! CONSTANT_POOL_ADDRESS_P (addr))
return x; return x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment