~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/28/28131b901205b7f3d35e1bac7970c4f7ad2cf9f9.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
gcc/
 
2
 
 
3
2012-02-26  Mikael Pettersson  <mikpe@it.uu.se>
 
4
 
 
5
        PR rtl-optimization/49847
 
6
        * cse.c (fold_rtx) <case CC0>: If prev_insn_cc0 is zero
 
7
        don't call equiv_constant on it.
 
8
 
 
9
--- a/src/gcc/cse.c
 
10
+++ b/src/gcc/cse.c
 
11
@@ -3194,9 +3194,14 @@ fold_rtx (rtx x, rtx insn)
 
12
 
 
13
 #ifdef HAVE_cc0
 
14
          case CC0:
 
15
-           folded_arg = prev_insn_cc0;
 
16
-           mode_arg = prev_insn_cc0_mode;
 
17
-           const_arg = equiv_constant (folded_arg);
 
18
+           if (!prev_insn_cc0)
 
19
+             const_arg = 0;
 
20
+           else
 
21
+             {
 
22
+               folded_arg = prev_insn_cc0;
 
23
+               mode_arg = prev_insn_cc0_mode;
 
24
+               const_arg = equiv_constant (folded_arg);
 
25
+             }
 
26
            break;
 
27
 #endif
 
28