summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-08 13:26:04 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-06-08 13:26:04 +0000
commitf7718f65b79040cb0642a458314f290bdd78e162 (patch)
tree704a2b2dc6193c25f1e995c683fb2c31ed29ea58 /gcc
parent7ece5e4f14cf3eb72c918b34dd16bca00637c3d5 (diff)
downloadppe42-gcc-f7718f65b79040cb0642a458314f290bdd78e162.tar.gz
ppe42-gcc-f7718f65b79040cb0642a458314f290bdd78e162.zip
PR rtl-optimization/15717
* config/i386/i386.c (legitimate_constant_p): Do not allow x - symbol_ref. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82755 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/i386/i386.c3
2 files changed, 8 insertions, 1 deletions
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 <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 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;
OpenPOWER on IntegriCloud