1
# DP: updates from the 4.8 branch upto 20140526 (r210928).
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)
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'
16
===================================================================
17
--- a/src/gcc/DATESTAMP (.../tags/gcc_4_8_3_release)
18
+++ b/src/gcc/DATESTAMP (.../branches/gcc-4_8-branch)
23
===================================================================
24
--- a/src/gcc/ChangeLog (.../tags/gcc_4_8_3_release)
25
+++ b/src/gcc/ChangeLog (.../branches/gcc-4_8-branch)
27
+2014-05-26 Michael Tautschnig <mt@debian.org>
30
+ * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
31
+ __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
33
+2014-05-23 Alan Modra <amodra@gmail.com>
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".
40
+2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
42
+ Backport from mainline
43
+ 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
45
+ * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
47
+2014-05-22 Richard Earnshaw <rearnsha@arm.com>
50
+ * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
52
2014-05-22 Release Manager
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)
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" } */
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 } } } } */
68
+#include <htmintrin.h>
72
+ return _HTM_STATE(__builtin_ttest());
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)
79
+2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
81
+ Backport from mainline
82
+ 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
84
+ * gcc.target/powerpc/htm-ttest.c: New test.
86
2014-05-22 Release Manager
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)
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 @@
109
extra = GET_MODE_SIZE (mode) - UNITS_PER_WORD;
110
- gcc_assert (extra >= 0);
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)
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"
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"
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 @@
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")))]
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")]
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)
164
+2014-05-25 Janne Blomqvist <jb@gcc.gnu.org>
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.
171
2014-05-22 Release Manager
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)
182
- if (s->fd != STDOUT_FILENO
185
+ else if (s->fd != STDOUT_FILENO
186
&& s->fd != STDERR_FILENO
187
&& s->fd != STDIN_FILENO)
188
retval = close (s->fd);
191
/* Get the current length of the file. */
193
- fstat (fd, &statbuf);
194
+ if (fstat (fd, &statbuf) == -1)
196
+ s->st_dev = s->st_ino = -1;
197
+ s->file_length = 0;
198
+ if (errno == EBADF)
201
+ return (stream *) s;
204
s->st_dev = statbuf.st_dev;
205
s->st_ino = statbuf.st_ino;