Commit d599f329 by Zdenek Dvorak Committed by Zdenek Dvorak

re PR rtl-optimization/15717 (Error: can't resolve `L0' {*ABS* section} - `xx' {*UND* section})

	PR rtl-optimization/15717
	* config/i386/i386.c (legitimate_constant_p): Do not allow
	x - symbol_ref.

From-SVN: r82755
parent 59068a89
2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
PR rtl-optimization/15717
* config/i386/i386.c (legitimate_constant_p): Do not allow
x - symbol_ref.
2004-06-08 Alexandre Oliva <aoliva@redhat.com> 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
* gimplify.c (copy_if_shared_r): Revert: * gimplify.c (copy_if_shared_r): Revert:
......
...@@ -5823,7 +5823,8 @@ legitimate_constant_p (rtx x) ...@@ -5823,7 +5823,8 @@ legitimate_constant_p (rtx x)
&& tls_symbolic_operand (XEXP (inner, 0), Pmode)) && tls_symbolic_operand (XEXP (inner, 0), Pmode))
return false; return false;
if (GET_CODE (inner) == PLUS) if (GET_CODE (inner) == PLUS
|| GET_CODE (inner) == MINUS)
{ {
if (GET_CODE (XEXP (inner, 1)) != CONST_INT) if (GET_CODE (XEXP (inner, 1)) != CONST_INT)
return false; return false;
......
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