aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c3
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.target/m68k/xgot-1.c2
4 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 47fe145..a13bed9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs.
+
2008-11-19 Razya Ladelsky <razya@il.ibm.com>
PR target/38156
@@ -9,7 +13,6 @@
* config/picochip/picochip.c (headers): Remove an unnecessary
header file.
-
2008-11-19 Andrew Stubbs <ams@codesourcery.com>
PR target/36133
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))
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6ab4ffa..4c2dd00 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * gcc.target/m68k/xgot-1.c (dg-options): Add -O2.
+
2008-11-19 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/36038
diff --git a/gcc/testsuite/gcc.target/m68k/xgot-1.c b/gcc/testsuite/gcc.target/m68k/xgot-1.c
index e7bc5fb..6794241 100644
--- a/gcc/testsuite/gcc.target/m68k/xgot-1.c
+++ b/gcc/testsuite/gcc.target/m68k/xgot-1.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-fpic -mxgot -mcpu=5206" } */
+/* { dg-options "-O2 -fpic -mxgot -mcpu=5206" } */
/* { dg-final { scan-assembler "foo@GOT,\%\[ad\]\[0-7\]" } } */
extern int foo;