]> git.pld-linux.org Git - packages/crossppc-gcc.git/blame - gcc-pr24669.patch
- fix for new gcc
[packages/crossppc-gcc.git] / gcc-pr24669.patch
CommitLineData
8aebe3db
PS
1--- gcc/gcc/config/i386/i386.c (revision 106482)
2+++ gcc/gcc/config/i386/i386.c (working copy)
3@@ -5396,8 +5396,12 @@
4 if (parts.index && GET_CODE (parts.index) == SUBREG)
5 parts.index = SUBREG_REG (parts.index);
6
7+ /* Penalize displacements a bit. */
8+ if (parts.disp && parts.disp != const0_rtx)
9+ cost++;
10+
11 /* More complex memory references are better. */
12- if (parts.disp && parts.disp != const0_rtx)
13+ if (parts.scale)
14 cost--;
15 if (parts.seg != SEG_DEFAULT)
16 cost--;
This page took 0.02947 seconds and 4 git commands to generate.