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

« back to all changes in this revision

Viewing changes to .svn/pristine/09/09eb6b3c7dc98437948377f5a05ac16f378e6ed7.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
# DP: updates from the 4.8 branch upto 20140526 (r210928).
 
2
 
 
3
last_updated()
 
4
{
 
5
        cat > ${dir}LAST_UPDATED <<EOF
 
6
Mon May 26 10:59:53 CEST 2014
 
7
Mon May 26 08:59:53 UTC 2014 (revision 210928)
 
8
EOF
 
9
}
 
10
 
 
11
LANG=C svn diff svn://gcc.gnu.org/svn/gcc/tags/gcc_4_8_3_release svn://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch \
 
12
        | sed -r 's,^--- (\S+)\t(\S+)(.*)$,--- a/src/\1\t\2,;s,^\+\+\+ (\S+)\t(\S+)(.*)$,+++ b/src/\1\t\2,' \
 
13
        | awk '/^Index:.*\.(class|texi)/ {skip=1; next} /^Index:/ { skip=0 } skip==0'
 
14
 
 
15
Index: gcc/DATESTAMP
 
16
===================================================================
 
17
--- a/src/gcc/DATESTAMP (.../tags/gcc_4_8_3_release)
 
18
+++ b/src/gcc/DATESTAMP (.../branches/gcc-4_8-branch)
 
19
@@ -1 +1 @@
 
20
-20140522
 
21
+20140526
 
22
Index: gcc/ChangeLog
 
23
===================================================================
 
24
--- a/src/gcc/ChangeLog (.../tags/gcc_4_8_3_release)
 
25
+++ b/src/gcc/ChangeLog (.../branches/gcc-4_8-branch)
 
26
@@ -1,3 +1,28 @@
 
27
+2014-05-26  Michael Tautschnig  <mt@debian.org>
 
28
+
 
29
+       PR target/61249
 
30
+       * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
 
31
+       __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
 
32
+
 
33
+2014-05-23  Alan Modra  <amodra@gmail.com>
 
34
+
 
35
+       PR target/61231
 
36
+       * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
 
37
+       * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
 
38
+       Use "Y" constraint rather than "m".
 
39
+
 
40
+2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
 
41
+
 
42
+       Backport from mainline
 
43
+       2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
 
44
+
 
45
+       * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
 
46
+
 
47
+2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
 
48
+
 
49
+       PR target/61208
 
50
+       * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
 
51
+
 
52
 2014-05-22  Release Manager
 
53
 
 
54
        * GCC 4.8.3 released.
 
55
Index: gcc/testsuite/gcc.target/powerpc/htm-ttest.c
 
56
===================================================================
 
57
--- a/src/gcc/testsuite/gcc.target/powerpc/htm-ttest.c  (.../tags/gcc_4_8_3_release)
 
58
+++ b/src/gcc/testsuite/gcc.target/powerpc/htm-ttest.c  (.../branches/gcc-4_8-branch)
 
59
@@ -0,0 +1,14 @@
 
60
+/* { dg-do compile { target { powerpc*-*-* } } } */
 
61
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
 
62
+/* { dg-require-effective-target powerpc_htm_ok } */
 
63
+/* { dg-options "-O2 -mhtm" } */
 
64
+
 
65
+/* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,3,30,31" { target { ilp32 } } } } */
 
66
+/* { dg-final { scan-assembler "rldicl r?\[0-9\]+,r?\[0-9\]+,35,62" { target { lp64 } } } } */
 
67
+
 
68
+#include <htmintrin.h>
 
69
+long
 
70
+ttest (void)
 
71
+{
 
72
+  return _HTM_STATE(__builtin_ttest());
 
73
+}
 
74
Index: gcc/testsuite/ChangeLog
 
75
===================================================================
 
76
--- a/src/gcc/testsuite/ChangeLog       (.../tags/gcc_4_8_3_release)
 
77
+++ b/src/gcc/testsuite/ChangeLog       (.../branches/gcc-4_8-branch)
 
78
@@ -1,3 +1,10 @@
 
79
+2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
 
80
+
 
81
+       Backport from mainline
 
82
+       2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
 
83
+
 
84
+       * gcc.target/powerpc/htm-ttest.c: New test.
 
85
+
 
86
 2014-05-22  Release Manager
 
87
 
 
88
        * GCC 4.8.3 released.
 
89
Index: gcc/config/rs6000/htm.md
 
90
===================================================================
 
91
--- a/src/gcc/config/rs6000/htm.md      (.../tags/gcc_4_8_3_release)
 
92
+++ b/src/gcc/config/rs6000/htm.md      (.../branches/gcc-4_8-branch)
 
93
@@ -179,7 +179,7 @@
 
94
                             (const_int 0)]
 
95
                            UNSPECV_HTM_TABORTWCI))
 
96
    (set (subreg:CC (match_dup 2) 0) (match_dup 1))
 
97
-   (set (match_dup 3) (lshiftrt:SI (match_dup 2) (const_int 24)))
 
98
+   (set (match_dup 3) (lshiftrt:SI (match_dup 2) (const_int 28)))
 
99
    (parallel [(set (match_operand:SI 0 "int_reg_operand" "")
 
100
                   (and:SI (match_dup 3) (const_int 15)))
 
101
               (clobber (scratch:CC))])]
 
102
Index: gcc/config/rs6000/rs6000.c
 
103
===================================================================
 
104
--- a/src/gcc/config/rs6000/rs6000.c    (.../tags/gcc_4_8_3_release)
 
105
+++ b/src/gcc/config/rs6000/rs6000.c    (.../branches/gcc-4_8-branch)
 
106
@@ -6109,7 +6109,8 @@
 
107
     return false;
 
108
 
 
109
   extra = GET_MODE_SIZE (mode) - UNITS_PER_WORD;
 
110
-  gcc_assert (extra >= 0);
 
111
+  if (extra < 0)
 
112
+    extra = 0;
 
113
 
 
114
   if (GET_CODE (addr) == LO_SUM)
 
115
     /* For lo_sum addresses, we must allow any offset except one that
 
116
Index: gcc/config/rs6000/rs6000.md
 
117
===================================================================
 
118
--- a/src/gcc/config/rs6000/rs6000.md   (.../tags/gcc_4_8_3_release)
 
119
+++ b/src/gcc/config/rs6000/rs6000.md   (.../branches/gcc-4_8-branch)
 
120
@@ -737,7 +737,7 @@
 
121
 
 
122
 (define_insn "*extendsidi2_lfiwax"
 
123
   [(set (match_operand:DI 0 "gpc_reg_operand" "=r,r,??wm,!wl,!wu")
 
124
-       (sign_extend:DI (match_operand:SI 1 "lwa_operand" "m,r,r,Z,Z")))]
 
125
+       (sign_extend:DI (match_operand:SI 1 "lwa_operand" "Y,r,r,Z,Z")))]
 
126
   "TARGET_POWERPC64 && TARGET_LFIWAX"
 
127
   "@
 
128
    lwa%U1%X1 %0,%1
 
129
@@ -760,7 +760,7 @@
 
130
 
 
131
 (define_insn "*extendsidi2_nocell"
 
132
   [(set (match_operand:DI 0 "gpc_reg_operand" "=r,r")
 
133
-       (sign_extend:DI (match_operand:SI 1 "lwa_operand" "m,r")))]
 
134
+       (sign_extend:DI (match_operand:SI 1 "lwa_operand" "Y,r")))]
 
135
   "TARGET_POWERPC64 && rs6000_gen_cell_microcode && !TARGET_LFIWAX"
 
136
   "@
 
137
    lwa%U1%X1 %0,%1
 
138
Index: gcc/config/arm/arm.md
 
139
===================================================================
 
140
--- a/src/gcc/config/arm/arm.md (.../tags/gcc_4_8_3_release)
 
141
+++ b/src/gcc/config/arm/arm.md (.../branches/gcc-4_8-branch)
 
142
@@ -7630,12 +7630,13 @@
 
143
 
 
144
 (define_insn "*arm_cmpdi_unsigned"
 
145
   [(set (reg:CC_CZ CC_REGNUM)
 
146
-       (compare:CC_CZ (match_operand:DI 0 "s_register_operand" "r")
 
147
-                      (match_operand:DI 1 "arm_di_operand"     "rDi")))]
 
148
+       (compare:CC_CZ (match_operand:DI 0 "s_register_operand" "r,r")
 
149
+                      (match_operand:DI 1 "arm_di_operand"     "rDi,rDi")))]
 
150
   "TARGET_32BIT"
 
151
   "cmp\\t%R0, %R1\;it eq\;cmpeq\\t%Q0, %Q1"
 
152
   [(set_attr "conds" "set")
 
153
-   (set_attr "length" "8")]
 
154
+   (set_attr "arch" "a,t2")
 
155
+   (set_attr "length" "8,10")]
 
156
 )
 
157
 
 
158
 (define_insn "*arm_cmpdi_zero"
 
159
Index: libgfortran/ChangeLog
 
160
===================================================================
 
161
--- a/src/libgfortran/ChangeLog (.../tags/gcc_4_8_3_release)
 
162
+++ b/src/libgfortran/ChangeLog (.../branches/gcc-4_8-branch)
 
163
@@ -1,3 +1,10 @@
 
164
+2014-05-25  Janne Blomqvist  <jb@gcc.gnu.org>
 
165
+
 
166
+       Backport from trunk.
 
167
+       PR libfortran/61187
 
168
+       * io/unix.c (raw_close): Check if s->fd is -1.
 
169
+       (fd_to_stream): Check return value of fstat(), handle error.
 
170
+
 
171
 2014-05-22  Release Manager
 
172
 
 
173
        * GCC 4.8.3 released.
 
174
Index: libgfortran/io/unix.c
 
175
===================================================================
 
176
--- a/src/libgfortran/io/unix.c (.../tags/gcc_4_8_3_release)
 
177
+++ b/src/libgfortran/io/unix.c (.../branches/gcc-4_8-branch)
 
178
@@ -407,7 +407,9 @@
 
179
 {
 
180
   int retval;
 
181
   
 
182
-  if (s->fd != STDOUT_FILENO
 
183
+  if (s->fd == -1)
 
184
+    retval = -1;
 
185
+  else if (s->fd != STDOUT_FILENO
 
186
       && s->fd != STDERR_FILENO
 
187
       && s->fd != STDIN_FILENO)
 
188
     retval = close (s->fd);
 
189
@@ -983,7 +985,15 @@
 
190
 
 
191
   /* Get the current length of the file. */
 
192
 
 
193
-  fstat (fd, &statbuf);
 
194
+  if (fstat (fd, &statbuf) == -1)
 
195
+    {
 
196
+      s->st_dev = s->st_ino = -1;
 
197
+      s->file_length = 0;
 
198
+      if (errno == EBADF)
 
199
+       s->fd = -1;
 
200
+      raw_init (s);
 
201
+      return (stream *) s;
 
202
+    }
 
203
 
 
204
   s->st_dev = statbuf.st_dev;
 
205
   s->st_ino = statbuf.st_ino;