aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m68k
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim@codesourcery.com>2008-11-19 16:24:10 +0000
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>2008-11-19 16:24:10 +0000
commit00b2ef145c8901ebd3d3561de2e260e2d3e18dfa (patch)
treea9a03d15f1b229059a8a17d81dd347ea983fc02b /gcc/config/m68k
parentc0399c47eb5bc2a340dad73733b30557a028c33c (diff)
downloadgcc-00b2ef145c8901ebd3d3561de2e260e2d3e18dfa.zip
gcc-00b2ef145c8901ebd3d3561de2e260e2d3e18dfa.tar.gz
gcc-00b2ef145c8901ebd3d3561de2e260e2d3e18dfa.tar.bz2
m68k.c (sched_attr_op_type): Handle all CONSTs.
* config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs. * gcc.target/m68k/xgot-1.c (dg-options): Add -O2. From-SVN: r142005
Diffstat (limited to 'gcc/config/m68k')
-rw-r--r--gcc/config/m68k/m68k.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index d8cc370..2f931c6 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -4830,7 +4830,8 @@ sched_attr_op_type (rtx insn, bool opx_p, bool address_p)
}
}
- if (symbolic_operand (op, VOIDmode)
+ if (GET_CODE (op) == CONST
+ || symbolic_operand (op, VOIDmode)
|| LABEL_P (op))
{
switch (GET_MODE (op))