]> git.pld-linux.org Git - packages/gcc.git/commitdiff
- new fixes.
authorPaweł Sikora <pluto@pld-linux.org>
Sun, 13 Nov 2005 14:25:11 +0000 (14:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gcc-pr24653.patch -> 1.1
    gcc-pr24669.patch -> 1.1

gcc-pr24653.patch [new file with mode: 0644]
gcc-pr24669.patch [new file with mode: 0644]

diff --git a/gcc-pr24653.patch b/gcc-pr24653.patch
new file mode 100644 (file)
index 0000000..54f80ba
--- /dev/null
@@ -0,0 +1,14 @@
+--- gcc/gcc/tree-ssa-ccp.c     (revision 106422)
++++ gcc/gcc/tree-ssa-ccp.c     (working copy)
+@@ -853,6 +853,10 @@ ccp_fold (tree stmt)
+           op0 = get_value (op0, true)->value;
+       }
++      if ((code == NOP_EXPR || code == CONVERT_EXPR)
++        && tree_ssa_useless_type_conversion_1 (TREE_TYPE (rhs),
++                                               TREE_TYPE (op0)))
++      return op0;
+       return fold_unary (code, TREE_TYPE (rhs), op0);
+     }
+
diff --git a/gcc-pr24669.patch b/gcc-pr24669.patch
new file mode 100644 (file)
index 0000000..91bb743
--- /dev/null
@@ -0,0 +1,16 @@
+--- gcc/gcc/config/i386/i386.c      (revision 106482)
++++ gcc/gcc/config/i386/i386.c      (working copy)
+@@ -5396,8 +5396,12 @@
+   if (parts.index && GET_CODE (parts.index) == SUBREG)
+     parts.index = SUBREG_REG (parts.index);
+
++  /* Penalize displacements a bit.  */
++  if (parts.disp && parts.disp != const0_rtx)
++    cost++;
++
+   /* More complex memory references are better.  */
+-  if (parts.disp && parts.disp != const0_rtx)
++  if (parts.scale)
+     cost--;
+   if (parts.seg != SEG_DEFAULT)
+     cost--;
This page took 0.499805 seconds and 4 git commands to generate.