diff options
| author | uwe <uwe@NetBSD.org> | 2006-07-24 23:36:03 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2006-07-24 23:36:03 +0000 |
| commit | f482b86d5d56c9a3b3ec8fd03f24a242c9609048 (patch) | |
| tree | 51022c11642a1f482e946f994018d9a335f762e3 /sys/kern/exec_script.c | |
| parent | ac9fed958dcc9d27eb00bbff0079d1b03cc2284e (diff) | |
gcc4 generated extremely unoptimal code for shifts of 64-bit ints on SuperH.
Pull over a fix from gcc 4.1 branch.
ok mrg@
Author: sayle
Date: Fri Jul 21 13:22:31 2006
New Revision: 115644
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115644
Log:
PR middle-end/28283
* expmed.c (expand_shift): Additionally check that the shift_cost
is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
before implementing a LSHIFT_EXPR as a sequence of additions.
* config/sh/sh.c (shift_costs): Return MAX_COST to inform the
middle-end that DImode shifts need to be synthesized by expand.
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/config/sh/sh.c
branches/gcc-4_1-branch/gcc/expmed.c
Diffstat (limited to 'sys/kern/exec_script.c')
0 files changed, 0 insertions, 0 deletions
