From: Zdenek Dvorak Date: Tue, 8 Jun 2004 13:26:04 +0000 (+0200) Subject: re PR rtl-optimization/15717 (Error: can't resolve `L0' {*ABS* section} - `xx' {... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d599f32955972ba057772d1dfaa85836457bbbfc;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aec3ed2fc4e..01846afd42f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-06-08 Zdenek Dvorak + + PR rtl-optimization/15717 + * config/i386/i386.c (legitimate_constant_p): Do not allow + x - symbol_ref. + 2004-06-08 Alexandre Oliva * gimplify.c (copy_if_shared_r): Revert: diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index d8775ade8ae..1ae82e82cab 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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;