diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2004-06-08 15:26:04 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2004-06-08 13:26:04 +0000 |
commit | d599f32955972ba057772d1dfaa85836457bbbfc (patch) | |
tree | 704a2b2dc6193c25f1e995c683fb2c31ed29ea58 /gcc | |
parent | 59068a897368c953c7acebf678cd29fb46038711 (diff) | |
download | gcc-d599f32955972ba057772d1dfaa85836457bbbfc.zip gcc-d599f32955972ba057772d1dfaa85836457bbbfc.tar.gz gcc-d599f32955972ba057772d1dfaa85836457bbbfc.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aec3ed2..01846af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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: diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index d8775ad..1ae82e8 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; |