From 00b2ef145c8901ebd3d3561de2e260e2d3e18dfa Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Wed, 19 Nov 2008 16:24:10 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 ++++- gcc/config/m68k/m68k.c | 3 ++- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/m68k/xgot-1.c | 2 +- 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 + + * config/m68k/m68k.c (sched_attr_op_type): Handle all CONSTs. + 2008-11-19 Razya Ladelsky PR target/38156 @@ -9,7 +13,6 @@ * config/picochip/picochip.c (headers): Remove an unnecessary header file. - 2008-11-19 Andrew Stubbs 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 + + * gcc.target/m68k/xgot-1.c (dg-options): Add -O2. + 2008-11-19 Jakub Jelinek 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; -- 2.7.4