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
This commit is contained in:
Zdenek Dvorak 2004-06-08 15:26:04 +02:00 committed by Zdenek Dvorak
parent 59068a8973
commit d599f32955
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>
* gimplify.c (copy_if_shared_r): Revert:

View File

@ -5823,7 +5823,8 @@ legitimate_constant_p (rtx x)
&& tls_symbolic_operand (XEXP (inner, 0), Pmode))
return false;
if (GET_CODE (inner) == PLUS)
if (GET_CODE (inner) == PLUS
|| GET_CODE (inner) == MINUS)
{
if (GET_CODE (XEXP (inner, 1)) != CONST_INT)
return false;