From d599f32955972ba057772d1dfaa85836457bbbfc Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Tue, 8 Jun 2004 15:26:04 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.30.2