gcc/ChangeLog:
[official-gcc.git] / gcc / ChangeLog
blob42b03ce9d1885fdceff3bee7432f3dfa5cbd5719
1 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
4         the host compiler is affected by placement new aliasing bug.
5         * configure: Regenerate.
6         * Makefile.in (ALIASING_FLAGS): New variable.
7         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11         PR target/66731
12         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13         (negmulsf3_vfp): Likewise.
14         (muldf3negdf_vfp): Disable for -frounding-math.
15         (mulsf3negsf_vfp): Likewise.
16         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17         fix MULT cost with -frounding-math.
19 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
22         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
23         explicit.  Prefer to add the flag whenever possible.
24         (noce_process_if_block): Try noce_try_store_flag_constants before
25         noce_try_cmove.
27 2015-08-03  Richard Biener  <rguenther@suse.de>
29         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
30         New hash-map to record equivalent transforms.
31         (dt_node::analyze): Populate the equivalent transforms hash-map.
32         (dt_simplify::info): Add reference to hash-map entry.
33         (dt_simplify::gen): If we have split out a function for the
34         transform, generate a call to it.
35         (sinfo_hashmap_traits::hash): New function.
36         (compare_op): New helper function for ...
37         (sinfo_hashmap_traits::equal_keys): ... this new function.
38         (decision_tree::gen): Split out common equivalent transforms
39         into functions.
41 2015-08-03  Richard Biener  <rguenther@suse.de>
43         * gimple-fold.c (fold_gimple_assign): Remove folding of
44         the comparison in COND_EXPRs.
46 2015-08-03  Richard Biener  <rguenther@suse.de>
48         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
49         on the rhs of assignments first simplify the embedded
50         GENERIC condition.
52 2015-08-03  Richard Biener  <rguenther@suse.de>
54         PR tree-optimization/66917
55         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
56         field.
57         (DR_VECT_AUX): New macro.
58         (set_dr_misalignment): Adjust.
59         (dr_misalignment): Likewise.
60         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
61         Compute whether the base is at least element aligned.
62         * tree-vect-stmts.c (ensure_base_align): Adjust.
63         (vectorizable_store): If the base is not element aligned
64         preserve alignment of the original access if misalignment is unknown.
65         (vectorizable_load): Likewise.
67 2015-08-02  Martin Sebor  <msebor@redhat.com>
69         * c-family/c.opt (-Wframe-address): New warning option.
70         * doc/invoke.texi (Wframe-address): Document it.
71         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
72         Clarify possible effects of calling the functions with non-zero
73         arguments and mention -Wframe-address.
74         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
76 2015-08-01  Michael Collison  <michael.collison@linaro.org
77             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
79         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
80         (*arm_umin_cmp): Likewise.
82 2015-08-01  Caroline Tice  <cmtice@google.com>
84         PR 66521
85         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
86         global variables.
87         (vtbl_find_mangled_name):  New function.
88         (vtbl_register_mangled_name):  New function.
89         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
90         mangled name in mangled name vectors.
91         (find_or_create_vtbl_map_node):  Ditto.
92         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
93         update recursion_depth on function entry; pass it to every recursive
94         call; automatically exit if depth > 25 (give up looking at that point).
95         (verify_bb_vtables):  Initialize recursion_depth and pass it to
96         var_is_used_for_virtual_call_p.
97         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
98         global variable decls.
99         (vtbl_register_mangled_name): New extern function decl.
101 2015-08-01  Tom de Vries  <tom@codesourcery.com>
103         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
104         function.
105         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
106         Declare.
107         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
108         operation_no_trapping_overflow.  Allow non-overflow operations.
109         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
110         operations.
112 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
114         PR target/67049
115         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
117 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
119         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
120         Enable for TARGET_32BIT.
121         (*if_move_neg): Likewise.
123 2015-07-31  Nick Clifton  <nickc@redhat.com>
125         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
126         Returns true for __model__.
127         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
129 2015-07-31  Alan Modra  <amodra@gmail.com>
131         PR target/66870
132         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
133         (rs6000_emit_prologue): Set it.
134         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
136 2015-07-31  Richard Biener  <rguenther@suse.de>
138         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
139         -> X == (C1 ^ C2) which is already implemented in match.pd.
140         Remove redundant dispatching to fold_relational_const.
141         Move unordered self and NaN compares ...
142         * match.pd: ... as patterns here.  Remove some stray captures
143         and add a comment.
145 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
147         * config/i386/i386.c
148         (bdesc_special_args): Convert mask type from signed to unsigned for
149         masked builtins.
150         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
151         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
152         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
153         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
154         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
155         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
156         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
157         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
158         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
159         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
160         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
161         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
162         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
163         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
164         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
165         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
166         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
167         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
168         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
169         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
170         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
171         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
172         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
173         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
174         * config/i386/i386-builtin-types.def
175         (V16QI_FTYPE_V16SI): Remove.
176         (V8DF_FTYPE_V8SI): Ditto.
177         (V8HI_FTYPE_V8DI): Ditto.
178         (V8SI_FTYPE_V8DI): Ditto.
179         (V8SF_FTYPE_V8DF): Ditto.
180         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
181         (V16HI_FTYPE_V16SI): Ditto.
182         (V16SF_FTYPE_V16HI): Ditto.
183         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
184         (V16SF_FTYPE_V16SI): Ditto.
185         (V4DI_FTYPE_V4DI): Ditto.
186         (V16SI_FTYPE_V16SF): Ditto.
187         (V16SF_FTYPE_FLOAT): Ditto.
188         (V8DF_FTYPE_DOUBLE): Ditto.
189         (V8DI_FTYPE_INT64): Ditto.
190         (V8DI_FTYPE_V4DI): Ditto.
191         (V16QI_FTYPE_V8DI): Ditto.
192         (UINT_FTYPE_V4SF): Ditto.
193         (UINT64_FTYPE_V4SF): Ditto.
194         (UINT_FTYPE_V2DF): Ditto.
195         (UINT64_FTYPE_V2DF): Ditto.
196         (V16SI_FTYPE_V16SI): Ditto.
197         (V8DI_FTYPE_V8DI): Ditto.
198         (V16SI_FTYPE_PV4SI): Ditto.
199         (V16SF_FTYPE_PV4SF): Ditto.
200         (V8DI_FTYPE_PV2DI): Ditto.
201         (V8DF_FTYPE_PV2DF): Ditto.
202         (V4DI_FTYPE_PV2DI): Ditto.
203         (V4DF_FTYPE_PV2DF): Ditto.
204         (V16SI_FTYPE_PV2SI): Ditto.
205         (V16SF_FTYPE_PV2SF): Ditto.
206         (V8DI_FTYPE_PV4DI): Ditto.
207         (V8DF_FTYPE_PV4DF): Ditto.
208         (V8SF_FTYPE_FLOAT): Ditto.
209         (V4SF_FTYPE_FLOAT): Ditto.
210         (V4DF_FTYPE_DOUBLE): Ditto.
211         (V8SF_FTYPE_PV4SF): Ditto.
212         (V8SI_FTYPE_PV4SI): Ditto.
213         (V4SI_FTYPE_PV2SI): Ditto.
214         (V8SF_FTYPE_PV2SF): Ditto.
215         (V8SI_FTYPE_PV2SI): Ditto.
216         (V16SF_FTYPE_PV8SF): Ditto.
217         (V16SI_FTYPE_PV8SI): Ditto.
218         (V8DI_FTYPE_V8SF): Ditto.
219         (V4DI_FTYPE_V4SF): Ditto.
220         (V2DI_FTYPE_V4SF): Ditto.
221         (V64QI_FTYPE_QI): Ditto.
222         (V32HI_FTYPE_HI): Ditto.
223         (V8UHI_FTYPE_V8UHI): Ditto.
224         (V16UHI_FTYPE_V16UHI): Ditto.
225         (V32UHI_FTYPE_V32UHI): Ditto.
226         (V2UDI_FTYPE_V2UDI): Ditto.
227         (V4UDI_FTYPE_V4UDI): Ditto.
228         (V8UDI_FTYPE_V8UDI): Ditto.
229         (V4USI_FTYPE_V4USI): Ditto.
230         (V8USI_FTYPE_V8USI): Ditto.
231         (V16USI_FTYPE_V16USI): Ditto.
232         (V2DF_FTYPE_V2DF_UINT64): Ditto.
233         (V2DI_FTYPE_V2DF_V2DF): Ditto.
234         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
235         (V8DF_FTYPE_V8DF_V8DI): Ditto.
236         (V4SF_FTYPE_V4SF_UINT64): Ditto.
237         (V4SI_FTYPE_V4SF_V4SF): Ditto.
238         (V16SF_FTYPE_V16SF_V16SI): Ditto.
239         (V64QI_FTYPE_V32HI_V32HI): Ditto.
240         (V32HI_FTYPE_V16SI_V16SI): Ditto.
241         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
242         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
243         (V32HI_FTYPE_V64QI_V64QI): Ditto.
244         (V32HI_FTYPE_V32HI_V32HI): Ditto.
245         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
246         (V16SI_FTYPE_V16SI_V4SI): Ditto.
247         (V16SI_FTYPE_V16SI_V16SI): Ditto.
248         (V16SI_FTYPE_V32HI_V32HI): Ditto.
249         (V16SI_FTYPE_V16SI_SI): Ditto.
250         (V8DI_FTYPE_V8DI_V8DI): Ditto.
251         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
252         (V8DI_FTYPE_V16SI_V16SI): Ditto.
253         (V8DI_FTYPE_V8DI_V2DI): Ditto.
254         (QI_FTYPE_QI): Ditto.
255         (SI_FTYPE_SI): Ditto.
256         (DI_FTYPE_DI): Ditto.
257         (QI_FTYPE_QI_QI): Ditto.
258         (QI_FTYPE_QI_INT): Ditto.
259         (HI_FTYPE_HI_INT): Ditto.
260         (SI_FTYPE_SI_INT): Ditto.
261         (DI_FTYPE_DI_INT): Ditto.
262         (HI_FTYPE_V16QI_V16QI): Ditto.
263         (SI_FTYPE_V32QI_V32QI): Ditto.
264         (DI_FTYPE_V64QI_V64QI): Ditto.
265         (QI_FTYPE_V8HI_V8HI): Ditto.
266         (HI_FTYPE_V16HI_V16HI): Ditto.
267         (SI_FTYPE_V32HI_V32HI): Ditto.
268         (QI_FTYPE_V4SI_V4SI): Ditto.
269         (QI_FTYPE_V8SI_V8SI): Ditto.
270         (QI_FTYPE_V2DI_V2DI): Ditto.
271         (QI_FTYPE_V4DI_V4DI): Ditto.
272         (QI_FTYPE_V8DI_V8DI): Ditto.
273         (HI_FTYPE_V16SI_V16SI): Ditto.
274         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
275         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
276         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
277         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
278         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
279         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
280         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
281         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
282         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
283         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
284         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
285         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
286         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
287         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
288         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
289         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
290         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
291         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
292         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
293         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
294         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
295         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
296         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
297         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
298         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
299         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
300         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
301         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
302         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
303         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
304         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
305         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
306         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
307         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
308         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
309         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
310         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
311         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
312         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
313         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
314         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
315         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
316         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
317         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
318         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
319         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
320         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
321         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
322         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
323         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
324         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
325         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
326         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
327         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
328         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
329         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
330         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
331         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
332         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
333         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
334         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
335         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
336         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
337         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
338         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
339         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
340         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
341         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
342         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
343         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
344         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
345         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
346         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
347         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
348         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
349         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
350         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
351         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
352         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
353         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
354         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
355         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
356         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
357         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
358         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
359         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
360         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
361         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
362         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
363         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
364         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
365         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
366         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
367         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
368         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
369         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
370         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
371         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
372         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
373         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
374         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
375         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
376         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
377         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
378         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
379         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
380         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
381         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
382         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
383         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
384         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
385         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
386         (HI_FTYPE_HI): Ditto.
387         (HI_FTYPE_V16QI): Ditto.
388         (SI_FTYPE_V32QI): Ditto.
389         (DI_FTYPE_V64QI): Ditto.
390         (QI_FTYPE_V8HI): Ditto.
391         (HI_FTYPE_V16HI): Ditto.
392         (SI_FTYPE_V32HI): Ditto.
393         (QI_FTYPE_V4SI): Ditto.
394         (QI_FTYPE_V8SI): Ditto.
395         (HI_FTYPE_V16SI): Ditto.
396         (QI_FTYPE_V2DI): Ditto.
397         (QI_FTYPE_V4DI): Ditto.
398         (QI_FTYPE_V8DI): Ditto.
399         (V16QI_FTYPE_HI): Ditto.
400         (V32QI_FTYPE_SI): Ditto.
401         (V64QI_FTYPE_DI): Ditto.
402         (V8HI_FTYPE_QI): Ditto.
403         (V16HI_FTYPE_HI): Ditto.
404         (V32HI_FTYPE_SI): Ditto.
405         (V4SI_FTYPE_QI): Ditto.
406         (V4SI_FTYPE_HI): Ditto.
407         (V8SI_FTYPE_QI): Ditto.
408         (V8SI_FTYPE_HI): Ditto.
409         (V2DI_FTYPE_QI): Ditto.
410         (V4DI_FTYPE_QI): Ditto.
411         (HI_FTYPE_HI_HI): Ditto.
412         (SI_FTYPE_SI_SI): Ditto.
413         (DI_FTYPE_DI_DI): Ditto.
414         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
415         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
416         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
417         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
418         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
419         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
420         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
421         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
422         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
423         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
424         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
425         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
426         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
427         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
428         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
429         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
430         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
431         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
432         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
433         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
434         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
435         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
436         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
437         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
438         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
439         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
440         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
441         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
442         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
443         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
444         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
445         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
446         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
447         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
448         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
449         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
450         (V16SI_FTYPE_HI): Ditto.
451         (V8DI_FTYPE_QI): Ditto.
452         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
453         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
454         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
455         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
456         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
457         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
458         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
459         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
460         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
461         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
462         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
463         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
464         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
465         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
466         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
467         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
468         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
469         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
470         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
471         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
472         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
473         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
474         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
475         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
476         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
477         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
478         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
479         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
480         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
481         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
482         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
483         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
484         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
485         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
486         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
487         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
488         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
489         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
490         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
491         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
492         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
493         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
494         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
495         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
496         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
497         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
498         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
499         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
500         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
501         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
502         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
503         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
504         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
505         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
506         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
507         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
508         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
509         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
510         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
511         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
512         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
513         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
514         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
515         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
516         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
517         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
518         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
519         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
520         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
521         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
522         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
523         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
524         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
525         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
526         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
527         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
528         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
529         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
530         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
531         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
532         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
533         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
534         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
535         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
536         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
537         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
538         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
539         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
540         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
541         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
542         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
543         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
544         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
545         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
546         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
547         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
548         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
549         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
550         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
551         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
552         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
553         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
554         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
555         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
556         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
557         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
558         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
559         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
560         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
561         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
562         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
563         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
564         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
565         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
566         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
567         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
568         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
569         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
570         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
571         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
572         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
573         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
574         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
575         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
576         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
577         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
578         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
579         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
580         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
581         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
582         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
583         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
584         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
585         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
586         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
587         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
588         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
589         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
590         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
591         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
592         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
593         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
594         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
595         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
596         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
597         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
598         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
599         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
600         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
601         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
602         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
603         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
604         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
605         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
606         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
607         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
608         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
609         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
610         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
611         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
612         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
613         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
614         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
615         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
616         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
617         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
618         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
619         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
620         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
621         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
622         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
623         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
624         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
625         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
626         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
627         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
628         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
629         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
630         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
631         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
632         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
633         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
634         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
635         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
636         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
637         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
638         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
639         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
640         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
641         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
642         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
643         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
644         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
645         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
646         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
647         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
648         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
649         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
650         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
651         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
652         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
653         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
654         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
655         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
656         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
657         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
658         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
659         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
660         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
661         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
662         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
663         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
664         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
665         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
666         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
667         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
668         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
669         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
670         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
671         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
672         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
673         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
674         (QI_FTYPE_V8DF_INT_QI): Ditto.
675         (QI_FTYPE_V4DF_INT_QI): Ditto.
676         (QI_FTYPE_V2DF_INT_QI): Ditto.
677         (HI_FTYPE_V16SF_INT_HI): Ditto.
678         (QI_FTYPE_V8SF_INT_QI): Ditto.
679         (QI_FTYPE_V4SF_INT_QI): Ditto.
680         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
682 2015-07-31  Richard Biener  <rguenther@suse.de>
684         * gimple-fold.c (fold_gimple_assign): Remove folding of
685         GIMPLE_BINARY_RHS.
687 2015-07-31  Tom de Vries  <tom@codesourcery.com>
689         PR tree-optimization/66846
690         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
691         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
692         (expand_omp_target) [ENABLE_CHECKING]: Same.
693         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
694         cfun if !LOOPS_NEED_FIXUP.
695         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
696         that omp_for already has its own loop struct.
697         * tree-parloops.c (create_phi_for_local_result)
698         (create_call_for_reduction): Handle simple latch bb.
699         (create_parallel_loop): Add simple latch bb to preserve
700         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
701         (gen_parallel_loop): Remove call to cancel_loop_tree.
702         (parallelize_loops): Skip loops that are inner loops of parallelized
703         loops.
704         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
705         verify_loop_structure.
707 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
709         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
710         * config/v850/v850.md (RV_REGNUM): New constants.
711         * config/v850/v850.c (v850_libcall_value): New functions.
712         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
713         (TARGET_LIBCALL_VALUE): Define.
715 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
717         * rtl.h (lowpart_subreg): Move in file.
718         * loop-iv.c (lowpart_subreg): Move to...
719         * simplify-rtx.c (lowpart_subreg): ...here.
720           (simplify_binary_operation_1): Use lowpart_subreg instead of
721           simplify_gen_subreg.
722         * expr.c (expand_expr_real_2): Ditto.
723         * emit-rtl.c (gen_lowpart_common): Ditto.
724         * combine.c (gen_lowpart_for_combine): Ditto.
725         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
726           expand_debug_source_expr): Ditto.
728 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
730         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
731         (expand_builtin_atomic_clear): Remove support for atomic_clear
732         pattern.
734 2015-07-30  Richard Biener  <rguenther@suse.de>
736         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
737         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
738         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
739         redundant operand canonicalization.
741 2015-07-30  David Sherwood  <david.sherwood@arm.com>
743         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
744         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
745         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
746         * config/arm/arm.c (neon_valid_immediate): Likewise.
747         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
748         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
749         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
750         (expand_vec_perm_vpshufb2_vpermq): Likewise.
751         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
752         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
753         * config/i386/sse.md
754         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
755         (*ssse3_palignr<mode>_perm): Likewise.
756         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
757         * config/spu/spu.c (arith_immediate_p): Likewise.
758         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
759         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
761 2015-07-30  Richard Biener  <rguenther@suse.de>
763         * genmatch.c (decision_tree::gen_gimple): Merge with ...
764         (decision_tree::gen_generic): ... this into ...
765         (decision_tree::gen): ... this.
766         (main): Adjust callers.
768 2015-07-30  Richard Biener  <rguenther@suse.de>
770         * genmatch.c (verbose): New global.
771         (warning_at): Add overload with source_location.
772         (capture_info::capture_info): Add bool whether generating gimple
773         or generic.  Add gimple member.
774         (capture_info::cinfo): Add capture member.
775         (capture_info::walk_match): Record capture.  Warn on
776         non-captured leafs.
777         (capture_info::walk_c_expr): Add more fragments captures cannot
778         escape through.  Warn on escaped captures.
779         (dt_simplify::gen_1): Warn on operands we force to have no
780         side-effects.
781         (main): Initialize verbose.
782         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
784 2015-07-30  Richard Biener  <rguenther@suse.de>
786         PR middle-end/67053
787         * match.pd: Allow both operands to independently have conversion
788         when simplifying compares of addresses.
790 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
792         PR target/66217
793         PR target/67045
794         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
795         around those cases that need one.
797 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
799         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
801 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
803         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
804         New.  Copied from config/i386/gnu-user.h.
805         (ASM_COMMENT_START): Likewise.
806         (DBX_REGISTER_NUMBER): Likewise.
808 2015-07-29  Richard Biener  <rguenther@suse.de>
810         * gimple-fold.c (fold_gimple_cond): Remove.
811         (fold_stmt_1): Do not call it.
813 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
815         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
816         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
818         * config/aarch64/aarch64-modes.def: Add HFmode.
820         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
821         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
823         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
824         aarch64_promoted_type): New.
826         (aarch64_float_const_representable_p): Disable HFmode.
827         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
828         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
829         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
831         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
832         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
834         * config/aarch64/iterators.md (GPF_F16): New.
836 2015-07-29  Richard Biener  <rguenther@suse.de>
838         * match.pd: Merge address comparison patterns and make them
839         handle some more cases.
841 2015-07-29  Richard Biener  <rguenther@suse.de>
843         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
844         (parser::parse_capture): Add bool argument on whether to reject
845         unknown captures.
846         (parser::parse_expr): Adjust.
847         (parser::parse_op): Likewise.
848         (parser::parse_pattern): Likewise.
850 2015-07-29  Richard Biener  <rguenther@suse.de>
852         * gimple-fold.c (has_use_on_stmt): New function.
853         (replace_stmt_with_simplification): Use it to allow
854         abnormals originally referenced in the stmt.
855         (fold_stmt_1): Canonicalize operand order.
857 2015-07-28  David Sherwood  <david.sherwood@arm.com>
859         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
860         GET_MODE_INNER unconditionally.
861         * config/spu/spu.c (arith_immediate_p): Likewise.
862         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
863         * expmed.c (synth_mult): Remove check for VOIDmode result from
864         GET_MODE_INNER.
865         (expand_mult_const): Likewise.
866         * fold-const.c (fold_binary_loc): Replace call to element_precision
867         with call to GET_MODE_PRECISION.
868         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
869         m->name.
870         (emit_mode_inner): Likewise.
871         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
872         result check.
873         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
874         (GET_MODE_UNIT_PRECISION): Likewise.
875         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
876         * simplify-rtx.c (simplify_immed_subreg): Likewise.
877         * stor-layout.c (bitwise_type_for_mode): Update assert.
878         (element_precision): Remove.
880 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
882         * target-insns.def (reload_load_address): New targetm instruction
883         pattern.
884         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
886 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
888         * target-insns.def (atomic_test_and_set): New targetm instruction
889         pattern.
890         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
891         HAVE_*/gen_* interface.
893 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
895         * target-insns.def (can_extend, ptr_extend): New targetm instruction
896         patterns.
897         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
898         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
899         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
900         * rtlanal.c (nonzero_bits1): Likewise.
901         (num_sign_bit_copies1): Likewise.
903 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
905         * target-insns.def (eh_return): New targetm instruction pattern.
906         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
907         interface.
908         * function.c (thread_prologue_and_epilogue_insns): Remove
909         preprocessor condition.
911 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
913         * target-insns.def (indirect_jump): New targetm instruction pattern.
914         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
915         interface.
917 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
919         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
920         instead of nonimmediate_operand.  Remove C condiition.
922 2015-07-28  Richard Biener  <rguenther@suse.de>
924         * match.pd: Add more simplification of address comparisons.
926 2015-07-28  Richard Biener  <rguenther@suse.de>
928         * match.pd: Re-order two cases in comparison with max/min
929         value simplification to make it apply for bools.
931 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
933         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
934         Handle simple SIGN_EXTEND or ZERO_EXTEND.
935         (aarch64_rtx_costs): Properly strip extend or extract before
936         passing down to rtx costs again.
938 2015-07-28  Nick Clifton  <nickc@redhat.com>
940         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
941         Optimizes the case where -mes0 is active and a constant symbolic
942         address is used.
943         * config/rl78/rl78-protos.h: Prototype the new function.
944         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
946 2015-07-28  Tom de Vries  <tom@codesourcery.com>
948         * tree-parloops.c (reduc_stmt_res): New function.
949         (initialize_reductions, add_field_for_reduction)
950         (create_phi_for_local_result, create_loads_for_reductions)
951         (create_stores_for_reduction, build_new_reduction): Handle case that
952         reduc_stmt is a phi.
953         (gather_scalar_reductions): Allow double_reduc reductions.
955 2015-07-28  Richard Biener  <rguenther@suse.de>
957         * fold-const.c (fold_comparison): Remove equality folding
958         of decl addresses ...
959         * match.pd: ... here and merge with existing pattern.
961 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
963         PR tree-optimization/66828
964         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
965         from int64_t to uint64_t.
967 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
969         * opts-common.c (read_cmdline_option): List DriverOnly enum values
970         as valid only in the error message of the driver, not in the
971         messages of the language compilers.
973 2015-07-27  Tom de Vries  <tom@codesourcery.com>
975         * tree-parloops.c (gather_scalar_reductions): Simplify function
976         structure.
978 2015-07-27  Marek Polacek  <polacek@redhat.com>
980         * ipa-devirt.c (types_same_for_odr): Fix typo.
982 2015-07-27  Jason Merrill  <jason@redhat.com>
984         PR debug/66468
985         * dwarf2out.c (gen_inlined_subroutine_die): Check
986         cgraph_function_possibly_inlined_p.
988 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
990         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
991         Place integer variant first.
992         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
994 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
996         PR/63870
997         * config/arm/arm-builtins.c (enum arm_builtins):
998         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
999         (ARM_BUILTIN_NEON_BASE): Rename macro to....
1000         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
1001         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
1002         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
1004 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
1006         PR/63870
1007         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
1008         Add qualifier_lane_index.
1009         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
1010         (arm_getlane_qualifiers): Use qualifier_lane_index.
1011         (arm_lanemac_qualifiers): Rename to...
1012         (arm_mac_n_qualifiers): ...this.
1013         (LANEMAC_QUALIFIERS): Rename to...
1014         (MAC_N_QUALIFIERS): ...this.
1015         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
1016         (arm_setlane_qualifiers): Use qualifier_lane_index.
1017         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
1018         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
1019         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
1020         (arm_expand_neon_builtin): Handle qualifier_lane_index.
1022         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
1023         * config/arm/arm.c (bounds_check): Likewise, improve error message.
1024         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
1025         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
1026         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
1027         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
1028         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
1029         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
1030         qualifiers to TERNOP_IMM.
1031         (vdup_lane): Change qualifiers to GETLANE.
1032         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
1033         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
1034         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
1035         vqdmlsl_n): Change qualifiers to MAC_N.
1037         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
1038         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
1039         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
1040         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
1041         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
1042         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
1043         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
1044         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
1045         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
1046         Remove call to neon_lane_bounds.
1048 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
1050         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1051         Place integer variant first.
1053 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
1055         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
1056         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
1057         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
1058         for armv6kz targets.
1059         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
1060         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
1061         (FL_FOR_ARCH6ZK): Remove.
1062         (FL_FOR_ARCH6KZ): New.
1063         (arm_arch6zk): New declaration.
1064         * config/arm/arm-tables.opt: Regenerate.
1065         * config/arm/arm.c (arm_arch6kz): New.
1066         (arm_option_override): Set arm_arch6kz.
1067         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
1068         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
1069         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
1071 2015-07-27  Marek Polacek  <polacek@redhat.com>
1073         PR c++/66555
1074         PR c/54979
1075         * doc/invoke.texi: Document -Wtautological-compare.
1077 2015-07-27  Richard Biener  <rguenther@suse.de>
1079         * genmatch.c (decision_tree::gen_gimple): Split out large
1080         subtrees into separate functions.
1081         (decision_tree::gen_generic): Likewise.
1083 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
1085         * config/alpha/alpha.c: Use SUBREG_P predicate.
1086         * config/alpha/predicates.md: Ditto.
1088 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1090         * config.host (s390*-*-*): Include driver-native.c only when
1091         building with s390* as host *and* target.
1093 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
1095         PR target/66930
1096         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
1097         T bit register modified_between_p check.
1099 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1101         * config/i386/i386.c: Use SUBREG_P predicate.
1102         * config/i386/i386.md: Ditto.
1103         * config/i386/sse.md: Ditto.
1104         * config/i386/predicates.md: Ditto.
1106 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1108         PR target/67004
1109         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
1110         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
1112 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1114         * Makefile.in: Remove use of TREEBROWSER.
1115         * config.in: Regenerated.
1116         * configure: Regenerated.
1117         * configure.ac: Remove definition of TREEBROWSER.
1118         * tree-browser.c: Removed.
1119         * tree-browser.def: Removed.
1121 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1123         * graphite-scop-detection.c: Include gimple-pretty-print.h.
1124         (stmt_simple_for_scop_p): Print when a stmt is not handled in
1125         Graphite.
1126         (scopdet_basic_block_info): Print when a loop or bb cannot be
1127         represented in Graphite.
1129 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1131         PR target/66648
1132         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
1133         execution guard when min_size is less than size_needed.
1135 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1137         * doc/install.texi: Document supported versions of ISL.
1139 2015-07-25  Jeff Law  <law@redhat.com>
1141         Revert:
1142         PR lto/66752
1143         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1144         unable to find X NE 0 in the tables, return X as the simplified
1145         condition.
1146         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1147         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
1148         to VISISTED_BBS.  */
1149         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1150         after removing the control flow statement and unnecessary edges.
1152 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
1154         Revert:
1155         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
1157         PR rtl-optimization/64164
1158         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1159         * tree-ssa-copyrename.c: Removed.
1160         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1161         -ftree-coalesce-vars.
1162         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1163         * common.opt (ftree-copyrename): Ignore.
1164         (ftree-coalesce-inlined-vars): Likewise.
1165         * doc/invoke.texi: Remove the ignored options above.
1166         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1167         * tree-ssa-coalesce.h: ... here.
1168         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1169         headers required by it.
1170         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1171         across variables when flag_tree_coalesce_vars.  Check register
1172         use and promoted modes to allow coalescing.  Moved to
1173         tree-ssa-coalesce.c.
1174         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1175         with its member functions to tree-ssa-coalesce.c.
1176         (var_map_base_init): Likewise.  Renamed to
1177         compute_samebase_partition_bases.
1178         (partition_view_normal): Drop want_bases parameter.
1179         (partition_view_bitmap): Likewise.
1180         * tree-ssa-live.h: Adjust declarations.
1181         * tree-ssa-coalesce.c: Include explow.h.
1182         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1183         default defs at the entry point.
1184         (dump_part_var_map): New.
1185         (compute_optimized_partition_bases): New, called by...
1186         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1187         of compute_samebase_partition_bases.  Adjust.
1188         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1189         * cfgexpand.c (leader_merge): New.
1190         (get_rtl_for_parm_ssa_default_def): New.
1191         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1192         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1193         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1194         redundant MEM attr setting.
1195         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1196         from...
1197         (expand_one_stack_var): ... this.  New wrapper to check and
1198         skip already expanded SSA partitions.
1199         (record_alignment_for_reg_var): New, factored out of...
1200         (expand_one_var): ... this.
1201         (expand_one_ssa_partition): New.
1202         (adjust_one_expanded_partition_var): New.
1203         (expand_one_register_var): Check and skip already expanded SSA
1204         partitions.
1205         (expand_used_vars): Don't create DECLs for anonymous SSA
1206         names.  Expand all SSA partitions, then adjust all SSA names.
1207         (pass::execute): Replace the loops that set
1208         SA.partition_to_pseudo from partition leaders and cleared
1209         DECL_RTL for multi-location variables, and that which used to
1210         rename vars and set attrs, with one that clears DECL_RTL and
1211         checks that PARMs and RESULTs default_defs match DECL_RTL.
1212         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1213         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1214         * explow.c (promote_ssa_mode): New.
1215         * explow.h (promote_ssa_mode): Declare.
1216         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1217         * function.c: Include cfgexpand.h.
1218         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1219         (use_register_for_parm_decl): Wrapper for the above to
1220         special-case the result_ptr.
1221         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1222         (split_complex_args): Take assign_parm_data_all argument.
1223         Pass it to rtl_for_parm.  Set up rtl and context for split
1224         args.
1225         (assign_parms_augmented_arg_list): Adjust.
1226         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1227         multiple locations.  Recognize split complex args.
1228         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1229         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1230         (assign_parm_setup_block): Prefer SSA-assigned location.
1231         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1232         if stack_parm is NULL.
1233         (assign_parm_setup_stack): Prefer SSA-assigned location.
1234         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1235         rtl before testing for pointer bounds.  Special-case result_ptr.
1236         (expand_function_start): Maybe reset DECL_RTL of result.
1237         Prefer SSA-assigned location for result and static chain.
1238         Factor out DECL_RESULT and SET_DECL_RTL.
1239         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1240         anonymous SSA names.  Use promote_ssa_mode.
1241         (get_temp_reg): Likewise.
1242         (remove_ssa_form): Adjust.
1243         * stor-layout.c (layout_decl): Don't set mem attributes of
1244         non-MEMs.
1245         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1246         and get its reg_usage for reg invalidation.
1247         (compute_bb_dataflow): Pass it insn.
1248         (emit_notes_in_bb): Likewise.
1250 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1252         * config/i386/i386.c (ix86_va_start): Remove
1253         unneeded !TARGET_64BIT check.
1254         (ix86_gimplify_va_arg): Ditto.
1256 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1258         * graphite-sese-to-poly.c (build_poly_scop): Always call
1259         rewrite_commutative_reductions_out_of_ssa.
1261 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1263         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
1264         flag_associative_math to FLOAT_TYPE_P.  Honour
1265         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
1267 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1269         PR c++/64079
1270         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
1271         and "%qD" in warning_at instead of "%q+D" in warning.
1273 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
1275         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
1276         (ix86_function_abi): Cleanup.
1278 2015-07-24  Michael Darling  <darlingm@gmail.com>
1280         PR other/66259
1281         * acinclude.m4: Reflects renaming of configure.in to configure.ac
1282         * configure: Likewise
1283         * configure.ac: Likewise
1284         * doc/install.texi: Likewise
1285         * doc/tm.texi: Likewise
1286         * doc/tm.texi.in: Likewise
1288 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1290         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
1291         manually swapping values.
1292         * cse.c (fold_rtx): Likewise.
1293         * lra-eliminations.c (form_sum): Likewise.
1295 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
1297         PR target/64003
1298         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
1299         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
1300         (*jcc_1, *jcc_2, jump, simple_return_internal)
1301         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
1302         Set length_nobnd attribute instead of length attribute.
1303         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
1304         (length_nobnd): Remove attribute.
1305         (length): Remove length_nobnd processing.
1307 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1309         * gimplify.c (omp_default_clause): New function.  Reorganize flow
1310         for clarity. Broken out of ...
1311         (omp_notice_variable): ... here.
1313 2015-07-24  Gary Funck  <gary@intrepid.com>
1315         PR middle-end/66984
1316         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
1317         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
1319 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1321         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
1322         exit-first loop transform.
1324 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
1326         PR 66714
1327         * tree-cfg.c (struct replace_decls_d): New struct.
1328         (replace_block_vars_by_duplicates_1): New function.
1329         (replace_block_vars_by_duplicates): Use it to replace the decls
1330         in the value exprs by duplicates.
1332 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1334         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
1335         -shared, -symbolic, -rdynamic.
1337 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1339         PR target/65711
1340         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
1341         -dynamic-linker within %{!static %{!shared, and -rdynamic within
1342         %{!static.
1344 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1346         PR ipa/66566
1347         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
1348         edge summary is available.
1350 2015-07-24  Richard Biener  <rguenther@suse.de>
1352         * genmatch.c (struct dt_node): Add statistic fields.
1353         (dt_node::analyze): New method.
1354         (decision_tree::gen_gimple): Call analyze on the root node
1355         and print statistics to stderr.
1356         (decision_tree::gen_generic): Likewise.
1358 2015-07-24  Richard Biener  <rguenther@suse.de>
1360         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
1361         against the highest or lowest possible integer ...
1362         * match.pd: ... as patterns here.
1364 2015-07-24  Richard Biener  <rguenther@suse.de>
1366         * genmatch.c (struct capture_info): Add same_as field.
1367         (capture_info::capture_info): Initialize same_as.
1368         (capture_info::walk_match): Compute same_as.
1369         (capture_info::walk_result): Compute stuff for the leader.
1370         (capture_info::walk_c_expr): Likewise.
1371         (dt_simplify::gen_1): Only look at leaders when deciding
1372         to force no side-effects or emit side-effects of omitted operands.
1374 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1376         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
1377         reg note to the GPR -> FPR save instructions.
1379 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1381         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
1382         cheaper.
1383         (s390_expand_insv): Don't generate risbg pattern for constant zero
1384         sources.
1385         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
1386         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
1387         splitters.
1389 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1391         * config/s390/s390.c (s390_reorg): Clean up handling of processors
1392         with
1393         -mtune=
1394         (s390_issue_rate): Likewise.
1395         (s390_sched_reorder): Likewise.
1396         (s390_sched_variable_issue): Likewise.
1397         (s390_loop_unroll_adjust): Likewise.
1398         (s390_option_override):  Likewise.
1400 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1402         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
1403         processor capabilities with -march=native.
1404         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
1405         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
1406         (S390_TARGET_BITS_STRING): Macro to simplify specs.
1408 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1410         * config/s390/s390.c (s390_issue_rate): Handle
1411         PROCESSOR_2094_Z9_EC.
1412         (s390_option_override): Likewise.
1413         (s390_adjust_priority): Likewise.
1415 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1417         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
1418         when cross compiling.
1420 2015-07-24  Richard Biener  <rguenther@suse.de>
1422         * fold-const.c (maybe_canonicalize_comparison_1): Move
1423         A code CST canonicalization ...
1424         * match.pd: ... to a pattern here.
1426 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
1428         Revert:
1429         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
1430         PR target/63521
1431         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
1432         (HONOR_REG_ALLOC_ORDER): Define.
1434 2015-07-24  Richard Biener  <rguenther@suse.de>
1436         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
1437         * fold-const.c (fold_comparison): Move parameter does not
1438         alias &local simplification ...
1439         * match.pd: ... as a pattern here.
1441 2015-07-24  Richard Biener  <rguenther@suse.de>
1443         * gimple-fold.c (replace_stmt_with_simplification): Special-case
1444         valueizing call operands.
1445         * gimple-match-head.c (maybe_push_res_to_seq): Take
1446         number of call arguments from ops array.
1447         (do_valueize): New function.
1448         (gimple_simplify): Return true if valueization changed
1449         any operand even if the result didn't simplify further.
1451 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1453         PR middle-end/25530
1454         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
1456 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1458         PR middle-end/25529
1459         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
1461 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1463         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
1464         instruction.
1466 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1468         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
1469         clean up.
1471 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
1473         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
1474         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
1475         targets here.
1476         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
1477         ms_va_list_type_node initialization.
1479 2015-07-23  Jeff Law  <law@redhat.com>
1481         PR lto/66752
1482         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1483         unable to find X NE 0 in the tables, return X as the simplified
1484         condition.
1485         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1486         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
1487         to VISISTED_BBS.  */
1488         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1489         after removing the control flow statement and unnecessary edges.
1491 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1493         * tree-pass.h (get_current_pass_name): Removed.
1495 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
1497         PR rtl-optimization/64164
1498         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1499         * tree-ssa-copyrename.c: Removed.
1500         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1501         -ftree-coalesce-vars.
1502         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1503         * common.opt (ftree-copyrename): Ignore.
1504         (ftree-coalesce-inlined-vars): Likewise.
1505         * doc/invoke.texi: Remove the ignored options above.
1506         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1507         * tree-ssa-coalesce.h: ... here.
1508         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1509         headers required by it.
1510         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1511         across variables when flag_tree_coalesce_vars.  Check register
1512         use and promoted modes to allow coalescing.  Moved to
1513         tree-ssa-coalesce.c.
1514         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1515         with its member functions to tree-ssa-coalesce.c.
1516         (var_map_base_init): Likewise.  Renamed to
1517         compute_samebase_partition_bases.
1518         (partition_view_normal): Drop want_bases parameter.
1519         (partition_view_bitmap): Likewise.
1520         * tree-ssa-live.h: Adjust declarations.
1521         * tree-ssa-coalesce.c: Include explow.h.
1522         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1523         default defs at the entry point.
1524         (dump_part_var_map): New.
1525         (compute_optimized_partition_bases): New, called by...
1526         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1527         of compute_samebase_partition_bases.  Adjust.
1528         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1529         * cfgexpand.c (leader_merge): New.
1530         (get_rtl_for_parm_ssa_default_def): New.
1531         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1532         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1533         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1534         redundant MEM attr setting.
1535         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1536         from...
1537         (expand_one_stack_var): ... this.  New wrapper to check and
1538         skip already expanded SSA partitions.
1539         (record_alignment_for_reg_var): New, factored out of...
1540         (expand_one_var): ... this.
1541         (expand_one_ssa_partition): New.
1542         (adjust_one_expanded_partition_var): New.
1543         (expand_one_register_var): Check and skip already expanded SSA
1544         partitions.
1545         (expand_used_vars): Don't create DECLs for anonymous SSA
1546         names.  Expand all SSA partitions, then adjust all SSA names.
1547         (pass::execute): Replace the loops that set
1548         SA.partition_to_pseudo from partition leaders and cleared
1549         DECL_RTL for multi-location variables, and that which used to
1550         rename vars and set attrs, with one that clears DECL_RTL and
1551         checks that PARMs and RESULTs default_defs match DECL_RTL.
1552         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1553         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1554         * explow.c (promote_ssa_mode): New.
1555         * explow.h (promote_ssa_mode): Declare.
1556         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1557         * function.c: Include cfgexpand.h.
1558         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1559         (use_register_for_parm_decl): Wrapper for the above to
1560         special-case the result_ptr.
1561         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1562         (split_complex_args): Take assign_parm_data_all argument.
1563         Pass it to rtl_for_parm.  Set up rtl and context for split
1564         args.
1565         (assign_parms_augmented_arg_list): Adjust.
1566         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1567         multiple locations.  Recognize split complex args.
1568         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1569         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1570         (assign_parm_setup_block): Prefer SSA-assigned location.
1571         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1572         if stack_parm is NULL.
1573         (assign_parm_setup_stack): Prefer SSA-assigned location.
1574         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1575         rtl before testing for pointer bounds.  Special-case result_ptr.
1576         (expand_function_start): Maybe reset DECL_RTL of result.
1577         Prefer SSA-assigned location for result and static chain.
1578         Factor out DECL_RESULT and SET_DECL_RTL.
1579         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1580         anonymous SSA names.  Use promote_ssa_mode.
1581         (get_temp_reg): Likewise.
1582         (remove_ssa_form): Adjust.
1583         * stor-layout.c (layout_decl): Don't set mem attributes of
1584         non-MEMs.
1585         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1586         and get its reg_usage for reg invalidation.
1587         (compute_bb_dataflow): Pass it insn.
1588         (emit_notes_in_bb): Likewise.
1590 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
1592         PR target/66217
1593         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
1594         prototype.
1595         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
1596         (rs6000_emit_2insn_and): Handle dot forms.
1597         * config/rs6000/rs6000.md (and<mode>3): Adjust.
1598         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
1599         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
1601 2015-07-23  Richard Biener  <rguenther@suse.de>
1603         * generic-match-head.c: Include cgraph.h.
1604         * gimple-match-head.c: Likewise.
1605         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
1606         SSA names.
1607         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
1608         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
1609         pattern.
1611 2015-07-23  Richard Biener  <rguenther@suse.de>
1613         * gimple-fold.c (fold_gimple_cond): Do not require folding
1614         results to pass valid_gimple_rhs_p.
1615         * tree-cfg.h (fold_cond_expr_cond): Remove.
1616         * tree-cfg.c (fold_cond_expr_cond): Likewise.
1617         (make_edges): Do not call it.
1618         * tree-inline.c (tree_function_versioning): Likewise.
1620 2015-07-23  Tom de Vries  <tom@codesourcery.com>
1622         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
1623         vect_force_simple_reduction.
1624         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
1625         (vect_is_simple_reduction_1): Add and handle
1626         need_wrapping_integral_overflow parameter.
1627         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
1628         need_wrapping_integral_overflow parameter.
1629         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
1630         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
1631         decl.
1633 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
1635         PR tree-optimization/66926,66951
1636         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
1637         INNER_LOOP and fix up condition for renaming virtual operands.
1639 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1641         * combine.c (try_combine): Use std::swap instead of manually
1642         swapping.
1644 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
1646         * config/mips/i6400.md: New file.
1647         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
1648         (mips64r6): Likewise.
1649         (i6400): Define.
1650         * config/mips/mips-tables.opt: Regenerate.
1651         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
1652         (mips_issue_rate): Add support for i6400.
1653         (mips_multipass_dfa_lookahead): Likewise.
1654         * config/mips/mips.h (TUNE_I6400): Define.
1655         * config/mips/mips.md: Include i6400.md.
1656         (processor): Add i6400.
1657         * doc/invoke.texi (-march=@var{arch}): Add i6400.
1659 2015-07-23  Richard Biener  <rguenther@suse.de>
1661         PR middle-end/66916
1662         * match.pd: Guard widen and sign-change comparison simplification
1663         with single_use.
1665 2015-07-23  Richard Biener  <rguenther@suse.de>
1667         PR tree-optimization/66945
1668         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
1669         ::before_dom_children): Force the propagators idea of
1670         non-executable edges to materialize, not what the folder
1671         chooses.
1673 2015-07-23  Richard Biener  <rguenther@suse.de>
1675         * gimple.h (gimple_cond_make_false): Use 0 != 0.
1676         (gimple_cond_make_true): Use 1 != 0.
1678 2015-07-22  DJ Delorie  <dj@redhat.com>
1680         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
1681         slashes.
1683         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
1684         (ashrhi3): Likewise.
1685         (lshrhi3): Likewise.
1686         (movhi): Take advantage of zero-extend to load small constants.
1687         (movpsi): Likewise.
1688         (and<mode>3): Likewise.
1689         (zero_extendqihi2): Likewise.
1690         (zero_extendqisi2): New.
1691         * config/msp430/constraints.md (N,O): New.
1692         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
1694 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
1696         PR target/66954
1697         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
1698         to enum feature_priority and feature_list.
1699         (fold_builtin_cpu): Add F_AES to enum processor_features
1700         and isa_names_table.
1702 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
1704         PR driver/66737
1705         * config/i386/linux-common.h (MPX_SPEC): Use linker option
1706         for 64bit target only.
1708 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1710         * config/nvptx/nvptx.c: Expand some comments.
1712 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
1714         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
1715         (cortex_a53_advsimd): ...This.
1717 2015-07-22  Richard Biener  <rguenther@suse.de>
1719         * genmatch.c (expr::gen_transform): Clarify error message
1720         and display location.
1722 2015-07-22  Richard Biener  <rguenther@suse.de>
1724         * genmatch.c (struct operand): Add location member.
1725         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
1726         constructors.
1727         (struct simplify): Remove match_location and result_location
1728         members.
1729         (elsehwere): Adjust.
1731 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
1733         * config/mips/m5100.md: New file.
1734         * config/mips/mips-cpus.def (m5100, m5101): Define.
1735         * config/mips/mips-tables.opt: Regenerate.
1736         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
1737         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
1738         -march=m5101 to -mips32r5.
1739         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
1740         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
1741         !-msoft-float.
1742         * config/mips/mips.md: Include m5100.md.
1743         (processor): Add m5100.
1744         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
1746 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
1748         * config/mips/mips-cpus.def (interaptiv): Define.
1749         * config/mips/mips-tables.opt: Regenerate.
1750         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
1751         -mips32r2.
1752         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
1753         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
1755 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
1757         PR target/63521
1758         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
1759         (HONOR_REG_ALLOC_ORDER): Define.
1761 2015-07-22  Richard Biener  <rguenther@suse.de>
1763         PR tree-optimization/66952
1764         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
1765         blocks we end up executing unconditionally reset all SSA
1766         info such as range and alignment.
1767         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
1768         * tree-ssanames.c (reset_flow_sensitive_info): New function.
1770 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
1772         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
1773         typo in attribute.
1775 2015-07-22  Richard Biener  <rguenther@suse.de>
1777         * genmatch.c (parser::parse_result): Properly handle
1778         match with result operands and conditions.
1780 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
1782         PR target/63870
1783         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1784         Add qualifier_struct_load_store_lane_index.
1785         (aarch64_types_loadstruct_lane_qualifiers): Use
1786         qualifier_struct_load_store_lane_index for lane index argument for
1787         last argument.
1788         (aarch64_types_storestruct_lane_qualifiers): Ditto.
1789         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1790         (aarch64_simd_expand_args): Add new argument describing mode of
1791         builtin. Check lane bounds for arguments with
1792         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1793         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
1794         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1795         (aarch64_simd_expand_builtin): Handle arguments with
1796         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
1797         aarch64_simd_expand_args.
1798         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
1799         vst[234]_lane with BUILTIN_VALLDIF.
1800         * config/aarch64/aarch64-simd.md:
1801         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
1802         endianness reversal on lane index.
1803         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
1804         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
1805         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
1806         (vec_store_lanesci_lane<mode>): Ditto.
1807         (vec_store_lanesxi_lane<mode>): Ditto.
1808         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
1809         reversal of lane index.
1810         (aarch64_ld3_lane<mode>): Ditto.
1811         (aarch64_ld4_lane<mode>): Ditto.
1812         (aarch64_st2_lane<mode>): Ditto.
1813         (aarch64_st3_lane<mode>): Ditto.
1814         (aarch64_st4_lane<mode>): Ditto.
1815         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
1816         to qmode. Add new mode parameter. Update uses.
1817         (__LD3_LANE_FUNC): Ditto.
1818         (__LD4_LANE_FUNC): Ditto.
1819         (__ST2_LANE_FUNC): Ditto.
1820         (__ST3_LANE_FUNC): Ditto.
1821         (__ST4_LANE_FUNC): Ditto.
1823 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
1825         * doc/invoke.texi (Language Independent Options): Rename node to
1826         Diagnostic Message Formatting Options.
1828 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
1830         PR ipa/66424.
1831         * lra-remat.c (operand_to_remat): Prevent using insns with input
1832         subregs processed separately by IRA.
1834 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
1836         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
1837         straight loops.
1838         (single_imm_use): Check for iterator node.
1839         (num_imm_uses): Likewise.
1840         * tree-ssa-operands.c (has_zero_uses_1): Delete.
1841         (single_imm_use_1): Check for iterator node.
1843 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
1844             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1846         * configure.ac: Add check for new options in isl-0.15.
1847         * config.in, configure: Rebuilt.
1848         * graphite-blocking.c: Include <isl/constraint.h>
1849         * graphite-interchange.c,  graphite-poly.c: Likewise.
1850         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
1851         * graphite.c: Likewise.
1852         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
1853         <isl/union_set.h>.
1854         * graphite-dependences.c: Include <isl/constraint.h>.
1855         (max_number_of_out_dimensions): Returns isl_stat.
1856         (extend_schedule_1): Likewise
1857         (extend_schedule): Corresponding changes.
1858         * graphite-optimize-isl.c: Include <isl/constraint.h> and
1859         <isl/union_set.h>.
1860         (getSingleMap): Change return type of isl_stat.
1861         (optimize_isl): Conditionally use
1862         isl_options_set_schedule_serialize_sccs.
1863         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
1864         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1866 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
1868         PR target/66956
1869         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
1870         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
1872 2015-07-21  Richard Biener  <rguenther@suse.de>
1874         PR tree-optimization/66948
1875         * genmatch.c (capture_info::walk_match): Also recurse to
1876         captures.  Properly compute expr state from captures of
1877         captures.
1878         * match.pd: Add single-use guards to
1879         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
1881 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
1883         * config/nvptx/mkoffload.c (process): Add static destructor call.
1885 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1887         PR middle-end/66915
1888         * match.pd (A - B -> A + (-B)): Don't allow folding
1889         when type if a fixed-point type.
1891 2015-07-20  DJ Delorie  <dj@redhat.com>
1893         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
1894         (iorqi3_real): Likewise for set1.
1896 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
1898         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
1899         for !TARGET_64BIT.
1901 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
1903         * graphite-isl-ast-to-gimple.c:
1904         Refactor so that each function can access 'region'. This will help
1905         maintain a parameter rename_map within a region.
1907 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1909         * config/rs6000/rs6000.md (*lt0_disi): New.
1911 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
1913         PR target/66217
1914         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
1915         "available letters" comment.
1916         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
1917         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
1918         and_2rld_operand):  Delete.
1919         (and_operand): Adjust.
1920         (rotate_mask_operator): New.
1921         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
1922         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
1923         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
1924         extract_ME): Delete.
1925         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
1926         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
1927         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
1928         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
1929         rs6000_emit_2insn_and): New.
1930         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
1931         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
1932         includes_rldic_lshift_p, includes_rldicr_lshift_p,
1933         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
1934         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
1935         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
1936         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
1937         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
1938         rs6000_emit_2insn_and): New.
1939         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
1940         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
1941         handling.
1942         <NOT>: Don't fall through to next case.
1943         <AND>: Handle the various rotate-and-mask cases directly.
1944         <IOR>: Always cost as one insn.
1945         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
1946         (and<mode>3): Adjust expander for the new patterns.
1947         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
1948         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
1949         (*and<mode>3_imm_dot_shifted): New.
1950         (*and<mode>3_mask): Delete, rewrite as ...
1951         (and<mode>3_mask): ... New.
1952         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
1953         (andsi3_internal0_nomc): Delete.
1954         (*andsi3_internal6): Delete.
1955         (*and<mode>3_2insn): New.
1956         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
1957         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
1958         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
1959         *insvdi_internal3): Delete.
1960         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
1961         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
1962         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
1963         *ior<mode>_mask): New.
1964         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
1965         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
1966         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
1967         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
1968         Delete.
1969         (ashr<mode>3): Delete expander.
1970         (*ashr<mode>3): Rename to ...
1971         (ashr<mode>3): ... This.
1972         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
1973         (*rotldi3_internal4, *rotldi3_internal5 and split,
1974         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
1975         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
1976         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
1977         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
1978         (splitter for loading a mask): Adjust.
1979         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
1981 2015-07-20  Marek Polacek  <polacek@redhat.com>
1983         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
1984         output_add_clobbers, output_added_clobbers_hard_reg_p,
1985         gen_rtx_scratch): Remove declarations.
1987 2015-07-20  Marek Polacek  <polacek@redhat.com>
1989         PR c++/55095
1990         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
1992 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1994         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
1995         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
1997 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1999         * combine.c (combine_simplify_rtx): Move simplification step
2000         before various transformations/substitutions.
2002 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
2004         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
2005         (struct int_traits): Likewise.
2007 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2009         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
2010         function to vmsdbgout_function_decl.
2012 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
2014         PR target/66922
2015         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
2016         from misaligned positions.
2017         (ix86_expand_pinsr): Reject insertions to misaligned positions.
2019 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
2021         PR middle-end/46851
2022         PR middle-end/60340
2023         * Makefile.in: Removed omega.o.
2024         * common.opt: Document flag fcheck-data-deps as deprecated.
2025         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
2026         its associated params: omega-max-vars, omega-max-geqs,
2027         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
2028         omega-max-keys, omega-eliminate-redundant-constraints.
2029         * doc/loop.texi: Remove all the section on Omega.
2030         * graphite-blocking.c: Include missing params.h: it used to be
2031         included through tree-data-ref.h and omega.h.
2032         * graphite-isl-ast-to-gimple.c: Same.
2033         * graphite-optimize-isl.c: Same.
2034         * graphite-sese-to-poly.c: Same.
2035         * graphite.c: Same.
2036         * omega.c: Remove.
2037         * omega.h: Remove.
2038         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2039         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2040         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
2041         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
2042         * passes.def: Remove pass_check_data_deps.
2043         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
2044         (dump_conflict_function): Same.
2045         (dump_subscript): Same.
2046         (print_direction_vector): Same.
2047         (print_dir_vectors): Same.
2048         (print_lambda_vector): Same.
2049         (print_dist_vectors): Same.
2050         (dump_data_dependence_relation): Same.
2051         (dump_data_dependence_relations): Same.
2052         (dump_dist_dir_vectors): Same.
2053         (dump_ddrs): Same.
2054         (init_omega_eq_with_af): Removed.
2055         (omega_extract_distance_vectors): Removed.
2056         (omega_setup_subscript): Removed.
2057         (init_omega_for_ddr_1): Removed.
2058         (init_omega_for_ddr): Removed.
2059         (ddr_consistent_p): Removed.
2060         (compute_affine_dependence): Do not use omega to check data
2061         dependences.
2062         (compute_data_dependences_for_bb): Removed.
2063         (analyze_all_data_dependences): Removed.
2064         (tree_check_data_deps): Removed.
2065         * tree-data-ref.h: Do not include omega.h.
2066         (compute_data_dependences_for_bb): Removed.
2067         (tree_check_data_deps): Removed.
2068         * tree-ssa-loop.c (pass_check_data_deps): Removed.
2069         (make_pass_check_data_deps): Removed.
2070         * tree-ssa-phiopt.c: Include params.h.
2071         * tree-vect-data-refs.c: Same.
2072         * tree-vect-slp.c: Same.
2074 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
2076         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
2077         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
2078         (mem->fpreg splitters): Ditto.
2079         (general_operand->nonimmediate_operand splitter): Use explicit modes.
2080         Disable DFmode for TARGET_64BIT.
2082 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2084         PR target/66906
2085         * config/i386/i386.c (ix86_expand_prologue): Replicate static
2086         chain on the stack.
2088 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2090         * config/nvptx/mkoffload.c (process): Constify host data.
2091         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2092         Constify host data.
2093         (generate_host_descr_file): Likewise.
2095 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
2096             Sebastian Pop  <s.pop@samsung.com>
2098         PR middle-end/61929
2099         * graphite-dependences.c (add_pdr_constraints): Renamed
2100         pdr->extent to pdr->subscript_sizes.
2101         * graphite-interchange.c (build_linearized_memory_access): Add
2102         back all gcc_assert's that the "isl_int to isl_val conversion"
2103         patch has removed.  Refactored.
2104         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
2105         * graphite-poly.c (new_poly_dr): Same.
2106         (free_poly_dr): Same.
2107         * graphite-poly.h (struct poly_dr): Same.
2108         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
2109         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
2110         * graphite-scop-detection.h: Fix space.
2111         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
2112         back all gcc_assert's removed by a previous patch.
2113         (wrap): Remove the_isl_ctx global variable that the same patch has
2114         added.
2115         (build_loop_iteration_domains): Same.
2116         (add_param_constraints): Same.
2117         (pdr_add_data_dimensions): Same.  Refactored.
2118         (build_poly_dr): Renamed extent to subscript_sizes.
2120 2015-07-17  Marek Polacek  <polacek@redhat.com>
2122         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
2123         * match.pd: ... here.
2125 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2127         * config/nvptx/mkoffload.c (process): Constify target data.
2128         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2129         Constify target data.
2130         (generate_target_offloadend_file): Likewise.
2132 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
2134         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
2135         to allow renaming of PHI arguments on edges incoming from outer
2136         loop header, add corresponding check before start PHI iterator.
2137         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
2138         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
2139         with true force_vectorize.  Set-up dominator for outer loop too.
2140         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
2141         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
2142         was marked with force_vectorize and has restricted cfg.
2143         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
2144         inner loop.
2145         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2146         do peeling for outer loops.
2148 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
2149             Matthias Klose  <doko@ubuntu.com>
2151         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
2152         build-sysroot, sysroot from the `Miscenalleous configure options' to
2153         the `Directories' section and strip trailing `/' from with_sysroot.
2154         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
2155         * configure: Regenerated.
2157 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
2159         PR target/66824
2160         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
2161         (TARGET_HARD_DF_REGS): Ditto.
2162         (TARGET_HARD_XF_REGS): Ditto.
2163         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
2164         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
2165         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
2166         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
2167         (*movsf_internal): Add alternatives 16 and 17. Enable
2168         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
2170 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
2172         PR rtl-optimization/66891
2173         * calls.c (expand_call): Wrap precompute_register_parameters with
2174         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
2176 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
2178         * config/nvptx/mkoffload.c (process): Constify mapping variables.
2179         Define target data struct and initialize it.
2181 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
2183         PR rtl-optimization/66626
2184         * ira.h (emit-rtl.h): Include.
2185         (non_spilled_static_chain_regno_p): New.
2186         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
2187         unless it is non spilled static chain pseudo.
2188         (assign_hard_rego): Spill memory profitable allocno unless it is
2189         non spilled static chain pseudo.
2190         (allocno_spill_priority_compare): Put non spilled static chain
2191         pseudo at the end of sorted array.
2192         (improve_allocation): Do nothing if we have static chain and
2193         non-local goto.
2194         (allocno__priority_compare_func): Put non spilled static chain
2195         pseudo at the beginning of sorted array.
2196         (move_spill_restore): Ignore non spilled static chain pseudo.
2197         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
2198         to non spilled static chain pseudo.
2199         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
2200         pseudo at the beginning of sorted array.
2201         (spill_for): Spill non spilled static chain pseudo last.
2202         * lra-constraints.c (lra_constraints): Remove static chain pseudo
2203         check for equivalence.
2205 2015-07-16  Martin Liska  <mliska@suse.cz>
2207         PR ipa/66896.
2208         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
2209         dst_ctx if it does not exist.
2211 2015-07-16  Martin Liska  <mliska@suse.cz>
2213         * hash-set.h (remove): New function.
2214         (iterator): New iteration class for hash_set.
2216 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2218         * genattrtab.c (make_canonical): Add a file_location parameter.
2219         Use fatal_at rather than fatal.
2220         (get_attr_value): Likewise.  Update call to make_canonical.
2221         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
2222         (make_internal_attr): Update calls accordingly.
2224 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2226         * read-md.h (message_with_line, error_with_line): Delete.
2227         * read-md.c (message_with_line, error_with_line): Delete.
2228         * gensupport.h: Include read-md.h.
2229         (md_rtx_info): New structure.
2230         (read_md_rtx): Use it.  Return a bool success value.
2231         * gensupport.c (read_md_rtx): Likewise.
2232         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
2233         (main): Update after interface changes.
2234         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
2235         (main): Update after interface changes.
2236         * genattrtab.c (insn_code_number): Delete.
2237         (optimize_attrs): Add a max_insn_code parameter and use it instead
2238         of insn_code_number.
2239         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
2240         Use *_at rather than *_with_line functions.
2241         (gen_insn): Likewise.
2242         (gen_delay): Likewise.
2243         (gen_insn_reserv): Likewise.
2244         (gen_bypass): Take an md_rtx_info rather than an rtx.
2245         (main): Update after interface changes.  Use a local max_insn_code
2246         variable instead of insn_code_number.
2247         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
2248         an rtx.  Use fatal_at rather than fatal.
2249         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
2250         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
2251         (gen_absence_set, gen_final_absence_set, gen_automaton)
2252         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
2253         (main): Update after interface changes.
2254         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
2255         and code number.
2256         (main): Update after interface changes.
2257         * genconditions.c (main): Use new read_md_rtx interface.
2258         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
2259         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
2260         (main): Update after interface changes.
2261         * genemit.c (insn_code_number, insn_index_number): Delete.
2262         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2263         Use fatal_at rather than fatal.
2264         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
2265         rather than fatal.
2266         (gen_split): Likewise.
2267         (main): Update after interface changes.
2268         * genextract.c (line_no): Delete.
2269         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2270         Update call to walk_rtx.
2271         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
2272         rather than message_with_line.
2273         (walk_rtx): Add an md_rtx_info argument.  Update call to
2274         VEC_safe_set_locstr.
2275         (main): Update after interface changes.
2276         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
2277         and lineno.  Use error_at rather than separate message_with_line
2278         calls and have_error assignments.
2279         (main): Update after interface changes.
2280         * genmddump.c (main): Use new read_md_rtx interface.
2281         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
2282         (main): Update after interface changes.
2283         * genoutput.c (next_code_number): Delete.
2284         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2285         (gen_peephole, gen_expand, gen_split): Likewise.
2286         (note_constraint): Likewise.  Use *_at rather than *_with_line
2287         functions.
2288         (main): Update after interface changes.
2289         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
2290         rtx and lineno.
2291         (main): Update after interface changes.
2292         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
2293         than an rtx and lineno.
2294         (process_define_constraint): Likewise.
2295         (process_define_register_constraint): Likewise.
2296         (main): Update after interface changes.
2297         * genrecog.c (next_insn_code, pattern_lineno): Delete.
2298         (validate_pattern): Replace top-level rtx with an md_rtx_info.
2299         Use *_at rather than *_with_line functions.
2300         (match_pattern_2): Likewise.
2301         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
2302         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
2303         Use *_at rather than *_with_line functions.
2304         * gentarget-def.c (add_insn): New function.
2305         (main): Use it.  Use new read_md_rtx interface.
2307 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2309         * gensupport.h (compute_test_codes): Take a file_location rather
2310         than a line number.
2311         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
2312         rather than *_with_line functions.
2313         (process_define_predicate): Update call to compute_test_codes.
2314         * genpreds.c (validate_exp): Take a file_location rather than a
2315         line number.  Use *_at functions rather than *_with_line functions.
2316         (process_define_predicate): Update call to validate_exp.
2317         (constraint_data): Replace lineno field with a file_location.
2318         (add_constraint): Take a file_location rather than a line number.
2319         Use *_at functions rather than *_with_line functions.  Fix error
2320         message for address constraints.  Update after changes to
2321         validate_exp, constraint_data and compute_test_codes.
2322         (process_define_constraint): Update accordingly.
2323         (process_define_register_constraint): Likewise.
2325 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2327         * genoutput.c (data): Use a file_location to record the source
2328         position.
2329         (nothing): Delete.
2330         (idata, idata_end): Remove initialization.
2331         (constraint_data): Replace lineno with a file_location.
2332         (output_insn_data): Update after changes to data.
2333         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
2334         (scan_operands): Likewise, using *_at rather than *_with_line
2335         functions.
2336         (process_template): Likewise.
2337         (validate_insn_alternatives): Likewise.
2338         (validate_insn_operands): Likewise.
2339         (validate_optab_operands): Likewise.
2340         (init_insn_for_nothing): Initialize idata and idata_end.
2341         (note_constraint): Update after changes to constraint_data,
2342         using at rather than with_line functions.
2343         (mdep_constraint_len): Take a file_location rather than a
2344         line number.  Use at rather than with_line functions.
2346 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2348         * read-md.h (fatal_at): Declare.
2349         * read-md.c (fatal_at): New function.
2350         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
2351         to record the source position.
2352         (check_attr_test): Take a file_location instead of a line number.
2353         Use fatal_at instead of fatal.
2354         (check_attr_value): Update after above changes, using "at"
2355         rather than "with_line" reporting functions.
2356         (convert_set_attr_alternative): Likewise.
2357         (gen_attr): Likewise.
2358         (check_defs): Likewise.  Don't assign to read_md_filename.
2359         (gen_insn): Update initialization after above changes.
2360         (gen_delay): Likewise.
2361         (write_insn_cases): Print the filename for a define_peephole.
2362         (gen_insn_reserv): Take a line number as argument and update
2363         the call to check_attr_test.
2364         (main): Pass a line number to gen_insn_reserv.
2366 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2368         * read-md.h (file_location): New structure.
2369         (directive_handler_t): Take a file_location rather than a line number.
2370         (message_at, error_at): Declare.
2371         (read_skip_construct): Delete.
2372         * read-md.c (message_with_line_1): Replace with...
2373         (message_at_1): ...this new function.
2374         (message_at, error_at): New functions.
2375         (message_with_line, error_with_line): Update to use message_at_1.
2376         (handle_enum): Take a file_location rather than a line number
2377         and use error_at for error reporting.
2378         (handle_include): Likewise.
2379         (read_skip_construct): Likewise.  Make static.
2380         (handle_file): Update after above changes.  Pass a file_location
2381         rather than a line number to handle_directive.
2382         * gensupport.c (queue_elem): Replace separate filename and lineno
2383         with a file_location.
2384         (queue_pattern): Replace filename and lineno arguments with a
2385         file_location.  Update after change to queue_elem.
2386         (process_define_predicate): Replace lineno argument with a
2387         file_location and use error_at for error reporting.  Update
2388         after above changes.
2389         (process_rtx): Likewise.
2390         (subst_pattern_match): Likewise.
2391         (get_alternatives_number): Likewise.
2392         (alter_predicate_for_insn): Likewise.
2393         (rtx_handle_directive): Likewise.
2394         (is_predicable): Update after above changes, using error_at rather
2395         than error_with_line.
2396         (has_subst_attribute): Likewise.
2397         (identify_predicable_attribute): Likewise.
2398         (alter_attrs_for_subst_insn): Likewise.
2399         (process_one_cond_exec): Likewise.
2400         (process_substs_on_one_elem): Likewise.
2401         (process_define_subst): Likewise.
2402         (check_define_attr_duplicates): Likewise.
2403         (read_md_rtx): Update after change to queue_elem.
2405 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2407         * genoutput.c (next_index_number): Delete.
2408         (data): Remove index_number.
2409         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
2410         (main): Remove manipulation of next_index_number.
2412 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2414         * genattrtab.c (check_attr_value): Remove handling of null attrs.
2415         (make_canonical): Likewise.
2417 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
2419         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
2420         instead of adjust_address_nv.
2421         (restore_stack_nonlocal): Likewise.
2422         (nonlocal_goto): Likewise.
2424 2015-07-16  Tom de Vries  <tom@codesourcery.com>
2426         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
2427         not have a corresponding loop header phi.
2429 2015-07-16  Tom de Vries  <tom@codesourcery.com>
2431         * tree-parloops.c (create_loads_for_reductions): Handle case that
2432         reduction is unused.
2434 2015-07-16  Richard Biener  <rguenther@suse.de>
2436         PR tree-optimization/66894
2437         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
2438         about deriving NE_EXPR from truncated values.
2440 2015-07-16  Martin Liska  <mliska@suse.cz>
2442         * alloc-pool.h
2443         (object_allocator): Add new class.
2444         (pool_allocator::initialize): Use the underlying class.
2445         (pool_allocator::allocate): Likewise.
2446         (pool_allocator::remove): Likewise.
2447         (operator new): A new generic allocator.
2448         * asan.c (struct asan_mem_ref): Remove unused members.
2449         (asan_mem_ref_new): Replace new operator with
2450         object_allocator::allocate.
2451         (free_mem_ref_resources): Change deallocation.
2452         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
2453         with object_allocator.
2454         * config/sh/sh.c (add_constant): Replace new operator with
2455         object_allocator::allocate.
2456         (sh_reorg): Change call to a release method.
2457         * cselib.c (struct elt_list): Remove unused members.
2458         (new_elt_list): Replace new operator with
2459         object_allocator::allocate.
2460         (new_elt_loc_list): Likewise.
2461         (new_cselib_val): Likewise.
2462         (unchain_one_elt_list): Change delete operator with remove method.
2463         (unchain_one_elt_loc_list): Likewise.
2464         (unchain_one_value): Likewise.
2465         (cselib_finish): Release newly added static allocators.
2466         * cselib.h (struct cselib_val): Remove unused members.
2467         (struct elt_loc_list): Likewise.
2468         * df-problems.c (df_chain_alloc): Replace pool_allocator with
2469         object_allocator.
2470         * df-scan.c (struct df_scan_problem_data): Likewise.
2471         (df_scan_alloc): Likewise.
2472         * df.h (struct dataflow): Likewise.
2473         * dse.c (struct read_info_type): Likewise.
2474         (struct insn_info_type): Likewise.
2475         (struct dse_bb_info_type): Likewise.
2476         (struct group_info): Likewise.
2477         (struct deferred_change): Likewise.
2478         (get_group_info): Likewise.
2479         (delete_dead_store_insn): Likewise.
2480         (free_read_records): Likewise.
2481         (replace_read): Likewise.
2482         (check_mem_read_rtx): Likewise.
2483         (scan_insn): Likewise.
2484         (dse_step1): Likewise.
2485         (dse_step7): Likewise.
2486         * et-forest.c (struct et_occ): Remove unused members.
2487         (et_new_occ): Use allocate instead of new operator.
2488         (et_new_tree): Likewise.
2489         (et_free_tree): Call release method explicitly.
2490         (et_free_tree_force): Likewise.
2491         (et_free_pools): Likewise.
2492         (et_split): Use remove instead of delete operator.
2493         * et-forest.h (struct et_node): Remove unused members.
2494         * ipa-cp.c: Change pool_allocator to object_allocator.
2495         * ipa-inline-analysis.c: Likewise.
2496         * ipa-profile.c: Likewise.
2497         * ipa-prop.c: Likewise.
2498         * ipa-prop.h: Likewise.
2499         * ira-build.c (initiate_cost_vectors): Cast return value.
2500         (ira_allocate_cost_vector): Likewise.
2501         * ira-color.c (struct update_cost_record): Remove unused members.
2502         * lra-int.h (struct lra_live_range): Likewise.
2503         (struct lra_copy): Likewise.
2504         (struct lra_insn_reg): Likewise.
2505         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
2506         * lra.c (new_insn_reg): Replace new operator with allocate method.
2507         (free_insn_regs): Same for operator delete.
2508         (finish_insn_regs): Release new static allocator.
2509         (finish_insn_recog_data): Likewise.
2510         (lra_free_copies): Replace delete operator with remove method.
2511         (lra_create_copy): Replace operator new with allocate method.
2512         (invalidate_insn_data_regno_info): Same for remove method.
2513         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
2514         (free_debug_insn_changes): Replace delete operator with remove method.
2515         (replace_oldest_value_reg): Replace operator new with allocate method.
2516         (pass_cprop_hardreg::execute): Release new static variable.
2517         * sched-deps.c (sched_deps_init): Change pool_allocator to
2518         object_allocator.
2519         * sel-sched-ir.c: Likewise.
2520         * sel-sched-ir.h: Likewise.
2521         * stmt.c (expand_case): Likewise.
2522         (expand_sjlj_dispatch_table): Likewise.
2523         * tree-sra.c (struct access): Remove unused members.
2524         (struct assign_link): Likewise.
2525         (sra_deinitialize): Release newly added static pools.
2526         (create_access_1):Replace operator new with allocate method.
2527         (build_accesses_from_assign): Likewise.
2528         (create_artificial_child_access): Likewise.
2529         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
2530         pool_allocator to object_allocator.
2531         * tree-ssa-pre.c: Likewise.
2532         * tree-ssa-reassoc.c: Likewise.
2533         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
2534         * tree-ssa-strlen.c: Likewise.
2535         * tree-ssa-structalias.c: Likewise.
2536         * var-tracking.c (onepart_pool_allocate): New function.
2537         (unshare_variable): Use the newly added function.
2538         (variable_merge_over_cur): Likewise.
2539         (variable_from_dropped): Likewise.
2540         (variable_was_changed): Likewise.
2541         (set_slot_part): Likewise.
2542         (emit_notes_for_differences_1): Likewise.
2543         (vt_finalize): Release newly added static pools.
2545 2015-07-16  Martin Jambor  <mjambor@suse.cz>
2547         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
2548         all uses.  Fix two typos in its general comment.
2549         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
2551 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
2553         * config/i386/linux-common.h (LINK_MPX): New.
2554         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
2555         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
2556         indicating '-z bndplt' support by linker.
2557         * configure: Regenerate.
2558         * config.in: Regenerate.
2560 2015-07-16  Richard Biener  <rguenther@suse.de>
2562         * fold-const.c (fold_widened_comparison): Remove.
2563         (fold_sign_changed_comparison): Likewise.
2564         (fold_comparison): Move widened and sign-changed comparison
2565         simplification ...
2566         * match.pd: ... to patterns here.
2567         * generic-match-head.c: Include target.h.
2568         * gimple-match-head.c: Likewise.
2570 2015-07-16  Richard Biener  <rguenther@suse.de>
2572         * tree-ssa-dom.c (dom_valueize): New function.
2573         (record_temporary_equivalences): Also record equivalences
2574         for dominating stmts that have uses of equivalences we are
2575         about to record.
2577 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
2579         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
2580         add_autoinc_candidates.
2581         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
2582         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
2583         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
2584         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
2585         Call new function.
2586         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
2587         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
2588         Remove parameter struct iv*.  Call add_autoinc_candidates here.
2589         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
2590         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
2591         Call new function.
2592         (find_iv_candidates): Call new functions.
2594 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
2596         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
2597         uninitialized-variable warning.
2599 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2601         PR target/65249
2602         * config/sh/sh.md (movdi): Split simple reg move to two movsi
2603         when the destination is R0.
2605 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
2607         PR target/66866
2608         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
2609         * config/i386/i386.c (ix86_expand_pextr): New function.
2610         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
2611         for non-lowpart subregs.
2612         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
2613         (insv<mode>): Use SWI248 mode iterator.
2614         (insv<mode>_1): Ditto.
2616 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
2617             Sebastian Pop  <s.pop@samsung.com>
2619         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
2620         iterator to use_stmt.
2622 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
2623             Sebastian Pop <s.pop@samsung.com>
2625         * graphite-scop-detection.c (build_scops_1): Discard scops for
2626         which entry==exit.
2628 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
2629             Sebastian Pop <s.pop@samsung.com>
2631         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
2632         case of a return statement in scop.
2634 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
2635             Sebastian Pop <s.pop@samsung.com>
2637         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
2638         INTEGER_TYPE parameters.
2639         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
2640         VECTOR_CST in scan_tree_for_params.
2641         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
2643 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
2645         * gimple-pretty-print.h: Don't include pretty-print.h.
2646         * tree-streamer.h: Don't include lto-streamer.h.
2647         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
2648         * gimple-streamer-in.c: Remove redundant includes.
2649         * gimple-streamer-out.c: Likewise.
2650         * ipa-devirt.c: Likewise.
2651         * ipa-icf.c: Likewise.
2652         * ipa-inline-analysis.c: Likewise.
2653         * ipa-polymorphic-call.c: Likewise.
2654         * ipa-profile.c: Likewise.
2655         * ipa-prop.c: Likewise.
2656         * ipa-pure-const.c: Likewise.
2657         * lto-cgraph.c: Likewise.
2658         * lto-streamer-in.c: Likewise.
2659         * lto-streamer-out.c: Likewise.
2660         * lto-streamer.c: Likewise.
2661         * tree-streamer-in.c: Likewise.
2662         * tree-streamer-out.c: Likewise.
2663         * tree-streamer.c: Likewise.
2665 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
2667         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
2668         include input.h.
2669         * opts.c: Remove multiline #include comment.
2671 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
2673         * config/nvptx/mkoffload.c (process): Add C++ protection to
2674         emitted code.
2676 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2678         PR target/66854
2679         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
2680         null before IEEE 128-bit floating point support patch.
2682 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2684         * simplify-rtx.c (simplify_ternary_operation): Add simplification
2685         for (!c) != {0,...,0} ? a : b for vector modes.
2687 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
2688             Martin Jambor  <mjambor@suse.cz>
2690         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
2691         struct func_body_info* instead of struct ipa_node_params*, expecting
2692         fbi->info to be filled in.  Replace throughout.  Adjust call to
2693         ipa_load_from_parm_agg.
2694         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
2695         instead of struct ipa_node_params*.  Adjust calls to other functions
2696         so that they pass either fbi or fbi->info.
2697         (set_switch_stmt_execution_predicate): Likewise.
2698         (will_be_nonconstant_predicate): Likewise.
2699         (compute_bb_predicates): Likewise.
2700         (estimate_function_body_sizes): Move asserts earlier.  Fill in
2701         struct func_body_info, replace parms_info with fbi.info.  Adjust
2702         calls to functions that now accept struct func_body_info.
2703         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
2704         (struct func_body_info): Likewise.
2705         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
2706         remove static.  Adjust callers.
2707         (ipa_load_from_parm_agg): Remove.
2708         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
2709         (func_body_info): Likewise.
2710         (ipa_load_from_parm_agg): Adjust prototype.
2712 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2714         * gensupport.c (rtx_handle_directive): Adjust.
2715         * read-rtl.c (apply_iterators): Take vector to add rtxs to
2716         instead of expr list rtx.
2717         (add_define_attr_for_define_subst): Likewise.
2718         (add_define_subst_attr): Likewise.
2719         (read_subst_mapping): Likewise.
2720         (read_rtx): Likewise.
2721         * rtl.h (read_rtx): Adjust.
2723 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2725         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
2727 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
2729         PR target/58066
2730         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
2731         (*tls_local_dynamic_base_64_<mode>): Ditto.
2732         (*tls_local_dynamic_base_64_largepic): Ditto.
2733         (tls_global_dynamic_64_<mode>): Update expander pattern.
2734         (tls_local_dynamic_base_64_<mode>): Ditto.
2736 2015-07-15  Richard Biener  <rguenther@suse.de>
2738         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
2739         and bool_var == 1 -> bool_var simplifications ...
2740         * match.pd: ... to patterns here.  Factor out negate_expr_p
2741         cases from the A - B -> A + (-B) patterns as negate_expr_p
2742         predicate and add a -(A + B) -> (-B) - A pattern.
2744 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
2746         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
2748 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
2749             Robert Suchanek  <robert.suchanek@imgtec.com>
2751         * config/mips/mips.c (mips_int_mask): New enum.
2752         (mips_shadow_set): Likewise.
2753         (int_mask): New variable.
2754         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
2755         (machine_function): Add int_mask and use_shadow_register_set.
2756         (mips_attribute_table): Add attribute handlers for interrupt and
2757         use_shadow_register_set.
2758         (mips_interrupt_mask): New static function.
2759         (mips_handle_interrupt_attr): Likewise.
2760         (mips_handle_use_shadow_register_set_attr): Likewise.
2761         (mips_use_shadow_register_set): Change return type to enum
2762         mips_shadow_set.  Add argument handling for use_shadow_register_set
2763         attribute.
2764         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
2765         compare with mips_shadow_set enum.
2766         (mips_compute_frame_info): Add interrupt mask and
2767         use_shadow_register_set to per-function information structure.
2768         Add a stack slot for EPC unconditionally.
2769         (mips_expand_prologue): Compare use_shadow_register_set value
2770         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
2771         masked interrupt register but in EIC mode use K0 and save Cause in K0.
2772         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
2773         copying the stack pointer from the shadow register set.
2774         * config/mips/mips.h (SR_IM0): New define.
2775         * config/mips/mips.md (mips_rdpgpr): Rename to...
2776         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
2777         * doc/extend.texi (Declaring Attributes of Functions): Document
2778         optional arguments for interrupt and use_shadow_register_set
2779         attributes.
2781 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
2783         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
2784         interrupt attribute.
2785         (mips_expand_prologue): Disable the floating point unit in an ISR.
2786         * config/mips/mips.h (SR_COP1): New define.
2788 2015-07-15  Richard Biener  <rguenther@suse.de>
2790         * genmatch.c (parser::peek, parser::peek_ident): Add argument
2791         to tell how many tokens to peek ahead (default 1).
2792         (parser::eat_token, parser::eat_ident): Return token consumed.
2793         (parser::parse_result): Parse new switch statement.
2794         * match.pd: Use case statements where appropriate.
2796 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
2798         PR rtl-optimization/58066
2799         * calls.c (expand_call): Precompute register parameters before stack
2800         alignment is performed.
2802 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
2804         PR rtl-optimization/66838
2805         * postreload.c (reload_cse_move2add): Also process
2806         CALL_INSN_FUNCTION_USAGE when resetting information of
2807         call-clobbered registers.
2809 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2810             Cesar Philippidis  <cesar@codesourcery.com>
2811             Chung-Lin Tang  <cltang@codesourcery.com>
2813         * config/nios2/constraints.md (U, v): New constraints.
2814         * config/nios2/predicates.md (rdprs_dcache_operand): New.
2815         (ldstex_memory_operand): New.
2816         * config/nios2/sync.md: New file.
2817         * config/nios2/nios2.md (unspecv): Add new builtin function
2818         UNSPECV codes.
2819         (rdprs, flushd, flushda, wrpie, eni): New patterns.
2820         (top-level): Include sync.md.
2821         * config/nios2/nios2.c (N2_FTYPES): Add function types for
2822         new builtins.
2823         (N2_BUILTINS): Add arch field setting, add new builtins.
2824         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
2825         for arch field.
2826         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
2827         Also handle ldex/stex/ldsex/stsex builtins.
2828         (nios2_expand_rdprs_builtin): New function.
2829         (nios2_expand_cache_builtin): New function.
2830         (nios2_expand_wrpie_builtin): New function.
2831         (nios2_expand_eni_builtin): New function.
2832         (nios2_expand_builtin): Add arch field handling and new builtin
2833         cases.
2834         * doc/extend.texi (Altera Nios II Built-in Functions): Document
2835         new builtins.
2836         * doc/md.texi (Machine Constraints): Document U and v constraints.
2838 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2839             Cesar Philippidis  <cesar@codesourcery.com>
2840             Chung-Lin Tang  <cltang@codesourcery.com>
2842         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
2843         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
2844         callee_save_reg_size and uses_anonymous_args fields.
2845         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
2846         (nios2_create_cfa_notes): New function.
2847         (nios2_adjust_stack): New function for adjusting stack.
2848         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
2849         Use nios2_adjust_stack.
2850         (nios2_expand_epilogue): Likewise.
2851         (nios2_expand_return): New function.
2852         (nios2_can_use_return_insn): Update for CDX pop.n usage.
2853         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
2854         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
2855         * config/nios2/nios2.md (return): Use nios2_expand_return.
2857 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2858             Cesar Philippidis  <cesar@codesourcery.com>
2859             Chung-Lin Tang  <cltang@codesourcery.com>
2861         * config/nios2/predicates.md (pop_operation): New.
2862         (ldwm_operation, stwm_operation): New.
2863         (nios2_hard_register_operand): New.
2864         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
2865         (ldstwm_operation_p): Declare.
2866         (gen_ldstwm_peep): Declare.
2867         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
2868         (base_reg_adjustment_p): New.
2869         (pop_operation_p): New.
2870         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
2871         (nios2_ldstwm_regset_p): New.
2872         (ldstwm_operation_p): New.
2873         (gen_ldst): New.
2874         (nios2_ldst_parallel): New.
2875         (struct ldswm_operand): Declare.
2876         (compare_ldstwm_operands): New.
2877         (can_use_cdx_ldstw): New.
2878         (gen_ldstwm_peep): New.
2879         * config/nios2/nios2-ldstwm.sml: New.
2880         * config/nios2/nios2.md: Include ldstwm.md.
2881         * config/nios2/ldstwm.md: Generated.
2883 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2884             Cesar Philippidis  <cesar@codesourcery.com>
2885             Chung-Lin Tang  <cltang@codesourcery.com>
2887         * config/nios2/nios2.h (LABEL_ALIGN): Define.
2888         (REG_ALLOC_ORDER): Define.
2889         (ADJUST_REG_ALLOC_ORDER): Define.
2890         (HONOR_REG_ALLOC_ORDER): Define.
2891         (CDX_REG_P): Define.
2892         (ANDCLEAR_INT): Define.
2893         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
2894         (nios2_label_align): Declare.
2895         (nios2_cdx_narrow_form_p): Declare.
2896         (nios2_adjust_reg_alloc_order): Declare.
2897         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
2898         operation.
2899         (nios2_large_unspec_reloc_p): New function, split from...
2900         (nios2_legitimate_pic_operand_p): ...here.
2901         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
2902         (nios2_print_operand_punct_valid_p): New.
2903         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
2904         (split_mem_address): New.
2905         (split_alu_insn): New.
2906         (cdxreg): New.
2907         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
2908         (enum nios2_add_insn_kind): New.
2909         (nios2_add_insn_names, nios2_add_insn_narrow): New.
2910         (nios2_add_insn_classify): New.
2911         (nios2_add_insn_asm): New.
2912         (nios2_cdx_narrow_form_p): New.
2913         (label_align, min_labelno, max_labelno): New.
2914         (nios2_reorg): New.
2915         (nios2_label_align): New.
2916         (nios2_adjust_reg_alloc_order): New.
2917         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2918         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2919         * config/nios2/constraints.md (P): New constraint.
2920         * config/nios2/predicates.md (const_and_operand): New.
2921         (and_operand): New.
2922         (stack_memory_operand): New.
2923         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
2924         (length): Update to use nios2_cdx_narrow_form_p().
2925         (type): Add new insn type values.
2926         (control, alu, st, ld, shift): Update insn reservations with
2927         new insn type values.
2928         (*high, *lo_sum): Define new insn patterns for constant generation.
2929         (movqi_internal, movhi_internal, movsi_internal): Reduce
2930         alternatives, update asm template to handle CDX variants, update
2931         type attributes.
2932         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
2933         template, update type attributes.
2934         (extendhisi2, extendqi<mode>2): Likewise.
2935         (addsi3): Change to use function for asm string.
2936         (subsi3): Add CDX notation to asm template, update type attributes.
2937         (negsi3, one_cmplsi3): Likewise.
2938         (andsi3): New pattern, specialized from logical patterns.
2939         (<code>si3): Remove and case, combine alternatives, update asm
2940         template.
2941         (<shift_op>si3): Add CDX notation, update type attributes.
2942         (rotrsi3): Update type attribute.
2943         (*merge, extzv, insv): New insn patterns.
2944         (return): Change to define_expand.
2945         (simple_return): Add CDX notation, update type attributes.
2946         (indirect_jump): Add CDX notation.
2947         (jump): Update asm cases, update length attribute expression.
2948         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
2949         (nios2_cbranch): Update asm cases and length attribute expression
2950         to handle CDX variants.
2951         (nios2_cmp<code>): Update asm template.
2952         (nop): Add CDX notation, update type attributes.
2953         (trap): Add CDX notation.
2954         (ctrapsi4): Update asm cases and length attribute expression to
2955         handle CDX variant.
2956         * doc/md.texi (Machine Constraints): Document P constraint.
2958 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2959             Cesar Philippidis  <cesar@codesourcery.com>
2960             Chung-Lin Tang  <cltang@codesourcery.com>
2962         * config/nios2/nios2.h (SMALL_INT12): New macro.
2963         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
2964         (nios2_valid_addr_expr_p): Use it.
2965         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
2966         with implicit "io" instructions on R2.
2967         * config/nios2/constraints.md (w): New constraint.
2968         * config/nios2/predicates.md (ldstio_memory_operand): New.
2969         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
2970         operand predicate and constraint.
2971         (ld<bh>io_signed, st<bhw>io>): Likewise.
2972         * doc/md.texi (Machine Constraints): Document w constraint.
2974 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2975             Cesar Philippidis  <cesar@codesourcery.com>
2976             Chung-Lin Tang  <cltang@codesourcery.com>
2978         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
2979         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
2980         Nios II architecture level.
2981         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
2982         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
2983         (OPTION_DEFAULT_SPECS): Define.
2984         (ASM_SPEC): Add -march= spec strings.
2985         * config/nios2/nios2.c (nios2_option_override): Check for
2986         conflicts involving new options.
2987         * config.gcc (nios2*-*-*): Support --with-arch=.
2988         * doc/invoke.texi (Option Summary, Nios II Options): Document
2989         -march=, -mbmx, and -mcdx.
2991 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
2993         PR rtl-optimization/66626
2994         * lra-constraints.c (lra_constraints): Prevent equivalence
2995         substitution for static chain pseudo in functions with nonlocal
2996         goto.
2998 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3000         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
3001         (nios2_emit_stack_limit_check): Add size parameter.  Handle
3002         -fstack-limit-symbol as well as -fstack-limit-register.
3003         (nios2_expand_prologue): Emit only a single stack limit check,
3004         even if multiple stack adjustments are required.
3005         (nios2_option_override): Diagnose unsupported combination of -fpic
3006         and -stack-limit-symbol.
3008 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
3010         * Makefile.in (top_srcdir): New.
3011         * configure.ac: Use AM_ZLIB.
3012         * configure: Regeneated.
3014 2015-07-14  Matthias Klose  <doko@ubuntu.com>
3016         PR target/66840
3017         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
3019 2015-07-14  Richard Biener  <rguenther@suse.de>
3021         PR tree-optimization/66863
3022         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
3023         what we record for conversion use stmt lhs inequalities.
3025 2015-07-14  Richard Biener  <rguenther@suse.de>
3027         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
3028         (decision_tree::gen_gimple): Likewise.
3030 2015-07-14  Tom de Vries  <tom@codesourcery.com>
3032         * gcc.c (greater_than_spec_func): Declare forward.
3033         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
3034         -ftree-parallelize-loops={0,1}.
3035         (static_spec_functions): Add greater_than_spec_func function with name
3036         "gt".
3037         (greater_than_spec_func): New function.
3039 2015-07-14  Richard Biener  <rguenther@suse.de>
3041         * tree-ssa-dom.c (record_temporary_equivalences): Merge
3042         wideing type conversion case from record_equivalences_from_incoming_edge
3043         and use record_equality to record equivalences.
3044         (record_equivalences_from_incoming_edge): Call
3045         record_temporary_equivalences.
3047 2015-07-14  Richard Biener  <rguenther@suse.de>
3049         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
3050         (struct if_expr): New.
3051         (struct with_expr): Likewise.
3052         (is_a_helper): Add helpers for if_expr and with_expr.
3053         (struct simplify): Add simplify_kind enum and member.  Remove
3054         ifexpr_vec member.
3055         (simplify::simplify): Adjust.
3056         (lower_commutative): Adjust.
3057         (lower_opt_convert): Likewise.
3058         (lower_cond): Likewise.
3059         (replace_id): Handle with_expr and if_expr.
3060         (lower_for): Adjust.
3061         (dt_simplify::gen_1): New recursive worker, split out from ...
3062         (dt_simplify::gen): ... here.  Deal with if and with expansion
3063         recursively.
3064         (capture_info::capture_info): Take context argument
3065         (capture_info::walk_result): Only analyze specific result.
3066         (parser::parse_result): New function.
3067         (parser::parse_simplify): Adjust to parse ifs with then end
3068         else case.
3069         (parser::parse_if): Simplify.
3070         (parser::parse_pattern): Pass down simplify kind.
3071         * match.pd: Convert if structure to new syntax.
3073 2015-07-13  Marek Polacek  <polacek@redhat.com>
3075         * rtl.c (rtx_equal_p_cb): Fix typo.
3077 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
3079         * omega.h: Don't include config.h, don't include params.h again if
3080         omega.h has already been included.
3081         * graphite-poly.h: Include sese.h.
3082         * graphite.c: Don't include sese.h, remove needless includes and
3083         minimize includes outside #ifdef HAVE_isl block.
3084         * graphite-blocking.c: Don't include sese.h, remove needless includes,
3085         and wrap entire file in #ifdef HAVE_isl
3086         * graphite-dependences.c: Likewise.
3087         * graphite-interchange.c: Likewise.
3088         * graphite-isl-ast-to-gimple.c: Likewise.
3089         * graphite-optimize-isl.c: Likewise.
3090         * graphite-poly.c: Likewise.
3091         * graphite-scop-detection.c: Likewise.
3092         * graphite-sese-to-poly.c: Likewise.
3094 2015-07-13  Tom de Vries  <tom@codesourcery.com>
3096         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
3098 2015-07-13  Renlin Li  <renlin.li@arm.com>
3100         PR rtl/66556
3101         * simplify-rtx.c (simplify_const_relational_operation): Add
3102         side_effects_p checks.
3104 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
3106         * bitmap.h: Fix double word typos.
3107         * builtins.c: Same.
3108         * calls.c: Same.
3109         * cfgloopmanip.c: Same.
3110         * cgraph.c: Same.
3111         * cgraph.h: Same.
3112         * cgraphclones.c: Same.
3113         * combine.c: Same.
3114         * config/aarch64/aarch64-protos.h: Same.
3115         * config/aarch64/aarch64.c: Same.
3116         * config/aarch64/aarch64.md: Same.
3117         * config/arm/arm.md: Same.
3118         * config/arm/arm1020e.md: Same.
3119         * config/arm/arm1026ejs.md: Same.
3120         * config/arm/arm926ejs.md: Same.
3121         * config/arm/fa526.md: Same.
3122         * config/arm/fa606te.md: Same.
3123         * config/arm/fa626te.md: Same.
3124         * config/arm/fa726te.md: Same.
3125         * config/arm/fmp626.md: Same.
3126         * config/darwin.c: Same.
3127         * config/epiphany/epiphany.c: Same.
3128         * config/frv/frv.c: Same.
3129         * config/ft32/ft32.c: Same.
3130         * config/gnu-user.h: Same.
3131         * config/h8300/constraints.md: Same.
3132         * config/i386/i386.c: Same.
3133         * config/i386/i386.md: Same.
3134         * config/iq2000/iq2000.md: Same.
3135         * config/mips/mips.c: Same.
3136         * config/mmix/mmix.md: Same.
3137         * config/moxie/moxie.c: Same.
3138         * config/nds32/nds32.md: Same.
3139         * config/pa/pa.h: Same.
3140         * config/rs6000/aix.h: Same.
3141         * config/rs6000/rs6000.h: Same.
3142         * config/sh/sh.c: Same.
3143         * config/tilegx/tilegx.md: Same.
3144         * config/tilepro/gen-mul-tables.cc: Same.
3145         * cse.c: Same.
3146         * dbxout.c: Same.
3147         * doc/invoke.texi: Same.
3148         * dse.c: Same.
3149         * dwarf2out.c: Same.
3150         * final.c: Same.
3151         * gcc.c: Same.
3152         * genmatch.c: Same.
3153         * gimplify.c: Same.
3154         * hash-table.h: Same.
3155         * internal-fn.c: Same.
3156         * ipa-cp.c: Same.
3157         * ipa-devirt.c: Same.
3158         * ipa-icf.c: Same.
3159         * ipa-icf.h: Same.
3160         * ipa-profile.c: Same.
3161         * ipa-prop.c: Same.
3162         * ipa-prop.h: Same.
3163         * ira.c: Same.
3164         * omp-low.c: Same.
3165         * reg-stack.c: Same.
3166         * regcprop.c: Same.
3167         * reorg.c: Same.
3168         * rtl.h: Same.
3169         * sbitmap.h: Same.
3170         * tree-eh.c: Same.
3171         * tree-inline.c: Same.
3172         * tree-sra.c: Same.
3173         * tree-ssa-dom.c: Same.
3174         * tree-ssa-loop-ivopts.c: Same.
3175         * tree-ssa-structalias.c: Same.
3176         * tree-ssa-tail-merge.c: Same.
3177         * tree-ssa-ter.c: Same.
3178         * tree-ssa-threadupdate.c: Same.
3179         * tree-ssa-uninit.c: Same.
3180         * tree-ssanames.c: Same.
3181         * tree-vect-loop-manip.c: Same.
3182         * tree-vrp.c: Same.
3183         * tree.c: Same.
3184         * valtrack.c: Same.
3185         * vec.h: Same.
3187 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3189         PR middle-end/66726
3190         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
3191         tree_ssa_phiopt_worker): Call it.
3193 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3195         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
3196         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
3197         REG_EQUAL note.
3199 2015-07-11  Marek Polacek  <polacek@redhat.com>
3201         PR middle-end/66353
3202         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
3203         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
3204         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
3205         rather than bb_has_abnormal_call_pred.
3206         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
3207         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
3208         rather than bb_has_abnormal_call_pred.
3210 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
3212         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3213         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
3214         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3215         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
3216         v850_legitimate_address_p): New functions.
3217         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3219 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
3221         PR target/66819
3222         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
3223         indirect sibcall with register arguments if register available
3224         for argument passing.
3225         (init_cumulative_args): Set cfun->machine->arg_reg_available
3226         to (cum->nregs > 0) or to true if function has a variable
3227         argument list.
3228         (function_arg_advance_32): Set cfun->machine->arg_reg_available
3229         to false if cum->nregs <= 0.
3230         * config/i386/i386.h (machine_function): Add arg_reg_available.
3232 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
3234         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
3235         and gen_higpart instead of gen_rtx_SUBREG.
3236         * config/i386/i386.md
3237         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
3238         (read-modify peephole2): Use gen_lowpart instead of
3239         gen_rtx_SUBREG for operand 5.
3241 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
3243         * config/tilepro/gen-mul-tables.cc (main): Change include list for
3244         generated files.
3245         * config/tilepro/mul-tables.c: Regenerate.
3246         * config/tilegx/mul-tables.c: Regenerate.
3248 2015-07-10  Richard Biener  <rguenther@suse.de>
3250         * fold-const.c (distribute_bit_expr): Remove.
3251         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
3252         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
3253         to A & (B | C) and simplifying A << C1 << C2 to ...
3254         * match.pd: ... patterns here.
3256 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
3258         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3259         Mark mem as READONLY and NOTRAP for PIC symbol.
3261 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
3263         * gimple-predict.h: New file.
3264         (gimple_predict_predictor, gimple_predict_set_predictor,
3265         gimple_predict_outcome, gimple_predict_set_outcome,
3266         gimple_build_predict): Relocate here.
3267         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
3268         gimple_predict_outcome, gimple_predict_set_outcome): Move to
3269         gimple-predict.h.
3270         * gimple.c (gimple_build_predict): Move to gimple-predict.h
3271         * basic-block.h: Don't include cfghooks.h.
3272         * backend.h: Don't include predict.h.
3273         * cfghooks.h: Include predict.h.
3274         * gimple-pretty-print.c: Include gimple-predict.h.
3275         * gimplify.c: Likwise.
3276         * predict.c: Adjust includes.
3277         * tree-inline.c: Likewise.
3278         * asan.c: Likewise.
3279         * auto-inc-dec.c: Likewise.
3280         * auto-profile.c: Likewise.
3281         * bb-reorder.c: Likewise.
3282         * builtins.c: Likewise.
3283         * caller-save.c: Likewise.
3284         * calls.c: Likewise.
3285         * cfganal.c: Likewise.
3286         * cfgbuild.c: Likewise.
3287         * cfg.c: Likewise.
3288         * cfgcleanup.c: Likewise.
3289         * cfgexpand.c: Likewise.
3290         * cfghooks.c: Likewise.
3291         * cfgloopanal.c: Likewise.
3292         * cfgloop.c: Likewise.
3293         * cfgloopmanip.c: Likewise.
3294         * cfgrtl.c: Likewise.
3295         * cgraph.c: Likewise.
3296         * cgraphunit.c: Likewise.
3297         * combine.c: Likewise.
3298         * cprop.c: Likewise.
3299         * cse.c: Likewise.
3300         * dce.c: Likewise.
3301         * dojump.c: Likewise.
3302         * dse.c: Likewise.
3303         * except.c: Likewise.
3304         * expmed.c: Likewise.
3305         * expr.c: Likewise.
3306         * final.c: Likewise.
3307         * fold-const.c: Likewise.
3308         * function.c: Likewise.
3309         * fwprop.c: Likewise.
3310         * gcc-plugin.h: Likewise.
3311         * gcse.c: Likewise.
3312         * genattrtab.c: Likewise.
3313         * genemit.c: Likewise.
3314         * gengtype.c: Likewise.
3315         * genopinit.c: Likewise.
3316         * genoutput.c: Likewise.
3317         * genpreds.c: Likewise.
3318         * genrecog.c: Likewise.
3319         * gimple-fold.c: Likewise.
3320         * gimple-iterator.c: Likewise.
3321         * gimple-ssa-isolate-paths.c: Likewise.
3322         * gimple-ssa-strength-reduction.c: Likewise.
3323         * graph.c: Likewise.
3324         * graphite-blocking.c: Likewise.
3325         * graphite.c: Likewise.
3326         * graphite-dependences.c: Likewise.
3327         * graphite-interchange.c: Likewise.
3328         * graphite-isl-ast-to-gimple.c: Likewise.
3329         * graphite-optimize-isl.c: Likewise.
3330         * graphite-poly.c: Likewise.
3331         * graphite-scop-detection.c: Likewise.
3332         * graphite-sese-to-poly.c: Likewise.
3333         * haifa-sched.c: Likewise.
3334         * ifcvt.c: Likewise.
3335         * internal-fn.c: Likewise.
3336         * ipa-cp.c: Likewise.
3337         * ipa-profile.c: Likewise.
3338         * ipa-split.c: Likewise.
3339         * ipa-utils.c: Likewise.
3340         * ira-build.c: Likewise.
3341         * ira-color.c: Likewise.
3342         * ira-conflicts.c: Likewise.
3343         * ira-costs.c: Likewise.
3344         * ira-emit.c: Likewise.
3345         * ira-lives.c: Likewise.
3346         * jump.c: Likewise.
3347         * loop-doloop.c: Likewise.
3348         * loop-init.c: Likewise.
3349         * loop-invariant.c: Likewise.
3350         * loop-unroll.c: Likewise.
3351         * lower-subreg.c: Likewise.
3352         * lra-assigns.c: Likewise.
3353         * lra.c: Likewise.
3354         * lra-coalesce.c: Likewise.
3355         * lra-constraints.c: Likewise.
3356         * lra-lives.c: Likewise.
3357         * lto-cgraph.c: Likewise.
3358         * lto-streamer-in.c: Likewise.
3359         * mode-switching.c: Likewise.
3360         * modulo-sched.c: Likewise.
3361         * omp-low.c: Likewise.
3362         * optabs.c: Likewise.
3363         * passes.c: Likewise.
3364         * postreload.c: Likewise.
3365         * postreload-gcse.c: Likewise.
3366         * profile.c: Likewise.
3367         * recog.c: Likewise.
3368         * regstat.c: Likewise.
3369         * reload1.c: Likewise.
3370         * reorg.c: Likewise.
3371         * rtlanal.c: Likewise.
3372         * sched-ebb.c: Likewise.
3373         * sel-sched-ir.c: Likewise.
3374         * sese.c: Likewise.
3375         * shrink-wrap.c: Likewise.
3376         * simplify-rtx.c: Likewise.
3377         * stmt.c: Likewise.
3378         * store-motion.c: Likewise.
3379         * tracer.c: Likewise.
3380         * trans-mem.c: Likewise.
3381         * tree-call-cdce.c: Likewise.
3382         * tree-cfg.c: Likewise.
3383         * tree-cfgcleanup.c: Likewise.
3384         * tree-chkp.c: Likewise.
3385         * tree-complex.c: Likewise.
3386         * tree-eh.c: Likewise.
3387         * tree-if-conv.c: Likewise.
3388         * tree-loop-distribution.c: Likewise.
3389         * tree-outof-ssa.c: Likewise.
3390         * tree-parloops.c: Likewise.
3391         * tree-predcom.c: Likewise.
3392         * tree-pretty-print.c: Likewise.
3393         * tree-profile.c: Likewise.
3394         * tree-sra.c: Likewise.
3395         * tree-ssa.c: Likewise.
3396         * tree-ssa-coalesce.c: Likewise.
3397         * tree-ssa-dce.c: Likewise.
3398         * tree-ssa-dom.c: Likewise.
3399         * tree-ssa-forwprop.c: Likewise.
3400         * tree-ssa-ifcombine.c: Likewise.
3401         * tree-ssa-loop-ch.c: Likewise.
3402         * tree-ssa-loop-im.c: Likewise.
3403         * tree-ssa-loop-ivcanon.c: Likewise.
3404         * tree-ssa-loop-ivopts.c: Likewise.
3405         * tree-ssa-loop-manip.c: Likewise.
3406         * tree-ssa-loop-prefetch.c: Likewise.
3407         * tree-ssa-loop-unswitch.c: Likewise.
3408         * tree-ssa-math-opts.c: Likewise.
3409         * tree-ssa-phiopt.c: Likewise.
3410         * tree-ssa-pre.c: Likewise.
3411         * tree-ssa-reassoc.c: Likewise.
3412         * tree-ssa-sink.c: Likewise.
3413         * tree-ssa-tail-merge.c: Likewise.
3414         * tree-ssa-threadedge.c: Likewise.
3415         * tree-ssa-threadupdate.c: Likewise.
3416         * tree-switch-conversion.c: Likewise.
3417         * tree-tailcall.c: Likewise.
3418         * tree-vect-data-refs.c: Likewise.
3419         * tree-vect-loop.c: Likewise.
3420         * tree-vect-loop-manip.c: Likewise.
3421         * tree-vectorizer.c: Likewise.
3422         * tree-vrp.c: Likewise.
3423         * ubsan.c: Likewise.
3424         * value-prof.c: Likewise.
3425         * varasm.c: Likewise.
3426         * var-tracking.c: Likewise.
3427         * config/aarch64/aarch64-builtins.c: Likewise.
3428         * config/aarch64/aarch64.c: Likewise.
3429         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3430         * config/alpha/alpha.c: Likewise.
3431         * config/arc/arc.c: Likewise.
3432         * config/arm/arm.c: Likewise.
3433         * config/avr/avr.c: Likewise.
3434         * config/bfin/bfin.c: Likewise.
3435         * config/c6x/c6x.c: Likewise.
3436         * config/cr16/cr16.c: Likewise.
3437         * config/cris/cris.c: Likewise.
3438         * config/darwin.c: Likewise.
3439         * config/darwin-c.c: Likewise.
3440         * config/epiphany/epiphany.c: Likewise.
3441         * config/epiphany/mode-switch-use.c: Likewise.
3442         * config/epiphany/resolve-sw-modes.c: Likewise.
3443         * config/fr30/fr30.c: Likewise.
3444         * config/frv/frv.c: Likewise.
3445         * config/ft32/ft32.c: Likewise.
3446         * config/h8300/h8300.c: Likewise.
3447         * config/i386/i386.c: Likewise.
3448         * config/i386/winnt.c: Likewise.
3449         * config/ia64/ia64.c: Likewise.
3450         * config/iq2000/iq2000.c: Likewise.
3451         * config/lm32/lm32.c: Likewise.
3452         * config/m32c/m32c.c: Likewise.
3453         * config/m32r/m32r.c: Likewise.
3454         * config/m68k/m68k.c: Likewise.
3455         * config/mcore/mcore.c: Likewise.
3456         * config/mep/mep.c: Likewise.
3457         * config/microblaze/microblaze.c: Likewise.
3458         * config/mips/mips.c: Likewise.
3459         * config/mmix/mmix.c: Likewise.
3460         * config/mn10300/mn10300.c: Likewise.
3461         * config/moxie/moxie.c: Likewise.
3462         * config/msp430/msp430.c: Likewise.
3463         * config/nds32/nds32.c: Likewise.
3464         * config/nds32/nds32-cost.c: Likewise.
3465         * config/nds32/nds32-fp-as-gp.c: Likewise.
3466         * config/nds32/nds32-intrinsic.c: Likewise.
3467         * config/nds32/nds32-isr.c: Likewise.
3468         * config/nds32/nds32-md-auxiliary.c: Likewise.
3469         * config/nds32/nds32-memory-manipulation.c: Likewise.
3470         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3471         * config/nds32/nds32-predicates.c: Likewise.
3472         * config/nios2/nios2.c: Likewise.
3473         * config/nvptx/nvptx.c: Likewise.
3474         * config/pa/pa.c: Likewise.
3475         * config/pdp11/pdp11.c: Likewise.
3476         * config/rl78/rl78.c: Likewise.
3477         * config/rs6000/rs6000.c: Likewise.
3478         * config/rx/rx.c: Likewise.
3479         * config/s390/s390.c: Likewise.
3480         * config/sh/sh.c: Likewise.
3481         * config/sh/sh-mem.cc: Likewise.
3482         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3483         * config/sh/sh_treg_combine.cc: Likewise.
3484         * config/sparc/sparc.c: Likewise.
3485         * config/spu/spu.c: Likewise.
3486         * config/stormy16/stormy16.c: Likewise.
3487         * config/tilegx/tilegx.c: Likewise.
3488         * config/tilepro/tilepro.c: Likewise.
3489         * config/v850/v850.c: Likewise.
3490         * config/vax/vax.c: Likewise.
3491         * config/visium/visium.c: Likewise.
3492         * config/xtensa/xtensa.c: Likewise.
3494 2015-07-10  Richard Biener  <rguenther@suse.de>
3496         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
3497         (decision_tree::gen_gimple): Likewise.
3498         (decision_tree::gen_generic): Likewise.
3500 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
3502         PR target/66813
3503         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
3504         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
3506 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
3508         PR middle-end/66820
3509         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
3510         or ORT_TASK contexts.
3511         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
3512         is non-zero.
3514 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3516         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
3517         above function.
3519 2015-07-10  Tom de Vries  <tom@codesourcery.com>
3521         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
3522         insert nit + 1 bound.
3524 2015-07-10  Richard Biener  <rguenther@suse.de>
3526         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
3527         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
3528         (if_convertible_loop_p_1): For this always compute bb predicates.
3529         (if_convertible_loop_p): And free them.
3531 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3533         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
3534         in dump message.
3536 2015-07-10  Richard Biener  <rguenther@suse.de>
3538         PR tree-optimization/66823
3539         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
3540         inverted predicate.
3542 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
3544         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
3545         to handle mips[32|64]r3 and mips[32|64]r5.
3547 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
3549         PR middle-end/66633
3550         * tree-nested.c (get_static_chain): Or in a flag into
3551         info->static_chain_added.
3552         (get_frame_field, get_nonlocal_debug_decl): Likewise.
3553         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
3554         2015-07-01 changes.
3555         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
3556         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
3557         add it to clauses.
3559         PR tree-optimization/66718
3560         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
3561         field.
3562         (vect_simd_lane_linear): New function.
3563         (vectorizable_simd_clone_call): Support using linear arguments for
3564         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
3566 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3568         PR target/66821
3569         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
3571 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3573         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
3574         Use machine mode, not enum machine_mode in the prototype.
3576         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
3577         classify 128-bit floating point support.
3578         (FLOAT128_IBM_P): Likewise.
3579         (FLOAT128_VECTOR_P): Likewise.
3580         (FLOAT128_2REG_P): Likewise.
3581         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
3582         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
3583         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3584         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
3586         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
3587         tests against TFmode/TDmode, since those modes do not use VSX
3588         addresses.
3589         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
3590         support.
3591         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
3592         tests against TFmode, etc.
3593         (invalid_e500_subreg): Add tests against IFmode/KFmode.
3594         (reg_offset_addressing_ok_p): Likewise.
3595         (rs6000_legitimate_offset_address_p): Likewise.
3596         (rs6000_legitimize_address): Likewise.
3597         (rs6000_legitimize_reload_address): Likewise.
3598         (rs6000_legitimate_address_p): Clean up tests against TFmode and
3599         TDmode to use the new helper macros, which will include IFmode and
3600         KFmode.
3601         (rs6000_emit_move): Likewise.
3602         (rs6000_darwin64_record_arg_recurse): Likewise.
3603         (print_operand): Likewise.
3604         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
3605         that uses a single vector register as a vector and not as a
3606         floating point register in terms of the calling sequence.
3607         (rs6000_discover_homogeneous_aggregate): Likewise.
3608         (rs6000_return_in_memory): Likewise.
3609         (init_cumulative_args): Likewise.
3610         (rs6000_function_arg_boundary): Likewise.
3611         (rs6000_function_arg_advance_1): Likewise.
3612         (rs6000_function_arg): Likewise.
3613         (rs6000_pass_by_reference): Likewise.
3614         (rs6000_gimplify_va_arg): Likewise.
3615         (rs6000_secondary_reload_memory): Use machine_mode not enum
3616         machine mode.
3617         (rs6000_split_multireg_move): Use new helper macros.
3618         (spe_func_has_64bit_regs_p): Likewise.
3619         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
3620         (output_toc): Use new helper macros.
3621         (rs6000_register_move_cost): Likewise.
3622         (rs6000_function_value): Add IEEE 128-bit floating point calling
3623         sequence support.
3624         (rs6000_libcall_value): Likewise.
3625         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
3626         floating point support.
3627         (rs6000_vector_mode_supported_p): Likewise.
3629 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
3631         PR rtl-optimization/66782
3632         * lra-int.h (struct lra_insn_recog_data): Add comment about
3633         clobbered hard regs for arg_hard_regs.
3634         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
3635         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
3636         Add condition for processing used hard regs.
3637         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
3638         Process clobbered hard regs.
3640 2015-07-09  Michael Matz  <matz@suse.de>
3642         * genmatch.c (fprintf_indent): New function.
3643         (operand::gen_transform): Add indent parameter.
3644         (expr::gen_transform, c_expr::gen_transform,
3645         capture::gen_transform): Ditto and use fprintf_indent.
3646         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
3647         (dt_operand::gen, dt_operand::gen_predicate,
3648         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
3649         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
3650         (decision_tree::gen_gimple): Adjust calls and indent generated
3651         code.
3652         (decision_tree::gen_generic): Ditto.
3653         (write_predicate): Ditto.
3655 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
3657         PR target/66814
3658         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
3659         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
3660         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
3661         {GENERAL,SSE,MMX}_REG_P where appropriate.
3663 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
3665         * lto-streamer.h: Don't include target.h and alloc-pool.h.
3666         * builtins.c: Adjust includes.
3667         * gimple.c: Likewise.
3668         * ipa-icf.c: Likewise.
3669         * lto-opts.c: Likewise.
3670         * ipa-reference.c: Likewise.
3671         * lto-section-out.c: Likewise.
3672         * lto-streamer-in.c: Likewise.
3673         * lto-streamer-out.c: Likewise.
3674         * opts-global.c: Likewise.
3675         * symtab.c: Likewise.
3676         * tree-chkp.c: Likewise.
3677         * tree-ssa-live.c: Likewise.
3678         * tree-streamer-in.c: Likewise.
3679         * tree-streamer-out.c: Likewise.
3680         * config/darwin.c: Likewise.
3681         * config/i386/winnt.c: Likewise.
3683 2015-07-09  Richard Biener  <rguenther@suse.de>
3685         * genmatch.c (struct expr): Add force_single_use flag.
3686         (expr::expr): Add copy constructor.
3687         (capture_info::walk_match): Gather force_single_use captures.
3688         (expr::gen_transform): Use possibly NULLified sequence.
3689         (dt_simplify::gen): Apply single-use restrictions by NULLifying
3690         seq if any constrained expr is not single-use.
3691         (parser::parse_expr): Refactor to allow multiple flags.  Handle
3692         's' flag to force an expression have a single-use if the pattern
3693         simplifies to more than one statement.
3694         * match.pd: Convert most single_use conditionals to :s flags.
3696 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3698         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
3699         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3700         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3702 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
3704         * flags.h: Don't include flag-types.h or options.h.
3705         * opts-common.c: Adjust includes.
3706         * opts-global.c: Likewise.
3707         * common/config/epiphany/epiphany-common.c: Likewise.
3709 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3711         PR target/66818
3712         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
3713         for IA MCU.
3715 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3717         PR target/66817
3718         * config/i386/i386.c (ix86_return_in_memory): Return true
3719         if int_size_in_bytes returns negative for IA MCU.
3721 2015-07-09  Marek Polacek  <polacek@redhat.com>
3723         PR tree-optimization/66718
3724         * Makefile.in (OBJS): Add gimple-laddress.o.
3725         * passes.def: Schedule pass_laddress.
3726         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
3727         * tree-pass.h (make_pass_laddress): Declare.
3728         * gimple-laddress.c: New file.
3730 2015-07-09  Richard Biener  <rguenther@suse.de>
3732         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
3734 2015-07-09  Richard Biener  <rguenther@suse.de>
3736         PR tree-optimization/66807
3737         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
3739 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
3741         * function.c (stack_protect_epilogue): Use if rather than switch for
3742         check targetm.have_stack_protect_test.
3744 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3746         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
3747         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
3748         * config/arc/arc.h: Likewise.
3749         * config/arm/arm.h: Likewise.
3750         * config/bfin/bfin.h: Likewise.
3751         * config/epiphany/epiphany.h: Likewise.
3752         * config/frv/frv.h: Likewise.
3753         * config/ia64/ia64.h: Likewise.
3754         * config/iq2000/iq2000.h: Likewise.
3755         * config/lm32/lm32.h: Likewise.
3756         * config/m32r/m32r.h: Likewise.
3757         * config/mcore/mcore.h: Likewise.
3758         * config/mep/mep.h: Likewise.
3759         * config/microblaze/microblaze.h: Likewise.
3760         * config/mips/mips.h: Likewise.
3761         * config/mmix/mmix.h: Likewise.
3762         * config/mn10300/mn10300.h: Likewise.
3763         * config/nds32/nds32.h: Likewise.
3764         * config/nios2/nios2.h: Likewise.
3765         * config/pa/pa.h: Likewise.
3766         * config/rl78/rl78.h: Likewise.
3767         * config/sh/sh.h: Likewise.
3768         * config/sparc/sparc.h: Likewise.
3769         * config/stormy16/stormy16.h: Likewise.
3770         * config/tilegx/tilegx.h: Likewise.
3771         * config/tilepro/tilepro.h: Likewise.
3772         * config/v850/v850.h: Likewise.
3773         * config/xtensa/xtensa.h: Likewise.
3774         * doc/tm.texi: Regenerate.
3775         * doc/tm.texi.in: Adjust.
3776         * combine.c (simplify_set): Likewise.
3777         (simplify_comparison): Likewise.
3778         * expr.c (store_constructor): Likewise.
3779         * internal-fn.c (expand_arith_overflow): Likewise.
3780         * reload.c (push_reload): Likewise.
3781         (find_reloads): Likewise.
3782         (find_reloads_subreg_address): Likewise.
3783         * reload1.c (eliminate_regs_1): Likewise.
3784         * rtlanal.c (nonzero_bits1): Likewise.
3785         (num_sign_bit_copies1): Likewise.
3786         * simplify-rtx.c (simplify_truncation): Likewise.
3788 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3790         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
3791         of AUTO_INC_DEC with the preprocessor.
3792         * combine.c (combine_instructions): Likewise.
3793         (can_combine_p): Likewise.
3794         (try_combine): Likewise.
3795         * emit-rtl.c (try_split): Likewise.
3796         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3797         * lower-subreg.c (resolve_simple_move): Likewise.
3798         * lra.c (update_inc_notes): Likewise.
3799         * recog.c (asm_operand_ok): Likewise.
3800         (constrain_operands): Likewise.
3801         * regrename.c (scan_rtx_address): Likewise.
3802         * reload.c (update_auto_inc_notes): Likewise.
3803         (reg_inc_found_and_valid_p): Likewise.
3804         * reload1.c (reload): Likewise.
3805         (emit_input_reload_insns): Likewise.
3806         (delete_output_reload): Likewise.
3807         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3808         * valtrack.c (cleanup_auto_inc_dec): Likewise.
3810 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3812         * rtl.h: Always define AUTO_INC_DEC.
3813         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
3814         * combine.c (combine_instructions): Likewise.
3815         (can_combine_p): Likewise.
3816         (try_combine): Likewise.
3817         * emit-rtl.c (try_split): Likewise.
3818         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3819         * lower-subreg.c (resolve_simple_move): Likewise.
3820         * lra.c (update_inc_notes): Likewise.
3821         * recog.c (asm_operand_ok): Likewise.
3822         (constrain_operands): Likewise.
3823         * regrename.c (scan_rtx_address): Likewise.
3824         * reload.c (update_auto_inc_notes): Likewise.
3825         (find_equiv_reg): Likewise.
3826         * reload1.c (reload): Likewise.
3827         (reload_as_needed): Likewise.
3828         (choose_reload_regs): Likewise.
3829         (emit_input_reload_insns): Likewise.
3830         (delete_output_reload): Likewise.
3831         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3832         * valtrack.c (cleanup_auto_inc_dec): Likewise.
3834 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3836         * combine.c (can_combine_def_p): Don't check the value of
3837         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
3838         (combinable_i3pat): Likewise.
3839         (mark_used_regs_combine): Likewise.
3840         * regrename.c (rename_chains): Likewise.
3841         * reload.c (find_reloads_address): Likewise.
3842         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3844 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3846         * combine.c (update_rsp_from_reg_equal): Don't check if
3847         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
3848         (reg_nonzero_bits_for_combine): Likewise.
3849         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
3850         1.
3851         * config/frv/frv.h: Likewise.
3852         * config/lm32/lm32.h: Likewise.
3853         * config/mep/mep.h: Likewise.
3854         * config/mips/mips.h: Likewise.
3855         * config/rs6000/rs6000.h: Likewise.
3856         * config/sh/sh.h: Likewise.
3857         * config/tilegx/tilegx.h (enum reg_class): Likewise.
3858         * config/tilepro/tilepro.h: Likewise.
3859         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
3860         * doc/tm.texi: Regenerate.
3861         * doc/tm.texi.in: Adjust.
3862         * rtlanal.c (nonzero_bits1): Likewise.
3864 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3866         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
3867         with the preprocessor.
3868         (combine_instructions): Likewise.
3869         (try_combine): Likewise.
3870         (subst): Likewise.
3871         (distribute_notes): Likewise.
3873 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3875         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
3876         defined.
3877         (simplify_set): Likewise.
3878         * cse.c (cse_insn): Likewise.
3879         * fold-const.c (fold_single_bit_test): Likewise.
3880         (fold_unary_loc): Likewise.
3881         * postreload.c (reload_cse_simplify_set): Likewise.
3882         (reload_cse_simplify_operands): Likewise.
3884 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
3886         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
3887         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
3889 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
3891         PR target/66746
3892         * config/i386/x86intrin.h: Include <adxintrin.h> even if
3893         __iamcu__ is defined.
3895 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
3897         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
3899 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
3901         PR target/66523
3902         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
3903         names from preservation.
3905 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
3907         PR target/66806
3908         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
3909         change for IAMCU.
3910         (function_arg_advance_32): Don't pass vectors in registers for
3911         IAMCU.
3912         (function_arg_32): Likewise.
3913         (ix86_return_in_memory): Don't return vectors in registers for
3914         IAMCU.
3916 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
3918         PR middle-end/66334
3919         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
3920         hard regno live at the start of BB with incoming abnormal edges.
3921         * lra-lives.c (process_bb_lives): Ditto.
3923 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
3925         PR libgomp/65099
3926         * config/nvptx/mkoffload.c (main): Create an offload image only in
3927         64-bit configurations.
3929 2015-07-08  Martin Liska  <mliska@suse.cz>
3931         PR bootstrap/66744
3932         * tree-sra.c (create_access_1): Call ctor without brackets.
3933         (create_artificial_child_access): Likewise.
3935 2015-07-08  Richard Biener  <rguenther@suse.de>
3937         PR tree-optimization/66793
3938         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
3939         Properly split the block after stmts ending it.
3941 2015-07-08  Richard Biener  <rguenther@suse.de>
3943         PR tree-optimization/66794
3944         * passes.c (execute_function_todo): Assert that post-dominators
3945         are not computed.
3946         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
3947         Free post-dominators.
3949 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3951         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
3952         with early exit.
3954 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
3956         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
3957         more than or equal 8 and less than 32 when optimizing for size.
3959 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3961         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
3962         COSTS_N_INSNS (1) and increment it appropriately throughout the
3963         function.
3965 2015-07-08  Richard Biener  <rguenther@suse.de>
3967         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
3969 2015-07-08  Alan Modra  <amodra@gmail.com>
3971         * target.def (rtx_costs): Remove "code" param, add "mode".
3972         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
3973         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
3974         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
3975         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
3976         call.  Track mode when given in rtx.
3977         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
3978         (default_address_cost): Pass Pmode to rtx_cost.
3979         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
3980         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
3981         with NULL set.
3982         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
3983         (notreg_cost): Add mode param.  Use it.
3984         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
3985         mode param and pass to set_src_cost.  Update all calls.
3986         (hash_scan_set): Formatting.
3987         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
3988         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
3989         * hooks.h: Ditto.
3990         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
3991         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
3992         emit_store_flag): Update set_src_cost and rtx_cost calls.
3993         * auto-inc-dec.c (attempt_change): Likewise.
3994         * calls.c (precompute_register_parameters): Likewise.
3995         * combine.c (expand_compound_operation, make_extraction,
3996         force_to_mode, distribute_and_simplify_rtx): Likewise.
3997         * dojump.c (prefer_and_bit_test): Likewise.
3998         * dse.c (find_shift_sequence): Likewise.
3999         * expr.c (compress_float_constant): Likewise.
4000         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4001         * ifcvt.c (noce_try_sign_mask): Likewise.
4002         * loop-doloop.c (doloop_optimize): Likewise.
4003         * loop-invariant.c (create_new_invariant): Likewise.
4004         * lower-subreg.c (shift_cost, compute_costs): Likewise.
4005         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
4006         lshift_cheap_p): Likewise.
4007         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
4008         try_replace_in_use, reload_cse_move2add): Likewise.
4009         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
4010         Likewise.
4011         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4012         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4013         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
4014         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4015         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
4016         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
4017         to rtx_cost calls.
4018         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
4019         * config/arc/arc.c (arc_rtx_costs): Likewise.
4020         * config/arm/arm.c (arm_rtx_costs): Likewise.
4021         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
4022         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4023         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4024         * config/cris/cris.c (cris_rtx_costs): Likewise.
4025         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
4026         * config/frv/frv.c (frv_rtx_costs): Likewise.
4027         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4028         * config/i386/i386.c (ix86_rtx_costs): Likewise.
4029         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4030         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4031         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4032         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4033         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4034         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4035         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4036         * config/mep/mep.c (mep_rtx_cost): Likewise.
4037         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4038         * config/mips/mips.c (mips_rtx_costs): Likewise.
4039         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4040         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
4041         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
4042         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
4043         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
4044         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
4045         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
4046         * config/pa/pa.c (hppa_rtx_costs): Likewise.
4047         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4048         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
4049         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4050         * config/s390/s390.c (s390_rtx_costs): Likewise.
4051         * config/sh/sh.c (sh_rtx_costs): Likewise.
4052         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4053         * config/spu/spu.c (spu_rtx_costs): Likewise.
4054         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4055         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
4056         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
4057         * config/v850/v850.c (v850_rtx_costs): Likewise.
4058         * config/vax/vax.c (vax_rtx_costs): Likewise.
4059         * config/visium/visium.c (visium_rtx_costs): Likewise.
4060         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4061         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
4062         "code" param, and pass as outer_code to first rtx_cost call.  Pass
4063         mode to rtx_cost calls.
4064         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
4065         calls.
4066         (aarch64_rtx_costs_wrapper): Update.
4067         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
4068         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
4069         rtx_cost calls.
4070         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
4071         and rtx_cost calls.
4072         (avr_operand_rtx_cost): Similarly.
4073         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
4074         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
4075         * config/mips/mips.c (mips_stack_address_p): Comment typo.
4076         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
4077         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
4078         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
4079         rtx_cost.
4080         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
4081         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
4082         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
4083         * doc/tm.texi: Regenerate.
4085 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
4087         * tree-core.h: Include symtab.h.
4088         * rtl.h: Include hard-reg-set.h but not flags.h.
4089         (HARD_CONST): Remove condition compilation involving HARD_CONST since
4090         hard-reg-set.h is always included.
4091         * regs.h: Don't include hard-reg-set.h or rtl.h.
4092         * cfg.h: Include dominance.h.
4093         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
4094         * backend.h: New.  Aggregate commonly used backend header files.
4095         * gimple-ssa.h: Don't include tree-hasher.h.
4096         * ssa.h: New.  Aggregate commonly used SSA header files.
4097         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
4098         * sel-sched-ir.h: Flatten includes.
4099         * lra-int.h: Flatten completely.
4100         * sel-sched-dump.h: Flatten includes.
4101         * ira-int.h: Flatten includes.
4102         * gimple-streamer.h: Remove all includes.
4103         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
4104         * resource.h: Flatten hard-reg-set.h and df.h.
4105         * sched-int.h: Flatten insn-arrt.h and df.h.
4106         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
4107         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
4108         * genattrtab.c (write_header): Adjust generated includes.
4109         * genautomata.c (main): Likewise.
4110         * genconditions.c (write-header): Likewise.
4111         * genemit.c (main): Likewise.
4112         * gengtype.c (open_base_files): Likewise.
4113         * genopinit.c (main): Likewise.
4114         * genoutput.c (output_prologue): Likewise.
4115         * genpeep.c (main): Likewise.
4116         * genpreds.c (write_insn_preds_c): Likewise.
4117         * genrecog.c (write_header): Likewise.
4118         * alias.c: Adjust includes.
4119         * asan.c: Likewise.
4120         * attribs.c: Likewise.
4121         * auto-inc-dec.c: Likewise.
4122         * auto-profile.c: Likewise.
4123         * bb-reorder.c: Likewise.
4124         * bt-load.c: Likewise.
4125         * builtins.c: Likewise.
4126         * caller-save.c: Likewise.
4127         * calls.c: Likewise.
4128         * ccmp.c: Likewise.
4129         * cfg.c: Likewise.
4130         * cfganal.c: Likewise.
4131         * cfgbuild.c: Likewise.
4132         * cfgcleanup.c: Likewise.
4133         * cfgexpand.c: Likewise.
4134         * cfghooks.c: Likewise.
4135         * cfgloop.c: Likewise.
4136         * cfgloopanal.c: Likewise.
4137         * cfgloopmanip.c: Likewise.
4138         * cfgrtl.c: Likewise.
4139         * cgraph.c: Likewise.
4140         * cgraphbuild.c: Likewise.
4141         * cgraphclones.c: Likewise.
4142         * cgraphunit.c: Likewise.
4143         * cilk-common.c: Likewise.
4144         * combine-stack-adj.c: Likewise.
4145         * combine.c: Likewise.
4146         * compare-elim.c: Likewise.
4147         * convert.c: Likewise.
4148         * coverage.c: Likewise.
4149         * cppbuiltin.c: Likewise.
4150         * cprop.c: Likewise.
4151         * cse.c: Likewise.
4152         * cselib.c: Likewise.
4153         * data-streamer-in.c: Likewise.
4154         * data-streamer-out.c: Likewise.
4155         * data-streamer.c: Likewise.
4156         * dbxout.c: Likewise.
4157         * dce.c: Likewise.
4158         * ddg.c: Likewise.
4159         * debug.c: Likewise.
4160         * df-core.c: Likewise.
4161         * df-problems.c: Likewise.
4162         * df-scan.c: Likewise.
4163         * dfp.c: Likewise.
4164         * dojump.c: Likewise.
4165         * dominance.c: Likewise.
4166         * domwalk.c: Likewise.
4167         * double-int.c: Likewise.
4168         * dse.c: Likewise.
4169         * dumpfile.c: Likewise.
4170         * dwarf2asm.c: Likewise.
4171         * dwarf2cfi.c: Likewise.
4172         * dwarf2out.c: Likewise.
4173         * emit-rtl.c: Likewise.
4174         * et-forest.c: Likewise.
4175         * except.c: Likewise.
4176         * explow.c: Likewise.
4177         * expmed.c: Likewise.
4178         * expr.c: Likewise.
4179         * final.c: Likewise.
4180         * fixed-value.c: Likewise.
4181         * fold-const.c: Likewise.
4182         * function.c: Likewise.
4183         * fwprop.c: Likewise.
4184         * gcc-plugin.h: Likewise.
4185         * gcse-common.c: Likewise.
4186         * gcse.c: Likewise.
4187         * generic-match-head.c: Likewise.
4188         * ggc-page.c: Likewise.
4189         * gimple-builder.c: Likewise.
4190         * gimple-expr.c: Likewise.
4191         * gimple-fold.c: Likewise.
4192         * gimple-iterator.c: Likewise.
4193         * gimple-low.c: Likewise.
4194         * gimple-match-head.c: Likewise.
4195         * gimple-pretty-print.c: Likewise.
4196         * gimple-ssa-isolate-paths.c: Likewise.
4197         * gimple-ssa-strength-reduction.c: Likewise.
4198         * gimple-streamer-in.c: Likewise.
4199         * gimple-streamer-out.c: Likewise.
4200         * gimple-walk.c: Likewise.
4201         * gimple.c: Likewise.
4202         * gimplify-me.c: Likewise.
4203         * gimplify.c: Likewise.
4204         * godump.c: Likewise.
4205         * graph.c: Likewise.
4206         * graphite-blocking.c: Likewise.
4207         * graphite-dependences.c: Likewise.
4208         * graphite-interchange.c: Likewise.
4209         * graphite-isl-ast-to-gimple.c: Likewise.
4210         * graphite-optimize-isl.c: Likewise.
4211         * graphite-poly.c: Likewise.
4212         * graphite-scop-detection.c: Likewise.
4213         * graphite-sese-to-poly.c: Likewise.
4214         * graphite.c: Likewise.
4215         * haifa-sched.c: Likewise.
4216         * hw-doloop.c: Likewise.
4217         * ifcvt.c: Likewise.
4218         * init-regs.c: Likewise.
4219         * internal-fn.c: Likewise.
4220         * ipa-chkp.c: Likewise.
4221         * ipa-comdats.c: Likewise.
4222         * ipa-cp.c: Likewise.
4223         * ipa-devirt.c: Likewise.
4224         * ipa-icf-gimple.c: Likewise.
4225         * ipa-icf.c: Likewise.
4226         * ipa-inline-analysis.c: Likewise.
4227         * ipa-inline-transform.c: Likewise.
4228         * ipa-inline.c: Likewise.
4229         * ipa-polymorphic-call.c: Likewise.
4230         * ipa-profile.c: Likewise.
4231         * ipa-prop.c: Likewise.
4232         * ipa-pure-const.c: Likewise.
4233         * ipa-ref.c: Likewise.
4234         * ipa-reference.c: Likewise.
4235         * ipa-split.c: Likewise.
4236         * ipa-utils.c: Likewise.
4237         * ipa-visibility.c: Likewise.
4238         * ipa.c: Likewise.
4239         * ira-build.c: Likewise.
4240         * ira-color.c: Likewise.
4241         * ira-conflicts.c: Likewise.
4242         * ira-costs.c: Likewise.
4243         * ira-emit.c: Likewise.
4244         * ira-lives.c: Likewise.
4245         * ira.c: Likewise.
4246         * jump.c: Likewise.
4247         * langhooks.c: Likewise.
4248         * lcm.c: Likewise.
4249         * loop-doloop.c: Likewise.
4250         * loop-init.c: Likewise.
4251         * loop-invariant.c: Likewise.
4252         * loop-iv.c: Likewise.
4253         * loop-unroll.c: Likewise.
4254         * lower-subreg.c: Likewise.
4255         * lra-assigns.c: Likewise.
4256         * lra-coalesce.c: Likewise.
4257         * lra-constraints.c: Likewise.
4258         * lra-eliminations.c: Likewise.
4259         * lra-lives.c: Likewise.
4260         * lra-remat.c: Likewise.
4261         * lra-spills.c: Likewise.
4262         * lra.c: Likewise.
4263         * lto-cgraph.c: Likewise.
4264         * lto-compress.c: Likewise.
4265         * lto-opts.c: Likewise.
4266         * lto-section-in.c: Likewise.
4267         * lto-section-out.c: Likewise.
4268         * lto-streamer-in.c: Likewise.
4269         * lto-streamer-out.c: Likewise.
4270         * lto-streamer.c: Likewise.
4271         * mcf.c: Likewise.
4272         * mode-switching.c: Likewise.
4273         * modulo-sched.c: Likewise.
4274         * omega.c: Likewise.
4275         * omp-low.c: Likewise.
4276         * optabs.c: Likewise.
4277         * opts-global.c: Likewise.
4278         * passes.c: Likewise.
4279         * plugin.c: Likewise.
4280         * postreload-gcse.c: Likewise.
4281         * postreload.c: Likewise.
4282         * predict.c: Likewise.
4283         * print-rtl.c: Likewise.
4284         * print-tree.c: Likewise.
4285         * profile.c: Likewise.
4286         * real.c: Likewise.
4287         * realmpfr.c: Likewise.
4288         * recog.c: Likewise.
4289         * ree.c: Likewise.
4290         * reg-stack.c: Likewise.
4291         * regcprop.c: Likewise.
4292         * reginfo.c: Likewise.
4293         * regrename.c: Likewise.
4294         * regstat.c: Likewise.
4295         * reload.c: Likewise.
4296         * reload1.c: Likewise.
4297         * reorg.c: Likewise.
4298         * resource.c: Likewise.
4299         * rtl-chkp.c: Likewise.
4300         * rtlanal.c: Likewise.
4301         * rtlhooks.c: Likewise.
4302         * sanopt.c: Likewise.
4303         * sched-deps.c: Likewise.
4304         * sched-ebb.c: Likewise.
4305         * sched-rgn.c: Likewise.
4306         * sched-vis.c: Likewise.
4307         * sdbout.c: Likewise.
4308         * sel-sched-dump.c: Likewise.
4309         * sel-sched-ir.c: Likewise.
4310         * sel-sched.c: Likewise.
4311         * sese.c: Likewise.
4312         * shrink-wrap.c: Likewise.
4313         * simplify-rtx.c: Likewise.
4314         * stack-ptr-mod.c: Likewise.
4315         * stmt.c: Likewise.
4316         * stor-layout.c: Likewise.
4317         * store-motion.c: Likewise.
4318         * stringpool.c: Likewise.
4319         * symtab.c: Likewise.
4320         * target-globals.c: Likewise.
4321         * targhooks.c: Likewise.
4322         * toplev.c: Likewise.
4323         * tracer.c: Likewise.
4324         * trans-mem.c: Likewise.
4325         * tree-affine.c: Likewise.
4326         * tree-browser.c: Likewise.
4327         * tree-call-cdce.c: Likewise.
4328         * tree-cfg.c: Likewise.
4329         * tree-cfgcleanup.c: Likewise.
4330         * tree-chkp-opt.c: Likewise.
4331         * tree-chkp.c: Likewise.
4332         * tree-chrec.c: Likewise.
4333         * tree-complex.c: Likewise.
4334         * tree-data-ref.c: Likewise.
4335         * tree-dfa.c: Likewise.
4336         * tree-diagnostic.c: Likewise.
4337         * tree-dump.c: Likewise.
4338         * tree-eh.c: Likewise.
4339         * tree-emutls.c: Likewise.
4340         * tree-if-conv.c: Likewise.
4341         * tree-inline.c: Likewise.
4342         * tree-into-ssa.c: Likewise.
4343         * tree-iterator.c: Likewise.
4344         * tree-loop-distribution.c: Likewise.
4345         * tree-nested.c: Likewise.
4346         * tree-nrv.c: Likewise.
4347         * tree-object-size.c: Likewise.
4348         * tree-outof-ssa.c: Likewise.
4349         * tree-parloops.c: Likewise.
4350         * tree-phinodes.c: Likewise.
4351         * tree-predcom.c: Likewise.
4352         * tree-pretty-print.c: Likewise.
4353         * tree-profile.c: Likewise.
4354         * tree-scalar-evolution.c: Likewise.
4355         * tree-sra.c: Likewise.
4356         * tree-ssa-address.c: Likewise.
4357         * tree-ssa-alias.c: Likewise.
4358         * tree-ssa-ccp.c: Likewise.
4359         * tree-ssa-coalesce.c: Likewise.
4360         * tree-ssa-copy.c: Likewise.
4361         * tree-ssa-copyrename.c: Likewise.
4362         * tree-ssa-dce.c: Likewise.
4363         * tree-ssa-dom.c: Likewise.
4364         * tree-ssa-dse.c: Likewise.
4365         * tree-ssa-forwprop.c: Likewise.
4366         * tree-ssa-ifcombine.c: Likewise.
4367         * tree-ssa-live.c: Likewise.
4368         * tree-ssa-loop-ch.c: Likewise.
4369         * tree-ssa-loop-im.c: Likewise.
4370         * tree-ssa-loop-ivcanon.c: Likewise.
4371         * tree-ssa-loop-ivopts.c: Likewise.
4372         * tree-ssa-loop-manip.c: Likewise.
4373         * tree-ssa-loop-niter.c: Likewise.
4374         * tree-ssa-loop-prefetch.c: Likewise.
4375         * tree-ssa-loop-unswitch.c: Likewise.
4376         * tree-ssa-loop.c: Likewise.
4377         * tree-ssa-math-opts.c: Likewise.
4378         * tree-ssa-operands.c: Likewise.
4379         * tree-ssa-phiopt.c: Likewise.
4380         * tree-ssa-phiprop.c: Likewise.
4381         * tree-ssa-pre.c: Likewise.
4382         * tree-ssa-propagate.c: Likewise.
4383         * tree-ssa-reassoc.c: Likewise.
4384         * tree-ssa-sccvn.c: Likewise.
4385         * tree-ssa-scopedtables.c: Likewise.
4386         * tree-ssa-sink.c: Likewise.
4387         * tree-ssa-strlen.c: Likewise.
4388         * tree-ssa-structalias.c: Likewise.
4389         * tree-ssa-tail-merge.c: Likewise.
4390         * tree-ssa-ter.c: Likewise.
4391         * tree-ssa-threadedge.c: Likewise.
4392         * tree-ssa-threadupdate.c: Likewise.
4393         * tree-ssa-uncprop.c: Likewise.
4394         * tree-ssa-uninit.c: Likewise.
4395         * tree-ssa.c: Likewise.
4396         * tree-ssanames.c: Likewise.
4397         * tree-stdarg.c: Likewise.
4398         * tree-streamer-in.c: Likewise.
4399         * tree-streamer-out.c: Likewise.
4400         * tree-streamer.c: Likewise.
4401         * tree-switch-conversion.c: Likewise.
4402         * tree-tailcall.c: Likewise.
4403         * tree-vect-data-refs.c: Likewise.
4404         * tree-vect-generic.c: Likewise.
4405         * tree-vect-loop-manip.c: Likewise.
4406         * tree-vect-loop.c: Likewise.
4407         * tree-vect-patterns.c: Likewise.
4408         * tree-vect-slp.c: Likewise.
4409         * tree-vect-stmts.c: Likewise.
4410         * tree-vectorizer.c: Likewise.
4411         * tree-vrp.c: Likewise.
4412         * tree.c: Likewise.
4413         * tsan.c: Likewise.
4414         * ubsan.c: Likewise.
4415         * valtrack.c: Likewise.
4416         * value-prof.c: Likewise.
4417         * var-tracking.c: Likewise.
4418         * varasm.c: Likewise.
4419         * varpool.c: Likewise.
4420         * vmsdbgout.c: Likewise.
4421         * vtable-verify.c: Likewise.
4422         * web.c: Likewise.
4423         * wide-int.cc: Likewise.
4424         * xcoffout.c: Likewise.
4425         * config/aarch64/aarch64-builtins.c: Likewise.
4426         * config/aarch64/aarch64.c: Likewise.
4427         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4428         * config/alpha/alpha.c: Likewise.
4429         * config/arc/arc.c: Likewise.
4430         * config/arm/aarch-common.c: Likewise.
4431         * config/arm/arm-builtins.c: Likewise.
4432         * config/arm/arm-c.c: Likewise.
4433         * config/arm/arm.c: Likewise.
4434         * config/avr/avr-c.c: Likewise.
4435         * config/avr/avr-log.c: Likewise.
4436         * config/avr/avr.c: Likewise.
4437         * config/bfin/bfin.c: Likewise.
4438         * config/c6x/c6x.c: Likewise.
4439         * config/cr16/cr16.c: Likewise.
4440         * config/cris/cris.c: Likewise.
4441         * config/darwin-c.c: Likewise.
4442         * config/darwin.c: Likewise.
4443         * config/epiphany/epiphany.c: Likewise.
4444         * config/epiphany/mode-switch-use.c: Likewise.
4445         * config/epiphany/resolve-sw-modes.c: Likewise.
4446         * config/fr30/fr30.c: Likewise.
4447         * config/frv/frv.c: Likewise.
4448         * config/ft32/ft32.c: Likewise.
4449         * config/h8300/h8300.c: Likewise.
4450         * config/i386/i386-c.c: Likewise.
4451         * config/i386/i386.c: Likewise.
4452         * config/i386/msformat-c.c: Likewise.
4453         * config/i386/winnt-cxx.c: Likewise.
4454         * config/i386/winnt-stubs.c: Likewise.
4455         * config/i386/winnt.c: Likewise.
4456         * config/ia64/ia64-c.c: Likewise.
4457         * config/ia64/ia64.c: Likewise.
4458         * config/iq2000/iq2000.c: Likewise.
4459         * config/lm32/lm32.c: Likewise.
4460         * config/m32c/m32c-pragma.c: Likewise.
4461         * config/m32c/m32c.c: Likewise.
4462         * config/m32r/m32r.c: Likewise.
4463         * config/m68k/m68k.c: Likewise.
4464         * config/mcore/mcore.c: Likewise.
4465         * config/mep/mep-pragma.c: Likewise.
4466         * config/mep/mep.c: Likewise.
4467         * config/microblaze/microblaze-c.c: Likewise.
4468         * config/microblaze/microblaze.c: Likewise.
4469         * config/mips/mips.c: Likewise.
4470         * config/mmix/mmix.c: Likewise.
4471         * config/mn10300/mn10300.c: Likewise.
4472         * config/moxie/moxie.c: Likewise.
4473         * config/msp430/msp430-c.c: Likewise.
4474         * config/msp430/msp430.c: Likewise.
4475         * config/nds32/nds32-cost.c: Likewise.
4476         * config/nds32/nds32-fp-as-gp.c: Likewise.
4477         * config/nds32/nds32-intrinsic.c: Likewise.
4478         * config/nds32/nds32-isr.c: Likewise.
4479         * config/nds32/nds32-md-auxiliary.c: Likewise.
4480         * config/nds32/nds32-memory-manipulation.c: Likewise.
4481         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4482         * config/nds32/nds32-predicates.c: Likewise.
4483         * config/nds32/nds32.c: Likewise.
4484         * config/nios2/nios2.c: Likewise.
4485         * config/nvptx/nvptx.c: Likewise.
4486         * config/pa/pa.c: Likewise.
4487         * config/pdp11/pdp11.c: Likewise.
4488         * config/rl78/rl78-c.c: Likewise.
4489         * config/rl78/rl78.c: Likewise.
4490         * config/rs6000/rs6000-c.c: Likewise.
4491         * config/rs6000/rs6000.c: Likewise.
4492         * config/rx/rx.c: Likewise.
4493         * config/s390/s390-c.c: Likewise.
4494         * config/s390/s390.c: Likewise.
4495         * config/sh/sh-c.c: Likewise.
4496         * config/sh/sh-mem.cc: Likewise.
4497         * config/sh/sh.c: Likewise.
4498         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4499         * config/sh/sh_treg_combine.cc: Likewise.
4500         * config/sol2-c.c: Likewise.
4501         * config/sol2-cxx.c: Likewise.
4502         * config/sol2-stubs.c: Likewise.
4503         * config/sol2.c: Likewise.
4504         * config/sparc/sparc-c.c: Likewise.
4505         * config/sparc/sparc.c: Likewise.
4506         * config/spu/spu-c.c: Likewise.
4507         * config/spu/spu.c: Likewise.
4508         * config/stormy16/stormy16.c: Likewise.
4509         * config/tilegx/mul-tables.c: Likewise.
4510         * config/tilegx/tilegx-c.c: Likewise.
4511         * config/tilegx/tilegx.c: Likewise.
4512         * config/tilepro/mul-tables.c: Likewise.
4513         * config/tilepro/tilepro-c.c: Likewise.
4514         * config/tilepro/tilepro.c: Likewise.
4515         * config/v850/v850-c.c: Likewise.
4516         * config/v850/v850.c: Likewise.
4517         * config/vax/vax.c: Likewise.
4518         * config/visium/visium.c: Likewise.
4519         * config/vms/vms-c.c: Likewise.
4520         * config/vms/vms.c: Likewise.
4521         * config/vxworks.c: Likewise.
4522         * config/xtensa/xtensa.c: Likewise.
4524 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
4526         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
4527         Remove operand constraints.  Change operand 2 predicate to
4528         nonmemory operand.  Limit const_int values to mode bitsize.  Only
4529         allow const_int values less than 32 when optimizing for size.
4530         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
4531         Remove operand constraints.
4532         (*bt<mode>): Use SImode for const_int values less than 32.
4533         (regmode): Remove mode attribute.
4535 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
4537         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4538         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
4539           moxie_legitimate_address_p): New functions.
4540           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4542 2015-07-07  Tom de Vries  <tom@codesourcery.com>
4544         PR tree-optimization/66642
4545         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
4546         header comment.  Rename split_edge variable to edge_at_split.  Split
4547         exit edge to create new loop exit bb.  Insert loop exit phis in new
4548         loop exit bb.
4550 2015-07-07  Tom de Vries  <tom@codesourcery.com>
4552         * tree-cfg.c (get_virtual_phi): New function.
4553         * tree-cfg.h (get_virtual_phi): Declare.
4554         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
4555         (rewrite_virtuals_into_loop_closed_ssa): New function.
4556         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
4557         Declare.
4558         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
4559         (transform_to_exit_first_loop_alt): Use
4560         rewrite_virtuals_into_loop_closed_ssa.
4562 2015-07-07  Richard Biener  <rguenther@suse.de>
4564         * fold-const.c (fold_binary_loc): Move
4565         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
4566         * match.pd: ... here.
4567         Add (X * C1) % C2 -> 0 simplification pattern derived from
4568         extract_muldiv_1.
4570 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4572         PR target/66780
4573         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
4574         change for target/65249.
4576 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
4578         * symtab.c (address_matters_1): Fix typo in comment above.
4579         (can_increase_alignment_p): Likewise.
4581 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4583         * function.c (free_after_compilation): Clear PROP_cfg in
4584         f->curr_properties.
4586 2015-07-07  Richard Biener  <rguenther@suse.de>
4588         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
4589         add which use to.
4590         (add_control_edge): Remove excessive vertical space in dumping.
4591         (process_ssa_edge_worklist): Simulate at most one statement and
4592         return whether we did.  Do not simulate PHIs if they are in a
4593         BB not yet simulated.
4594         (ssa_propagate): Adjust to always drain the BB worklist whenever
4595         a BB is available there, likewise the VARYING edges list before
4596         the interesting edge list.
4598 2015-07-07  Christian Bruel  <christian.bruel@st.com>
4600         PR target/52144
4601         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
4603 2015-07-07  Richard Biener  <rguenther@suse.de>
4605         PR middle-end/66739
4606         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
4607         A - B.
4609 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
4611         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
4612         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
4613         Copy operand 0 to a temporary if !ext_register_operand.  Remove
4614         ancient extract_bit_field workaround.
4615         (insv<mode>_1): Rename from mov<mode>_insv_1.
4616         (*insvqi): Rename from *movqi_insv_2.
4617         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
4618         for renamed insvsi_1.
4619         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
4621 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4623         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
4624         call to nvptx_reorg_subreg.
4626 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
4628         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
4629         * graphite-dependencies.c, graphite-interchange.c,
4630         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
4631         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
4632         Likewise.
4634 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
4636         * match.pd: Remove element_mode inside HONOR_*.
4637         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
4638         (~X | X -> -1, ~X ^ X -> -1): Merge.
4639         * tree.c (build_each_one_cst): New function.
4640         * tree.h (build_each_one_cst): Likewise.
4642 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4644         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4645         PROCESSOR_IAMCU.
4647 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
4649         * config.gcc <mips*-*-*>: Add fused-madd.opt.
4650         * config/mips/mips.opt (mfused-madd): Remove.
4651         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
4652         * config/mips/mips.h (TARGET_MIPS8000): New.
4653         (ISA_HAS_FP_MADD4_MSUB4): Remove.
4654         (ISA_HAS_FP_MADDF_MSUBF): Remove.
4655         (ISA_HAS_FP_MADD3_MSUB3): Remove.
4656         (ISA_HAS_NMADD4_NMSUB4): Remove.
4657         (ISA_HAS_NMADD3_NMSUB3): Remove.
4658         (ISA_HAS_FUSED_MADD4): New.
4659         (ISA_HAS_UNFUSED_MADD4): New.
4660         (ISA_HAS_FUSED_MADDF): New.
4661         (ISA_HAS_FUSED_MADD3): New.
4662         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
4663         (*fma<mode>4_madd3) New.
4664         (*fma<mode>4_madd4) New.
4665         (*fma<mode>4_maddf) New.
4666         (fms<mode>4) New.
4667         (*fms<mode>4_msub3) New.
4668         (*fms<mode>4_msub4) New.
4669         (fnma<mode>4) New.
4670         (*fnma<mode>4_nmadd3) New.
4671         (*fnma<mode>4_nmadd4) New.
4672         (fnms<mode>4) New.
4673         (*fnms<mode>4_nmsub3) New.
4674         (*fnms<mode>4_nmsub4) New.
4675         (*madd4<mode>) Modify to be unfused only.
4676         (*msub4<mode>) Modify to be unfused only.
4677         (*nmadd4<mode>) Modify to be unfused only.
4678         (*nmsub4<mode>) Modify to be unfused only.
4679         (*madd3<mode>) Remove.
4680         (*msub3<mode>) Remove.
4681         (*nmadd3<mode>) Remove.
4682         (*nmsub3<mode>) Remove.
4683         (*nmadd3<mode>_fastmath) Remove.
4684         (*nmsub3<mode>_fastmath) Remove.
4685         (*nmadd4<mode>_fastmath) Update condition.
4686         (*nmsub4<mode>_fastmath) Update condition.
4688 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
4690         PR target/65956
4691         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
4692         alignment attribute, exploring one level down for records and arrays.
4694 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
4696         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
4697         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
4698         Copy operand 1 to a temporary if !ext_register_operand.  Remove
4699         ancient extract_bit_field workaround.
4700         (*extv<mode>): Rename from *mov<mode>_extv_1.
4701         (*extvqi): Rename from *movqi_extv_1.
4702         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
4703         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
4704         to a temporary if !ext_register_operand.  Remove ancient
4705         extract_bit_field workaround.
4706         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
4707         (*extzvqi): Rename from *movqi_extzv_2.
4708         (*testqi_ext_3): Remove modes from const_int_operand predicated
4709         operands.  Add "n" constraint.
4710         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
4711         operand.  Add "J" constraint.
4712         (*btsq, *btrq, *btcq peephole2s): Remove mode from
4713         const_0_to_63 predicated operand.
4714         (regmode): New insn attribute.
4715         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
4716         to nonmemory_operand.  Use regmode insn attribute.
4717         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
4718         (*jcc_bt<mode>_mask): Remove mode from operand 3.
4719         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
4720         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
4721         operands.  Use "N" constraint instead of "n".
4723 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
4725         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
4727 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4729         PR target/66749
4730         * config/i386/i386.c (iamcu_cost): New.
4731         (m_IAMCU): Likewise.
4732         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
4733         (processor_target_table): Add an entry for "iamcu".
4734         (processor_alias_table): Likewise.
4735         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
4736         (ix86_adjust_cost): Likewise.
4737         (ia32_multipass_dfa_lookahead): Likewise.
4738         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
4739         * config/i386/x86-tune.def: Updated for m_IAMCU.
4741 2015-07-06  Richard Biener  <rguenther@suse.de>
4743         PR tree-optimization/66772
4744         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
4745         values are available in the PHI node BB when there are
4746         still unexecutable edges.
4748 2015-07-06  Richard Biener  <rguenther@suse.de>
4750         PR tree-optimization/66767
4751         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
4752         Make sure to build the alignment test on a SSA name without
4753         final alignment info valid only if the alignment test
4754         evaluates to true.
4756 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4758         PR target/66620
4759         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
4760         loop start when inserting LSETUP.
4762 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4764         PR target/53383
4765         * config/i386/i386.c (ix86_option_override_internal): Allow
4766         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
4768 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4770         * read-md.c (decimal_string): Rename to ...
4771         (md_decimal_string): ... this.
4772         (handle_enum): Reflect this.
4774 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4776         PR target/66731
4777         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
4779 2015-07-06  Richard Biener  <rguenther@suse.de>
4781         PR middle-end/66759
4782         * match.pd: Add missing constraint of y to REAL_CST in
4783         REAL_CST - x CMP y to y - CST CMP x simplification.
4785 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
4787         PR tree-optimization/66757
4788         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
4790 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
4791             Sandra Loosemore <sandra@codesourcery.com>
4793         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
4794         Delete extern declaration.
4795         (gprel_constant_p): Add extern declaration.
4796         * config/nios2/constraints.md ("S"): Use gprel_constant_p
4797         instead of nios2_symbol_ref_in_small_data_p.
4798         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
4799         (nios2_symbol_ref_in_small_data_p): Make static.
4800         (gprel_constant_p): Make non-static.
4802 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
4804         * doc/fragments.texi (Target Fragment): Convert debian.org
4805         link to use https.
4806         * doc/install.texi (Configuration): Ditto.
4808 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
4810         PR tree-optimization/66718
4811         * tree-vect-stmts.c (vectorizable_call): Replace uses of
4812         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
4814         PR tree-optimization/66718
4815         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
4816         vectorizable_load, vectorizable_condition): Move vectype,
4817         nunits, ncopies computation after checking what kind of statement
4818         stmt is.
4820 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4822         * target-insns.def (extv, extzv, insv): New targetm instruction
4823         patterns.
4824         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
4825         interface.
4826         * recog.c (simplify_while_replacing): Likewise.
4828 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4830         * target-insns.def (doloop_begin, doloop_end): New targetm
4831         instruction patterns.
4832         * loop-init.c: Include target.h.
4833         (pass_loop2::gate): Use the new targetm patterns instead of
4834         HAVE_*/gen_* interface.
4835         (pass_rtl_doloop::gate): Likewise.
4836         (pass_rtl_doloop::execute): Remove preprocessor condition.
4837         * hw-doloop.c: Build unconditionally.
4838         * loop-doloop.c: Likewise.
4839         (doloop_optimize): Use the new targetm patterns instead of
4840         HAVE_*/gen_* interface.
4841         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
4842         * modulo-sched.c (doloop_register_get): Likewise.
4844 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4846         * target-insns.def (clear_cache): New targetm instruction pattern.
4847         * builtins.c (expand_builtin___clear_cache): Use it instead of
4848         HAVE_*/gen_* interface.
4850 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4852         * target-insns.def (allocate_stack, check_stack, probe_stack)
4853         (probe_stack_address, split_stack_prologue, split_stack_space_check):
4854         New targetm instruction patterns.
4855         * explow.c (allocate_dynamic_stack_space): Use them instead of
4856         HAVE_*/gen_* interface.
4857         (emit_stack_probe): Likewise.
4858         (probe_stack_range): Likewise.
4859         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4861 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4863         * target-insns.def (stack_protect_set, stack_protect_test): New
4864         targetm instruction patterns.
4865         * cfgexpand.c (stack_protect_prologue): Use them instead of
4866         HAVE_*/gen_* interface.
4867         * function.c (stack_protect_epilogue): Likewise.
4869 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4871         * expr.h (gen_move_insn_uncast): Delete.
4872         * expr.c (gen_move_insn_uncast): Delete.
4874 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4876         * target-insns.def (restore_stack_block, restore_stack_function)
4877         (restore_stack_nonlocal, save_stack_block, save_stack_function)
4878         (save_stack_nonlocal): New targetm instruction patterns.
4879         * builtins.c (expand_builtin_apply): Use them instead of
4880         HAVE_*/gen_* interface.
4881         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
4883 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4885         * target-insns.def (trap): New targetm instruction pattern.
4886         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
4887         interface.
4888         * explow.c (allocate_dynamic_stack_space): Likewise.
4889         * ifcvt.c (find_if_header): Likewise.
4891 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4893         * target-insns.def (prefetch): New targetm instruction pattern.
4894         * tree-ssa-loop-prefetch.c: Include targeth.
4895         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
4896         of HAVE_*/gen_* interface.
4897         * builtins.c (expand_builtin_prefetch): Likewise.
4898         * toplev.c (process_options): Likewise.
4900 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4902         * target-insns.def (untyped_call, untyped_return): New targetm
4903         instruction patterns.
4904         * builtins.c (expand_builtin_apply): Use them instead of
4905         HAVE_*/gen_* interface.
4906         (result_vector): Define unconditionally.
4908 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4910         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
4911         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
4912         (nonlocal_goto_receiver): New targetm instruction patterns.
4913         * builtins.c (expand_builtin_setjmp_setup): Use them instead
4914         of HAVE_*/gen_* interface.
4915         (expand_builtin_setjmp_receiver): Likewise.
4916         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
4917         * except.c (expand_dw2_landing_pad_for_region): Likewise.
4919 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
4921         * target.def: Add code_for_* hooks.
4922         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
4923         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
4924         * target-insns.def (casesi, tablejump): New targetm instruction
4925         patterns.
4926         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
4927         (do_tablejump): Likewise.
4928         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
4929         (expand_sjlj_dispatch_table): Likewise.
4930         * targhooks.c (default_case_values_threshold): Likewise.
4932 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
4934         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
4935         Use rtx_insn * instead of rtx.
4936         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
4937         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
4938         (nios2_call_tls_get_addr): Likewise.
4939         (nios2_emit_expensive_div): Likewise.
4940         (nios2_emit_move_sequence): Change return type to bool.
4941         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
4942         Change return type to bool.
4944 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4946         PR target/66747
4947         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
4949 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
4951         PR target/66114
4952         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
4953         of register_operand.  Remove constraint.
4955 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
4957         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
4958         the first argument.
4960 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
4962         * attribs.c (decl_attributes): Guard inform with the return value
4963         of the preceding warning.
4965 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
4967         * doc/invoke.texi (moverride): Move to correct section.
4969 2015-07-03  Richard Biener  <rguenther@suse.de>
4971         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
4972         Copy from tree.c
4973         (dt_operand::gen_gimple_expr): After valueizing operands
4974         re-canonicalize operand order for commutative tree codes.
4976 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4978         PR target/66746.
4979         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
4980         is defined.
4981         (__crc32w): Likewise.
4982         (__crc32d): Likewise.
4983         (__rdpmc): Likewise.
4984         (__rdtscp): Likewise.
4985         (_rdpmc): Likewise.
4986         (_rdtscp): Likewise.
4987         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
4988         is defined.
4990 2015-07-03  Richard Biener  <rguenther@suse.de>
4992         * fold-const.c (fold_mathfn_compare): Remove.
4993         (fold_inf_compare): Likewise.
4994         (fold_comparison): Move floating point comparison simplifications...
4995         * match.pd: ... to patterns here.  Introduce simple_comparisons
4996         operator list and use it for patterns formerly in fold_comparison.
4998 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
5000         PR tree-optimization/66119
5001         * toplev.c (process_options): Don't set up default values for
5002         the sra_max_scalarization_size_{speed,size} parameters.
5003         * tree-sra (analyze_all_variable_accesses): If no values
5004         have been set for the sra_max_scalarization_size_{speed,size}
5005         parameters, call get_move_ratio to get target defaults.
5007 2015-07-03  Richard Biener  <rguenther@suse.de>
5009         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
5010         * match.pd: ... here.
5012 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
5014         PR target/37072
5015         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
5016         is not actually the default on FreeBSD.
5018 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5020         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
5021         definition.
5022         (CMPGE_8HI): Likewise.
5023         (CMPGE_4SI): Likewise.
5024         (CMPGE_2DI): Likewise.
5025         (CMPGE_U16QI): Likewise.
5026         (CMPGE_U8HI): Likewise.
5027         (CMPGE_U4SI): Likewise.
5028         (CMPGE_U2DI): Likewise.
5029         (CMPLE_16QI): Likewise.
5030         (CMPLE_8HI): Likewise.
5031         (CMPLE_4SI): Likewise.
5032         (CMPLE_2DI): Likewise.
5033         (CMPLE_U16QI): Likewise.
5034         (CMPLE_U8HI): Likewise.
5035         (CMPLE_U4SI): Likewise.
5036         (CMPLE_U2DI): Likewise.
5037         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5038         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
5039         ALTIVEC_BUILTIN_VEC_CMPLE.
5040         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
5041         floating-point vector modes.
5042         (vector_nlt<mode>): New define_expand.
5043         (vector_nltu<mode>): Likewise.
5044         (vector_ngt<mode>): Likewise.
5045         (vector_ngtu<mode>): Likewise.
5047 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
5049         PR rtl-optimization/66706
5050         * combine.c (make_compound_operation): If an AND of SUBREG of
5051         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
5053 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
5055         * tree-pass.h (make_pass_ch_vect): New.
5056         * passes.def: Add pass_ch_vect just before pass_if_conversion.
5058         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
5059         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
5060         make_pass_ch_vect): New.
5061         (pass_ch): Extend ch_base.
5063         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
5064         (ch_base::copy_headers): ...here.
5066 2015-07-02  Richard Biener  <rguenther@suse.de>
5068         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
5069         * fold-const.c (get_pointer_modulus_and_residue): Remove.
5070         (fold_binary_loc): Implement (T)ptr & CST in terms of
5071         get_pointer_alignment_1.
5072         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5073         Make sure to build the alignment test on a SSA name without
5074         final alignment info valid only after the prologue.
5076 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
5078         * config/cris/cris.md ("epilogue"): Remove condition.
5079         ("prologue"): Ditto.
5081 2015-07-02  Richard Biener  <rguenther@suse.de>
5083         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
5084         parameter to record a condition that is false.
5085         (record_conditions): When recording an extra NE_EXPR that is
5086         true also record a EQ_EXPR that is false.
5088 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
5090         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
5091         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
5092         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
5093         (set_iv, find_interesting_uses_address, add_candidate_1): New
5094         argument to alloc_iv.
5095         (find_interesting_uses_op, find_interesting_uses_cond): Don't
5096         duplicate struct iv.
5097         (free_loop_data): Don't free struct iv explicitly.
5098         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
5100 2015-07-01  DJ Delorie  <dj@redhat.com>
5102         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
5103         (LIB_SPEC): Add.
5104         (SUPPORTS_DISCRIMINATOR): Define.
5106 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
5108         PR bootstrap/66685
5109         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
5110         there are no CALLs in the same pattern.
5112 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5114         PR rtl-optimization/61047
5115         * rtlanal.c (get_initial_register_offset): New function.
5116         (rtx_addr_can_trap_p_1): Check offsets of stack references.
5118 2015-07-01  Richard Biener  <rguenther@suse.de>
5120         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
5121         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
5122         ~X CMP C -> X CMP' ~C to ...
5123         * match.pd: ... patterns here.
5125 2015-07-01  Nick Clifton  <nickc@redhat.com>
5127         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
5128         a 16-bit value into a 20-bit memory slot.
5130 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5132         * doc/sourcebuild.texi (AArch64-specific attributes): Document
5133         "aarch64_tiny", "aarch64_small", "aarch64_large",
5134         "aarch64_little_endian", "aarch64_big_endian".
5136 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5138         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
5139         Document "aarch64_small_fpic".
5141 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5143         * configure.ac: Add check for aarch64 assembler -fpic relocation
5144         modifier support.
5145         * configure: Regenerate.
5146         * config.in: Regenerate.
5147         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
5148         to -fPIC if not support of -fpic relocation modifier in assembler.
5150 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
5152         PR bootstrap/66685
5153         * rtl.c (classify_insn): Handle returns in PARALLELs.
5155 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5157         PR middle-end/66633
5158         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
5159         to true if the function is nested and if not optimizing.
5160         (convert_local_omp_clauses): Initialize need_frame to true if the
5161         function contains nested functions and if not optimizing.
5163 2015-07-01  Richard Biener  <rguenther@suse.de>
5165         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
5166         (X & Y) ^ Y -> ~X & Y transforms to ...
5167         * match.pd: ... here.
5169 2015-07-01  Richard Biener <rguenther@suse.de>
5171         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
5172         of converts to avoid uninteresting noise from the conversion
5173         simplifying patterns.
5175 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
5177         * config/c6x/c6x.c (try_rename_operands): Do not depend on
5178         gcc_assert evaluating its argument for side-effect.
5180 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5182         PR target/64833
5183         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
5184         flag_pic is set.
5186 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5188         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
5189         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
5190         (hash_scc): Add this_ref_p and ref_p parameters and pass them
5191         to the inner DFS walk.
5193 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5195         * target-insns.def (jump): New targetm instruction pattern.
5196         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
5197         instead of gen_jump.
5198         (fix_up_crossing_landing_pad): Likewise.
5199         (add_labels_and_missing_jumps): Likewise.
5200         (fix_crossing_conditional_branches): Likewise.
5201         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5202         (force_nonfallthru_and_redirect): Likewise.
5203         * cse.c (cse_insn): Likewise.
5204         * expmed.c (expand_divmod): Likewise.
5205         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
5206         * haifa-sched.c (init_before_recovery): Likewise.
5207         (sched_create_recovery_edges): Likewise.
5208         * ifcvt.c (find_cond_trap): Likewise.
5209         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
5210         (expand_float, expand_fix): Likewise.
5211         * stmt.c (emit_jump): Likewise.
5213 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5215         * defaults.h (HAVE_load_multiple, gen_load_multiple)
5216         (HAVE_store_multiple, gen_store_multiple): Delete.
5217         * target-insns.def (load_multiple, store_multiple): New targetm
5218         instruction patterns.
5219         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
5220         of HAVE_*/gen_* interface.
5222 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5224         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
5225         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
5226         (gen_mem_signal_fence): Delete.
5227         * target-insns.def (mem_signal_fence, mem_thread_fence)
5228         (memory_barrier): New targetm instruction patterns.
5229         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
5230         interface.
5231         (expand_mem_signal_fence): Likewise.
5233 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5235         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
5236         * target-insns.def (epilogue, prologue, sibcall_prologue): New
5237         targetm instruction patterns.
5238         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
5239         interface.
5240         * calls.c (expand_call): Likewise.
5241         * cfgrtl.c (cfg_layout_finalize): Likewise.
5242         * df-scan.c (df_get_entry_block_def_set): Likewise.
5243         (df_get_exit_block_use_set): Likewise.
5244         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
5245         * final.c (final_start_function): Likewise.
5246         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5247         (reposition_prologue_and_epilogue_notes): Likewise.
5248         * reorg.c (find_end_label): Likewise.
5249         * toplev.c (process_options): Likewise.
5251 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
5253         * typed-splay-tree.h: New file.
5255 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
5257         PR debug/66691
5258         * lra-int.h (lra_substitute_pseudo): Add a parameter.
5259         (lra_substitute_pseudo_within_insn): Ditto.
5260         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
5261         of constant.
5262         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
5263         to lra_substitute_pseudo.
5264         * lra-lives.c (process_bb_lives): Add an argument to
5265         lra_substitute_pseudo_within_insn call.
5266         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
5267         argument to lra_substitute_pseudo and
5268         lra_substitute_pseudo_within_insn calls.
5269         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
5271 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5273         * configure: Regenerated.
5275 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5277         * config.gcc: Support i[34567]86-*-elfiamcu target.
5278         * config/i386/iamcu.h: New.
5279         * config/i386/i386.opt: Add -miamcu.
5280         * doc/invoke.texi: Document -miamcu.
5281         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
5282         off x87/MMX/SSE/AVX codegen for -miamcu.
5283         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5284         __iamcu/__iamcu__ for -miamcu.
5285         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
5286         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
5287         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
5288         * config/i386/i386.c (ix86_option_override_internal): Ignore and
5289         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
5290         MCU by default.  Default long double to 64-bit for Intel MCU.
5291         Turn on -freg-struct-return for Intel MCU.  Issue an error when
5292         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
5293         AVX is turned on.
5294         (function_arg_advance_32): Pass value whose size is no larger
5295         than 8 bytes in registers for Intel MCU.
5296         (function_arg_32): Likewise.
5297         (ix86_return_in_memory): Return value whose size is no larger
5298         than 8 bytes in registers for Intel MCU.
5299         (iamcu_alignment): New function.
5300         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
5301         true.
5302         (ix86_local_alignment): Don't increase alignment for Intel MCU.
5303         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
5304         true.
5306 2015-06-30  Marek Polacek  <polacek@redhat.com>
5308         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
5309         both operands of the resulting expression.
5311         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
5312         the final expression with the operand's type and then convert
5313         it to the type of the expression.
5315 2015-06-30  Richard Biener  <rguenther@suse.de>
5317         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
5318         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
5319         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
5320         * match.pd: ... to patterns here.
5322 2015-06-30  Richard Biener  <rguenther@suse.de>
5324         PR tree-optimization/66704
5325         * tree-vect-data-refs.c (vect_setup_realignment): Use
5326         make_ssa_name for non-SSA name source.
5328 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
5330         PR middle-end/66702
5331         * omp-low.c (simd_clone_adjust): Handle addressable linear
5332         or uniform parameters or non-gimple type uniform parameters.
5334 2015-06-30  Richard Biener  <rguenther@suse.de>
5336         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
5337         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
5338         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
5339         * match.pd: ... here.
5340         Add a few cases of A - B -> A + (-B) when B "easily" negates.
5341         Move (x & y) | x -> x and friends before
5342         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
5344 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5346         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
5347         -mfix-ut699 is not specified.
5348         (leon3_load): Rename into...
5349         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
5350         is specified.
5352 2015-06-30  Marek Polacek  <polacek@redhat.com>
5354         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
5355         * match.pd: ... here.
5357 2015-06-30  Richard Biener  <rguenther@suse.de>
5359         * target-insns.def (canonicalize_funcptr_for_compare): Add.
5360         * fold-const.c (build_range_check): Replace uses of
5361         HAVE_canonicalize_funcptr_for_compare.
5362         (fold_widened_comparison): Likewise.
5363         (fold_sign_changed_comparison): Likewise.
5364         * dojump.c: Include "target.h".
5365         (do_compare_and_jump): Replace uses of
5366         HAVE_canonicalize_funcptr_for_compare and
5367         gen_canonicalize_funcptr_for_compare.
5368         * expr.c (do_store_flag): Likewise.
5370 2015-06-30  Tom de Vries  <tom@codesourcery.com>
5372         PR tree-optimization/66652
5373         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
5374         max_loop_iterations to determine if nit + 1 overflows.
5376 2015-06-30  Richard Biener  <rguenther@suse.de>
5378         * tree-vrp.c (register_edge_assert_for_2): Also register
5379         asserts for dominating conversion results.
5381 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
5383         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
5384         field in struct iv.
5386 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
5388         PR target/66509
5389         * configure.ac: Fix filds and fildq test for 64-bit.
5390         * configure: Regenerated.
5392 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
5394         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
5395         (nvptx_reorg): Here.  Keep the non-subreg pieces.
5397 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
5399         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
5400         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5402 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
5404         * config/i386/i386.md (*jcc_1): Use %! in asm template.
5405         Set attribute "length_nobnd" instead of "length".
5406         (*jcc_2): Ditto.
5407         (jump): Ditto.
5408         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
5410 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
5412         * config/nios2/nios2.c (nios2_delegitimize_address): Make
5413         assert less restrictive.
5415 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5417         PR fortran/66605
5418         * cgraphunit.c (cgraph_node::finalize_function): Do not call
5419         do_warn_unused_parameter.
5420         * function.c (do_warn_unused_parameter): Move from here.
5421         * function.h (do_warn_unused_parameter): Do not declare.
5423 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5425         PR target/65697
5426         * gcc.target/arm/armv-sync-comp-swap.c: New.
5427         * gcc.target/arm/armv-sync-op-acquire.c: New.
5428         * gcc.target/arm/armv-sync-op-full.c: New.
5429         * gcc.target/arm/armv-sync-op-release.c: New.
5431 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5433         PR target/65697
5434         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
5435         initial acquire barrier with final barrier.
5437 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5439         PR target/65697
5440         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
5441         initial acquire barrier with final barrier.
5443 2015-06-29  Richard Henderson  <rth@redhat.com>
5445         * config/i386/constraints.md (Bf): New constraint.
5446         * config/i386/i386-c.c (ix86_target_macros): Define
5447         __GCC_ASM_FLAG_OUTPUTS__.
5448         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
5449         as flags outputs.
5450         * doc/extend.texi (FlagOutputOperands): Document them.
5452 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
5454         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
5455         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
5456         unspec name.
5457         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
5458         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
5459         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
5460         (aarch64_symbol_context): Ditto.
5461         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
5462         and use new pattern name.
5463         (aarch64_expand_mov_immediate): Ditto.
5464         (aarch64_print_operand): Ditto.
5465         (aarch64_classify_tls_symbol): Ditto.
5467 2015-06-29  Marek Polacek  <polacek@redhat.com>
5468             Marc Glisse  <marc.glisse@inria.fr>
5470         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
5471         * match.pd: ... pattern here.
5473 2015-06-29  Tom de Vries  <tom@codesourcery.com>
5475         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
5476         function structure.
5478 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5480         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
5481         feature description, split out the native option, add a link to
5482         the feature documentation, rearrange and slightly rewrite text.
5483         (Aarch64 options, -mcpu): Likewise.
5484         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
5485         +rdma implies Adv. SIMD.
5487 2015-06-29  Marek Polacek  <polacek@redhat.com>
5489         PR c/66322
5490         * function.c (stack_protect_epilogue): Remove a cast to int.
5491         * doc/invoke.texi: Update -Wswitch-bool description.
5493 2015-06-29  Richard Biener  <rguenther@suse.de>
5495         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
5496         * fold-const.c (fold_binary_loc): Move &A - &B simplification
5497         via ptr_difference_const ...
5498         * match.pd: ... here.
5499         When matching (X ^ Y) == Y also match with swapped operands.
5501 2015-06-29  Richard Biener  <rguenther@suse.de>
5503         * lto-streamer.h (LTO_major_version): Bump to 5.
5505 2015-06-29  Richard Biener  <rguenther@suse.de>
5507         PR tree-optimization/66677
5508         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
5509         STMT_VINFO_VEC_STMT clobbering less strict.
5511 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5513         PR middle-end/64130
5514         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
5515         division, compute max and min when value ranges for dividend and
5516         divisor are available.
5518 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
5519             Sandra Loosemore <sandra@codesourcery.com>
5521         * regrename.h (regrename_do_replace): Change to return bool.
5522         * regrename.c (rename_chains): Check return value of
5523         regname_do_replace.
5524         (regrename_do_replace): Re-validate the modified insns and
5525         return bool status.
5526         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5527         Update to match rename_chains changes.
5528         * config/c6x/c6x.c (try_rename_operands): Assert that
5529         regrename_do_replace returns true.
5531 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
5533         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
5534         operand 2 here.  Use copy_addr_to_reg to copy non-index
5535         register operand 2 to a temporary.
5536         (<mode>_stx): Ditto for operand 1.
5537         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
5538         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
5539         (ix86_store_bounds): Ditto.
5541 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
5543         * print-tree.c (print_node) [TREE_VEC]: Print its length.
5545 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
5547         * gimple.c (gimple_call_set_fndecl): Remove.
5548         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
5549         build1_loc directly instead of build_fold_addr_expr_loc.
5551 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
5553         * hash-map.h (hash_map::traverse): Use the definition of the
5554         Key typedef rather than the typedef itself.
5556 2015-06-26  Martin Jambor  <mjambor@suse.cz>
5558         PR debug/66301
5559         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
5560         NULL instead of calling dump_enabled_p.
5562 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
5564         * config/aarch64/aarch64.opt: (override): New.
5565         * doc/invoke.texi (override): Document.
5566         * config/aarch64/aarch64.c (aarch64_flag_desc): New
5567         (aarch64_fusible_pairs): Likewise.
5568         (aarch64_tuning_flags): Likewise.
5569         (aarch64_tuning_override_function): Likewise.
5570         (aarch64_tuning_override_functions): Likewise.
5571         (aarch64_parse_one_option_token): Likewise.
5572         (aarch64_parse_boolean_options): Likewise.
5573         (aarch64_parse_fuse_string): Likewise.
5574         (aarch64_parse_tune_string): Likewise.
5575         (aarch64_parse_one_override_token): Likewise.
5576         (aarch64_parse_override_string): Likewise.
5577         (aarch64_override_options): Parse the -override string if it
5578         is present.
5580 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
5582         * config/aarch64/aarch64-protos.h (tune_params): Remove
5583         const from members.
5584         (aarch64_tune_params): Remove const, change to no longer be
5585         a pointer.
5586         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
5587         change to no longer be a pointer, initialize to generic_tunings.
5588         (aarch64_min_divisions_for_recip_mul): Change dereference of
5589         aarch64_tune_params to member access.
5590         (aarch64_reassociation_width): Likewise.
5591         (aarch64_rtx_mult_cost): Likewise.
5592         (aarch64_address_cost): Likewise.
5593         (aarch64_branch_cost): Likewise.
5594         (aarch64_rtx_costs): Likewise.
5595         (aarch64_register_move_cost): Likewise.
5596         (aarch64_memory_move_cost): Likewise.
5597         (aarch64_sched_issue_rate): Likewise.
5598         (aarch64_builtin_vectorization_cost): Likewise.
5599         (aarch64_override_options): Take a copy of the selected tuning
5600         struct in to aarch64_tune_params, rather than just setting
5601         a pointer, change dereferences of aarch64_tune_params to member
5602         accesses.
5603         (aarch64_override_options_after_change): Change dereferences of
5604         aarch64_tune_params to member access.
5605         (aarch64_macro_fusion_p): Likewise.
5606         (aarch_macro_fusion_pair_p): Likewise.
5607         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
5609 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
5611         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
5612         (aarch64_tune_flags): Likewise.
5613         (AARCH64_TUNE_FMA_STEERING): Likewise.
5614         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
5615         to AARCH64_FL_USE_FMA_STEERING_PASS.
5616         (cortex-a57.cortex-a53): Likewise.
5617         (cortex-a72): Use cortexa72_tunings.
5618         (cortex-a72.cortex-a53): Likewise.
5619         (exynos-m1): Likewise.
5620         * config/aarch64/aarch64-protos.h (tune_params): Add
5621         a field: extra_tuning_flags.
5622         * config/aarch64/aarch64-tuning-flags.def: New.
5623         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
5624         (aarch64_extra_tuning_flags): Likewise.
5625         (aarch64_tune_params): Declare here.
5626         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
5627         (cortexa53_tunings): Likewise.
5628         (cortexa57_tunings): Likewise.
5629         (thunderx_tunings): Likewise.
5630         (xgene1_tunings): Likewise.
5631         (cortexa72_tunings): New.
5632         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
5633          (gate): Check against aarch64_tune_params.
5634         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
5635         aarch64-protos.h.
5637 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
5639         * config/aarch64/aarch64-fusion-pairs.def: New.
5640         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
5641         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
5642         aarch64_fusion_pairs.
5643         (AARCH64_FUSE_MOV_MOVK): Likewise.
5644         (AARCH64_FUSE_ADRP_ADD): Likewise.
5645         (AARCH64_FUSE_MOVK_MOVK): Likewise.
5646         (AARCH64_FUSE_ADRP_LDR): Likewise.
5647         (AARCH64_FUSE_CMP_BRANCH): Likewise.
5649 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
5651         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
5652         SYMBOL_SMALL_GOT_28K.
5653         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
5654         relocation modifiers.
5655         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
5656         (ldr_got_small_28k_<mode>): New.
5657         (ldr_got_small_28k_sidi): New.
5658         * config/aarch64/iterators.md (got_modifier): New mode iterator.
5659         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
5660         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
5661         SYMBOL_SMALL_GOT_28K.
5662         (aarch64_rtx_costs): Add costs for new instruction sequences.
5663         (initialize_aarch64_code_model): Initialize new model.
5664         (aarch64_classify_symbol): Recognize new model and new symbol classification.
5665         (aarch64_asm_preferred_eh_data_format): Support new model.
5666         (aarch64_load_symref_appropriately): Generate new instruction
5667         sequences for -fpic.
5668         (TARGET_USE_PSEUDO_PIC_REG): New definition.
5669         (aarch64_use_pseudo_pic_reg): New function.
5671 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
5673         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
5674         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
5675         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
5676         (aarch64_expand_mov_immediate): Ditto.
5677         (aarch64_print_operand): Ditto.
5678         (aarch64_classify_symbol): Ditto.
5680 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
5682         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
5684 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
5686         PR bootstrap/66638
5687         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
5688         assertion failed.  Remove assertion itself.
5690 2015-06-26  Richard Biener  <rguenther@suse.de>
5692         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
5693         and -A CMP CST -> A CMP -CST which is redundant with a pattern
5694         in match.pd.
5695         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
5696         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
5697         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
5698         * match.pd: ... patterns here.
5700 2015-06-26  Marek Polacek  <polacek@redhat.com>
5702         * match.pd ((x | y) & ~(x & y) -> x ^ y,
5703         (x | y) & (~x ^ y) -> x & y): New patterns.
5705 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
5707         * rtl.h (emit): Add an optional boolean parameter to control
5708         whether barriers are emitted.
5709         * emit-rtl.c (emit): Likewise.
5710         * gensupport.c (get_emit_function): Return null rather than "emit".
5711         * genemit.c (gen_emit_seq): Handle the null return value.
5712         Don't emit barriers after the final instruction in the sequence.
5713         * gentarget-def.c (main): Don't emit barriers after the instruction.
5715 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5717         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
5718         TARGET_UNIFIED_ASM.
5720 2015-06-26  Richard Biener  <rguenther@suse.de>
5722         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
5724 2015-06-26  Richard Biener  <rguenther@suse.de>
5726         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
5727         irrespective on whether the inner operation has a single use
5728         of both off are constant.
5730 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
5731             Segher Boessenkool  <segher@kernel.crashing.org>
5733         PR target/66412
5734         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
5735         before doing PUT_MODE or PUT_CODE on operands to avoid
5736         in-place RTX modification.
5738 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5740         * gentarget-def.c (def_target_insn): Cast return of strtol to
5741         unsigned int.
5743 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5745         * gimple.h (gimple_call_set_fn): Move inline function.
5746         * gimple.c (gimple_call_set_fn): Relocate here.
5748 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
5750         PR target/65979
5751         PR target/66611
5752         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
5753         the replacement insn will work.
5755 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
5757         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
5758         by default.
5760 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
5762         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
5763         * cgraph.h: Include ipa-ref.h and plugin-api.h.
5764         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
5765         (symtab_node::address_can_be_compared_p): Move function.
5766         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
5767         definition here.
5768         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
5769         * auto-profile.c: Likewise.
5770         * bb-reorder.c: Likewise.
5771         * builtins.c: Likewise.
5772         * calls.c: Likewise.
5773         * cfgexpand.c: Likewise.
5774         * cgraphbuild.c: Likewise.
5775         * cgraphclones.c: Likewise.
5776         * cgraphunit.c: Likewise.
5777         * combine.c: Likewise.
5778         * coverage.c: Likewise.
5779         * data-streamer-in.c: Likewise.
5780         * data-streamer-out.c: Likewise.
5781         * data-streamer.c: Likewise.
5782         * dbxout.c: Likewise.
5783         * dwarf2out.c: Likewise.
5784         * except.c: Likewise.
5785         * expr.c: Likewise.
5786         * final.c: Likewise.
5787         * fold-const.c: Likewise.
5788         * ggc-page.c: Likewise.
5789         * gimple-fold.c: Likewise.
5790         * gimple-iterator.c: Likewise.
5791         * gimple-pretty-print.c: Likewise.
5792         * gimple-streamer-in.c: Likewise.
5793         * gimple-streamer-out.c: Likewise.
5794         * gimple.c: Likewise.
5795         * gimplify.c: Likewise.
5796         * ipa-chkp.c: Likewise.
5797         * ipa-comdats.c: Likewise.
5798         * ipa-cp.c: Likewise.
5799         * ipa-devirt.c: Likewise.
5800         * ipa-icf-gimple.c: Likewise.
5801         * ipa-icf.c: Likewise.
5802         * ipa-inline-analysis.c: Likewise.
5803         * ipa-inline-transform.c: Likewise.
5804         * ipa-inline.c: Likewise.
5805         * ipa-polymorphic-call.c: Likewise.
5806         * ipa-profile.c: Likewise.
5807         * ipa-prop.c: Likewise.
5808         * ipa-pure-const.c: Likewise.
5809         * ipa-ref.c: Likewise.
5810         * ipa-reference.c: Likewise.
5811         * ipa-split.c: Likewise.
5812         * ipa-utils.c: Likewise.
5813         * ipa-visibility.c: Likewise.
5814         * ipa.c: Likewise.
5815         * langhooks.c: Likewise.
5816         * lto-cgraph.c: Likewise.
5817         * lto-compress.c: Likewise.
5818         * lto-opts.c: Likewise.
5819         * lto-section-in.c: Likewise.
5820         * lto-section-out.c: Likewise.
5821         * lto-streamer-in.c: Likewise.
5822         * lto-streamer-out.c: Likewise.
5823         * lto-streamer.c: Likewise.
5824         * omp-low.c: Likewise.
5825         * opts-global.c: Likewise.
5826         * passes.c: Likewise.
5827         * predict.c: Likewise.
5828         * print-tree.c: Likewise.
5829         * profile.c: Likewise.
5830         * ree.c: Likewise.
5831         * sanopt.c: Likewise.
5832         * stor-layout.c: Likewise.
5833         * symtab.c: Likewise.
5834         * toplev.c: Likewise.
5835         * trans-mem.c: Likewise.
5836         * tree-cfg.c: Likewise.
5837         * tree-chkp.c: Likewise.
5838         * tree-eh.c: Likewise.
5839         * tree-emutls.c: Likewise.
5840         * tree-inline.c: Likewise.
5841         * tree-nested.c: Likewise.
5842         * tree-parloops.c: Likewise.
5843         * tree-pretty-print.c: Likewise.
5844         * tree-profile.c: Likewise.
5845         * tree-sra.c: Likewise.
5846         * tree-ssa-alias.c: Likewise.
5847         * tree-ssa-live.c: Likewise.
5848         * tree-ssa-loop-ivcanon.c: Likewise.
5849         * tree-ssa-loop-ivopts.c: Likewise.
5850         * tree-ssa-pre.c: Likewise.
5851         * tree-ssa-sccvn.c: Likewise.
5852         * tree-ssa-strlen.c: Likewise.
5853         * tree-ssa-structalias.c: Likewise.
5854         * tree-streamer-in.c: Likewise.
5855         * tree-streamer-out.c: Likewise.
5856         * tree-streamer.c: Likewise.
5857         * tree-switch-conversion.c: Likewise.
5858         * tree-tailcall.c: Likewise.
5859         * tree-vect-data-refs.c: Likewise.
5860         * tree-vect-stmts.c: Likewise.
5861         * tree-vectorizer.c: Likewise.
5862         * tree.c: Likewise.
5863         * tsan.c: Likewise.
5864         * ubsan.c: Likewise.
5865         * value-prof.c: Likewise.
5866         * varasm.c: Likewise.
5867         * varpool.c: Likewise.
5868         * config/arm/arm.c: Likewise.
5869         * config/bfin/bfin.c: Likewise.
5870         * config/c6x/c6x.c: Likewise.
5871         * config/cris/cris.c: Likewise.
5872         * config/darwin-c.c: Likewise.
5873         * config/darwin.c: Likewise.
5874         * config/i386/i386.c: Likewise.
5875         * config/i386/winnt.c: Likewise.
5876         * config/microblaze/microblaze.c: Likewise.
5877         * config/mips/mips.c: Likewise.
5878         * config/rs6000/rs6000.c: Likewise.
5879         * config/rx/rx.c: Likewise.
5880         * config/s390/s390.c: Likewise.
5881         * config/tilegx/mul-tables.c: Likewise.
5883 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5885         * config/aarch64/aarch64.c, config/alpha/alpha.c,
5886         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
5887         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
5888         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
5889         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
5890         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5891         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
5892         config/microblaze/microblaze.c, config/mips/mips.c,
5893         config/mmix/mmix.c, config/mn10300/mn10300.c,
5894         config/moxie/moxie.c, config/msp430/msp430.c,
5895         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
5896         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
5897         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
5898         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
5899         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5900         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5901         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
5902         target-def.h include.
5903         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
5905 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5907         * Makefile.in (TARGET_DEF): Add target-insns.def.
5908         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
5909         (build/gentarget-def.o): New rule.
5910         (genprogrtl): Add target-def.
5911         * target-insns.def, gentarget-def.c: New files.
5912         * target.def: Add targetm.have_* and targetm.gen_* hooks,
5913         based on the contents of target-insns.def.
5914         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
5915         (HAVE_return, gen_return): Delete.
5916         * target-def.h: Include insn-target-def.h.
5917         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
5918         instead of direct calls.  Rely on them to do the appropriate assertions.
5919         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
5920         (convert_jumps_to_returns): Use targetm interface instead of
5921         direct calls.
5922         (thread_prologue_and_epilogue_insns): Likewise.
5923         * reorg.c (find_end_label, dbr_schedule): Likewise.
5924         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
5925         * shrink-wrap.c (convert_to_simple_return): Likewise.
5926         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
5928 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5930         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
5931         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
5932         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
5933         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
5934         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
5935         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
5936         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
5937         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
5938         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
5939         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
5940         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
5941         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
5942         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
5943         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
5944         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
5945         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
5946         includes to end.
5948 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
5950         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
5951         (unbounded_int_hashmap_traits::key_type): Likewise.
5952         * hash-map.h (hash_map): Get the key type from the traits.
5953         * hash-traits.h (default_hash_traits): By default, inherit from the
5954         template parameter.
5955         * alias.c (alias_set_traits): Delete.
5956         (alias_set_entry_d::children): Use alias_set_hash as the first
5957         template parameter.
5958         (record_alias_subset): Update accordingly.
5959         * except.c (tree_hash_traits): Delete.
5960         (type_to_runtime_map): Use tree_hash as the first template parameter.
5961         (init_eh): Update accordingly.
5962         * genmatch.c (capture_id_map_hasher): Delete.
5963         (cid_map_t): Use nofree_string_hash as first template parameter.
5964         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
5965         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
5966         Use symbol_compare_hash as the first template parameter in
5967         subdivide_hash_map.
5968         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
5969         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
5970         template parameter.
5971         * passes.c (pass_registry_hasher): Delete.
5972         (name_to_pass_map): Use nofree_string_hash as the first template
5973         parameter.
5974         (register_pass_name): Update accordingly.
5975         * sanopt.c (sanopt_tree_map_traits): Delete.
5976         (sanopt_tree_triplet_map_traits): Delete.
5977         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
5978         template parameter.
5979         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
5980         the first template parameter.
5981         * sese.c (rename_map_hasher): Delete.
5982         (rename_map_type): Use tree_ssa_name_hash as the first template
5983         parameter.
5984         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
5985         (function_summary::m_map): Use map_hash as the first template
5986         parameter.
5987         (function_summary::release): Update accordingly.
5988         * tree-if-conv.c (phi_args_hash_traits): Delete.
5989         (predicate_scalar_phi): Use tree_operand_hash as the first template
5990         parameter to phi_arg_map.
5991         * tree-inline.h (dependence_hasher): Delete.
5992         (copy_body_data::dependence_map): Use dependence_hash as the first
5993         template parameter.
5994         * tree-inline.c (remap_dependence_clique): Update accordingly.
5995         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
5996         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
5997         parameter.
5998         (addr_stridxptr): Update accordingly.
5999         * value-prof.c (profile_id_traits): Delete.
6000         (cgraph_node_map): Use profile_id_hash as the first template
6001         parameter.
6002         (init_node_map): Update accordingly.
6003         * config/alpha/alpha.c (string_traits): Delete.
6004         (machine_function::links): Use nofree_string_hash as the first
6005         template parameter.
6006         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
6007         * config/m32c/m32c.c (pragma_traits): Delete.
6008         (pragma_htab): Use nofree_string_hash as the first template parameter.
6009         (m32c_note_pragma_address): Update accordingly.
6010         * config/mep/mep.c (pragma_traits): Delete.
6011         (pragma_htab): Use nofree_string_hash as the first template parameter.
6012         (mep_note_pragma_flag): Update accordingly.
6013         * config/mips/mips.c (mips16_flip_traits): Delete.
6014         (mflip_mips16_htab): Use nofree_string_hash as the first template
6015         parameter.
6016         (mflip_mips16_use_mips16_p): Update accordingly.
6017         (local_alias_traits): Delete.
6018         (mips16_local_aliases): Use nofree_string_hash as the first template
6019         parameter.
6020         (mips16_local_alias): Update accordingly.
6022 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6024         * hash-map-traits.h (default_hashmap_traits): Delete.
6026 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6028         * hash-map-traits.h (unbounded_hashmap_traits): New class.
6029         (unbounded_int_hashmap_traits): Likewise.
6030         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
6032 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6034         * ipa-icf.h (symbol_compare_hash): New class.
6035         (symbol_compare_hashmap_traits): Use it.
6036         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
6037         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
6038         (mem_alloc_description::reverse_mem_map_t): Remove redundant
6039         default_hashmap_traits.
6040         * sanopt.c (sanopt_tree_triplet_hash): New class.
6041         (sanopt_tree_triplet_map_traits): Use it.
6043 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6045         * gengtype-parse.c (require_template_declaration): Allow '+' in
6046         template parameters.  Consolidate cases.
6047         * hash-traits.h (int_hash): New class.
6048         * alias.c (alias_set_hash): New structure.
6049         (alias_set_traits): Use it.
6050         * symbol-summary.h (function_summary::map_hash): New class.
6051         (function_summary::summary_hashmap_traits): Use it.
6052         * tree-inline.h (dependence_hash): New class.
6053         (dependence_hasher): Use it.
6054         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
6055         * value-prof.c (profile_id_hash): New class.
6056         (profile_id_traits): Use it.
6058 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6060         * config/mips/mips.c (mips16_flip_traits): Use it.
6061         (local_alias_traits, mips16_local_aliases): Convert from a map of
6062         rtxes to a map of symbol names.
6063         (mips16_local_alias): Update accordingly.
6065 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6067         * hash-traits.h (string_hash, nofree_string_hash): New classes.
6068         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
6069         * passes.c (pass_registry_hasher): Likewise.
6070         * config/alpha/alpha.c (string_traits): Likewise.
6071         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
6072         * config/m32c/m32c.c (pragma_traits): Likewise.
6073         * config/mep/mep.c (pragma_traits): Likewise.
6075 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6077         * tree-hash-traits.h (tree_hash): New class.
6078         * except.c: Include tree-hash-traits.h.
6079         (tree_hash_traits): Use tree_hash.
6081 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6083         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
6084         * sese.c: Include tree-hash-traits.h.
6085         (rename_map_hasher): Use tree_ssa_name_hasher.
6087 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6089         * tree-hash-traits.h (tree_decl_hash): New class.
6090         * tree-ssa-strlen.c: Include tree-hash-traits.h.
6091         (stridxlist_hash_traits): Use tree_decl_hash.
6093 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6095         * tree-hash-traits.h: New file.
6096         (tree_operand_hash): New class.
6097         * sanopt.c: Include tree-hash-traits.h.
6098         (sanopt_tree_map_traits): Use tree_operand_hash.
6099         * tree-if-conv.c: Include tree-hash-traits.h.
6100         (phi_args_hash_traits): Use tree_operand_hash.
6101         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
6102         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
6104 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6106         * hash-map-traits.h: Include hash-traits.h.
6107         (simple_hashmap_traits): New class.
6108         * mem-stats.h (hash_map): Change the default traits to
6109         simple_hashmap_traits<default_hash_traits<Key> >.
6111 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6113         * hash-table.h: Update comments.
6115 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6117         * hash-traits.h (default_hash_traits): New structure.
6118         * hash-set.h (default_hashset_traits): Delete.
6119         (hash_set): Use default_hash_traits<Key> instead of
6120         default_hashset_traits.  Delete hash_entry type and use Key directly.
6121         * ipa-devirt.c (pair_traits): Delete.
6122         (default_hash_traits <type_pair>): Override.
6123         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
6124         (odr_types_equivalent_p, add_type_duplicate): Likewise.
6126 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6128         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
6130 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6132         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
6133         (has_is_empty, is_empty_helper): Delete.
6134         (has_mark_deleted, mark_deleted_helper): Delete.
6135         (has_mark_empty, mark_empty_helper): Delete.
6136         (hash_table::is_deleted): Call the Descriptor unconditionally.
6137         (hash_table::is_empty): Likewise.
6138         (hash_table::mark_deleted): Likewise.
6139         (hash_table::mark_empty): Likewise.
6141 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6143         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
6144         redundant typedefs and members.
6145         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
6146         redundant typedefs.
6147         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
6148         * ipa-devirt.c (odr_name_hasher): Likewise.
6149         (polymorphic_call_target_hasher): Likewise.
6150         * ira-costs.c (cost_classes_hasher): Likewise.
6151         * statistics.c (stats_counter_hasher): Likewise.
6152         * trans-mem.c (log_entry_hasher): Likewise.
6153         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6154         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
6155         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
6156         * var-tracking.c (variable_hasher): Likewise.
6157         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
6158         Remove redundant typedefs and members.
6160 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6162         * hash-traits.h (ggc_cache_hasher): Rename to...
6163         (ggc_cache_remove): ...this and remove typedefs.
6164         (ggc_cache_ptr_hash): New class.
6165         * hash-table.h: Update commentary.
6166         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
6167         rather than ggc_cache_hasher.
6168         (const_wide_int_hasher, reg_attr_hasher): Likewise.
6169         (const_double_hasher, const_fixed_hasher): Likewise.
6170         * function.c (insn_cache_hasher): Likewise.
6171         * trans-mem.c (tm_wrapper_hasher): Likewise.
6172         * tree.h (tree_decl_map_cache_hasher): Likewise.
6173         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
6174         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
6175         * ubsan.c (tree_type_map_cache_hasher): Likewise.
6176         * varasm.c (tm_clone_hasher): Likewise.
6177         * config/i386/i386.c (dllimport_hasher): Likewise.
6178         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
6179         (tree_hasher): Likewise.
6181 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6183         * hash-traits.h (ggc_hasher): Rename to...
6184         (ggc_remover): ...this and remove typedefs.
6185         (ggc_cache_hasher): Update accordingly.  Add typedefs.
6186         (ggc_ptr_hash): New class.
6187         * hash-table.h: Update comment.
6188         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
6189         ggc_hasher.
6190         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
6191         (tree_descriptor_hasher): Likewise.
6192         * cgraph.c (function_version_hasher): Likewise.
6193         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
6194         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
6195         (dw_loc_list_hasher, addr_hasher): Likewise.
6196         * function.h (used_type_hasher): Likewise.
6197         * function.c (temp_address_hasher): Likewise.
6198         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
6199         * libfuncs.h (libfunc_hasher): Likewise.
6200         * lto-streamer.h (decl_state_hasher): Likewise.
6201         * optabs.c (libfunc_decl_hasher): Likewise.
6202         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
6203         * varasm.c (section_hasher, object_block_hasher): Likewise.
6204         (const_rtx_desc_hasher): Likewise.
6205         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
6206         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
6208 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6210         * hash-traits.h (free_ptr_hash): New class.
6211         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
6212         rather than typed_free_remove.  Remove redudant typedefs.
6213         (external_ref_hasher): Likewise.
6214         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
6215         (ehspec_hasher): Likewise.
6216         * ggc-common.c (saving_hasher): Likewise.
6217         * gimplify.c (gimplify_hasher): Likewise.
6218         * haifa-sched.c (delay_i2_hasher): Likewise.
6219         * loop-invariant.c (invariant_expr_hasher): Likewise.
6220         * loop-iv.c (biv_entry_hasher): Likewise.
6221         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
6222         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
6223         * tree-cfg.c (locus_discrim_hasher): Likewise.
6224         * tree-eh.c (finally_tree_hasher): Likewise.
6225         * tree-into-ssa.c (var_info_hasher): Likewise.
6226         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
6227         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
6228         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
6229         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
6230         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
6231         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
6232         (shared_bitmap_hasher): Likewise.
6233         * tree-ssa-threadupdate.c (redirection_data): Likewise.
6234         * tree-vectorizer.h (peel_info_hasher): Likewise.
6235         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
6236         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
6238 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6240         * hash-table.h: Update comments.
6241         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
6242         (nofree_ptr_hash): New class.
6243         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
6244         than typed_noop_remove.  Remove redudant typedefs.
6245         * attribs.c (attribute_hasher): Likewise.
6246         * cfg.c (bb_copy_hasher): Likewise.
6247         * cselib.c (cselib_hasher): Likewise.
6248         * dse.c (invariant_group_base_hasher): Likewise.
6249         * dwarf2cfi.c (trace_info_hasher): Likewise.
6250         * dwarf2out.c (macinfo_entry_hasher): Likewise.
6251         (comdat_type_hasher, loc_list_hasher): Likewise.
6252         * gcse.c (pre_ldst_expr_hasher): Likewise.
6253         * genmatch.c (id_base): Likewise.
6254         * genrecog.c (test_pattern_hasher): Likewise.
6255         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
6256         * haifa-sched.c (delay_i1_hasher): Likewise.
6257         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
6258         * ipa-icf.h (congruence_class_group_hash): Likewise.
6259         * ipa-profile.c (histogram_hash): Likewise.
6260         * ira-color.c (allocno_hard_regs_hasher): Likewise.
6261         * lto-streamer.h (string_slot_hasher): Likewise.
6262         * lto-streamer.c (tree_entry_hasher): Likewise.
6263         * plugin.c (event_hasher): Likewise.
6264         * postreload-gcse.c (expr_hasher): Likewise.
6265         * store-motion.c (st_expr_hasher): Likewise.
6266         * tree-sra.c (uid_decl_hasher): Likewise.
6267         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
6268         (ssa_name_var_hash): Likewise.
6269         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
6270         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
6271         * tree-ssa-pre.c (pre_expr_d): Likewise.
6272         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
6273         * vtable-verify.h (registration_hasher): Likewise.
6274         * vtable-verify.c (vtbl_map_hasher): Likewise.
6275         * config/arm/arm.c (libcall_hasher): Likewise.
6276         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
6277         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
6278         * config/sol2.c (comdat_entry_hasher): Likewise.
6279         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
6280         (print_fold_checksum, fold_checksum_tree): Likewise.
6281         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
6282         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
6283         (fold_build_call_array_loc): Likewise.
6284         * tree-ssa-ccp.c (gimple_htab): Likewise.
6285         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
6286         rather than pointer_type.
6288 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6290         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
6291         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
6293 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6295         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
6296         (ggc_hasher::ggc_mx): Likewise.
6297         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
6298         that duplicate ggc_hasher ones.
6300 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6302         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
6303         (gt_cleare_cache): Check here for deleted and empty entries.
6304         Replace handle_cache_entry with a call to keep_cache_entry.
6305         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
6306         (ggc_cache_hasher::keep_cache_entry): New function.
6307         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
6308         (tm_wrapper_hasher::keep_cache_entry): New function.
6309         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
6310         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
6311         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
6312         (type_cache_hasher::keep_cache_entry): New function.
6313         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
6314         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
6315         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
6316         (tree_type_map_cache_hasher::keep_cache_entry): New function.
6317         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
6318         (tm_clone_hasher::keep_cache_entry): New function.
6319         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
6320         (dllimport_hasher::keep_cache_entry): New function.
6322 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6324         * hash-table.h: Include hash-traits.h.
6325         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
6326         (ggc_cache_hasher): Move to...
6327         * hash-traits.h: ...this new file.
6329 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6331         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
6332         struct cl_optimization.
6333         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
6334         * tree.c (make_node_stat): Allocate cl_optimization struct.
6335         (copy_node_stat): Allocate and copy cl_optimization struct.
6337 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6339         * function.h (struct incoming_args): Move struct.
6340         (pass_by_reference, reference_callee_copied): Remove prototypes.
6341         * emit-rtl.h (struct incoming_args): Relocate struct here.
6342         * calls.h (pass_by_reference, reference_callee_copied): Relocate
6343         prototypes here.
6344         * function.c (pass_by_reference, reference_callee_copied): Move.
6345         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
6346         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
6347         * ipa-chkp.c: Include calls.h.
6349 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
6351         * alias.h (alias_set_type): Move typedef.
6352         * coretypes.h (alias_set_type): Relocate typedef here.
6353         * rtl.h: Don't include alias.h.
6355 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6357         * cgraph.h (cgraph_rtl_info): Move to rtl.h
6358         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
6359         and instance.
6360         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
6361         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
6362         doesn't exist.
6363         * calls.c: Include hard-reg-set.h before rtl.h.
6364         * ira.c: Likewise.
6366 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
6367             Vladimir Makarov  <vmakarov@redhat.com>
6369         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
6370         Add assert.
6372 2015-06-25  Richard Biener  <rguenther@suse.de>
6374         * fold-const.c (fold_binary_loc): Move simplification of
6375         (X <<>> C1) & C2 ...
6376         * match.pd: ... here.
6378 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
6380         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
6382 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6384         * match.pd: Add patterns for vec_conds between 1 and 0.
6386 2015-06-25  Richard Biener  <rguenther@suse.de>
6388         * tree-vect-stmts.c (vectorizable_conversion): Do not set
6389         STMT_VINFO_VEC_STMT for SLP.
6390         (vectorizable_store): Likewise.
6391         (vectorizable_load): Likewise.
6392         (vect_transform_stmt): Catch SLP vectorization clobbering
6393         STMT_VINFO_VEC_STMT.
6395 2015-06-25  Richard Biener  <rguenther@suse.de>
6397         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
6398         dumping.
6399         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
6400         cleanup resulting dead code and parameters.
6401         (vect_transform_slp_perm_load): Adjust.
6403 2015-06-25  Nick Clifton  <nickc@redhat.com>
6405         * config/bfin/bfin.c (bfin_expand_prologue): Set
6406         current_function_static_stack_size if flag_stack_usage_info is set.
6407         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
6408         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
6409         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6410         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
6412 2015-06-25  Tom de Vries  <tom@codesourcery.com>
6414         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
6415         comment that the generated IV is unsigned.
6417 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6419         PR target/29693
6420         * config/arm/arm.c (arm_dbx_register_number): Return
6421         DWARF_FRAME_REGISTERS by default.
6423 2015-06-25  Tom de Vries  <tom@codesourcery.com>
6425         * dominance.c (calculate_dominance_info): Fix verify_dominators call
6426         argument.  Call verify_dominator when reusing dominator info.
6428 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6430         PR target/66563
6431         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
6432         an additional element of the unspec vector.  Modify indices
6433         of operands.
6434         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
6435         * config/sh/sh.c (prepare_move_operands): Pass incremented
6436         const_int to gen_GOTaddr2picreg.
6437         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
6439 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
6441         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
6442         Condition on TARGET_FLOAT.
6444 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
6446         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
6447         and (no)crypto.
6449 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
6451         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
6453         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
6454         aarch64_err_no_fpadvsimd.
6456         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
6457         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
6458         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
6459         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
6460         Turn error into assert, test TARGET_FLOAT.
6461         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
6462         TARGET_FLOAT.
6464 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
6466         PR debug/66482
6467         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
6469 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
6471         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
6473 2015-06-24 Renlin Li <renlin.li@arm.com>
6475         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
6476         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
6478 2015-06-24  Richard Biener  <rguenther@suse.de>
6480         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
6481         (main): Likewise.
6482         (lower_opt_convert): Support lowering of conditional view_convert.
6483         (parser::parse_operation): Likewise.
6484         (parser::parse_for): Likewise.
6486 2015-06-24  Renlin Li  <renlin.li@arm.com>
6488         * varasm.c (emit_local): Use unsigned int for align variable.
6490 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6492         PR target/63408
6493         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
6494         for negative numbers.
6496 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6498         PR rtl-optimization/66306
6499         * reload.c (find_reloads): Swap the match_dup info for
6500         commutative operands.
6502 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6504         * config/s390/vx-builtins.md
6505         ("vec_scatter_element<mode>_<non_vec_int>")
6506         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
6507         attribute with bhfgq.
6509 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6511         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
6513 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6515         * config/s390/s390-builtin-types.def: Add flag to indicate the
6516         options under which the function type is needed.
6517         * config/s390/s390-builtins.def: Add flag to indicate the options
6518         under which the builtin is enabled.
6519         * config/s390/s390-builtins.h: Add flags parameter to macro
6520         definitions.
6521         (bflags_for_builtin): New function.
6522         (flags_for_builtin): Renamed to ...
6523         (opflags_for_builtin): ... this.
6524         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
6525         flags_for_builtin to bflags_for_builtin and
6526         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
6527         * config/s390/s390.c: Add initialization of bflags_builtin and
6528         opflags_builtin arrays.
6529         Remove code for flags_builtin.
6530         (s390_init_builtins): Only create builtin function types if one of
6531         their flags is active.
6532         Only create builtins if all of their flags are active.
6533         (s390_expand_builtin): Rename flags_for_builtin to
6534         opflags_for_builtin.
6536 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6538         * config/s390/vecintrin.h: Remove internal builtins.
6540 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6542         * config/s390/s390.c (s390_secondary_reload): Fix check for
6543         GENERAL_REGS register class.
6545 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6547         * config/s390/s390.c (s390_support_vector_misalignment): Call
6548         default implementation for !TARGET_VX.
6550 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6552         * config/s390/s390.c (s390_legitimate_constant_p): Add
6553         TARGET_VX check.
6555 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6557         * config/s390/s390.c (s390_vector_abi): New variable definition.
6558         (s390_check_type_for_vector_abi): New function.
6559         (TARGET_ASM_FILE_END): New macro definition.
6560         (s390_asm_file_end): New function.
6561         (s390_function_arg): Call s390_check_type_for_vector_abi.
6562         (s390_gimplify_va_arg): Likewise.
6563         * configure: Regenerate.
6564         * configure.ac: Check for .gnu_attribute Binutils feature.
6566 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
6568         PR target/65803
6569         * config/bfin/bfin.c (hwloop_optimize): Initialize
6570         JUMP_LABEL for newly created jump.
6572 2015-06-23  Tristan Gingold  <gingold@adacore.com>
6574         * collect-utils.c (collect_wait): Unlink the response file here
6575         instead of...
6576         (do_wait): ...here.
6577         (utils_cleanup): ...and here.
6579 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
6581         * df-scan.c: Don't include target-def.h.
6582         * targhooks.c: Likewise.
6583         * config/arm/arm-c.c: Likewise.
6584         * config/i386/i386-c.c: Likewise.
6585         * config/nds32/nds32-cost.c: Likewise.
6586         * config/nds32/nds32-fp-as-gp.c: Likewise.
6587         * config/nds32/nds32-intrinsic.c: Likewise.
6588         * config/nds32/nds32-isr.c: Likewise.
6589         * config/nds32/nds32-md-auxiliary.c: Likewise.
6590         * config/nds32/nds32-memory-manipulation.c: Likewise.
6591         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6592         * config/nds32/nds32-predicates.c: Likewise.
6594 2015-06-23  Richard Biener  <rguenther@suse.de>
6596         PR tree-optimization/66636
6597         * tree-vect-stmts.c (vectorizable_store): Properly compute the
6598         def type for further defs for strided stores.
6600 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
6602         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
6603         conditional selects.
6604         (setcc_int<mode>, setcc_float<mode>): Reformat.
6606 2015-06-23  Marek Polacek  <polacek@redhat.com>
6608         * match.pd ((x + y) - (x | y) -> x & y,
6609         (x + y) - (x & y) -> x | y): New patterns.
6611 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
6613         PR 65711
6614         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
6615         '-dynamic-linker' within %{!shared: ...}.
6617 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
6619         PR target/66560
6620         * config/i386/predicates.md (addsub_vm_operator): New predicate.
6621         (addsub_vs_operator): Ditto.
6622         (addsub_vs_parallel): Ditto.
6623         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
6624         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
6625         Put minus RTX before plus and adjust vec_merge selector.
6626         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
6627         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
6628         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
6629         (addsub vec_merge splitters): New combiner splitters.
6630         (addsub vec_select/vec_concat splitters): Ditto.
6632 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
6634         PR tree-optimization/66449
6635         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
6636         POINTER_PLUS_EXPR for pointers.
6638 2015-06-23  Alan Modra  <amodra@gmail.com>
6640         * rtlanal.c (commutative_operand_precedence): Correct comments.
6641         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
6642         declaration.  Return an int.  Distinguish REG,REG return from
6643         others.
6644         (struct simplify_plus_minus_op_data): Make local to function.
6645         (simplify_plus_minus): Don't set canonicalized if merely sorting
6646         registers.  Avoid packing ops if nothing changes.  White space fixes.
6648 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
6650         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
6651         -fdump-ada-spec is passed but not if -fsyntax-only is.
6653 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
6655         PR bootstrap/63740
6656         * lra-lives.c (process_bb_lives): Check insn copying the same
6657         reload pseudo and don't create a copy for it.
6659 2015-06-22  Tom de Vries  <tom@codesourcery.com>
6661         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
6662         for cond_stmt.
6664 2015-06-22  Tom de Vries  <tom@codesourcery.com>
6666         * builtins.def (DEF_GOMP_BUILTIN): Test
6667         'flag_tree_parallelize_loops > 1' instead of
6668         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
6670 2015-06-22  Tom de Vries  <tom@codesourcery.com>
6672         * dominance.c (calculate_dominance_info): Verify dominators if
6673         early-out.
6675 2015-06-22  Marek Polacek  <polacek@redhat.com>
6677         * match.pd ((x ^ y) ^ (x | y) -> x & y,
6678         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
6679         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
6680         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
6682 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
6684         PR target/65871
6685         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
6686         cost of embedded comparison.
6688 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6690         PR target/65914
6691         * config/rs6000/predicates.md (altivec_register_operand): Permit
6692         virtual stack registers.
6693         (vsx_register_operand): Likewise.
6694         (vfloat_operand): Likewise.
6695         (vint_operand): Likewise.
6696         (vlogical_operand): Likewise.
6698 2015-06-22  Richard Biener  <rguenther@suse.de>
6700         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
6701         and single_scalar_iteration_cost members.
6702         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
6703         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
6704         (vect_get_single_scalar_iteration_cost): Remove.
6705         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
6706         Use LOOP_VINFO_SCALAR_ITERATION_COST.
6707         * tree-vect-loop.c (destroy_loop_vec_info): Free
6708         scalar_cost_vec.
6709         (vect_get_single_scalar_iteration_cost): Compute result into
6710         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
6711         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
6712         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
6713         (vect_estimate_min_profitable_iters): Use them.
6715 2015-06-22  Christian Bruel  <christian.bruel@st.com>
6717         PR target/52144
6718         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
6719         (TARGET_INSERT_ATTRIBUTES): Define.
6720         (thumb_flipper): New var.
6721         * config/arm/arm.opt (-mflip-thumb): New switch.
6723 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
6724             Martin Liska  <mliska@suse.cz>
6726         PR ipa/65908
6727         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
6728         construction of arg_types.
6729         (sem_function::sem_function): Likewise.
6730         (sem_function::~sem_function): Remove destruction of arg_types.
6731         (sem_function::compatible_parm_types_p): New function.
6732         (sem_function::equals_wpa): Reorg matching of return values
6733         and parameter types.
6734         (sem_function::equals_private): Reorg mathcing of argument types.
6735         (sem_function::parse_tree_args): Remove.
6736         * ipa-icf.h (init_wpa): Do not call it.
6737         (parse_tree_args): Remove.
6738         (compatible_parm_types_p): Declare.
6739         (result_type): Remove.
6740         (arg_types): Remove.
6742 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
6744         PR ipa/66351
6745         * ipa-polymorphic-call.c
6746         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
6747         initializing alias oracle; fix formating; set base_alias_set if it
6748         is known.
6750 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
6752         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
6753         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
6754         (find_inc): Likewise.
6755         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
6756         swapping.
6757         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
6758         * df-scan.c (df_swap_refs): Remove.
6759         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
6760         * dominance.c (link_roots): Use std::swap instead of manually swapping.
6761         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
6762         * fold-const.c (fold_relational_const): Likewise.
6763         * genattrtab.c (simplify_test_exp): Likewise.
6764         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
6765         gimple_simplify): Likewise.
6766         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
6767         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
6768         * ipa-devirt.c (add_type_duplicate): Likewise.
6769         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
6770         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
6771         * lra.c (lra_create_copy): Likewise.
6772         * lto-streamer-out.c (DFS::DFS): Likewise.
6773         * modulo-sched.c (get_sched_window): Likewise.
6774         * omega.c (omega_pretty_print_problem): Likewise.
6775         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
6776         * reload1.c (reloads_unique_chain_p): Likewise.
6777         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
6778         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
6779         use std::swap.
6780         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
6781         manually swapping.
6782         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
6783         predicate_mem_writes): Likewise.
6784         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
6785         * tree-predcom.c (combine_chains): Likewise.
6786         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
6787         refs_may_alias_p_1): Likewise.
6788         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
6789         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
6790         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
6791         number_of_iterations_cond): Likewise.
6792         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6793         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6794         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6795         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6796         * tree-vrp.c (extract_range_from_binary_expr_1,
6797         extract_range_from_unary_expr_1): Likewise.
6799 2015-06-20  Marek Polacek  <polacek@redhat.com>
6801         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
6803 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6805         PR target/66591
6806         * config/sh/sh.c (prepare_move_operands): Replace subreg
6807         index term with R0 for base and index addressing.
6809 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
6811         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
6812         op1 is an fp zero.
6813         (movsf_aarch64): Change condition from register_operand to
6814         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
6815         load1.  Change type for alternative 7 to store1.
6816         (movdf_aarch64): Likewise.
6818 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
6820         * config/vax/vax.md: Adjust sign/zero extend patterns to
6821         handle SUBREGs in operands[1].
6823 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6825         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
6826         of manually swapping.
6827         (expand_vec_perm_interleave2): Likewise.
6829 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
6831         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
6832         reuse bounds created for abnormal ssa names.
6834 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
6836         * config/nvptx/nvptx.md (allocate_stack): Rename to...
6837         (allocate_stack_<mode>): ... this, and add :P on both
6838         match_operand and unspec.
6839         (allocate_stack): New expander.
6841 2015-06-19  Christian Bruel  <christian.bruel@st.com>
6843         PR target/66541
6844         PR target/52144
6845         * config/arm/arm.c (arm_set_current_function): Handle
6846         explicit default options.
6848 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
6850         * config/i386/i386.md (*movsicc_noc_zext): New insn.
6851         (zero-extended cmove with mem peephole2): New pattern.
6852         (cmove with mem peephole2): Merge patterns.
6854 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
6856         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
6858 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
6860         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
6861         * config/mips/mips.md (*madd4<mode>): Ditto.
6862         (*nmadd3<mode>) Ditto.
6863         (*nmadd4<mode>_fastmath): Ditto.
6864         (*nmadd3<mode>_fastmath): Ditto.
6865         (*nmsub4<mode>): Ditto.
6866         (*nmsub3<mode>): Ditto.
6867         (*nmsub4<mode>_fastmath): Ditto.
6868         (*nmsub3<mode>_fastmath): Ditto.
6870 2015-06-18  Michael Matz  <matz@suse.de>
6872         PR middle-end/66253
6873         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
6874         grouped strided stores.
6875         (vectorizable_load): Don't use the DR from first_stmt in
6876         the non-SLP grouped strided case.
6878 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6880         PR target/66569
6881         * function.c (assign_bounds): Add arguments assign_regs,
6882         assign_special, assign_bt.
6883         (assign_parms): For vararg functions handle bounds in BT
6884         and special slots after incoming vararg bounds.
6886 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6888         PR middle-end/66568
6889         * cfgexpand.c (expand_return): Handle missing bounds.
6890         (expand_gimple_stmt_1): Likewise.
6891         * tree-chkp.c (chkp_expand_zero_bounds): New.
6892         * tree-chkp.h (chkp_expand_zero_bounds): New.
6894 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6896         PR middle-end/66567
6897         * ipa-chkp.c (chkp_maybe_create_clone): Require
6898         functions to be instrumentable.
6899         * tree-chkp.c (chkp_replace_function_pointer): Use
6900         chkp_instrumentable_p instead of attribute check.
6902 2015-06-18  Richard Biener  <rguenther@suse.de>
6904         PR tree-optimization/66510
6905         * tree-vect-stmts.c (vectorizable_load): Properly compute the
6906         number of vector loads for SLP permuted loads.
6907         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
6908         check the stride for loop vectorization.
6909         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
6910         vectorization factor.
6911         (vect_analyze_group_access): If the group size is not a power
6912         of two require a epilogue loop.
6913         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
6914         compute and optimizing and alias test pruning after final
6915         vectorization factor computation.
6916         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
6917         vector alignment.
6918         (vect_transform_slp_perm_load): Properly compute the original
6919         number of vector load stmts.
6921 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
6923         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
6924         "unlikely character , in @var" warning.
6926 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
6928         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
6929         (ix86_function_arg_advance): Ditto.
6930         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
6932 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
6934         * function.h (struct rtl_data): Remove struct and accessor macros.
6935         * emit-rtl.h (struct rtl_data): Relocate to here.
6936         * Makefile.in (GTFILES): Add emit-rtl.h.
6937         * df-core.c: Include emit-rtl.h.
6938         * genattrtab.c: Likewise.
6939         * genconditions.c: Likewise.
6940         * genpreds.c: Likewise.
6941         * genrecog.c: Likewise.
6942         * regcprop.c: Likewise.
6943         * resource.c: Likewise.
6944         * sched-rgn.c: Likewise.
6945         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6946         * config/i386/winnt.c: Likewise.
6948 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
6950         PR middle-end/66429
6951         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
6952         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
6953         and has_force_vectorize_loops flags from cfun into
6954         child_cfun.
6955         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
6956         if simduid is non-NULL.
6957         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
6958         * passes.def (pass_simduid_cleanup): Add new pass after loop
6959         passes.
6960         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
6961         indirection from htab argument's type.
6962         (shrink_simd_arrays): New function.
6963         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
6964         Don't call adjust_simduid_builtins if there are no loops.
6965         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
6966         (pass_simduid_cleanup::execute): New method.
6967         (make_pass_simduid_cleanup): New function.
6969 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
6971         * tree-core.h (tree_target_option): Make opts field a pointer to a
6972         cl_target_option instead of an instance of the struct.
6973         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
6974         the structure.
6975         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
6976         TARGET_OPTION_NODE.
6977         (copy_node_stat): Allocate and copy struct cl_target_option.
6979 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
6981         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
6982         Remove conditional exposure of prototypes.
6983         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
6984         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
6985         definitions in tree.h with functions.
6986         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
6987         anon_aggrname_p.
6988         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
6990 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
6992         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
6993         (*cmp<mode>_signed): ... this.
6994         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
6995         (*cmp<mode>_unsigned): ... this.  Remove %b.
6997 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
6999         * coretypes.h: Include input.h and as-a.h.
7000         * rtl.h: Include input.h and as-a.h for generator files.
7001         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
7002         * vec.c: Don't include diagnostic-core.h.
7003         * alias.c: Do not include input.h, line-map.h or is-a.h.
7004         * asan.c: Likewise.
7005         * attribs.c: Likewise.
7006         * auto-inc-dec.c: Likewise.
7007         * auto-profile.c: Likewise.
7008         * bb-reorder.c: Likewise.
7009         * bt-load.c: Likewise.
7010         * builtins.c: Likewise.
7011         * caller-save.c: Likewise.
7012         * calls.c: Likewise.
7013         * ccmp.c: Likewise.
7014         * cfg.c: Likewise.
7015         * cfganal.c: Likewise.
7016         * cfgbuild.c: Likewise.
7017         * cfgcleanup.c: Likewise.
7018         * cfgexpand.c: Likewise.
7019         * cfghooks.c: Likewise.
7020         * cfgloop.c: Likewise.
7021         * cfgloop.h: Likewise.
7022         * cfgloopanal.c: Likewise.
7023         * cfgloopmanip.c: Likewise.
7024         * cfgrtl.c: Likewise.
7025         * cgraph.c: Likewise.
7026         * cgraphbuild.c: Likewise.
7027         * cgraphclones.c: Likewise.
7028         * cgraphunit.c: Likewise.
7029         * cilk-common.c: Likewise.
7030         * combine-stack-adj.c: Likewise.
7031         * combine.c: Likewise.
7032         * compare-elim.c: Likewise.
7033         * convert.c: Likewise.
7034         * coverage.c: Likewise.
7035         * cppbuiltin.c: Likewise.
7036         * cprop.c: Likewise.
7037         * cse.c: Likewise.
7038         * cselib.c: Likewise.
7039         * data-streamer-in.c: Likewise.
7040         * data-streamer-out.c: Likewise.
7041         * data-streamer.c: Likewise.
7042         * dbxout.c: Likewise.
7043         * dce.c: Likewise.
7044         * ddg.c: Likewise.
7045         * debug.c: Likewise.
7046         * df-core.c: Likewise.
7047         * df-problems.c: Likewise.
7048         * df-scan.c: Likewise.
7049         * df.h: Likewise.
7050         * dfp.c: Likewise.
7051         * diagnostic-core.h: Likewise.
7052         * diagnostic.c: Likewise.
7053         * dojump.c: Likewise.
7054         * dominance.c: Likewise.
7055         * domwalk.c: Likewise.
7056         * double-int.c: Likewise.
7057         * dse.c: Likewise.
7058         * dumpfile.c: Likewise.
7059         * dumpfile.h: Likewise.
7060         * dwarf2asm.c: Likewise.
7061         * dwarf2cfi.c: Likewise.
7062         * dwarf2out.c: Likewise.
7063         * emit-rtl.c: Likewise.
7064         * et-forest.c: Likewise.
7065         * except.c: Likewise.
7066         * explow.c: Likewise.
7067         * expmed.c: Likewise.
7068         * expr.c: Likewise.
7069         * final.c: Likewise.
7070         * fixed-value.c: Likewise.
7071         * fold-const.c: Likewise.
7072         * function.c: Likewise.
7073         * fwprop.c: Likewise.
7074         * gcc-plugin.h: Likewise.
7075         * gcse.c: Likewise.
7076         * generic-match-head.c: Likewise.
7077         * ggc-page.c: Likewise.
7078         * gimple-builder.c: Likewise.
7079         * gimple-expr.c: Likewise.
7080         * gimple-fold.c: Likewise.
7081         * gimple-iterator.c: Likewise.
7082         * gimple-low.c: Likewise.
7083         * gimple-match-head.c: Likewise.
7084         * gimple-pretty-print.c: Likewise.
7085         * gimple-ssa-isolate-paths.c: Likewise.
7086         * gimple-ssa-strength-reduction.c: Likewise.
7087         * gimple-streamer-in.c: Likewise.
7088         * gimple-streamer-out.c: Likewise.
7089         * gimple-streamer.h: Likewise.
7090         * gimple-walk.c: Likewise.
7091         * gimple.c: Likewise.
7092         * gimplify-me.c: Likewise.
7093         * gimplify.c: Likewise.
7094         * godump.c: Likewise.
7095         * graph.c: Likewise.
7096         * graphite-blocking.c: Likewise.
7097         * graphite-dependences.c: Likewise.
7098         * graphite-interchange.c: Likewise.
7099         * graphite-isl-ast-to-gimple.c: Likewise.
7100         * graphite-optimize-isl.c: Likewise.
7101         * graphite-poly.c: Likewise.
7102         * graphite-scop-detection.c: Likewise.
7103         * graphite-sese-to-poly.c: Likewise.
7104         * graphite.c: Likewise.
7105         * haifa-sched.c: Likewise.
7106         * hw-doloop.c: Likewise.
7107         * ifcvt.c: Likewise.
7108         * init-regs.c: Likewise.
7109         * input.c: Likewise.
7110         * internal-fn.c: Likewise.
7111         * ipa-chkp.c: Likewise.
7112         * ipa-comdats.c: Likewise.
7113         * ipa-cp.c: Likewise.
7114         * ipa-devirt.c: Likewise.
7115         * ipa-icf-gimple.c: Likewise.
7116         * ipa-icf.c: Likewise.
7117         * ipa-inline-analysis.c: Likewise.
7118         * ipa-inline-transform.c: Likewise.
7119         * ipa-inline.c: Likewise.
7120         * ipa-polymorphic-call.c: Likewise.
7121         * ipa-profile.c: Likewise.
7122         * ipa-prop.c: Likewise.
7123         * ipa-pure-const.c: Likewise.
7124         * ipa-ref.c: Likewise.
7125         * ipa-reference.c: Likewise.
7126         * ipa-split.c: Likewise.
7127         * ipa-utils.c: Likewise.
7128         * ipa-visibility.c: Likewise.
7129         * ipa.c: Likewise.
7130         * ira-build.c: Likewise.
7131         * ira-color.c: Likewise.
7132         * ira-conflicts.c: Likewise.
7133         * ira-costs.c: Likewise.
7134         * ira-emit.c: Likewise.
7135         * ira-lives.c: Likewise.
7136         * ira.c: Likewise.
7137         * jump.c: Likewise.
7138         * langhooks.c: Likewise.
7139         * lcm.c: Likewise.
7140         * loop-doloop.c: Likewise.
7141         * loop-init.c: Likewise.
7142         * loop-invariant.c: Likewise.
7143         * loop-iv.c: Likewise.
7144         * loop-unroll.c: Likewise.
7145         * lower-subreg.c: Likewise.
7146         * lra-assigns.c: Likewise.
7147         * lra-coalesce.c: Likewise.
7148         * lra-constraints.c: Likewise.
7149         * lra-eliminations.c: Likewise.
7150         * lra-lives.c: Likewise.
7151         * lra-remat.c: Likewise.
7152         * lra-spills.c: Likewise.
7153         * lra.c: Likewise.
7154         * lto-cgraph.c: Likewise.
7155         * lto-compress.c: Likewise.
7156         * lto-opts.c: Likewise.
7157         * lto-section-in.c: Likewise.
7158         * lto-section-out.c: Likewise.
7159         * lto-streamer-in.c: Likewise.
7160         * lto-streamer-out.c: Likewise.
7161         * lto-streamer.c: Likewise.
7162         * mcf.c: Likewise.
7163         * mode-switching.c: Likewise.
7164         * modulo-sched.c: Likewise.
7165         * omega.c: Likewise.
7166         * omp-low.c: Likewise.
7167         * optabs.c: Likewise.
7168         * opts-global.c: Likewise.
7169         * opts.h: Likewise.
7170         * passes.c: Likewise.
7171         * plugin.c: Likewise.
7172         * postreload-gcse.c: Likewise.
7173         * postreload.c: Likewise.
7174         * predict.c: Likewise.
7175         * pretty-print.h: Likewise.
7176         * print-rtl.c: Likewise.
7177         * print-tree.c: Likewise.
7178         * profile.c: Likewise.
7179         * real.c: Likewise.
7180         * realmpfr.c: Likewise.
7181         * recog.c: Likewise.
7182         * ree.c: Likewise.
7183         * reg-stack.c: Likewise.
7184         * regcprop.c: Likewise.
7185         * reginfo.c: Likewise.
7186         * regrename.c: Likewise.
7187         * regstat.c: Likewise.
7188         * reload.c: Likewise.
7189         * reload1.c: Likewise.
7190         * reorg.c: Likewise.
7191         * resource.c: Likewise.
7192         * rtl-chkp.c: Likewise.
7193         * rtl-error.c: Likewise.
7194         * rtlanal.c: Likewise.
7195         * rtlhooks.c: Likewise.
7196         * sanopt.c: Likewise.
7197         * sched-deps.c: Likewise.
7198         * sched-ebb.c: Likewise.
7199         * sched-rgn.c: Likewise.
7200         * sched-vis.c: Likewise.
7201         * sdbout.c: Likewise.
7202         * sel-sched-dump.c: Likewise.
7203         * sel-sched-ir.c: Likewise.
7204         * sel-sched.c: Likewise.
7205         * sese.c: Likewise.
7206         * shrink-wrap.c: Likewise.
7207         * simplify-rtx.c: Likewise.
7208         * stack-ptr-mod.c: Likewise.
7209         * statistics.c: Likewise.
7210         * stmt.c: Likewise.
7211         * stor-layout.c: Likewise.
7212         * store-motion.c: Likewise.
7213         * streamer-hooks.c: Likewise.
7214         * stringpool.c: Likewise.
7215         * symtab.c: Likewise.
7216         * target-globals.c: Likewise.
7217         * targhooks.c: Likewise.
7218         * toplev.c: Likewise.
7219         * tracer.c: Likewise.
7220         * trans-mem.c: Likewise.
7221         * tree-affine.c: Likewise.
7222         * tree-browser.c: Likewise.
7223         * tree-call-cdce.c: Likewise.
7224         * tree-cfg.c: Likewise.
7225         * tree-cfgcleanup.c: Likewise.
7226         * tree-chkp-opt.c: Likewise.
7227         * tree-chkp.c: Likewise.
7228         * tree-chrec.c: Likewise.
7229         * tree-complex.c: Likewise.
7230         * tree-data-ref.c: Likewise.
7231         * tree-dfa.c: Likewise.
7232         * tree-diagnostic.c: Likewise.
7233         * tree-dump.c: Likewise.
7234         * tree-eh.c: Likewise.
7235         * tree-emutls.c: Likewise.
7236         * tree-if-conv.c: Likewise.
7237         * tree-inline.c: Likewise.
7238         * tree-into-ssa.c: Likewise.
7239         * tree-iterator.c: Likewise.
7240         * tree-loop-distribution.c: Likewise.
7241         * tree-nested.c: Likewise.
7242         * tree-nrv.c: Likewise.
7243         * tree-object-size.c: Likewise.
7244         * tree-outof-ssa.c: Likewise.
7245         * tree-parloops.c: Likewise.
7246         * tree-phinodes.c: Likewise.
7247         * tree-predcom.c: Likewise.
7248         * tree-pretty-print.c: Likewise.
7249         * tree-profile.c: Likewise.
7250         * tree-scalar-evolution.c: Likewise.
7251         * tree-sra.c: Likewise.
7252         * tree-ssa-address.c: Likewise.
7253         * tree-ssa-alias.c: Likewise.
7254         * tree-ssa-ccp.c: Likewise.
7255         * tree-ssa-coalesce.c: Likewise.
7256         * tree-ssa-copy.c: Likewise.
7257         * tree-ssa-copyrename.c: Likewise.
7258         * tree-ssa-dce.c: Likewise.
7259         * tree-ssa-dom.c: Likewise.
7260         * tree-ssa-dse.c: Likewise.
7261         * tree-ssa-forwprop.c: Likewise.
7262         * tree-ssa-ifcombine.c: Likewise.
7263         * tree-ssa-live.c: Likewise.
7264         * tree-ssa-loop-ch.c: Likewise.
7265         * tree-ssa-loop-im.c: Likewise.
7266         * tree-ssa-loop-ivcanon.c: Likewise.
7267         * tree-ssa-loop-ivopts.c: Likewise.
7268         * tree-ssa-loop-manip.c: Likewise.
7269         * tree-ssa-loop-niter.c: Likewise.
7270         * tree-ssa-loop-prefetch.c: Likewise.
7271         * tree-ssa-loop-unswitch.c: Likewise.
7272         * tree-ssa-loop.c: Likewise.
7273         * tree-ssa-math-opts.c: Likewise.
7274         * tree-ssa-operands.c: Likewise.
7275         * tree-ssa-phiopt.c: Likewise.
7276         * tree-ssa-phiprop.c: Likewise.
7277         * tree-ssa-pre.c: Likewise.
7278         * tree-ssa-propagate.c: Likewise.
7279         * tree-ssa-reassoc.c: Likewise.
7280         * tree-ssa-sccvn.c: Likewise.
7281         * tree-ssa-scopedtables.c: Likewise.
7282         * tree-ssa-sink.c: Likewise.
7283         * tree-ssa-strlen.c: Likewise.
7284         * tree-ssa-structalias.c: Likewise.
7285         * tree-ssa-tail-merge.c: Likewise.
7286         * tree-ssa-ter.c: Likewise.
7287         * tree-ssa-threadedge.c: Likewise.
7288         * tree-ssa-threadupdate.c: Likewise.
7289         * tree-ssa-uncprop.c: Likewise.
7290         * tree-ssa-uninit.c: Likewise.
7291         * tree-ssa.c: Likewise.
7292         * tree-ssanames.c: Likewise.
7293         * tree-stdarg.c: Likewise.
7294         * tree-streamer-in.c: Likewise.
7295         * tree-streamer-out.c: Likewise.
7296         * tree-streamer.c: Likewise.
7297         * tree-switch-conversion.c: Likewise.
7298         * tree-tailcall.c: Likewise.
7299         * tree-vect-data-refs.c: Likewise.
7300         * tree-vect-generic.c: Likewise.
7301         * tree-vect-loop-manip.c: Likewise.
7302         * tree-vect-loop.c: Likewise.
7303         * tree-vect-patterns.c: Likewise.
7304         * tree-vect-slp.c: Likewise.
7305         * tree-vect-stmts.c: Likewise.
7306         * tree-vectorizer.c: Likewise.
7307         * tree-vrp.c: Likewise.
7308         * tree.c: Likewise.
7309         * tsan.c: Likewise.
7310         * ubsan.c: Likewise.
7311         * valtrack.c: Likewise.
7312         * value-prof.c: Likewise.
7313         * var-tracking.c: Likewise.
7314         * varasm.c: Likewise.
7315         * varpool.c: Likewise.
7316         * vmsdbgout.c: Likewise.
7317         * vtable-verify.c: Likewise.
7318         * web.c: Likewise.
7319         * wide-int.cc: Likewise.
7320         * xcoffout.c: Likewise.
7321         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
7322         * common/common-targhooks.c: Likewise.
7323         * config/aarch64/aarch64-builtins.c: Likewise.
7324         * config/aarch64/aarch64.c: Likewise.
7325         * config/alpha/alpha.c: Likewise.
7326         * config/arc/arc.c: Likewise.
7327         * config/arm/aarch-common.c: Likewise.
7328         * config/arm/arm-builtins.c: Likewise.
7329         * config/arm/arm-c.c: Likewise.
7330         * config/arm/arm.c: Likewise.
7331         * config/avr/avr-c.c: Likewise.
7332         * config/avr/avr-log.c: Likewise.
7333         * config/avr/avr.c: Likewise.
7334         * config/bfin/bfin.c: Likewise.
7335         * config/c6x/c6x.c: Likewise.
7336         * config/cr16/cr16.c: Likewise.
7337         * config/cris/cris.c: Likewise.
7338         * config/darwin-c.c: Likewise.
7339         * config/darwin.c: Likewise.
7340         * config/default-c.c: Likewise.
7341         * config/epiphany/epiphany.c: Likewise.
7342         * config/epiphany/mode-switch-use.c: Likewise.
7343         * config/epiphany/resolve-sw-modes.c: Likewise.
7344         * config/fr30/fr30.c: Likewise.
7345         * config/frv/frv.c: Likewise.
7346         * config/ft32/ft32.c: Likewise.
7347         * config/glibc-c.c: Likewise.
7348         * config/h8300/h8300.c: Likewise.
7349         * config/i386/i386-c.c: Likewise.
7350         * config/i386/i386.c: Likewise.
7351         * config/i386/msformat-c.c: Likewise.
7352         * config/i386/winnt-cxx.c: Likewise.
7353         * config/i386/winnt-stubs.c: Likewise.
7354         * config/i386/winnt.c: Likewise.
7355         * config/ia64/ia64-c.c: Likewise.
7356         * config/ia64/ia64.c: Likewise.
7357         * config/iq2000/iq2000.c: Likewise.
7358         * config/lm32/lm32.c: Likewise.
7359         * config/m32c/m32c-pragma.c: Likewise.
7360         * config/m32c/m32c.c: Likewise.
7361         * config/m32r/m32r.c: Likewise.
7362         * config/m68k/m68k.c: Likewise.
7363         * config/mcore/mcore.c: Likewise.
7364         * config/mep/mep-pragma.c: Likewise.
7365         * config/mep/mep.c: Likewise.
7366         * config/microblaze/microblaze-c.c: Likewise.
7367         * config/microblaze/microblaze.c: Likewise.
7368         * config/mips/mips.c: Likewise.
7369         * config/mmix/mmix.c: Likewise.
7370         * config/mn10300/mn10300.c: Likewise.
7371         * config/moxie/moxie.c: Likewise.
7372         * config/msp430/msp430-c.c: Likewise.
7373         * config/msp430/msp430.c: Likewise.
7374         * config/nds32/nds32-cost.c: Likewise.
7375         * config/nds32/nds32-fp-as-gp.c: Likewise.
7376         * config/nds32/nds32-intrinsic.c: Likewise.
7377         * config/nds32/nds32-isr.c: Likewise.
7378         * config/nds32/nds32-md-auxiliary.c: Likewise.
7379         * config/nds32/nds32-memory-manipulation.c: Likewise.
7380         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7381         * config/nds32/nds32-predicates.c: Likewise.
7382         * config/nds32/nds32.c: Likewise.
7383         * config/nios2/nios2.c: Likewise.
7384         * config/nvptx/nvptx.c: Likewise.
7385         * config/pa/pa.c: Likewise.
7386         * config/pdp11/pdp11.c: Likewise.
7387         * config/rl78/rl78-c.c: Likewise.
7388         * config/rl78/rl78.c: Likewise.
7389         * config/rs6000/rs6000-c.c: Likewise.
7390         * config/rs6000/rs6000.c: Likewise.
7391         * config/rx/rx.c: Likewise.
7392         * config/s390/s390-c.c: Likewise.
7393         * config/s390/s390.c: Likewise.
7394         * config/sh/sh-c.c: Likewise.
7395         * config/sh/sh-mem.cc: Likewise.
7396         * config/sh/sh.c: Likewise.
7397         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7398         * config/sh/sh_treg_combine.cc: Likewise.
7399         * config/sol2-c.c: Likewise.
7400         * config/sol2-cxx.c: Likewise.
7401         * config/sol2-stubs.c: Likewise.
7402         * config/sol2.c: Likewise.
7403         * config/sparc/sparc-c.c: Likewise.
7404         * config/sparc/sparc.c: Likewise.
7405         * config/spu/spu-c.c: Likewise.
7406         * config/spu/spu.c: Likewise.
7407         * config/stormy16/stormy16.c: Likewise.
7408         * config/tilegx/mul-tables.c: Likewise.
7409         * config/tilegx/tilegx-c.c: Likewise.
7410         * config/tilegx/tilegx.c: Likewise.
7411         * config/tilepro/mul-tables.c: Likewise.
7412         * config/tilepro/tilepro-c.c: Likewise.
7413         * config/tilepro/tilepro.c: Likewise.
7414         * config/v850/v850-c.c: Likewise.
7415         * config/v850/v850.c: Likewise.
7416         * config/vax/vax.c: Likewise.
7417         * config/visium/visium.c: Likewise.
7418         * config/vms/vms-c.c: Likewise.
7419         * config/vms/vms.c: Likewise.
7420         * config/vxworks.c: Likewise.
7421         * config/winnt-c.c: Likewise.
7422         * config/xtensa/xtensa.c: Likewise.
7424 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
7426         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
7427         function.
7428         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
7430 2015-06-17  Richard Biener  <rguenther@suse.de>
7432         PR tree-optimization/66251
7433         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
7434         stmts for SLP strided stores.
7436         Revert
7437         2015-05-22  Richard Biener  <rguenther@suse.de>
7439         PR tree-optimization/66251
7440         * tree-vect-stmts.c (vectorizable_conversion): Properly
7441         set STMT_VINFO_VEC_STMT even for the SLP case.
7443         2015-05-26  Michael Matz  <matz@suse.de>
7445         PR middle-end/66251
7446         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
7447         STMT_VINFO_VEC_STMT, also with SLP.
7449 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
7451         PR target/56766
7452         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
7453         (*avx_addsubv4df3_1s): Ditto.
7454         (*sse3_addsubv2df3_1): Ditto.
7455         (*sse3_addsubv2df3_1s): Ditto.
7456         (*avx_addsubv8sf3_1): Ditto.
7457         (*avx_addsubv8sf3_1s): Ditto.
7458         (*sse3_addsubv4sf3_1): Ditto.
7459         (*sse3_addsubv4sf3_1s): Ditto.
7461 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
7463         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
7464         (SYSROOT_SUFFIX_SPEC): Update.
7465         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
7466         (STARTFILE_PREFIX_SPEC): Update.
7467         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
7468         (MULTILIB_REQUIRED): New.
7469         (MULTILIB_OSDIRNAMES): New.
7470         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
7471         (MULTILIB_REQUIRED): New.
7472         (MULTILIB_OSDIRNAMES): New.
7474 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
7476         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
7477         * config/aarch64/aarch64-options-extensions.def: Update "fP",
7478         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
7479         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
7480         (AARCH64_FL_PAN): New.
7481         (AARCH64_FL_LOR): New.
7482         (AARCH64_FL_RDMA): New.
7483         (AARCH64_FL_FOR_ARCH8_1): New.
7484         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
7485         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
7487 2015-06-16  Martin Liska  <mliska@suse.cz>
7489         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
7490         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
7491         guard.
7493 2015-06-16  Richard Biener  <rguenther@suse.de>
7495         * tree-vect-stmts.c (vectorizable_store): Adjust.
7496         (vectorizable_load): Likewise.
7497         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7498         Simplify.
7499         (vect_create_data_ref_ptr): Likewise.
7500         (bump_vector_ptr): Adjust.
7502 2015-06-16  Richard Biener  <rguenther@suse.de>
7504         * tree-vect-stmts.c (vectorizable_load): Properly start loads
7505         with the first element if this is grouped loads.
7507 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
7509         * config/arm/arm-protos.h (struct tune_params): Rename
7510         log_op_non_sc to log_op_non_short_circuit, and rename enum
7511         values to expand SC to SHORT_CIRCUIT.
7512         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
7513         to LOG_OP_NON_SHORT_CIRCUIT.
7514         (arm_fastmul_tune):Likewise
7515         (arm_strongarm_tune): Likewise.
7516         (arm_xscale_tune): Likewise.
7517         (arm_9e_tune): Likewise.
7518         (arm_marvell_pj4_tune): Likewise.
7519         (arm_v6t2_tune): Likewise.
7520         (arm_cortex_tune): Likewise.
7521         (arm_cortex_a8_tune): Likewise.
7522         (arm_cortex_a7_tune): Likewise.
7523         (arm_cortex_a15_tune): Likewise.
7524         (arm_cortex_a53_tune): Likewise.
7525         (arm_cortex_a57_tune): Likewise.
7526         (arm_xgene1_tune): Likewise.
7527         (arm_cortex_a5_tune): Likewise.
7528         (arm_cortex_a9_tune): Likewise.
7529         (arm_cortex_a12_tune): Likewise.
7530         (arm_v7m_tune): Likewise.
7531         (arm_cortex_m7_tune): Likewise.
7532         (arm_v6m_tune): Likewise.
7533         (arm_fa726te_tune): Likewise.
7535 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
7537         * altivec.md: Delete UNSPEC_VMLADDUHM.
7538         (mulv4si3_p8): New pattern.
7539         (mulv4si3): Use it for POWER8.
7540         (mulv8hi3): Use vmladduhm with zero addend.
7541         (altivec_vmladduhm): Descriptive RTL.
7543 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
7545         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
7546         to use neon_move instead of mov_imm.
7547         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
7548         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
7550         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
7551         aarch64_float_const_zero_rtx_p check before TFmode check.
7552         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
7553         an fp zero.
7554         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
7555         code and attributes to match.  Change condition from register_operand
7556         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
7557         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
7558         to store2.
7560 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
7562         PR debug/66535
7563         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
7564         there is no parent.
7566 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
7568         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
7569         HOST_WIDE_INT parameter.
7571 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
7573         PR ipa/66181
7574         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
7575         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
7576         TYPE_NO_FORCE_BLK.
7577         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7579 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
7581         * rtl.h (classify_insn): Declare.
7582         * emit-rtl.c (classify_insn): Move to...
7583         * rtl.c: ...here and add generator support.
7584         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
7585         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
7586         * genemit.c (gen_emit_seq): New function.
7587         (gen_expand, gen_split): Use it.
7589 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
7591         * tree.c (make_vector_stat): Fix comment to state that the
7592         function returns a VECTOR_CST.
7594 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
7596         * gensupport.h (add_implicit_parallel): Declare.
7597         * genrecog.c (add_implicit_parallel): Move to...
7598         * gensupport.c (add_implicit_parallel): ...here.
7599         (process_one_cond_exec): Use it.
7600         * genemit.c (gen_insn): Likewise.
7602 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
7604         PR bootstrap/66448
7605         * passes.c (rest_of_decl_compilation): Do not register globals for
7606         early debug if they are declared in built-ins.
7608 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
7610         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
7612 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7614         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
7615         manually swapping.
7616         (noce_try_cmove_arith): Likewise.
7617         (noce_get_alt_condition): Likewise.
7619 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7621         * common/config/i386/i386-common.c
7622         (OPTION_MASK_ISA_MWAITX_SET): New.
7623         (ix86_handle_option): Handle mwaitx.
7624         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
7625         (x86_64-*-*): Likewise.
7626         * config/i386/mwaitxintrin.h: New header.
7627         * config/i386/cpuid.h (bit_MWAITX):  Define.
7628         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7629         MWAITX support.
7630         * config/i386/i386.opt (mwaitx): New.
7631         * config/i386/i386-builtin-types.def
7632         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
7633         * config/i386/i386-c.c: Define __MWAITX__ if needed.
7634         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
7635         (PTA_MWAITX): New.
7636         (ix86_option_override_internal): Handle new option.
7637         (processor_alias_table): Added PTA_MWAITX.
7638         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
7639         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
7640         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
7641         IX86_BUILTIN_MONITORX  built-ins.
7642         * config/i386/i386.h (TARGET_MWAITX): New.
7643         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
7644         UNSPEC_MONITORX.
7645         (mwaitx):  New pattern.
7646         (monitorx_<mode>): New pattern.
7647         * config/i386/x86intrin.h: Include mwaitxintrin.h.
7648         * doc/extend.texi: Document monitorx and mwaitx builtins.
7649         * doc/invoke.texi: Document -mmwaitx option.
7651 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
7653         * emit-rtl.c (need_atomic_barrier_p): Mask model with
7654         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
7656 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
7658         * dbxout.c (xcoff_debug_hooks): Provide a function for
7659         register_main_translation_unit hook.
7661 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
7663         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
7664         variants cases from switch.
7665         (rs6000_post_atomic_barrier): Same.
7666         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
7667         (rs6000_expand_atomic_exchange): Same.
7668         (rs6000_expand_atomic_op): Same.
7669         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
7670         SYNC variants cases from switch.
7671         (atomic_load): Same.
7672         (atomic_store): Same.
7674 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
7676         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
7677         CONST_INT for goto.
7679 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
7681         PR bootstrap/66448
7682         * dwarf2out.c (check_die): Check for common duplicate attributes.
7683         (add_location_or_const_value_attribute): Do not add duplicate
7684         attributes.
7685         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
7686         time around.
7687         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
7688         (gen_type_die_with_usage): Call check_die.
7689         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
7691 2015-06-11  Jason Merrill  <jason@redhat.com>
7693         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
7694         dies.
7696 2015-06-11  Marek Polacek  <polacek@redhat.com>
7698         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
7700 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
7702         PR bootstrap/66252
7703         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
7704         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
7705         (*addx_extend_sp32): Fix pasto.
7706         (*subx_extend): Rename into...
7707         (*subx_extend_sp32): ...this.
7708         (*adddi3_extend_sp32): Add earlyclobber.
7709         (*subdi3_insn_sp32): Likewise.
7710         (*subdi3_extend_sp32): Likewise.
7711         (*and_not_di_sp32): Likewise.
7712         (*or_not_di_sp32): Likewise.
7713         (*xor_not_di_sp32): Likewise.
7714         (*negdi2_sp32): Likewise.
7715         (*one_cmpldi2_sp32): Likewise.
7717 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
7719         * debug.h (struct gcc_debug_hooks): Add a
7720         register_main_translation_unit hook.
7721         * debug.c (do_nothing_debug_hooks): Provide a function for this
7722         new hook.
7723         * dbxout.c (dbx_debug_hooks): Likewise.
7724         * sdbout.c (sdb_debug_hooks): Likewise.
7725         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7726         * dwarf2out.c (main_translation_unit): New global variable.
7727         (dwarf2out_register_main_translation_unit): New function
7728         implementing the new hook.
7729         (dwarf2_debug_hooks): Assign
7730         dwarf2out_register_main_translation_unit to this new hook.
7731         (dwarf2out_init): Associate any main translation unit to
7732         comp_unit_die ().
7734 2015-06-11  Marek Polacek  <polacek@redhat.com>
7736         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
7738 2015-06-11  Marek Polacek  <polacek@redhat.com>
7740         * match.pd: Use single_use throughout.
7742 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7744         * config/arm/arm.c (arm_option_params_internal): When optimising
7745         for speed set max_insns_skipped when arm_restrict_it.
7747 2015-06-11  Christian Bruel  <christian.bruel@st.com>
7749         PR target/52144
7750         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
7751          macros in ...
7752         (arm_cpu_builtins): New function.
7753         (arm_pragma_target_parse): Call arm_cpu_builtins.
7754         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
7755         (arm_register_target_pragmas): Likewise.
7756         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
7757          Call arm_register_target_pragmas.
7758         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
7759         (arm_pragma_target_parse): Likewise.
7761 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
7763         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
7764         of the second operand.
7766 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
7768         PR target/66473
7769         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
7770         to prepare mask operand for AVX512 modes.
7772 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
7774         PR target/66474
7775         * doc/md.texi (Machine Constraints): Document that on the PowerPC
7776         if you use a constraint that targets a VSX register, you must use
7777         %x<n> in the template.
7779 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
7781         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
7782         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
7783         (define_insn "trap"): New definition.
7785 2015-06-10  Richard Biener  <rguenther@suse.de>
7787         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
7788         out from ...
7789         (vect_supported_load_permutation_p): ... here.  Handle
7790         supportable permutations in reductions.
7791         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
7792         for vectorizing strided group loads.
7794 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
7796         PR target/66470
7797         * config/i386/i386.c (ix86_split_long_move): For collisions
7798         involving direct tls segment refs, move the UNSPEC_TP possibly
7799         wrapped in ZERO_EXTEND out of the address for lea, to each of
7800         the memory loads.
7802 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7804         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
7805         dmb sy. Adjust tabs.
7807 2015-06-10  Tom de Vries  <tom@codesourcery.com>
7809         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
7811 2015-06-10  Martin Liska  <mliska@suse.cz>
7813         PR bootstrap/66471
7814         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
7815         all enum values in mem_alloc_origin.
7816         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
7817         name.
7818         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
7819         * bitmap.c (bitmap_register): Likewise.
7820         (dump_bitmap_statistics): Likewise.
7821         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7822         (ggc_record_overhead): Likewise.
7823         * hash-map.h: Likewise.
7824         * hash-set.h: Likewise.
7825         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
7826         * hash-table.h: Likewise.
7827         * vec.c (vec_prefix::register_overhead): Likewise.
7828         (vec_prefix::release_overhead): Likewise.
7829         (dump_vec_loc_statistics): Likewise.
7831 2015-06-09  Christian Bruel  <christian.bruel@st.com>
7833         PR target/52144
7834         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
7835         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
7836         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
7837         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
7838         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
7839         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
7840         (arm_valid_target_attribute_p): Likewise.
7841         (arm_set_current_function, arm_can_inline_p): Likewise.
7842         (arm_valid_target_attribute_rec): Likewise.
7843         (arm_previous_fndecl): New variable.
7844         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
7845         (TARGET_CAN_INLINE_P): Define.
7846         (arm_asm_trampoline_template): Emit mode.
7847         (arm_file_start): Don't set unified syntax.
7848         (arm_declare_function_name): Set unified syntax and mode.
7849         (arm_option_override): Init target_option_default_node.
7850         and target_option_current_node.
7851         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
7852         (*call_symbol): Likewise.
7853         * doc/extend.texi: Document ARM/Thumb target attribute.
7854         * doc/invoke.texi: Likewise.
7856 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
7858         Revert:
7859         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
7860         PR rtl-optimization/64164
7861         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
7862         * tree-ssa-copyrename.c: Removed.
7863         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
7864         -ftree-coalesce-vars.
7865         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
7866         * common.opt (ftree-copyrename): Ignore.
7867         (ftree-coalesce-inlined-vars): Likewise.
7868         * doc/invoke.texi: Remove the ignored options above.
7869         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
7870         * tree-ssa-coalesce.h: ... here.
7871         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
7872         headers required by it.
7873         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
7874         across variables when flag_tree_coalesce_vars.  Check register
7875         use and promoted modes to allow coalescing.  Moved to
7876         tree-ssa-coalesce.c.
7877         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
7878         with its member functions to tree-ssa-coalesce.c.
7879         (var_map_base_init): Likewise.  Renamed to
7880         compute_samebase_partition_bases.
7881         (partition_view_normal): Drop want_bases parameter.
7882         (partition_view_bitmap): Likewise.
7883         * tree-ssa-live.h: Adjust declarations.
7884         * tree-ssa-coalesce.c: Include explow.h.
7885         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
7886         default defs at the entry point.
7887         (dump_part_var_map): New.
7888         (compute_optimized_partition_bases): New, called by...
7889         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
7890         of compute_samebase_partition_bases.  Adjust.
7891         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
7892         * cfgexpand.c (leader_merge): New.
7893         (get_rtl_for_parm_ssa_default_def): New.
7894         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
7895         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
7896         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
7897         redundant MEM attr setting.
7898         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
7899         from...
7900         (expand_one_stack_var): ... this.  New wrapper to check and
7901         skip already expanded SSA partitions.
7902         (record_alignment_for_reg_var): New, factored out of...
7903         (expand_one_var): ... this.
7904         (expand_one_ssa_partition): New.
7905         (adjust_one_expanded_partition_var): New.
7906         (expand_one_register_var): Check and skip already expanded SSA
7907         partitions.
7908         (expand_used_vars): Don't create DECLs for anonymous SSA
7909         names.  Expand all SSA partitions, then adjust all SSA names.
7910         (pass::execute): Replace the loops that set
7911         SA.partition_to_pseudo from partition leaders and cleared
7912         DECL_RTL for multi-location variables, and that which used to
7913         rename vars and set attrs, with one that clears DECL_RTL and
7914         checks that PARMs and RESULTs default_defs match DECL_RTL.
7915         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
7916         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
7917         * explow.c (promote_ssa_mode): New.
7918         * explow.h (promote_ssa_mode): Declare.
7919         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
7920         * function.c: Include cfgexpand.h.
7921         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
7922         (use_register_for_parm_decl): Wrapper for the above to
7923         special-case the result_ptr.
7924         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
7925         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
7926         multiple locations.
7927         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
7928         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
7929         (assign_parm_setup_block): Prefer SSA-assigned location.
7930         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
7931         if stack_parm is NULL.
7932         (assign_parm_setup_stack): Prefer SSA-assigned location.
7933         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
7934         rtl before testing for pointer bounds.  Special-case result_ptr.
7935         (expand_function_start): Maybe reset DECL_RTL of result.
7936         Prefer SSA-assigned location for result and static chain.
7937         Factor out DECL_RESULT and SET_DECL_RTL.
7938         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
7939         anonymous SSA names.  Use promote_ssa_mode.
7940         (get_temp_reg): Likewise.
7941         (remove_ssa_form): Adjust.
7942         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
7943         and get its reg_usage for reg invalidation.
7944         (compute_bb_dataflow): Pass it insn.
7945         (emit_notes_in_bb): Likewise.
7946         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
7947         fail assert on conversion between unsigned types.
7949 2015-06-09  Tom de Vries  <tom@codesourcery.com>
7951         PR tree-optimization/65460
7952         * omp-low.c (expand_omp_target): Set parallelized_function on
7953         cgraph_node for child_fn.
7955 2015-06-09  Tom de Vries  <tom@codesourcery.com>
7957         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
7958         parallelized_function before add_new_function.
7960 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
7962         * gcc-plugin.h: Move decls to plugin.h and include it.
7963         * plugin.h: Relocate decls from gcc-plugin.h
7964         * ggc-page.c: Include required header files.
7965         * passes.c: Likewise.
7966         * cgraphunit.c: Likewise.
7968 2015-06-09  Tom de Vries  <tom@codesourcery.com>
7970         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
7972 2015-06-09  Jason Merrill  <jason@redhat.com>
7974         PR bootstrap/66448
7975         * toplev.c (check_global_declaration): Don't warn about a clone.
7977 2015-06-09  Marek Polacek  <polacek@redhat.com>
7979         PR tree-optimization/66299
7980         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
7981         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
7982         patterns.
7984 2015-06-09  Richard Biener  <rguenther@suse.de>
7986         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
7987         (vect_analyze_slp_instance): Instead do not falsely drop
7988         load permutations.
7990 2015-06-09  Richard Biener  <rguenther@suse.de>
7992         PR middle-end/66423
7993         * match.pd: Handle A % (unsigned)(1 << B).
7995 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
7997         * varasm.c (output_object_block_htab): Remove.
7998         (output_object_block_compare): New.
7999         (output_object_blocks): Sort named object_blocks before outputting
8000         them.
8002 2015-06-09  Richard Biener  <rguenther@suse.de>
8004         PR tree-optimization/66419
8005         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
8006         consider GROUP_GAP when detecting a perfect subchain.
8008 2015-06-09  Nick Clifton  <nickc@redhat.com>
8010         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
8011         place read only data in the .frodata section.
8013 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
8015         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
8016         (atomic_store<mode>): Likewise.
8018 2015-06-09  Richard Biener  <rguenther@suse.de>
8020         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
8022 2015-06-09  Richard Biener  <rguenther@suse.de>
8024         PR middle-end/66413
8025         * tree-inline.c (insert_init_debug_bind): Unshare value.
8027 2015-06-09  Richard Biener  <rguenther@suse.de>
8029         PR tree-optimization/66396
8030         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8031         Rename virtual operands.
8033 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8035         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
8036         always return false.
8038 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8040         PR rtl-optimization/64164
8041         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8042         * tree-ssa-copyrename.c: Removed.
8043         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8044         -ftree-coalesce-vars.
8045         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8046         * common.opt (ftree-copyrename): Ignore.
8047         (ftree-coalesce-inlined-vars): Likewise.
8048         * doc/invoke.texi: Remove the ignored options above.
8049         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8050         * tree-ssa-coalesce.h: ... here.
8051         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8052         headers required by it.
8053         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8054         across variables when flag_tree_coalesce_vars.  Check register
8055         use and promoted modes to allow coalescing.  Moved to
8056         tree-ssa-coalesce.c.
8057         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8058         with its member functions to tree-ssa-coalesce.c.
8059         (var_map_base_init): Likewise.  Renamed to
8060         compute_samebase_partition_bases.
8061         (partition_view_normal): Drop want_bases parameter.
8062         (partition_view_bitmap): Likewise.
8063         * tree-ssa-live.h: Adjust declarations.
8064         * tree-ssa-coalesce.c: Include explow.h.
8065         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8066         default defs at the entry point.
8067         (dump_part_var_map): New.
8068         (compute_optimized_partition_bases): New, called by...
8069         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8070         of compute_samebase_partition_bases.  Adjust.
8071         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8072         * cfgexpand.c (leader_merge): New.
8073         (get_rtl_for_parm_ssa_default_def): New.
8074         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8075         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8076         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8077         redundant MEM attr setting.
8078         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8079         from...
8080         (expand_one_stack_var): ... this.  New wrapper to check and
8081         skip already expanded SSA partitions.
8082         (record_alignment_for_reg_var): New, factored out of...
8083         (expand_one_var): ... this.
8084         (expand_one_ssa_partition): New.
8085         (adjust_one_expanded_partition_var): New.
8086         (expand_one_register_var): Check and skip already expanded SSA
8087         partitions.
8088         (expand_used_vars): Don't create DECLs for anonymous SSA
8089         names.  Expand all SSA partitions, then adjust all SSA names.
8090         (pass::execute): Replace the loops that set
8091         SA.partition_to_pseudo from partition leaders and cleared
8092         DECL_RTL for multi-location variables, and that which used to
8093         rename vars and set attrs, with one that clears DECL_RTL and
8094         checks that PARMs and RESULTs default_defs match DECL_RTL.
8095         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8096         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8097         * explow.c (promote_ssa_mode): New.
8098         * explow.h (promote_ssa_mode): Declare.
8099         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8100         * function.c: Include cfgexpand.h.
8101         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8102         (use_register_for_parm_decl): Wrapper for the above to
8103         special-case the result_ptr.
8104         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8105         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8106         multiple locations.
8107         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8108         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8109         (assign_parm_setup_block): Prefer SSA-assigned location.
8110         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8111         if stack_parm is NULL.
8112         (assign_parm_setup_stack): Prefer SSA-assigned location.
8113         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8114         rtl before testing for pointer bounds.  Special-case result_ptr.
8115         (expand_function_start): Maybe reset DECL_RTL of result.
8116         Prefer SSA-assigned location for result and static chain.
8117         Factor out DECL_RESULT and SET_DECL_RTL.
8118         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8119         anonymous SSA names.  Use promote_ssa_mode.
8120         (get_temp_reg): Likewise.
8121         (remove_ssa_form): Adjust.
8122         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8123         and get its reg_usage for reg invalidation.
8124         (compute_bb_dataflow): Pass it insn.
8125         (emit_notes_in_bb): Likewise.
8126         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8127         fail assert on conversion between unsigned types.
8129 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8131         PR debug/58315
8132         * tree-inline.c (reset_debug_binding): New.
8133         (reset_debug_bindings): Likewise.
8134         (expand_call_inline): Call it.
8136 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8138         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
8139         TYPE_STRING_FLAG.
8141 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8143         * lto-streamer-out.c (lto_output_location): Stream
8144         reserved locations correctly.
8145         * lto-streamer-in.c (lto_output_location): Likewise.
8147 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
8149         * coretypes.h: Include hash-table.h and hash-set.h for host files.
8150         * ggc.h: Don't include statistics.h>
8151         * hash-map.h: Remove all includes.
8152         * hash-set.h: Likewise.
8153         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
8154         the include list. Remove <new>.
8155         * inchash.h: Remove all includes.
8156         * mem-stats.h: Likewise.
8157         * vec.h: No special processing for generators or ggc.
8158         * alias.c : Adjust include files.
8159         * alloc-pool.c : Likewise.
8160         * alloc-pool.h : Likewise.
8161         * asan.c : Likewise.
8162         * attribs.c : Likewise.
8163         * auto-inc-dec.c : Likewise.
8164         * auto-profile.c : Likewise.
8165         * bb-reorder.c : Likewise.
8166         * bitmap.c : Likewise.
8167         * bitmap.h : Likewise.
8168         * bt-load.c : Likewise.
8169         * builtins.c : Likewise.
8170         * caller-save.c : Likewise.
8171         * calls.c : Likewise.
8172         * ccmp.c : Likewise.
8173         * cfg.c : Likewise.
8174         * cfganal.c : Likewise.
8175         * cfgbuild.c : Likewise.
8176         * cfgcleanup.c : Likewise.
8177         * cfgexpand.c : Likewise.
8178         * cfghooks.c : Likewise.
8179         * cfgloop.c : Likewise.
8180         * cfgloop.h : Likewise.
8181         * cfgloopanal.c : Likewise.
8182         * cfgloopmanip.c : Likewise.
8183         * cfgrtl.c : Likewise.
8184         * cgraph.c : Likewise.
8185         * cgraphbuild.c : Likewise.
8186         * cgraphclones.c : Likewise.
8187         * cgraphunit.c : Likewise.
8188         * cilk-common.c : Likewise.
8189         * combine-stack-adj.c : Likewise.
8190         * combine.c : Likewise.
8191         * compare-elim.c : Likewise.
8192         * context.c : Likewise.
8193         * convert.c : Likewise.
8194         * coverage.c : Likewise.
8195         * cppbuiltin.c : Likewise.
8196         * cprop.c : Likewise.
8197         * cse.c : Likewise.
8198         * cselib.c : Likewise.
8199         * data-streamer-in.c : Likewise.
8200         * data-streamer-out.c : Likewise.
8201         * data-streamer.c : Likewise.
8202         * data-streamer.h : Likewise.
8203         * dbxout.c : Likewise.
8204         * dce.c : Likewise.
8205         * ddg.c : Likewise.
8206         * debug.c : Likewise.
8207         * df-core.c : Likewise.
8208         * df-problems.c : Likewise.
8209         * df-scan.c : Likewise.
8210         * df.h : Likewise.
8211         * dfp.c : Likewise.
8212         * dojump.c : Likewise.
8213         * dominance.c : Likewise.
8214         * domwalk.c : Likewise.
8215         * double-int.c : Likewise.
8216         * dse.c : Likewise.
8217         * dumpfile.c : Likewise.
8218         * dwarf2asm.c : Likewise.
8219         * dwarf2cfi.c : Likewise.
8220         * dwarf2out.c : Likewise.
8221         * emit-rtl.c : Likewise.
8222         * et-forest.c : Likewise.
8223         * except.c : Likewise.
8224         * except.h : Likewise.
8225         * explow.c : Likewise.
8226         * expmed.c : Likewise.
8227         * expr.c : Likewise.
8228         * final.c : Likewise.
8229         * fixed-value.c : Likewise.
8230         * fold-const.c : Likewise.
8231         * function.c : Likewise.
8232         * fwprop.c : Likewise.
8233         * gcc-plugin.h : Likewise.
8234         * gcc.c : Likewise.
8235         * gcse-common.c : Likewise.
8236         * gcse.c : Likewise.
8237         * genattrtab.c : Likewise.
8238         * genautomata.c : Likewise.
8239         * genconditions.c : Likewise.
8240         * genemit.c : Likewise.
8241         * generic-match-head.c : Likewise.
8242         * genextract.c : Likewise.
8243         * gengtype-state.c : Likewise.
8244         * gengtype.c : Likewise.
8245         * genhooks.c : Likewise.
8246         * genmatch.c : Likewise.
8247         * genmodes.c : Likewise.
8248         * genrecog.c : Likewise.
8249         * gensupport.c : Likewise.
8250         * ggc-common.c : Likewise.
8251         * ggc-internal.h : Likewise.
8252         * ggc-none.c : Likewise.
8253         * ggc-page.c : Likewise.
8254         * gimple-builder.c : Likewise.
8255         * gimple-expr.c : Likewise.
8256         * gimple-fold.c : Likewise.
8257         * gimple-iterator.c : Likewise.
8258         * gimple-low.c : Likewise.
8259         * gimple-match-head.c : Likewise.
8260         * gimple-pretty-print.c : Likewise.
8261         * gimple-ssa-isolate-paths.c : Likewise.
8262         * gimple-ssa-strength-reduction.c : Likewise.
8263         * gimple-ssa.h : Likewise.
8264         * gimple-streamer-in.c : Likewise.
8265         * gimple-streamer-out.c : Likewise.
8266         * gimple-streamer.h : Likewise.
8267         * gimple-walk.c : Likewise.
8268         * gimple.c : Likewise.
8269         * gimplify-me.c : Likewise.
8270         * gimplify.c : Likewise.
8271         * godump.c : Likewise.
8272         * graph.c : Likewise.
8273         * graphds.c : Likewise.
8274         * graphite-blocking.c : Likewise.
8275         * graphite-dependences.c : Likewise.
8276         * graphite-interchange.c : Likewise.
8277         * graphite-isl-ast-to-gimple.c : Likewise.
8278         * graphite-optimize-isl.c : Likewise.
8279         * graphite-poly.c : Likewise.
8280         * graphite-scop-detection.c : Likewise.
8281         * graphite-sese-to-poly.c : Likewise.
8282         * graphite.c : Likewise.
8283         * haifa-sched.c : Likewise.
8284         * hard-reg-set.h : Likewise.
8285         * hw-doloop.c : Likewise.
8286         * ifcvt.c : Likewise.
8287         * inchash.c : Likewise.
8288         * incpath.c : Likewise.
8289         * init-regs.c : Likewise.
8290         * input.c : Likewise.
8291         * internal-fn.c : Likewise.
8292         * ipa-chkp.c : Likewise.
8293         * ipa-comdats.c : Likewise.
8294         * ipa-cp.c : Likewise.
8295         * ipa-devirt.c : Likewise.
8296         * ipa-icf-gimple.c : Likewise.
8297         * ipa-icf.c : Likewise.
8298         * ipa-inline-analysis.c : Likewise.
8299         * ipa-inline-transform.c : Likewise.
8300         * ipa-inline.c : Likewise.
8301         * ipa-polymorphic-call.c : Likewise.
8302         * ipa-profile.c : Likewise.
8303         * ipa-prop.c : Likewise.
8304         * ipa-pure-const.c : Likewise.
8305         * ipa-ref.c : Likewise.
8306         * ipa-reference.c : Likewise.
8307         * ipa-split.c : Likewise.
8308         * ipa-utils.c : Likewise.
8309         * ipa-visibility.c : Likewise.
8310         * ipa.c : Likewise.
8311         * ira-build.c : Likewise.
8312         * ira-color.c : Likewise.
8313         * ira-conflicts.c : Likewise.
8314         * ira-costs.c : Likewise.
8315         * ira-emit.c : Likewise.
8316         * ira-lives.c : Likewise.
8317         * ira.c : Likewise.
8318         * jump.c : Likewise.
8319         * langhooks.c : Likewise.
8320         * lcm.c : Likewise.
8321         * libfuncs.h : Likewise.
8322         * lists.c : Likewise.
8323         * loop-doloop.c : Likewise.
8324         * loop-init.c : Likewise.
8325         * loop-invariant.c : Likewise.
8326         * loop-iv.c : Likewise.
8327         * loop-unroll.c : Likewise.
8328         * lower-subreg.c : Likewise.
8329         * lra-assigns.c : Likewise.
8330         * lra-coalesce.c : Likewise.
8331         * lra-constraints.c : Likewise.
8332         * lra-eliminations.c : Likewise.
8333         * lra-lives.c : Likewise.
8334         * lra-remat.c : Likewise.
8335         * lra-spills.c : Likewise.
8336         * lra.c : Likewise.
8337         * lto-cgraph.c : Likewise.
8338         * lto-compress.c : Likewise.
8339         * lto-opts.c : Likewise.
8340         * lto-section-in.c : Likewise.
8341         * lto-section-out.c : Likewise.
8342         * lto-streamer-in.c : Likewise.
8343         * lto-streamer-out.c : Likewise.
8344         * lto-streamer.c : Likewise.
8345         * lto-streamer.h : Likewise.
8346         * mcf.c : Likewise.
8347         * mode-switching.c : Likewise.
8348         * modulo-sched.c : Likewise.
8349         * omega.c : Likewise.
8350         * omp-low.c : Likewise.
8351         * optabs.c : Likewise.
8352         * opts-global.c : Likewise.
8353         * opts.h : Likewise.
8354         * passes.c : Likewise.
8355         * plugin.c : Likewise.
8356         * postreload-gcse.c : Likewise.
8357         * postreload.c : Likewise.
8358         * predict.c : Likewise.
8359         * print-rtl.c : Likewise.
8360         * print-tree.c : Likewise.
8361         * profile.c : Likewise.
8362         * read-md.c : Likewise.
8363         * read-md.h : Likewise.
8364         * read-rtl.c : Likewise.
8365         * real.c : Likewise.
8366         * realmpfr.c : Likewise.
8367         * recog.c : Likewise.
8368         * ree.c : Likewise.
8369         * reg-stack.c : Likewise.
8370         * regcprop.c : Likewise.
8371         * reginfo.c : Likewise.
8372         * regrename.c : Likewise.
8373         * regstat.c : Likewise.
8374         * reload.c : Likewise.
8375         * reload1.c : Likewise.
8376         * reorg.c : Likewise.
8377         * resource.c : Likewise.
8378         * rtl-chkp.c : Likewise.
8379         * rtl.c : Likewise.
8380         * rtl.h : Likewise.
8381         * rtlanal.c : Likewise.
8382         * rtlhash.c : Likewise.
8383         * rtlhash.h : Likewise.
8384         * rtlhooks.c : Likewise.
8385         * sanopt.c : Likewise.
8386         * sched-deps.c : Likewise.
8387         * sched-ebb.c : Likewise.
8388         * sched-rgn.c : Likewise.
8389         * sched-vis.c : Likewise.
8390         * sdbout.c : Likewise.
8391         * sel-sched-dump.c : Likewise.
8392         * sel-sched-ir.c : Likewise.
8393         * sel-sched-ir.h : Likewise.
8394         * sel-sched.c : Likewise.
8395         * sese.c : Likewise.
8396         * shrink-wrap.c : Likewise.
8397         * shrink-wrap.h : Likewise.
8398         * simplify-rtx.c : Likewise.
8399         * stack-ptr-mod.c : Likewise.
8400         * statistics.c : Likewise.
8401         * stmt.c : Likewise.
8402         * stor-layout.c : Likewise.
8403         * store-motion.c : Likewise.
8404         * stringpool.c : Likewise.
8405         * symtab.c : Likewise.
8406         * target-globals.c : Likewise.
8407         * targhooks.c : Likewise.
8408         * tlink.c : Likewise.
8409         * toplev.c : Likewise.
8410         * tracer.c : Likewise.
8411         * trans-mem.c : Likewise.
8412         * tree-affine.c : Likewise.
8413         * tree-affine.h : Likewise.
8414         * tree-browser.c : Likewise.
8415         * tree-call-cdce.c : Likewise.
8416         * tree-cfg.c : Likewise.
8417         * tree-cfgcleanup.c : Likewise.
8418         * tree-chkp-opt.c : Likewise.
8419         * tree-chkp.c : Likewise.
8420         * tree-chrec.c : Likewise.
8421         * tree-complex.c : Likewise.
8422         * tree-data-ref.c : Likewise.
8423         * tree-dfa.c : Likewise.
8424         * tree-diagnostic.c : Likewise.
8425         * tree-dump.c : Likewise.
8426         * tree-eh.c : Likewise.
8427         * tree-eh.h : Likewise.
8428         * tree-emutls.c : Likewise.
8429         * tree-hasher.h : Likewise.
8430         * tree-if-conv.c : Likewise.
8431         * tree-inline.c : Likewise.
8432         * tree-inline.h : Likewise.
8433         * tree-into-ssa.c : Likewise.
8434         * tree-iterator.c : Likewise.
8435         * tree-loop-distribution.c : Likewise.
8436         * tree-nested.c : Likewise.
8437         * tree-nrv.c : Likewise.
8438         * tree-object-size.c : Likewise.
8439         * tree-outof-ssa.c : Likewise.
8440         * tree-parloops.c : Likewise.
8441         * tree-phinodes.c : Likewise.
8442         * tree-predcom.c : Likewise.
8443         * tree-pretty-print.c : Likewise.
8444         * tree-profile.c : Likewise.
8445         * tree-scalar-evolution.c : Likewise.
8446         * tree-sra.c : Likewise.
8447         * tree-ssa-address.c : Likewise.
8448         * tree-ssa-alias.c : Likewise.
8449         * tree-ssa-ccp.c : Likewise.
8450         * tree-ssa-coalesce.c : Likewise.
8451         * tree-ssa-copy.c : Likewise.
8452         * tree-ssa-copyrename.c : Likewise.
8453         * tree-ssa-dce.c : Likewise.
8454         * tree-ssa-dom.c : Likewise.
8455         * tree-ssa-dse.c : Likewise.
8456         * tree-ssa-forwprop.c : Likewise.
8457         * tree-ssa-ifcombine.c : Likewise.
8458         * tree-ssa-live.c : Likewise.
8459         * tree-ssa-loop-ch.c : Likewise.
8460         * tree-ssa-loop-im.c : Likewise.
8461         * tree-ssa-loop-ivcanon.c : Likewise.
8462         * tree-ssa-loop-ivopts.c : Likewise.
8463         * tree-ssa-loop-manip.c : Likewise.
8464         * tree-ssa-loop-niter.c : Likewise.
8465         * tree-ssa-loop-prefetch.c : Likewise.
8466         * tree-ssa-loop-unswitch.c : Likewise.
8467         * tree-ssa-loop.c : Likewise.
8468         * tree-ssa-math-opts.c : Likewise.
8469         * tree-ssa-operands.c : Likewise.
8470         * tree-ssa-phiopt.c : Likewise.
8471         * tree-ssa-phiprop.c : Likewise.
8472         * tree-ssa-pre.c : Likewise.
8473         * tree-ssa-propagate.c : Likewise.
8474         * tree-ssa-reassoc.c : Likewise.
8475         * tree-ssa-sccvn.c : Likewise.
8476         * tree-ssa-scopedtables.c : Likewise.
8477         * tree-ssa-sink.c : Likewise.
8478         * tree-ssa-strlen.c : Likewise.
8479         * tree-ssa-structalias.c : Likewise.
8480         * tree-ssa-tail-merge.c : Likewise.
8481         * tree-ssa-ter.c : Likewise.
8482         * tree-ssa-threadedge.c : Likewise.
8483         * tree-ssa-threadupdate.c : Likewise.
8484         * tree-ssa-uncprop.c : Likewise.
8485         * tree-ssa-uninit.c : Likewise.
8486         * tree-ssa.c : Likewise.
8487         * tree-ssanames.c : Likewise.
8488         * tree-stdarg.c : Likewise.
8489         * tree-streamer-in.c : Likewise.
8490         * tree-streamer-out.c : Likewise.
8491         * tree-streamer.c : Likewise.
8492         * tree-streamer.h : Likewise.
8493         * tree-switch-conversion.c : Likewise.
8494         * tree-tailcall.c : Likewise.
8495         * tree-vect-data-refs.c : Likewise.
8496         * tree-vect-generic.c : Likewise.
8497         * tree-vect-loop-manip.c : Likewise.
8498         * tree-vect-loop.c : Likewise.
8499         * tree-vect-patterns.c : Likewise.
8500         * tree-vect-slp.c : Likewise.
8501         * tree-vect-stmts.c : Likewise.
8502         * tree-vectorizer.c : Likewise.
8503         * tree-vectorizer.h : Likewise.
8504         * tree-vrp.c : Likewise.
8505         * tree.c : Likewise.
8506         * tsan.c : Likewise.
8507         * ubsan.c : Likewise.
8508         * valtrack.c : Likewise.
8509         * valtrack.h : Likewise.
8510         * value-prof.c : Likewise.
8511         * var-tracking.c : Likewise.
8512         * varasm.c : Likewise.
8513         * varpool.c : Likewise.
8514         * vec.c: Likewise.
8515         * vmsdbgout.c : Likewise.
8516         * vtable-verify.c : Likewise.
8517         * vtable-verify.h : Likewise.
8518         * web.c : Likewise.
8519         * wide-int.cc : Likewise.
8520         * xcoffout.c : Likewise.
8521         * config/aarch64/aarch64-builtins.c : Likewise.
8522         * config/aarch64/aarch64.c : Likewise.
8523         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
8524         * config/alpha/alpha.c : Likewise.
8525         * config/arc/arc.c : Likewise.
8526         * config/arm/aarch-common.c : Likewise.
8527         * config/arm/arm-builtins.c : Likewise.
8528         * config/arm/arm-c.c : Likewise.
8529         * config/arm/arm.c : Likewise.
8530         * config/avr/avr-c.c : Likewise.
8531         * config/avr/avr-log.c : Likewise.
8532         * config/avr/avr.c : Likewise.
8533         * config/bfin/bfin.c : Likewise.
8534         * config/c6x/c6x.c : Likewise.
8535         * config/cr16/cr16.c : Likewise.
8536         * config/cris/cris.c : Likewise.
8537         * config/darwin-c.c : Likewise.
8538         * config/darwin.c : Likewise.
8539         * config/default-c.c : Likewise.
8540         * config/epiphany/epiphany.c : Likewise.
8541         * config/epiphany/mode-switch-use.c : Likewise.
8542         * config/epiphany/resolve-sw-modes.c : Likewise.
8543         * config/fr30/fr30.c : Likewise.
8544         * config/frv/frv.c : Likewise.
8545         * config/ft32/ft32.c : Likewise.
8546         * config/glibc-c.c : Likewise.
8547         * config/h8300/h8300.c : Likewise.
8548         * config/i386/i386-c.c : Likewise.
8549         * config/i386/i386.c : Likewise.
8550         * config/i386/msformat-c.c : Likewise.
8551         * config/i386/winnt-cxx.c : Likewise.
8552         * config/i386/winnt-stubs.c : Likewise.
8553         * config/i386/winnt.c : Likewise.
8554         * config/ia64/ia64-c.c : Likewise.
8555         * config/ia64/ia64.c : Likewise.
8556         * config/iq2000/iq2000.c : Likewise.
8557         * config/lm32/lm32.c : Likewise.
8558         * config/m32c/m32c-pragma.c : Likewise.
8559         * config/m32c/m32c.c : Likewise.
8560         * config/m32r/m32r.c : Likewise.
8561         * config/m68k/m68k.c : Likewise.
8562         * config/mcore/mcore.c : Likewise.
8563         * config/mep/mep-pragma.c : Likewise.
8564         * config/mep/mep.c : Likewise.
8565         * config/microblaze/microblaze-c.c : Likewise.
8566         * config/microblaze/microblaze.c : Likewise.
8567         * config/mips/mips.c : Likewise.
8568         * config/mmix/mmix.c : Likewise.
8569         * config/mn10300/mn10300.c : Likewise.
8570         * config/moxie/moxie.c : Likewise.
8571         * config/msp430/msp430-c.c : Likewise.
8572         * config/msp430/msp430.c : Likewise.
8573         * config/nds32/nds32-cost.c : Likewise.
8574         * config/nds32/nds32-fp-as-gp.c : Likewise.
8575         * config/nds32/nds32-intrinsic.c : Likewise.
8576         * config/nds32/nds32-isr.c : Likewise.
8577         * config/nds32/nds32-md-auxiliary.c : Likewise.
8578         * config/nds32/nds32-memory-manipulation.c : Likewise.
8579         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
8580         * config/nds32/nds32-predicates.c : Likewise.
8581         * config/nds32/nds32.c : Likewise.
8582         * config/nios2/nios2.c : Likewise.
8583         * config/nvptx/nvptx.c : Likewise.
8584         * config/pa/pa.c : Likewise.
8585         * config/pdp11/pdp11.c : Likewise.
8586         * config/rl78/rl78-c.c : Likewise.
8587         * config/rl78/rl78.c : Likewise.
8588         * config/rs6000/rs6000-c.c : Likewise.
8589         * config/rs6000/rs6000.c : Likewise.
8590         * config/rx/rx.c : Likewise.
8591         * config/s390/s390-c.c : Likewise.
8592         * config/s390/s390.c : Likewise.
8593         * config/sh/sh-c.c : Likewise.
8594         * config/sh/sh-mem.cc : Likewise.
8595         * config/sh/sh.c : Likewise.
8596         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
8597         * config/sh/sh_treg_combine.cc : Likewise.
8598         * config/sol2-c.c : Likewise.
8599         * config/sol2-cxx.c : Likewise.
8600         * config/sol2-stubs.c : Likewise.
8601         * config/sol2.c : Likewise.
8602         * config/sparc/sparc-c.c : Likewise.
8603         * config/sparc/sparc.c : Likewise.
8604         * config/spu/spu-c.c : Likewise.
8605         * config/spu/spu.c : Likewise.
8606         * config/stormy16/stormy16.c : Likewise.
8607         * config/tilegx/mul-tables.c : Likewise.
8608         * config/tilegx/tilegx-c.c : Likewise.
8609         * config/tilegx/tilegx.c : Likewise.
8610         * config/tilepro/mul-tables.c : Likewise.
8611         * config/tilepro/tilepro-c.c : Likewise.
8612         * config/tilepro/tilepro.c : Likewise.
8613         * config/v850/v850-c.c : Likewise.
8614         * config/v850/v850.c : Likewise.
8615         * config/vax/vax.c : Likewise.
8616         * config/visium/visium.c : Likewise.
8617         * config/vms/vms-c.c : Likewise.
8618         * config/vms/vms.c : Likewise.
8619         * config/vxworks.c : Likewise.
8620         * config/winnt-c.c : Likewise.
8621         * config/xtensa/xtensa.c : Likewise.
8623 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8625         PR lto/65378
8626         * ipa-utils.h (warn_types_mismatch): Update prototype.
8627         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
8628         parameters.
8629         (type_mismatch_p): New function.
8630         (warn_types_mismatch): Reorg to work better on non-C++ types.
8631         (odr_types_equivalent_p): Add loc1/loc2 parameters.
8632         (add_type_duplicate): Update.
8634 2015-06-08  Tom de Vries  <tom@codesourcery.com>
8636         PR rtl-optimization/66444
8637         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
8638         call_used_regs.
8640 2015-06-08  Richard Biener  <rguenther@suse.de>
8642         PR tree-optimization/66422
8643         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
8644         block after inserted gcc_unreachable.
8646 2015-06-08  Nick Clifton  <nickc@redhat.com>
8648         * config/rx/rx.c (rx_function_value): Do not promote vector types.
8649         (rx_promote_function_mode): Likewise.
8650         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
8652 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
8654         * genattrtab.c (insn_alternatives): Change type from int *
8655         to uint64_t *.
8656         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
8657         (get_attr_value): Change type of num_alt to uint64_t.
8658         (compute_alternative_mask): Change return type from
8659         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
8660         (make_alternative_compare, mk_attr_alt): Change argument type
8661         from int to uint64_t.
8662         (simplify_test_exp): Change type of i from int to uint64_t.
8663         Shift ((uint64_t) 1) instead of 1 up.
8664         (main): Adjust oballocvec first argument from int to uint64_t.
8665         Shift ((uint64_t) 1) instead of 1 up.
8667 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8669         PR other/65366
8670         * gdbhooks.py: Import sys.
8671         (intptr): New function.  Replace int(...) by intptr(...).
8673 2015-06-08  Richard Biener  <rguenther@suse.de>
8675         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
8676         adjustment for gaps at the end of a SLP load group properly.
8677         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
8678         all permutations we can generate.
8679         (vect_transform_slp_perm_load): Use the correct group-size.
8681 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
8683         * genmatch.c (expr::gen_transform): For conditions, guess the type
8684         from the second operand.
8686 2015-06-08  Tom de Vries  <tom@codesourcery.com>
8688         PR tree-optimization/66442
8689         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
8690         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
8691         if the loop latch is not a singleton.  Use
8692         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
8694 2015-06-08  Marek Polacek  <polacek@redhat.com>
8696         PR sanitizer/66452
8697         * toplev.c (check_global_declaration): Don't warn about artificial
8698         decls.
8700 2015-06-08  Tom de Vries  <tom@codesourcery.com>
8702         PR tree-optimization/66436
8703         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
8704         dump file.
8705         * gimplify.c: Add tree-dump.h include.
8706         (gimplify_function_tree): Dump function to gimple dump file.
8707         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
8708         dump file.
8710 2015-06-08  Tom de Vries  <tom@codesourcery.com>
8712         PR tree-optimization/66435
8713         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
8714         function.
8716 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
8718         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
8719         of ptr_type_node to not be ptr_to_node.
8720         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
8721         TREE_TYPE of pointers.
8722         * gimple-expr.c (useless_type_conversion): Reorder the check for
8723         function pointers and TYPE_CANONICAL.
8725 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
8727         PR bootstrap/66319
8728         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
8729         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
8730         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
8731         later.
8732         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
8733         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
8734         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
8735         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
8736         and non iso if unix2003.
8738 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
8740         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
8742 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
8744         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
8745         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
8746         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
8747         except.c, final.c, function.c, gcse-common.c, genemit.c,
8748         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
8749         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
8750         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
8751         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
8752         more derived ones.
8754 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
8756         * combine.c (combine_split_insns): Remove cast.
8757         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
8758         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
8759         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
8760         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
8761         * genemit.c (gen_split): Change return type of generated functions to
8762         rtx_insn.
8763         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
8764         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
8765         gen_peephole2_* functions.
8766         (print_subroutine, main): Likewise.
8767         * recog.c (peephole2_optimize): Remove cast.
8768         (peep2_next_insn): Promote return type to rtx_insn.
8769         * recog.h (peep2_next_insn): Fix prototype.
8770         * rtl.h (try_split, split_insns): Likewise.
8772 2015-06-06  DJ Delorie  <dj@redhat.com>
8774         * config/msp430/msp430.c (msp430_asm_integer): Support addition
8775         and subtraction too.
8777 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
8779         PR target/66410
8780         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
8781         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
8782         instead of Snd.  Disparage Sid/z alternative with '^'.
8784 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
8786         * dwarf2out.c: Remove deferred_locations*.
8787         (dwarf2_debug_hooks): Add early_finish hook.
8788         Remove global_decl hook.
8789         Add early_global_decl and late_global_decl hook.
8790         New global early_dwarf.
8791         New structure set_early_dwarf.
8792         (output_die): Indicate whether a DIE was generated early
8793         when generating assembly with -dA.
8794         (struct limbo_die_struct): Document created_for field.
8795         Remove file_table_last_lookup.
8796         (remove_AT): Return TRUE if successful.
8797         (remove_child_TAG): Clear die_parent.
8798         (reparent_child): New function abstracted from...
8799         (splice_child_die): ...here.
8800         (new_die): ICE if a DIE ends up in limbo too late.
8801         (check_die): New.
8802         (defer_location): Remove.
8803         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
8804         (fill_variable_array_bounds): New.
8805         (decl_start_label): Call fill_variable_array_bounds.
8806         (gen_formal_parameter_die): Rewrite to reuse previously generated
8807         DIEs.
8808         (gen_subprogram_die): Same.
8809         (gen_variable_die): Same.
8810         (gen_const_die): Same.
8811         (gen_label_die): Same.
8812         (gen_lexical_block_die): Same.
8813         (decl_will_get_specification_p): New.
8814         (local_function_static): New.
8815         (gen_struct_or_union_type_die): Fill in variable-length fields.
8816         (gen_typedef_die): Fill in variable-length typedefs.
8817         (gen_tagged_type_die): Gracefully return on error_mark_node.
8818         Handle re-entrancy.
8819         (gen_type_die_with_usage): Handle variable-length types.
8820         Remove duplicate code for ARRAY_TYPE case.
8821         (process_scope_var): Only process imported modules during early
8822         dwarf.
8823         (dwarf2out_early_global_decl): New.
8824         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
8825         (dwarf2out_type_decl): Set early_dwarf while calling
8826         dwarf2out_decl.
8827         (dwarf2out_decl): Verify that we did not recreate a previously
8828         generated DIE.
8829         Do not return on DECL_EXTERNALs in VAR_DECLs.
8830         Abstract some code to local_function_static.
8831         (lookup_filename): Remove use of file_table_last_lookup.
8832         Gracefully exit on missing file_name.
8833         (dwarf2out_finish): Verify limbo list.
8834         Remove deferred_locations_list use.
8835         Move deferred_asm_name and limbo flushing to...
8836         (dwarf2out_early_finish): ...here.  New.
8837         (dwarf2out_c_finalize): Remove set of deferred_location_list,
8838         deferred_asm_name, and file_table_last_lookup.
8839         * cgraph.h (referred_to_p): Add default argument.
8840         * cgraphunit.c (referred_to_p): Add and handle include_self
8841         argument.
8842         (analyze_functions): Add first_time argument.
8843         Call check_global_declaration for all symbols.
8844         Call late_global_decl for nodes for moribund nodes.
8845         (finalize_compilation_unit): Add new argument to
8846         analyze_functions.
8847         Call early_global_decl for functions.
8848         Call early_finish debug hook.
8849         * dbxout.c (dbxout_early_global_decl): New.
8850         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
8851         (dbx_debug_hooks): Add new hooks.
8852         (xcoff_debug_hooks): Same.
8853         * debug.c (do_nothing_debug_hooks): Add early_finish field.
8854         Add early and late debug hooks.
8855         Remove global_decl hook.
8856         * debug.h (struct gcc_debug_hooks): Add early_finish,
8857         early_global_decl, and late_global_decl fields.
8858         Remove global_decl field.
8859         Document gcc_debug_hooks.
8860         * gengtype.c (output_typename): Remove.
8861         * godump.c (go_early_global_decl): New.
8862         (go_late_global_decl): New.
8863         (go_global_decl): Remove.
8864         (dump_go_spec_init): Remove global_decl.  Add
8865         {early,late}_global_decl.
8866         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
8867         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
8868         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
8869         (write_global_declarations): Remove.
8870         (global_decl_processing): New.
8871         * langhooks.h (struct lang_hooks_for_decls): Remove
8872         final_write_globals field.
8873         Add post_compilation_parsing_cleanups field.
8874         * passes.c (rest_of_decl_compilation): Call early_global_decl.
8875         * sdbout.c: Add early and late_global_decl hooks.  Remove
8876         sdbout_global_decl hook.
8877         Add early_finish field for sdb_debug_hooks.
8878         (sdbout_global_decl): Remove.
8879         (sdbout_early_global_decl): New.
8880         (sdbout_late_global_decl): New.
8881         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
8882         * toplev.c (check_global_declaration): Rename from
8883         check_global_declaration_1.
8884         Adapt to use symtab infrastructure.
8885         (check_global_declarations): Remove.
8886         (emit_debug_global_declarations): Remove.
8887         (compile_file): Remove call to final_write_globals langhook.
8888         Run the actual compilation process.
8889         Perform any post compilation parser cleanups.
8890         Generate late debug info.
8891         * toplev.h (check_global_declaration): New.
8892         (check_global_declaration_1): Remove.
8893         (check_global_declarations): Remove.
8894         (write_global_declarations): Remove.
8895         (emit_debug_global_declarations): Remove.
8896         (global_decl_processing): New.
8897         * tree-core.h (struct tree_block): Add DIE field.
8898         * tree.h (BLOCK_DIE): New.
8899         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
8900         throughout.
8901         (vmsdbgout_early_global_decl): New.
8902         (vmsdbgout_late_global_decl): New.
8903         Add early_finish debug hook field to vmsdbg_debug_hooks.
8904         Remove vmsdbgout_decl to vmsdbgout_function_decl.
8905         Add early and late_global_decl debug hooks.
8907 2015-06-05  Julian Brown  <julian@codesourcery.com>
8908             Sandra Loosemore  <sandra@codesourcery.com>
8910         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
8911         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
8912         to print-sysroot-suffix.sh script.
8914 2015-06-05  Tom de Vries  <tom@codesourcery.com>
8916         merge from gomp4 branch:
8917         2015-05-28  Tom de Vries  <tom@codesourcery.com>
8919         PR tree-optimization/65443
8920         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
8921         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
8922         (try_transform_to_exit_first_loop_alt): New function.
8923         (transform_to_exit_first_loop): Use
8924         try_transform_to_exit_first_loop_alt.
8926 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
8928         * builtins.c (expand_builtin_atomic_compare_exchange): Call
8929         emit_cmp_and_jump_insns with the mode of target.
8931 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8933         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
8935 2015-06-04  DJ Delorie  <dj@redhat.com>
8937         * config/msp430/msp430.md (movsi_s): New.  Special case for
8938         storing a 20-bit symbol into a 32-bit register.
8939         * config/msp430/msp430.c (msp430_subreg): Add support for it.
8940         * config/msp430/predicates.md (msp430_symbol_operand): New.
8942 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
8944         * c-family/c-common.c (noplt): New attribute.
8945         (handle_noplt_attribute): New handler.
8946         * calls.c (prepare_call_address): Check for noplt
8947         attribute.
8948         * config/i386/i386.c (ix86_expand_call): Check
8949         for noplt attribute.
8950         (ix86_nopic_noplt_attribute_p): New function.
8951         (ix86_output_call_insn): Output indirect call for non-pic
8952         no plt calls.
8953         * doc/extend.texi (noplt): Document new attribute.
8954         * doc/invoke.texi: Document new attribute.
8956 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
8958         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
8959         real.h, and fixed-value.h when included in host source files.
8960         * double-int.h: Remove redundant #includes listed above.
8961         * fixed-value.h: Likewise.
8962         * real.h: Likewise.
8963         * wide-int.h: Likewise.
8964         * inchash.h: Likewise.
8965         * rtl.h: Add some include files When included from a generator file.
8966         * target.h: Remove wide-int.h and insn-modes.h from the include list.
8967         * internal-fn.h: Don't include coretypes.h.
8968         * alias.c: Adjust includes for restructured coretypes.h.
8969         * asan.c: Likewise.
8970         * attribs.c: Likewise.
8971         * auto-inc-dec.c: Likewise.
8972         * auto-profile.c: Likewise.
8973         * bb-reorder.c: Likewise.
8974         * bt-load.c: Likewise.
8975         * builtins.c: Likewise.
8976         * caller-save.c: Likewise.
8977         * calls.c: Likewise.
8978         * ccmp.c: Likewise.
8979         * cfg.c: Likewise.
8980         * cfganal.c: Likewise.
8981         * cfgbuild.c: Likewise.
8982         * cfgcleanup.c: Likewise.
8983         * cfgexpand.c: Likewise.
8984         * cfghooks.c: Likewise.
8985         * cfgloop.c: Likewise.
8986         * cfgloop.h: Likewise.
8987         * cfgloopanal.c: Likewise.
8988         * cfgloopmanip.c: Likewise.
8989         * cfgrtl.c: Likewise.
8990         * cgraph.c: Likewise.
8991         * cgraphbuild.c: Likewise.
8992         * cgraphclones.c: Likewise.
8993         * cgraphunit.c: Likewise.
8994         * cilk-common.c: Likewise.
8995         * combine-stack-adj.c: Likewise.
8996         * combine.c: Likewise.
8997         * compare-elim.c: Likewise.
8998         * convert.c: Likewise.
8999         * coverage.c: Likewise.
9000         * cppbuiltin.c: Likewise.
9001         * cprop.c: Likewise.
9002         * cse.c: Likewise.
9003         * cselib.c: Likewise.
9004         * data-streamer-in.c: Likewise.
9005         * data-streamer-out.c: Likewise.
9006         * data-streamer.c: Likewise.
9007         * dbxout.c: Likewise.
9008         * dce.c: Likewise.
9009         * ddg.c: Likewise.
9010         * debug.c: Likewise.
9011         * df-core.c: Likewise.
9012         * df-problems.c: Likewise.
9013         * df-scan.c: Likewise.
9014         * df.h: Likewise.
9015         * dfp.c: Likewise.
9016         * dojump.c: Likewise.
9017         * dominance.c: Likewise.
9018         * domwalk.c: Likewise.
9019         * double-int.c: Likewise.
9020         * dse.c: Likewise.
9021         * dumpfile.c: Likewise.
9022         * dwarf2asm.c: Likewise.
9023         * dwarf2cfi.c: Likewise.
9024         * dwarf2out.c: Likewise.
9025         * dwarf2out.h: Likewise.
9026         * emit-rtl.c: Likewise.
9027         * et-forest.c: Likewise.
9028         * except.c: Likewise.
9029         * explow.c: Likewise.
9030         * expmed.c: Likewise.
9031         * expr.c: Likewise.
9032         * final.c: Likewise.
9033         * fixed-value.c: Likewise.
9034         * fold-const.c: Likewise.
9035         * function.c: Likewise.
9036         * fwprop.c: Likewise.
9037         * gcc-plugin.h: Likewise.
9038         * gcse.c: Likewise.
9039         * generic-match-head.c: Likewise.
9040         * ggc-page.c: Likewise.
9041         * gimple-builder.c: Likewise.
9042         * gimple-expr.c: Likewise.
9043         * gimple-fold.c: Likewise.
9044         * gimple-iterator.c: Likewise.
9045         * gimple-low.c: Likewise.
9046         * gimple-match-head.c: Likewise.
9047         * gimple-pretty-print.c: Likewise.
9048         * gimple-ssa-isolate-paths.c: Likewise.
9049         * gimple-ssa-strength-reduction.c: Likewise.
9050         * gimple-streamer-in.c: Likewise.
9051         * gimple-streamer-out.c: Likewise.
9052         * gimple-streamer.h: Likewise.
9053         * gimple-walk.c: Likewise.
9054         * gimple.c: Likewise.
9055         * gimplify-me.c: Likewise.
9056         * gimplify.c: Likewise.
9057         * godump.c: Likewise.
9058         * graph.c: Likewise.
9059         * graphite-blocking.c: Likewise.
9060         * graphite-dependences.c: Likewise.
9061         * graphite-interchange.c: Likewise.
9062         * graphite-isl-ast-to-gimple.c: Likewise.
9063         * graphite-optimize-isl.c: Likewise.
9064         * graphite-poly.c: Likewise.
9065         * graphite-scop-detection.c: Likewise.
9066         * graphite-sese-to-poly.c: Likewise.
9067         * graphite.c: Likewise.
9068         * haifa-sched.c: Likewise.
9069         * hooks.h: Likewise.
9070         * hw-doloop.c: Likewise.
9071         * ifcvt.c: Likewise.
9072         * incpath.c: Likewise.
9073         * init-regs.c: Likewise.
9074         * internal-fn.c: Likewise.
9075         * ipa-chkp.c: Likewise.
9076         * ipa-comdats.c: Likewise.
9077         * ipa-cp.c: Likewise.
9078         * ipa-devirt.c: Likewise.
9079         * ipa-icf-gimple.c: Likewise.
9080         * ipa-icf.c: Likewise.
9081         * ipa-inline-analysis.c: Likewise.
9082         * ipa-inline-transform.c: Likewise.
9083         * ipa-inline.c: Likewise.
9084         * ipa-polymorphic-call.c: Likewise.
9085         * ipa-profile.c: Likewise.
9086         * ipa-prop.c: Likewise.
9087         * ipa-pure-const.c: Likewise.
9088         * ipa-ref.c: Likewise.
9089         * ipa-reference.c: Likewise.
9090         * ipa-split.c: Likewise.
9091         * ipa-utils.c: Likewise.
9092         * ipa-visibility.c: Likewise.
9093         * ipa.c: Likewise.
9094         * ira-build.c: Likewise.
9095         * ira-color.c: Likewise.
9096         * ira-conflicts.c: Likewise.
9097         * ira-costs.c: Likewise.
9098         * ira-emit.c: Likewise.
9099         * ira-lives.c: Likewise.
9100         * ira.c: Likewise.
9101         * jump.c: Likewise.
9102         * langhooks.c: Likewise.
9103         * lcm.c: Likewise.
9104         * loop-doloop.c: Likewise.
9105         * loop-init.c: Likewise.
9106         * loop-invariant.c: Likewise.
9107         * loop-iv.c: Likewise.
9108         * loop-unroll.c: Likewise.
9109         * lower-subreg.c: Likewise.
9110         * lra-assigns.c: Likewise.
9111         * lra-coalesce.c: Likewise.
9112         * lra-constraints.c: Likewise.
9113         * lra-eliminations.c: Likewise.
9114         * lra-lives.c: Likewise.
9115         * lra-remat.c: Likewise.
9116         * lra-spills.c: Likewise.
9117         * lra.c: Likewise.
9118         * lto-cgraph.c: Likewise.
9119         * lto-compress.c: Likewise.
9120         * lto-opts.c: Likewise.
9121         * lto-section-in.c: Likewise.
9122         * lto-section-out.c: Likewise.
9123         * lto-streamer-in.c: Likewise.
9124         * lto-streamer-out.c: Likewise.
9125         * lto-streamer.c: Likewise.
9126         * mcf.c: Likewise.
9127         * mode-switching.c: Likewise.
9128         * modulo-sched.c: Likewise.
9129         * omega.c: Likewise.
9130         * omp-low.c: Likewise.
9131         * optabs.c: Likewise.
9132         * opts-global.c: Likewise.
9133         * passes.c: Likewise.
9134         * plugin.c: Likewise.
9135         * postreload-gcse.c: Likewise.
9136         * postreload.c: Likewise.
9137         * predict.c: Likewise.
9138         * print-rtl.c: Likewise.
9139         * print-tree.c: Likewise.
9140         * profile.c: Likewise.
9141         * real.c: Likewise.
9142         * realmpfr.c: Likewise.
9143         * realmpfr.h: Likewise.
9144         * recog.c: Likewise.
9145         * ree.c: Likewise.
9146         * reg-stack.c: Likewise.
9147         * regcprop.c: Likewise.
9148         * reginfo.c: Likewise.
9149         * regrename.c: Likewise.
9150         * regs.h: Likewise.
9151         * regstat.c: Likewise.
9152         * reload.c: Likewise.
9153         * reload1.c: Likewise.
9154         * reorg.c: Likewise.
9155         * resource.c: Likewise.
9156         * rtl-chkp.c: Likewise.
9157         * rtlanal.c: Likewise.
9158         * rtlhooks.c: Likewise.
9159         * sanopt.c: Likewise.
9160         * sched-deps.c: Likewise.
9161         * sched-ebb.c: Likewise.
9162         * sched-rgn.c: Likewise.
9163         * sched-vis.c: Likewise.
9164         * sdbout.c: Likewise.
9165         * sel-sched-dump.c: Likewise.
9166         * sel-sched-ir.c: Likewise.
9167         * sel-sched.c: Likewise.
9168         * sese.c: Likewise.
9169         * shrink-wrap.c: Likewise.
9170         * shrink-wrap.h: Likewise.
9171         * simplify-rtx.c: Likewise.
9172         * stack-ptr-mod.c: Likewise.
9173         * statistics.c: Likewise.
9174         * stmt.c: Likewise.
9175         * stor-layout.c: Likewise.
9176         * store-motion.c: Likewise.
9177         * stringpool.c: Likewise.
9178         * symtab.c: Likewise.
9179         * target-globals.c: Likewise.
9180         * targhooks.c: Likewise.
9181         * toplev.c: Likewise.
9182         * tracer.c: Likewise.
9183         * trans-mem.c: Likewise.
9184         * tree-affine.c: Likewise.
9185         * tree-affine.h: Likewise.
9186         * tree-browser.c: Likewise.
9187         * tree-call-cdce.c: Likewise.
9188         * tree-cfg.c: Likewise.
9189         * tree-cfgcleanup.c: Likewise.
9190         * tree-chkp-opt.c: Likewise.
9191         * tree-chkp.c: Likewise.
9192         * tree-chrec.c: Likewise.
9193         * tree-complex.c: Likewise.
9194         * tree-data-ref.c: Likewise.
9195         * tree-dfa.c: Likewise.
9196         * tree-diagnostic.c: Likewise.
9197         * tree-dump.c: Likewise.
9198         * tree-eh.c: Likewise.
9199         * tree-emutls.c: Likewise.
9200         * tree-if-conv.c: Likewise.
9201         * tree-inline.c: Likewise.
9202         * tree-into-ssa.c: Likewise.
9203         * tree-iterator.c: Likewise.
9204         * tree-loop-distribution.c: Likewise.
9205         * tree-nested.c: Likewise.
9206         * tree-nrv.c: Likewise.
9207         * tree-object-size.c: Likewise.
9208         * tree-outof-ssa.c: Likewise.
9209         * tree-parloops.c: Likewise.
9210         * tree-phinodes.c: Likewise.
9211         * tree-predcom.c: Likewise.
9212         * tree-pretty-print.c: Likewise.
9213         * tree-pretty-print.h: Likewise.
9214         * tree-profile.c: Likewise.
9215         * tree-scalar-evolution.c: Likewise.
9216         * tree-sra.c: Likewise.
9217         * tree-ssa-address.c: Likewise.
9218         * tree-ssa-alias.c: Likewise.
9219         * tree-ssa-ccp.c: Likewise.
9220         * tree-ssa-coalesce.c: Likewise.
9221         * tree-ssa-copy.c: Likewise.
9222         * tree-ssa-copyrename.c: Likewise.
9223         * tree-ssa-dce.c: Likewise.
9224         * tree-ssa-dom.c: Likewise.
9225         * tree-ssa-dse.c: Likewise.
9226         * tree-ssa-forwprop.c: Likewise.
9227         * tree-ssa-ifcombine.c: Likewise.
9228         * tree-ssa-live.c: Likewise.
9229         * tree-ssa-loop-ch.c: Likewise.
9230         * tree-ssa-loop-im.c: Likewise.
9231         * tree-ssa-loop-ivcanon.c: Likewise.
9232         * tree-ssa-loop-ivopts.c: Likewise.
9233         * tree-ssa-loop-manip.c: Likewise.
9234         * tree-ssa-loop-niter.c: Likewise.
9235         * tree-ssa-loop-prefetch.c: Likewise.
9236         * tree-ssa-loop-unswitch.c: Likewise.
9237         * tree-ssa-loop.c: Likewise.
9238         * tree-ssa-loop.h: Likewise.
9239         * tree-ssa-math-opts.c: Likewise.
9240         * tree-ssa-operands.c: Likewise.
9241         * tree-ssa-phiopt.c: Likewise.
9242         * tree-ssa-phiprop.c: Likewise.
9243         * tree-ssa-pre.c: Likewise.
9244         * tree-ssa-propagate.c: Likewise.
9245         * tree-ssa-reassoc.c: Likewise.
9246         * tree-ssa-sccvn.c: Likewise.
9247         * tree-ssa-scopedtables.c: Likewise.
9248         * tree-ssa-sink.c: Likewise.
9249         * tree-ssa-strlen.c: Likewise.
9250         * tree-ssa-structalias.c: Likewise.
9251         * tree-ssa-tail-merge.c: Likewise.
9252         * tree-ssa-ter.c: Likewise.
9253         * tree-ssa-threadedge.c: Likewise.
9254         * tree-ssa-threadupdate.c: Likewise.
9255         * tree-ssa-uncprop.c: Likewise.
9256         * tree-ssa-uninit.c: Likewise.
9257         * tree-ssa.c: Likewise.
9258         * tree-ssanames.c: Likewise.
9259         * tree-stdarg.c: Likewise.
9260         * tree-streamer-in.c: Likewise.
9261         * tree-streamer-out.c: Likewise.
9262         * tree-streamer.c: Likewise.
9263         * tree-switch-conversion.c: Likewise.
9264         * tree-tailcall.c: Likewise.
9265         * tree-vect-data-refs.c: Likewise.
9266         * tree-vect-generic.c: Likewise.
9267         * tree-vect-loop-manip.c: Likewise.
9268         * tree-vect-loop.c: Likewise.
9269         * tree-vect-patterns.c: Likewise.
9270         * tree-vect-slp.c: Likewise.
9271         * tree-vect-stmts.c: Likewise.
9272         * tree-vectorizer.c: Likewise.
9273         * tree-vrp.c: Likewise.
9274         * tree.c: Likewise.
9275         * tsan.c: Likewise.
9276         * ubsan.c: Likewise.
9277         * valtrack.c: Likewise.
9278         * value-prof.c: Likewise.
9279         * var-tracking.c: Likewise.
9280         * varasm.c: Likewise.
9281         * varpool.c: Likewise.
9282         * vmsdbgout.c: Likewise.
9283         * vtable-verify.c: Likewise.
9284         * web.c: Likewise.
9285         * wide-int-print.cc: Likewise.
9286         * wide-int-print.h: Likewise.
9287         * wide-int.cc: Likewise.
9288         * xcoffout.c: Likewise.
9289         * config/aarch64/aarch64-builtins.c: Likewise.
9290         * config/aarch64/aarch64.c: Likewise.
9291         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9292         * config/alpha/alpha.c: Likewise.
9293         * config/arc/arc.c: Likewise.
9294         * config/arm/aarch-common.c: Likewise.
9295         * config/arm/arm-builtins.c: Likewise.
9296         * config/arm/arm-c.c: Likewise.
9297         * config/arm/arm.c: Likewise.
9298         * config/avr/avr-c.c: Likewise.
9299         * config/avr/avr-log.c: Likewise.
9300         * config/avr/avr.c: Likewise.
9301         * config/bfin/bfin.c: Likewise.
9302         * config/c6x/c6x.c: Likewise.
9303         * config/cr16/cr16.c: Likewise.
9304         * config/cris/cris.c: Likewise.
9305         * config/darwin-c.c: Likewise.
9306         * config/darwin.c: Likewise.
9307         * config/default-c.c: Likewise.
9308         * config/epiphany/epiphany.c: Likewise.
9309         * config/epiphany/mode-switch-use.c: Likewise.
9310         * config/epiphany/resolve-sw-modes.c: Likewise.
9311         * config/fr30/fr30.c: Likewise.
9312         * config/frv/frv.c: Likewise.
9313         * config/ft32/ft32.c: Likewise.
9314         * config/glibc-c.c: Likewise.
9315         * config/h8300/h8300.c: Likewise.
9316         * config/i386/i386-c.c: Likewise.
9317         * config/i386/i386.c: Likewise.
9318         * config/i386/msformat-c.c: Likewise.
9319         * config/i386/winnt-cxx.c: Likewise.
9320         * config/i386/winnt-stubs.c: Likewise.
9321         * config/i386/winnt.c: Likewise.
9322         * config/ia64/ia64-c.c: Likewise.
9323         * config/ia64/ia64.c: Likewise.
9324         * config/iq2000/iq2000.c: Likewise.
9325         * config/lm32/lm32.c: Likewise.
9326         * config/m32c/m32c-pragma.c: Likewise.
9327         * config/m32c/m32c.c: Likewise.
9328         * config/m32r/m32r.c: Likewise.
9329         * config/m68k/m68k.c: Likewise.
9330         * config/mcore/mcore.c: Likewise.
9331         * config/mep/mep-pragma.c: Likewise.
9332         * config/mep/mep.c: Likewise.
9333         * config/microblaze/microblaze-c.c: Likewise.
9334         * config/microblaze/microblaze.c: Likewise.
9335         * config/mips/mips.c: Likewise.
9336         * config/mmix/mmix.c: Likewise.
9337         * config/mn10300/mn10300.c: Likewise.
9338         * config/moxie/moxie.c: Likewise.
9339         * config/msp430/msp430-c.c: Likewise.
9340         * config/msp430/msp430.c: Likewise.
9341         * config/nds32/nds32-cost.c: Likewise.
9342         * config/nds32/nds32-fp-as-gp.c: Likewise.
9343         * config/nds32/nds32-intrinsic.c: Likewise.
9344         * config/nds32/nds32-isr.c: Likewise.
9345         * config/nds32/nds32-md-auxiliary.c: Likewise.
9346         * config/nds32/nds32-memory-manipulation.c: Likewise.
9347         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9348         * config/nds32/nds32-predicates.c: Likewise.
9349         * config/nds32/nds32.c: Likewise.
9350         * config/nios2/nios2.c: Likewise.
9351         * config/nvptx/nvptx.c: Likewise.
9352         * config/pa/pa.c: Likewise.
9353         * config/pdp11/pdp11.c: Likewise.
9354         * config/rl78/rl78-c.c: Likewise.
9355         * config/rl78/rl78.c: Likewise.
9356         * config/rs6000/rs6000-c.c: Likewise.
9357         * config/rs6000/rs6000.c: Likewise.
9358         * config/rx/rx.c: Likewise.
9359         * config/s390/s390-c.c: Likewise.
9360         * config/s390/s390.c: Likewise.
9361         * config/sh/sh-c.c: Likewise.
9362         * config/sh/sh-mem.cc: Likewise.
9363         * config/sh/sh.c: Likewise.
9364         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9365         * config/sh/sh_treg_combine.cc: Likewise.
9366         * config/sol2-c.c: Likewise.
9367         * config/sol2-cxx.c: Likewise.
9368         * config/sol2-stubs.c: Likewise.
9369         * config/sol2.c: Likewise.
9370         * config/sparc/sparc-c.c: Likewise.
9371         * config/sparc/sparc.c: Likewise.
9372         * config/spu/spu-c.c: Likewise.
9373         * config/spu/spu.c: Likewise.
9374         * config/stormy16/stormy16.c: Likewise.
9375         * config/tilegx/mul-tables.c: Likewise.
9376         * config/tilegx/tilegx-c.c: Likewise.
9377         * config/tilegx/tilegx.c: Likewise.
9378         * config/tilepro/mul-tables.c: Likewise.
9379         * config/tilepro/tilepro-c.c: Likewise.
9380         * config/tilepro/tilepro.c: Likewise.
9381         * config/v850/v850-c.c: Likewise.
9382         * config/v850/v850.c: Likewise.
9383         * config/vax/vax.c: Likewise.
9384         * config/visium/visium.c: Likewise.
9385         * config/vms/vms-c.c: Likewise.
9386         * config/vms/vms.c: Likewise.
9387         * config/vxworks.c: Likewise.
9388         * config/winnt-c.c: Likewise.
9389         * config/xtensa/xtensa.c: Likewise.
9390         * common/config/bfin/bfin-common.c: Likewise.
9392 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
9394         * tree.h (tree_code_for_canonical_type_merging): New function.
9395         * tree.c (gimple_canonical_types_compatible_p): Use
9396         tree_code_for_canonical_type_merging..
9398 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9400         PR c++/66192
9401         PR target/66200
9402         * doc/tm.texi: Regenerate.
9403         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
9404         * target.def (TARGET_RELAXED_ORDERING): Likewise.
9405         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
9406         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
9407         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
9408         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
9409         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
9410         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
9411         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
9413 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9415         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
9416         register fma steering pass.
9417         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
9418         AARCH64_TUNE_FMA_STEERING.
9420 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
9422         * tree.c (verify_type_variant): Verify that type and variant is
9423         compatible.
9424         (gimple_canonical_types_compatible_p): Look for main variants.
9426 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9428         * config.gcc (powerpc*-*-*): Add support for a new configure
9429         option --with-advance-toolchain=<xxx> which overrides using the
9430         default header files, libraries and dynamic linker.
9432         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
9433         specs to support the configure --with-advance-toolchain=<xxx>
9434         option.
9435         (INCLUDE_EXTRA_SPEC): Likewise.
9436         (LINK_OS_EXTRA_SPEC32): Likewise.
9437         (LINK_OK_EXTRA_SPEC64): Likewise.
9438         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
9439         (DYNAMIC_LINKER_PREFIX): Likewise.
9440         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
9441         toolchain support.
9442         (GLIBC_DYNAMIC_LINKER32): Likewise.
9443         (GLIBC_DYNAMIC_LINKER64): Likewise.
9444         (LINK_OS_LINUX_SPEC32): Likewise.
9445         (LINK_OS_LINUX_SPEC64): Likewise.
9447         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
9448         configuration option.
9450 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
9452         PR target/66275
9453         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
9454         to determine current function ABI.
9455         (ix86_function_value_regno_p): Ditto.
9457 2015-06-03  Martin Liska  <mliska@suse.cz>
9459         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
9460         * bitmap.h (struct bitmap_usage): Likewise.
9461         * ggc-common.c (struct ggc_usage): Likewise.
9462         * mem-stats.h (struct mem_location): Likewise.
9463         (struct mem_usage): Likewise.
9464         * vec.c (struct vec_usage): Likewise.
9466 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
9468         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
9469         -Bsymbolic.
9471 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
9473         * doc/plugins.texi (enum plugin_event): New event.
9474         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
9475         and PLUGIN_FINISH_FUNCTION.
9476         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
9477         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
9479 2015-06-03  Richard Biener  <rguenther@suse.de>
9481         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
9482         compute GROUP_GAP for the first element.
9483         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
9484         on in-group gaps.
9486 2015-06-03  Nick Clifton  <nickc@redhat.com>
9488         * config/rl78/rl78-real.md: Add peepholes to avoid a register
9489         copy when calling a function.
9490         * config/rl78/rl78.c (need_to_save): Do not push the frame
9491         pointer in an interrupt handler prologue if it is never used.
9493 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9495         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
9497 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
9499         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
9500         reference when cloning alias node.
9502 2015-06-03  Martin Liska  <mliska@suse.cz>
9504         * alloc-pool.h (struct pool_usage): Correct space padding.
9505         * ggc-page.c (ggc_print_statistics): Align columns in a report.
9506         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
9507         * tree.c (dump_tree_statistics): Align columns in a report.
9509 2015-06-03  Martin Liska  <mliska@suse.cz>
9511         * alloc-pool.c (allocate_pool_descriptor): Remove.
9512         (struct pool_output_info): Likewise.
9513         (print_alloc_pool_statistics): Likewise.
9514         (dump_alloc_pool_statistics): Likewise.
9515         * alloc-pool.h (struct pool_usage): New struct.
9516         (pool_allocator::initialize): Change usage of memory statistics
9517         to a new interface.
9518         (pool_allocator::release): Likewise.
9519         (pool_allocator::allocate): Likewise.
9520         (pool_allocator::remove): Likewise.
9521         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
9522         for a pool allocator.
9523         * mem-stats.h (struct mem_location): Add new ctor.
9524         (struct mem_usage): Add counter for number of
9525         instances.
9526         (mem_alloc_description::register_descriptor): New overload of
9527         * mem-stats.h (mem_location::to_string): New function.
9528         * bitmap.h (struct bitmap_usage): Use this new function.
9529         * ggc-common.c (struct ggc_usage): Likewise.
9530         the function.
9532 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
9534         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
9535         of GCC_INSN_FLAGS_H block.
9537 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
9539         * explow.c (plus_constant): Update check after force_const_mem call
9540         to see if the value returned is not a NULL_RTX.
9542 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
9544         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
9545         remove instumentation thunks calling reachable functions.
9546         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
9547         * lto/lto-partition.c (privatize_symbol_name_1): New.
9548         (privatize_symbol_name): Privatize both decl and orig_decl
9549         names for instrumented functions.
9550         * cgraph.c (cgraph_node::verify_node): Add transparent
9551         alias chain check for instrumented node.
9553 2015-06-03  Marek Polacek  <polacek@redhat.com>
9555         PR c/64223
9556         PR c/29358
9557         * tree.c (attribute_value_equal): Handle attribute format.
9558         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
9560 2015-06-03  Richard Biener  <rguenther@suse.de>
9562         PR tree-optimization/63916
9563         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9564         Forward-propagate non-invariant addresses by splicing their
9565         reference ops if the result isn't going to be used by PRE.
9566         (vn_reference_lookup_3): Remove pointless assert.
9568 2015-06-03  Richard Biener  <rguenther@suse.de>
9570         PR tree-optimization/66375
9571         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
9572         add to the evolution before following SSA edges.
9574 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
9576         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
9577         (dump_use, dump_cand, find_induction_variables): Pass new argument
9578         to dump_iv.
9579         (record_use): Preserve the ssa name information in IV.
9581 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
9583         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
9584         NO_MODE_TEST.
9585         (add_mode_tests): Don't add mode tests if the predicate only
9586         accepts scalar constant integers.  Otherwise, allow the mode
9587         of "op" to be VOIDmode if the predicate does accept such integers.
9589 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
9591         PR target/66258
9592         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
9593         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
9594         (aarch64_secondary_reload): Likewise
9595         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
9596         to !TARGET_FLOAT.
9597         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
9598         Likewise.
9600 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
9601             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9603         PR target/65768
9604         * cprop.c (try_replace_reg): Check cost of constants before propagating.
9606 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9608         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
9609         provide access to the IBM extended double floating point mode if
9610         long double is IEEE 128-bit floating point.
9611         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
9612         point if long double is the IBM extended double type.
9614         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
9615         enable adding IEEE 128-bit floating point support.
9616         (-mfloat128-software): Likewise.
9617         (-mfloat128-sw): Likewise.
9619         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
9620         128-bit floating point types to occupy any register if
9621         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
9622         -mfloat128-software is enabled.
9623         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
9624         support.
9625         (rs6000_option_override_internal): Add -mfloat128-* support.
9626         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
9628         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
9629         and float128 type nodes.
9630         (ieee128_float_type_node): Likewise.
9631         (ibm128_float_type_node): Likewise.
9633 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9635         PR target/66136
9636         * config/aarch64/geniterators.sh: Rewrite in awk.
9638 2015-06-02  Martin Liska  <mliska@suse.cz>
9640         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
9641         values to avoid -Wmaybe-uninitialized errors.
9643 2015-06-02  Richard Biener  <rguenther@suse.de>
9645         PR debug/65549
9646         * dwarf2out.c (lookup_context_die): New function.
9647         (resolve_addr): Avoid forcing a full DIE for the
9648         target of a DW_TAG_GNU_call_site during late compilation.
9649         Instead create a stub DIE without a type if we have a
9650         context DIE present.
9652 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
9654         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
9656 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
9658         PR tree-optimization/48052
9659         * cfgloop.h (struct control_iv): New.
9660         (struct loop): New field control_ivs.
9661         * tree-ssa-loop-niter.c : Include "stor-layout.h".
9662         (number_of_iterations_lt): Set no_overflow information.
9663         (number_of_iterations_exit): Init control iv in niter struct.
9664         (record_control_iv): New.
9665         (estimate_numbers_of_iterations_loop): Call record_control_iv.
9666         (loop_exits_before_overflow): New.  Interface factored out of
9667         scev_probably_wraps_p.
9668         (scev_probably_wraps_p): Factor loop niter related code into
9669         loop_exits_before_overflow.
9670         (free_numbers_of_iterations_estimates_loop): Free control ivs.
9671         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
9673 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
9675         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
9676         the target doesn't belong to the current function.
9678 2015-06-02  Marek Polacek  <polacek@redhat.com>
9680         PR middle-end/66345
9681         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
9682         get_maxval_strlen does not produce an INTEGER_CST.
9684 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
9686         * config/arc/constraints.md: Use lower-case names in match_code.
9687         * config/mmix/constraints.md: Likewise.
9689 2015-06-02  Richard Biener  <rguenther@suse.de>
9691         PR tree-optimization/65961
9692         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
9693         check and clarify dump message.
9694         (vect_build_slp_tree): If all children are built up from scalars
9695         build up the parent from scalars instead.
9696         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
9698 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9700         PR other/65366
9701         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
9702         instead of print ... .
9704 2015-06-02  Alan Modra  <amodra@gmail.com>
9706         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
9707         2014-08-11 change.
9709 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
9711         PR tree-optimization/52563
9712         PR tree-optimization/62173
9713         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
9714         (alloc_iv, set_iv): New parameter.
9715         (determine_biv_step): Delete.
9716         (find_bivs): Inline original determine_biv_step.  Pass new
9717         argument to set_iv.
9718         (idx_find_step): Use no_overflow information for conversion.
9719         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
9720         resolve_mixers handle folded_casts.
9721         (instantiate_scev_name): Change bool parameter to bool pointer.
9722         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
9723         (instantiate_array_ref, instantiate_scev_not): Ditto.
9724         (instantiate_scev_3, instantiate_scev_2): Ditto.
9725         (instantiate_scev_1, instantiate_scev_r): Ditto.
9726         (instantiate_scev_convert, ): Change parameter.  Pass argument
9727         to chrec_convert_aggressive.
9728         (instantiate_scev): Change argument.
9729         (resolve_mixers): New parameter and set it.
9730         (scev_const_prop): New argument.
9731         * tree-scalar-evolution.h (resolve_mixers): New parameter.
9732         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
9733         of chrec_conert_1.
9734         (chrec_convert): New parameter.  Move definition below.
9735         (chrec_convert_aggressive): New parameter and set it.  Call
9736         convert_affine_scev.
9737         * tree-chrec.h (chrec_convert): New parameter.
9738         (chrec_convert_aggressive): Ditto.
9740 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
9742         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
9743         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
9744         the LHS of a no-return call if its type has variable size.
9745         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
9746         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
9748 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
9750         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
9751         * config.in: Regenerate.
9753 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
9755         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
9756         consecutive accesses within outer-loop with force_vectorize
9757         for references with zero step in inner-loop.
9759 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
9761         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
9762         rather than from gcc/build directory.
9764 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
9766         PR target/65697
9767         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
9768         for __sync memory models, emit initial loads and final barriers as
9769         appropriate.
9771 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
9773         PR target/65697
9774         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
9775         (aarch64_split_atomic_op): Check for __sync memory models, emit
9776         appropriate initial loads and final barriers.
9778 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
9780         * Makefile.in: Fix gcov dependencies that should
9781         not point to a build folder.
9783 2015-06-01  Richard Biener  <rguenther@suse.de>
9785         Revert
9786         2015-05-29  Richard Biener  <rguenther@suse.de>
9788         PR tree-optimization/66314
9789         * tree-ssa-threadupdate.c (create_block_for_threading): Add
9790         parameter that says which loop the new block belongs to.
9791         (ssa_create_duplicates): Blocks duplicated for the threaded
9792         path belong to the loop of the thread destination.
9794 2015-06-01  Martin Liska  <mliska@suse.cz>
9796         * sched-deps.c: Include pool-alloc.h before
9797         cselib.h header file is included.
9799 2015-06-01  Richard Biener  <rguenther@suse.de>
9801         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
9802         functions.
9804 2015-06-01  Martin Liska  <mliska@suse.cz>
9806         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
9807         a function local variable.
9809 2015-06-01  Martin Liska  <mliska@suse.cz>
9811         * alloc-pool.c (create_alloc_pool): Remove.
9812         (empty_alloc_pool): Likewise.
9813         (free_alloc_pool): Likewise.
9814         (free_alloc_pool_if_empty): Likewise.
9815         (pool_alloc): Likewise.
9816         (pool_free): Likewise.
9817         * alloc-pool.h: Remove old declarations.
9819 2015-06-01  Martin Liska  <mliska@suse.cz>
9821         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
9822         (ira_create_object): Likewise.
9823         (ira_create_allocno): Likewise.
9824         (ira_create_live_range): Likewise.
9825         (copy_live_range): Likewise.
9826         (ira_finish_live_range): Likewise.
9827         (ira_free_allocno_costs): Likewise.
9828         (finish_allocno): Likewise.
9829         (finish_allocnos): Likewise.
9830         (initiate_prefs): Likewise.
9831         (ira_create_pref): Likewise.
9832         (finish_pref): Likewise.
9833         (finish_prefs): Likewise.
9834         (initiate_copies): Likewise.
9835         (ira_create_copy): Likewise.
9836         (finish_copy): Likewise.
9837         (finish_copies): Likewise.
9838         (finish_prefs): Likewise.
9840 2015-06-01  Martin Liska  <mliska@suse.cz>
9842         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
9843         (allocate_and_init_ipcp_value): Likewise.
9844         (ipcp_lattice::add_value): Likewise.
9845         (merge_agg_lats_step): Likewise.
9846         (ipcp_driver): Likewise.
9847         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
9848         (ipa_free_all_structures_after_iinln): Likewise.
9849         * ipa-prop.h: Likewise.
9851 2015-06-01  Martin Liska  <mliska@suse.cz>
9853         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
9854         pool allocator.
9855         (set_hint_predicate): Likewise.
9856         (inline_summary_alloc): Likewise.
9857         (reset_inline_edge_summary): Likewise.
9858         (reset_inline_summary): Likewise.
9859         (set_cond_stmt_execution_predicate): Likewise.
9860         (set_switch_stmt_execution_predicate): Likewise.
9861         (compute_bb_predicates): Likewise.
9862         (estimate_function_body_sizes): Likewise.
9863         (inline_free_summary): Likewise.
9865 2015-06-01  Martin Liska  <mliska@suse.cz>
9867         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
9868         (ipa_edge_duplication_hook): Likewise.
9869         (ipa_free_all_structures_after_ipa_cp): Likewise.
9870         (ipa_free_all_structures_after_iinln): Likewise.
9872 2015-06-01  Martin Liska  <mliska@suse.cz>
9874         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
9875         (ipa_profile_generate_summary): Likewise.
9876         (ipa_profile_read_summary): Likewise.
9877         (ipa_profile): Likewise.
9879 2015-06-01  Martin Liska  <mliska@suse.cz>
9881         * tree-ssa-structalias.c (new_var_info): Use new type-based
9882         pool allocator.
9883         (new_constraint): Likewise.
9884         (init_alias_vars): Likewise.
9885         (delete_points_to_sets): Likewise.
9887 2015-06-01  Martin Liska  <mliska@suse.cz>
9889         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
9890         (free_strinfo): Likewise.
9891         (pass_strlen::execute): Likewise.
9893 2015-06-01  Martin Liska  <mliska@suse.cz>
9895         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
9896         pool allocator.
9897         (vn_reference_insert_pieces): Likewise.
9898         (vn_phi_insert): Likewise.
9899         (visit_reference_op_call): Likewise.
9900         (copy_phi): Likewise.
9901         (copy_reference): Likewise.
9902         (process_scc): Likewise.
9903         (allocate_vn_table): Likewise.
9904         (free_vn_table): Likewise.
9906 2015-06-01  Martin Liska  <mliska@suse.cz>
9908         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
9909         pool allocator.
9910         (add_repeat_to_ops_vec): Likewise.
9911         (get_ops): Likewise.
9912         (maybe_optimize_range_tests): Likewise.
9913         (init_reassoc): Likewise.
9914         (fini_reassoc): Likewise.
9916 2015-06-01  Martin Liska  <mliska@suse.cz>
9918         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
9919         pool allocator.
9920         (bitmap_set_new): Likewise.
9921         (get_or_alloc_expr_for_constant): Likewise.
9922         (get_or_alloc_expr_for): Likewise.
9923         (phi_translate_1): Likewise.
9924         (compute_avail): Likewise.
9925         (init_pre): Likewise.
9926         (fini_pre): Likewise.
9928 2015-06-01  Martin Liska  <mliska@suse.cz>
9930         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
9931         (delete_dep_node): Likewise.
9932         (create_deps_list): Likewise.
9933         (free_deps_list): Likewise.
9934         (sched_deps_init): Likewise.
9935         (sched_deps_finish): Likewise.
9937 2015-06-01  Martin Liska  <mliska@suse.cz>
9939         * regcprop.c (free_debug_insn_changes): Use new type-based
9940         pool allocator.
9941         (replace_oldest_value_reg): Likewise.
9942         (pass_cprop_hardreg::execute): Likewise.
9944 2015-06-01  Martin Liska  <mliska@suse.cz>
9946         * ira-build.c (initiate_cost_vectors): Use new type-based
9947         pool allocator.
9948         (ira_allocate_cost_vector): Likewise.
9949         (ira_free_cost_vector): Likewise.
9950         (finish_cost_vectors): Likewise.
9952 2015-06-01  Martin Liska  <mliska@suse.cz>
9954         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
9955         pool allocator.
9956         (free_sched_pools): Likewise.
9957         * sel-sched-ir.h (_list_alloc): Likewise.
9958         (_list_remove): Likewise.
9960 2015-06-01  Martin Liska  <mliska@suse.cz>
9962         * stmt.c (add_case_node): Use new type-based pool allocator.
9963         (expand_case): Likewise.
9964         (expand_sjlj_dispatch_table): Likewise.
9966 2015-06-01  Martin Liska  <mliska@suse.cz>
9968         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
9969         (free_bb): Likewise.
9970         (pass_cse_reciprocals::execute): Likewise.
9972 2015-06-01  Martin Liska  <mliska@suse.cz>
9974         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
9975         (sra_deinitialize) Likewise.
9976         (create_access_1) Likewise.
9977         (build_accesses_from_assign) Likewise.
9978         (create_artificial_child_access) Likewise.
9980 2015-06-01  Martin Liska  <mliska@suse.cz>
9982         * dse.c (get_group_info):Use new type-based pool allocator.
9983         (dse_step0) Likewise.
9984         (free_store_info) Likewise.
9985         (delete_dead_store_insn) Likewise.
9986         (free_read_records) Likewise.
9987         (record_store) Likewise.
9988         (replace_read) Likewise.
9989         (check_mem_read_rtx) Likewise.
9990         (scan_insn) Likewise.
9991         (dse_step1) Likewise.
9992         (dse_step7) Likewise.
9994 2015-06-01  Martin Liska  <mliska@suse.cz>
9996         * df-scan.c (struct df_scan_problem_data):Use new type-based
9997         pool allocator.
9998         (df_scan_free_internal) Likewise.
9999         (df_scan_alloc) Likewise.
10000         (df_grow_reg_info) Likewise.
10001         (df_free_ref) Likewise.
10002         (df_insn_create_insn_record) Likewise.
10003         (df_mw_hardreg_chain_delete) Likewise.
10004         (df_insn_info_delete) Likewise.
10005         (df_free_collection_rec) Likewise.
10006         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
10007         (df_sort_and_compress_mws) Likewise.
10008         (df_ref_create_structure) Likewise.
10009         (df_ref_record) Likewise.
10011 2015-06-01  Martin Liska  <mliska@suse.cz>
10013         * df-problems.c (df_chain_create):Use new type-based pool allocator.
10014         (df_chain_unlink_1) Likewise.
10015         (df_chain_unlink) Likewise.
10016         (df_chain_remove_problem) Likewise.
10017         (df_chain_alloc) Likewise.
10018         (df_chain_free) Likewise.
10019         * df.h (struct dataflow) Likewise.
10021 2015-06-01  Martin Liska  <mliska@suse.cz>
10023         * cselib.c (new_elt_list):Use new type-based pool allocator.
10024         (new_elt_loc_list) Likewise.
10025         (unchain_one_elt_list) Likewise.
10026         (unchain_one_elt_loc_list) Likewise.
10027         (unchain_one_value) Likewise.
10028         (new_cselib_val) Likewise.
10029         (cselib_init) Likewise.
10030         (cselib_finish) Likewise.
10032 2015-06-01  Martin Liska  <mliska@suse.cz>
10034         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
10035         (sh_reorg) Likewise.
10037 2015-06-01  Martin Liska  <mliska@suse.cz>
10039         * cfg.c (initialize_original_copy_tables):Use new type-based
10040         pool allocator.
10041         (free_original_copy_tables) Likewise.
10042         (copy_original_table_clear) Likewise.
10043         (copy_original_table_set) Likewise.
10045 2015-06-01  Martin Liska  <mliska@suse.cz>
10047         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
10048         pool allocator.
10049         (asan_mem_ref_new) Likewise.
10050         (free_mem_ref_resources) Likewise.
10052 2015-06-01  Martin Liska  <mliska@suse.cz>
10054         * var-tracking.c (variable_htab_free):Use new type-based
10055         pool allocator.
10056         (attrs_list_clear) Likewise.
10057         (attrs_list_insert) Likewise.
10058         (attrs_list_copy) Likewise.
10059         (shared_hash_unshare) Likewise.
10060         (shared_hash_destroy) Likewise.
10061         (unshare_variable) Likewise.
10062         (var_reg_delete_and_set) Likewise.
10063         (var_reg_delete) Likewise.
10064         (var_regno_delete) Likewise.
10065         (drop_overlapping_mem_locs) Likewise.
10066         (variable_union) Likewise.
10067         (insert_into_intersection) Likewise.
10068         (canonicalize_values_star) Likewise.
10069         (variable_merge_over_cur) Likewise.
10070         (dataflow_set_merge) Likewise.
10071         (remove_duplicate_values) Likewise.
10072         (variable_post_merge_new_vals) Likewise.
10073         (dataflow_set_preserve_mem_locs) Likewise.
10074         (dataflow_set_remove_mem_locs) Likewise.
10075         (variable_from_dropped) Likewise.
10076         (variable_was_changed) Likewise.
10077         (set_slot_part) Likewise.
10078         (clobber_slot_part) Likewise.
10079         (delete_slot_part) Likewise.
10080         (loc_exp_insert_dep) Likewise.
10081         (notify_dependents_of_changed_value) Likewise.
10082         (emit_notes_for_differences_1) Likewise.
10083         (vt_emit_notes) Likewise.
10084         (vt_initialize) Likewise.
10085         (vt_finalize) Likewise.
10087 2015-06-01  Martin Liska  <mliska@suse.cz>
10089         * ira-color.c (init_update_cost_records):Use new type-based
10090         pool allocator.
10091         (get_update_cost_record) Likewise.
10092         (free_update_cost_record_list) Likewise.
10093         (finish_update_cost_records) Likewise.
10094         (initiate_cost_update) Likewise.
10096 2015-06-01  Martin Liska  <mliska@suse.cz>
10098         * lra.c (init_insn_regs): Use new type-based pool allocator.
10099         (new_insn_reg) Likewise.
10100         (free_insn_reg) Likewise.
10101         (free_insn_regs) Likewise.
10102         (finish_insn_regs) Likewise.
10103         (init_insn_recog_data) Likewise.
10104         (init_reg_info) Likewise.
10105         (finish_reg_info) Likewise.
10106         (lra_free_copies) Likewise.
10107         (lra_create_copy) Likewise.
10108         (invalidate_insn_data_regno_info) Likewise.
10110 2015-06-01  Martin Liska  <mliska@suse.cz>
10112         * lra-lives.c (free_live_range): Use new type-based pool allocator.
10113         (free_live_range_list) Likewise.
10114         (create_live_range) Likewise.
10115         (copy_live_range) Likewise.
10116         (lra_merge_live_ranges) Likewise.
10117         (remove_some_program_points_and_update_live_ranges) Likewise.
10118         (lra_live_ranges_init) Likewise.
10119         (lra_live_ranges_finish) Likewise.
10121 2015-06-01  Martin Liska  <mliska@suse.cz>
10123         * et-forest.c (et_new_occ): Use new type-based pool allocator.
10124         (et_new_tree): Likewise.
10125         (et_free_tree): Likewise.
10126         (et_free_tree_force): Likewise.
10127         (et_free_pools): Likewise.
10128         (et_split): Likewise.
10130 2015-06-01  Martin Liska  <mliska@suse.cz>
10132         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
10133         to header file.
10134         * alloc-pool.h (pool_allocator::pool_allocator): New function.
10135         (pool_allocator::release): Likewise.
10136         (inline pool_allocator::release_if_empty): Likewise.
10137         (inline pool_allocator::~pool_allocator): Likewise.
10138         (pool_allocator::allocate): Likewise.
10139         (pool_allocator::remove): Likewise.
10141 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10143         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
10144         in comment.
10146 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10148         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
10149         to fusible_ops.
10150         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
10151         (arm_macro_fusion_p): Likewise.
10152         (arm_macro_fusion_pair_p): Likewise.
10154 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10156         * config/aarch64/aarch64-protos.h (tune_params): Rename
10157         fuseable_ops to fusible_ops.
10158         * config/aarch64/aarch64.c (generic_tunings): Rename
10159         fuseable_ops to fusible_ops.
10160         (cortexa53_tunings): Likewise.
10161         (cortexa57_tunings): Likewise.
10162         (thunderx_tunings): Likewise.
10163         (xgene1_tunings): Likewise.
10164         (aarch64_macro_fusion_p): Likewise.
10165         (aarch64_macro_fusion_pair_p): Likewise.
10167 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10169         * config/s390/driver-native.c: New file.
10170         * config/s390/x-native: New file.
10171         * config.host: Add new files for s390.
10172         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
10173         and -march=native
10174         * config.gcc: Likewise.
10175         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
10176         * config/s390/s390-opts.h (enum processor_type): Ditto.
10177         * config/s390/s390.c (s390_option_override): Catch unhandled
10178         PROCESSOR_NATIVE
10180 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
10182         PR target/65527
10183         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
10184         redirection for instrumented calls.
10185         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
10186         (append_compiler_options): Append -fcheck-pointer-bounds.
10187         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
10188         (chkp_redirect_edge): New.
10189         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
10190         (chkp_redirect_edge): New.
10192 2015-06-01  Richard Biener  <rguenther@suse.de>
10194         PR tree-optimization/66280
10195         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
10196         def-use walking.
10198 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10200         * config/aarch64/aarch64.md
10201         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
10202         logic_shift_imm.
10204 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10206         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
10207         Remove obsolete kludge.
10209 2015-06-01  Richard Biener  <rguenther@suse.de>
10211         * tree-ssa-reassoc.c (get_rank): Simplify.
10213 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10215         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
10216         * configure: Regenerated.
10218 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
10220         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
10221         issue (add space between string literal and macro).
10222         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
10224 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
10226         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
10227         implict or explicit -fPIE or -fpie.
10229 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
10231         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
10233 2015-05-28  DJ Delorie  <dj@redhat.com>
10235         * expmed.c (extract_bit_field_1): Avoid clobbering a
10236         yet-to-be-used base/index register.
10238 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
10240         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
10241         (alias_stats): Add num_universal.
10242         (alias_set_subset_of): Special case pointers; be ready for NULL
10243         children.
10244         (alias_sets_conflict_p): Special case pointers; be ready for NULL
10245         children.
10246         (init_alias_set_entry): Break out from ...
10247         (record_alias_subset): ... here; propagate new fields;
10248         allocate children only when really needed.
10249         (get_alias_set): Do less generous pointer globbing.
10250         (dump_alias_stats_in_alias_c): Update statistics.
10252 2015-05-30  Alan Modra  <amodra@gmail.com>
10254         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
10255         correct block for use of r12.
10256         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
10258 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10260         PR target/66215
10261         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
10262         with -mhotpatch=.
10264 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
10266         PR tree-optimization/66142
10267         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
10268         virtual phis that feed themselves.
10270 2015-05-29  Richard Biener  <rguenther@suse.de>
10272         PR tree-optimization/66314
10273         * tree-ssa-threadupdate.c (create_block_for_threading): Add
10274         parameter that says which loop the new block belongs to.
10275         (ssa_create_duplicates): Blocks duplicated for the threaded
10276         path belong to the loop of the thread destination.
10278 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10280         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
10281         to cleanup-saved-temps.
10282         * doc/sourcebuild.texi (Clean up generated test files): Expand
10283         introduction.
10284         (dg-keep-saved-temps): Document new proc.
10285         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
10286         cleanup-saved-temps): Remove.
10288 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
10290         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
10291         gcc_AC_CHECK_DECLS.
10292         * configure: Regenerate.
10294 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10296         * config/nios2/linux.h (CPP_SPEC): Define.
10298 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10300         * config/microblaze/linux.h (CPP_SPEC): Define.
10302 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10304         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
10305         -pthread is specified.
10307 2015-05-28  Richard Biener  <rguenther@suse.de>
10309         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
10310         (vect_fixup_scalar_cycles_with_patterns): Likewise.
10311         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
10312         after pattern recog.
10313         (vect_create_epilog_for_reduction): Properly handle reductions
10314         with patterns.
10315         (vectorizable_reduction): Likewise.
10316         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
10317         reduction chains.
10318         (vect_get_constant_vectors): Create the correct number of
10319         initial values for reductions.
10320         (vect_schedule_slp_instance): Handle reduction chains that are
10321         type changing properly.
10322         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
10324 2015-05-28  Richard Biener  <rguenther@suse.de>
10326         PR tree-optimization/66142
10327         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
10328         values better in memcpy destination handling.  Handle non-aliasing
10329         we discover here.
10331 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
10333         PR target/63810
10334         * config/darwin-c.c (version_components): New global enum.
10335         (parse_version, version_as_legacy_macro)
10336         (version_as_modern_macro, macosx_version_as_macro): New functions.
10337         (version_as_macro): Remove.
10338         (darwin_cpp_builtins): Use new function.
10340 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
10342         * builtins.c (expand_builtin_acc_on_device): Mark parameters
10343         with ATTRIBUTE_UNUSED.
10345 2015-05-28  Julian Brown  <julian@codesourcery.com>
10347         PR libgomp/65742
10349         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
10350         sequence for !ACCEL_COMPILER.
10352 2015-05-28  Nick Clifton  <nickc@redhat.com>
10354         * config/rx/rx.c (push_regs): New function.  Extracts code from...
10355         (rx_expand_prologue): ... here.  Use push_regs to push even small
10356         spans of registers.
10357         (pop_regs): New function.
10358         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
10359         registers.
10361 2015-05-28  Richard Biener  <rguenther@suse.de>
10363         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
10364         member.
10365         (SLP_INSTANCE_BODY_COST_VEC): Remove.
10366         (vect_update_slp_costs_according_to_vf): Likewise.
10367         (vect_slp_analyze_operations): Update prototype.
10368         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
10369         vect_update_slp_costs_according_to_vf, adjust.
10370         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
10371         (vect_analyze_slp_cost_1): Likewise.
10372         (vect_analyze_slp_cost): Likewise.  Properly deal with
10373         widening reduction ops.  Commit body costs.
10374         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
10375         cost for loops from here.
10376         (vect_slp_analyze_operations): But do it from here when
10377         the vectorization factor is known and stmts are analyzed.
10378         (vect_bb_vectorization_profitable_p): Simplify.
10379         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
10380         (vect_update_slp_costs_according_to_vf): Remove.
10382 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
10383             H.J. Lu  <hongjiu.lu@intel.com>
10385         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
10386         (BUILD_CFLAGS): Likewise.
10387         (BUILD_CXXFLAGS): Likewise.
10388         (LINKER): Add @NO_PIE_FLAG@.
10389         (BUILD_LDFLAGS): Likewise.
10390         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
10391         --enable-default-pie.
10392         * common.opt (fPIE): Initialize to -1.
10393         (fpie): Likewise.
10394         (no-pie): New option.
10395         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
10396         * configure.ac: Add --enable-default-pie.
10397         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
10398         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
10399         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
10400         * gcc.c (NO_PIE_SPEC): New.
10401         (PIE_SPEC): Likewise.
10402         (NO_FPIE1_SPEC): Likewise.
10403         (FPIE1_SPEC): Likewise.
10404         (NO_FPIE2_SPEC): Likewise.
10405         (FPIE2_SPEC): Likewise.
10406         (NO_FPIE2_SPEC): Likewise.
10407         (FPIE_SPEC): Likewise.
10408         (NO_FPIE_SPEC): Likewise.
10409         (NO_FPIC1_SPEC): Likewise.
10410         (FPIC1_SPEC): Likewise.
10411         (NO_FPIC2_SPEC): Likewise.
10412         (FPIC2_SPEC): Likewise.
10413         (NO_FPIC2_SPEC): Likewise.
10414         (FPIC_SPEC): Likewise.
10415         (NO_FPIC_SPEC): Likewise.
10416         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
10417         (FPIE1_OR_FPIC1_SPEC): Likewise.
10418         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
10419         (FPIE2_OR_FPIC2_SPEC): Likewise.
10420         (NO_FPIE_AND_FPIC_SPEC): Likewise.
10421         (FPIE_OR_FPIC_SPEC): Likewise.
10422         (LD_PIE_SPEC): Likewise.
10423         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
10424         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
10425         * config/darwin.h (PIE_SPEC): Renamed to ...
10426         (DARWIN_PIE_SPEC): This.
10427         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
10428         * config/darwin9.h (PIE_SPEC): Renamed to ...
10429         (DARWIN_PIE_SPEC): This.
10430         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
10431         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10432         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
10433         FPIE2_OR_FPIC2_SPEC.
10434         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
10435         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
10436         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
10437         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10438         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10439         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10440         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
10441         * config/m32r/m32r.h (ASM_SPEC): Likewise.
10442         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
10443         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10444         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
10445         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
10446         * config/sparc/linux.h (ASM_SPEC): Likewise.
10447         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10448         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
10449         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
10450         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10451         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10452         * config/sparc/sparc.h (ASM_SPEC): Likewise.
10453         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
10454         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
10455         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
10456         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
10457         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
10458         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
10459         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
10460         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
10461         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
10462         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
10463         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
10464         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
10465         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10466         * config/vax/linux.h (ASM_SPEC): Likewise.
10467         * doc/install.texi: Document --enable-default-pie.
10468         * doc/invoke.texi: Document -no-pie.
10469         * config.in: Regenerated.
10470         * configure: Likewise.
10472 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10474         PR rtl-optimization/66168
10475         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
10476         can_move_invariant_reg.
10478 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
10480         PR target/66148
10481         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
10482         REG_EQUAL note when doing insert.
10484         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
10485         instead of "%d" for 'o' operand.
10487 2015-05-27  Nathan Sidwell  <nathan@acm.org>
10489         PR c++/66270
10490         * tree.c (build_pointer_type_for_mode): Canonical type does not
10491         inherit can_alias_all.
10492         (build_reference_type_for_mode): Likewise.
10494 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
10496         * expr.h (array_at_struct_end_p): Move to...
10497         (array_ref_element_size): Likewise.
10498         (component_ref_field_offset): Likewise.
10499         * tree.h (array_ref_element_size): ...here.
10500         (array_at_struct_end_p): Likewise.
10501         (component_ref_field_offset): Likewise.
10502         * expr.c (array_ref_element_size): Move to...
10503         (array_ref_low_bound): Likewise.
10504         (array_at_struct_end_p): Likewise.
10505         (array_ref_up_bound): Likewise.
10506         (component_ref_field_offset): Likewise.
10507         * tree.c (array_ref_element_size): ...here.
10508         (array_ref_low_bound): Likewise.
10509         (array_ref_up_bound): Likewise.
10510         (array_at_struct_end_p): Likewise.
10511         (component_ref_field_offset): Likewise.
10513 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
10514             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10516         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
10518 2015-05-27  Jason Merrill  <jason@redhat.com>
10520         PR bootstrap/66304
10521         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
10522         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
10523         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
10525 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
10527         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
10528         is true.
10530         * statistics.c (statistics_fini_pass): Print pass name.
10532 2015-05-27  Richard Biener  <rguenther@suse.de>
10534         PR tree-optimization/66272
10535         Revert parts of
10536         2014-08-15  Richard Biener  <rguenther@suse.de>
10538         PR tree-optimization/62031
10539         * tree-data-ref.c (dr_analyze_indices): Do not set
10540         DR_UNCONSTRAINED_BASE.
10541         (dr_may_alias_p): All indirect accesses have to go the
10542         formerly DR_UNCONSTRAINED_BASE path.
10543         * tree-data-ref.h (struct indices): Remove
10544         unconstrained_base member.
10545         (DR_UNCONSTRAINED_BASE): Remove.
10547 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
10549         * dwarf2out.c: Remove block_map.
10550         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
10551         (gen_lexical_block_die): Same.
10552         (dwarf2out_function_decl): Remove block_map use.
10553         (dwarf2out_c_finalize): Same.
10554         * tree-core.h (struct tree_block): Add die field.
10555         * tree.h (BLOCK_DIE): New.
10557 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10559         PR target/65358
10560         * expr.c (memory_load_overlap): New function.
10561         (emit_push_insn): When pushing partial args to the stack would
10562         clobber the register part load the overlapping part into a pseudo
10563         and put it into the hard reg after pushing.  Change return type
10564         to bool.  Add bool argument.
10565         * expr.h (emit_push_insn): Change return type to bool.
10566         Add bool argument.
10567         * calls.c (expand_call): Cancel sibcall optimization when encountering
10568         partial argument on targets with ARGS_GROW_DOWNWARD and
10569         !STACK_GROWS_DOWNWARD.
10570         (emit_library_call_value_1): Update callsite of emit_push_insn.
10571         (store_one_arg): Likewise.
10573 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
10575         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
10577 2015-05-27  Martin Liska  <mliska@suse.cz>
10579         * Makefile.in: Add additional dependencies related to memory report
10580         enhancement.
10581         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
10582         * bitmap.c (struct bitmap_descriptor_d): Remove.
10583         (struct loc): Likewise.
10584         (struct bitmap_desc_hasher): Likewise.
10585         (bitmap_desc_hasher::hash): Likewise.
10586         (bitmap_desc_hasher::equal): Likewise.
10587         (get_bitmap_descriptor): Likewise.
10588         (bitmap_register): User new memory descriptor API.
10589         (register_overhead): Likewise.
10590         (bitmap_find_bit): Register nsearches and search_iter statistics.
10591         (struct bitmap_output_info): Remove.
10592         (print_statistics): Likewise.
10593         (dump_bitmap_statistics): Use new memory descriptor.
10594         * bitmap.h (struct bitmap_usage): New class.
10595         * genmatch.c: Extend header file inclusion.
10596         * genpreds.c: Likewise.
10597         * ggc-common.c (struct ggc_usage): New class.
10598         (struct ggc_loc_desc_hasher): Remove.
10599         (ggc_loc_desc_hasher::hash): Likewise.
10600         (ggc_loc_desc_hasher::equal): Likewise.
10601         (struct ggc_ptr_hash_entry): Likewise.
10602         (struct ptr_hash_hasher): Likewise.
10603         (ptr_hash_hasher::hash): Likewise.
10604         (ptr_hash_hasher::equal): Likewise.
10605         (make_loc_descriptor): Likewise.
10606         (ggc_prune_ptr): Likewise.
10607         (dump_ggc_loc_statistics): Use new memory descriptor.
10608         (ggc_record_overhead): Likewise.
10609         (ggc_free_overhead): Likewise.
10610         (final_cmp_statistic): Remove.
10611         (cmp_statistic): Likewise.
10612         (ggc_add_statistics): Liekwise.
10613         (ggc_prune_overhead_list): Likewise.
10614         * hash-map-traits.h: New file.
10615         * hash-map.h (struct default_hashmap_traits): Move the traits to a
10616         separate header file.
10617         * hash-set.h: Pass memory statistics info to ctor.
10618         * hash-table.c (void dump_hash_table_loc_statistics): New function.
10619         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
10620         (hash_table::~hash_table): Register memory release operation.
10621         (hash_table::alloc_entries): Handle memory allocation operation.
10622         (hash_table::expand): Likewise.
10623         * inchash.c (iterative_hash_hashval_t): Move implementation to header
10624         file.
10625         (iterative_hash_host_wide_int): Likewise.
10626         * inchash.h (class hash): Likewise.
10627         * mem-stats-traits.h: New file.
10628         * mem-stats.h: New file.
10629         (mem_location): Add new class.
10630         (mem_usage): Likewise.
10631         (mem_alloc_description): Likewise.
10632         * sese.c: Add new header file inclusision.
10633         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
10634         and hash_set.
10635         * tree-sra.c: Add new header file inclusision.
10636         * vec.c (struct vec_descriptor): Remove.
10637         (hash_descriptor): Likewise.
10638         (struct vec_usage): Likewise.
10639         (struct ptr_hash_entry): Likewise.
10640         (hash_ptr): Likewise.
10641         (eq_ptr): Likewise.
10642         (vec_prefix::register_overhead): Use new memory descriptor API.
10643         (vec_prefix::release_overhead): Likewise.
10644         (add_statistics): Remove.
10645         (dump_vec_loc_statistics): Use new memory descriptor API.
10646         * vec.h (struct vec_prefix): Likewise.
10647         (va_heap::reserve): Likewise.
10648         (va_heap::release): Likewise.
10649         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
10651 2015-05-27  Richard Biener  <rguenther@suse.de>
10653         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
10654         earlier and remove ??? comment.
10655         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
10656         and got called from loop analysis bail out.  Always pass the SLP
10657         node to the vectorizable_* functions.
10658         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
10659         the premature SLP check here.
10660         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
10661         detected SLP stmts.
10662         (vect_detect_hybrid_slp_1): Likewise.
10664 2015-05-26  Jeff Law  <law@redhat.com>
10666         * combine.c (find_split_point): Verify that the shift count is a
10667         constant when choosing (plus (ashift ...)) as a split point.
10669         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
10670         No functional changes.
10672 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
10674         * ipa-polymorphic-call.c
10675         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
10676         case when call target is already known.
10678 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
10680         PR target/65979
10681         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
10682         take into account the case that operands[1] and operands[2]
10683         are the same register.
10685 2015-05-26  Michael Matz  <matz@suse.de>
10687         PR middle-end/66251
10689         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
10690         stores.
10691         (vect_create_vectorized_demotion_stmts): Always set
10692         STMT_VINFO_VEC_STMT, also with SLP.
10693         (vectorizable_store): Handle strided group stores.
10695 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10697         PR target/66049
10698         * config/aarch64/aarch64.md
10699         (*adds_shift_imm_<mode>):  New pattern.
10700         (*subs_shift_imm_<mode>):  Likewise.
10701         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
10702         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
10703         (*add_uxt<mode>_shift2): Likewise.
10704         (*add_uxtsi_shift2_uxtw): Likewise.
10705         (*sub_uxt<mode>_shift2): Likewise.
10706         (*sub_uxtsi_shift2_uxtw): Likewise.
10708 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
10710         * config/rs6000/constraints.md (Y, U): Use match_test.
10712 2015-05-26  Christian Bruel  <christian.bruel@st.com>
10714         PR target/52144
10715         * config/arm/arm.c (arm_option_check_internal)
10716         (arm_option_params_internal): Check opts->target_flags to set macros.
10717         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
10718         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
10719         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
10720         (builtin_define): Replaced with def_or_undef_macro.
10721         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
10722         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
10723         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
10724         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
10725         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
10726         (TARGET_ARM_FEATURE_LDREX_P)
10727         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
10728         * config/arm/arm-c.c (def_or_undef_macro): New function.
10729         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
10731 2015-05-26  Christian Bruel  <christian.bruel@st.com>
10733         * c-common.h (builtin_define_with_int_value)
10734         (builtin_define_type_sizeof): Declare.
10735         * c-cppbuiltin.c (builtin_define_with_int_value)
10736         (builtin_define_type_sizeof): Externalize.
10737         (builtin_define_std): Cleanup declaration.
10738         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
10739         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
10740         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
10741         (builtin_define, builtin_assert): New macros.
10743 2015-05-26  Richard Biener  <rguenther@suse.de>
10745         PR tree-optimization/66142
10746         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
10747         MEM_REFs for the same base address.
10749 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10751         PR ipa/66181
10752         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
10754 2015-05-26  Jason Merrill  <jason@redhat.com>
10756         * configure.ac: Set CXXFLAGS for ISL test.
10757         * configure: Regenerate.
10759         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
10760         strstr and basename.
10761         * configure: Regenerate.
10763 2015-05-26  Richard Biener  <rguenther@suse.de>
10765         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
10766         X % C -> X & (C - 1) for C being a power-of two to ...
10767         * match.pd: ... patterns.
10769 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
10771         * match.pd (swapped_tcc_comparison): New operator list.
10772         (-A CMP -B): New simplification.
10773         * fold-const.c (fold_comparison): Remove corresponding code.
10775 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
10777         * caller-save.c (init_caller_save): Base temporary register numbers
10778         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
10779         * cfgloopanal.c (init_set_costs): Likewise.
10780         * dojump.c (prefer_and_bit_test): Likewise.
10781         * expr.c (init_expr_target): Likewise.
10782         * ira.c (setup_prohibited_mode_move_regs): Likewise.
10783         * lower-subreg.c (init_lower_subreg): Likewise.
10784         * postreload.c (reload_cse_regs_1): Likewise.
10786 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
10788         * gensupport.h (compute_test_codes): Declare.
10789         * gensupport.c (compute_predicate_codes): Rename to...
10790         (compute_test_codes): ...this.  Generalize error message.
10791         (process_define_predicate): Update accordingly.
10792         * genpreds.c (compute_maybe_allows): Delete.
10793         (add_constraint): Use compute_test_codes to determine whether
10794         something can accept a SUBREG, REG or MEM.
10796 2015-05-26  Torvald Riegel  <triegel@redhat.com>
10798         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
10799         'memory model' to align with C++11; fix description of memory orders;
10800         fix a few typos.
10802 2015-05-26  Richard Biener  <rguenther@suse.de>
10804         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
10805         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
10806         detect whether we apply SLP.  Remove call to
10807         vect_update_slp_costs_according_to_vf.
10808         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
10809         vect_update_slp_costs_according_to_vf from here.  Dispatch
10810         to vect_slp_analyze_operations to analyze SLP stmts.
10811         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
10812         unused bb_vec_info parameter, adjust assert.
10813         (vect_slp_analyze_operations): Pass in the slp instance tree
10814         instead of bb_vec_info.
10815         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
10816         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
10818 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
10820         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
10821         Q_REGS.  Expand comment.
10822         (REG_CLASS_NAMES): Ditto.
10823         (REG_CLASS_CONTENTS): Ditto.
10825 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
10827         PR target/66274
10828         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
10829         when LEGACY_INT_REGNO_P is processed.
10831 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
10833         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
10835 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10837         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
10838         register if not marked dead/unused, before return.
10840 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
10842         PR lto/66180
10843         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
10844         is set; check for assembler name at LTO time.
10845         (type_in_anonymous_namespace): Remove hacks, check that all
10846         anonymous types are called "<anon>"
10847         (odr_type_p): Simplify; add check for "<anon>"
10848         (odr_subtypes_equivalent): Add odr_type_p check.
10849         * tree.c (need_assembler_name_p): Even anonymous namespace needs
10850         assembler name.
10852 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
10854         * ipa-utils.h (method_class_type): Remove.
10855         * cgraphunit.c (walk_polymorphic_call_targets): Use
10856         TYPE_METHOD_BASETYPE.
10857         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
10858         on main variants only.
10859         (method_class_type): Remove.
10860         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
10861         (build_type_inheritance_graph): Likewise.
10862         * ipa-icf.c (sem_function::equals_wpa): Likewise.
10863         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
10864         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
10866 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
10868         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
10869         is_typedef_decl, typedef_variant_p): Constify.
10870         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
10871         is_typedef_decl, typedef_variant_p): Constify.
10873 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10875         * defaults.h (gen_tablejump): New function.
10876         (HAVE_tablejump): Add default value.
10877         * expr.c: Adjust.
10878         * stmt.c: Likewise.
10880 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10882         * defaults.h (gen_store_multiple): New function.
10883         (HAVE_store_multiple): Add default value.
10884         * expr.c (move_block_from_reg): Adjust.
10886 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10888         * defaults.h (gen_load_multiple): New function.
10889         (HAVE_load_multiple): Add default value.
10890         * expr.c (move_block_to_reg): Adjust.
10892 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10894         * defaults.h (gen_mem_signal_fence): New function.
10895         (HAVE_mem_signal_fence): Add default value.
10896         * optabs.c: Adjust.
10898 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10900         * defaults.h (gen_memory_barrier): New function.
10901         (HAVE_memory_barrier): Add default value.
10902         * optabs.c: Adjust.
10904 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10906         * defaults.h (gen_mem_thread_fence): New function.
10907         (HAVE_mem_thread_fence): Add default definition.
10908         * optabs.c: Adjust.
10910 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10912         * combine.c (find_split_point): Check the value of HAVE_lo_sum
10913         instead of if it is defined.
10914         (combine_simplify_rtx): Likewise.
10915         * lra-constraints.c (process_address_1): Likewise.
10916         * config/darwin.c: Adjust.
10917         * genconfig.c (main): Always define HAVE_lo_sum.
10919 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10921         * genmatch.c (parser::parse_operation): Reject expanding
10922         operator-list inside 'for'.
10924 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10926         * genmatch.c (parser::parse_for): Reject iterator if used as
10927         operator-list.
10929 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10931         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
10932         after end of id-list.
10934 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
10936         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
10937         we do not try to compute canonical type for type that does not need
10938         alias set.
10939         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
10940         FUNCITON_TYPE.
10941         * tree.h (type_with_alias_set_p): New.
10943 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
10945         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
10946         function attributes.
10947         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
10949 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
10951         * Makefile.in (check_gcc_parallelize): Delete.
10952         (lang_checks_parallelized): Update comment.
10954 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
10956         PR rtl-optimization/66237
10957         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
10958         location of an "as_a" cast.
10960 2015-05-22  Jeff Law  <law@redhat.com>
10962         * config/pa/pa.md (non-canonical shift-add insns): Remove.
10963         (peepholes with non-canonical RTL sources): Remove.
10964         (peepholes for indexed stores of FP regs in integer modes): Match and
10965         generate canonical RTL.
10967 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
10969         PR tree-optimization/63387
10970         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
10971         ((x ord x) & (y ord y) -> (x ord y),
10972         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
10973         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
10974         vectors like scalars.
10976 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
10978         * convert.c (convert_to_integer, convert_to_vector): Include the
10979         types in the error message.
10981 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
10983         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
10984         simplifications.
10986 2015-05-22  Jeff Law  <law@redhat.com>
10988         * config/pa/pa.md (integer_indexed_store splitters): Use
10989         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
10990         insns -- adjusting the constant 2nd operand accordingly.
10992         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
10993         (plus (ashift X log2) Y) if it is a split point.
10995         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
10996         out of hppa_legitimize_address to handle both forms of a multiply
10997         by 2, 4 or 8.
10998         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
10999         Always generate the ASHIFT variant as the result is not directly
11000         used in a MEM.  Update comments and refactor slightly to improve
11001         readability.
11003 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11005         PR target/65491
11006         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
11007         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
11008         (aarch64_composite_type_p): Return false if given type and mode are
11009         for a short vector.
11011 2015-05-22  Richard Biener  <rguenther@suse.de>
11013         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
11014         member.
11015         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
11016         patterns when determining whether SLP is pure.
11017         (vect_is_slp_reduction): Remove check for pattern stmts.
11018         (vect_is_simple_reduction_1): Remove dead code.
11019         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
11020         (vect_get_and_check_slp_defs): Pass in the stmt number.
11021         Allow the first def in a reduction to be not a pattern stmt when
11022         the rest of the stmts def are patterns.
11023         (vect_build_slp_tree_1): Allow tcc_expression codes like
11024         SAD_EXPR and DOT_PROD_EXPR.
11025         (vect_build_slp_tree): Adjust.
11026         (vect_analyze_slp): Refactor and move BB vect error message ...
11027         (vect_slp_analyze_bb_1): ... here.
11029 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
11031         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
11032         for CSWTCH temporary.
11034 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11036         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
11037         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
11038         unknown unspecs.
11040 2015-05-22  Richard Biener  <rguenther@suse.de>
11042         PR tree-optimization/66251
11043         * tree-vect-stmts.c (vectorizable_conversion): Properly
11044         set STMT_VINFO_VEC_STMT even for the SLP case.
11046 2015-05-22  Marek Polacek  <polacek@redhat.com>
11048         * doc/extend.texi: Use @pxref instead of @xref.
11050 2015-05-22  hiraditya  <hiraditya@msn.com>
11052         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
11053         redundant if.
11055 2015-05-22  Richard Biener  <rguenther@suse.de>
11057         PR tree-optimization/65701
11058         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11059         Move peeling cost models into one place.  Peel for alignment
11060         for single loads only if an aligned load is cheaper than
11061         an unaligned load.
11063 2015-05-22  Marek Polacek  <polacek@redhat.com>
11065         PR c/47043
11066         * doc/extend.texi (Enumerator Attributes): New section.
11067         Document syntax of enumerator attributes.
11069 2015-05-22  Richard Biener  <rguenther@suse.de>
11071         * tree-vect-loop.c (get_reduction_op): New function.
11072         (vect_model_reduction_cost): Use it, add reduc_index parameter.
11073         Make ready for BB reductions.
11074         (vect_create_epilog_for_reduction): Use get_reduction_op.
11075         (vectorizable_reduction): Init reduc_index to a valid value.
11076         Adjust vect_model_reduction_cost call.
11077         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
11078         operand for reduction defaults.  Add SAD_EXPR support.
11079         Assert we have a neutral op for SLP reductions.
11080         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
11081         walking pattern stmt ops only recurse to SSA names.
11083 2015-05-22  Richard Biener  <rguenther@suse.de>
11085         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
11086         assert with guard, remove check on detected reduction.
11087         (vect_recog_sad_pattern): Likewise.
11088         (vect_recog_widen_sum_pattern): Likewise.
11090 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11092         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
11093         __always_inline__ attribute.
11094         (vaesdq_u8): Likewise.
11095         (vaesmcq_u8): Likewise.
11096         (vaesimcq_u8): Likewise.
11097         (vsha1cq_u32): Likewise.
11098         (vsha1mq_u32): Likewise.
11099         (vsha1pq_u32): Likewise.
11100         (vsha1h_u32): Likewise.
11101         (vsha1su0q_u32): Likewise.
11102         (vsha1su1q_u32): Likewise.
11103         (vsha256hq_u32): Likewise.
11104         (vsha256h2q_u32): Likewise.
11105         (vsha256su0q_u32): Likewise.
11106         (vsha256su1q_u32): Likewise.
11107         (vmull_p64): Likewise.
11108         (vmull_high_p64): Likewise.
11110 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11112         * final.c (final_scan_insn): Don't check HAVE_peephole with the
11113         preprocessor.
11114         * output.h: Likewise.
11115         * genconfig.c (main): Alwways define HAVE_peephole.
11116         * genpeep.c: Don't emit checks of HAVE_peephole.
11118 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11120         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
11121         check HAVE_conditional_move with the preprocessor.
11123 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11125         * genconfig.c (main): Always define HAVE_conditional_move.
11126         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
11127         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
11128         is defined.
11130 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11132         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
11133         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
11134         and FRAME_POINTER_REGNUM with the preprocessor.
11136 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11138         * defaults.h: Add default for STACK_PUSH_CODE.
11139         * expr.c: Don't redefine STACK_PUSH_CODE.
11140         * recog.c: Likewise.
11142 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11144         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
11145         sched-deps.c: Use if instead of preprocessor checks with
11146         STACK_GROWS_DOWNWARD.
11148 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11150         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
11151         is defined.
11152         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
11153         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
11154         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
11155         * doc/tm.texi: Regenerate.
11157 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11159         PR target/66232
11160         * config/i386/constraints.md (Bg): New constraint for GOT memory
11161         operand.
11162         * config/i386/i386.md (*call_got_x32): New pattern.
11163         (*call_value_got_x32): Likewise.
11164         * config/i386/predicates.md (GOT_memory_operand): New predicate.
11166 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
11168         PR tree-optimization/66233
11169         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
11170         Simplify.
11172 2015-05-21  Jeff Law  <law@redhat.com>
11174         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
11175         than MULT for shadd sequences.
11177 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
11179         * alias.c (alias_stats): New static var.
11180         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
11181         (dump_alias_stats_in_alias_c): New function.
11182         * alias.h (dump_alias_stats_in_alias_c): Declare.
11183         * tree-ssa-alias.c (dump_alias_stats): Call it.
11185 2015-05-08  Michael Matz  <matz@suse.de>
11187         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
11188         to strided_p.
11189         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
11190         (STMT_VINFO_STRIDED_P): ... this.
11191         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
11192         (vect_verify_datarefs_alignment): Likewise.
11193         (vect_enhance_data_refs_alignment): Likewise.
11194         (vect_analyze_data_ref_access): Likewise.
11195         (vect_analyze_data_refs): Accept strided stores.
11196         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
11197         (vect_model_load_cost): Adjust for macro rename.
11198         (vectorizable_mask_load_store): Likewise.
11199         (vectorizable_load): Likewise.
11200         (vectorizable_store): Open code strided stores.
11202 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11204         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
11205         Document sqrt_insn.
11207 2015-05-21  Richard Biener  <rguenther@suse.de>
11209         PR c++/66211
11210         * match.pd: Guard pattern optimzing (int)(float)int
11211         conversions to apply only on GIMPLE.
11213 2015-05-21  Jeff Law  <law@redhat.com>
11215         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
11216         multiply-accumulate/shift-add insn generation.
11218 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
11220         PR target/54236
11221         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
11222         operands[1] are the same.
11224 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
11226         PR middle-end/66221
11227         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
11228         build_distinct_type_copy to copy bounds.
11230 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
11232         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
11233         Change to unsigned int.
11235 2015-05-20  Jeff Law  <law@redhat.com>
11237         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
11238         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
11239         (pa_shadd_constant_p): Allow constants for shadd insns rather
11240         than valid scaling constants for memory addresses.
11241         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
11242         * config/pa/predicates.md (mem_shadd_operand): New predicate.
11243         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
11244         (shift-add insns using ASHIFT): New patterns.
11246 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
11248         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
11249         feasible.
11250         (fix_up_fall_thru_edges): Likewise.
11251         (fix_crossing_conditional_branches): Likewise. Promote jump targets
11252         from to rtx_insn to rtx_code_label where feasible.
11253         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
11254         gen_move_insn (returned type changed to rtx_insn).
11255         * builtins.c (expand_errno_check): Fix arguments of
11256         do_compare_rtx_and_jump (now expects rtx_code_label).
11257         (expand_builtin_acc_on_device): Likewise.
11258         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
11259         invert_jump (now exprects rtx_jump_insn).
11260         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
11261         (construct_init_block): Use rtx_code_label.
11262         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
11263         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
11264         calling redirect_jump.
11265         (patch_jump_insn): Likewise.
11266         (redirect_branch_edge): Likewise.
11267         (force_nonfallthru_and_redirect): Likewise.
11268         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
11269         when suitable.
11270         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
11271         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
11272         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
11273         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
11274         to store the value retured by gen_label_rtx.
11275         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
11276         rtx_jump_insn.
11277         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
11278         (split_branches): Fix calls of redirect_jump.
11279         * dojump.c (jumpifnot): Promote argument type from rtx to
11280         rtx_code_label.
11281         (jumpifnot_1): Likewise.
11282         (jumpif): Likewise.
11283         (jumpif_1): Likewise.
11284         (do_jump_1): Likewise.
11285         (do_jump): Likewise. Use rtx_code_label when feasible.
11286         (do_jump_by_parts_greater_rtx): Likewise.
11287         (do_jump_by_parts_zero_rtx): Likewise.
11288         (do_jump_by_parts_equality_rtx): Likewise.
11289         (do_compare_rtx_and_jump): Likewise.
11290         * dojump.h: Update function prototypes.
11291         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
11292         returns rtx_insn).
11293         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
11294         rtx_jump_insn.
11295         (emit_label_before): Likewise.
11296         (emit_jump_insn_after_noloc): Likewise.
11297         (emit_jump_insn_after_setloc): Likewise.
11298         (emit_jump_insn_after): Likewise
11299         (emit_jump_insn_before_setloc): Likewise.
11300         (emit_jump_insn_before): Likewise.
11301         (emit_label_before): Promote return type to rtx_code_label.
11302         (emit_label): Likewise.
11303         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
11304         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
11305         gen_move_insn.
11306         (emit_stack_restore): Likewise.
11307         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
11308         (do_cmp_and_jump): Likewise.
11309         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
11310         from rtx to rtx_code_label.
11311         (gen_move_insn_uncast): New function.
11312         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
11313         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
11314         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
11315         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
11316         invert_jump_1 and redirect_jump_1.
11317         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
11318         do_compare_rtx_and_jump.
11319         (expand_addsub_overflow): Likewise.
11320         (expand_neg_overflow): Likewise.
11321         (expand_mul_overflow): Likewise.
11322         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
11323         return value of gen_move_insn.
11324         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
11325         * loop-doloop.c (add_test): Use rtx_code_label.
11326         (doloop_modify): Likewise.
11327         (doloop_optimize): Likewise.
11328         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
11329         * lra-constraints.c (emit_spill_move): Remove cast of value returned
11330         by gen_move_insn.
11331         (inherit_reload_reg): Add cast when calling dump_insn_slim.
11332         (split_reg): Likewise.
11333         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
11334         gen_move_insn.
11335         * optabs.c (expand_binop_directly): Remove casts of values returned by
11336         maybe_gen_insn.
11337         (expand_unop_direct): Likewise.
11338         (expand_abs): Likewise.
11339         (maybe_emit_unop_insn): Likewise.
11340         (maybe_gen_insn): Promote return type to rtx_insn.
11341         * optabs.h: Update prototype of maybe_gen_insn.
11342         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
11343         redundant cast.
11344         * recog.c (struct peep2_insn_data): Promote type of insn field to
11345         rtx_insn.
11346         (peep2_reinit_state): Use NULL instead of NULL_RTX.
11347         (peep2_attempt): Remove casts of insn in peep2_insn_data.
11348         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
11349         * recog.h (struct insn_gen_fn): Promote return types of function
11350         pointers and operator ().from rtx to rtx_insn.
11351         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
11352         (fill_eager_delay_slots): Likewise.
11353         (relax_delay_slots): Likewise.
11354         (make_return_insns): Likewise.
11355         (dbr_schedule): Likewise.
11356         (optimize_skips): Likewise.
11357         (reorg_redirect_jump): Likewise.
11358         (fill_slots_from_thread): Likewise.
11359         * reorg.h: Update prototypes.
11360         * resource.c (find_dead_or_set_registers): Use dyn_cast to
11361         rtx_jump_insn instead of check.  Use it's jump_target method.
11362         * rtl.h (rtx_jump_insn::jump_label): Define new method.
11363         (rtx_jump_insn::jump_target): Define new method.
11364         (rtx_jump_insn::set_jump_target): Define new method.
11365         * rtlanal.c (tablejump_p): Promote type of one local variable.
11366         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
11367         (sched_analyze_insn): Likewise.
11368         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
11369         (print_insn): Likewise.
11370         * stmt.c (label_rtx): Promote return type to rtx_insn.
11371         (force_label_rtx): Likewise.
11372         (jump_target_rtx): Define new function.
11373         (expand_label): Use it, get rid of one cast.
11374         (expand_naked_return): Promote rtx to rtx_code_label.
11375         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
11376         (expand_case): Use rtx_code_label instread of rtx where feasible.
11377         (expand_sjlj_dispatch_table): Likewise.
11378         (emit_case_nodes): Likewise.
11379         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
11380         * store-motion.c (insert_store): Make use of new return type of
11381         gen_move_insn and remove a cast.
11382         (replace_store_insn): Likewise.
11384 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
11386         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
11387         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
11389 2015-05-20  Jeff Law  <law@redhat.com>
11391         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
11392         dispose of the jump thread path when the jump threading
11393         opportunity is cancelled.
11395 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11397         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
11398         when printing the caret character.
11400 2015-05-20  Marek Polacek  <polacek@redhat.com>
11402         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
11404 2015-05-20  Marek Polacek  <polacek@redhat.com>
11406         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
11407         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
11408         * gimple-fold.c (canonicalize_bool): Likewise.
11409         (same_bool_result_p): Likewise.
11410         * tree-if-conv.c (parse_predicate): Likewise.
11412 2015-05-20  Marek Polacek  <polacek@redhat.com>
11414         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
11415         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
11417 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11419         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
11420         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
11421         values.
11423 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
11425         * config/mips/mips.h (micromips_globals): Declare.
11427 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
11429         * timevar.def (TV_INITIALIZE_RTL): New.
11430         * toplev.c (initialize_rtl): Use an auto_timevar to account this
11431         function's time to TV_INITIALIZE_RTL.
11433 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
11435         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
11436         gimple_build_nop calls.
11437         (chkp_find_bounds_for_elem): Likewise.
11438         (chkp_get_zero_bounds): Likewise.
11439         (chkp_get_none_bounds): Likewise.
11440         (chkp_get_bounds_by_definition): Likewise.
11441         (chkp_generate_extern_var_bounds): Likewise.
11442         (chkp_get_bounds_for_decl_addr): Likewise.
11443         (chkp_get_bounds_for_string_cst): Likewise.
11445 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
11447         PR tree-optimization/65447
11448         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
11449         (dump_use, dump_uses): Support to dump sub use.
11450         (record_use): New parameters to support sub use.  Remove call to
11451         dump_use.
11452         (record_sub_use, record_group_use): New functions.
11453         (compute_max_addr_offset, split_all_small_groups): New functions.
11454         (group_address_uses, rewrite_use_address): New functions.
11455         (strip_offset): New declaration.
11456         (find_interesting_uses_address): Call record_group_use.
11457         (add_candidate): New assertion.
11458         (infinite_cost_p): Move definition forward.
11459         (add_costs): Check INFTY cost and return immediately.
11460         (get_computation_cost_at): Clear setup cost and dependent bitmap
11461         for sub uses.
11462         (determine_use_iv_cost_address): Compute cost for sub uses.
11463         (rewrite_use_address_1): Rename from old rewrite_use_address.
11464         (free_loop_data): Free sub uses.
11465         (tree_ssa_iv_optimize_loop): Call group_address_uses.
11467 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11468             Jim Wilson  <jim.wilson@linaro.org>
11470         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
11471         new  fields loadv and storev.
11472         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
11473         Initialize loadv and storev.
11474         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
11475         (cortexa53_extra_costs): Likewise.
11476         (cortexa57_extra_costs): Likewise.
11477         (xgene1_extra_costs): Likewise.
11478         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
11479         rtx_costs.
11481 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11483         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
11484          storev.
11485         (cortexa8_extra_costs): Likewise.
11486         (cortexa5_extra_costs): Likewise.
11487         (cortexa7_extra_costs): Likewise.
11488         (cortexa12_extra_costs): Likewise.
11489         (cortexa15_extra_costs): Likewise.
11490         (v7m_extra_costs): Likewise.
11492 2015-05-20  Jeff Law  <law@redhat.com>
11494         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
11495         instead of open-coded version.  Also delete the jump thread created
11496         within this function.
11498 2015-05-20  Alan Modra  <amodra@gmail.com>
11500         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
11501         stack adjusting insn.  Formatting.
11502         (rs6000_emit_prologue): Track stack adjusting insn, and use of
11503         r12.  If possible, emit first -fsplit-stack arg pointer insn
11504         before stack adjust.  Don't use r12 to save cr if split-stack.
11506 2015-05-20  Alan Modra  <amodra@gmail.com>
11508         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
11509         Define.
11510         (rs6000_supports_split_stack): New function.
11511         * gcc/config/rs6000/rs6000.c (machine_function): Add
11512         split_stack_arg_pointer.
11513         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
11514         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
11515         rather than virtual_incoming_args_rtx.
11516         (rs6000_va_start): Likewise.
11517         (split_stack_arg_pointer_used_p): New function.
11518         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
11519         (morestack_ref): New var.
11520         (gen_add3_const, rs6000_expand_split_stack_prologue,
11521         rs6000_internal_arg_pointer, rs6000_live_on_entry,
11522         rs6000_split_stack_space_check): New functions.
11523         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
11524         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
11525         (UNSPECV_SPLIT_STACK_RETURN): Define.
11526         (split_stack_prologue, load_split_stack_limit,
11527         load_split_stack_limit_di, load_split_stack_limit_si,
11528         split_stack_return, split_stack_space_check): New expands and insns.
11529         * gcc/config/rs6000/rs6000-protos.h
11530         (rs6000_expand_split_stack_prologue): Declare.
11531         (rs6000_split_stack_space_check): Declare.
11533 2015-05-20  Alan Modra  <amodra@gmail.com>
11535         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
11536         (direct_return): Test vrsave_size rather than vrsave_mask.
11537         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
11538         (rs6000_emit_epilogue): Likewise.
11540 2015-05-20  Alan Modra  <amodra@gmail.com>
11542         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
11543         when not saving registers.
11544         (debug_stack_info): Adjust to omit printing unused offsets,
11545         as before.
11546         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
11547         expression.
11549 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11551         PR c++/65835
11552         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
11553         value_type to const char *.
11555 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
11557         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
11558         to build a biarch toolchain again.
11560 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
11562         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
11563         or implicit declarations.
11564         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
11565         into it.
11566         (get_odr_type): Check type has linkage before adding bases.
11567         (register_odr_type): Check that type has linkage before adding it.
11568         (type_known_to_have_no_deriavations_p): Rename to ..
11569         (type_known_to_have_no_derivations_p): This one.
11570         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
11571         (type_known_to_have_no_derivations_p): This one.
11572         * ipa-polymorphic-call.c
11573         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
11574         type has linkage.
11576 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11578         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
11579         (layout_type): Use RECORD_OR_UNION_TYPE_P.
11581 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11583         * config/s390/s390.c (s390_vector_bool_type_p): New function.
11584         (s390_invalid_binary_op): New function.
11585         (TARGET_INVALID_BINARY_OP): Define macro.
11587 2015-05-19  David Sherwood  <david.sherwood@arm.com>
11589         * loop-invariant.c (create_new_invariant): Don't calculate address cost
11590         if mode is not a scalar integer.
11591         (get_inv_cost): Increase computational cost for unused invariants.
11593 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11595         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
11596         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
11597         * config/s390/s390-builtin-types.def: New file.
11598         * config/s390/s390-builtins.def: New file.
11599         * config/s390/s390-builtins.h: New file.
11600         * config/s390/s390-c.c: New file.
11601         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
11602         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
11603         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
11604         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
11605         prototypes.
11606         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
11607         Include.
11608         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
11609         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
11610         variable definitions.
11611         (s390_const_operand_ok): New function.
11612         (s390_expand_builtin): Rewrite.
11613         (s390_init_builtins): New function.
11614         (s390_handle_vectorbool_attribute): New function.
11615         (s390_attribute_table): Add s390_vector_bool attribute.
11616         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
11617         (s390_branch_condition_mask): Generate masks for new modes.
11618         (s390_expand_vec_compare_cc): New function.
11619         (s390_mangle_type): Add mangling for vector bool types.
11620         (enum s390_builtin): Remove.
11621         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
11622         efpc builtins.
11623         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
11624         s390_cpu_cpp_builtins.
11625         (REGISTER_TARGET_PRAGMAS): New macro.
11626         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
11627         (insn_cmp mode attribute): Add new CC modes.
11628         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
11629         (lcbb): New pattern definition.
11630         * config/s390/s390intrin.h: Include vecintrin.h.
11631         * config/s390/t-s390: New file.
11632         * config/s390/vecintrin.h: New file.
11633         * config/s390/vector.md: Include vx-builtins.md.
11634         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
11635         support.
11637 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11639         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
11640         CCVFHE.
11641         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
11642         (s390_select_ccmode): Likewise.
11643         (s390_canonicalize_comparison): Swap operands if necessary.
11644         (s390_expand_vec_compare_scalar): Expand DFmode compare using
11645         single element vector instructions.
11646         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
11647         (s390_branch_condition_mask): Generate CC masks for the new modes.
11648         * config/s390/s390.md (v0, vf, vd): New mode attributes.
11649         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
11650         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
11651         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
11652         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
11653         (*extend<DSF:mode><BFP:mode>2): New insn definition.
11654         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
11655         (extend<DSF:mode><BFP:mode>2): Turn into expander.
11656         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
11657         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
11658         (sqrt<mode>2): Add vector instruction.
11660 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11662         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
11663         constraints.
11664         * config/s390/predicates.md (const0_operand, constm1_operand)
11665         (constable_operand): Accept vector operands.
11666         * config/s390/s390-modes.def: Add supported vector modes.
11667         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
11668         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
11669         (s390_bytemask_vector_p, s390_expand_vec_strlen)
11670         (s390_expand_vec_compare, s390_expand_vcond)
11671         (s390_expand_vec_init): Add prototypes.
11672         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
11673         (s390_vector_mode_supported_p): New function.
11674         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
11675         (s390_contiguous_bitmask_vector_p): New function.
11676         (s390_bytemask_vector_p): New function.
11677         (s390_split_ok_p): Vector regs don't work either.
11678         (regclass_map): Add VEC_REGS.
11679         (s390_legitimate_constant_p): Handle vector constants.
11680         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
11681         (legitimate_reload_vector_constant_p): New function.
11682         (s390_preferred_reload_class): Handle CONST_VECTOR.
11683         (s390_reload_symref_address):  Likewise.
11684         (s390_secondary_reload): Vector memory instructions only support
11685         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
11686         (s390_emit_ccraw_jump): New function.
11687         (s390_expand_vec_strlen): New function.
11688         (s390_expand_vec_compare): New function.
11689         (s390_expand_vcond): New function.
11690         (s390_expand_vec_init): New function.
11691         (s390_dwarf_frame_reg_mode): New function.
11692         (print_operand): Handle addresses with 'O' and 'R' constraints.
11693         (NR_C_MODES, constant_modes): Add vector modes.
11694         (s390_output_pool_entry): Handle vector constants.
11695         (s390_hard_regno_mode_ok): Handle vector registers.
11696         (s390_class_max_nregs): Likewise.
11697         (s390_cannot_change_mode_class): New function.
11698         (s390_invalid_arg_for_unprototyped_fn): New function.
11699         (s390_function_arg_vector): New function.
11700         (s390_function_arg_float): Remove size variable.
11701         (s390_pass_by_reference): Handle vector arguments.
11702         (s390_function_arg_advance): Likewise.
11703         (s390_function_arg): Likewise.
11704         (s390_return_in_memory): Vector values are returned in a VR if
11705         possible.
11706         (s390_function_and_libcall_value): Handle vector arguments.
11707         (s390_gimplify_va_arg): Likewise.
11708         (s390_call_saved_register_used): Consider the arguments named.
11709         (s390_conditional_register_usage): Disable v16-v31 for non-vec
11710         targets.
11711         (s390_preferred_simd_mode): New function.
11712         (s390_support_vector_misalignment): New function.
11713         (s390_vector_alignment): New function.
11714         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
11715         (TARGET_VECTOR_MODE_SUPPORTED_P)
11716         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
11717         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
11718         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
11719         (TARGET_VECTOR_ALIGNMENT): Define target macro.
11720         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
11721         (FIRST_PSEUDO_REGISTER): Increase value.
11722         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
11723         (VECTOR_REG_P): Define macros.
11724         (FIXED_REGISTERS, CALL_USED_REGISTERS)
11725         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
11726         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
11727         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
11728         Add vector registers.
11729         (CANNOT_CHANGE_MODE_CLASS): Call C function.
11730         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
11731         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
11732         memory.
11733         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
11734         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
11735         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
11736         (VR*_REGNUM): New constants.
11737         (ALL): New mode iterator.
11738         (INTALL): Remove mode iterator.
11739         Include vector.md.
11740         (movti): Implement TImode moves for VRs.
11741         Disable TImode splitter for VR targets.
11742         Implement splitting TImode GPR<->VR moves.
11743         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
11744         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
11745         reload<mode>_la_in, reload<mode>_la_out.
11746         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
11747         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
11748         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
11749         (mov<mode> SF SD): Prefer lder, lde for loading.
11750         Add lrl and strl instructions.
11751         Add vector instructions.
11752         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
11753         Call s390_expand_vec_strlen on z13.
11754         (*cc_to_int): Change predicate to nonimmediate_operand.
11755         (addti3): Rename to *addti3.  New expander.
11756         (subti3): Rename to *subti3.  New expander.
11757         * config/s390/vector.md: New file.
11759 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11761         * common/config/s390/s390-common.c (processor_flags_table): Add
11762         z13.
11763         * config.gcc: Add z13.
11764         * config/s390/s390-opts.h (enum processor_type): Add
11765         PROCESSOR_2964_Z13.
11766         * config/s390/s390.c (s390_adjust_priority): Check for
11767         PROCESSOR_2964_Z13.
11768         (s390_reorg): Likewise.
11769         (s390_sched_reorder): Likewise.
11770         (s390_sched_variable_issue): Likewise.
11771         (s390_loop_unroll_adjust): Likewise.
11772         (s390_option_override): Likewise. Default to -mvx when available.
11773         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
11774         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
11775         (TARGET_VX_ABI): Define macros.
11776         macros.
11777         (TARGET_DEFAULT): Add MASK_OPT_VX.
11778         * config/s390/s390.md ("cpu" attribute): Add z13.
11779         ("cpu_facility" attribute): Add vec.
11780         * config/s390/s390.opt (processor_type): Add z13.
11781         (mvx): New options.
11782         * doc/invoke.texi: Add z13 option for -march.
11784 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11786         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
11787         mode check to make sure that only scalar integer values are
11788         accepted.
11790 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
11792         * tree.c (verify_type_variant): Fix #undef.
11793         (gimple_canonical_types_compatible_p): Move here from lto.c
11794         (verify_type): Verify TYPE_CANONICAL compatibility.
11795         * tree.h (gimple_canonical_types_compatible_p): Declare.
11797 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11799         PR middle-end/66199
11800         * tree.h (OMP_TEAMS_COMBINED): Define.
11801         * gimplify.c (enum gimplify_omp_var_data): Add
11802         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
11803         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
11804         (omp_notice_variable): Accept both ORT_TEAMS
11805         and ORT_COMBINED_TEAMS.  Don't recurse if
11806         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
11807         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
11808         GOVD_FIRSTPRIVATE.
11809         (omp_no_lastprivate): New function.
11810         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
11811         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
11812         notice_outer and set appropriate bits, otherwise make
11813         sure default(none) combined constructs won't complain.
11814         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
11815         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
11816         omp_no_lastprivate either remove the clause or turn it
11817         into OMP_CLAUSE_PRIVATE.
11818         (gimplify_omp_for): Fix up handling of implicit
11819         lastprivate or linear iterators.
11820         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
11821         ORT_COMBINED_TEAMS.
11822         * omp-low.c (lower_omp_for_lastprivate): For combined
11823         for simd use fd.loop.n2 from the for rather than simd.
11825 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11827         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
11828         instead of gen_rtx_raw_REG.
11829         (cris_expand_epilogue): Likewise.
11830         * config/microblaze/microblaze.c (microblaze_classify_address):
11831         Likewise.
11832         * config/sparc/sparc.md: Likewise.
11834 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
11836         * config/alpha/alpha.c (alpha_legitimize_reload_address)
11837         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
11838         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
11839         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
11840         Use CASE_CONST_SCALAR_INT.
11841         (print_operand) <case 'M'>: Use mode_width_operand to check the
11842         value of the constant.
11843         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
11844         * config/alpha/predicates.md (input_operand): Use general_operand
11845         instead of match_code as operand check.
11846         (symbolic_operand): Use match_code with subexpression digits.
11847         * config/alpha/constraints.md (Q): Ditto.
11849 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11851         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
11853 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11855         * config/s390/s390.c (s390_secondary_reload): Fix check for
11856         load/store relative.
11858 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11860         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
11861         alternative_mask to uint64_t.
11863 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11865         PR tree-optimization/66187
11866         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
11867         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
11868         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
11870 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
11872         * diagnostic.c (diagnostic_report_current_module): Strengthen
11873         local "new_map" from const line_map * to
11874         const line_map_ordinary *.
11875         * genmatch.c (error_cb): Likewise for local "map".
11876         (output_line_directive): Likewise for local "map".
11877         * input.c (expand_location_1): Likewise for local "map".
11878         Pass NULL rather than &map to
11879         linemap_unwind_to_first_non_reserved_loc, since the value is never
11880         read from there, and the value written back not read from here.
11881         (is_location_from_builtin_token): Strengthen local "map" from
11882         const line_map * to const line_map_ordinary *.
11883         (dump_location_info): Strengthen locals "map" from
11884         line_map *, one to const line_map_ordinary *, the other
11885         to const line_map_macro *.
11886         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
11887         const line_map * to const line_map_macro *.
11888         (maybe_unwind_expanded_macro_loc): Add a call to
11889         linemap_check_macro when writing to the "map" field of the
11890         loc_map_pair.
11891         Introduce local const line_map_ordinary * "ord_map", using it in
11892         place of "map" in the part of the function where we know we have
11893         an ordinary map.  Strengthen local "m" from const line_map * to
11894         const line_map_ordinary *.
11896 2015-05-19  Nick Clifton  <nickc@redhat.com>
11898         PR target/66156
11899         * config/msp430/msp430.md (zero_extendhisi2): Add support for
11900         separate source and destination registers.
11902 2015-05-19  Richard Biener  <rguenther@suse.de>
11904         PR tree-optimization/66165
11905         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
11906         for no load permutation.
11908         PR tree-optimization/66185
11909         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
11910         when building the SLP node from scalars.
11912 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11913             Tristan Gingold  <gingold@adacore.com>
11915         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
11916         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
11917         (expand_stack_restore): Call record_new_stack_level.
11918         (expand_stack_save): Do not call do_pending_stack_adjust.
11919         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
11920         * calls.c (expand_call): Call record_new_stack_level for alloca.
11921         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
11922         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
11923         (update_sjlj_context): New global function.
11924         * except.h (update_sjlj_context): Declare.
11925         * explow.c (record_new_stack_level): New global function.
11926         (allocate_dynamic_stack_space): Call record_new_stack_level.
11927         * explow.h (record_new_stack_level): Declare.
11928         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
11929         * cfgrtl.c (duplicate_insn_chain): Likewise.
11931 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11933         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
11934         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
11935         STACK_GROWS_DOWNWARD as normal if.
11936         (expand_call): Likewise.
11938 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
11940         PR target/54236
11941         * config/sh/sh.md (*round_int_even): New insn_and_split and
11942         accompanying new unnamed split.
11944 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11946         * bitmap.c (bitmap_set_range): Handle count==1 specially.
11947         (bitmap_clear_range): Likewise.
11948         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
11949         bitmap_set_range unconditionally.
11950         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
11951         * df-scan.c (df_mark_reg): Likewise.
11952         * haifa-sched.c (setup_ref_regs): Likewise.
11953         * sched-rgn.c (update_live_1): Likewise.
11955 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11957         * regs.h (END_HARD_REGNO): Delete.
11958         (END_REGNO): Move to...
11959         * rtl.h: ...here.
11960         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
11961         * caller-save.c (mark_set_regs): Likewise.
11962         * combine.c (move_deaths, distribute_notes): Likewise.
11963         * cse.c (invalidate, invalidate_for_call): Likewise.
11964         * df-scan.c (df_ref_record): Likewise.
11965         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
11966         (record_last_reg_set_info): Likewise.
11967         * reg-stack.c (convert_regs_exit): Likewise.
11968         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
11969         * resource.c (update_live_status): Likewise.
11970         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
11972 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11974         * rtl.h (reg_info): Add an nregs field.
11975         (REG_NREGS): Use it.
11976         (SET_REGNO_RAW): Delete.
11977         (set_regno_raw): New function.
11978         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
11979         (END_REGNO): Redefine in terms of REG_NREGS.
11980         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
11981         SET_REGNO_RAW.
11982         * emit-rtl.c (set_mode_and_regno): Likewise.
11983         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
11984         instead of SET_REGNO_RAW.
11986 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
11988         * rtl.h (PUT_MODE_RAW): New macro.
11989         (PUT_REG_NOTE_KIND): Use it.
11990         (set_mode_and_regno): Declare.
11991         (gen_raw_REG): Change regno to "unsigned int".
11992         (gen_rtx_REG): Change "unsigned" to "unsigned int".
11993         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
11994         use set_mode_and_regno to change the mode of registers.
11995         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
11996         * emit-rtl.c (set_mode_and_regno): New function.
11997         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
11998         * caller-save.c (reg_save_code): Use set_mode_and_regno.
11999         * expr.c (init_expr_target): Likewise.
12000         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12001         * postreload.c (reload_cse_simplify_operands): Likewise.
12003 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12005         * caller-save.c (init_caller_save): Use word_mode and
12006         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
12007         * expr.c (init_expr_target): Likewise.
12008         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12009         * postreload.c (reload_cse_regs_1): Likewise.
12011 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12013         * rtl.def (REG): Change format to "r".
12014         * rtl.h (rtunion): Remove rt_reg.
12015         (reg_info): New structure.
12016         (rtx_def): Add reg field to main union.
12017         (X0REGATTR): Delete.
12018         (REG_CHECK): New macro.
12019         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
12020         * rtl.c (rtx_format): Document "r".
12021         (rtx_code_size): Handle REG specially.
12022         * gengenrtl.c (special_format): Return true for formats
12023         that include 'r'.
12024         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
12025         Deal with REG_ATTRS after the field loop.
12026         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
12027         * expmed.c (init_expmed): Call gen_raw_REG instead of
12028         gen_rtx_raw_REG.
12029         * expr.c (init_expr_target): Likewise.
12030         * regcprop.c (maybe_mode_change): Likewise.
12031         * varasm.c (make_decl_rtl): Likewise.
12032         * final.c (leaf_renumber_regs_insn): Return early after
12033         handling REGs.
12034         * genemit.c (gen_exp): Handle 'r' fields.
12035         * genpeep.c (match_rtx): Likewise.
12036         * gensupport.c (subst_pattern_match): Likewise.
12037         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
12038         (alter_constraints, subst_dup): Likewise.
12039         * read-rtl.c (read_rtx_code): Likewise.
12040         * print-rtl.c (print_rtx): Likewise.
12041         * genrecog.c (find_operand, find_matching_operand): Likewise.
12042         (validate_pattern, match_pattern_2): Likewise.
12043         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
12044         (rtx_test::regno_field): New function.
12045         (operator ==, safe_to_hoist_p, transition_parameter_type)
12046         (parameter_type_string, print_parameter_value)
12047         (print_nonbool_test, print_test): Handle new enum values.
12048         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
12049         * lra-constraints.c (operands_match_p): Likewise.
12051 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12053         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
12054         Change type of new_regno to unsigned int.
12055         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
12056         new_regno to unsigned int.
12057         (df_ref_change_reg_with_loc): Remove old_regno parameter.
12058         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
12059         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
12060         (SET_REGNO_RAW): Add space after ",".
12062 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12064         * rtl.h (REG_NREGS): New macro
12065         * alias.c (record_set): Use it.
12066         * cfgcleanup.c (mark_effect): Likewise.
12067         * combine.c (likely_spilled_retval_1): Likewise.
12068         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
12069         (move_deaths, distribute_notes): Likewise.
12070         * cselib.c (cselib_record_set): Likewise.
12071         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12072         * df-scan.c (df_mark_reg): Likewise.
12073         * dse.c (look_for_hardregs): Likewise.
12074         * dwarf2out.c (reg_loc_descriptor): Likewise.
12075         (multiple_reg_loc_descriptor): Likewise.
12076         * expr.c (write_complex_part, read_complex_part): Likewise.
12077         (emit_move_complex): Likewise.
12078         * haifa-sched.c (setup_ref_regs): Likewise.
12079         * ira-lives.c (mark_hard_reg_live): Likewise.
12080         * lra.c (lra_set_insn_recog_data): Likewise.
12081         * mode-switching.c (create_pre_exit): Likewise.
12082         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
12083         (reload_combine_recognize_pattern): Likewise.
12084         (reload_combine_note_use, move2add_record_mode): Likewise.
12085         (reload_cse_move2add): Likewise.
12086         * reg-stack.c (subst_stack_regs_pat): Likewise.
12087         * regcprop.c (kill_value, copy_value): Likewise.
12088         (copyprop_hardreg_forward_1): Likewise.
12089         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
12090         (build_def_use): Likewise.
12091         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
12092         (deps_analyze_insn): Likewise.
12093         * sched-rgn.c (check_live_1, update_live_1): Likewise.
12094         * sel-sched.c (count_occurrences_equiv): Likewise.
12095         * valtrack.c (dead_debug_insert_temp): Likewise.
12097 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12099         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
12100         * dse.c (note_add_store): Likewise.
12101         * ira-lives.c (mark_hard_reg_dead): Likewise.
12102         * loop-invariant.c (mark_reg_store): Likewise.
12103         (mark_reg_death): Likewise.
12104         * postreload.c (reload_combine): Likewise.
12105         (reload_combine_note_store): Likewise.
12106         (reload_combine_note_use): Likewise.
12107         * recog.c (peep2_reg_dead_p): Likewise.
12109 2015-05-19  Alan Modra  <amodra@gmail.com>
12111         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
12112         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
12113         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
12114         unused predicates.
12115         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
12116         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
12117         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
12118         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
12120 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
12122         * config/mips/mips.md (JOIN_MODE): New mode iterator.
12123         (join2_load_Store<JOIN_MODE:mode>): New pattern.
12124         (join2_loadhi): Likewise.
12125         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
12126         load-load and store-stores.
12127         * config/mips/mips.opt (mload-store-pairs): New option.
12128         (TARGET_LOAD_STORE_PAIRS): New macro.
12129         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
12130         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
12131         * config/mips/mips.c (mips_load_store_bonding_p): New function.
12133 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
12135         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
12136         explicit swaps.
12137         * dojump.c (do_compare_rtx_and_jump): Likewise.
12138         * expmed.c (emit_store_flag_1): Likewise.
12139         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
12140         * final.c (sprint_ul): Use std::reverse for reversing a string.
12141         * fold-const.c (extract_muldiv_1): Use std::swap.
12142         * genmodes.c (emit_mode_int_n): Likewise.
12143         * ifcvt.c (dead_or_predicable): Likewise.
12144         * ira-build.c (ira_merge_live_ranges): Likewise.
12145         (swap_allocno_copy_ends_if_necessary): Likewise.
12146         * ira.c (ira_setup_alts): Likewise.
12147         * loop-iv.c (iv_analyze_expr): Likewise.
12148         (implies_p): Likewise.
12149         (canon_condition): Likewise.
12150         * lra-constraints.c (swap_operands): Likewise.
12151         * lra-lives.c (lra_merge_live_ranges): Likewise.
12152         * omega.c (swap): Remove.
12153         (bswap): Remove.
12154         (omega_unprotect_1): Use std::swap.
12155         (omega_solve_geq): Likewise.
12156         * optabs.c (expand_binop_directly): Likewise.
12157         (expand_binop): Likewise.
12158         (emit_conditional_move): Likewise.
12159         (emit_conditional_add): Likewise.
12160         * postreload.c (reload_cse_simplify_operands): Likewise.
12161         * reg-stack.c (emit_swap_insn): Likewise.
12162         (swap_to_top): Likewise.
12163         (compare_for_stack_reg): Likewise.
12164         (subst_asm_stack_regs): Likewise.
12165         * reload.c (find_reloads): Likewise.
12166         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
12167         * sel-sched.c (invoke_reorder_hooks): Likewise.
12168         (create_block_for_bookkeeping): Likewise.
12169         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
12170         (lambda_matrix_right_hermite): Use std::swap.
12171         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
12172         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12173         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
12174         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
12175         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
12176         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
12177         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12178         * tree-vrp.c (compare_ranges): Likewise.
12179         * var-tracking.c (add_with_sets): Likewise.
12180         (vt_find_locations): Likewise.
12182 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
12184         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
12185         pie executables.
12186         (FBSD_ENDFILE_SPEC): Likewise.
12187         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
12188         config/freebsd-spec.h.
12189         (ENDFILE_SPEC): Likewise.
12191 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
12192             Richard Henderson  <rth@redhat.com>
12194         PR target/57032
12195         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
12196         Check for a memory location that is not a reference (using an AND)
12197         to an unaligned location here.
12198         * config/alpha/predicates.md (normal_memory_operand): Remove.
12200 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
12202         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
12203         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
12205 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12207         * config/mips/mips.c (micromips_globals): New variable.
12208         (mips_set_compression_mode): Save and reinitialize target-dependent
12209         state for microMIPS.
12211 2015-05-18  Martin Liska  <mliska@suse.cz>
12213         * dbgcnt.def: Add new counter.
12214         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
12216 2015-05-18  Martin Liska  <mliska@suse.cz>
12218         * dbgcnt.def: Sort counters.
12219         * opts.c (common_handle_option): Do not compile if
12220         -fdbg-cnt-list is enabled.
12222 2015-05-18  Tom de Vries  <tom@codesourcery.com>
12224         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
12225         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
12226         address operator to va_list operand.
12227         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
12228         unconditionally.
12229         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
12230         operand.
12231         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
12232         * config/s390/s390.c (s390_gimplify_va_arg): Same.
12233         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
12235 2015-05-18  Tom de Vries  <tom@codesourcery.com>
12237         * tree-ssa-tail-merge.c: Fix whitespace.
12239 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
12241         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
12242         cortex-a17, and cortex-a17.cortex-a7.
12244 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
12246         PR target/54236
12247         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
12249 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
12251         PR target/66174
12252         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
12253         QImode inner modes for TARGET_AVX512BW.  Force mask operand
12254         to a register for AVX512F modes.
12256 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12258         * toplev.c (emit_debug_global_declarations): Do not output debug info
12259         when doing slim LTO objects.
12261 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12263         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
12264         odr_types_equivalent_p): Declare.
12265         (odr_type_p): Use gcc_checking_assert.
12266         (type_in_anonymous_namespace_p) Declare.
12267         (type_with_linkage_p): Declare.
12268         * common.opt (Wlto-type-mismatch): New warning.
12269         * ipa-devirt.c (compound_type_base): New function.
12270         (odr_or_derived_type_p): New function.
12271         (odr_types_equivalent_p): New function.
12272         (add_type_duplicate): Simplify.
12273         (type_with_linkage_p): Add hack to prevent false positives on C types
12274         (type_in_anonymous_namespace_p): Likewise.
12275         * tree.c (need_assembler_name_p): Use type_with_linkage.
12276         * tree.h (type_in_anonymous_namespace_p): Remove.
12277         * doc/invoke.texi (-Wlto-type-mismatch): Document
12279 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12281         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
12282         (verify_type): Verify STRING_FLAG.
12284 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12286         PR fortran/44054
12287         * tree-pretty-print.c (percent_K_format): Replace locus pointer
12288         with accessor function.
12289         * tree-diagnostic.c (diagnostic_report_current_function): Use
12290         diagnostic_location function.
12291         (maybe_unwind_expanded_macro_loc): Likewise.
12292         (virt_loc_aware_diagnostic_finalizer): Likewise.
12293         (default_tree_printer): Replace locus pointer with accessor function.
12294         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
12295         (diagnostic_set_info_translated): Initialize second location.
12296         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
12297         (diagnostic_show_locus): Handle two locations. Call
12298         diagnostic_print_caret_line.
12299         (diagnostic_print_caret_line): New.
12300         (default_diagnostic_starter): Use diagnostic_location function.
12301         (diagnostic_report_diagnostic): Use diagnostic_location function.
12302         (verbatim): Do not set text.locus.
12303         * diagnostic.h (struct diagnostic_info): Remove location field.
12304         (struct diagnostic_context): Make caret_chars an array of two.
12305         (diagnostic_location): New inline.
12306         (diagnostic_expand_location): Handle two locations.
12307         (diagnostic_same_line): New inline.
12308         (diagnostic_print_caret_line): Declare.
12309         (CARET_LINE_MARGIN): New constant.
12310         * pretty-print.c (pp_printf): Do not set text.locus.
12311         (pp_verbatim): Do not set text.locus.
12312         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
12313         (struct text_info): Replace locus pointer with locations
12314         array. Add accessor functions.
12316 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
12317             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12319         PR target/65768
12320         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
12321         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
12322          large constants in register instead of splitting them.
12324 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
12326         PR target/66140
12327         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
12328         replacements in memory addresses.
12329         (get_unaligned_address): Ditto.
12331 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
12333         * config/ft32/*: New files for FT32 port.
12334         * doc/install.texi: Add FT32 information.
12335         * doc/invoke.texi: Add FT32 information.
12336         * doc/md.texi: Add FT32 information.
12337         * doc/contrib.texi: Self added.
12339 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
12341         PR tree-optimization/64454
12342         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
12343         (-1 - A -> ~A): Remove unnecessary condition.
12345 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
12347         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
12348         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
12349         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
12351 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
12353         * ipa-chkp.h (chkp_wrap_function): New.
12354         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
12355         (chkp_wrap_function_name): New.
12356         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
12357         to get wrapper name.
12358         * lto-cgraph.c: Include ipa-chkp.h.
12359         (input_cgraph_1): Avoid alias chain for wrappers.
12361 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
12363         PR middle-end/66134
12364         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
12365         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
12367 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12369         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
12370         (AARCH64_FL_SLOWMUL): Delete.
12371         (AARCH64_FL_CRC): Redefine to 1<<3.
12372         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
12374 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12376         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
12377         casting.
12379 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
12381         * config/alpha/alpha.md (extendqidi2): Use general_operand
12382         instead of some_operand for operand[1] predicate.
12383         (extendhidi2): Ditto.
12384         (cbranchdi4): Use general_operand instead of some_operand
12385         for operand[1] and operands[2] predicates.
12386         (cstoredi4): Ditto.
12387         * config/alpha/predicates.md (some_operand): Remove unused predicate.
12388         (some_ni_operand): Ditto.
12390 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
12392         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
12393         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
12394         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
12395         low part of the constant using alpha_emit_set_const_1.
12396         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
12398 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
12400         * varasm.c (output_constant_pool_1): Pass down alignment from
12401         constant pool entry's descriptor to output_constant_pool_2.
12402         (output_object_block): Add comment prior to call to
12403         output_constant_pool_1.
12405 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
12407         PR rtl-optimization/65862
12408         * target.def (ira_change_pseudo_allocno_class): New hook.
12409         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
12410         value of the hook.
12411         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
12412         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
12413         hook.
12414         * ira-costs.c (find_costs_and_classes): Call the hook and change
12415         classes when it is necessary.
12416         * doc/tm.texi: Update.
12418 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
12420         * config/i386/i386.md (sibcall_memory): Check that register with
12421         callee address is not also used as one of the arguments, instead
12422         of checking that it is not live after the sibcall.
12423         (sibcall_pop_memory): Ditto.
12424         (sibcall_value_memory): Ditto.
12425         (sibcall_value_pop_memory): Ditto.
12427 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
12429         * generic-match-head.c (types_match): Handle non-types.
12430         * gimple-match-head.c (types_match): Likewise.
12431         * match.pd: Remove unnecessary TREE_TYPE for types_match.
12433 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
12435         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
12436         (csneg3<mode>_insn): Enable expansion of pattern.
12438 2015-05-14  Nick Clifton  <nickc@redhat.com>
12440         * config/rl78/rl78.c (rl78_select_section): Select the correct
12441         default section based upon the category of the decl.
12443 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
12445         PR rtl-optimization/30967
12446         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
12447         destination mode for the cost of scc patterns.
12449 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
12451         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
12452         using SWIM248 mode iterator.
12453         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
12454         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
12455         for operand[2] constraint.
12456         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
12458 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
12460         PR middle-end/66133
12461         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
12462         make sure it is never noreturn, even when the task body does not
12463         return.
12464         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
12465         right before GIMPLE_OMP_RETURN.
12466         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
12467         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
12468         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
12470 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12472         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
12473         * tree-ssa-math-opts.c: Include params.h
12474         (pow_synth_sqrt_info): New struct.
12475         (representable_as_half_series_p): New function.
12476         (get_fn_chain): Likewise.
12477         (print_nested_fn): Likewise.
12478         (dump_fractional_sqrt_sequence): Likewise.
12479         (dump_integer_part): Likewise.
12480         (expand_pow_as_sqrts): Likewise.
12481         (gimple_expand_builtin_pow): Use above to attempt to expand
12482         pow as series of square roots.  Removed now unused variables.
12484 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
12486         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
12487         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
12488         Remove *p0 and *p1 arguments.  Rewrite function.
12489         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
12490         (alpha_split_const_mov): Update calls to alpha_extract_integer and
12491         alpha_emit_set_long_const.
12492         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
12493         (alpha_output_mi_thunk_osf): Ditto.
12494         * config/alpha/alpha.md (movti): Do not check operands[1]
12495         for CONST_DOUBLE.
12497 2015-05-13  Richard Biener  <rguenther@suse.de>
12499         PR tree-optimization/66129
12500         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
12501         commutative.
12502         (vect_schedule_slp_instance): Fix typo.
12504 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
12506         * common.opt (fdump-internal-locations): New option.
12507         * input.c: Include diagnostic-core.h.
12508         (get_end_location): New function.
12509         (write_digit): New function.
12510         (write_digit_row): New function.
12511         (dump_location_range): New function.
12512         (dump_labelled_location_range): New function.
12513         (dump_location_info): New function.
12514         * input.h (dump_location_info): New prototype.
12515         * toplev.c (compile_file): Handle flag_dump_locations.
12517 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
12519         * gimple-expr.h (is_gimple_constant): Reorder.
12520         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
12522 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
12524         * combine.c (simplify_set): When generating a CC set, if the
12525         source already is in the correct mode, do not wrap it in a
12526         compare.  Simplify the rest of that code.
12528 2015-05-13  Richard Biener  <rguenther@suse.de>
12530         PR tree-optimization/66123
12531         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
12532         a taken edge.
12534 2015-05-13  Richard Biener  <rguenther@suse.de>
12536         PR middle-end/66110
12537         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
12538         specially.
12539         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
12541 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
12543         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
12544         * aclocal.m4: Regenerated with automake-1.11.6.
12546 2015-05-13  Tom de Vries  <tom@codesourcery.com>
12548         PR tree-optimization/66010
12549         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
12550         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
12551         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
12552         and rval based on do_deref.
12554 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12556         PR target/65103
12557         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
12558         link time constants into adress expressions and therefore set
12559         their cost to 0.
12561 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
12563         PR target/66112
12564         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
12565         Use SWI248 iterator instead of SWI.
12566         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
12567         Use eq_attr "alternative" "0" instead of match_test in
12568         length_immediate attribute computation.
12569         (*mulvhi4, *mulvhi4_1): New define_insns.
12571         PR target/66112
12572         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
12573         SIGNED to get precision of non-negative value.
12575 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12577         PR target/66048
12578         * function.c (diddle_return_value_1): Process bounds first.
12579         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
12580         register.
12582 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12584         PR rtl-optimization/64616
12585         * loop-invariant.c (can_move_invariant_reg): New.
12586         (move_invariant_reg): Call above new function to decide whether
12587         instruction can just be moved, skipping creation of temporary
12588         register.
12590 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
12592         PR target/pr66047.c
12593         * i386.c (ix86_function_sseregparm): Only return -1 if local function
12594         with implied regparm is called from -mno-sse function.
12595         (init_cumulative_args): Output error if ix86_function_sseregparm
12596         return -1 and SSE register would be needed.
12597         (function_arg_advance_32): Likewise.
12598         (function_arg_32): Likewise.
12599         * i386.h (ix86_args): Add decl field.
12601 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
12603         PR ipa/65873
12604         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
12605         inlines across optimization boundary.
12607 2015-05-12  Jason Merrill  <jason@redhat.com>
12609         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
12610         string literal and macro name.
12612 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
12614         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
12615         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
12616         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
12618 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
12620         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
12621         (-Wmisleading-indentation): New option.
12622         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
12624 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
12626         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
12627         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
12628         (alpha_extract_integer): Ditto.
12629         (alpha_legitimate_constant_p): Ditto.
12630         (alpha_split_tmode_pair): Ditto.
12631         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
12632         (alpha_expand_mov): Ditto.
12633         (print_operand): Remove handling of 'H' modifier.
12634         <case 'm'>: Remove CONST_DOUBLE handling.
12635         (summarize_insn): Handle CONST_WIDE_INT.
12636         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
12637         (anddi3): Ditto.
12638         (movti): Handle CONST_WIDE_INT.
12639         * config/alpha/constraints.md ('H'): Remove constraint definition.
12640         ('G'): Do not match MODE_FLOAT class.
12641         * config/alpha/predicates.md (const0_operand): Also match
12642         const_wide_int.
12643         (non_add_const_operand): Ditto.
12644         (non_zero_const_operand): Ditto.
12645         (some_operand): Ditto.
12646         (input_operand): Ditto.  Handle CONST_WIDE_INT.
12647         (and_operand): Do not match const_double.
12648         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
12650 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
12652         PR target/65697
12653         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
12654         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
12655         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
12656         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
12657         is_mm_seq_cst, is_mm_sync): New accessor functions.
12658         * builtins.c (expand_builtin_sync_operation,
12659         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
12660         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
12661         (get_memmodel,  expand_builtin_atomic_compare_exchange,
12662         expand_builtin_atomic_load, expand_builtin_atomic_store,
12663         expand_builtin_atomic_clear): Use new accessor routines.
12664         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
12665         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
12666         (maybe_emit_sync_lock_test_and_set): Use new accessors and
12667         MEMMODEL_SYNC_ACQUIRE.
12668         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
12669         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
12670         expand_atomic_store): Use new accessors.
12671         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
12672         * tsan.c (instrument_builtin_call): Update check for memory model beyond
12673         final enum to use MEMMODEL_LAST.
12674         * c-family/c-common.c: Use new accessor for memmodel_base.
12675         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
12676         accessors.
12677         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
12678         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
12679         mem_thread_fence, *dmb): Likewise.
12680         * config/alpha/alpha.c (alpha_split_compare_and_swap,
12681         alpha_split_compare_and_swap_12): Likewise.
12682         * config/arm/arm.c (arm_expand_compare_and_swap,
12683         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
12684         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
12685         atomic_loaddi): Likewise.
12686         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
12687         Likewise.
12688         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
12689         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
12690         use new accessors.
12691         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
12692         atomic_store<mode>, atomic_compare_and_swap<mode>,
12693         atomic_exchange<mode>): Use new accessors.
12694         * config/mips/mips.c (mips_process_sync_loop): Likewise.
12695         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
12696         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
12697         rs6000_post_atomic_barrier): Add new cases.
12698         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
12699         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
12700         (atomic_load<mode>): Add new cases and use new accessors.
12701         (store_quadpti): Add new cases.
12702         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
12703         accessors.
12704         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
12705         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
12706         model, not 8.
12708 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
12710         * ipa-devirt.c (type_with_linkage_p): New function.
12711         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
12712         type has linkage.
12713         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
12714         (can_be_name_hashed_p): Simplify.
12715         (hash_odr_name): Check that type has linkage before checking if it is
12716         anonymous.
12717         (types_same_for_odr): Likewise.
12718         (odr_name_hasher::equal): Likewise.
12719         (odr_subtypes_equivalent_p): Likewise.
12720         (warn_types_mismatch): Likewise.
12721         (get_odr_type): Likewise.
12722         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
12723         * ipa-utils.h (odr_type_p): Move offline.
12724         * tree.c (need_assembler_name_p): Fix handling of types
12725         without linkages.
12726         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
12728 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
12730         * timevar.c (timevar_enable): Delete in favor of...
12731         (g_timer): New global.
12732         (struct timevar_def): Move to timevar.h inside class timer.
12733         (struct timevar_stack_def): Likewise.
12734         (timevars): Delete global in favor of field "m_timevars" within
12735         class timer in timevar.h
12736         (stack): Likewise, in favor of field "m_stack".
12737         (unused_stack_instances): Likewise, in favor of field
12738         "m_unused_stack_instances".
12739         (start_time): Likewise, in favor of field "m_start_time".
12740         (get_time): Eliminate check for timevar_enable.
12741         (timer::timer): New function, built from part of timevar_init.
12742         (timevar_init): Rewrite idempotency test from using
12743         "timevar_enable" bool to using dynamic allocation of "g_timer".
12744         Move rest of implementation into timer's constructor.
12745         (timevar_push_1): Rename to...
12746         (timer::push): ...this, adding "m_" prefixes to variables that
12747         are now fields of timer.
12748         (timevar_pop_1): Likewise, rename to...
12749         (timer::pop): ...this, and add "m_" prefixes.
12750         (timevar_start): Replace test for "timevar_enable" with one for
12751         "g_timer", and move bulk of implementation to...
12752         (timer::start): ...here, adding "m_" prefixes.
12753         (timevar_stop): Likewise, from here...
12754         (timer::stop): ...to here.
12755         (timevar_cond_start): Likewise, from here...
12756         (timer::cond_start): ...to here.
12757         (timevar_cond_stop): Likewise, from here...
12758         (timer::cond_stop): ...to here.
12759         (validate_phases): Rename to...
12760         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
12761         locals "total" and "tv" const.
12762         (timevar_print): Rename to...
12763         (timer::print): ...this, and add "m_" prefixes.  Make locals
12764         "total" and "tv" const.  Eliminate test for timevar_enable.
12765         * timevar.h (timevar_enable): Eliminate.
12766         (g_timer): New declaration.
12767         (timevar_push_1): Eliminate.
12768         (timevar_pop_1): Eliminate.
12769         (timevar_print): Eliminate.
12770         (class timer): New class.
12771         (timevar_push): Rewrite to use g_timer.
12772         (timevar_pop): Likewise.
12773         * toplev.c (toplev::~toplev): Likewise.
12775 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
12777         * arm-protos.h (arm_sched_autopref): Delete.
12778         (tune_params): Re-organize, use enums for flag values.
12779         (FUSE_OPS): New macro.
12780         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
12781         (ARM_PREFETCH_BENEFICIAL): Likewise.
12782         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
12783         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12784         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
12785         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
12786         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
12787         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
12788         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
12789         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
12790         format.
12791         (arm_option_override, thumb2_reorg, arm_print_tune_info)
12792         (aarch_macro_fusion_pair_p): Update uses of current_tune.
12793         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
12795 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
12797         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
12798         "break".
12800 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
12801             Sandra Loosemore <sandra@codesourcery.com>
12803         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
12804         value.
12805         (REG_CLASS_NAMES): Add "IJMP_REGS".
12806         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
12807         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
12808         use new "c" register constraint.
12809         * config/nios2/constraint.md (c): New register constraint
12810         corresponding to IJMP_REGS.
12812 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12814         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
12815         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
12816         define_splits): Delete, revamp, transmogrify into ...
12817         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12818         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12819         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12820         New.
12822 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12824         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
12825         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
12827 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12829         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
12830         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
12831         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
12832         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
12833         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
12834         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
12835         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
12836         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
12837         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
12838         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
12839         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
12840         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
12841         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
12842         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
12843         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
12844         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
12845         and 30 corresponding splitters): Delete.
12847 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12849         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
12850         zero_extract.
12852 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12854         * combine.c (recog_for_combine_1): New function, factored out
12855         from recog_for_combine.
12856         (change_zero_ext): New function.
12857         (recog_for_combine): If recog fails, try again with the pattern
12858         modified by change_zero_ext; if that still fails, restore the
12859         pattern.
12861 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
12863         * combine.c (get_undo_marker): New function.
12864         (undo_to_marker): New function, largely factored out from ...
12865         (undo_all): ... this.  Adjust.
12867 2015-05-12  Richard Biener  <rguenther@suse.de>
12869         PR tree-optimization/66101
12870         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
12871         fixup if we turn a loop exit edge to a fallthru edge.
12873 2015-05-12  Richard Biener  <rguenther@suse.de>
12875         PR tree-optimization/37021
12876         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
12877         (SLP_TREE_TWO_OPERATORS): New define.
12878         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
12879         SLP_TREE_TWO_OPERATORS.
12880         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
12881         SLP node.
12882         (vect_build_slp_tree): Adjust.
12883         (vect_analyze_slp_cost_1): Likewise.
12884         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
12885         emitting two vector stmts and mixing the results.
12887 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12889         * call.c (print_z_candidates): Remove dead code.
12891 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12893         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
12894         and zEC12_simple_fp.
12895         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
12896         to 1.
12898 2015-05-12  Tom de Vries  <tom@codesourcery.com>
12900         PR tree-optimization/66010
12901         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
12902         ifn_va_arg.
12903         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
12904         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
12905         va_lists are passed, and remove corresponding handling.
12906         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
12907         do_deref argument to ifn_va_arg.
12908         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
12909         ifn_va_arg.
12911 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12913         PR target/65955
12914         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
12915         REG before taking its REGNO.
12917 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12919         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
12920         rsp->sign_bit_copies and rsp->nonzero_bits into ...
12921         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
12922         present to get more accurate information about the number of sign bit
12923         copies and non zero bits.
12925 2015-05-12  Richard Biener  <rguenther@suse.de>
12927         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
12928         do not allow unrolling.
12930 2015-05-11  Richard Henderson  <rth@redhat.com>
12932         * config/i386/i386-modes.def (CCP): New.
12933         * config/i386/i386.c (put_condition_code): Handle it.
12934         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
12936 2015-05-11  Richard Henderson  <rth@redhat.com>
12938         * target.def (md_asm_clobbers): Replace with...
12939         (md_asm_adjust): this.
12940         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
12941         (TARGET_MD_ASM_ADJUST): New.
12942         * tm.texi: Rebuild.
12943         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
12944         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
12945         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
12947         * cfgexpand.c (check_operand_nalternatives): Accept vector of
12948         constraints instead of lists of outputs and inputs.
12949         (expand_asm_stmt): Save and restore input_location around the
12950         body of the function.  Move asm data into vectors instead of
12951         building tree lists.  Generate cleanup sequences as needed,
12952         rather than waiting til the end.  Use new md_asm_adjust hook.
12954         * config/vxworks.c: Include vec.h before target.h.
12955         * gimple.c: Likewise.
12956         * incpath.c: Likewise.
12957         * mode-switching.c: Likewise.
12959         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
12960         (cris_md_asm_adjust): this.
12961         (TARGET_MD_ASM_CLOBBERS): Remove.
12962         (TARGET_MD_ASM_ADJUST): New.
12963         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
12964         (ix86_md_asm_adjust): this.
12965         (TARGET_MD_ASM_CLOBBERS): Remove.
12966         (TARGET_MD_ASM_ADJUST): New.
12967         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
12968         (mn10300_md_asm_adjust): this.
12969         (TARGET_MD_ASM_CLOBBERS): Remove.
12970         (TARGET_MD_ASM_ADJUST): New.
12971         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
12972         (rs6000_md_asm_adjust): this.
12973         (TARGET_MD_ASM_CLOBBERS): Remove.
12974         (TARGET_MD_ASM_ADJUST): New.
12975         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
12976         (visium_md_asm_adjust): this.
12977         (TARGET_MD_ASM_CLOBBERS): Remove.
12978         (TARGET_MD_ASM_ADJUST): New.
12980 2015-05-11  Richard Henderson  <rth@redhat.com>
12982         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
12983         if noutputs is zero.
12984         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
12986         * cfgexpand.c (expand_asm_operands): Merge into...
12987         (expand_asm_stmt): ... here.
12989         * cfgexpand.c (expand_asm_operands): Don't call
12990         resolve_asm_operand_names.
12991         * stmt.c (resolve_asm_operand_names): Clarify block comment.
12993 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
12995         * dwarf2out.c (gen_member_die): Sanity check that we access
12996         TYPE_MAIN_VARIANT for TYPE_METHODS.
12997         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
12998         checking TYPE_METHODS.
12999         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
13000         if non-null.
13001         (build_distinct_type_copy): Clear TYPE_METHODS.
13002         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
13003         (verify_type): Allow TYPE_METHODS to be error_mark_node.
13004         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
13006 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13008         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
13009         (emit_pattern_before_setloc): Likewise.
13011 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
13013         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
13014         for define_peephole2s.
13015         (get_peephole2_pattern): New function.
13016         (main): Use it.  Call validate_pattern.
13018 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13020         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
13021         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
13022         (Last callee saved reg is different for AVR_TINY architecture)
13024 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
13026         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
13027         when looking for memory references.
13029 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
13031         PR target/65753
13032         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
13033         via function pointers.
13035 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
13037         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
13038         indirect call by forcing address into a pseudo with -fno-plt.
13039         * common.opt (flag_plt): New option.
13040         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
13041         ([-fno-plt]): Document.
13043 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
13045         PR bootstrap/66105
13046         * config/rs6000/option-defaults.h: Add space between string literal
13047         and macro name.
13049 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13051         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
13052         accross ARM targets.
13054 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13056         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
13057         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
13059 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
13061         PR rtl-optimization/66076
13062         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
13063         Don't grow the heap array if it is already big enough from a
13064         previous iteration.
13066 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13068         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
13069         (is_called_in_ARM_mode): Remove.
13070         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
13071         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
13072         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
13073          arm_declare_function_name.
13075 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13077         * config/arm/arm.c (arm_option_override): Reoganized and split into :
13078         (arm_option_params_internal); New function.
13079         (arm_option_check_internal): New function.
13080         (arm_option_override_internal): New function.
13081         (thumb_code, thumb1_code): Remove.
13082         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
13083         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
13084         (thumb_code, thumb1_code): Remove.
13085         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
13087 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
13089         * config/alpha/alpha.c (alpha_emit_set_const_1)
13090         (alpha_emit_set_long_const, alpha_extract_integer)
13091         (alpha_legitimate_constant_p, alpha_split_const_mov)
13092         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
13093         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13094         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
13095         HOST_WIDE_INT_1U.
13096         * config/alpha/predicates.md (mode_mask_operand): Do not match
13097         const_double RTX.
13098         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13099         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
13100         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
13101         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13102         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
13104 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
13106         PR target/65780
13107         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
13108         default_binds_local_p_2.
13109         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
13110         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
13112 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13114         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
13116 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13118         Patch by Richard Biener
13119         * coverage.c (coverage_obj_init): Delay building of type variant
13120         until the type is finished.
13122 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13124         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
13125         mismatch between C and C++ type; compoare correctly ARG_TYPES
13126         for non-prototypes and output correctly parameter index for METHOD_TYPE.
13127         (odr_types_equivalent_p): Fix wording of warning about attributes;
13128         it is OK to match prototype and non-prototype.
13130 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13132         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
13133         TYPE_ARG_TYPES list.
13134         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
13135         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
13137 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13139         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
13140         * tree.h (is_lang_specific): Constify.
13142 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
13144         PR tree-optimization/64454
13145         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
13146         Rewrite.
13148 2015-05-08  Jason Merrill  <jason@redhat.com>
13150         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
13151         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
13152         config/darwin.h, config/darwin9.h, config/elfos.h,
13153         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
13154         config/microblaze/microblaze.h, config/mips/mips.h,
13155         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
13156         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
13157         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13158         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
13159         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
13160         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
13161         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
13162         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
13163         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
13164         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
13165         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
13166         between string literal and macro name.
13168 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13170         * jump.c: Change argument types to rtx_insn *.
13171         * rtl.h: Adjust.
13173 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13175         * lra-constraints.c: Change argument type to rtx_insn *.
13177 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13179         * df-problems.c: Change argument type to rtx_insn *.
13181 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13183         * combine.c: Change argument type to rtx_insn *.
13185 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13187         * rtl.h: Adjust.
13188         * rtlanal.c: Change argument type to rtx_insn *.
13190 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13192         * sched-deps.c: Change argument types to rtx_insn *.
13193         * sched-int.h: Adjust.
13195 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13197         * dwarf2cfi.c: Change argument type to rtx_insn *.
13199 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13201         * ira.c (decrease_live_ranges_number): Changetype of local
13202         variable to rtx_insn *.
13203         * recog.c: Change argument types to rtx_insn *.
13204         * recog.h: Adjust.
13206 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13208         * reorg.c: Change argument types to rtx_insn *.
13210 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13212         * ira-color.c: Change argument types to rtx_insn *.
13213         * lra-eliminations.c: Likewise.
13214         * ira.h: Adjust.
13216 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13218         * gcse.c: Change argument types to rtx_insn *.
13220 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13222         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
13224 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13226         * emit-rtl.c (emit_debug_insn_before): Change argument type to
13227         rtx_insn *.
13228         * rtl.h: Adjust.
13230 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13232         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
13233         * rtl.h: Adjust.
13235 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13237         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
13238         * rtl.h: Adjust.
13240 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13242         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
13243         * rtl.h: Adjust.
13245 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13247         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
13248         * rtl.h: Adjust.
13250 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13252         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
13253         to rtx_insn *.
13254         * rtl.h: Adjust.
13256 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13258         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
13259         to rtx_insn *.
13260         * rtl.h: Likewise.
13262 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13264         * except.c (can_nonlocal_goto): Change type of argument to
13265         rtx_insn *.
13266         * rtl.h: Adjust.
13268 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13270         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
13271         * rtl.h: Adjust.
13273 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13275         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
13276         * cfgrtl.c (can_delete_label_p): Adjust.
13277         * rtl.h: likewise.
13279 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13281         * reorg.c (stop_search_p): Change argument to rtx_insn *.
13283 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13285         * except.c (make_reg_eh_region_note): Change argument to
13286         rtx_insn *.
13287         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
13288         * except.h: Adjust.
13290 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13292         * mode-switching.c (commit_mode_sets): Change type of local
13293         variable from rtx to rtx_insn *.
13295 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
13297         * doc/install.texi (--enable-languages): Add missing jit and lto info.
13298         Add ^ to grep command.
13299         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
13300         arg to last gimple_simplify declaration.  Add missing gimple_build
13301         declaration for built-in function case with four tree args.
13303 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
13304             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13306         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
13307         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
13308         (GNU_USER_DYNAMIC_LINKERN32): Update.
13310 2015-05-08  Richard Biener  <rguenther@suse.de>
13312         PR tree-optimization/66036
13313         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13314         Handle strided group loads.
13315         (vect_verify_datarefs_alignment): Likewise.
13316         (vect_enhance_data_refs_alignment): Likewise.
13317         (vect_analyze_group_access): Likewise.
13318         (vect_analyze_data_ref_access): Likewise.
13319         (vect_analyze_data_ref_accesses): Likewise.
13320         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
13321         (vectorizable_load): Likewise.
13323 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
13325         * config/rs6000/rs6000.md: Require operand inequality in one
13326         of the peepholes.
13328 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
13329             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13331         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
13332         from (set ...).
13333         * config/rx/rx.md (movdi, movdf): Likewise.
13334         Likewise for define_peephole2s.
13336 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
13338         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
13339         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
13340         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
13341         vtst_u64): Rewrite using gcc vector extensions.
13343 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
13345         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
13346         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
13348 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
13350         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
13352 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13354         * config/glibc-stdint.h (OPTION_MUSL): Define.
13355         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
13356         Change the definition based on OPTION_MUSL for 64 bit targets.
13357         * config/linux.h (OPTION_MUSL): Redefine.
13358         * config/alpha/linux.h (OPTION_MUSL): Redefine.
13359         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
13360         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
13362 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
13363             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13365         * config.gcc (LIBC_MUSL): New tm_defines macro.
13366         * config/linux.h (OPTION_MUSL): Define.
13367         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
13368         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
13369         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13370         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13371         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13372         * config/linux.opt (mmusl): New option.
13373         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
13374         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13375         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13376         * configure: Regenerate.
13378 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13379             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13381         PR target/48904
13382         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
13383         * config/i386/knetbsd-gnu64.h: New file.
13385 2015-05-08  Marek Polacek  <polacek@redhat.com>
13387         PR c/64918
13388         * doc/invoke.texi: Document -Woverride-init-side-effects.
13390 2015-05-07  Marek Polacek  <polacek@redhat.com>
13392         PR c/65179
13393         * doc/invoke.texi: Document -Wshift-negative-value.
13395 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
13397         * gcov-tool.c (do_merge): Refactore to remove int ret.
13398         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
13399         !type == FUNC to type != FUNC.
13400         * reload.h (struct target_reload): Changee to type of
13401         x_spill_indirect_levels from bool to unsigned char.
13403 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
13405         * rtl.h (always_void_p): New function.
13406         * gengenrtl.c (always_void_p): Likewise.
13407         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
13408         with code foo are always VOIDmode.
13409         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
13410         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
13411         compare-elim.c, config/aarch64/aarch64.c,
13412         config/aarch64/aarch64.md, config/alpha/alpha.c,
13413         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
13414         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
13415         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
13416         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
13417         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
13418         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
13419         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
13420         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
13421         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
13422         config/ia64/vect.md, config/iq2000/iq2000.c,
13423         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
13424         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
13425         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
13426         config/mep/mep.c, config/microblaze/microblaze.c,
13427         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
13428         config/mn10300/mn10300.c, config/msp430/msp430.c,
13429         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
13430         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
13431         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
13432         config/rs6000/altivec.md, config/rs6000/rs6000.c,
13433         config/rs6000/rs6000.md, config/rs6000/vector.md,
13434         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
13435         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
13436         config/sh/sh.md, config/sh/sh_treg_combine.cc,
13437         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
13438         config/spu/spu.md, config/stormy16/stormy16.c,
13439         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
13440         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
13441         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
13442         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
13443         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
13444         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
13445         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
13446         var-tracking.c: Update calls accordingly.
13448 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
13450         PR middle-end/192
13451         PR middle-end/54303
13452         * varasm.c (function_mergeable_rodata_prefix): New function.
13453         (mergeable_string_section): Use it.
13454         (mergeable_constant_section): Use it.
13456 2015-05-07  Jeff Law  <law@redhat.com>
13458         PR target/39726
13459         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13460         simplifier to narrow arithmetic.
13461         * generic-match-head.c: (types_match, single_use): New functions.
13462         * gimple-match-head.c: (types_match, single_use): New functions.
13464 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13466         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
13467         rtx type.
13469 2015-05-07  Richard Biener  <rguenther@suse.de>
13471         PR tree-optimization/66002
13472         * passes.def: Schedule another pass_merge_phi after ifcombine, right
13473         before phiopt.
13475 2015-05-07  Marek Polacek  <polacek@redhat.com>
13476             Martin Uecker  <uecker@eecs.berkeley.edu>
13478         * doc/invoke.texi: Document -fsanitize=bounds-strict.
13479         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
13480         into SANITIZE_NONDEFAULT.
13481         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
13483 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
13485         PR target/66015
13486         * config/alpha/alpha.c (alpha_override_options_after_change): New.
13487         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
13488         (alpha_override_options): Move align_loops, align_jumps and
13489         align_functions handling into alpha_override_options_after_change.
13491 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
13492             Chris Jones  <chrisj@nvidia.com>
13493             Joshua Conner  <jconner@nvidia.com>
13495         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
13496         linking of crtfastmath.o.
13497         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
13499 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
13501         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
13502         (cstore<mode>4_unsigned_imm): New expander.
13503         (cstore<mode>4): Remove empty constraint strings.  Use the new
13504         expanders.
13506 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
13508         PR target/64208
13509         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
13510         alternatives.
13512 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13514         * config/aarch64/geniterators.sh: Use standard BRE in sed.
13516 2015-05-06  Alan Modra  <amodra@gmail.com>
13518         PR target/66033
13519         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
13520         (UNSPEC_NOP): Define.
13521         (reload_vsx_from_gpr<mode>): Add missing DONE.
13522         (reload_gpr_from_vsx<mode>): Likewise.
13523         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
13524         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
13526 2015-05-06  Christian Bruel  <christian.bruel@st.com>
13528         PR target/66015
13529         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
13530         align_jumps, align_functions into aarch64_override_options_after_change.
13532 2015-05-06  Richard Biener  <rguenther@suse.de>
13534         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
13535         vect_transform_slp_perm_load to check if we support a permutation
13536         for basic-block vectorization.
13538 2015-05-06  Nick Clifton  <nickc@redhat.com>
13540         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
13541         used, even if it is not being used as a frame pointer.
13543 2015-05-05  Jason Merrill  <jason@redhat.com>
13545         * dwarf2out.c (gen_member_die): Don't emit anything for an
13546         anonymous class constructor.
13548 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
13550         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
13551         that it reflects the block structure.
13552         (afdo_propagate_edge): Likewise.
13553         (afdo_calculate_branch_prob): Likewise.
13554         (afdo_annotate_cfg): Likewise.
13555         * cfgcleanup.c (equal_different_set_p): Likewise.
13556         (try_crossjump_to_edge): Likewise.
13557         * cgraph.c (cgraph_node::verify_node): Likewise.
13558         * cgraphunit.c (expand_all_functions): Likewise.
13559         * config/i386/i386.c (ix86_expand_copysign): Likewise.
13560         (exact_dependency_1): Likewise.
13561         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
13562         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
13563         * gensupport.c (process_define_subst): Likewise.
13564         * lto-wrapper.c (merge_and_complain): Likewise.
13565         * tree-if-conv.c (if_convertible_bb_p): Likewise.
13566         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
13567         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
13568         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
13569         * tree-vect-loop.c (vectorizable_reduction): Likewise.
13570         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13571         * tree-vect-stmts.c (vectorizable_shift): Likewise.
13572         * tree-vrp.c (vrp_finalize): Likewise.
13573         * tree.c (variably_modified_type_p): Likewise.
13575 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
13577         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
13578         on darwin12 and later.
13579         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
13580         file to pass -rdynamic on darwin12 and later.
13581         * config/darwin.opt (rdynamic): Add.
13583 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
13585         * doc/extend.texi (C Extensions): Update menu for moved Variable
13586         Attributes and Type Attributes sections.
13588 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
13590         PR target/65990
13591         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
13592         if rep_8byte stringop strategy was specified for 32-bit target.
13594 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
13596         PR target/65915
13597         * config/i386/i386.md (vector convert to float spltiter): Check for
13598         xmm16+, when splitting scalar float conversion.
13599         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
13601 2015-05-05  Nick Clifton  <nickc@redhat.com>
13603         * config/msp430/msp430-opts.h (enum msp430_regions): New.
13604         * config/msp430/msp430.c (msp430_override_options): Complain if
13605         -mcode-region or -mdata-region is used on a non MSP430X.
13606         (msp430_section_attr): New function.  Checks lower, upper and
13607         either attributes.
13608         (msp430_attribute_table): Add lower, upper and either.
13609         (gen_prefix): New function.  Generates a prefix for a section
13610         name.
13611         (msp430_select_section): New function - handles the choice of
13612         section for an object.  Takes into account memory region
13613         attributes and options.
13614         (msp430_function_section): Use gen_prefix.
13615         (TARGET_SECTION_TYPE_FLAGS): Define.
13616         (msp430_section_type_flags): New function.
13617         (TARGET_ASM_UNIQUE_SECTION): Define.
13618         (msp430_unique_section): New function.
13619         (msp430_output_aligned_decl_common): New function.
13620         (msp430_do_not_relax_short_jumps): New function.
13621         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
13622         Define.
13623         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
13624         * config/msp430/msp430-protos.h
13625         (msp430_do_not_relax_short_jumps): New prototype.
13626         (msp430_output_aligned_decl_common): New prototype.
13627         * config/msp430/msp430.md (length): New attribute.
13628         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
13629         then use a long code sequence for short jumps.
13630         * config/msp430/msp430.opt (mcode-region): New.
13631         (mdata-region): New.
13632         * doc/invoke.texi: Document new options.
13633         * doc/extend.texi: Document new attributes.
13635 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
13637         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
13638         (tune_params): Add field branch_costs.
13639         (aarch64_branch_cost): Declare.
13640         * gcc/config/aarch64.c (generic_branch_cost): New.
13641         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
13642         (cortexa53_tunings): Likewise.
13643         (cortexa57_tunings): Likewise.
13644         (thunderx_tunings): Likewise.
13645         (xgene1_tunings): Likewise.
13646         (aarch64_branch_cost): Define.
13647         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
13649 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
13651         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
13652         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
13653         * config/i386/i386.md: Ditto.
13654         * config/i386/winnt.c: Ditto.
13656 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
13658         * doc/extend.texi (__atomic Builtins): Move implementation details
13659         to the end of the description, rewrite opening paragraphs, state
13660         difference with __sync builtins, state C11/C++11 assumptions,
13661         weaken itemized descriptions, add explanation of memory model
13662         behaviour, expand description of compare-exchange, simplify text.
13664 2015-05-05  Renlin Li  <renlin.li@arm.com>
13666         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
13668 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
13670         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
13671         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
13672         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
13673         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
13674         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
13675         * configure: Regenerate.
13676         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
13677         * doc/install.texi (aarch64*-*-*): Document new
13678         --enable-fix-cortex-a53-843419 option.
13679         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
13680         and -mno-fix-cortex-a53-843419 options.
13682 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
13684         PR target/65871
13685         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
13687 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
13689         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
13690         fix overactive TYPE_MIN_VALUE check and add FIXME for type
13691         compatibility problems.
13693 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
13695         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
13696         constraints.
13697         (cbranchsi4_reg): New.
13698         * config/microblaze/microblaze.c
13699         (microblaze_expand_conditional_branch_reg): New.
13700         * config/microblaze/microblaze-protos.h
13701         (microblaze_expand_conditional_branch_reg): New prototype.
13703 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
13705         * config/microblaze/microblaze.md (peephole2): New.
13707 2015-05-04  Jeff Law  <law@redhat.com>
13709         Revert:
13710         2015-05-04  Jeff Law  <law@redhat.com>
13712         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13713         simplifier to narrow arithmetic.
13714         * generic-match-head.c: (types_match, single_use): New functions.
13715         * gimple-match-head.c: (types_match, single_use): New functions.
13717 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
13719         PR target/65987
13720         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
13721         (split_branches): Likewise.
13723 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
13725         * common.opt (fdelete-null-pointer-checks): Init to -1.
13726         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
13727         override flag_delete_null_pointer_checks default.
13728         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
13729         behavior re address zero.  Better document target-specific behavior.
13730         (-fisolate-errneous-paths-dereference): Mention relationship to
13731         -fdelete-null-pointer-checks.
13733 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
13735         PR tree-optimization/65984
13736         * ubsan.c: Include tree-cfg.h.
13737         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
13738         stmt_could_throw_p test, rename can_throw variable to ends_bb.
13740 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
13742         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
13743         to CONST_DOUBLE_P predicate.
13744         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
13745         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
13746         allow only operands that satisfy standard_sse_constant_p predicate.
13747         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
13748         to CONST_DOUBLE_P predicate.
13750 2015-05-04  Jeff Law  <law@redhat.com>
13752         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13753         simplifier to narrow arithmetic.
13754         * generic-match-head.c: (types_match, single_use): New functions.
13755         * gimple-match-head.c: (types_match, single_use): New functions.
13757 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
13759         * config/arm/arm.c: Restore bootstrap.
13761 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
13763         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
13764         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
13765         as CONST_WIDE_INT, not CONST_DOUBLE.
13766         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
13767         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
13768         (ix86_find_base_term): Do not check for CONST_DOUBLE.
13769         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
13770         (ix86_build_signbit_mask): Rewrite using wide ints.
13771         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
13772         (ix86_rtx_costs): Handle CONST_WIDE_INT.
13773         (find_constant): Ditto.
13774         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
13775         using gen_int_mode.
13776         * config/i386/predicates.md (x86_64_immediate_operand)
13777         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
13778         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
13779         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
13780         (const0_operand): Also match const_wide_int.
13781         (constm1_operand): Ditto.
13782         (const1_operand): Ditto.
13784 2015-05-04  Richard Biener  <rguenther@suse.de>
13786         PR tree-optimization/65965
13787         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
13788         store groups at gaps.
13790 2015-05-04  Richard Biener  <rguenther@suse.de>
13792         PR tree-optimization/65935
13793         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
13794         then make sure to apply that swapping to the IL.
13796 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
13798         * Makefile.in (PATCHLEVEL_c): New variable.
13799         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
13800         expand the same way as if DEVPHASE_c was non-empty.
13802 2015-05-04  Kai Tietz  <ktietz@redhat.com>
13804         PR target/65559
13805         * lto-wrapper.c (run_gcc): Open filename
13806         in binary-mode.
13808 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
13810         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
13811         sections up in file, to immediately after the Function Attributes
13812         section.
13814 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
13816         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
13818 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13820         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
13821         (insert_partition_copy_on_edge): Adjust.
13822         (insert_rtx_to_part_on_edge): Likewise.
13823         (insert_part_to_rtx_on_edge): Likewise.
13825 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13827         * function.c (set_return_jump_label): Change type of argument to
13828         rtx_insn *.
13829         * function.h (set_return_jump_label): Adjust.
13831 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13833         * reload.h (struct reg_equivs_t): Change type of init to
13834         rtx_insn *.
13835         * ira.c (fix_reg_equiv_init): Adjust.
13836         * reload1.c (eliminate_regs_1): Likewise.
13837         (init_eliminable_invariants): Likewise.
13839 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13841         * cselib.c (fp_setter_insn): Take a rtx_insn *.
13842         * cselib.h (fp_setter_insn): Adjust.
13844 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13846         * recog.c (struct validate_replace_src_data): Change type of
13847         insn field to rtx_insn *.
13848         (validate_replace_src_group): Change type of argument to rtx_insn *.
13849         * recog.h (validate_replace_src_group): Adjust.
13851 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13853         * haifa-sched.c: Change the type of some variables to rtx_insn *.
13854         * sched-deps.c: Likewise.
13855         * sched-int.h: Likewise.
13856         * sched-rgn.c: Likewise.
13857         * sel-sched.c: Likewise.
13859 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13861         to rtx_insn *.
13862         * config/i386/i386.c: Change the type of some arguments to
13863         rtx_insn *.
13864         * config/arm/arm.c: Likewise.
13866 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13868         * lra-constraints.c: Change type of some arguments to rtx_insn *.
13870 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13872         * regcprop.c (kill_autoinc_value): Change type of argument to
13873         rtx_insn *.
13875 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13877         * genrecog.c (print_subroutine): Adjust.
13878         * recog.c (get_bool_attr_mask_uncached): Likewise.
13879         * recog.h (struct recog_data_d): Change the type of insn to
13880         rtx_insn *.
13882 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13884         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
13886 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13888         * df-problems.c (df_set_note): Change type of argument to
13889         rtx_insn *.
13891 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13893         * builtins.c (expand_builtin_trap): Change type of local
13894         variable to rtx_insn *.
13895         (add_sched_insns_for_speculation): Likewise.
13896         (ix86_emit_save_regs): Likewise.
13897         (get_scratch_register_on_entry): Likewise.
13898         (ix86_emit_restore_reg_using_pop): Likewise.
13899         (ix86_emit_leave): Likewise.
13900         (ix86_emit_restore_regs_using_mov): Likewise.
13901         (ix86_expand_epilogue): Likewise.
13902         Likewise.
13903         (rl78_alloc_physical_registers_umul): Likewise.
13904         * cselib.c (discard_useless_locs): Likewise.
13905         (cselib_invalidate_regno): Likewise.
13906         (cselib_invalidate_mem): Likewise.
13907         * function.c (expand_function_start): Likewise.
13908         (emit_use_return_register_into_block): Likewise.
13909         * gcse.c: Likewise.
13910         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
13911         * ifcvt.c (noce_get_alt_condition): Likewise.
13912         * loop-doloop.c (doloop_condition_get): Likewise.
13913         * lra-constraints.c (inherit_in_ebb): Likewise.
13914         * modulo-sched.c (sms_schedule_by_order): Likewise.
13915         * recog.c (next_insn_tests_no_inequality): Likewise.
13916         * reorg.c (emit_delay_sequence): Likewise.
13917         (update_reg_dead_notes): Likewise.
13918         (fix_reg_dead_note): Likewise.
13919         (fill_slots_from_thread): Likewise.
13920         (delete_computation): Likewise.
13922 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
13924         * doc/extend.texi (Variable Attributes): Add menu and proper
13925         @nodes to subsections.  Move Microsoft Windows attributes to
13926         their own subsection.
13927         (Type Attributes): Reorganize introduction to remove duplicate
13928         list of attributes.  Add menu and proper @nodes to subsections.
13929         Alphabetize the main table of common attributes.
13931 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
13933         * match.pd: New simplification patterns.
13934         (x + (x & 1))  -> ((x + 1) & ~1)
13935         (x & ~(x & y)) -> ((x & ~y))
13936         (x | ~(x | y)) -> ((x | ~y))
13938 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13940         * target.def (attribute_table): Mention that struct attribute_spec
13941         is defined in tree-core.h rather than tree.h
13942         * doc/tm.texi: Regenerate.
13944 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
13946         * genrecog.c (test): Rename to rtx_test.  Update rest of file
13947         accordingly.
13949 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
13951         PR translation/65959
13952         * params.h (DEFPARAM): Rename msgid to nocmsgid.
13954 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
13956         * gcc/config/aarch64/aarch64-protos.h (tune_params):
13957         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
13958         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
13959         Return value depending on target.
13960         (generic_tunings): Initialize new target settings.
13961         (cortexa53_tunings): Likewise.
13962         (cortexa57_tunings): Likewise.
13963         (thunderx_tunings): Likewise.
13964         (xgene1_tunings): Likewise.
13966 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
13968         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
13969         Make Cortex-A53 shift costs more accurate.
13971 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13973         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
13974         UNSIGNED_FLOAT.
13976 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
13978         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
13979         Calculate cost of op0 and op1 in PLUS and MINUS cases.
13981 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13983         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
13984         Add cost of op0 in the compare-with-fpzero case.
13986 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
13988         * builtins.c (fold_builtin_1): Remove spurious second
13989         semicolon.
13990         * cgraph.h (symtab_node::get_availability): Likewise.
13991         * opts.c (common_handle_option): Remove spurious second semicolon.
13992         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
13993         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
13995 2015-04-30  Caroline Tice  <cmtice@google.com>
13997         PR gcov-profile/65929
13998         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
13999         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
14000         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
14001         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
14002         * doc/tm.texi: Regenerate.
14003         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
14004         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
14005         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
14006         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
14008 2015-04-30  Marek Polacek  <polacek@redhat.com>
14010         * varasm.c (handle_cache_entry): Fix logic.
14012 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14014         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
14015         (*extrsi5_insn_uxtw_alt): Likewise.
14016         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
14017         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
14018         operations.
14020 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14022         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
14023         fabd in ABS case.
14025 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14027         * config/aarch64/aarch64.md
14028         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
14029         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
14030         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
14031         appropriately.  Handle alternative EON form.
14033 2015-04-30  Renlin Li  <renlin.li@arm.com>
14035         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
14036         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
14038 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
14040         PR ipa/65873
14041         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
14042         -fstrict-aliasing boundaries.
14044 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14046         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
14047         and [SU]MNEGL patterns.
14049 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14051         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
14052         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
14053         combined arithmetic-shift ops.  Properly handle all shift and extend
14054         operations that can occur in combination with PLUS/MINUS.
14055         Rename maybe_fma to compound_p.
14056         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
14057         arithmetic and shift operations.
14059 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14061         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
14062         rather than arith_shift cost when costing ADD/MINUS of an
14063         extended value.
14065 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
14067         PR lto/65948
14068         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
14069         to itself.
14071 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
14073         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
14074         are for the same position.
14076 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
14078         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
14079         vectorize_loops.
14080         (vectorize_loops): Use it.
14082 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14084         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
14085         for aggregate types.
14086         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
14087         type to be non_ODR.
14088         * tree.c (need_assembler_name_p): Compute mangled name for
14089         non-fundamental types and integer types.
14091 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
14093         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
14094         manual swaps.
14095         * expr.c (expand_expr_real_2): Likewise.
14097 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14099         * tree.c (build_common_builtin_nodes): Do not build
14100         __builtin_alloca_with_align as equivalent of library alloca.
14102 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14104         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
14105         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
14106         bugus variants.
14107         * tree.c: Include print-tree.h and ipa-utils.h
14108         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
14109         (free_lang_data_in_cgraph): Call verify_type.
14110         (verify_type_variant): New function.
14111         (verify_type): New function.
14112         * tree.h (verify_type): Declare.
14114 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
14116         * config/mips/mips-cpus.def: (mips4): Change default processor
14117         from PROCESSOR_R8000 to PROCESSOR_R10000.
14119 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
14121         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
14122         la/jalr instead of jal.
14124 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
14126         PR target/65871
14127         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
14128         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
14129         (setcc+movzbl peephole2): Check also clobbered reg.
14130         (setcc+andl peephole2): Ditto.
14132 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
14134         PR libgomp/65099
14135         * config/nvptx/mkoffload.c (target_ilp32): New variable.
14136         (main): Set it depending on "-foffload-abi=[...]".
14137         (compile_native, main): Use it to pass "-m32" or "-m64" to the
14138         compiler.
14140 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
14142         PR target/65770
14143         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
14144         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
14145         Flip lane index back at assembly time for bigendian.
14147 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
14149         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
14150         * gimplify.c (gimplify_omp_workshare): Use it.
14152 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14154         * Makefile.in (build/genrecog.o): Depend on inchash.h.
14155         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
14156         build/inchash.o
14157         * genrecog.c: Rewrite most of the code except for the third page.
14159 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14161         * inchash.h, inchash.c: Include bconfig.h for build objects.
14162         * Makefile.in (build/inchash.o): New rule.
14164 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
14166         PR target/65924
14167         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
14168         number in type attribute expression.
14170 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14172         * loop-iv.c (canon_condition): Generalize to all types of integer
14173         constant.
14175 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
14177         * gimple-walk.c: Prune duplicate or unneeded includes.
14178         (walk_gimple_asm): Only call parse_input_constraint or
14179         parse_output_constraint if their findings are used.
14180         Honour parse_input_constraint and parse_output_constraint
14181         result.
14183 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
14185         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
14187 2015-04-29  Tom de Vries  <tom@codesourcery.com>
14189         PR tree-optimization/65893
14190         * passes.def (pass_all_optimizations): Move pass_stdarg to after
14191         pass_dce.
14193 2015-04-29  Richard Biener  <rguenther@suse.de>
14195         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14196         compute GROUP_SIZE for basic-block SLP.
14197         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
14198         take into account gaps.
14199         (vect_get_mask_element): Properly reject references to previous
14200         vectors.
14201         (vect_transform_slp_perm_load): Likewise.
14203 2015-04-29  Christian Bruel  <christian.bruel@st.com>
14205         PR target/64835
14206         * config/i386/i386.c (ix86_default_align): New function.
14207         (ix86_override_options_after_change): Call ix86_default_align.
14208         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
14209         (ix86_override_options_after_change): New function.
14211 2015-04-28  Jeff Law  <law@redhat.com>
14213         * tree-ssa-dom.c (record_equality); Fix comment typos.
14215 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14217         PR tree-optimization/65887
14218         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
14220 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
14222         * doc/extend.texi (Declaring Attributes of Functions): Split into
14223         subsections by target.  Alphabetize the table of common attributes.
14224         Rewrite some of the introductory text to reflect the new structure.
14225         Update some cross-references to point to the new subsections.
14226         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
14227         duplicate copies in the discussion of function, label, and type
14228         attributes.
14230 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
14232         PR bootstrap/65910
14233         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
14235 2015-04-28  Jason Merrill  <jason@redhat.com>
14237         PR c++/65734
14238         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
14239         (finalize_type_size): Respect TYPE_USER_ALIGN.
14240         (layout_type) [ARRAY_TYPE]: Likewise.
14242 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
14244         * config/arm/arm.md (*arm_movt): Fix type attribute.
14245         (*cmpsi_shiftsi): Likewise.
14246         (*cmpsi_shiftsi_swp): Likewise.
14247         (*movsicc_insn): Likewise.
14248         (*cond_move): Likewise.
14249         (*if_plus_move): Likewise.
14250         (*if_move_plus): Likewise.
14251         (*if_arith_move): Likewise.
14252         (*if_move_arith): Likewise.
14253         (*if_shift_move): Likewise.
14254         (*if_move_shift): Likewise.
14255         (*arm_movtas_ze): Likewise.
14256         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
14257         redundancy and type attribute.
14258         (*thumb2_movsi_insn): Fix type attribute.
14259         (*thumb2_addsi_short): Likewise.
14260         (thumb2_addsi3_compare0): Likewise.
14261         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
14262         attributes accordingly.
14264 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
14266         PR other/65911
14267         * function.c (pad_to_arg_alignment): Add parentheses.
14269 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
14271         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
14272         libgcc/config/frv/elf-lib.h.
14274 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14276         * tree-call-cdce.c: Fix example in header comment.
14278 2015-04-28  Richard Biener  <rguenther@suse.de>
14280         PR tree-optimization/62283
14281         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
14282         fails fatally and we are vectorizing a basic-block simply
14283         cause the child to be constructed piecewise.
14284         (vect_analyze_slp_cost_1): Adjust.
14285         (vect_detect_hybrid_slp_stmts): Likewise.
14286         (vect_bb_slp_scalar_cost): Likewise.
14287         (vect_get_constant_vectors): For piecewise constructed
14288         constants place them after the last def.
14289         (vect_get_slp_defs): Adjust.
14290         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
14291         externals for basic-block vectorization.
14293 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14295         PR target/63503
14296         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
14297         aarch64-*-*.
14298         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
14299         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
14300         (AARCH64_TUNE_FMA_STEERING): Likewise.
14301         * config/aarch64/aarch64-cores.def: Set
14302         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
14303         FMUL/FMADD instructions.
14304         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
14305         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
14306         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
14307         * config/aarch64/cortex-a57-fma-steering.h: New file.
14308         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14310 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
14312         * gensupport.c (std_preds): Add missing codes to address_operand entry.
14314 2015-04-28  Richard Biener  <rguenther@suse.de>
14316         PR tree-optimization/65851
14317         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
14318         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
14319         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
14320         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
14321         (ccp_visit_phi_node): Adjust.
14322         (evaluate_stmt): For simplifications to SSA names return its
14323         lattice value if that isn't VARYING.  Return immediately when
14324         simplified to a constant.
14325         (visit_assignment): Adjust.
14326         (ccp_visit_stmt): Likewise.
14328 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14330         PR tree-optimization/65818
14331         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
14332         evaluated.
14334 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14336         * calls.c (save_fixed_argument_area): Don't check
14337         ARGS_GROW_DOWNWARD with the preprocessor.
14338         (restore_fixed_argument_area): Likewise.
14339         (mem_overlaps_already_clobbered_arg_p): Likewise.
14340         (check_sibcall_argument_overlap): Likewise.
14341         (expand_call): Likewise.
14342         (emit_library_call_value_1): Likewise.
14343         (store_one_arg): Likewise.
14344         * function.c (assign_parms): Likewise.
14345         (locate_and_pad_parm): Likewise.
14346         (pad_to_arg_alignment): Likewise.
14347         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14349 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14351         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
14352         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
14353         * calls.c (save_fixed_argument_area): Don't chekc if
14354         ARGS_GROW_DOWNWARD is defined.
14355         (restore_fixed_argument_area): Likewise.
14356         (mem_overlaps_already_clobbered_arg_p): Likewise.
14357         (check_sibcall_argument_overlap): Likewise.
14358         (expand_call): Likewise.
14359         (emit_library_call_value_1): Likewise.
14360         (store_one_arg): Likewise.
14361         * function.c (assign_parms): Likewise.
14362         (locate_and_pad_parm): Likewise.
14363         (pad_to_arg_alignment): Likewise.
14364         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14366 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14368         * defaults.h (gen_epilogue): New function.
14369         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
14370         defined.
14371         * cfgrtl.c (cfg_layout_finalize): Likewise.
14372         * df-scan.c: Likewise.
14373         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14374         (reposition_prologue_and_epilogue_notes): Likewise.
14375         * reorg.c (find_end_label): Likewise.
14376         * toplev.c: Likewise.
14378 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14380         * bb-reorder.c (HAVE_return): Don't check if its undefined.
14381         * defaults.h (gen_simple_return): New function.
14382         (gen_simple_return): Likewise.
14383         (HAVE_return): Add default definition to false.
14384         (HAVE_simple_return): Likewise.
14385         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
14386         HAVE_return and HAVE_simple_return are defined.
14387         * function.c (gen_return_pattern): Likewise.
14388         (convert_jumps_to_returns): Likewise.
14389         (thread_prologue_and_epilogue_insns): Likewise.
14390         * reorg.c (find_end_label): Likewise.
14391         (dbr_schedule): Likewise.
14392         * shrink-wrap.c: Likewise.
14393         * shrink-wrap.h: Likewise.
14395 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14397         * defaults.h (EPILOGUE_USES): Add default definition of false.
14398         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
14399         * resource.c (init_resource_info): Likewise.
14401 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14403         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
14404         to false.
14405         * dwarf2out.c (field_byte_offset): REmove check if
14406         PCC_BITFIELD_TYPE_MATTERS is defined.
14407         * stor-layout.c (layout_decl): Likewise.
14408         (update_alignment_for_field): Likewise.
14409         (place_field): Likewise.
14411 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14413         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
14414         true.
14415         * regrename.c (check_new_reg_p): Remove check if
14416         HARD_REGNO_RENAME_OK is defined.
14417         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
14419 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14421         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
14422         * cse.c (fold_rtx): Likewise.
14423         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
14424         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
14425         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
14426         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
14427         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
14428         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
14429         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
14430         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
14431         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
14432         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
14433         * Likewise.
14434         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
14435         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
14436         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
14437         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
14438         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
14439         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
14440         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
14441         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
14442         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
14443         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
14444         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
14445         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
14446         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
14447         * doc/tm.texi: Regenerate.
14448         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
14449         either true or false.
14451 2015-04-27  Jeff Law  <law@redhat.com>
14453         PR tree-optimization/65217
14454         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
14455         of them has a single use, make sure it is the LHS of the implied
14456         copy.
14458 2015-04-28  Alan Modra  <amodra@gmail.com>
14460         PR target/65810
14461         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
14462         (offsettable_ok_by_alignment): Use minimum of decl and toc
14463         pointer alignment.  Replace dead code with assertion.
14464         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
14465         case if size exceeds toc pointer alignment.
14466         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
14467         (rs6000_emit_move): Likewise.
14468         * configure.ac: Add linker toc pointer alignment check.
14469         * configure: Regenerate.
14470         * config.in: Regenerate.
14472 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
14474         * config.gcc: Add h8300-*-linux.
14475         * config/h8300/linux.h: New.
14476         * config/h8300/t-linux: New.
14477         * config/h8300/h8300.c (h8300_option_override): Normal mode
14478         is not supported for h8300-*-linux.
14479         (h8300_file_start): Target priority change.
14480         (get_shift_alg): Likewise.
14481         (h8300_shift_need_scratch_p): Likewise.
14482         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14483         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
14485 2015-04-27  Caroline Tice  <cmtice@google.com>
14487         * final.c (final_scan_insn):  Output cold_function_name as function
14488         type.
14489         * varasm.c (cold_function_name):  Make global.
14490         (assemble_start_function):  Re-set cold_function_name.
14491         (assemble_end_function): Output cold partition size.
14492         * varasm.h (cold_function_name):  Declare global.
14494 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
14496         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
14497         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
14498         constraint.
14499         (*movxi_internal_avx512f): Ditto.
14500         (define_split): Check for xmm16+, when splitting scalar float_extend.
14501         (*extendsfdf2_mixed): Use "v" constraint.
14502         (define_split): Check for xmm16+, when splitting scalar float_truncate.
14503         (*truncdfsf_fast_sse): Use "v" constraint.
14504         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
14505         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
14506         (define_peephole2): Check for xmm16+, when converting scalar
14507         float_truncate.
14508         (define_peephole2): Check for xmm16+, when converting scalar
14509         float_extend.
14510         (*fop_<mode>_comm_mixed): Use "v" constraint.
14511         (*fop_<mode>_comm_sse): Ditto.
14512         (*fop_<mode>_1_mixed): Ditto.
14513         (*sqrt<mode>2_sse): Ditto.
14514         (*ieee_s<ieee_maxmin><mode>3): Ditto.
14516 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14518         * combine.c (simplify_if_then_else): Use std::swap instead
14519         of manually swapping.
14520         (known_cond): Likewise.
14521         (simplify_comparison): Likewise.
14523 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
14525         PR target/64579
14526         * config/rs6000/htm.md: Remove all define_expands.
14527         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
14528         UNSPECV_HTM_TABORTWCI): Remove.
14529         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
14530         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
14531         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
14532         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
14533         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
14534         tabortwci_internal): Remove define_insns.
14535         (tabort<wd>c, tabort<wd>ci): New define_insns.
14536         (tabort): Use gpc_reg_operand.
14537         (tcheck): Remove operand.
14538         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
14539         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
14540         expected value.
14541         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
14542         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
14543         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
14544         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
14545         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
14546         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
14547         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
14548         (tcheck): Remove builtin argument.
14549         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
14550         not TARGET_64BIT.
14551         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
14552         tabortdc and tabortdci builtins when not in 64-bit mode.
14553         Modify code to handle the loss of the HTM define_expands.
14554         Emit code to copy the CR register to TARGET.
14555         (htm_init_builtins): Modify code to handle the loss of the HTM
14556         define_expands.
14557         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
14558         (RS6000_BTC_64BIT): Likewise.
14559         (RS6000_BTC_CR): New macro.
14560         * doc/extend.texi: Update documentation for htm builtins.
14562 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14564         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
14565         of manually swapping.
14566         (simplify_associative_operation): Likewise.
14567         (simplify_binary_operation): Likewise.
14568         (simplify_plus_minus): Likewise.
14569         (simplify_relational_operation): Likewise.
14570         (simplify_ternary_operation): Likewise.
14572 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
14574         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
14575         (xs_hi_nonmemory_operand): Remove error.
14576         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
14577         general_operand rather than xs_hi_general_operand.
14579 2015-04-27  Richard Biener  <rguenther@suse.de>
14581         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
14582         (record_equivalences_from_stmt): Valueize rhs.
14583         (record_equality): Canonicalize x and y order via
14584         tree_swap_operands_p.  Do not swap operands for same loop depth.
14586 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
14588         PR target/65296
14589         PR target/65895
14590         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
14591         Add hint how to use own spec file.
14593 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
14595         PR tree-optimization/65875
14596         * tree-vrp.c (update_value_range): If in is_new case setting
14597         old_vr to VR_VARYING, also set new_vr to it.  Remove
14598         old_vr->type == VR_VARYING test.
14599         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
14600         SSA_PROP_INTERESTING if update_value_range returned true,
14601         but new range is VR_VARYING.
14603 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14605         * combine.c (sign_extend_short_imm): New.
14606         (set_nonzero_bits_and_sign_copies): Use above new function for sign
14607         extension of src short immediate.
14608         (reg_nonzero_bits_for_combine): Likewise for tem.
14610 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14612         * stor-layout.c (self_referential_component_ref_p): New predicate.
14613         (copy_self_referential_tree_r): Use it.
14614         (self_referential_size): Punt for simple operations directly involving
14615         self-referential component references.
14616         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
14618 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14620         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
14622 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
14624         * vec.h (vec): Make splice arguments const.  Update definitions
14625         accordingly.
14627 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
14629         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
14630         alternatives.
14632 2015-04-26  Tom de Vries  <tom@codesourcery.com>
14634         PR tree-optimization/65826
14635         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
14637 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
14639         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
14640         (*madd3<mode>): Ditto.
14641         (*msub4<mode>): Ditto.
14642         (*msub3<mode>): Ditto.
14643         (*nmadd4<mode>): Ditto.
14644         (*nmadd3<mode>): Ditto.
14645         (*nmadd4<mode>_fastmath): Ditto.
14646         (*nmadd3<mode>_fastmath): Ditto.
14647         (*nmsub4<mode>): Ditto.
14648         (*nmsub3<mode>): Ditto.
14649         (*nmsub4<mode>_fastmath): Ditto.
14650         (*nmsub3<mode>_fastmath): Ditto.
14652 2015-04-24  Jason Merrill  <jason@redhat.com>
14654         PR c++/50800
14655         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
14656         down when building TYPE_CANONICAL.
14657         (build_pointer_type_for_mode): Likewise.
14659 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
14661         * genrecog.c (validate_pattern): Check matching constraint refers
14662         to a lower numbered operand.
14664 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14666         PR target/65849
14667         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
14668         save to independent variables use the Save attribute.  This will
14669         allow these options to be modified with the #pragma/attribute
14670         target support.
14671         (-mallow-movmisalign): Likewise.
14672         (-mallow-df-permute): Likewise.
14673         (-msched-groups): Likewise.
14674         (-malways-hint): Likewise.
14675         (-malign-branch-targets): Likewise.
14676         (-mvectorize-builtins): Likewise.
14677         (-msave-toc-indirect): Likewise.
14679         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
14680         can be set via the #pragma/attribute target support.
14681         (rs6000_opt_vars): Likewise.
14682         (rs6000_inner_target_options): If VSX was set, also set
14683         -mno-avoid-indexed-addresses.
14685 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14687         * config/arm/iterators.md (shiftable_ops): Rename to...
14688         (SHIFTABLE_OPS): ... This.  Update use in comments.
14689         (ior_xor): Rename to...
14690         (IOR_XOR): ... This.
14691         (vqh_ops): Rename to...
14692         (VQH_OPS): ... This.
14693         (vqhs_ops): Rename to...
14694         (VQHS_OPS): ... This.
14695         (rshifts): Rename to...
14696         (RSHIFTS): ... This.
14697         (returns): Rename to...
14698         (RETURNS): ... This.
14699         * config/arm/arm.md: Update uses of the above.
14700         * config/arm/neon.md: Likewise.
14702 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14704         * config.host (case ${host}): Add aarch64*-*-linux case.
14705         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
14706         fields to all the cores.
14707         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
14708         Add MCPU_MTUNE_NATIVE_SPECS.
14709         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
14710         field to all extensions.
14711         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
14712         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
14713         Adjust definition of AARCH64_OPT_EXTENSION.
14714         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
14715         (MCPU_MTUNE_NATIVE_SPECS): Define.
14716         * config/aarch64/driver-aarch64.c: New file.
14717         * config/aarch64/x-arch64: New file.
14718         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
14719         -mtune and -march.
14721 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
14722             Wei Mi  <wmi@google.com>
14724         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
14725         * config/i386/i386.c (extract_base_offset_in_addr): New function.
14726         (ix86_operands_ok_for_move_multiple): Ditto.
14727         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
14728         (movlpd/movhpd to movupd peephole2): Ditto.
14730 2015-04-24  Marek Polacek  <polacek@redhat.com>
14732         PR c/61534
14733         * input.h (from_macro_expansion_at): Define.
14735         PR c/63357
14736         * doc/invoke.texi: Update description of -Wlogical-op.
14738 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14740         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
14741         ternary operator in fprintf and harmonize spacing.
14743 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
14745         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
14746         Mark operand1 commutative.
14748 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
14750         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
14751         input operands in memory.
14752         (*vec_concatv2si_sse4_1): Ditto.
14753         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
14754         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
14755         register_operand.
14756         (vec_extract_hi_v32hi): Ditto.
14757         (vec_extract_hi_v64hi): Ditto.
14758         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
14760 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14761             Steven Bosscher <steven@gcc.gnu.org>
14763         PR rtl-optimization/34503
14764         * cprop.c (cprop_reg_p): New.
14765         (hash_scan_set): Use above function to check if register can be
14766         propagated.
14767         (find_avail_set): Return up to two sets, one whose source is a
14768         register and one whose source is a constant.  Sets are returned in an
14769         array passed as parameter rather than as a return value.
14770         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
14771         sets returned by find_avail_set, starting with the one whose source is
14772         a constant. Use cprop_reg_p to check if register can be propagated.
14773         (do_local_cprop): Use cprop_reg_p to check if register can be
14774         propagated.
14775         (implicit_set_cond_p): Likewise.
14777 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14779         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
14780         (sem_function::equals): IGNORED_NODES parameter is now unused;
14781         update call of equals_private.
14782         (sem_function::equals_private): Do not call equals_wpa; skip
14783         gimple body matching if there is no body.
14784         (sem_function::init): Add logic to hash tthunk info.
14785         (sem_function::parse): Also parse thunks.
14786         * ipa-icf.h (equals_private): Update declaration.
14788 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14790         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
14791         asterisk from name so this can be generated directly.
14792         (*altivec_stvx_<mode>_internal): Likewise.
14793         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
14794         that this is never called during or after reload/lra.
14795         (rs6000_frame_related): Remove split_reg
14796         argument and logic that references it.
14797         (emit_frame_save): Remove last parameter from call to
14798         rs6000_frame_related.
14799         (rs6000_emit_prologue): Remove last parameter from eight calls to
14800         rs6000_frame_related.  Force generation of stvx instruction for
14801         Altivec register saves.  Remove split_reg handling, which is no
14802         longer needed.
14803         (rs6000_emit_epilogue):  Force generation of lvx instruction for
14804         Altivec register restores.
14806 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14808         * config/rs6000/rs6000.opt (mcrypto): Change option description to
14809         match category changes in ISA 2.07B.
14811 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14813         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
14814         iterators.
14815         (cmp_op, cmp_type): New code attributes.
14816         (NEON_VCMP, NEON_VACMP): New int iterators.
14817         (cmp_op_unsp): New int attribute.
14818         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
14819         (neon_vceq<mode>): Delete.
14820         (neon_vc<cmp_op><mode>_insn): New pattern.
14821         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
14822         (neon_vcgeu<mode>): Delete.
14823         (neon_vcle<mode>): Likewise.
14824         (neon_vclt<mode>: Likewise.
14825         (neon_vcage<mode>): Likewise.
14826         (neon_vcagt<mode>): Likewise.
14827         (neon_vca<cmp_op><mode>): New define_expand.
14828         (neon_vca<cmp_op><mode>_insn): New pattern.
14829         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
14831 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14833         * tree.h (attribute_value_equal): Declare.
14834         * tree.c (attribute_value_equal): Export.
14836 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14838         * ipa-icf.c (sem_item::compare_attributes): New function.
14839         (sem_item::compare_referenced_symbol_properties): Compare variable
14840         attributes.
14841         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
14842         (sem_function::param_used_p): New function.
14843         (sem_function::equals_wpa): Fix attribute comparsion; match
14844         parameter type codes; do not compare paremter flags when
14845         they are not used; compare edge flags; compare indirect calls.
14846         (sem_item::update_hash_by_addr_refs): Hash reference type.
14847         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
14848         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
14849         reference use type.
14850         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
14851         * ipa-icf.h (compare_attributes, param_used_p): Declare.
14853 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
14855         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
14856         cleanup.
14857         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
14858         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
14859         (sem_item::compare_referenced_symbol_properties): New.
14860         (sem_item::hash_referenced_symbol_properties): New.
14861         (sem_item::compare_cgraph_references): Rename to ...
14862         (sem_item::compare_symbol_references): ... this one; use
14863         compare_referenced_symbol_properties.
14864         (sem_function::equals_wpa): Do not compare
14865         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
14866         DECL_IS_OPERATOR_NEW; compare pointer sizes.
14867         (sem_item::update_hash_by_addr_refs): Call
14868         hash_referenced_symbol_properties.
14869         (sem_item::update_hash_by_local_refs): Cleanup.
14870         (sem_function::merge): Do not mix up symbol properties.
14871         (sem_variable::equals_wpa): Use compare_symbol_references.
14872         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
14873         (sem_item::hash_referenced_symbol_properties): New.
14874         (sem_item::compare_symbol_references): New.
14875         (sem_item::compare_cgraph_references): Remove.
14877 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
14879         PR target/26702
14880         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
14881         Emit size of local.
14883 2015-04-23  Nick Clifton  <nickc@redhat.com>
14885         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
14886         ATTRIBUTE_UNUSED to x parameter.
14887         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
14889 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14891         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
14892         TARGET_CRYPTO to TARGET_P8_VECTOR>
14893         (crypto_vpermxor_<mode>): Likewise.
14894         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
14895         (BU_CRYPTO_3A): Likewise.
14896         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
14897         (BU_CRYPTO_OVERLOAD_3A): New #define.
14898         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
14899         (VPMSUMH): Likewise.
14900         (VPMSUMW): Likewise.
14901         (VPMSUMD): Likewise.
14902         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
14903         (VPERMXOR_V4SI): Likewise.
14904         (VPERMXOR_V8HI): Likewise.
14905         (VPERMXOR_V16QI): Likewise.
14906         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
14907         BU_CRYPTO_OVERLOAD_2A.
14908         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
14909         BU_CRYPTO_OVERLOAD_3A.
14910         * config/rs6000/rs6000.opt (mcrypto): Change description of
14911         option.
14913 2015-04-23  Richard Biener  <rguenther@suse.de>
14915         * passes.def: Remove copy propagation passes run directly after CCP.
14916         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
14917         SSA names.
14918         (ccp_visit_phi_node): Rework to handle first executable edge
14919         specially.
14921 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
14923         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14924         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
14925         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
14926         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
14927         (thumb_legimitimize_reload_address): Remove.
14928         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
14929         Remove.
14930         (thumb_legimitimize_reload_address): Remove.
14932 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14934         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
14936 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14938         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
14939         MAX_LDM_STM_OPS.
14940         (store_multiple): Likewise.
14942 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14944         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
14945         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
14946         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
14947         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
14948         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
14949         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
14950         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
14951         Specify issue_rate value.
14952         (arm_issue_rate): Look up issue rate from tuning structs. Remove
14953         large switch statement.
14954         (arm_marvell_pj4_tune): New struct.
14955         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
14956         struct.
14958 2015-04-23  Richard Biener  <rguenther@suse.de>
14960         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
14961         (vect_find_last_store_in_slp_instance): Rename to ...
14962         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
14963         (vect_analyze_slp_cost_1): Use vector_load for constant defs
14964         and vec_construct for external defs when estimating prologue cost.
14965         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
14966         Compute costs here only when vectorizing loops.
14967         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
14968         have been determined.
14969         (vect_schedule_slp_instance): Simplify vectorized code placement
14970         and prepare for in-BB external defs.
14971         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
14972         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
14973         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
14974         guard.
14975         (vect_model_load_cost): Likewise.
14976         (vectorizable_store): Instead add it here.
14977         (vectorizable_load): Likewise.
14978         (vect_is_simple_use): Dump def type textually.
14980 2015-04-23  Richard Biener  <rguenther@suse.de>
14982         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
14983         * cfgloop.c (verify_loop_structure): Verify the root loop node.
14984         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
14985         instead of get_eh_region_from_lp_number.
14986         * loop-init.c (fix_loop_structure): If we removed a loop, reset
14987         the SCEV cache.
14989 2015-04-23  Anton Blanchard  <anton@samba.org>
14991         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
14992         need for -mprofile-kernel to save LR to stack.
14994 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14996         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
14997         adjustments.
14998         (insn_is_swappable_p): Return 1 for a convert from double to
14999         single precision when all of its uses are splats of BE element
15000         zero.
15002 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15004         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
15006 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15008         PR target/65456
15009         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
15010         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
15011         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
15012         option.
15013         (rs6000_builtin_mask_for_load): Return 0 for targets with
15014         efficient unaligned VSX accesses so that the vectorizer will use
15015         direct unaligned loads.
15016         (rs6000_builtin_support_vector_misalignment): Always return true
15017         for targets with efficient unaligned VSX accesses.
15018         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
15019         stores on targets with efficient unaligned VSX accesses is almost
15020         always the same as the cost of an aligned load or store, so model
15021         it that way.
15022         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
15023         unaligned vectors if we have efficient unaligned VSX accesses.
15024         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
15025         undocumented option.
15027 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15029         Revert:
15030         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
15032         * config.gcc (LIBC_MUSL): New tm_defines macro.
15033         * config/linux.h (OPTION_MUSL): Define.
15034         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15035         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15036         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15038         * config/linux.opt (mmusl): New option.
15039         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15040         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15042         * configure: Regenerate.
15044 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
15046         * config.gcc (LIBC_MUSL): New tm_defines macro.
15047         * config/linux.h (OPTION_MUSL): Define.
15048         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15049         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15050         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15052         * config/linux.opt (mmusl): New option.
15053         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15054         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15056         * configure: Regenerate.
15058 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
15060         * doc/invoke.texi (-fsanitize-sections): Update description.
15061         * asan.c (set_sanitized_sections): Parse incoming arg.
15062         (section_sanitized_p): Support wildcards.
15064 2015-04-22  Tom de Vries  <tom@codesourcery.com>
15066         PR tree-optimization/65823
15067         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
15068         equality between ap_copy and ap.
15070 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15072         PR target/47098
15073         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
15075 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15077         PR target/47122
15078         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
15080 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15082         PR target/55144
15083         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
15084         remove already contained t-files.
15086 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15088         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
15089         Remove unneeded forward declarations.
15090         (suitable_for_tail_call_opt_p): Commentary typo fix.
15092 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15094         * varasm.c (emit_bss): Remove redundant guard.
15096 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15098         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
15100 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15102         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
15104 2015-04-22  Hale Wang  <hale.wang@arm.com>
15105             Terry Guo  <terry.guo@arm.com>
15107         PR rtl-optimization/64818
15108         * combine.c (can_combine_p): Don't combine user-specified
15109         register if it is in an asm input.
15111 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
15113         PR ipa/65076
15114         * passes.def (early_optimizations): Add pass_dse.
15116 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15118         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
15119         * reorg.c (redundant_insn): Remove ifdef
15120         INSN_REFERENCES_ARE_DELAYED.
15121         * resource.c (mark_referenced_resources): Likewise.
15123 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15125         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
15126         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
15127         * resource.c (mark_set_resources): Likewise.
15129 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15131         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
15132         * cfgcleanup.c (flow_find_cross_jump): Likewise.
15133         (flow_find_head_matching_sequence): Likewise.
15134         (try_head_merge_bb): Likewise.
15135         * combine.c (can_combine_p): Likewise.
15136         (try_combine): Likewise.
15137         (distribute_notes): Likewise.
15138         * df-problems.c (can_move_insns_across): Likewise.
15139         * final.c (final): Likewise.
15140         * gcse.c (insert_insn_end_basic_block): Likewise.
15141         * ira.c (find_moveable_pseudos): Likewise.
15142         * reorg.c (try_merge_delay_insns): Likewise.
15143         (fill_simple_delay_slots): Likewise.
15144         (fill_slots_from_thread): Likewise.
15145         * sched-deps.c (sched_analyze_2): Likewise.
15147 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15149         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
15150         PIC_OFFSET_TABLE_REGNUM.
15152 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15154         * alias.c (init_alias_target): Remove ifdef
15155         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
15156         * df-scan.c (df_insn_refs_collect): Likewise.
15157         (df_get_regular_block_artificial_uses): Likewise.
15158         (df_get_eh_block_artificial_uses): Likewise.
15159         (df_get_entry_block_def_set): Likewise.
15160         (df_get_exit_block_use_set): Likewise.
15161         * emit-rtl.c (gen_rtx_REG): Likewise.
15162         * ira.c (ira_setup_eliminable_regset): Likewise.
15163         * reginfo.c (init_reg_sets_1): Likewise.
15164         * regrename.c (rename_chains): Likewise.
15165         * reload1.c (reload): Likewise.
15166         (eliminate_regs_in_insn): Likewise.
15167         * resource.c (mark_referenced_resources): Likewise.
15168         (init_resource_info): Likewise.
15170 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15172         * defaults.h (MASK_RETURN_ADDR): New definition.
15173         * except.c (expand_builtin_extract_return_addr): Remove ifdef
15174         MASK_RETURN_ADDR.
15176 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15178         * defaults.h (RETURN_ADDR_OFFSET): New definition.
15179         * except.c (expand_builtin_extract_return_addr): Remove ifdef
15180         RETURN_ADDR_OFFSET.
15181         (expand_builtin_frob_return_addr): Likewise.
15183 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15185         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
15186         (try_redirect_by_replacing_jump): Likewise.
15187         (rtl_tidy_fallthru_edge): Likewise.
15188         * combine.c (insn_a_feeds_b): Likewise.
15189         (find_split_point): Likewise.
15190         (simplify_set): Likewise.
15191         * cprop.c (cprop_jump): Likewise.
15192         * cse.c (cse_extended_basic_block): Likewise.
15193         * df-problems.c (can_move_insns_across): Likewise.
15194         * function.c (emit_use_return_register_into_block): Likewise.
15195         * haifa-sched.c (sched_init): Likewise.
15196         * ira.c (find_moveable_pseudos): Likewise.
15197         * loop-invariant.c (find_invariant_insn): Likewise.
15198         * lra-constraints.c (curr_insn_transform): Likewise.
15199         * postreload.c (reload_combine_recognize_const_pattern):
15200         * Likewise.
15201         * reload.c (find_reloads): Likewise.
15202         * reorg.c (delete_scheduled_jump): Likewise.
15203         (steal_delay_list_from_target): Likewise.
15204         (steal_delay_list_from_fallthrough): Likewise.
15205         (redundant_insn): Likewise.
15206         (fill_simple_delay_slots): Likewise.
15207         (fill_slots_from_thread): Likewise.
15208         (delete_computation): Likewise.
15209         * sched-rgn.c (add_branch_dependences): Likewise.
15211 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15213         * genconfig.c (main): Always define HAVE_cc0.
15214         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
15215         HAVE_cc0.
15216         * cfgcleanup.c (flow_find_cross_jump): Likewise.
15217         (flow_find_head_matching_sequence): Likewise.
15218         (try_head_merge_bb): Likewise.
15219         * cfgrtl.c (rtl_merge_blocks): Likewise.
15220         (try_redirect_by_replacing_jump): Likewise.
15221         (rtl_tidy_fallthru_edge): Likewise.
15222         * combine.c (do_SUBST_MODE): Likewise.
15223         (insn_a_feeds_b): Likewise.
15224         (combine_instructions): Likewise.
15225         (can_combine_p): Likewise.
15226         (try_combine): Likewise.
15227         (find_split_point): Likewise.
15228         (subst): Likewise.
15229         (simplify_set): Likewise.
15230         (distribute_notes): Likewise.
15231         * cprop.c (cprop_jump): Likewise.
15232         * cse.c (cse_extended_basic_block): Likewise.
15233         * df-problems.c (can_move_insns_across): Likewise.
15234         * final.c (final): Likewise.
15235         (final_scan_insn): Likewise.
15236         * function.c (emit_use_return_register_into_block): Likewise.
15237         * gcse.c (insert_insn_end_basic_block): Likewise.
15238         * haifa-sched.c (sched_init): Likewise.
15239         * ira.c (find_moveable_pseudos): Likewise.
15240         * loop-invariant.c (find_invariant_insn): Likewise.
15241         * lra-constraints.c (curr_insn_transform): Likewise.
15242         * optabs.c (prepare_cmp_insn): Likewise.
15243         * postreload.c (reload_combine_recognize_const_pattern):
15244         * Likewise.
15245         * reload.c (find_reloads): Likewise.
15246         (find_reloads_address_1): Likewise.
15247         * reorg.c (delete_scheduled_jump): Likewise.
15248         (steal_delay_list_from_target): Likewise.
15249         (steal_delay_list_from_fallthrough): Likewise.
15250         (try_merge_delay_insns): Likewise.
15251         (redundant_insn): Likewise.
15252         (fill_simple_delay_slots): Likewise.
15253         (fill_slots_from_thread): Likewise.
15254         (delete_computation): Likewise.
15255         (relax_delay_slots): Likewise.
15256         * sched-deps.c (sched_analyze_2): Likewise.
15257         * sched-rgn.c (add_branch_dependences): Likewise.
15259 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15261         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
15262         that is trivially ded on non cc0 targets.
15263         (simplify_set): Likewise.
15264         (mark_used_regs_combine): Likewise.
15265         * cse.c (new_basic_block): Likewise.
15266         (fold_rtx): Likewise.
15267         (cse_insn): Likewise.
15268         (cse_extended_basic_block): Likewise.
15269         (set_live_p): Likewise.
15270         * rtlanal.c (canonicalize_condition): Likewise.
15271         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15273 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15275         * conditions.h: Define macros even if HAVE_cc0 is undefined.
15276         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
15277         * final.c: Likewise.
15278         * jump.c: Likewise.
15279         * recog.c: Likewise.
15280         * recog.h: Declare functions even when HAVE_cc0 is undefined.
15281         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
15283 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15285         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
15286         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
15287         * builtins.c (expand_builtin): Remove check if
15288         EH_RETURN_DATA_REGNO is defined.
15289         * df-scan.c (df_bb_refs_collect): Likewise.
15290         (df_get_exit_block_use_set): Likewise.
15291         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
15292         * ira-lives.c (process_bb_node_lives): Likewise.
15293         * lra-lives.c (process_bb_lives): Likewise.
15295 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
15297         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
15298         FIRST_PSEUDO_REG): New.
15299         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
15300         (ARG_POINTER_REGNUM): Define to ARGP_REG.
15301         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
15302         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
15303         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
15304         (FIRST_INT_REG): New.
15305         (LAST_INT_REG): New.
15306         (FIRST_*_REG): Define using *_REG.
15307         (LAST_*_REG): Ditto.
15308         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
15309         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
15310         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
15312 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15314         * expmed.c: (synth_mult): Only assume overlapping
15315         shift with previous steps in alg_sub_t_m2 case.
15317 2015-04-21  Richard Biener  <rguenther@suse.de>
15319         PR tree-optimization/65650
15320         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
15321         transitions involving copies.
15322         (set_lattice_value): Adjust for copy lattice state.
15323         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
15324         if that doesn't dominate the merge point.
15325         (bit_value_unop): Adjust what we treat as varying mask.
15326         (bit_value_binop): Likewise.
15327         (bit_value_assume_aligned): Likewise.
15328         (evaluate_stmt): When we simplified to a SSA name record a copy
15329         instead of dropping to varying.
15330         (visit_assignment): Simplify.
15332         * gimple-match.h (gimple_simplify): Add another callback.
15333         * gimple-fold.c (fold_stmt_1): Adjust caller.
15334         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
15335         for the 2nd callback.
15336         * gimple-match-head.c (gimple_simplify): Add a callback that is
15337         used to valueize the stmt operands and use it that way.
15339 2015-04-21  Richard Biener  <rguenther@suse.de>
15341         PR tree-optimization/65788
15342         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
15344 2015-04-21  Richard Biener  <rguenther@suse.de>
15346         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
15347         vec_construct cost by vec_stmt_cost.
15349 2015-04-21  Richard Biener  <rguenther@suse.de>
15351         * cfghooks.h (create_basic_block): Replace with two overloads
15352         for RTL and GIMPLE.
15353         (split_block): Likewise.
15354         * cfghooks.c (split_block): Rename to ...
15355         (split_block_1): ... this.
15356         (split_block): Add two type-safe overloads for RTL and GIMPLE.
15357         (split_block_after_labels): Call split_block_1.
15358         (create_basic_block): Rename to ...
15359         (create_basic_block_1): ... this.
15360         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
15361         (create_empty_bb): Call create_basic_block_1.
15362         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
15363         split_block_after_labels.
15364         * omp-low.c (expand_parallel_call): Likewise.
15365         (expand_omp_target): Likewise.
15366         (simd_clone_adjust): Likewise.
15367         * tree-chkp.c (chkp_get_entry_block): Likewise.
15368         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
15369         create_basic_block overload.
15370         (cgraph_node::expand_thunk): Likewise.
15371         * tree-cfg.c (make_blocks): Likewise.
15372         (handle_abnormal_edges): Likewise.
15373         * tree-inline.c (copy_bb): Likewise.
15375 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15377         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
15378         New pattern.
15379         (*xor_one_cmplsidi3_ze): Likewise.
15381 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15383         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
15384         use df_remove_problem rather than manually removing problems, leaving
15385         holes in df->problems_in_order[].
15387 2015-04-21  Tom de Vries  <tom@codesourcery.com>
15389         PR tree-optimization/65802
15390         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
15392 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15394         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
15395         Increase to 128.
15396         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
15397         at '.'.  Assert that there's enough space for everything.
15399 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
15401         PR tree-optimization/64950
15402         Revert:
15403         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
15405         PR target/41089
15406         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
15407         as volatile.
15409 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
15411         PR rtl-optimization/64916
15412         * cfgcleanup.c (values_equal_p): New function.
15413         (can_replace_by): Use it.
15415 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
15417         PR c++/65801
15418         * doc/invoke.texi ([-Wnarrowing]): Update.
15420 2015-04-20  Jeff Law  <law@redhat.com>
15422         PR tree-optimization/65658
15423         * tree-ssa-threadupdate.c (redirection_block_p): Remove
15424         redundant test for GIMPLE_ASSIGN in last change.
15426 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
15428         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
15429         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
15430         (legitimize_tls_address): Ditto.
15431         (ix86_expand_move): Ditto.
15432         (ix86_expand_binary_operator): Remove reload_in_progress checks.
15433         (ix86_expand_unary_operator): Ditto.
15434         * config/i386/predicates.md (index_register_operand): Ditto.
15436 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
15438         * reorg.c (try_merge_delay_insns): Improve correctness checking
15439         for targets with multiple delay slots.
15441 2015-04-20  Jeff Law  <law@redhat.com>
15443         PR tree-optimization/65658
15444         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
15445         statements too.
15447 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
15449         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
15450         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
15451         Delete.
15453 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
15455         PR debug/65807
15456         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
15458 2015-04-20  Richard Biener  <rguenther@suse.de>
15460         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
15461         * gimple-fold.c (gimple_build_valueize): New function.
15462         (gimple_build): Always use gimple_build_valueize as valueize hook.
15464 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
15466         PR target/64134
15467         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
15468         and overwrite variable parts if <= 1/2 the elements are variable.
15470 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
15472         PR rtl-optimization/65805
15473         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
15474         Don't use difference of offset and previous offset if
15475         update_sp_offset is non-zero.
15476         (eliminate_regs_in_insn): Ditto.
15477         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
15478         lra_eliminate_regs_1 call.
15479         * lra-constraints.c (get_equiv_with_elimination): Ditto.
15481 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
15483         * hash-table.h: Remove version of hash_table that stored value_type *.
15484         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
15485         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
15486         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
15487         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
15488         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
15489         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
15490         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15491         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
15492         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
15493         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
15494         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
15495         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
15496         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
15497         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15498         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
15499         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
15501 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15502             Jakub Jelinek  <jakub@redhat.com>
15504         PR target/65787
15505         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
15506         subsequent SH_NONE operand does not overwrite an existing *special
15507         value.
15508         (adjust_extract): Handle case where a vec_extract operation is
15509         wrapped in a PARALLEL.
15511 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15513         PR target/65780
15514         * config/i386/i386.c (ix86_binds_local_p): Define only if
15515         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
15517 2015-04-17  Jeff Law  <law@redhat.com>
15519         PR tree-optimization/47679
15520         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
15521         * tree-ssa-scopedtables.c: New file.
15522         * tree-ssa-scopedtables.h: New file.
15523         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
15524         (const_and_copies): Change name/type.
15525         (record_const_or_copy): Move into tree-ssa-scopedtables.c
15526         (record_const_or_copy_1): Similarly.
15527         (restore_vars_to_original_value): Similarly.
15528         (pass_dominator::execute): Create and destroy const_and_copies table.
15529         (thread_across_edge): Update passing of const_and_copies.
15530         (record_temporary_equivalence): Use method calls rather than
15531         manipulating const_and_copies directly.
15532         (record_equality, cprop_into_successor_phis): Similarly.
15533         (dom_opt_dom_walker::before_dom_children): Similarly.
15534         (dom_opt_dom_walker::after_dom_children): Similarly.
15535         (eliminate_redundant_computations): Similarly.
15536         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
15537         (record_temporary_equivalence): Likewise.
15538         (invalidate_equivalences): Likewise.
15539         (record_temporary_equivalences_from_phis): Update due to type
15540         change of const_and_copies.  Use method calls rather than
15541         manipulating the stack directly.
15542         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
15543         (thread_through_normal_block, thread_across_edge): Likewise.
15544         (thread_across_edge): Likewise.
15545         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15546         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
15547         of equiv_stack.
15548         (identify_jump_threads): Update due to type change of equiv_stack.
15549         (finalize_jump_threads): Delete the equiv_stack when complete.
15551 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
15553         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15554         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
15555         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
15557 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
15559         PR target/65535
15560         * config.gcc: Exit with a comment when we do not have a major version
15561         number for the FreeBSD target.
15563 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
15565         PR target/65689
15566         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
15567         maybe_allows_mem bitfields.
15568         (maybe_allows_none_start, maybe_allows_none_end,
15569         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
15570         maybe_allows_mem_end): New variables.
15571         (compute_maybe_allows): New function.
15572         (add_constraint): Use it to initialize maybe_allows_reg and
15573         maybe_allows_mem fields.
15574         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
15575         is_address constraints such that those that allow neither mem nor
15576         reg come first, then those that only allow reg but not mem, then
15577         those that only allow mem but not reg, then the rest.
15578         (write_allows_reg_mem_function): New function.
15579         (write_tm_preds_h): Call it.
15580         * stmt.c (parse_output_constraint, parse_input_constraint): Use
15581         the generated insn_extra_constraint_allows_reg_mem function
15582         instead of always setting *allows_reg = true; *allows_mem = true;
15583         for unknown extra constraints.
15585 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15587         PR target/65780
15588         * output.h (default_binds_local_p_3): New.
15589         * varasm.c (default_binds_local_p_3): Make it public.  Take an
15590         argument to indicate if common symbol may be local.  If common
15591         symbol may be local, treat non-external variable as defined
15592         locally.
15593         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
15594         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
15595         * config/i386/i386.c (ix86_binds_local_p): New.
15596         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
15597         ix86_binds_local_p.
15599 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
15601         PR debug/65771
15602         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
15603         trying mem_loc_descriptor on XEXP (rtl, 0).
15605 2015-04-17  Martin Liska  <mliska@suse.cz>
15607         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15608         Release symbol_compare_collection.
15609         * ipa-reference.c: Add TODO that a vector should be released.
15611 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
15613         PR target/65296
15614         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
15615         to new AVR-LibC file layout (bug #44574).
15616         (*avrlibc_devicelib): Same.
15617         * config/avr/avr-mcus.def: Adjust comments.
15618         * config/avr/avr.opt (nodevicelib): Adjust help.
15620 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
15622         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
15624 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
15626         PR c++/64527
15627         * gimplify.c (gimplify_init_constructor): Always emit a
15628         side-effecting constructor.
15630 2015-04-17  Tom de Vries  <tom@codesourcery.com>
15632         PR tree-optimization/64950
15633         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
15634         in cfun->curr_properties.
15635         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
15636         if we generate an IFN_VA_ARG.
15637         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
15638         function if PROP_gimple_lva is not set in src function.
15640 2015-04-17  Tom de Vries  <tom@codesourcery.com>
15641             Michael Matz  <matz@suse.de>
15643         PR tree-optimization/64950
15644         * gimple-iterator.c (update_modified_stmts): Remove static.
15645         * gimple-iterator.h (update_modified_stmts): Declare.
15646         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
15647         (gimplify_va_arg_internal): New function.
15648         (gimplify_va_arg_expr): Use IFN_VA_ARG.
15649         * gimplify.h (gimplify_va_arg_internal): Declare.
15650         * internal-fn.c (expand_VA_ARG): New unreachable function.
15651         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
15652         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
15653         (expand_ifn_va_arg): New function.
15654         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
15655         (pass_stdarg::execute): Call expand_ifn_va_arg.
15656         (pass_data_lower_vaarg): New pass_data.
15657         (pass_lower_vaarg): New gimple_opt_pass.
15658         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
15659         (make_pass_lower_vaarg): New function.
15660         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
15661         properties_required field.
15662         * passes.def (all_passes): Add pass_lower_vaarg.
15663         * tree-pass.h (PROP_gimple_lva): Add define.
15664         (make_pass_lower_vaarg): Declare.
15666 2015-04-17  Tom de Vries  <tom@codesourcery.com>
15668         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
15669         * calls.c (call_expr_flags): Same.
15671 2015-04-17  Tom de Vries  <tom@codesourcery.com>
15673         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
15674         (pass_stdarg::execute): ... here.
15676 2015-04-17  Tom de Vries  <tom@codesourcery.com>
15677             Michael Matz  <matz@suse.de>
15679         * tree-cfg.c (make_blocks_1): Factor out of ...
15680         (make_blocks): ... here.
15681         (make_edges_bb): Factor out of ...
15682         (make_edges): ... here.
15683         (gimple_find_sub_bbs): New function.
15684         * tree-cfg.h (gimple_find_sub_bbs): Declare.
15686 2015-04-17  Tom de Vries  <tom@codesourcery.com>
15688         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
15690 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
15692         * asan.c (set_sanitized_sections): New function.
15693         (section_sanitized_p): Ditto.
15694         (asan_protect_global): Optionally sanitize user-defined
15695         sections.
15696         * asan.h (set_sanitized_sections): Declare new function.
15697         * common.opt (fsanitize-sections): New option.
15698         * doc/invoke.texi (-fsanitize-sections): Document new option.
15699         * opts-global.c (handle_common_deferred_options): Handle new
15700         option.
15702 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
15704         PR debug/65771
15705         * dwarf2out.c (loc_list_from_tree): Return NULL
15706         for DEBUG_EXPR_DECL.
15708 2015-04-17  Christian Bruel  <christian.bruel@st.com>
15710         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
15711         same attributes.
15713 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
15715         * ira-color.c (setup_left_conflict_sizes_p): Do not process
15716         node itself when computing left conflict subnode size.
15718 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
15720         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
15721         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
15722         *fop_<mode>_1_sse using enabled attribute.  Use
15723         register_mixssei387nonimm_operand operand 1 predicate. Change
15724         alternative 3 constraints from "x" to "v".
15726 2015-04-16  Richard Biener  <rguenther@suse.de>
15728         PR tree-optimization/65774
15729         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
15730         bit-value tracking on.
15732 2015-04-16  Richard Biener  <rguenther@suse.de>
15734         PR tree-optimization/64277
15735         * tree-vrp.c (check_array_ref): Fix anti-range handling,
15736         simplify upper bound handling.
15737         (search_for_addr_array): Simplify.
15738         (check_array_bounds): Handle ADDR_EXPRs here.
15739         (check_all_array_refs): Simplify.
15741 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
15743         * config/i386/i386.c (print_reg): Rewrite function.
15745 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15747         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
15748         Invert the condition.
15750 2015-04-16  Renlin Li  <renlin.li@arm.com>
15752         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
15753         simplifications for UNSIGNED_FLOAT.
15755 2015-04-16  Nick Clifton  <nickc@redhat.com>
15757         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
15758         MUL_UNINIT.
15759         (enum rl78_cpu_type): New.
15760         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
15761         (umulhi3_shift_virt): Remove m constraint from operand 1.
15762         (umulqihi3_virt): Likewise.
15763         * config/rl78/rl78.c (rl78_option_override): Add code to process
15764         -mcpu and -mmul options.
15765         (rl78_alloc_physical_registers): Add code to handle divhi and
15766         divsi valloc attributes.
15767         (set_origin): Likewise.
15768         * config/rl78/rl78.h (RL78_MUL_G14): Define.
15769         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
15770         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
15771         __RL78_Gxx__.
15772         (ASM_SPEC): Pass -mcpu on to assembler.
15773         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
15774         (mulqi3_rl78): Likewise.
15775         (mulhi3_g13): Likewise.
15776         (mulhi3): Generate the G13 or G14 versions of the insn directly.
15777         (mulsi3): Likewise.
15778         (mulhi3_g14): Add clobbers of AX and BC.
15779         (mulsi3_g14): Likewise.
15780         (mulsi3_g13): Likewise.
15781         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
15782         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
15783         * config/rl78/rl78.opt (mmul): Initialise value to
15784         RL78_MUL_UNINIT.
15785         (mcpu): New option.
15786         (m13, m14, mrl78): New option aliases.
15787         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
15788         (MULTILIB_DIRNAMES): Add g13 and g14.
15789         * doc/invoke.texi: Document -mcpu and -mmul options.
15791 2015-04-16  Richard Biener  <rguenther@suse.de>
15793         * tree-ssa-ccp.c (likely_value): See if we have operands that
15794         are marked as never simulate again and return CONSTANT in this
15795         case.
15796         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
15797         not have any operands that will be simulated again as
15798         not being simulated again.
15800 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
15802         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
15803         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
15804         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
15805         attribute.
15806         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
15807         enabled attribute.
15808         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
15809         *float<SWI48:mode><MODEF:mode>2_sse.
15810         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
15811         enabled attribute.
15812         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
15813         enabled attribute.
15815 2015-04-15  Tom de Vries  <tom@codesourcery.com>
15817         PR other/65487
15818         * function.c (push_dummy_function): New function.
15819         (init_dummy_function_start): Use push_dummy_function.
15820         (pop_dummy_function): New function.  Factored out of ...
15821         (expand_dummy_function_end): ... here.
15822         * function.h (push_dummy_function, pop_dummy_function): Declare.
15823         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
15824         pop_dummy_function.
15825         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
15827 2015-04-15  Jeff Law  <law@redhat.com>
15829         PR tree-optimization/47679
15830         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
15831         need for forward declaration in upcoming changes.
15832         (record_conditions, record_edge_info): Likewise.
15834         PR rtl-optimization/42522
15835         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
15836         SIGN_EXTRACT as a whole object rather than simplifying
15837         its operand.
15839 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
15841         PR ipa/65765
15842         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
15843         and GIMPLE_PREDICT use break instead of return true. For
15844         GIMPLE_EH_DISPATCH, compare dispatch region.
15846 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
15848         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
15849         details about the implementation.  Make clear preference for
15850         __atomic builtins.  Reduce possibility of future change.
15852 2015-04-15  Nick Clifton  <nickc@redhat.com>
15854         * config/rx/rx.opt (mallow-string-insns): New option.
15855         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
15856         builtin if string instructions are denied.
15857         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
15858         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
15859         appropriate.
15860         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
15861         * config/rx/rx.md (movstr): Enable pattern only if string
15862         instructions are allowed.
15863         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
15864         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
15865         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
15866         (MULTILIB_DIRNAMES): Add no-strings.
15867         * doc/invoke.texi: Document -mno-allow-string-insns.
15869 2015-04-15  Alan Modra  <amodra@gmail.com>
15871         PR target/65408
15872         PR target/58744
15873         PR middle-end/36043
15874         * calls.c (load_register_parameters): Don't load past end of
15875         mem unless suitably aligned.
15877 2015-04-15  Nick Clifton  <nickc@redhat.com>
15879         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
15880         decrement instruction as being frame related.
15881         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
15882         based addresses.
15883         If zero extending a function address enclose the operation in
15884         %code(...).
15885         (rl78_preferred_reload_class): New function.
15886         (TARGET_PREFERRED_RELOAD_CLASS): Define.
15887         * config/rl78/rl78.md: Remove useless constraints in expanders.
15888         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
15889         (mulhi3_rl78): Likewise.
15890         (mulhi3_g13): Likewise.
15891         (mulsi3_rl78): Likewise.
15892         (es_addr): Move to before the multiply patterns.
15894 2015-04-15  Alan Modra  <amodra@gmail.com>
15896         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
15897         and sequence_stack.  Add seq.
15898         (seq_stack): Delete.
15899         * function.c (prepare_function_start): Don't access x_last_insn.
15900         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
15901         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
15902         * emit_rtl.c (start_sequence, push_topmost_sequence,
15903         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
15904         sequence accessors.
15905         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
15906         remove_insn): Likewise.  Simplify.
15907         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
15908         and pop_topmost_sequence.
15909         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
15910         debug insns.
15911         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
15913 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
15915         PR target/65729
15916         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
15917         the assertiion.
15919 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
15921         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
15922         (LEGACY_INT_REGNO_P): Ditto.
15923         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
15924         (ANY_MASK_REG_P): Remove.
15925         (BND_REG_P): Rename from ANY_BND_REG_P.
15926         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
15927         legacy integer registers.  Do not handle MMX_REG_P in a special way.
15928         Merge 64byte and 32byte SSE handling.
15930 2015-04-14  Nick Clifton  <nickc@redhat.com>
15932         * expr.c (expand_assignment): Force an address offset computation
15933         into a register before changing its mode.
15934         (expand_expr_real_1): Likewise.
15936 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
15938         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
15939         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
15940         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
15941         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
15942         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
15943         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
15944         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
15945         and __aarch64_vget_lane_any.
15947 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
15949         PR rtl-optimization/65761
15950         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
15951         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
15953 2015-04-14  Richard Biener  <rguenther@suse.de>
15955         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
15956         (graphite_can_represent_scev): Use POINTER_TYPE_P.
15958 2015-04-14  Richard Biener  <rguenther@suse.de>
15960         PR tree-optimization/65758
15961         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
15962         against -1.
15963         (ccp_lattice_meet): Likewise.
15964         (bit_value_unop): Likewise.
15965         (bit_value_binop): Likewise.
15966         (bit_value_assume_aligned): Likewise.
15968 2015-04-14  Christian Bruel  <christian.bruel@st.com>
15970         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
15971         function.
15973 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
15975         PR tree-optimization/63387
15976         * match.pd ((x unord x) | (y unord y) -> (x unord y),
15977         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
15979 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
15981         * config/i386/predicates.md (any_QIreg_operand): Rename from
15982         q_regs_operand.  Do not process subregs.
15983         (QIreg_operand): Use QI_REGNO_P predicate.
15984         (ext_QIreg_operand): Ditto.
15985         (ext_register_operand): Ditto.
15986         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
15987         (AND splitters): Ditto.
15988         (AND with -65536 splitter): Add SWI48 mode for operand 0.
15989         (AND with -256 splitter): Use any_QIreg_operand predicate and
15990         SWI248 mode for operand 0.
15991         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
15992         mode for operand 0.
15993         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
15995 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
15997         * doc/plugins.texi: Rewrite first introductory paragraph.
15999 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16001         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
16002         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
16004 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16006         * ipa-profie.c (ipa_profile): Check number of parameters
16007         and possible polymorphic call targets before
16008         devirtualizing.
16010 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
16012         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
16013         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
16015 2015-04-13  Richard Biener  <rguenther@suse.de>
16017         PR tree-optimization/65204
16018         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
16019         takens for bit-CCP.
16021 2015-04-13  Richard Biener  <rguenther@suse.de>
16023         PR target/65660
16024         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
16025         and cond_not_taken_branch_cost to 4 and 2.
16026         (bdver2_cost): Likewise.
16027         (bdver3_cost): Likewise.
16028         (bdver4_cost): Likewise.
16030 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16032         * hash-table.h (hash_table constructor): Add mem stats.
16033         (alloc_entries): Likewise.
16035 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16037         * ipa-cp.c (ipcp_driver): Relase prev_edge.
16038         * passes.c (execute_one_pass): Only add transform if pass has one.
16040 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
16042         * config/i386/i386.c (ix86_option_override_internal): Don't set
16043         -fprefetch-loop-arrays if optimizing for size.
16045 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16046             Gerald Pfeifer  <gerald@pfeifer.com>
16048         * doc/contrib.texi (Contributors): Add Martin Jambor and
16049         Michael Matz.
16051 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
16053         * BASE-VER: Set to 6.0.0.
16055         PR tree-optimization/65747
16056         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
16057         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
16059 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
16061         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
16062         sentence.  Improve grammar.
16064 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
16066         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
16068 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
16070         PR ipa/65743
16071         * ipa-inline-transform.c (speculation_removed): Remove static var.
16072         (check_speculations): New function.
16073         (clone_inlined_nodes): Do not check spculations.
16074         (inline_call): Call check_speculations.
16075         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
16076         consider non-invariants.
16078 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
16079             Martin Liska  <mliska@suse.cz>
16081         PR ipa/65722
16082         * ipa-icf.c (sem_item::compare_cgraph_references): function and
16083         variable can not match.
16084         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
16085         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
16087 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
16089         PR tree-optimization/65735
16090         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
16091         Remove visited_phis argument, add visited_bbs, avoid recursing into the
16092         same bb rather than just into the same phi node.
16093         (thread_through_normal_block): Adjust caller.
16095 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
16097         * doc/contrib.texi (Contributors): Add Ira Rosen.
16099 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
16101         * gcov.c (find_source): Fix miswording in error message.
16102         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
16103         (ix86_expand_sse_comi_round): Fix typo in error message.
16105 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
16107         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
16109 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
16111         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
16113 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
16115         PR target/65710
16116         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
16117         Print bad_spills_num and insn_pseudos_num.
16119 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16121         PR target/65694
16122         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
16123         when creating +1 values for SImode.
16125 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
16127         PR target/65729
16128         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
16129         assert.
16131 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
16132             Iain Sandoe  <iain@codesourcery.com>
16134         PR target/65351
16135         * configure: Regenerate.
16137 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
16139         PR target/65671
16140         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
16142 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
16144         * doc/contrib.texi (Contributors): Add John Marino.
16146 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
16148         PR tree-optimization/65709
16149         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
16150         TREE_TYPE (TREE_TYPE (t)).
16152 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
16154         PR target/65710
16155         * lra-int.h (lra_bad_spill_regno_start): New.
16156         * lra.c (lra_bad_spill_regno_start): New.
16157         (lra): Set up lra_bad_spill_regno_start.  Set up
16158         lra_constraint_new_regno_start unconditionally.
16159         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
16160         spill preferences.
16162 2015-04-09  Marek Polacek  <polacek@redhat.com>
16163             Jakub Jelinek  <jakub@redhat.com>
16165         PR middle-end/65554
16166         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
16167         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
16168         of STRIP_NOPS.
16170 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
16172         PR rtl-optimization/65693
16173         * combine.c (is_parallel_of_n_reg_sets): Move outside of
16174         #ifndef HAVE_cc0.
16176 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
16178         PR target/65296
16179         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
16180         device specs file if "device-specs%s" didn't resolve to a path.
16182 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
16184         PR target/65676
16185         * config/i386/i386.c (fixup_modeless_constant): New.
16186         (ix86_expand_args_builtin): Fixup modeless constant operand.
16187         (ix86_expand_round_builtin): Ditto.
16188         (ix86_expand_special_args_builtin): Ditto.
16189         (ix86_expand_builtin): Ditto.
16191 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
16193         PR target/65693
16194         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
16195         any pow2 integer in between 2 and 0x80000000U inclusive.
16197 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
16199         PR rtl-optimization/65693
16200         * combine.c (is_parallel_of_n_reg_sets): Change first argument
16201         from an rtx_insn * to an rtx.
16202         (try_combine): Adjust both callers.  Use it once more.
16204 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16206         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
16207         (chkp_make_static_const_bounds): Search existing
16208         symbol by assembler name.  Use make_decl_one_only.
16209         (chkp_get_zero_bounds_var): Remove node search which
16210         is now performed in chkp_make_static_const_bounds.
16211         (chkp_get_none_bounds_var): Likewise.
16213 2015-04-08  Michael Witten  <mfwitten@gmail.com>
16215         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
16216         to an example.
16218 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16220         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
16222 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
16224         * doc/extend.texi (__sync Builtins): Fix grammar.
16226 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16228         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
16230 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16232         * varasm.c (emit_local): Move definition of align.
16234 2015-04-08  Julian Brown  <julian@codesourcery.com>
16236         * config/nvptx/mkoffload.c (process): Support variable mapping.
16238 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
16240         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
16241         alpha_links **.
16242         (alpha_write_one_linkage): Correct typo.
16244 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16246         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
16248 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
16250         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
16252 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16254         * tree-chkp.h (chkp_insert_retbnd_call): New.
16255         * tree-chkp.c (chkp_insert_retbnd_call): New.
16256         * ipa-split.c (insert_bndret_call_after): Remove.
16257         (split_function): Use chkp_insert_retbnd_call.
16258         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
16259         bounds for instrumented functions.
16261 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
16263         PR ipa/65540
16264         * calls.c (initialize_argument_information): When producing tail
16265         call also turn SSA_NAMES passed by references to original PARM_DECLs
16267 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
16269         PR target/65648
16270         * lra-remat.c (do_remat): Process input and non-input insn
16271         registers separately.
16273 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
16275         PR debug/65678
16276         * valtrack.c (debug_lowpart_subreg): New function.
16277         (dead_debug_insert_temp): Use it.
16279         PR middle-end/65680
16280         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
16281         into signed HOST_WIDE_INT the same as negative bit_offset.
16283 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16285         * ipa-comdats.c (ipa_comdats): Visit all thunks
16286         to set proper comdat group.
16288 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16290         PR target/65489
16291         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
16292         on constants for NEON VSTRUCT modes.
16294 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
16295             Iain Sandoe  <iain@codesourcery.com>
16297         PR target/65351
16298         * configure: Regenerate.
16300 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16302         PR target/65614
16303         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
16304         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
16305         that LFD is used to load double constants instead of LFS.  Add
16306         defaults for all costs structures.  Add comments for missing
16307         initialization fields.
16308         (size32_cost): Likewise.
16309         (size64_cost): Likewise.
16310         (rs64a_cost): Likewise.
16311         (mpccore_cost): Likewise.
16312         (ppc403_cost): Likewise.
16313         (ppc405_cost): Likewise.
16314         (ppc440_cost): Likewise.
16315         (ppc476_cost): Likewise.
16316         (ppc601_cost): Likewise.
16317         (ppc603_cost): Likewise.
16318         (ppc604_cost): Likewise.
16319         (ppc604e_cost): Likewise.
16320         (ppc620_cost): Likewise.
16321         (ppc630_cost): Likewise.
16322         (ppccell_cost): Likewise.
16323         (ppc750_cost): Likewise.
16324         (ppc7450_cost): Likewise.
16325         (ppc8540_cost): Likewise.
16326         (ppce300c2c3_cost): Likewise.
16327         (ppce500mc_cost): Likewise.
16328         (ppce500mc64_cost): Likewise.
16329         (ppce5500_cost): Likewise.
16330         (ppce6500_cost): Likewise.
16331         (titan_cost): Likewise.
16332         (power4_cost): Likewise.
16333         (power6_cost): Likewise.
16334         (power7_cost): Likewise.
16335         (power8_cost): Likewise.
16336         (ppca2_cost): Likewise.
16337         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
16339         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
16340         instead of XXLOR to copy SFmode to clear out dirty bits created
16341         when SFmode denormals are generated.
16342         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
16343         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
16345 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
16347         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
16348         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
16349         * config/aarch64/aarch64-tune.md: Regenerate.
16351 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
16353         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
16354         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
16355         * config/arm/arm-cores.def (exynos-m1): New core.
16356         * config/arm/arm-tune.md: Regenerate.
16357         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
16358         * config/arm/bpabi.h: Likewise.
16360 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
16362         * ipa-cp (set_single_call_flag): Remove too
16363         restrictive assert.
16365 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
16367         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
16368         GOMP_offload_unregister from the destructor.
16370 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
16372         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
16373         flags for instrumentation thunk.
16374         (chkp_produce_thunks): Likewise.
16376 2015-04-05  Martin Liska  <mliska@suse.cz>
16378         PR ipa/65665
16379         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
16380         has computed data structure.
16381         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
16383 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
16385         * invoke.texi (inline-unit-growth): Increase growth to 20%
16386         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
16388 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
16390         PR target/65647
16391         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
16392         value checking.
16393         (lra_rematerialization_iter): New.
16394         * lra.c (lra): Initialize lra_rematerialization_iter.
16395         Stop updating lra_constraint_new_regno_start after switching of
16396         inheritance and rematerialization.
16397         * lra-remat.c (lra_rematerialization_iter): New.
16398         (lra_remat): Add printing pass iteration.  Do rematerialization
16399         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
16401 2015-04-04  Richard Biener  <rguenther@suse.de>
16403         PR tree-optimization/64909
16404         PR tree-optimization/65660
16405         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
16406         to take a cost vector for scalar iteration cost.
16407         (vect_get_single_scalar_iteration_cost): Likewise.
16408         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
16409         Compute the scalar iteration cost into a cost vector.
16410         (vect_get_known_peeling_cost): Use the scalar cost vector to
16411         account for the cost of the peeled iterations.
16412         (vect_estimate_min_profitable_iters): Likewise.
16413         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16414         Likewise.
16416 2015-04-04  Alan Modra  <amodra@gmail.com>
16418         PR target/65576
16419         PR target/65240
16420         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
16421         0.0 constant unless TARGET_VSX.
16422         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
16423         alternative.
16425 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
16427         PR ipa/65654
16428         * ipa-inline-transform.c (inline_call): Skip sanity check to work
16429         around the ICE
16431 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
16433         PR ipa/65655
16434         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
16435         speculative indirect edges to avoid ordering issue.
16437 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
16439         PR ipa/65076
16440         * ipa-inline.c (edge_badness): Add combined size to the denominator.
16442 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
16444         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
16445         TYPE_ARTIFICIAL on the .omp_data* types.
16447 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16449         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
16450         instrumentation thunks.
16452 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16454         * config/i386/i386.c (ix86_expand_call): Avoid nested
16455         PARALLEL in returned call value.
16457 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16459         * lto-cgraph.c (input_cgraph_1): Always link instrumented
16460         assembler name with original one.
16462 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
16464         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
16466 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
16468         Revert parts of r216820.
16469         * config/i386/i386.md (movqi_internal): Correct type calculation
16470         for alternatives 3 and 5.
16472 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
16474         PR preprocessor/61977
16475         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
16476         predefine __vector/__bool/__pixel macros nor context sensitive
16477         macros for CLK_ASM.
16478         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
16480 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
16482         * config/pa/pa.c (pa_output_move_double): Directly handle register
16483         indexed memory operand.  Simplify handling of scaled register indexed
16484         memory operands.
16486 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16488         PR driver/65444
16489         * config/i386/linux-common.h (MPX_SPEC): New.
16490         (CHKP_SPEC): Add MPX_SPEC.
16491         * doc/invoke.texi (-fcheck-pointer-boudns): Document
16492         possible issues with '-z bndplt' support in linker.
16494 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
16496         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
16497         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
16498         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
16499         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
16500         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
16502 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
16504         * config/i386/sync.md (UNSPEC_MOVA): Remove.
16505         (atomic_load<mode>): Change operand 0 predicate to
16506         nonimmediate_operand and fix up the destination when needed.
16507         Use UNSPEC_LDA.
16508         (atomic_loaddi_fpu): Use UNSPEC_LDA.
16509         (atomic_store<mode>): Change operand 1 predicate to
16510         nonimmendate_operand and move the source to register when needed.
16511         Use UNSPEC_STA.
16512         (atomic_store<mode>_1): Use UNSPEC_STA.
16513         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
16514         Fix moves from memory operand.  Use UNSPEC_STA.
16516 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16518         * expmed.c (strict_volatile_bitfield_p): Check that the access will
16519         not cross a MODESIZE boundary.
16520         (store_bit_field, extract_bit_field): Added assertions in the
16521         strict volatile bitfields code path.
16523 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16525         PR target/65624
16526         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
16527         Increase args array size by one to avoid buffer overflow.
16529 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
16531         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
16532         split_part.
16533         * ipa-inline.c (edge_badness): Add wrapper penalty.
16534         (sum_callers): Move up.
16535         (inline_small_functions): Set single_caller.
16536         * ipa-inline.h (inline_summary): Add single_caller.
16537         * ipa-split.c (split_function): Set split_part.
16538         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
16539         * cgraph.h (cgraph_node): Add split_part.
16541 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
16543         PR target/58945
16544         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
16545         Do not split operands 0 and operands 2 to halfmode.
16546         (atomic_compare_and_swap<mode>): Update for
16547         atomic_compare_and_swap<dwi>_doubleword changes.
16549 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
16551         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
16552         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
16553         no caching is done.
16555 2015-03-31  Martin Liska  <mliska@suse.cz>
16557         PR ipa/65557
16558         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
16559         has already filled up function summary.
16560         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
16562 2015-03-31  Richard Biener  <rguenther@suse.de>
16564         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
16565         of types.
16567 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16569         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
16570         nested functions.
16571         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
16572         (s390_asm_output_function_label): Adapt to new signature of
16573         s390_function_num_hotpatch_hw
16574         Optimise the code generating assembler output.
16575         Add comments to assembler file.
16577 2015-03-31  Richard Biener  <rguenther@suse.de>
16579         PR middle-end/65626
16580         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
16581         of the noreturn call so it is last and cleanup_control_flow_bb
16582         can do the CFG part.
16584 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
16586         PR target/65531
16587         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
16588         same_comdat_group for external symbols.
16589         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
16590         infinite same_comdat_group traversal loop.
16592 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
16594         PR plugins/61176
16595         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
16596         automatically to $headers.
16598 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
16600         PR ipa/65610
16601         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
16602         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
16603         function.
16604         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
16605         Use it.
16606         * ipa-prop.c (param_type_may_change_p): Likewise.
16607         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
16608         (remove_unused_scope_block_p): Add in_ctor_dtor_block
16609         argument.  Before inlining, preserve
16610         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
16611         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
16612         recursive calls.
16613         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
16615 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
16617         PR ipa/65076
16618         * ipa-inline.c (edge_badness): Base denominator on callee's
16619         grwoth squared.
16621 2015-03-27  Martin Jambor  <mjambor@suse.cz>
16623         PR ipa/65478
16624         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
16625         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
16626         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
16627         node_calling_single_call.
16628         * ipa-cp.c (count_callers): New function.
16629         (set_single_call_flag): Likewise.
16630         (initialize_node_lattices): Count callers and set single_flag_call if
16631         necessary.
16632         (incorporate_penalties): New function.
16633         (good_cloning_opportunity_p): Use it, dump new flags.
16634         (propagate_constants_topo): Set node_within_scc flag if appropriate.
16635         * doc/invoke.texi (ipa-cp-recursion-penalty,
16636         ipa-cp-single-call-pentalty): Document.
16638 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
16640         PR ipa/65588
16641         * symtab.c (symtab_node::get_partitioning_class): Register vars
16642         are duplicated.
16643         * varpool.c (symbol_table::output_variables) Do not assemble unefined
16644         decls for non-symbols.
16646 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
16648         PR target/65248
16649         * output.h (default_binds_local_p_2): New.
16650         * varasm.c (default_binds_local_p_2): Renamed to ...
16651         (default_binds_local_p_3): This.  Don't return true on protected
16652         data symbol if protected data may be external.
16653         (default_binds_local_p): Use default_binds_local_p_3.
16654         (default_binds_local_p_1): Likewise.
16655         (default_binds_local_p_2): New.
16656         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
16657         default_binds_local_p_2 if TARGET_MACHO is undefined.
16659 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
16661         PR target/65593
16662         * config/i386/i386.c (legitimize_pic_address): If base
16663         is SYMBOL_REF or LABEL_REF using %rip addressing, force
16664         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
16666 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
16668         PR target/65531
16669         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
16670         comdat groups.
16672 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
16674         PR ipa/65600
16675         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
16676         of optimized out indirect call.
16677         (redirect_to_unreachable): Always build symbol table node for
16678         BUILT_IN_UNREACHABLE
16680 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
16682         PR target/65407
16683         * ira-costs.c (record_reg_classes): Process all constraint string
16684         containing 0-9.
16686 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
16688         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
16689         memory_operand.
16691         PR target/65052
16692         * config/c6x/constraints.md (S3): New constraint.
16693         * config/c6x/c6x.md (real_jump): Use it.
16695 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16697         PR middle-end/65595
16698         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
16699         do redirection if the call is not optimized out.
16701 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
16703         PR target/65495
16704         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
16705         (fchkp-check-incomplete-type): Add LTO.
16706         (fchkp-zero-input-bounds-for-main): Likewise.
16707         (fchkp-first-field-has-own-bounds): Likewise.
16708         (fchkp-narrow-bounds): Likewise.
16709         (fchkp-narrow-to-innermost-array): Likewise.
16710         (fchkp-use-static-bounds): Likewise.
16711         (fchkp-use-static-const-bounds): Likewise.
16712         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
16714 2015-03-27  Marek Polacek  <polacek@redhat.com>
16716         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
16718 2015-03-27  Marek Polacek  <polacek@redhat.com>
16720         PR sanitizer/65583
16721         * ubsan.c (ubsan_create_edge): New function.
16722         (instrument_bool_enum_load): Call it.
16723         (instrument_nonnull_arg): Likewise.
16724         (instrument_nonnull_return): Likewise.
16725         (instrument_object_size): Likewise.
16727 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16729         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
16730         auto_vec.
16732 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16734         PR lto/65536
16735         * lto-streamer.h (class lto_location_cache): New.
16736         (struct data_in): Add location_cache.
16737         (lto_input_location): Update prototype.
16738         (stream_input_location_now): New.
16739         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
16740         pointer to location.
16741         (stream_input_location): Update.
16742         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
16743         (warn_odr): Apply location cache before warning.
16744         (lto_input_location): Update prototype.
16745         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
16746         Use stream_input_location_now.
16747         * lto-streamer-in.c (lto_location_cache::current_cache): New static
16748         variable.
16749         (lto_location_cache::cmp_loc): New function.
16750         (lto_location_cache::apply_location_cache): New function.
16751         (lto_location_cache::accept_location_cache): New function.
16752         (lto_location_cache::revert_location_cache): New function.
16753         (lto_location_cache::input_location): New function.
16754         (lto_input_location): Do location caching.
16755         (stream_input_location_now): New function.
16756         (input_eh_region, input_struct_function_base): Use
16757         stream_input_location_now.
16758         (lto_data_in_create): use new.
16759         (lto_data_in_delete): Use delete.
16760         * tree-streamer-in.c (unpack_ts_block_value_fields,
16761         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
16762         lto_input_ts_exp_tree_pointers): Update for cached location api.
16764 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16766         PR ipa/65076
16767         * passes.def: Add pass_nothrow.
16768         * ipa-pure-const.c: (pass_data_nothrow): New.
16769         (pass_nothrow): New.
16770         (pass_nothrow::execute): New.
16771         (make_pass_nothrow): New.
16772         * tree-pass.h (make_pass_nothrow): Declare.
16774 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16776         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
16777         edge to change by speculation resolution or redirection.
16778         (edge_set_predicate): Likewise.
16779         (inline_summary_t::duplicate): Likewise.
16780         (remap_edge_summaries): Likewise.
16782 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16784         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
16785         New macros.
16786         (can_inline_edge_p): Relax option matching for always inline functions.
16788 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
16790         PR target/65561
16791         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
16792         Check operand 4 and operand 0 for equality.
16793         (avx512f_vextract<shuffletype>32x4_1_maskm):
16794         Check operand 6 and operand 0 for equality.
16795         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
16796         for equality.
16797         (vec_extract_hi_<mode>_maskm): Ditto.
16799 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16801         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
16802         dead calls back to live.
16803         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
16804         cross check to ...
16805         (cgraph_node::verify_node): ... here; verify only callee edges,
16806         not caller.
16807         * cif-code.def (CILK_SPAWN): New code.
16809 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
16811         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
16812         (edge_set_predicate): Use it to mark unreachable edges.
16813         (inline_summary_t::duplicate): Remove unnecesary code.
16814         (remap_edge_summaries): Likewise.
16815         (dump_inline_summary): Report contains_cilk_spawn.
16816         (compute_inline_parameters): Compute contains_cilk_spawn.
16817         (inline_read_section, inline_write_summary): Stream
16818         contains_cilk_spawn.
16819         * ipa-inline.c (can_inline_edge_p): Do not touch
16820         DECL_STRUCT_FUNCTION that may not be available;
16821         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
16822         remove check for callee_fun->can_throw_non_call_exceptions and
16823         replace it by optimization attribute check; check for flag_exceptions.
16824         * ipa-inline-transform.c (inline_call): Maintain
16825         DECL_FUNCTION_PERSONALITY
16826         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
16828 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
16830         PR tree-optimization/65551
16831         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
16832         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
16834 2015-03-26  Richard Biener  <rguenther@suse.de>
16836         PR middle-end/65555
16837         * tree-cfg.c (verify_gimple_call): Do not require a call to
16838         have no LHS if it wasn't recognized as control altering yet.
16840 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
16842         PR tree-optimization/64715
16843         * passes.def: Add another instance of pass_object_sizes before ccp1.
16844         * tree-object-size.c (pass_object_sizes::execute): In
16845         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
16846         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
16847         __bos result and the computed constant.  Remove redundant
16848         checks, obsoleted by gimple_call_builtin_p test.
16850         * var-tracking.c (variable_tracking_main_1): Don't track
16851         variables for targetm.no_register_allocation targets.
16853 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
16855         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
16856         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
16858 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16860         PR target/65569
16861         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
16862         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
16863         0.0 is correctly setup.
16864         (extenddftf2_internal): Likewise.
16866 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
16868         PR tree-optimization/65177
16869         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
16870         (bb_in_bbs): New.
16871         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
16872         edges not adjacent on the path to the original code.
16874 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
16876         PR bootstrap/65537
16877         * doc/install.texi (Building a native compiler): Document new
16878         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
16879         configuration assumes that the host supports the linker plugin.
16881 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
16883         PR target/65508
16884         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
16885         chain for generated call.
16887 2015-03-25  Richard Biener  <rguenther@suse.de>
16889         * passes.c (pass_manager::execute_early_local_passes): Guard
16890         execution of pass_chkp_instrumentation_passes with
16891         flag_check_pointer_bounds.
16892         (pass_chkp_instrumentation_passes::gate): Likewise.
16894 2015-03-25  Martin Liska  <mliska@suse.cz>
16896         PR tree-optimization/65538
16897         * symbol-summary.h (function_summary::~function_summary):
16898         Relese memory for allocated summaries.
16899         (function_summary::release): New function.
16901 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
16903         PR lto/65515
16904         * lto-streamer-out.c (DFS::worklist): New struct.
16905         (DFS::worklist_vec): New data member.
16906         (DFS::next_dfs_num): Remove.
16907         (DFS::DFS): Rewritten using worklist instead of recursion,
16908         using most of code from DFS::DFS_write_tree.
16909         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
16910         pass it to DFS_write_tree calls.
16911         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
16912         quick initial checks push it into worklist_vec and return.
16914 2015-03-25  Richard Biener  <rguenther@suse.de>
16916         PR middle-end/65519
16917         * genmatch.c (expr::gen_transform): Re-write to avoid
16918         using gimple_build.
16920 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
16922         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
16924 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
16926         * config/arm/arm.opt (print_tune_info): New option.
16927         * config/arm/arm.c (arm_print_tune_info): New function.
16928         (arm_file_start): Call arm_print_tune_info.
16929         * config/arm/arm-protos.h (struct tune_params): Add comment.
16930         * doc/invoke.texi (@item -mprint-tune-info): New item.
16931         (-mtune): mention it in ARM Option Summary.
16933 2015-03-25  DJ Delorie  <dj@redhat.com>
16935         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
16936         correct clause.
16938 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
16939             Martin Liska  <mliska@suse.cz>
16941         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
16942         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
16943         (sem_item::add_type): New function.
16944         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
16945         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
16946         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
16947         (sem_function::equals_wpa): Fix typo.
16948         * ipa-icf.h (sem_item::add_type): New function.
16949         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
16950         order.
16952 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
16954         PR tree-optimization/65533
16955         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
16956         with swapped operands, call vect_free_slp_tree on
16957         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
16958         vector.
16960 2015-03-24  Richard Biener  <rguenther@suse.de>
16962         PR middle-end/65517
16963         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
16964         for fixup if necessary.
16966 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
16968         * doc/extend.texi (Function Attributes): Add @cindex entries
16969         for all attributes and regularize their format.  Delete text
16970         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
16971         information about "eightbit_data", "tiny_data", and "model"
16972         variable attributes to the Variable Attributes section.  Fix
16973         some obvious typos and copy-editing issues.
16974         (Variable Attributes, Type Attributes): Likewise add/fix
16975         @cindex entries for all attributes.
16977 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
16979         PR target/65523
16980         * tree-chkp.c (chkp_build_returned_bound): Ignore
16981         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
16983 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
16985         PR target/65505
16986         * config/sh/predicates.md (simple_mem_operand,
16987         displacement_mem_operand): Add test for reg.
16988         (short_displacement_mem_operand): Test for displacement_mem_operand
16989         before invoking sh_disp_addr_displacement.
16990         * config/sh/constraints.md (Sdd, Sra): Simplify.
16991         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
16992         Remove redundant displacement_mem_operand tests.
16994 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
16996         PR target/65296
16997         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
16998         the same -mmcu=MCU more than once.
17000 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
17002         PR bootstrap/65522
17003         * ipa-devirt.c: Remove duplicate demangle.h include.
17005         PR target/65504
17006         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
17007         on the pseudo.
17008         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
17009         REG_POINTER on *destptr after adjusting it for prologue size.
17011         PR ipa/65521
17012         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
17013         ultimate_alias_target ()->order ints instead of
17014         ultimate_alias_target () pointers.
17016 2015-03-23  Richard Biener  <rguenther@suse.de>
17018         PR tree-optimization/65518
17019         * tree-vect-stmts.c (vectorizable_load): Reject single-element
17020         interleaving cases we generate absymal code for.
17022 2015-03-23  Richard Biener  <rguenther@suse.de>
17024         PR tree-optimization/65494
17025         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
17026         matches here.
17027         (vect_analyze_slp_instance): But do that here, always and once.
17029 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17031         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
17032         adding T or multiplying by T+1 and subracting T.
17034 2015-03-22  Jeff Law  <law@redhat.com>
17036         PR rtl-optimization/64317
17037         * Makefile.in (OBJS): Add gcse-common.c
17038         * gcse.c: Include gcse-common.h
17039         (struct modify_pair_s): Move structure definition to gcse-common.h
17040         (compute_transp): Move function to gcse-common.c.
17041         (canon_list_insert): Similarly.
17042         (record_last_mem_set_info): Break out some code and put it into
17043         gcse-common.c.  Call into the new common code.
17044         (compute_local_properties): Pass additional arguments to compute_transp.
17045         * postreload-gcse.c: Include gcse-common.h and df.h
17046         (modify_mem_list_set, blocks_with_calls): New variables.
17047         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
17048         (get_bb_avail_insn): Pass in the expression index too.
17049         (alloc_mem): Allocate memory for the new bitmaps and lists.
17050         (free_mem): Free memory for the new bitmaps and lists.
17051         (insert_expr_in_table): Record a bitmap index for each entry we
17052         add to the table.
17053         (record_last_mem_set_info): Call into common code in gcse-common.c.
17054         (get_bb_avail_insn): If no available insn was found in the requested
17055         BB.  If BB has a single predecessor, see if the expression is
17056         transparent in BB and available in that single predecessor.
17057         (compute_expr_transp): New wrapper for compute_transp.
17058         (eliminate_partially_redundant_load): Pass expression's bitmap_index
17059         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
17060         (gcse_after_reload_main): If there are elements in the hash table,
17061         then compute transparency for all the elements in the hash table.
17062         * gcse-common.h: New file.
17063         * gcse-common.c: New file.
17065 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
17067         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
17068         as an adjective.
17069         (System Headers): Likewise.
17070         (Ifdef): Likewise.
17071         (Traditional macros): Likewise.
17072         (Invocation): Likewise.
17073         (Option Index): Likewise.
17074         * doc/cppopts.texi (-M): Likewise.
17075         (-finput-charset): Likewise.
17076         (--help): Likewise.
17077         * doc.invoke.texi (AVR Options): Likewise.
17078         (V850 Options): Likewise.
17080 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
17082         PR ipa/65475
17083         * ipa-devirt.c: Include demangle.h
17084         (odr_type_d): Add field rtti_broken.
17085         (odr_subtypes_equivalent_p): Do not require name to match.
17086         (compare_virtual_tables): Fix typo; if type already has ODR violation,
17087         bypass the tests; be ready for function referneces in vtables that are
17088         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
17089         (warn_odr): Give up for nameless types.
17090         (warn_types_mismatch): Report mismatch in mangled names;
17091         report mismatch in anonymous namespaces; look into component types to
17092         give useful error; report when mismatch is dragged in from other ODR
17093         type.
17094         (odr_types_equivalent_p): Match types for being polymorphic; avoid
17095         duplicated diagnostics.
17096         (add_type_duplicate): Reorder checks so more informative ones come
17097         first; fix typo; do not output "the extra base is defined here" when
17098         we did not warn.
17099         (BINFO_N_BASE_BINFOS): Relax sanity check.
17101 2015-03-22  Martin Liska  <mliska@suse.cz>
17102             Jakub Jelinek  <jakub@redhat.com>
17104         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
17105         masks that can potentially include a builtin.
17106         (ix86_add_new_builtins): Introduce fast filter for isa values
17107         that cannot trigger builtin inclusion.
17109 2015-03-22  Martin Liska  <mliska@suse.cz>
17111         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
17112         (sem_item::update_hash_by_local_refs): Likewise.
17113         (sem_variable::get_hash): Empty line is fixed.
17114         (sem_item_optimizer::execute): Include adding of hash references.
17115         (sem_item_optimizer::update_hash_by_addr_refs): New function.
17116         (sem_item_optimizer::build_hash_based_classes): Use local hash.
17117         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
17118         (sem_item::update_hash_by_local_refs): Likewise.
17120 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17122         PR ipa/65502
17123         * ipa-comdats.c (enqueue_references): Walk through thunks.
17124         (ipa_comdats): Likewise.
17125         (set_comdat_group_1): New function.
17127 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17129         PR ipa/65475
17130         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
17131         non-polymorphic
17133 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
17134             Gerald Pfeifer  <gerald@pfeifer.com>
17136         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
17138 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
17139             Sandra Loosemore  <sandra@codesourcery.com>
17141         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
17142         function parameter declaration.
17143         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
17144         Update arguments to nios2_adjust_call_address().
17145         (sibcall_internal): Rename from *sibcall.
17146         (sibcall_value_internal): Rename from *sibcall_value.
17147         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
17148         (nios2_large_got_address): Add target temp reg parameter.
17149         (nios2_got_address): Adjust call to nios2_large_got_address, add
17150         force_reg around it.
17151         (nios2_load_pic_address): Add target temp reg parameter, replace call
17152         to nios2_got_address with corresponding code.
17153         (nios2_legitimize_constant_address): Update call to
17154         nios2_load_pic_address.
17155         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
17156         to use temp reg for PIC loading purposes.
17157         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
17158         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17159         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
17161 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17163         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
17164         usage of "the @option{...}".
17165         (-Wopenmp-simd): Likewise.
17166         (-fsanitize-recover): Likewise.
17167         (-fsanitize-undefined-trap-on-error): Likewise.
17168         (-flto): Likewise.
17169         (tracer-dynamic-coverage-feedback): Likewise.
17170         (reorder-block-duplicate-feedback): Likewise.
17171         (loop-unroll-jam-size): Likewise.
17172         (-B): Likewise.
17173         (-I-): Likewise.
17174         (-mabs=legacy): Likewise.
17175         (-mupper-regs-df): Likewise.
17176         (-mupper-regs-sf): Likewise.
17177         (-mpointers-to-nested-functions): Likewise.
17179 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17181         * doc/extend.texi (Cilk Plus Builtins): Add markup.
17183 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17185         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
17186         additional index entries and cross-references.
17187         (-fchkp-check-incomplete-type): Likewise.
17188         (-fchkp-first-field-has-own-bounds): Likewise.
17189         (-fchkp-narrow-to-innermost-array): Likewise.
17190         (-fchkp-use-fast-string-functions): Likewise.
17191         (-fchkp-use-nochk-string-functions): Likewise.
17192         (-fchkp-use-static-const-bounds): Likewise.
17193         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17194         (-fchkp-instrument-marked-only): Likewise.
17195         (-fchkp-use-wrappers): Likewise.
17196         (-static-libmpx): Likewise.
17197         (-static-libmpxwrappers): Likewise.
17198         * doc/extend.texi (bnd_legacy): Likewise.
17199         (bnd_instrument): Likewise.
17200         (bnd_variable_size): Likewise.
17201         (Pointer Bounds Checker builtins): Likewise.
17203 2015-03-21  Tom de Vries  <tom@codesourcery.com>
17205         PR tree-optimization/65458
17206         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
17207         * cgraph.h (cgraph_node): Add parallelized_function field.
17208         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
17209         (input_overwrite_node): Read parallelized_function field.
17210         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
17211         parallelized_function on cgraph_node for child_fn.
17212         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
17213         Remove include of gt-tree-parloops.h.
17214         (parallelized_functions): Remove static variable.
17215         (parallelized_function_p): Rewrite using parallelized_function field of
17216         cgraph_node.
17217         (create_loop_fn): Remove adding to parallelized_functions.
17218         * Makefile.in (GTFILES): Remove tree-parloops.c
17220 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
17222         PR rtl-optimization/64366
17223         * lra.c (lra_update_insn_regno_info): Consider regs in
17224         CALL_INSN_FUNCTION_USAGE memory.
17226 2015-03-20  Richard Biener  <rguenther@suse.de>
17228         PR middle-end/64715
17229         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
17230         for type comparison and gcc_checking_assert.
17231         (chrec_fold_plus_poly_poly): Likewise.
17232         (chrec_fold_multiply_poly_poly): Likewise.
17233         (chrec_convert_1): Likewise.
17234         * gimplify.c (gimplify_expr): Remove premature folding of
17235         &X + CST to &MEM[&X, CST].
17237 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17239         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
17240         already is final.
17241         (ipa_inline): Recompute inline_failed codes.
17242         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
17243         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
17244         CIF_FINAL_ERROR.
17246 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
17248         PR rtl-optimization/60851
17249         * recog.c (constrain_operands): Accept a pseudo register before reload
17250         for LRA enabled targets.
17252 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17254         PR target/65240
17255         * config/rs6000/predicates.md (easy_fp_constant): Remove special
17256         -ffast-math handling that kept non-0 constants live in the RTL
17257         until reload.  Remove logic testing the number of instructions it
17258         took to create a constant in a GPR that was never used, due to a
17259         test for soft-float earlier.
17260         (memory_fp_constant): Delete, no longer used.
17262         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
17263         alternatives for loading non-0 constants into GPRs for hard
17264         floating point that is no longer needed due to changes in
17265         easy_fp_constant.  Add support for loading 0.0 into GPRs.
17266         (mov<mode>_hardfloat32): Likewise.
17267         (mov<mode>_hardfloat64): Likewise.
17268         (mov<mode>_64bit_dm): Likewise.
17269         (movtd_64bit_nodm): Likewise.
17270         (pre-reload move FP constant define_split): Delete define_split,
17271         since it is no longer used.
17272         (extenddftf2_internal): Remove GHF constraints that are not valid
17273         for extenddftf2.
17275 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
17277         PR rtl-optimization/63491
17278         * lra-constraints.c (check_and_process_move): Use src instead of
17279         sreg.  Remove some dead code.
17281 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
17283         PR ipa/65380
17284         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
17285         (sem_variable::merge): Likewise.
17287 2015-03-19  Martin Liska  <mliska@suse.cz>
17289         PR ipa/65465
17290         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
17291         all fields of cgraph_thunk_info.
17293 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
17295         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
17296         clone instrumented thunks.
17298 2015-03-19  Richard Biener  <rguenther@suse.de>
17300         Revert
17301         2015-03-10  Richard Biener  <rguenther@suse.de>
17303         PR middle-end/63155
17304         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
17305         * tree-ssa-coalesce.c: Include timevar.h.
17306         (attempt_coalesce): Handle graph being NULL.
17307         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
17308         Split out abnormal coalescing to ...
17309         (perform_abnormal_coalescing): ... this function.
17310         (coalesce_ssa_name): Perform abnormal coalescing without computing
17311         live/conflict.
17312         (verify_ssa_coalescing_worker): New function.
17313         (verify_ssa_coalescing): Likewise.
17315 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17316             Jakub Jelinek  <jakub@redhat.com>
17318         PR sanitizer/65400
17319         * tsan.c (instrument_gimple): Clear tail call flag on
17320         calls.
17322 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
17324         PR sanitizer/65400
17325         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
17326         call in the return bb.
17327         (find_split_points): Add RETURN_BB argument, don't call
17328         find_return_bb.
17329         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
17330         if true append TSAN_FUNC_EXIT internal call after the call to
17331         the split off function.
17332         (execute_split_functions): Call find_return_bb here.
17333         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
17334         Adjust find_split_points and split_function calls.
17336 2015-03-18  DJ Delorie  <dj@redhat.com>
17338         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
17339         (iorqi3_virt): Likewise.
17341 2015-03-18  Tom de Vries  <tom@codesourcery.com>
17343         * tree-parloops.c (parallelize_loops): Make static.
17344         * tree-parloops.h (parallelize_loops): Remove extern declaration.
17346 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
17348         PR middle-end/64491
17349         Revert:
17350         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
17352         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
17353         condition would be removed due to undefined behaviour.
17355 2015-03-18  Martin Liska  <mliska@suse.cz>
17357         PR ipa/65432
17358         * cgraph.c (cgraph_node::get_create): Remove unnecessary
17359         xstrdup_for_dump wrapper.
17360         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
17361         sem_item::name.
17362         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
17363         with xstrdup_for_dump.
17364         (sem_variable::equals): Likewise.
17365         (sem_item_optimizer::read_section): Use symtab_node::name instead of
17366         sem_item::name.
17367         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
17368         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
17369         symtab_node::asm_name with xstrdup_for_dump.
17370         (congruence_class::dump): Use symtab_node::name instead of
17371         sem_item::name.
17372         * ipa-icf.h (symtab_node::name): Remove.
17373         (symtab_node::asm_name): Likewise.
17375 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
17377         PR tree-optimization/65450
17378         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
17379         function.
17380         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
17381         it instead of duplicate_ssa_name_ptr_info.
17383         PR target/65222
17384         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
17386 2015-03-18  Richard Biener  <rguenther@suse.de>
17388         * tree-data-ref.h (struct access_matrix): Remove.
17389         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
17390         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
17391         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
17392         (am_vector_index_for_loop): Likewise.
17393         (struct data_reference): Remove access_matrix member.
17394         (DR_ACCESS_MATRIX): Remove.
17395         (lambda_vector_new): Add comment.
17396         (lambda_matrix_new): Use XOBNEWVEC.
17398 2015-03-18  Richard Biener  <rguenther@suse.de>
17400         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
17401         (pass_ch::execute): Cleanup the CFG only if we did sth.
17402         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
17404 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17406         * expmed.c (synth_mult): Use std::swap instead of manually
17407         swapping algorithms.
17409 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
17411         PR target/65078
17412         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
17414 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
17416         PR target/65296
17417         * config/avr/avr.opt (-nodevicelib): New option.
17418         * doc/invoke.texi (AVR Options): Document it.
17419         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
17420         libgcc.a, libc.a, libm.a.
17421         * config/avr/specs.h: Same.
17422         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
17423         which don't (directly) depend on the device.  Print more help.
17424         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
17425         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
17426         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
17427         case of an error.
17428         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
17429         for specs file name.
17430         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
17431         * config/avr/avr-mcus.def: Adjust initializers and comments.
17433 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
17435         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
17436         DECL_ONE_ONLY to check if decl is one only.
17437         * ipa-split.c (consider_split): Limit splitt of one only functions.
17439 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
17441         PR tree-optimization/65427
17442         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
17443         functions.
17444         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
17446 2015-03-16  Marek Polacek  <polacek@redhat.com>
17448         * cgraph.h (add_new_static_var): Remove declaration.
17449         * varpool.c (add_new_static_var): Remove function.
17451 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
17453         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
17454         instead of vec<tree> * with vec_alloc and release for args.
17455         Adjust all users.
17457         PR middle-end/65431
17458         * omp-low.c (delete_omp_context): Only splay_tree_delete
17459         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
17460         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
17462 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17464         PR sanitizer/64820
17465         * cfgexpand.c (align_base): New function.
17466         (alloc_stack_frame_space): Call it.
17467         (expand_stack_vars): Align prev_frame to be sure
17468         data->asan_vec elements aligned properly.
17470 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
17472         PR middle-end/65409
17473         * expr.c (store_field): Do not do a direct block copy if the source is
17474         a PARALLEL with BLKmode.
17476 2015-03-16  Tom de Vries  <tom@codesourcery.com>
17478         PR middle-end/65414
17479         Revert:
17480         2015-03-12  Tom de Vries  <tom@codesourcery.com>
17482         PR rtl-optimization/64895
17483         * lra-lives.c (check_pseudos_live_through_calls): Use
17484         actual_call_used_reg_set instead of call_used_reg_set, if available.
17486 2015-03-16  Alan Modra  <amodra@gmail.com>
17488         PR target/63150
17489         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
17490         Modify Z->r bswapdi splitter to use dest in place of scratch.
17491         In r->Z and Z->r bswapdi splitter rename word_high, word_low
17492         to word1, word2 and rearrange logic to suit.
17493         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
17494         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
17495         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
17496         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
17497         early clobber.
17499 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
17501         PR tree-optimization/65369
17502         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
17503         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
17504         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
17506         PR tree-optimization/65418
17507         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
17508         are casts in the first PLUS_EXPR operand, ensure tbias and
17509         *totallowp are in the inner type.
17511         PR rtl-optimization/65401
17512         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
17513         argument.  If true, adjust_address_nv of x with big-endian
17514         correction for the mode widening to GET_MODE (y).
17515         (make_field_assignment): Don't do MEM mode widening here.
17516         Use MEM_P instead of GET_CODE == MEM.
17518 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
17520         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
17521         the external decls.
17523 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17525         PR target/64600
17526         * config/arm/arm.c (arm_gen_constant, AND case): Use
17527         ARM_SIGN_EXTEND when constructing AND mask.
17529 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17531         * graph.c (print_graph_cfg): Make function names visible and append
17532         parenthesis to it.  Also make groups of basic blocks belonging to the
17533         same function visible.
17535 2015-03-12  Richard Biener  <rguenther@suse.de>
17537         PR middle-end/44563
17538         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
17539         to avoid quadratic behavior with inline expansion splitting blocks.
17540         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
17541         with the successor if the predecessor will be merged with it.
17542         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
17543         entry block with its successor.
17545 2015-03-13  Richard Biener  <rguenther@suse.de>
17547         PR middle-end/44563
17548         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
17549         (cleanup_tree_cfg_1): Do not call it.
17550         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
17551         (fixup_noreturn_call): Mark the stmt as control altering.
17552         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
17553         here.
17554         (pass_data_fixup_cfg): Produce a dump file.
17555         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
17556         (need_noreturn_fixup): New global.
17557         (pass_dominator::execute): Fixup queued noreturn calls.
17558         (optimize_stmt): Queue calls that became noreturn for fixup.
17559         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
17560         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
17561         (el_to_fixup): New global.
17562         (eliminate_dom_walker::before_dom_childre): Queue calls that
17563         became noreturn for fixup.
17564         (eliminate): Fixup queued noreturn calls.
17565         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
17566         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
17567         (substitute_and_fold_dom_walker::before_dom_children): Queue
17568         alls that became noreturn for fixup.
17569         (substitute_and_fold): Fixup queued noreturn calls.
17571 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
17573         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
17574         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
17575         are building; for methods check ODR type of class they belong to if
17576         they may lead to a polymorphic call.
17577         (sem_function::compare_polymorphic_p): Be bit smarter about testing
17578         when function may lead to a polymorphic call.
17579         (sem_function::compare_type_list): Remove.
17580         (sem_variable::equals): Update use of compatible_types_p.
17581         (sem_variable::parse_tree_refs): Remove.
17582         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
17583         cdtor.
17584         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
17585         matching here.
17586         (func_checker::compatible_polymorphic_types_p): Break out from ...
17587         (unc_checker::compatible_types_p): ... here.
17588         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
17589         Declare.
17590         (unc_checker::compatible_types_p): Update.
17591         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
17592         Remove.
17594 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17596         PR rtl-optimization/65235
17597         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
17598         When first element of vec_concat is const_int, calculate its size
17599         using second element.
17601 2015-03-12  Richard Biener  <rguenther@suse.de>
17603         PR middle-end/65270
17604         * fold-const.c (operand_equal_p): Fix ordering of resetting
17605         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
17607 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17609         * config/s390/s390.c (s390_reorg): Move code to output nops after label
17610         to s390_reorg ().
17611         (s390_asm_output_function_label): Likewise.
17612         * config/s390/s390.c (s390_asm_output_function_label):
17613         Fix function label alignment with -mhtopatch.
17614         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
17615         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
17616         ("nop_2_byte"): New define_insn.
17617         ("nop_4_byte"): Likewise.
17618         ("nop_6_byte"): Likewise.
17619         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
17620         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
17622 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
17624         PR target/65103
17625         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
17626         register.
17628 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
17630         PR target/65044
17631         * toplev.c (process_options): Restrict Pointer Bounds Checker
17632         usage with Address Sanitizer.
17634 2015-03-12  Richard Biener  <rguenther@suse.de>
17636         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
17637         to split on.
17638         * omp-low.c (expand_omp_taskreg): Split block before removing
17639         the stmt.
17640         (expand_omp_target): Likewise.
17641         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
17642         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
17643         stmt to split_block.
17645 2015-03-12  Tom de Vries  <tom@codesourcery.com>
17647         PR rtl-optimization/64895
17648         * lra-lives.c (check_pseudos_live_through_calls): Use
17649         actual_call_used_reg_set instead of call_used_reg_set, if available.
17651 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
17653         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
17654         (cgraph_node::remove): Likewise.
17655         (cgraph_node::get_untransformed_body): Likewise.
17656         * varpool.c (varpool_node::remove): Likewise.
17657         (varpool_node::get_constructor): Add sanity check.
17659 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
17661         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
17662         old GCC versions.
17663         (-fabi-compat-version): Likewise.
17664         (-ffriend-injection): Likewise.
17665         (-Wdeclaration-after-statement): Likewise.
17666         (-fomit-frame-pointer): Likewise.
17667         (-ftree-coalesce-inlined-vars): Likewise.
17668         (-fvisibility=): Likewise.
17669         * doc/extend.texi (Typeof): Likewise.
17670         (Zero Length): Likewise.
17671         (Escaped Newlines): Likewise.
17672         (Compound Literals): Likewise.
17673         (Function Attributes): Likewise.
17674         (Label Attributes): Likewise.
17675         (Type Attributes): Likewise.
17676         (Function Names): Likewise.
17677         (Other Builtins): Likewise.
17678         (Function Specific Option Pragmas): Likewise.
17679         (C++ Interface): Likewise.
17681 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
17683         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
17685 2015-03-11  Marek Polacek  <polacek@redhat.com>
17687         PR tree-optimization/65388
17688         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
17690 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
17692         PR target/65296
17693         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
17694         * configure: Regenerate.
17695         * config.in: Regenerate.
17696         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
17697         [-mn-flash]: Document it.
17698         [__AVR_ARCH__]: Document avrtiny.
17700         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
17701         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
17702         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
17704 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17706         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
17708 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17710         PR target/65242
17711         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
17712         allow reloads of PLUS in floating point/VSX registers.
17714 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
17716         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
17717         crypto_sha256_fast.
17718         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
17720 2015-03-11  Richard Biener  <rguenther@suse.de>
17722         PR tree-optimization/65310
17723         * tree-sra.c (build_ref_for_offset): Also preserve larger
17724         alignment.
17726 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
17728         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
17730 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
17732         PR target/65368
17733         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
17734         new define_expand.
17735         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
17737 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
17739         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
17740         (sem_function::equals_wpa): ... here.
17742 2015-03-10  Marek Polacek  <polacek@redhat.com>
17743             Jakub Jelinek  <jakub@redhat.com>
17745         PR sanitizer/65367
17746         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
17747         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
17748         separately.
17750 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
17752         PR target/65286
17753         * config/rs6000/t-linux: For powerpc64* target set
17754         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
17756 2015-03-10  Richard Biener  <rguenther@suse.de>
17758         PR middle-end/44563
17759         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
17760         for redirect_all_calls.
17762 2015-03-10  Marek Polacek  <polacek@redhat.com>
17764         * gdbinit.in (pcfun): Define and document.
17766 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
17768         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
17769         of libgomp-plugin.h.
17770         (find_target_compiler): Support a case when the path to gcc is
17771         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
17772         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
17773         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
17774         libgomp-plugin.h.
17775         (main): Use GCC_INSTALL_NAME as target_driver_name.
17776         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
17777         define.
17778         (mkoffload.o): Remove obsolete include path and defines.
17779         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
17781 2015-03-10  Richard Biener  <rguenther@suse.de>
17783         PR middle-end/63155
17784         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
17785         * tree-ssa-coalesce.c: Include timevar.h.
17786         (attempt_coalesce): Handle graph being NULL.
17787         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
17788         Split out abnormal coalescing to ...
17789         (perform_abnormal_coalescing): ... this function.
17790         (coalesce_ssa_name): Perform abnormal coalescing without computing
17791         live/conflict.
17792         (verify_ssa_coalescing_worker): New function.
17793         (verify_ssa_coalescing): Likewise.
17795 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
17797         PR target/65296
17798         * config.gcc (extra_options) [avr]: Remove.
17799         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
17800         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
17801         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
17803         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
17804         (-mmcu=): Add Var and MissingArgError properties.
17805         (-march=): Remove.
17806         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
17807         * config/avr/t-multilib: Regenerate.
17808         * config/avr/specs.h: New file.
17809         * config/avr/driver-avr.c: New file.
17810         * config/avr/genopt.sh: Remove file.
17811         * config/avr/avr-tables.opt: Remove file.
17812         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
17813         * config/avr/avr-c.c: Same.
17814         * avr-arch.h: Same.
17815         (avr_current_device): Remove proto.
17816         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
17817         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
17818         (EXTRA_SPEC_FUNCTIONS): Define.
17819         (avr_devicespecs_file): New specs function proto.
17820         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
17821         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
17822         (avr_current_device): Remove definition and usage.
17823         (avr_set_core_architecture): New static function.
17824         (avr_option_override): Use it.
17825         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
17826         (mcu_name): New static array.
17827         (comparator, avr_archs_str, avr_mcus_str): New static functions.
17828         (avr_inform_devices, avr_inform_core_architectures): New functions.
17829         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
17830         (avrlibc.h) [WITH_AVRLIBC]: Include.
17831         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
17832         (print_mcu): Rewrite from scratch.
17833         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
17834         Forward to avr-specific specs defined in device-specs file.
17835         * config/avr/t-avr (driver-avr.o): New rule.
17836         (avr-devices.o): Depend on avr-arch.h.
17837         (avr-mcus): No more depend on avr-tables.opt.
17838         (avr-tables.opt): Remove rule.
17839         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
17841 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17843         * c-family/c.opt (fchkp-use-wrappers): New.
17844         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
17845         (chkp_wrap_function): New.
17846         (chkp_build_instrumented_fndecl): Support wrapped
17847         functions.
17848         * doc/invoke.texi (-fcheck-pointer-bounds): New.
17849         (-fchkp-check-incomplete-type): New.
17850         (-fchkp-first-field-has-own-bounds): New.
17851         (-fchkp-narrow-bounds): New.
17852         (-fchkp-narrow-to-innermost-array): New.
17853         (-fchkp-optimize): New.
17854         (-fchkp-use-fast-string-functions): New.
17855         (-fchkp-use-nochk-string-functions): New.
17856         (-fchkp-use-static-bounds): New.
17857         (-fchkp-use-static-const-bounds): New.
17858         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
17859         (-fchkp-check-read): New.
17860         (-fchkp-check-write): New.
17861         (-fchkp-store-bounds): New.
17862         (-fchkp-instrument-calls): New.
17863         (-fchkp-instrument-marked-only): New.
17864         (-fchkp-use-wrappers): New.
17865         (-static-libmpx): New.
17866         (-static-libmpxwrappers): New.
17868 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17870         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
17871         (CHKP_SPEC): Add wrappers library.
17872         * c-family/c.opt (static-libmpxwrappers): New.
17874 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17876         * config/i386/linux-common.h (LIBMPX_LIBS): New.
17877         (LIBMPX_SPEC): New.
17878         (CHKP_SPEC): New.
17879         * gcc.c (CHKP_SPEC): New.
17880         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
17881         * c-family/c.opt (static-libmpx): New.
17883 2015-03-10  Richard Biener  <rguenther@suse.de>
17885         PR middle-end/44563
17886         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
17887         for compare_type.
17888         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
17889         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
17890         (cgraph_add_edge_to_call_site_hash): Likewise.
17891         (cgraph_node::get_edge): Likewise.
17892         (cgraph_edge::set_call_stmt): Likewise.
17893         (cgraph_edge::remove_caller): Likewise.
17895 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
17897         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
17898         (callee_saved_gpr_regs_size): ... this.
17899         (callee_saved_regs_first_regno): Rename to ...
17900         (callee_saved_first_gpr_regno): ... this.
17901         (callee_saved_regs_last_regno) Rename to ...
17902         (callee_saved_last_gpr_regno): ... this.
17903         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
17904         variables.
17905         (nds32_initial_elimination_offset): Likewise.
17906         (nds32_expand_prologue): Likewise.
17907         (nds32_expand_epilogue): Likewise.
17908         (nds32_expand_prologue_v3push): Likewise.
17909         (nds32_expand_epilogue_v3pop): Likewise.
17910         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
17911         Adjust renamed variables.
17912         (nds32_output_stack_pop): Likewise.
17914 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17916         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
17917         code in comment.
17919 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
17921         PR rtl-optimization/65321
17922         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
17923         than shift mode.
17924         * var-tracking.c (use_narrower_mode): Likewise.
17926 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
17928         PR tree-optimization/65355
17929         * varasm.c (notice_global_symbol): Do not produce RTL.
17930         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
17931         anchor.
17932         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
17933         check for section anchors.
17935 2015-03-10  Alan Modra  <amodra@gmail.com>
17937         PR target/65286
17938         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
17939         to be single-arch by default.  Set cpu_is_64bit for powerpc64
17940         given --with-cpu=native.
17941         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
17942         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
17943         and powerpc64le.
17944         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
17945         rs6000_isa_flags rather than TARGET_64BIT.
17947 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
17948             Kaz Kojima  <kkojima@gcc.gnu.org>
17950         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
17952 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
17954         PR lto/65361
17955         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
17956         on a TREE_BINFO, instead use BINFO_TYPE.
17958 2015-03-09  Richard Biener  <rguenther@suse.de>
17960         PR middle-end/65270
17961         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
17962         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
17963         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
17964         of that.  When comparing dereferences compare alignment.
17965         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
17967 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
17969         * ipa-inline-analysis.c (check_callers): Check
17970         node->can_remove_if_no_direct_calls_and_refs_p.
17971         (growth_likely_positive): Reorganize to call
17972         can_remove_if_no_direct_calls_p later.
17973         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
17974         will_be_removed_from_program_if_no_direct_calls_p): Add
17975         will_inline parameter.
17976         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
17977         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
17978         Handle inliner case correctly.
17980 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17982         PR tree-optimization/63743
17983         * cfgexpand.c (reorder_operands): Also reorder if only second operand
17984         had its definition forwarded by TER.
17986 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
17988         PR lto/65316
17989         * ipa-utils.h (types_odr_comparable): Add strict argument.
17990         * ipa-devirt.c: Fix whitespace;
17991         (odr_hasher): Remove.
17992         (odr_name_hasher, odr_vtable_hasher): New hashers.
17993         (can_be_name_hashed_p): New predicate.
17994         (hash_type_name): remove.
17995         (hash_odr_name): New.
17996         (odr_name_hasher::hash): new.
17997         (can_be_vtable_hashed_p): New.
17998         (hash_odr_vtable): New.
17999         (odr_vtable_hasher::hash): New.
18000         (types_same_for_odr): Add strict parameter.
18001         (types_odr_comparable): Likewise.
18002         (odr_name_hasher::equal): New.
18003         (odr_vtable_hasher::equal): New.
18004         (odr_name_hasher::remove): New.
18005         (odr_hash_type): Change to hash_table<odr_name_hasher>.
18006         (odr_vtable_hash_type): New.
18007         (odr_vtable_hash): New.
18008         (odr_subtypes_equivalent_p): Do strict comparsion.
18009         (add_type_duplicate): Merge type names; cleanup; avoid type
18010         duplicates.
18011         (register_odr_type): Initialize vtable hash.
18012         (build_type_inheritance_graph): Likewise
18013         (get_odr_type): Reorg to use two hashes.
18014         (dump_possible_polymorphic_call_targets): Move sanity check after debug
18015         output.
18016         (ipa_devirt): Dump type_inheritance_graph.
18017         (types_same_for_odr): Add strict mode.
18019 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18021         PR ipa/65334
18022         * cgraph.h (symtab_node): Add definition_alignment,
18023         can_increase_alignment_p and increase_alignment.
18024         * symtab.c (symtab_node::can_increase_alignment_p,
18025         increase_alignment_1, symtab_node::increase_alignment,
18026         symtab_node::definition_alignment): New.
18027         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
18028         can_increase_alignment_p.
18029         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
18030         * tree-vect-stmts.c (ensure_base_align): Likewise.
18031         * varasm.c (function_section_1): Use definition_alignment.
18032         (assemble_start_function): Likewise.
18033         (emit_local): likewise.
18034         (build_constant_desc): Likewsie.
18035         (output_constant_def_contents): Likewise.
18036         (place_block_symbol): Likewise.
18037         (output_object_block): Likewise.
18039 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18041         PR ipa/65316
18042         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
18043         when outputting debug.
18045 2015-03-07  Marek Polacek  <polacek@redhat.com>
18046             Martin Uecker  <uecker@eecs.berkeley.edu>
18048         PR sanitizer/65280
18049         * doc/invoke.texi: Update description of -fsanitize=bounds.
18051 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
18053         * tree-ssa-phiopt.c (neg_replacement): Remove.
18054         (tree_ssa_phiopt_worker): Remove negate optimization.
18056 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18058         PR ipa/65302
18059         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
18061 2015-03-06  Richard Biener  <rguenther@suse.de>
18063         PR middle-end/64928
18064         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
18065         and liveout_obstack members.
18066         (calculate_live_on_exit): Remove.
18067         (calculate_live_ranges): Change declaration.
18068         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
18069         (new_tree_live_info): Adjust.
18070         (calculate_live_ranges): Delete livein when not wanted.
18071         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
18072         Deal with partly deleted live info.
18073         (loe_visit_block): Remove temporary bitmap by using
18074         bitmap_ior_and_compl_into.
18075         (live_worklist): Adjust accordingly.
18076         (calculate_live_on_exit): Make static.
18077         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
18078         we do not need livein.
18080 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
18082         * real.c (real_from_string): Fix typo in assertion.
18084 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
18086         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
18087         the patch.
18089 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18091         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
18093 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
18095         PR target/64342
18096         * lra-assigns.c (find_hard_regno_for): Rename to
18097         find_hard_regno_for_1.  Add a new parameter.
18098         (find_hard_regno_for): New function using find_hard_regno_for_1.
18100 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18102         PR rtl-optimization/65067
18103         * expmed.c (store_bit_field, extract_bit_field): Reworked the
18104         strict volatile bitfield handling.
18106 2015-03-05  Martin Liska  <mliska@suse.cz>
18108         PR ipa/65318
18109         * ipa-icf.c (sem_variable::equals): Compare variables types.
18111 2015-03-05  Richard Henderson  <rth@redhat.com>
18113         PR target/65121
18114         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
18115         correctly check weak symbol binding.
18117 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
18119         PR middle-end/65315
18120         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
18121         needed alignment.
18123 2015-03-05  Martin Liska  <mliska@suse.cz>
18125         * ipa-inline.c (inline_small_functions): Set default value to
18126         prevent warning during bootstrap.
18127         * tree.h: Add pragma guard that ignores false positives during
18128         bootstrap.
18130 2015-03-05  Richard Biener  <rguenther@suse.de>
18132         PR tree-optimization/65310
18133         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18134         Properly preserve alignment of the base of the access.
18136 2015-03-05  Richard Biener  <rguenther@suse.de>
18138         PR ipa/65270
18139         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
18140         Compare dependence info.
18142 2015-03-05  Richard Biener  <rguenther@suse.de>
18144         PR middle-end/65233
18145         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
18146         tree-into-ssa.h.
18147         (walk_ssa_copies): Revert last chage.  Instead do not walk
18148         SSA names registered for SSA update.
18150 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18152         PR ipa/65270
18153         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
18154         vtable references for their containing type.
18155         (sem_function::equals_wpa): Compare TYPE_RESTRICT
18156         and type attributes.
18158 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
18160         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
18161         before negating it.
18162         * stor-layout.c (finalize_record_size): Revert latest change.
18164 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
18166         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
18168 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18170         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
18171         for correct comdat handling.
18172         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18173         Likewise.
18174         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
18175         (used_from_object_file_p_worker): Remove.
18176         (cgraph_node::only_called_directly_or_alised): Add
18177         used_from_object_file_p.
18178         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
18179         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
18180         can_remove_if_no_direct_calls_and_refs_p.
18182 2015-03-04  Nick Clifton  <nickc@redhat.com>
18184         * config/rl78/rl78.h (enum reg_class): Remove real registers from
18185         General register class.
18186         * config/rl78/rl78-real.md: Replace general register constraints
18187         with real+virtual register constraints.
18189 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18191         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
18192         from checking for -mhtm option.
18194 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18196         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
18197         (struct ipa_sra_check_caller_data): Add has_thunk field.
18198         (ipa_sra_check_caller): Check for thunk.
18199         (ipa_sra_preliminary_function_checks): Give up on function with
18200         thunks.
18201         (ipa_early_sra): Use call_for_symbol_and_aliases.
18203 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
18205         PR target/65249
18206         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
18207         called for __stack_chk_guard symbol.
18209 2015-03-03  DJ Delorie  <dj@redhat.com>
18211         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
18212         inc/dec.
18213         (*addhi3_real): Likewise.
18214         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
18215         pattern to match incrementing memory.
18216         * config/rl78/predicates.md (rl78_1_2_operand): New.
18217         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
18218         it's the same and only mem.
18219         (rl78_alloc_physical_registers_op2): If there's effectively only
18220         one MEM, transcode it into HL.
18221         (rl78_far_p): Reject addresses that aren't legitimate.
18223 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18225         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
18226         negating it.
18228         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
18230 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
18232         Implement call0 ABI for xtensa
18233         * config/xtensa/constraints.md ("a" constraint): Include stack
18234         pointer in case of call0 ABI.
18235         ("q" constraint): Make empty in case of call0 ABI.
18236         ("D" constraint): Include stack pointer in case of call0 ABI.
18237         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
18238         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
18239         prototypes.
18240         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
18241         variable.
18242         (xtensa_regno_to_class): Make it a local variable in the
18243         function xtensa_regno_to_class.
18244         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
18245         macro, function prototype and implementation.
18246         (reg_nonleaf_alloc_order): Make it a local variable in the
18247         function order_regs_for_local_alloc.
18248         (xtensa_conditional_register_usage): New function.
18249         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
18250         (xtensa_valid_move): Allow direct moves to stack pointer
18251         register in call0 ABI.
18252         (xtensa_setup_frame_addresses): Only spill register windows in
18253         windowed ABI.
18254         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
18255         call0 ABI respectively.
18256         (xtensa_function_arg_1): Only mark a7 register for copying in
18257         windowed ABI.
18258         (xtensa_call_save_reg): New function.
18259         (compute_frame_size): Add space for callee saved register
18260         storage to the frame size in call0 ABI.
18261         (xtensa_expand_prologue): Generate code to set up stack frame
18262         and save callee-saved registers in call0 ABI.
18263         (xtensa_expand_epilogue): New function.
18264         (xtensa_set_return_address): New function.
18265         (xtensa_return_addr): Calculate return address in call0 ABI.
18266         (xtensa_builtin_saveregs): Only mark a7 register for copying and
18267         emit copying code in windowed ABI.
18268         (order_regs_for_local_alloc): Add preferred register allocation
18269         order for non-leaf function in call0 ABI.
18270         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
18271         (xtensa_asm_trampoline_template): Add trampoline generation for
18272         call0 ABI.
18273         (xtensa_trampoline_init): Add trampoline initialization for
18274         call0 ABI.
18275         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
18276         functions.
18277         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
18278         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
18279         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
18280         ABI call-used registers.
18281         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
18282         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
18283         call0 ABI.
18284         (REG_CLASS_CONTENTS): Include all registers into the preferred
18285         reload registers set, adjust the set in the
18286         xtensa_conditional_register_usage.
18287         (xtensa_regno_to_class): Drop variable declaration.
18288         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
18289         function.
18290         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
18291         respectively.
18292         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
18293         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
18294         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
18295         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
18296         location in call0 ABI.
18297         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
18298         stack adjustment size when handling exception.
18299         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
18300         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
18301         definitions.
18302         ("return" pattern): Generate ret.n/ret in call0 ABI.
18303         ("epilogue" pattern): Expand epilogue.
18304         ("nonlocal_goto" pattern): Use default in call0 ABI.
18305         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
18306         emit eh_set_a0_* depending on ABI.
18307         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
18308         ("eh_set_a0_call0", "blockage"): New patterns.
18310 2015-03-03  Martin Liska  <mliska@suse.cz>
18312         PR ipa/65287
18313         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
18315 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18317         PR 65138/target
18318         * config/rs6000/rs6000-tables.opt: Regenerate table.
18320 2015-03-03  Renlin Li  <renlin.li@arm.com>
18322         * doc/md.texi (@item ^): Change ? into ^.
18324 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18326         * doc/tm.texi: Regenerated.
18328 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
18330         * builtins.c (expand_builtin_return_addr): Add
18331         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
18332         surrounding #ifdef.
18333         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
18334         definition to 1.
18335         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
18336         Likewise.
18337         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
18338         undefined.
18339         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
18340         paragraph.
18342 2015-03-03  Martin Jambor  <mjambor@suse.cz>
18343             Eric Botcazou  <ebotcazou@adacore.com>
18345         * tree-sra.c (ipa_sra_check_caller_data): New type.
18346         (has_caller_p): Removed.
18347         (ipa_sra_check_caller): New function.
18348         (ipa_sra_preliminary_function_checks): Use it.
18350 2015-03-03  Martin Liska  <mliska@suse.cz>
18352         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
18353         instead of if branch.
18355 2015-03-03  Martin Liska  <mliska@suse.cz>
18357         PR ipa/65282
18358         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
18360 2015-03-23  Jeff Law  <law@redhat.com>
18362         PR tree-optimization/65241
18363         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
18364         hash table if INSERT is true.
18366 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
18368         PR target/65296
18369         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
18371 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
18373         PR target/64331
18374         * config/avr/avr.c (context.h, tree-pass.h): Include them.
18375         (avr_pass_data_recompute_notes): New static variable.
18376         (avr_pass_recompute_notes): New class.
18377         (avr_register_passes): New static function.
18378         (avr_option_override): Call it.
18380 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
18382         Fix various problems with specs file generation.
18384         PR target/65296
18385         * config.gcc (extra_gcc_objs) [avr]: Remove.
18386         * config/avr/driver-avr.c: Remove file.
18387         * config/avr/t-avr (driver-avr.o): Remove rule.
18388         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
18389         INCLUDES to build.  Depend on TM_H.
18390         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
18391         build warnings.  Fix non-matching types and non-existing %-codes.
18392         (tm.h): Include.
18393         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
18394         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
18395         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
18396         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
18397         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
18398         (LIBGCC_SPEC): Remove definitions.
18400 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18402         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
18403         to create a register in testing mode.
18405 2015-03-03  Martin Liska  <mliska@suse.cz>
18406             Jan Hubicka  <hubicka@ucw.cz>
18408         PR ipa/65263
18409         * cgraph.c (cgraph_node::has_thunk_p): New function.
18410         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
18411         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
18412         (sem_function::merge): Assert is changed.
18414 2015-03-03  Martin Liska  <mliska@suse.cz>
18415             Martin Jambor  <mjambor@suse.cz>
18417         PR ipa/65087
18418         * ipa-icf.c (sem_item_optimizer::execute): Change function
18419         return value to boolean.
18420         (sem_item_optimizer::merge_classes): Likewise.
18421         (ipa_icf_driver): Return TODO_remove_functions in case there's
18422         a merge operation processed.
18423         * ipa-icf.h: Change function return value to boolean.
18425 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18427         PR 65138/target
18428         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
18429         processor type for 64-bit little endian PowerPC.
18431         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18432         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
18433         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
18434         printing built-in mask so it does not pass NULL pointers.
18436         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
18437         -mcpu=powerpc64le.
18439 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
18441         PR target/58158
18442         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
18443         !ISA_HAS_FP_CONDMOVE.
18445 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
18447         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
18448         reload_completed.
18450 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
18452         * doc/invoke.texi (Options for Code Generation Conventions):
18453         Fix URL of DSO paper.
18455 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
18457         PR ipa/65130
18458         * ipa-inline.c (check_callers): Looks for recursion.
18459         (inline_to_all_callers): Give up on uninlinable or recursive edges.
18460         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
18461         summary of inline clones.
18462         (do_estimate_growth_1): Fix recursion check.
18464 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
18466         PR ipa/64988
18467         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
18468         comdat groups.
18470 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
18471             Aldy Hernandez  <aldyh@redhat.com>
18473         PR lto/65276
18474         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
18475         when checking TYPE_BINFO.
18477 2015-03-02  Richard Biener  <rguenther@suse.de>
18479         PR ipa/65270
18480         * ipa-icf-gimple.c: Include builtins.h.
18481         (func_checker::compare_memory_operand): Compare base alignment.
18483 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
18485         PR target/65184
18486         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
18487         are never passed by reference.
18489 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
18491         PR target/65183
18492         * tree-chkp.c (chkp_check_lower): Don't check against
18493         zero bounds for already instrumented functions.
18494         (chkp_check_upper): Likewise.
18495         (chkp_fini): Clean pass local data to avoid wrong reusage.
18497 2015-02-28  Martin Liska  <mliska@suse.cz>
18498             Jan Hubicka  <hubicka@ucw.cz>
18500         * ipa-icf.c (sem_variable::equals): Improve debug output;
18501         get variable constructor.
18502         (sem_variable::parse): Do not filter out too early; give up on
18503         volatile and register vars.
18504         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
18505         variables.
18506         * ipa-icf.h (sem_variable::init): Do not set ctor.
18507         (sem_variable::ctor): Remove.
18509 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
18511         PR middle-end/65233
18512         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
18514 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18516         * ipa-icf.c: Include stor-layout.h
18517         (sem_function::compare_cgraph_references): Rename to ...
18518         (sem_item::compare_cgraph_references): ... this one.
18519         (sem_variable::equals_wpa): New function
18520         (sem_variable::equals): Do not check stuff already verified by
18521         equals_wpa.
18522         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
18523         * ipa-icf.h (sem_item): Add compare_cgraph_references.
18524         (sem_function): Remove compare_cgraph_references.
18525         (sem_variable): Turns equals_wpa into non-inline.
18527 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18529         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
18530         (sem_item::add_expr): New function.
18531         (sem_function::hash_stmt): Handle operands of most statements.
18532         (sem_variable::get_hash): Hash the actual constructor.
18533         * ipa-icf.h (sem_item): Add add_expr.
18534         (sem_function): Update prototype of hash_stmt
18536 2015-02-28  Martin Liska  <mliska@suse.cz>
18537             Jan Hubicka  <hubicka@ucw.cz>
18539         PR ipa/65245
18540         * ipa-icf-gimple.c (func_checker::compare_function_decl):
18541         Remove.
18542         (func_checker::compare_variable_decl): Skip symtab vars.
18543         (func_checker::compare_cst_or_decl): Update.
18544         * ipa-icf.c (sem_function::parse): Do not consider aliases.
18545         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
18546         use correct symtab predicates.
18547         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
18548         (sem_variable::parse):  Update comment.
18549         (sem_item_optimizer::build_graph): Consider ultimate aliases
18550         for references.
18552 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18554         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
18555         of OBJ_TYPE_REF.
18557 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18559         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
18560         (sem_variable::merge) Likewise.
18562 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18564         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
18565         target; also match flag_ipa_devirt.
18567 2015-03-01  Martin Liska  <mliska@suse.cz>
18568             Jan Hubicka  <hubicka@ucw.cz>
18570         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
18571         Validate variable alignment.
18572         * ipa-icf.c (sem_function::equals_private): Be more precise
18573         about non-common function attributes.
18574         (sem_variable::equals): Likewise.
18576 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18578         PR ipa/65237
18579         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
18580         across COMDAT group boundary.
18582 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18584         PR ipa/65232
18585         * ipa-icf.c (clear_decl_rtl): New function.
18586         (sem_function::merge): Clear RTL before forming alias.
18587         (sem_variable::merge): Clear RTL before forming alias.
18589 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18591         PR ipa/65236
18592         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
18594 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
18596         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
18597         to neon_to_gp<q>.
18599 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
18601         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
18602         a typo in the description.
18604 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
18606         PR target/64317
18607         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
18608         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
18609         * lra-constraints.c: Include "params.h".
18610         (EBB_PROBABILITY_CUTOFF): Use
18611         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
18612         (lra_inheritance): Use '<' instead of '<=' for
18613         EBB_PROBABILITY_CUTOFF.
18614         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
18615         Document change.
18617 2015-02-27  Martin Liska  <mliska@suse.cz>
18619         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
18620         vector length condition.
18622 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
18624         * doc/extend.texi (x86 transactional memory intrinsics):
18625         Reorganize discussion of _xbegin.  Clarify that the return
18626         value is a bit mask.  Expand example and move to end of section.
18628 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
18629             Aldy Hernandez  <aldyh@redhat.com>
18631         PR rtl-optimization/65220
18632         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
18634 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
18636         PR target/65032
18637         * lra-remat.c (update_scratch_ops): New.
18638         (do_remat): Call it.
18639         * lra.c (lra_register_new_scratch_op): New. Take code from ...
18640         (remove_scratches): ... here.
18641         * lra-int.h (lra_register_new_scratch_op): New prototype.
18643 2015-02-27  Marek Polacek  <polacek@redhat.com>
18645         PR c/65040
18646         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
18647         -Wformat-signedness anymore.
18649 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18651         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
18652         function.
18653         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
18655 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18657         * config/s390/s390.c (enum s390_builtin):
18658         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
18659         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
18660         (s390_init_builtins): Generate new builtin functions.
18661         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
18662         (s390_sfpc, s390_efpc): New pattern definitions.
18664 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18666         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
18667         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
18668         (s390_builtin_decls): New array.
18669         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
18670         (s390_builtin_decl): New function.
18671         (TARGET_BUILTIN_DECL): Define macro.
18673 2015-02-27  Richard Biener  <rguenther@suse.de>
18675         PR middle-end/63175
18676         * builtins.c (get_object_alignment_2): Make sure to re-apply
18677         the ANDed mask after recursing to its operand gets us a new
18678         misalignment bit position.
18680 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
18681             Martin Liska  <mliska@suse.cz>
18683         PR bootstrap/65150
18684         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
18685         Use address_matters_p.
18686         (redirect_all_callers, set_addressable): New functions.
18687         (sem_function::merge): Reorganize and fix merging issues.
18688         (sem_variable::merge): Likewise.
18689         (sem_variable::compare_sections): Remove.
18690         * common.opt (fmerge-all-constants, fmerge-constants): Remove
18691         Optimization flag.
18692         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
18693         redirect them.
18694         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
18695         decl is used.
18696         (address_matters_1): New function.
18697         (symtab_node::address_matters_p): New function.
18698         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
18699         check for merged flag.
18700         * cgraph.h (address_matters_p): Declare.
18701         (symtab_node::address_taken_from_non_vtable_p): Remove.
18702         (symtab_node::address_can_be_compared_p): New method.
18703         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
18704         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
18705         Remove.
18706         (comdat_can_be_unshared_p_1) Use address_matters_p.
18707         (update_vtable_references): Fix formating.
18708         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
18709         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
18710         * cgraphclones.c: Preserve merged and icf_merged flags.
18712 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
18714         * doc/extend.texi (Function Attributes): Fix spelling and typos.
18715         (Label Attributes): Likewise.
18716         (Cilk Plus Builtins): Likewise.
18717         (ARC SIMD Built-in Functions): Likewise.
18718         (ARM C Language Extensions (ACLE)): Likewise.
18719         (PowerPC Built-in Functions): Likewise.
18720         (PowerPC Hardware Transactional Memory Built-in Functions):
18721         Likewise.
18723 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
18725         PR tree-optimization/65216
18726         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
18727         new stmt and new SSA_NAME for lhs whenever the arguments have
18728         changed and weren't just swapped.  Fix comment typo.
18730         PR tree-optimization/65215
18731         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
18732         for PDP endian targets.
18733         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
18734         Fix up formatting issues.
18735         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
18736         size is smaller than the original, adjust MEM_REF offset by the
18737         difference of sizes.  Use is_gimple_mem_ref_addr instead of
18738         is_gimple_min_invariant test to avoid adding address temporaries.
18740 2015-02-26  Martin Liska  <mliska@suse.cz>
18741             Jan Hubicka  <hubicka@ucw.cz>
18743         PR ipa/64693
18744         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
18745         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
18746         (sem_item_optimizer::process_cong_reduction): Include division by
18747         sensitive references.
18748         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
18749         * ipa-ref.c (ipa_ref::address_matters_p): New function.
18750         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
18752 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
18754         PR target/65192
18755         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
18756         Remove.
18757         * config/avr/avr.c: Same.
18758         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
18759         Refuse any constant address not in 0..0xbf.
18760         * config/avr/avr.md (*mov<mode>, *movsf): Remove
18761         tiny_valid_direct_memory_access_range from insn conditions.
18762         (mov<mode>): Don't special-case expansion of avrtiny addresses.
18764 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
18766         PR target/61142
18767         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
18768         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
18769         * config/sh/predicates.md (const_logical_operand): New predicate.
18770         * config/sh/sh.md: Add new peephole2 patterns.
18772 2015-02-26  Marek Polacek  <polacek@redhat.com>
18774         PR ipa/65008
18775         * ipa-inline.c (early_inliner): Recompute inline parameters.
18777 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18779         PR target/65171
18780         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
18781         instructions with TImode operands are included in the analysis.
18783 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
18785         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
18786         of an EDGE_FSM_THREAD.
18788 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18790         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
18792 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
18794         PR debug/46102
18795         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
18797 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
18799         PR tree-optimization/65048
18800         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
18801         (thread_through_all_blocks): Call valid_jump_thread_path.
18802         Remove invalid FSM jump-thread paths.
18804 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
18806         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
18807         (ipa_write_optimization_summaries): Likewise.
18808         * tree-streamer.h: Include data-streamer.h.
18809         (streamer_mode_table): Declare extern variable.
18810         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
18811         * lto-streamer-out.c (lto_output_init_mode_table,
18812         lto_write_mode_table): New functions.
18813         (produce_asm_for_decls): Call lto_write_mode_table when streaming
18814         offloading LTO.
18815         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
18816         (lto_create_simple_input_block): Add mode_table argument to the
18817         lto_input_block constructors.
18818         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
18819         Likewise.
18820         * data-streamer-in.c (string_for_index): Likewise.
18821         * ipa-inline-analysis.c (inline_read_section): Likewise.
18822         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
18823         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
18824         * lto-streamer-in.c (lto_read_body_or_constructor,
18825         lto_input_toplevel_asms): Likewise.
18826         (lto_input_mode_table): New function.
18827         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
18828         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
18829         Use bp_pack_machine_mode.
18830         * real.h (struct real_format): Add name field.
18831         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
18832         (class lto_input_block): Add mode_table member.
18833         (lto_input_block::lto_input_block): Add mode_table_ argument,
18834         initialize mode_table.
18835         (struct lto_file_decl_data): Add mode_table field.
18836         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
18837         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
18838         unpack_ts_decl_common_value_fields,
18839         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
18840         * tree-streamer.c (streamer_mode_table): New variable.
18841         * real.c (ieee_single_format, mips_single_format,
18842         motorola_single_format, spu_single_format, ieee_double_format,
18843         mips_double_format, motorola_double_format,
18844         ieee_extended_motorola_format, ieee_extended_intel_96_format,
18845         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
18846         ibm_extended_format, mips_extended_format, ieee_quad_format,
18847         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
18848         decimal_single_format, decimal_double_format, decimal_quad_format,
18849         ieee_half_format, arm_half_format, real_internal_format): Add name
18850         field.
18851         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
18853 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
18855         PR target/65161
18856         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
18857         reordering for selective scheduling.
18859 2015-02-26  Terry Guo  <terry.guo@arm.com>
18861         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
18862         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
18863         (arm_arch_no_volatile_ce): Declare new global variable.
18864         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
18865         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
18866         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
18867         (TARGET_NO_VOLATILE_CE): New macro.
18868         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
18869         volatile memory access in IT block
18871 2015-02-25  Kai Tietz  <ktietz@redhat.com>
18873         PR tree-optimization/61917
18874         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
18875         that reduc_def_stmt is null.
18877 2015-02-25  Martin Liska  <mliska@suse.cz>
18879         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
18880         hard register variables.
18882 2015-02-25  Kai Tietz  <ktietz@redhat.com>
18884         PR target/64212
18885         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
18886         (symtab::noninterposable_alias): Likewise.
18888 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
18890         PR target/65167
18891         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
18892         bounds registers.
18893         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
18895 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
18897         PR target/64997
18898         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
18899         as split condition; force split via '#' in output pattern.
18901 2015-02-25  Richard Biener  <rguenther@suse.de>
18902             Kai Tietz  <ktietz@redhat.com>
18904         PR tree-optimization/61917
18905         * tree-vect-loop.c (vectorizable_reduction): Allow
18906         vect_internal_def without reduction to exit graceful.
18908 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
18910         PR target/65196
18911         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
18912         only with NONDEBUG_INSN_P.
18914 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
18916         Use variadic macros with avr-log.c.
18918         * config/avr/avr-protos.h (avr_vdump): New prototype.
18919         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
18920         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
18921         * config/avr/avr-log.c: Adjust comments.
18922         (avr_vdump): New function.
18923         (avr_vadump): Pass caller as 2nd argument instead of format string.
18924         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
18925         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
18927 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
18929         PR lto/64374
18930         * target.def (target_option_stream_in): New target hook.
18931         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
18932         targetm.target_option.post_stream_in if non-NULL.
18933         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
18934         * doc/tm.texi: Updated.
18935         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
18936         function.
18937         (TARGET_OPTION_POST_STREAM_IN): Redefine.
18939 2015-02-24  Jeff Law  <law@redhat.com>
18941         PR target/65117
18942         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
18943         of operand 0 and operand 2.
18944         (zero_cost_loop_end, loop_end): Similarly.
18946 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
18948         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
18949         CXX_MEM_STAT_INFO.
18951 2015-02-24  DJ Delorie  <dj@redhat.com>
18953         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
18954         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
18955         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
18956         instead of hardcoding SImode.
18958 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
18960         * omp-low.c (create_omp_child_function): Tag entrypoint
18961         functions with a special attribute.
18963 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
18965         PR target/65058
18966         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
18968 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
18970         PR rtl-optimization/65123
18971         * lra-remat.c (operand_to_remat): Check hard regs in insn
18972         definition too.
18974 2015-02-24  Nick Clifton  <nickc@redhat.com>
18976         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
18977         to the assembler.
18979 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
18981         PR libgomp/64625
18982         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
18983         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
18984         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
18985         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
18986         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
18987         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
18988         (BUILT_IN_GOACC_PARALLEL): Specify as
18989         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
18990         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
18991         * builtin-types.def
18992         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18993         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18994         Remove function types.
18995         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
18996         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
18997         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
18998         New function types.
19000 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
19002         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
19004 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
19006         PR tree-optimization/65170
19007         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
19008         if val[1] < 0, clear also val[2] and return 3.
19010 2015-02-24  Alan Modra  <amodra@gmail.com>
19012         PR target/65172
19013         * config/rs6000/rs6000.c (get_memref_parts): Only return true
19014         when *base is a reg.  Handle nested plus addresses.  Simplify
19015         pre_modify test.
19017 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
19019         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
19020         use natural alignment when optimizing for size.
19022 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
19024         PR target/65153
19025         * config/sh/sh.md (movsicc_true+3): Remove peephole.
19026         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
19027         * config/sh/sh.c (replace_n_hard_rtx): Remove.
19029 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
19031         PR fortran/63427
19032         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
19033         too big for a wide_int.  Implement missing wrapping operation.
19035 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
19037         PR target/65163
19038         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
19039         instead of const_int 4294901760.
19041 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
19043         * config/avr/t-avr: Fix typo in comment.
19045 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
19047         * doc/rtl.texi (fma): Clarify documentation.
19049 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
19051         PR debug/58123
19052         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
19053         over input_location.
19055 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19057         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
19058         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
19059         restrict alignments to absolute_biggest_alignment.
19060         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
19061         Define.
19062         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
19063         * doc/tm.texi: Regenerate.
19064         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
19066 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
19068         PR target/64172
19069         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
19071 2015-02-20  Richard Biener  <rguenther@suse.de>
19073         PR tree-optimization/65136
19074         * tree-ssa-propagate.c: Include cfgloop.h.
19075         (replace_phi_args_in): Avoid replacing loop latch edge PHI
19076         arguments with constants.
19078 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
19079             Martin Liska  <mliska@suse.cz>
19081         PR target/63892
19082         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
19083         don't try to create_thunk if stdarg_p.  If
19084         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
19085         redirect_callers if possible.
19086         (sem_item_optimizer::execute): Call unregister_hooks here...
19087         (ipa_icf_driver): ... instead of here.
19089 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19091         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
19092         Mark operand 0 as earlyclobber in 2nd alternative.
19093         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
19094         Write negated shift amount into QI lowpart operand 0 and use it
19095         in the shift step.
19096         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19098 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19100         * cgraph.h (clone_function_name_1): Declare.
19101         * cgraphclones.c (clone_function_name_1): New function.
19102         (clone_function_name): Use it.
19103         * lto-partition.c: Include "stringpool.h".
19104         (must_not_rename, maybe_rewrite_identifier)
19105         (validize_symbol_for_target): New static functions.
19106         (privatize_symbol_name): Use must_not_rename.
19107         (promote_symbol): Call validize_symbol_for_target.
19108         (lto_promote_cross_file_statics): Likewise.
19109         (lto_promote_statics_nonwpa): Likewise.
19111 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
19113         PR target/64452
19114         * config/avr/avr.md (pushhi_insn): New insn.
19115         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
19117 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19118             Jakub Jelinek  <jakub@redhat.com>
19120         * tree-streamer.c (preload_common_nodes): Don't preload
19121         TI_VA_LIST* for offloading.
19122         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
19123         in_lto_p.
19125 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
19127         * config/pa/pa.c (pa_emit_move_sequence): Always force
19128         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
19129         note on insn.
19131         * config/pa/pa.c (pa_reloc_rw_mask): New function.
19132         (TARGET_ASM_RELOC_RW_MASK): Define.
19133         (pa_cannot_force_const_mem): Revert previous change.
19135 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
19136             Jan Hubicka  <hubicka@ucw.cz>
19138         PR ipa/65028
19139         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
19140         across jump functions.
19142 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
19144         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
19146 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
19148         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
19150 2015-02-19  Richard Henderson  <rth@redhat.com>
19152         PR middle-end/65074
19153         * varasm.c (default_binds_local_p_2): Don't test node->definition;
19154         test DECL_EXTERNAL independent of symtab_node.
19156 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
19158         PR lto/65012
19159         * varpool.c (varpool_node::get_constructor): Return early
19160         if this->lto_file_data is NULL.
19162 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19164         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
19165         (rank_for_schedule_debug): Update.
19166         (ready_sort): Make static.  Move sorting logic to ...
19167         (ready_sort_debug, ready_sort_real): New static functions.
19168         (schedule_block): Sort both debug insns and real insns in preparation
19169         for ready list trimming.  Improve debug output.
19170         * sched-int.h (ready_sort): Remove global declaration.
19172 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
19174         * ipa-icf.c (sem_function::equals_private): Adjust.
19175         (sem_function::bb_dict_test): Take a vec<int> * instead of
19176         auto_vec<int>.
19177         * ipa-icf.h (bb_dict_test): Likewise.
19179 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19181         PR gcov-profile/64634
19182         * tree-eh.c (frob_into_branch_around): Fix up typos
19183         in function comment.
19184         (lower_catch): Put eh_seq resulting from EH lowering of
19185         the cleanup sequence after the cleanup rather than before it.
19187 2015-02-18  Tom de Vries  <tom@codesourcery.com>
19189         * common.opt (fstdarg-opt): New option.
19190         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
19191         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
19192         (@item -fstdarg-opt): New item.
19194 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19196         PR target/65064
19197         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
19198         for common symbols.
19200 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19202         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
19203         insn-modes.h.
19204         (ALL_HOST_OBJS): Add mkoffload.o.
19205         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
19207 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
19209         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
19210         (compare_virtual_tables): Be smarter about skipping typeinfos;
19211         do sane output on virtual table table mismatch.
19212         (warn_odr): Be ready for forward declarations of enums;
19213         output sane info on base mismatch and virtual table mismatch.
19214         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
19215         when only one type is polymorphic.
19216         (get_odr_type): Fix hashtable corruption.
19217         (dump_odr_type): Dump mangled names.
19219 2015-02-18  Richard Biener  <rguenther@suse.de>
19221         PR tree-optimization/65063
19222         * tree-predcom.c (determine_unroll_factor): Return 1 if we
19223         have replaced looparound PHIs.
19225 2015-02-18  Martin Liska  <mliska@suse.cz>
19227         * lto-streamer.c (lto_streamer_init): Encapsulate
19228         streamer_check_handled_ts_structures with checking macro.
19230 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19232         PR ipa/65087
19233         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
19234         section if !implicit_section.
19235         (cgraph_node::create_version_clone_with_body): Likewise.
19236         * trans-mem.c (ipa_tm_create_version): Likewise.
19238 2015-02-18  Richard Biener  <rguenther@suse.de>
19240         PR tree-optimization/62217
19241         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
19242         into BIVs.
19244 2015-02-18  Marek Polacek  <polacek@redhat.com>
19246         PR sanitizer/65081
19247         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
19248         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
19249         is in range [-16K, -1].  Don't issue run-time error if
19250         (ptr > ptr + offset).
19252 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
19254         * doc/install.texi (nvptx-*-none): New section.
19255         * doc/invoke.texi (Nvidia PTX Options): Likewise.
19256         * config/nvptx/nvptx.opt: Update.
19258         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
19259         (access_check): New functions, copied from
19260         config/i386/intelmic-mkoffload.c.
19261         (main): For non-installed testing, look in all COMPILER_PATHs for
19262         GCC_INSTALL_NAME.
19264         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
19266 2015-02-18  Andrew Pinski  <apinski@cavium.com>
19267             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19269         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
19270         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
19272 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
19274         * ipa-visibility.c (function_and_variable_visibility): Only
19275         check locality if node is not already local.
19276         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
19277         call_for_symbol_and_aliases instead of
19278         call_for_symbol_thunks_and_aliases.
19279         (ipa_inline): Likewise.
19280         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19281         first walk aliases.
19282         * ipa.c (symbol_table::remove_unreachable_nodes): Use
19283         call_for_symbol_and_aliases.
19284         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
19285         (ipa_propagate_frequency_1): Use it; use opt_for_fn
19286         (ipa_propagate_frequency): Update.
19287         (ipa_profile): Add opt_for_fn gueards.
19289 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
19291         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
19292         * doc/invoke.texi (SH options): Document it.
19293         * config/sh/sh.c (sh_insn_length_adjustment): Check
19294         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
19296 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
19298         * common.opt (fipa-cp-alignment): New.
19299         * ipa-cp.c (ipcp_store_alignment_results): Check
19300         flag_ipa_cp_alignment.
19301         * opts.c (default_options_table): Enable -fipa-cp-alignment for
19302         -O2.
19303         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
19304         * doc/invoke.texi: Document -fipa-cp-alignment.
19306 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
19308         PR target/64793
19309         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
19310         to nil.  Adjust comments.
19312 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
19314         * ipa-visibility.c (function_and_variable_visibility): Only
19315         check locality if node is not already local.
19316         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
19317         call_for_symbol_and_aliases instead of
19318         call_for_symbol_thunks_and_aliases.
19319         (ipa_inline): Likewise.
19320         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19321         first walk aliases.
19322         * ipa.c (symbol_table::remove_unreachable_nodes): Use
19323         call_for_symbol_and_aliases.
19324         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
19325         (ipa_propagate_frequency_1): Use it; use opt_for_fn
19326         (ipa_propagate_frequency): Update.
19327         (ipa_profile): Add opt_for_fn guards.
19329 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
19331         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
19332         skipping of "strange" tokens.
19334 2015-02-17  Jeff Law  <law@redhat.com>
19336         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
19337         obsolete comment.
19339 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
19341         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
19342         as forcing a HARD_DEP between instructions, thereby
19343         disallowing rewriting to break dependencies.
19345 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
19347         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
19348         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
19349         variables in boundary that have no inlitalizer encoded and are
19350         not aliases.
19351         * varasm.c (default_binds_local_p_2): External definitions do not
19352         count as definitions here.
19354 2015-02-16  Jeff Law  <law@redhat.com>
19356         PR tree-optimization/64823
19357         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
19358         statements.
19359         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
19360         threading through blocks with PHIs, but no statements.
19361         (thread_through_normal_block): Distinguish between blocks where
19362         we did not process all the statements and blocks with no statements.
19364 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
19365             James Greenhalgh  <james.greenhalgh@arm.com>
19367         PR ipa/64963
19368         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
19369         section if not linkonce.  Fix up formatting.
19370         (cgraph_node::create_version_clone_with_body): Copy section.
19371         * trans-mem.c (ipa_tm_create_version): Likewise.
19373 2015-02-16  Richard Biener  <rguenther@suse.de>
19375         PR tree-optimization/65077
19376         * tree-ssa-structalias.c (get_constraint_for_1): Handle
19377         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
19378         (find_func_aliases): Allow float values to carry pointers again.
19380 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
19382         * doc/install.texi (Specific): Reorder targets list to put
19383         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
19384         from the top menu.
19386 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
19387             David Edelsohn  <dje.gcc@gmail.com>
19389         PR target/65058
19390         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
19391         mapping class to external variable or function reference.
19392         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
19393         mapping class.
19395 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
19397         PR target/53348
19398         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
19399         ASM_WEAKEN_DECL if defined.
19401 2015-02-16  Richard Biener  <rguenther@suse.de>
19403         PR lto/65015
19404         * varasm.c (default_file_start): For LTO produced units
19405         emit <artificial> as file directive.
19407 2015-02-16  Richard Biener  <rguenther@suse.de>
19409         PR tree-optimization/63593
19410         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
19411         stmts and releasing SSA names until...
19412         (execute_pred_commoning): ... after processing all chains.
19414 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
19416         PR ipa/65059
19417         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
19418         external functions.
19420 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
19422         * doc/bugreport.texi: Adjust section titles throughout the file
19423         to use "Title Case".
19424         * doc/extend.texi: Likewise.
19425         * doc/gcov.texi: Likewise.
19426         * doc/implement-c.texi: Likewise.
19427         * doc/implement-cxx.texi: Likewise.
19428         * doc/invoke.texi: Likewise.
19429         * doc/objc.texi: Likewise.
19430         * doc/standards.texi: Likewise.
19431         * doc/trouble.texi: Likewise.
19433 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
19435         * cgraph.h (symtab_node::has_aliases_p): Simplify.
19436         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
19437         * tree.c (lookup_binfo_at_offset): Make static.
19438         (get_binfo_at_offset): Do not shadow offset; add explanatory
19439         comment.
19441 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
19443         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
19444         for all floading point loads and stores except those using a register
19445         index address.
19446         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
19447         to a register.
19449 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
19451         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
19452         (do_estimate_growth_1): Record if any uninlinable edge was seen.
19453         (estimate_growth): Handle uninlinable edges correctly.
19454         (check_callers): New.
19455         (growth_likely_positive): Handle aliases correctly.
19457 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
19459         * ipa-chkp.c: Use iterate_direct_aliases.
19460         * symtab.c (resolution_used_from_other_file_p): Move inline.
19461         (symtab_node::create_reference): Fix formating.
19462         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
19463         (symtab_node::iterate_reference): Move inline.
19464         (symtab_node::iterate_referring): Move inline.
19465         (symtab_node::iterate_direct_aliases): Move inline.
19466         (symtab_node::used_from_object_file_p_worker): Inline into ...
19467         (symtab_node::used_from_object_file_p): ... this one; move inline.
19468         (symtab_node::call_for_symbol_and_aliases): Move inline;
19469         use iterate_direct_aliases.
19470         (symtab_node::call_for_symbol_and_aliases_1): New method.
19471         (cgraph_node::call_for_symbol_and_aliases): Move inline;
19472         use iterate_direct_aliases.
19473         (cgraph_node::call_for_symbol_and_aliases_1): New method.
19474         (varpool_node::call_for_node_and_aliases): Rename to ...
19475         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
19476         use iterate_direct_aliases.
19477         (varpool_node::call_for_symbol_and_aliases_1): New method.
19478         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
19479         (ipa_discover_readonly_nonaddressable_var): Update.
19480         * ipa-devirt.c: Fix formating.
19481         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
19482         Move inline.
19483         (cgraph_node::call_for_symbol_and_aliases): Move inline.
19484         (cgraph_node::call_for_symbol_and_aliases_1): New function..
19485         * cgraph.h (used_from_object_file_p_worker): Remove.
19486         (resolution_used_from_other_file_p): Move inline.
19487         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
19488         (symtab_node::iterate_reference): Move inline.
19489         (symtab_node::iterate_referring): Move inline.
19490         (symtab_node::iterate_direct_aliases): Move inline.
19491         (symtab_node::used_from_object_file_p_worker): Inline into ...
19492         (symtab_node::used_from_object_file_p): Move inline.
19493         * tree-emutls.c (ipa_lower_emutls): Update.
19494         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
19495         (varpool_node::call_for_node_and_aliases): Remove.
19497 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
19499         PR tree-optimization/62209
19500         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
19501         op == range->exp, insert seq and gimplified code after labels
19502         instead of after the phi.
19504 2015-02-13  Jeff Law  <law@redhat.com>
19506         PR bootstrap/65060
19507         Revert my change for tree-optimization/64823.
19509 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
19511         PR tree-optimization/65053
19512         * tree-ssa-phiopt.c (value_replacement): When moving assign before
19513         cond, either reset VR on lhs or set it to phi result VR.
19515 2015-02-13  Jeff Law  <law@redhat.com>
19517         PR tree-optimization/64823
19518         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
19519         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
19520         threading through blocks with PHIs, but no statements.
19521         (thread_through_normal_block): Distinguish between blocks where
19522         we did not process all the statements and blocks with no statements.
19524         PR rtl-optimization/47477
19525         * match.pd (convert (plus/minus (convert @0) (convert @1): New
19526         simplifier to narrow arithmetic.
19528 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
19530         PR ipa/65028
19531         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
19532         polymorphic call info when type is not known to be preserved.
19534 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
19536         PR ipa/65028
19537         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
19538         (inline_call): Use it.
19540 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
19542         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
19543         GOMP_DEVICE_NVIDIA_PTX.
19545 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
19547         PR ipa/65034
19548         * stmt.c (emit_case_nodes): Use void_type_node instead of
19549         NULL_TREE as LABEL_DECL type.
19551 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
19553         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
19554         constraints.
19555         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
19556         symbolic references to data to be forced to constant memory on the
19557         SOM target.
19559 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
19561         PR tree-optimization/65002
19562         * tree-cfg.c (pass_data_fixup_cfg): Don't update
19563         SSA on start.
19564         * tree-sra.c (some_callers_have_no_vuse_p): New.
19565         (ipa_early_sra): Reject functions whose callers
19566         assume function is read only.
19568 2015-02-13  Richard Biener  <rguenther@suse.de>
19570         PR lto/65015
19571         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
19572         for LTO produced CUs.
19574 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
19576         PR tree-optimization/64705
19577         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
19578         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
19579         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
19580         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
19581         expand_simple_operations.
19583 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
19584             Richard Henderson  <rth@redhat.com>
19586         PR rtl/32219
19587         * cgraphunit.c (cgraph_node::finalize_function): Set definition
19588         before notice_global_symbol.
19589         (varpool_node::finalize_decl): Likewise.
19590         * varasm.c (default_binds_local_p_2): Rename from
19591         default_binds_local_p_1, add weak_dominate argument.  Use direct
19592         returns instead of assigning to local variable.  Unify varpool and
19593         cgraph paths via symtab_node.  Reject undef weak variables before
19594         testing visibility.  Reorder tests for simplicity.
19595         (default_binds_local_p): Use default_binds_local_p_2.
19596         (default_binds_local_p_1): Likewise.
19597         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
19598         via symtab_node.
19599         (default_elf_asm_output_external): Emit visibility when specified.
19601 2015-02-13  Alan Modra  <amodra@gmail.com>
19603         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
19604         code setting up r11 for out-of-line fp restore.
19606 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19608         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
19609         (muser-mode): Likewise.
19611 2015-02-13  Alan Modra  <amodra@gmail.com>
19613         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
19614         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
19616 2015-02-12  David Howells  <dhowells@redhat.com>
19618         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
19619         warning.
19620         * tree-ssa-uninit.c (dump_predicates): Likewise.
19621         * opts.c (print_filtered_help): Likewise.
19623 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
19625         * dwarf2out.c (output_die): Use "%s", name instead of name to
19626         avoid -Wformat-security warning.
19628         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
19629         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
19630         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
19631         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
19633 2015-02-12  Jason Merrill  <jason@redhat.com>
19635         * common.opt (-flifetime-dse): New.
19637 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
19639         PR sanitizer/65019
19640         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
19642         PR tree-optimization/65014
19643         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
19644         use original second operand of arg0 or arg1 instead of
19645         that adjusted by STRIP_NOPS.
19647 2015-02-11  Jeff Law  <law@redhat.com>
19649         PR target/63347
19650         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
19651         that needs to be queued, just queue it for a single cycle.
19653 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
19655         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
19656         bodies of thunks; comment on why.
19657         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
19658         symbols are extern.
19660 2015-02-11  Richard Henderson  <rth@redhat.com>
19662         PR sanitize/65000
19663         * tree-eh.c (mark_reachable_handlers): Mark source and destination
19664         regions of __builtin_eh_copy_values.
19666 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
19668         PR middle-end/65003
19669         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
19670         ultimate alias is MEM with SYMBOL_REF satisfying
19671         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
19672         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
19674 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
19676         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
19677         "diagnostic-core.h".
19678         (main): Initialize progname, and call diagnostic_initialize.
19680         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
19681         instead of __OPENMP_TARGET__.
19683         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
19684         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
19685         hard-coding PTX_ID.
19687 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
19689         * doc/sourcebuild.texi (pie_enabled): Document.
19691 2015-02-11  Martin Liska  <mliska@suse.cz>
19693         PR ipa/64813
19694         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
19695         a return value for call to a function that is noreturn.
19697 2015-02-11  Richard Biener  <rguenther@suse.de>
19699         PR lto/65015
19700         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
19701         and -fresolution.
19703 2015-02-11  Andrew Pinski  <apinski@cavium.com>
19705         PR target/64893
19706         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19707         Change the first argument type to size_type_node and add another
19708         size_type_node.
19709         (aarch64_simd_expand_builtin): Handle the new argument to
19710         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
19711         print an out when the first two arguments are not
19712         nonzero integer constants.
19713         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
19714         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
19716 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
19718         PR target/61925
19719         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
19720         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
19721         (ix86_set_current_function): Rewritten.
19722         (ix86_add_new_builtins): Temporarily clear current_target_pragma
19723         when creating builtin fndecls.
19725 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
19727         PR ipa/65005
19728         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
19729         function.
19730         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
19731         have no comdat group.
19732         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
19733         (lto_output_varpool_node): Always output alias info.
19734         (output_refs): Output refs of boundary aliases, too.
19735         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
19736         (output_symtab): Output call eges in thunks in boundary.
19737         (get_alias_symbol): Remove.
19738         (input_node, input_varpool_node): Do not special case weakrefs.
19739         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
19740         alias and thunks targets in the boundary; do not take removed symbols
19741         from their comdat groups.
19742         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
19743         (cgraph_node::global_info): Remove.
19744         (cgraph_node::rtl_info): Look through aliases and thunks.
19745         * cgrpah.h (global_info): Remove.
19746         (non_local_p): Remove.
19748 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
19749             Sandra Loosemore  <sandra@codesourcery.com>
19751         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
19752         to inline asm.  List dialects in proper order.
19754 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
19755             Sandra Loosemore  <sandra@codesourcery.com>
19757         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
19759 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
19761         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
19762         modified) reference to Solaris.
19764 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
19766         * doc/extend.texi (Extended Asm): Fix typos.
19768 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
19770         PR sanitizer/65004
19771         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
19773 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
19775         PR target/64661
19776         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
19777         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
19778         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
19779         * config/sh/constraints.md (Ara, Add): New constraints.
19780         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
19781         predicates.
19782         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
19783         atomic_mem_operand_0.  Don't use force_reg on the memory address.
19784         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
19785         Sra constraint.  Convert to insn_and_split.  Add workaround for
19786         PR 64974.
19787         (atomic_compare_and_swap<mode>_hard): Copy to
19788         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
19789         Use atomic_mem_operand_0 predicate.
19790         (atomic_compare_and_swap<mode>_soft_gusa,
19791         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
19792         AraAdd constraints.
19793         (atomic_compare_and_swap<mode>_soft_tcb,
19794         atomic_compare_and_swap<mode>_soft_imask,
19795         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
19796         atomic_mem_operand_0 predicate and SraSdd constraints.
19797         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
19798         constraint.
19799         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
19800         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
19801         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
19802         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
19803         force_reg on the memory address.
19804         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
19805         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
19806         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
19807         atomic_mem_operand_1 predicate and Sra constraint.
19808         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
19809         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
19810         Use atomic_mem_operand_1 predicate.
19811         (atomic_<fetchop_name><mode>_hard): Copy to
19812         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
19813         Use atomic_mem_operand_1 predicate.
19814         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
19815         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
19816         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
19817         insn_and_split.  Use atomic_mem_operand_1 predicate.
19818         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
19819         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
19820         Use atomic_mem_operand_1 predicate.
19821         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
19822         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
19823         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
19824         in generated insn with original mem operand before emitting the insn.
19825         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
19826         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
19827         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
19828         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
19829         Use atomic_mem_operand_1 predicate and AraAdd constraints.
19830         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
19831         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
19832         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
19833         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
19834         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
19835         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
19836         atomic_not_fetch<mode>_soft_tcb,
19837         atomic_<fetchop_name>_fetch<mode>_soft_imask,
19838         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
19839         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
19840         Use atomic_mem_operand_1 predicate and SraSdd constraints.
19842 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
19844         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
19845         and 3 earlyclobber operands.
19847 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
19849         * common.opt (fstack-reuse): Mark as optimization.
19851 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
19853         PR ipa/64982
19854         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
19856 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
19858         PR tree-optimization/64326
19859         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
19861 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
19863         PR gcov-profile/61889
19864         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
19866 2015-02-10  Richard Biener  <rguenther@suse.de>
19868         PR tree-optimization/64995
19869         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
19870         value we use is final.
19871         (visit_reference_op_store): Always valueize op.
19872         (visit_use): Properly valueize vuses.
19874 2015-02-10  Richard Biener  <rguenther@suse.de>
19876         PR tree-optimization/64909
19877         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
19878         pass a scalar-stmt count estimate to the cost model.
19879         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
19881 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
19883         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
19884         enabled by default together with var-tracking.
19886 2015-02-10  Nick Clifton  <nickc@redhat.com>
19888         * config/rl78/rl78.c: Remove DIV attribute code accidentally
19889         included in previous rl78 commit.
19891 2015-02-10  Richard Biener  <rguenther@suse.de>
19893         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
19894         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
19895         return the bitpack.
19897 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
19899         PR gcov-profile/61889
19900         * config.in: regenerate.
19901         * configure.in: Likewise.
19902         * configure.ac: Check for ftw.h.
19903         * gcov-tool.c: Check for ftw.h before using nftw.
19905 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
19907         PR lto/64076
19908         * ipa-visibility.c (update_visibility_by_resolution_info): Only
19909         assert when not in lto mode.
19911 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
19913         * ira-color.c (setup_left_conflict_sizes_p): Simplify
19914         initialization/assignment of conflict_size.
19916 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
19918         PR ipa/64978
19919         * ipa-cp.c (gather_caller_stats): Skip thunks.
19920         (propagate_constants_topo): Skip aliases.
19922 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
19924         PR target/64761
19925         * config/sh/sh.c (sh_option_override): Don't change
19926         -freorder-blocks-and-partition to -freorder-blocks even when
19927         unwinding is enabled.
19928         (sh_can_follow_jump): Return false if the followee jump is
19929         a crossing jump when -freorder-blocks-and-partition is specified.
19930         * config/sh/sh.md (*jump_compact_crossing): New insn.
19932 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
19933             Kaz Kojima  <kkojima@gcc.gnu.org>
19935         PR target/64761
19936         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
19937         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
19938         (sh_can_redirect_branch): Rename to ...
19939         (sh_can_follow_jump): ... this.  Constify argument types.
19940         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
19941         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
19942         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
19943         * doc/tm.texi: Regenerate.
19945 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
19947         PR sanitizer/64981
19948         * builtins.c (expand_builtin): Call targetm.expand_builtin
19949         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
19951 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19953         PR ipa/61548
19954         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
19956 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19958         PR ipa/63566
19959         * ipa-icf.c (set_local): New function.
19960         (sem_function::merge): Use it.
19962 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19964         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
19965         (add_type_duplicate): Fix comparison of BINFOs.
19967 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
19969         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
19970         on getting VOID pointer.
19972 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
19974         PR target/64979
19975         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
19976         va_list escapes.
19978 2015-02-09  Richard Biener  <rguenther@suse.de>
19980         * genmatch.c (replace_id): Copy expr_type.
19982 2015-02-09  Richard Biener  <rguenther@suse.de>
19984         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
19985         (streamer_write_tree_bitfields): Declare.
19986         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
19987         properly unpack padding.
19988         (unpack_value_fields): Inline ...
19989         (streamer_read_tree_bitfields): ... here.
19990         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
19991         and properly add padding bits.
19992         (streamer_pack_tree_bitfields): Fold into ...
19993         (streamer_write_tree_bitfields): ... this new function,
19994         exposing the bitpack object.
19995         * lto-streamer-out.c (lto_write_tree_1): Call
19996         streamer_write_tree_bitfields.
19998 2015-02-09  Richard Biener  <rguenther@suse.de>
20000         PR tree-optimization/54000
20001         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
20002         (struct ivopts_data): Add loop_loc member.
20003         (tree_ssa_iv_optimize_loop): Dump loop location.
20004         (create_new_ivs): Likewise, also dump number of IVs generated.
20006 2015-02-09  Martin Liska  <mliska@suse.cz>
20008         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
20009         just if not yet registered.
20010         (ipa_icf_generate_summary): Register callgraph hooks.
20012 2015-02-08  Andrew Pinski  <apinski@cavium.com>
20014         * config/aarch64/aarch64.c (gty_dummy): Delete.
20016 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20018         PR ipa/63566
20019         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
20020         (cgraph_node::local_p): Remove thunk related FIXME.
20022 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20024         PR ipa/63566
20025         * i386.c (ix86_function_regparm): Look through aliases to see if callee
20026         is local and optimized.
20027         (ix86_function_sseregparm): Likewise; also use target's SSE math
20028         settings; error out instead of silently generating wrong code
20029         on mismatches.
20030         (init_cumulative_args): Look through aliases.
20032 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20034         PR ipa/63566
20035         * ipa-split.c (execute_split_functions): Split if function has aliases.
20037 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20039         PR ipa/63566
20040         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
20041         aliases before trying to expand it.
20042         (cgraph_node::expand_thunk): Fix formating.
20044 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
20046         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
20047         (Using Assembly Language with C): Expand introduction.
20048         (Basic Asm): Copy-edit.  Add more information about uses of
20049         basic asm.
20050         (Extended Asm): Copy-edit.  Document new escape syntax and
20051         %l[label] syntax.
20052         (Global Reg Vars): Copy-edit.
20053         (Local Reg Vars): Likewise.
20055 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
20057         PR debug/2714
20058         PR bootstrap/64256
20059         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
20060         (DBX_CONTIN_CHAR): Define.
20062 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
20063             Brian Rzycki  <b.rzycki@samsung.com>
20065         PR tree-optimization/64878
20066         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
20067         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
20068         Stop recursion at loop phi nodes after having visited a loop phi node.
20070 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20072         * toplev.c (process_options): Change flag_ipa_ra before creating
20073         optimization_{default,current}_node.
20075         PR ipa/64896
20076         * cgraphunit.c (cgraph_node::expand_thunk): If
20077         restype is not is_gimple_reg_type nor the thunk_fndecl
20078         returns aggregate_value_p, set restmp to a temporary variable
20079         instead of resdecl.
20081 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
20083         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
20085 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20087         PR target/64205
20088         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
20089         add a general secondary reload handler for SDmode, unless we have
20090         both read/write support for SDmode.
20092 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20094         PR middle-end/64937
20095         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
20096         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
20097         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
20098         1 before, push it to abstract_vec.
20099         (dwarf2out_abstract_function): Adjust caller.  Don't call
20100         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
20101         DECL_ABSTRACT_P flags for all abstract_vec elts.
20103 2015-02-06  Renlin Li  <renlin.li@arm.com>
20105         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
20106         complex gimple.
20107         * tree-ssa.c (execute_update_addresses_taken): Likewise.
20109 2015-02-06  Jeff Law  <law@redhat.com>
20111         PR target/64889
20112         * config/h8300/h8300.c (push): New argument "in_prologue".
20113         Pass "in_prologue" along to "F".
20114         (h8300_push_pop): Corresponding changes.
20115         (h8300_expand_prologue): Likewise.
20116         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
20118 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20120         PR rtl-optimization/64957
20121         PR debug/64817
20122         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
20123         IOR rather than for AND.
20125 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
20127         PR target/62631
20128         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
20129         of shift-add and (add + shift) operations.  Rename local variable.
20131 2015-02-05  Jeff Law  <law@redhat.com>
20133         PR target/17306
20134         * config/h8300/constraints.md (U): Correctly dectect
20135         "eightbit_data" memory addresses.
20136         * config/h8300/h8300.c (eightbit_constant_address_p): Also
20137         handle (const (plus (symbol_ref (x)))) where x is declared
20138         as an 8-bit data memory address.
20139         * config/h8300/h8300.md (call, call_value): Correctly detect
20140         "funcvec" functions.
20142         PR target/43264
20143         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
20144         24 to 28 bits for the H8/300.
20146 2015-02-06  Alan Modra  <amodra@gmail.com>
20148         PR target/64876
20149         * config/rs6000/rs6000.c (chain_already_loaded): New function.
20150         (rs6000_call_aix): Use it.
20152 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
20154         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
20155         check.
20157 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20159         * config/h8300/constraints.md ("U" constraint): Use strict
20160         variant of REG_OK_FOR_BASE_P after reload has started.
20162 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
20164         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
20165         define to zero if !TARGET_NEON.
20166         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
20168 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20169             Trevor Saunders  <tsaunders@mozilla.com>
20171         PR ipa/61548
20172         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
20174 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20176         PR ipa/61548
20177         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
20178         when removing varpool nodes.
20180 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20182         PR ipa/61548
20183         * varpool.c (varpool_node::remove): Fix order of variables.
20185 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20187         PR ipa/64686
20188         * ipa-inline.c (inline_small_functions): Fix ordering issue between
20189         speculation resolution and key updates.
20191 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20193         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
20194         about not letting any speculative edges unupdated.
20196 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20198         PR gcov/64123
20199         * gcov-io.c (gcov_var): Export.
20201 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20203         PR middle-end/64922
20204         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
20205         edges that become speculative.
20207 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
20209         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
20210         or DW_LANG_Fortran08.
20211         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
20212         DW_LANG_Fortran08.
20213         (gen_compile_unit_die): Handle "GNU Fortran2003" and
20214         "GNU Fortran2008" language strings.
20215         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
20216         * langhooks.h (lang_GNU_Fortran): New prototype.
20217         * langhooks.c (lang_GNU_Fortran): New function.
20218         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
20219         lang_GNU_Fortran.
20221 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
20223         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
20224         (RTX_OK_FOR_OLO10_P): Likewise.
20226 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
20228         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
20230 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20232         PR middle-end/64922
20233         * gimple.c: Include gimple-ssa.h.
20234         (maybe_remove_unused_call_args): New function.
20235         * gimple.h (maybe_remove_unused_call_args): Declare.
20236         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
20237         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20238         * gimple-fold.c (gimple_fold_call): Likewise.
20240 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
20242         PR rtl-optimization/64905
20243         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
20244         pointer alignment if it isn't needed.
20246 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
20248         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
20249         cortex-a72.cortex-a53.
20250         * config/aarch64/aarch64-tune.md: Regenerate.
20251         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
20253 2015-02-04  Nick Clifton  <nickc@redhat.com>
20255         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
20256         inside a MEM.
20258 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
20260         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
20261         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
20262         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
20263         of DEF_BUILTIN.
20264         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
20265         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
20266         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
20267         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
20268         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
20269         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
20270         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
20271         * tree-core.h (enum built_in_function): In between
20272         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
20273         for builtins that use DEF_BUILTIN_CHKP macro.
20275 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
20277         PR debug/64817
20278         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
20279         operands for tcc_comparison exprs.  Fix typos.
20281         PR debug/64817
20282         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
20283         of two XORs that have an intervening AND or IOR.
20285         PR debug/64817
20286         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
20287         simplification of XOR of AND to not allocate new rtx before
20288         committing to a simplification.
20290 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20292         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
20293         manual swaps in all peepholes.
20295 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20297         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
20298         of manual swapping implementation.
20299         (aarch64_expand_vec_perm_const_1): Likewise.
20301 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
20303         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
20304         (generic_addrcost_table): Remove NAMED_PARAM.
20305         (cortexa57_addrcost_table): Likewise.
20306         (xgene1_addrcost_table): Likewise.
20307         (generic_regmove_table): Likewise.
20308         (cortexa53_regmove_table): Likewise.
20309         (xgene1_regmove_table): Likewise.
20310         (generic_vector_table): Likewise.
20311         (cortexa57_vector_table): Likewise.
20312         (xgene1_vector_table): Likewise.
20313         (generic_tunings): Likewise.
20314         (cortexa53_tunings): Likewise.
20315         (cortexa57_tunings): Likewise.
20316         (xgene1_tunings): Likewise.
20318 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
20320         * config/arm/arm-cores.def: Add cortex-a72 and
20321         cortex-a72.cortex-a53.
20322         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
20323         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
20324         * config/arm/arm-tune.md: Regenerate.
20325         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
20326         "cortex-a72.cortex-a53".
20327         * doc/invoke.texi (ARM Options/-mtune): Likewise.
20329 2015-02-04  Nick Clifton  <nickc@redhat.com>
20331         PR target/64408
20332         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
20333         of accepted codes.
20334         (nonimmediate_di_operand): Likewise.
20336         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
20337         prefixes of known F5 using MSP430 MCUs.
20339 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20341         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
20342         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
20343         instead of __builtin_sqrt.
20345 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
20347         * varasm.c (do_assemble_alias): Follow transparent alias
20348         chain for target.
20349         (default_assemble_visibility): Follow transparent alias
20350         chain for decl name.
20352 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20354         PR middle-end/62103
20355         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
20356         to compute size of referenced value in the constant case.
20358 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
20360         PR rtl-optimization/64756
20361         * cse.c (invalidate_dest): New function.
20362         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
20363         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
20364         invalidate and do not record it.
20366 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
20368         PR target/64660
20369         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
20370         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
20371         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
20372         atomic_nand<mode>_soft_tcb): New insns.
20373         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
20374         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
20375         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
20376         Split into atomic_not_fetchsi_hard if operands[0] is unused.
20377         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
20378         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
20379         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
20380         atomic_not<mode>_hard if operands[0] is unused.
20381         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
20382         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
20383         if operands[0] is unused.
20384         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
20385         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
20386         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
20387         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
20388         unused.
20389         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
20390         into atomic_not<mode>_soft_tcb if operands[0] is unused.
20391         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
20392         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
20393         if operands[0] is unused.
20394         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
20395         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
20396         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
20397         atomic_nand_fetchsi_hard if operands[0] is unused.
20398         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
20399         atomic_nand<mode>_hard if operands[0] is unused.
20400         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
20401         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
20402         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
20403         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
20404         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
20405         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
20406         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
20407         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
20408         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
20409         atomic_not<mode>_hard if operands[0] is unused.
20410         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
20411         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
20412         unused.
20413         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
20414         into atomic_not<mode>_soft_tcb if operands[0] is unused.
20415         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
20416         atomic_nand<mode>_hard if operands[0] is unused.
20417         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
20418         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
20420 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
20422         PR jit/64810
20423         * Makefile.in (GCC_OBJS): Add gcc-main.o.
20424         * gcc-main.c: New file, containing "main" taken from gcc.c.
20425         * gcc.c (do_self_spec): Free decoded_options.
20426         (class driver): Move declaration to gcc.h.
20427         (main): Move declaration and implementation to new file
20428         gcc-main.c.
20429         (driver_get_configure_time_options): New function.
20430         * gcc.h (class driver): Move this declaration here, from
20431         gcc.c.
20432         (driver_get_configure_time_options): New declaration.
20434 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
20436         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
20437         cross-module inlining.
20438         * cgraph.h (cgraph_node): Add flag merged.
20439         * ipa-icf.c (sem_function::merge): Maintain it.
20441 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
20443         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
20444         instead of OBJECT_P.
20446 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
20448         PR target/62631
20449         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
20450         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
20451         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
20452         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
20454 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
20456         PR other/63504
20457         * combine.c (reg_n_sets_max): New variable.
20458         (can_change_dest_mode, reg_nonzero_bits_for_combine,
20459         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
20460         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
20461         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
20462         (rest_of_handle_combine): Initialize reg_n_sets_max.
20464 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
20466         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
20467         if some always_inline was inlined, apply changes before inlining
20468         heuristically.
20470 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
20472         PR jit/64810
20473         * config/arm/arm.c (arm_option_override): Set
20474         arm_selected_arch/cpu/tune to NULL on entry.
20476 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
20477             Andrew Pinski  <pinskia@gcc.gnu.org>
20478             Jakub Jelinek  <jakub@gcc.gnu.org>
20480         PR target/64231
20481         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
20482         integer typing for small model. Use IN_RANGE.
20484 2015-02-02  Richard Biener  <rguenther@suse.de>
20486         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
20487         * tree-vrp.c (vrp_valueize_1): Likewise.
20489 2015-02-02  Alan Modra  <amodra@gmail.com>
20491         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
20492         than mem for toc_restore.
20493         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
20494         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
20495         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
20497 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
20499         PR target/64047
20500         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
20501         explicit default options.
20503 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
20505         PR ipa/64872
20506         * ipa-utils.c (ipa_merge_profiles): Add release argument.
20507         * ipa-icf.c (sem_function::merge): Do not release body when merging.
20508         * ipa-utils.h (ipa_merge_profiles): Update prototype.
20510 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
20512         PR debug/64817
20513         * cfgexpand.c (deep_ter_debug_map): New variable.
20514         (avoid_deep_ter_for_debug): New function.
20515         (expand_debug_expr): If TERed SSA_NAME is in
20516         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
20517         instead of trying to expand SSA_NAME's def stmt.
20518         (expand_debug_locations): When expanding debug bind
20519         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
20520         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
20521         value.
20522         (pass_expand::execute): Call avoid_deep_ter_for_debug on
20523         all debug bind stmts.  Delete deep_ter_debug_map after
20524         expand_debug_location if non-NULL and clear it.
20526 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
20528         PR target/64851
20529         * config/sh/sync.md (atomic_fetch_notsi_hard,
20530         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
20531         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
20532         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
20533         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
20534         atomic_not_fetch<mode>_soft_imask): New insns.
20536 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20538         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
20539         (rank_for_schedule_debug): Split from ...
20540         (rank_for_schedule): ... this.
20541         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
20542         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
20544 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
20546         * doc/md.texi (Machine Constraints): Alphabetize table by target.
20547         * doc/extend.texi (x86 Variable Attributes): Move section to
20548         correct alphabetization after renaming.
20549         (x86 Type Attributes): Likewise.
20550         (Target Builtins): Re-alphabetize menu.
20551         (x86 Built-in Functions): Move section to correct alphabetization
20552         after renaming.
20553         (x86 transactional memory intrinsics): Likewise.
20554         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
20555         and x86 Windows Options in table and menu.
20556         (x86 Options): Move section to correct alphabetization after
20557         renaming.
20558         (x86 Windows Options): Likewise.
20560 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
20562         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
20563         preferred names of the architecture and its 32- and 64-bit
20564         variants.
20565         * doc/invoke.texi: Likewise.
20566         * doc/md.texi: Likewise.
20568 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
20570         PR target/64882
20571         * config/i386/predicates.md (address_no_seg_operand): Reject
20572         non-CONST_INT_P operands in invalid mode.
20574 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
20576         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
20577         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
20578         * config/i386/predicates.md (address_no_seg_operand): Call
20579         address_operand with VOIDmode.
20580         (vsib_address_operand): Ditto.
20581         (address_mpx_no_base_operand): Ditto.
20582         (address_mpx_no_index_operand): Ditto.
20584 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
20586         PR target/64688
20587         * lra-constraints.c (original_subreg_reg_mode): New.
20588         (simplify_operand_subreg): Try to simplify subreg of const.  Use
20589         original_subreg_reg_mode for it.
20590         (swap_operands): Update original_subreg_reg_mode.
20591         (curr_insn_transform): Set up original_subreg_reg_mode.
20593 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
20595         PR target/64617
20596         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
20597         function.
20598         (process_alt_operands): Use it.
20599         (curr_insn_transform): Check the optional reload pseudo class is
20600         ok for the mode.
20602 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
20604         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
20605         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
20606         prototype.
20607         * toplev.h (init_asm_output): Update comment on use of
20608         UNKNOWN_LOCATION with fatal_error.
20609         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
20610         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
20611         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
20612         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
20613         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
20614         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
20615         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
20616         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
20617         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
20618         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
20619         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
20620         fatal_error changed to pass input_location as first argument.
20622 2015-01-30  Martin Liska  <mliska@suse.cz>
20624         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
20625         in #pragma GCC diagnostic guards.
20627 2015-01-30  Richard Biener  <rguenther@suse.de>
20629         PR tree-optimization/64829
20630         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
20631         not add a widening conversion pattern but hand off extra
20632         widenings to callers.
20633         (vect_recog_widen_mult_pattern): Handle extra widening produced
20634         by vect_handle_widen_op_by_const.
20635         (vect_recog_widen_shift_pattern): Likewise.
20636         (vect_pattern_recog_1): Remove excess vertical space in dumping.
20637         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
20638         (vect_init_vector_1): Likewise.
20639         (vect_get_vec_def_for_operand): Likewise.
20640         (vect_finish_stmt_generation): Likewise.
20641         (vectorizable_load): Likewise.
20642         (vect_analyze_stmt): Likewise.
20643         (vect_is_simple_use): Likewise.
20645 2015-01-29  Jeff Law  <law@redhat.com>
20647         * combine.c (try_combine): Fix typo in comment.
20649 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
20651         PR target/64580
20652         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
20653         (rs6000_stack_info): Add assert.
20654         (rs6000_output_savres_externs): New function, split off from...
20655         (rs6000_output_function_prologue): ... here.  Do not call it for
20656         thunks.
20658 2015-01-29  Jeff Law  <law@redhat.com>
20660         PR target/15184
20661         * combine.c (try_combine): If I0 is a memory load and I3 a store
20662         to a related address, increase the "goodness" of doing a 4-insn
20663         combination with I0-I3.
20664         (make_field_assignment): Handle SUBREGs in the ior+and case.
20666 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
20668         PR tree-optimization/64746
20669         * tree-if-conv.c (mask_exists): New function.
20670         (predicate_mem_writes): Save created mask with given size for further
20671         use.
20672         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
20673         (ifcvt_repair_bool_pattern): Collect all statements that are root
20674         of bool pattern and use iterative algorithm to remove multiple uses
20675         of predicates, display number of required iterations.
20677 2015-01-29  Richard Biener  <rguenther@suse.de>
20679         PR tree-optimization/64853
20680         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
20681         stmt will get simulated again.
20682         * tree-ssa-ccp.c (valueize_op_1): Likewise.
20684 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20686         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
20687         return_in_pc.  Remove redundant assignments.
20688         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
20689         (arm_expand_epilogue): Don't compare boolean with true in if condition.
20691 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
20693         * config/i386/i386.c (ix86_mode_after): Make static.
20695 2015-01-29  Richard Biener  <rguenther@suse.de>
20697         PR tree-optimization/64844
20698         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
20699         dump cost model analysis.
20700         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20701         Do not register adjusted load/store costs here.
20703 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
20704             Uros Bizjak  <ubizjak@gmail.com>
20706         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
20707         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
20708         using x86_use_pseudo_pic_reg.
20709         * config/i386/i386.c (ix86_conditional_register_usage): Remove
20710         support for fixed PIC register.
20711         (ix86_use_pseudo_pic_reg): Not static any more.
20713 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
20715         PR middle-end/64805
20716         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
20717         to avoid error in cgraph node verification.
20719 2015-01-29  Marek Polacek  <polacek@redhat.com>
20721         * doc/standards.texi: Reflect that the default for C is gnu11.
20723 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
20725         PR target/64761
20726         * reorg.c (switch_text_sections_between_p): New function.
20727         (relax_delay_slots): Call it when testing if the jump insn
20728         is removable.  Use targetm.can_follow_jump when testing if
20729         the conditional branch can follow an unconditional jump.
20731 2015-01-27  Caroline Tice  <cmtice@google.com>
20733         Committing VTV Cywin/Ming patch for Patrick Wollgast
20734         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
20735         if -fvtable-verify=preinit/std is used.
20736         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
20737         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
20738         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
20739         if -fvtable-verify=preinit/std is used.
20740         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
20741         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
20742         if -fvtable-verify=preinit/std is used.
20743         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
20744         * config/i386/mingw32.h (LIB_SPEC): Likewise.
20745         * varasm.c (assemble_variable): Add code to properly set the comdat
20746         section and name for the .vtable_map_vars section in case the
20747         target is PE or COFF.
20749 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
20751         PR ipa/64801
20752         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
20753         make sane BB profile.
20754         (cgraph_node::expand_thunk): Make sane BB profile.
20755         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
20756         * cgraph.h (init_lowered_empty_function): Update prototype.
20757         * config/i386/i386.c (make_resolver_func): Update call.
20758         * predict.c (gate): Disable branch prediction pass if
20759         profile is already there.
20761 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
20763         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
20764         * opth-gen.awk: Likewise.
20765         * common.opt: Mark flag_fp_contract_mode as Optimization.
20767 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20769         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
20770         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
20772 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
20774         PR target/64659
20775         * config/sh/predicates.md (atomic_arith_operand,
20776         atomic_logical_operand): Remove.
20777         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
20778         (atomic_arith_operand_0): New predicate.
20779         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
20780         Use atomic_arith_operand_0 for input values.
20781         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
20782         atomic_compare_and_swap<mode>_soft_gusa,
20783         atomic_compare_and_swap<mode>_soft_tcb,
20784         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
20785         arith_reg_operand instead of register_operand.
20786         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
20787         atomic_arith_operand_0 for newval input.
20788         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
20789         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
20790         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
20791         arith_reg_operand instead of register_operand.
20792         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
20793         fetchop_predicate_1, fetchop_constraint_1_llcs,
20794         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
20795         fetchop_constraint_1_imask): New code iterator attributes.
20796         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
20797         register_operand.  Use fetchop_predicate_1.
20798         (atomic_fetch_<fetchop_name>si_hard,
20799         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
20800         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
20801         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
20802         and arith_reg_operand instead of register_operand.  Use
20803         fetchop_predicate_1, fetchop_constraint_1_gusa.
20804         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
20805         and arith_reg_operand instead of register_operand.  Use
20806         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
20807         to allow R0 usage.
20808         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
20809         and arith_reg_operand instead of register_operand.  Use
20810         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
20811         to allow R0 usage.
20812         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
20813         register_operand.  Use atomic_logical_operand_1.
20814         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
20815         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
20816         arith_reg_operand instead of register_operand.
20817         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
20818         Use arith_reg_dest and arith_reg_operand instead of register_operand.
20819         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
20820         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
20821         register_operand.  Use fetchop_predicate_1.
20822         (atomic_<fetchop_name>_fetchsi_hard,
20823         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
20824         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20825         fetchop_constraint_1_llcs.
20826         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
20827         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20828         fetchop_constraint_1_gusa.
20829         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
20830         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20831         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
20832         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
20833         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
20834         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
20835         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
20836         register_operand.  Use atomic_logical_operand_1.
20837         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
20838         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
20839         arith_reg_operand instead of register_operand.
20840         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
20841         arith_reg_operand instead of register_operand.  Use logical_operand
20842         and K08.  Adjust asm sequence to allow R0 usage.
20843         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
20844         arith_reg_operand instead of register_operand.  Use logical_operand
20845         and K08.
20847 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
20849         PR other/63504
20850         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
20851         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
20852         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
20853         only get_full_len HOST_WIDE_INTs from get_val () array rather than
20854         all bits in *val_wide.
20856 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
20858         * varpool.c (tls_model_names): Fix names.
20859         (varpool_node::dump): Dump tls- prefix for tls models.
20861 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
20862             Bernd Schmidt  <bernds@codesourcery.com>
20863             Nathan Sidwell  <nathan@codesourcery.com>
20865         * config/nvptx/mkoffload.c: New file.
20866         * config/nvptx/t-nvptx: Add build rules for it.
20867         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
20868         (extra_programs): Add mkoffload.
20869         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
20870         function.
20871         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
20873 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
20875         PR middle-end/64809
20876         * cfgexpand.c (reorder_operands): Skip debug gimples.
20878 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
20880         PR tree-optimization/64277
20881         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
20882         range info when possible to refine estimation.
20884 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20886         PR tree-optimization/64718
20887         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
20888         be a 16bit unsigned integer when n->range is 16.
20889         (bswap_replace): Convert src to that type if necessary for all bswap
20890         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
20891         set in pass_optimize_bswap::execute ().
20893 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
20895         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
20896         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
20897         integer and floating point variants.
20898         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
20900 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
20902         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
20903         for all vector modes.
20905 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
20907         PR bootstrap/64612
20908         * doc/sourcebuild.texi (comdat_group): Document.
20910 2015-01-28  Terry Guo  <terry.guo@arm.com>
20912         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
20914 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
20916         * toplev.c (print_version): Add param "show_global_state", and
20917         only print GGC and plugin information if it is true.
20918         (init_asm_output): Pass in "true" for the new param when calling
20919         print_version.
20920         (process_options): Likewise.
20921         (toplev::main): Likewise.
20922         * toplev.h (print_version): Add new param to decl.
20924 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
20926         PR ipa/60871
20927         PR ipa/64139
20928         * tree.c (lookup_binfo_at_offset): New function.
20929         (get_binfo_at_offset): Use it.
20931 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
20933         PR ipa/64282
20934         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
20935         on vtable being vtable.
20937 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20939         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
20940         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
20941         -mhotpatch= option.
20942         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
20943         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
20944         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
20945         Renamed.
20946         (s390_hotpatch_trampoline_halfwords_max): Renamed.
20947         (s390_hotpatch_hw_max): New name.
20948         (s390_hotpatch_trampoline_halfwords): Renamed.
20949         (s390_hotpatch_hw_before_label): New name.
20950         (get_hotpatch_attribute): Removed.
20951         (s390_hotpatch_hw_after_label): New name.
20952         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
20953         attribute.
20954         (s390_attribute_table): Ditto.
20955         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
20956         (s390_function_num_hotpatch_hw): New name.
20957         Remove special handling of inline functions and hotpatching.
20958         Return number of nops before and after the function label.
20959         (s390_can_inline_p): Removed.
20960         (s390_asm_output_function_label): Emit a configurable number of nops
20961         after the function label.
20962         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
20963         (TARGET_CAN_INLINE_P) Removed.
20964         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
20966 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20967             Jiong Wang  <jiong.wang@arm.com>
20969         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
20970         of scratch reg.
20971         (cb<optab><mode>1): Likewise.
20972         * config/aarch64/iterators.md (bcond): New define_code_attr.
20974 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20976         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
20977         memory accesses.
20979 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20981         * config/s390/s390.c (s390_register_move_cost): Increase costs for
20982         FPR->GPR moves.
20984 2015-01-27  Richard Biener  <rguenther@suse.de>
20986         * tree-vrp.c (update_value_range): Intersect the range with
20987         old recorded SSA name range information.
20989 2015-01-27  Nick Clifton  <nickc@redhat.com>
20991         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
20992         BC, DE and HL registers directly, not via AX.
20993         When decrementing the stack pointer by a large amount, transfer SP
20994         into AX and perform the subtraction there.
20995         (rl78_expand_epilogue): Perform the inverse of the above
20996         enhancements.
20998 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21000         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
21002 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21003             Yury Gribov  <y.gribov@samsung.com>
21005         PR ubsan/64741
21006         * ubsan.c (ubsan_source_location): Refactor code.
21007         (ubsan_type_descriptor): Update type size. Refactor code.
21009 2015-01-27  Richard Biener  <rguenther@suse.de>
21011         PR tree-optimization/56273
21012         PR tree-optimization/59124
21013         PR tree-optimization/64277
21014         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
21015         from the first VRP pass.
21017 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21019         PR ipa/64776
21020         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
21021         handle the first argument in the same loop as all the other arguments.
21023         PR rtl-optimization/61058
21024         * jump.c (cleanup_barriers): Update basic block boundaries
21025         if BLOCK_FOR_INSN is non-NULL on PREV.
21027 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
21029         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
21030         bounds narrowing, already instrumented calls and calls to
21031         not instrumentable functions.
21033 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21035         PR tree-optimization/64807
21036         * wide-int.cc (wi::divmod_internal): Clear
21037         b_dividend[dividend_blocks_needed].
21039 2015-01-26  DJ Delorie  <dj@redhat.com>
21041         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
21042         volatile memory references.
21044 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
21046         PR target/49263
21047         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
21048         remove_insn.
21049         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
21050         shifts if it already fits into K08.
21052 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
21054         PR ipa/64730
21055         * ipa-inline.c (inline_small_functions): Print "unknown" even
21056         if edge->call_stmt is non-NULL, but has builtins or unknown
21057         location.
21059         PR middle-end/64421
21060         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
21061         with asterisk, skip the first character.
21063 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
21065         PR target/64806
21066         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
21067         order change.
21069 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
21071         PR target/64795
21072         * config/i386/i386.md (*movdi_internal): Also check operand 0
21073         to determine TYPE_LEA operand.
21074         (*movsi_internal): Ditto.
21076 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
21078         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
21079         OPTION_MASK_QUAD_MEMORY_ATOMIC.
21081 2015-01-26  Renlin Li  <renlin.li@arm.com>
21083         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
21084         the comment.
21085         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
21086         for higher part.
21088 2015-01-26  Richard Biener  <rguenther@suse.de>
21090         PR middle-end/64764
21091         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
21092         combining two BIT_AND_EXPR predicates.
21094 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
21096         PR bootstrap/64754
21097         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
21099 2015-01-26  Terry Guo  <terry.guo@arm.com>
21101         * config/arm/arm.c (arm_file_start): Update the assignment of
21102         Tag_ABI_HardFP_use.
21104 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
21106         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
21107         pipeline model.
21108         config/arm/arm.md: Include the new Cortex-A57 model.
21109         (generic_sched): Don't use generic_sched when tuning for
21110         Cortex-A57.
21112 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
21113             Uros Bizjak  <ubizjak@gmail.com>
21115         * config/i386/i386.c (get_builtin_code_for_version): Add
21116         support for BMI and BMI2 multiversion functions.
21118 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21120         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
21121         (extract_bit_field): Likewise.
21122         (extract_low_bits): Likewise.
21123         (expand_mult): Likewise.
21124         (expand_mult_highpart_adjust): Likewise.
21126 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21128         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
21129         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
21130         * config/i386/i386.c (processor_model): Add
21131         M_INTEL_COREI7_BROADWELL.
21132         (arch_names_table): Add "broadwell".
21134 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
21136         PR target/49263
21137         PR target/53987
21138         PR target/64345
21139         PR target/59533
21140         PR target/52933
21141         PR target/54236
21142         PR target/51244
21143         * config/sh/sh-protos.h
21144         (sh_extending_set_of_reg::can_use_as_unextended_reg,
21145         sh_extending_set_of_reg::use_as_unextended_reg,
21146         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
21147         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
21148         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
21149         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
21150         (sh_treg_insns): New class.
21151         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
21152         (scope_counter): New class.
21153         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
21154         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
21155         sh_extending_set_of_reg::can_use_as_unextended_reg,
21156         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
21157         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
21158         sh_split_treg_set_expr): New functions.
21159         (addsubcosts): Handle treg_set_expr.
21160         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
21161         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
21162         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
21163         (sh_insn_operands_modified_between_p): Make non-static.
21164         * config/sh/predicates.md (zero_extend_movu_operand): Allow
21165         simple_mem_operand in addition to displacement_mem_operand.
21166         (zero_extend_operand): Don't allow zero_extend_movu_operand.
21167         (treg_set_expr, treg_set_expr_not_const01,
21168         arith_reg_or_treg_set_expr): New predicates.
21169         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
21170         arith_or_int_operand instead of logical_operand.  Convert to
21171         insn_and_split.  Try to optimize constant operand in splitter.
21172         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
21173         (*tstqi_t_zero): Delete.
21174         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
21175         (tstsi_t_and_not): Delete.
21176         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
21177         Convert to insn_and_split.
21178         (unnamed split, tstsi_t_zero_extract_xor,
21179         tstsi_t_zero_extract_subreg_xor_little,
21180         tstsi_t_zero_extract_subreg_xor_big): Delete.
21181         (*tstsi_t_shift_mask): New insn_and_split.
21182         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
21183         to recombine with surrounding insns when splitting.
21184         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
21185         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
21186         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
21187         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
21188         (*cbranch_div0s: Delete.
21189         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
21190         Try to recombine with surrounding insns when splitting.  Add operand
21191         order variants.
21192         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
21193         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
21194         *addc_r_r_msb, *addc_2r_msb): Delete.
21195         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
21196         order variant.
21197         (*addc_negreg_t): New insn_and_split.
21198         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
21199         Try to recombine with surrounding insns when splitting.
21200         Add operand order variants.
21201         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
21202         insn_and_split patterns.
21203         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
21204         surrounding insns when splitting.
21205         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
21206         (*rotcl): Likewise.  Add zero_extract variant.
21207         (*ashrsi2_31): New insn_and_split.
21208         (*negc): Convert to insn_and_split.  Use treg_set_expr.
21209         (*zero_extend<mode>si2_disp_mem): Update comment.
21210         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
21211         condition.
21212         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
21213         with surrounding insns when splitting.
21214         (any_treg_expr_to_reg): New insn_and_split.
21215         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
21216         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
21217         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
21218         *zero_extract_2): New single bit zero extract patterns.
21219         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
21220         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
21221         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
21222         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
21223         set destination.
21224         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
21225         register_operand for set source.
21227 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
21229         * i386.opt (prefetch_sse): New targetsave.
21230         * i386.c (ix86_function_specific_save): Save prefetch_sse.
21231         (ix86_function_specific_restore): Restore prefetch_sse and initialize
21232         ix86_cost/ix86_tune_cost.
21234 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21236         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
21237         Support the JIT by using 0 as the language type.
21239 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
21241         PR target/64317
21242         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
21243         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
21244         (mark_regno_live, process_bb_lives): Pass new parameter value to
21245         make_hard_regno_born.
21247 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21249         PR rtl-optimization/63637
21250         PR rtl-optimization/60663
21251         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
21252         if elt->cost is MAX_COST for ASM_OPERANDS.
21253         (find_sets_in_insn): Fix up comment typo.
21254         (cse_insn): Don't set src_volatile for all non-volatile
21255         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
21256         or with "memory" clobber.  Set elt->cost to MAX_COST
21257         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
21258         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
21260 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
21262         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
21263         alternative 1.
21265 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
21267         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
21268         libgcc/config/i386/elf-lib.h.
21270 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21272         PR driver/64737
21273         * gcc.c (print_configuration): Don't print a blank line at the end
21274         here...
21275         (run_attempt): ... but here unstead.
21277         PR middle-end/64734
21278         * omp-low.c (scan_sharing_clauses): Don't ignore
21279         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
21280         on target data/update constructs.
21282 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21284         PR target/50928
21285         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
21286         (DEBUG_RELOAD): Removed define.
21287         (m32c_limit_reload_class): Enable traces with if DEBUG0.
21288         (m32c_function_arg): Added a type cast.
21289         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
21290         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
21291         * config/m32c/bitops.md (andqi3_16): Likewise.
21292         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
21293         (push_a01_l): Likewise.
21295 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21297         PR jit/64721
21298         * main.c (main): Construct toplev instances with init_signals=true.
21299         * toplev.c (general_init): Add param "init_signals", and use it to
21300         conditionalize the calls to signal and host_hooks.extra_signals.
21301         (toplev::toplev): Add param "init_signals".
21302         (toplev::main): When invoking general_init, pass m_init_signals
21303         to control whether signal-handlers are installed.
21304         * toplev.h (toplev::toplev): Add param "init_signals".
21305         (toplev::m_init_signals): New field.
21307 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21309         PR jit/64722
21310         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
21311         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
21312         latter may be affected by the former (e.g. on i686).
21314 2015-01-23  Martin Liska  <mliska@suse.cz>
21316         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
21317         false positive during profiledbootstrap.
21319 2015-01-23  Tom de Vries  <tom@codesourcery.com>
21321         PR libgomp/64672
21322         * lto-opts.c (lto_write_options): Output non-explicit conservative
21323         -fno-openacc.
21324         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
21325         (append_compiler_options): Pass -fopenacc through.
21327 2015-01-23  Tom de Vries  <tom@codesourcery.com>
21329         PR libgomp/64707
21330         * lto-opts.c (lto_write_options): Output non-explicit conservative
21331         -fno-openmp.
21332         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
21333         (append_compiler_options): Pass -fopenmp through.
21335 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21337         PR debug/64511
21338         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
21339         GTY markup.
21341         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
21342         * diagnostic.def (DK_ICE_NOBT): New kind.
21343         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
21344         like DK_ICE, but never print backtrace.
21345         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
21346         (internal_error_no_backtrace): New function.
21347         * gcc.c (execute): Use internal_error_no_backtrace instead of
21348         internal_error.
21350 2015-01-22  Jeff Law  <law@redhat.com>
21352         PR target/52076
21353         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
21354         improve code density for small immediate to memory case.
21355         (insv): Better handle bitfield assignments when the field is
21356         being set to all ones.
21357         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
21358         operand predicate.
21360 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21361             Jakub Jelinek  <jakub@redhat.com>
21363         PR middle-end/64729
21364         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
21365         for !TARGET_LIBC_PROVIDES_SSP version and
21366         -fstack-protector-{all,strong,explicit} otherwise.
21367         * config/freebsd.h (LINK_SSP_SPEC): Handle
21368         -fstack-protector-{strong,explicit}.
21370 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
21371             H.J. Lu  <hongjiu.lu@intel.com>
21373         PR ipa/64694
21374         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
21375         heap.
21377 2015-01-22  Wei Mi  <wmi@google.com>
21379         PR rtl-optimization/64557
21380         * dse.c (record_store): Call get_addr for mem_addr.
21381         (check_mem_read_rtx): Likewise.
21383 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
21385         * fold-const.c (const_binop): Add early return for non-tcc_binary.
21387 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
21389         * toplev.c (init_local_tick): Process the failure when read
21390         fails for random_seed.
21392         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
21393         'pretty_name' to avoid memory overflow.
21395 2015-01-22  Richard Biener  <rguenther@suse.de>
21397         PR middle-end/64728
21398         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
21399         abnormal coalescing on undefined SSA names.
21401 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
21403         PR target/64688
21404         PR target/64477
21405         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
21406         for alternative 3.
21407         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
21409 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
21411         PR middle-end/63325
21412         * fold-const.c (fold_checksum_tree): Don't include value of
21413         expr->decl_with_vis.symtab_node in the checksum.
21415 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21417         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
21419 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
21421         PR driver/64690
21422         * gcc.c (insert_comments): New function.
21423         (try_generate_repro): Call it.
21424         (append_text): Removed.
21426 2015-01-22  Richard Biener  <rguenther@suse.de>
21428         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
21429         with IL incompatible options.  Properly honor user optimize
21430         attributes.
21432 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
21434         PR rtl-optimization/64682
21435         * combine.c (distribute_notes): When moving a death note for
21436         a register that is set in the new I2, make sure to put it
21437         before that new I2.
21439 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
21441         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
21442         not TARGET_DEFAULT.
21444 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
21446         PR debug/64511
21447         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
21448         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
21449         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
21451         PR sanitizer/64706
21452         * doc/invoke.texi (-fsanitize=vptr): Document.
21454         PR rtl-optimization/62078
21455         * dse.c: Include cfgcleanup.h.
21456         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
21457         anything call purge_all_dead_edges and cleanup_cfg at the end
21458         of the pass.
21460 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
21462         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
21463         edges.
21465 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21467         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
21468         decl attribute.
21470 2015-01-21  David Sherwood  <david.sherwood@arm.com>
21471             Tejas Belagod <Tejas.Belagod@arm.com>
21473         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
21474         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
21475         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
21476         Removed.
21478 2015-01-21  David Sherwood  <david.sherwood@arm.com>
21479             Tejas Belagod <Tejas.Belagod@arm.com>
21481         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
21482         (aarch64_reverse_mask): New decls.
21483         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
21484         (insn_count): New mode_attr.
21485         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
21486         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
21487         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
21488         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
21489         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
21490         (aarch64_simd_st4): New patterns.
21491         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
21492         (aarch64_reverse_mask): New functions.
21494 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
21496         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
21497         Declare.
21498         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
21499         addressing modes for BE.
21500         (aarch64_print_operand): Add 'R' specifier.
21501         (aarch64_simd_disambiguate_copy): Delete.
21502         (aarch64_simd_emit_reg_reg_move): New function.
21503         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
21504         in define_splits for structural moves.
21505         (mov<mode>): Use less restrictive predicates.
21506         (*aarch64_mov<mode>): Simplify and only allow for LE.
21507         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
21509 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
21511         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
21513 2015-01-21  Richard Henderson  <rth@redhat.com>
21515         PR target/64669
21516         * ccmp.c (used_in_cond_stmt_p): Remove.
21517         (expand_ccmp_expr): Don't use it.
21519 2015-01-21  Nick Clifton  <nickc@redhat.com>
21521         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
21522         PARALLELs.
21524 2015-01-21  Richard Biener  <rguenther@suse.de>
21526         PR middle-end/64313
21527         * tree-core.h (builtin_info, builtin_info_type): Turn from
21528         an object with two arrays into an array of an object with
21529         decl and two flags, implicit_p and declared_p.
21530         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
21531         set_builtin_decl, set_builtin_decl_implicit_p,
21532         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
21533         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
21534         * builtins.c (builtin_info): Adjust.
21535         * gimplify.c (gimplify_addr_expr): References to builtins
21536         that have been declared by the user makes them eligible for
21537         use by the compiler.  Call set_builtin_decl_implicit_p on them.
21539 2015-01-20  Jeff Law  <law@redhat.com>
21541         PR target/59946
21542         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
21543         allow pc-relative addresses in operand predicates or constraints.
21545 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
21547         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
21548         neon on aarch32 processors for stringops.
21550 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21552         PR ipa/63576
21553         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
21555 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21557         PR lto/45375
21558         * ipa-inline.c: Include lto-streamer.h
21559         (report_inline_failed_reason): Output source file differences and
21560         flags on optimization/target node mismatch.
21561         (can_inline_edge_p): Consider caller to be the outer inline function;
21562         be less restrictive about matching opimize and optimize_size attributes.
21563         (inline_account_function_p): Break out from ...
21564         (inline_small_functions): ... here.
21565         * ipa-inline-transform.c (clone_inlined_nodes): Use
21566         inline_account_function_p.
21567         (inline_call): Use optimize attribution; use inline_account_function_p.
21568         (inline_transform): Use opt_for_fn.
21569         * ipa-inline.h (inline_account_function_p): Declare.
21571 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
21573         PR debug/64663
21574         * dwarf2out.c (decl_piece_node): Don't put bitsize into
21575         mode if bitsize <= 0.
21576         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
21577         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
21578         sizes and positions.
21580 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
21582         * config/nios2/nios2.c (nios2_asm_file_end): Implement
21583         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
21584         needed.
21585         (TARGET_ASM_FILE_END): Define.
21587 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21589         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
21590         (struct tune_params): Use the enum.
21591         * arm.c (arm_*_tune): Update.
21592         (arm_option_override): Update.
21594 2015-01-20  Richard Biener  <rguenther@suse.de>
21596         PR ipa/64684
21597         * ipa-reference.c (add_static_var): Inline ...
21598         (analyze_function): ... here after splitting out from ...
21599         (is_proper_for_analysis): ... this.
21601 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
21603         PR target/64149
21604         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
21605         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
21606         replace the conditional with it's true branch.
21607         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
21608         (arm_lra_p): Remove.
21610 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
21612         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
21614 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21616         * config/tilegx/mul-tables.c: Move symtab.h include after
21617         coretypes.h include.
21618         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
21619         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
21620         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
21621         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
21622         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21624 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
21626         PR bootstrap/64676
21627         Revert:
21628         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
21630         PR rtl-optimization/64081
21631         * loop-iv.c (def_pred_latch_p): New function.
21632         (latch_dominating_def): Allow specific cases with non-single
21633         definitions.
21634         (iv_get_reaching_def): Likewise.
21635         (check_complex_exit_p): New function.
21636         (check_simple_exit): Use check_complex_exit_p to allow certain cases
21637         with exits not executing on any iteration.
21639 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21641         PR lto/45375
21642         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
21643         to set branch cost.
21645 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21647         PR lto/45375
21648         * i386.c (gate): Check flag_expensive_optimizations and
21649         optimize_size.
21650         (ix86_option_override_internal): Drop optimize_size condition
21651         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
21652         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
21653         MASK_PREFER_AVX128.
21654         (ix86_avx256_split_vector_move_misalign,
21655         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
21656         * sse.md (all uses of TARGET_PREFER_AVX128): Add
21657         optimize_insn_for_speed_p check.
21659 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
21661         * config/mips/mips.h (FP_ASM_SPEC): New define.
21662         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
21663         instead.
21665 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
21667         PR target/53988
21668         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
21669         nullptr for insn when reaching the first insn.
21670         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
21671         (sh_insn_operands_modified_between_p): Add nullptr check.
21672         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
21673         sign extending mem load if the insn contains any UNSPEC or
21674         UNSPEC_VOLATILE.
21676 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21678         * params.def (inline-unit-growth): Drop to 15%.
21679         * invoke.texi (inline-unit-growth): Document change.
21681 2015-01-19  Martin Liska  <mliska@suse.cz>
21683         PR ipa/64668
21684         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
21685         function for second argument of OBJ_TYPE_REF.
21687 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21689         PR ipa/64218
21690         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
21691         whether function is an alias.
21693 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21695         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
21696         cases.
21698 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
21700         PR rtl-optimization/64671
21701         * lra-remat.c (operand_to_remat): Don't consider jump and call
21702         insns.
21704 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
21706         PR target/59828
21707         * config/rs6000/default64.h: Include rs6000-cpus.def.
21708         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
21709         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
21710         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
21711         and POWER8.
21712         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
21713         POWER8.
21714         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
21715         pseudo-op to specify assembler dialect.
21717 2015-01-19  Martin Liska  <mliska@suse.cz>
21719         PR ipa/64664
21720         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
21721         Handle safe potentially removed nodes during filtering.
21723 2015-01-19  Martin Liska  <mliska@suse.cz>
21725         * doc/extend.texi (no_icf): Add new attribute description.
21726         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
21727         where the pass attempts to merge a function with no_icf attribute.
21729 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21731         PR target/64532
21732         * doc/md.texi (ARM Options): Document register constraints.
21734 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
21735             Andrew Pinski  <apinski@cavium.com>
21737         PR target/64304
21738         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
21739         (ashl<mode>3): Don't expand if operands[2] is not constant.
21741 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21743         PR target/64448
21744         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
21745         Match xor-and-xor RTL pattern.
21747 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
21749         PR rtl-optimization/64081
21750         * loop-iv.c (def_pred_latch_p): New function.
21751         (latch_dominating_def): Allow specific cases with non-single
21752         definitions.
21753         (iv_get_reaching_def): Likewise.
21754         (check_complex_exit_p): New function.
21755         (check_simple_exit): Use check_complex_exit_p to allow certain cases
21756         with exits not executing on any iteration.
21758 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
21760         * common.opt (fgraphite): Fix a typo.
21762 2015-01-19  Felix Yang  <felix.yang@huawei.com>
21764         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
21765         pattern.
21766         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
21767         uminp, smax_nanp, smin_nanp): New builtins.
21768         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
21769         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
21770         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
21771         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
21772         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
21773         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
21774         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
21775         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
21776         vpminnms_f32): Rewrite using builtin functions.
21778 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
21780         PR libgomp/64625
21781         * omp-low.c (offload_symbol_decl): Remove variable.
21782         (get_offload_symbol_decl): Remove function.
21783         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
21784         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
21785         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
21786         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
21787         BUILT_IN_GOACC_UPDATE don't pass it at all.
21789 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
21791         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
21792         callers.
21794 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
21796         * ipa-chkp.c (chkp_produce_thunks): Add early param
21797         to split thunks production into two passes.  Keep
21798         'always_inline' function bodies after the first pass.
21799         (pass_data_ipa_chkp_early_produce_thunks): New.
21800         (pass_ipa_chkp_early_produce_thunks): New.
21801         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
21802         chkp_produce_thunks signature.
21803         (make_pass_ipa_chkp_early_produce_thunks): New.
21804         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
21805         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
21806         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
21808 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
21810         * cgraph.c (cgraph_node::dump): Dump profile flags.
21812 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
21814         PR target/64652
21815         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
21816         reg appear first in the parallel.
21818 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
21820         * ipa-reference.c (set_reference_optimization_summary,
21821         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
21822         disabled.
21823         (ignore_module_statics): New static var.
21824         (propagate_bits): If ipa-reference is disabled, do not look into local
21825         properties.
21826         (analyze_function): Disable analysis when ipa_reference is disabled.
21827         (generate_summary): Do not dump when reference is disabled;
21828         collect vars accessed from functions with ipa-reference disabled.
21829         (get_read_write_all_from_node): When ipa-reference is disabled, use the
21830         node flags.
21831         (gate): Enable for LTO.
21832         (ignore_edge_p): New function.
21833         (propagate): Skip functions w/o ipa-reference analysis.
21834         * optc-save-gen.awk: Handle optimize_debug correctly.
21835         * opth-gen.awk: Likewise.
21836         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
21837         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
21838         fira-share-save-slots, fira-share-spill-slots,
21839         fmodulo-sched-allow-regmoves, fpartial-inlining,
21840         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
21841         ftracer, ftree-parallelize-loops, fassociative-math,
21842         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
21843         Optimization
21844         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
21845         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
21846         Optimization.
21847         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
21848         Fix for IPA.
21850 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
21852         PR ipa/64378
21853         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
21854         flag correctly.
21855         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
21857 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
21859         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
21860         Remove duplicate option listings.
21862 2015-01-18  Felix Yang  <felix.yang@huawei.com>
21864         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
21865         (autofdo_source_profile::get_callsite_total_count,
21866         function_instance::get_function_instance_by_decl,
21867         string_table::get_index, string_table::get_index_by_decl,
21868         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
21869         Fix comment typos. Reformatting and minor code rearrangement.
21871 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
21873         * config/rs6000/rs6000.md (probe_stack): Delete.
21874         (probe_stack_address): New.
21876 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
21878         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
21879         to test for 32-bit ABIs, not !TARGET_POWERPC64.
21881 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
21883         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
21884         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
21885         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
21886         snafu.
21887         (rs6000_libcall_value): Use the new function.
21889 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
21891         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
21893 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
21895         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
21896         implement a more precise life analysis for it during backward scan.
21898 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
21900         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
21902 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
21904         PR rtl-optimization/52773
21905         * calls.c (emit_library_call_value): When pushing arguments use
21906         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
21907         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
21908         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
21910 2015-01-17  Jeff Law  <law@redhat.com>
21912         PR rtl-optimization/32790
21913         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
21914         not ZERO_EXTEND in SET_DESTs.
21916 2015-01-17  Alan Modra  <amodra@gmail.com>
21918         * cprop.c (do_local_cprop): Revert last change.
21920 2015-01-16  DJ Delorie  <dj@redhat.com>
21921             Nick Clifton  <nickc@redhat.com>
21923         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
21924         (addhi3_real): Likewise.  Fix [HL+0] syntax.
21925         (subqi3_real): Likewise.
21926         (subhi3_real): Likewise.
21927         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
21928         (cbranchhi4_real): Likewise.
21929         (cbranchhi4_real_inverted): Likewise.
21930         (cbranchsi4_real_lt): Likewise.
21931         (cbranchsi4_real_ge): Likewise.
21932         (cbranchsi4_real_ge): Likewise.
21933         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
21934         (sub<mode>3_virt): Likewise.
21935         (cbranchqi4_virt): Likewise.
21936         (cbranchhi4_virt): Likewise.
21937         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
21938         always use '[reg+imm]' even when imm is zero.
21939         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
21940         (rl78_general_operand): New.
21941         (rl78_nonimmediate_operand): New.
21942         (rl78_nonfar_operand): Use them.
21943         (rl78_nonfar_nonimm_operand): Likewise.
21944         (rl78_stack_based_mem): Fix.
21945         * config/rl78/constraints.md (Ibqi): New.
21946         (IBqi): New.
21947         (Wsa): New.
21948         (Wsf): New.
21949         (Cs1): Fix.
21950         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
21951         (iorqi3): Likewise.
21952         (xorqi3): Likewise.
21953         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
21955         * config/rl78/constrains (Qs8): New constraint.
21956         * config/rl78/rl78.c (rl78_flags_already_set): New function.
21957         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
21958         * config/rl78/rl78-real.md (update_Z): New attribute.
21959         Update patterns to set it.
21960         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
21961         shorter compare and branch sequence can be used.
21962         (cbranchhi4_real): Likewise.
21963         (cbranchhi4_real_inverted): Likewise.
21965         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
21966         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
21967         address space.
21968         * config/rl78/rl78.c (rl78_get_name_encoding): New.
21969         (rl78_option_override): Allow -mes0 only if C.
21970         (characterize_address): Support subregs of symbol_refs.
21971         (rl78_addr_space_address_mode): Move.  Add __near.
21972         (rl78_far_p): Likewise.
21973         (rl78_addr_space_pointer_mode): Likewise.
21974         (rl78_as_legitimate_address): Likewise.
21975         (rl78_addr_space_subset_p): Likewise.
21976         (rl78_addr_space_convert): Likewise.
21977         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
21978         symbols with -mes0.
21979         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
21980         addressing.
21981         (rl78_alloc_physical_registers_op1): Change logic to prefer
21982         symbol[BC] addressing.
21983         (frodata_section): New.
21984         (rl78_asm_init_sections): Initialize it.
21985         (rl78_select_section): Put __far readonly symbols in .frodata.
21986         (rl78_make_type_far): New.
21987         (rl78_insert_attributes): Force all readonly symbols to be
21988         __far when -mes0.
21989         (rl78_asm_out_integer): New.
21990         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
21991         * config/rl78/rl78.opt (-mes0): New.
21993         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
21994         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21995         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
21996         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
21997         (rl78_saddr_p): New.
21998         (rl78_output_aligned_common): New.
21999         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
22000         (rl78_handle_saddr_attribute): New.
22001         (rl78_handle_naked_attribute): New.
22002         (rl78_attribute_table): Add saddr.
22003         (rl78_print_operand_1): Don't print '!' on saddr operands.
22004         (rl78_print_operand_1): Strip encodings.
22005         (rl78_sfr_p): New.
22006         (rl78_strip_name_encoding): New.
22007         (rl78_attrlist_to_encoding): New.
22008         (rl78_encode_section_info): New.
22009         (rl78_asm_init_sections): New.
22010         (rl78_select_section): New.
22011         (rl78_output_labelref): New.
22012         (rl78_output_aligned_common): New.
22013         (rl78_asm_out_integer): New.
22014         (rl78_asm_ctor_dtor): New.
22015         (rl78_asm_constructor): New.
22016         (rl78_asm_destructor): New.
22018         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
22019         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
22020         (transcode_memory_rtx): Update.
22021         (rl78_expand_epilogue): Use A_REG instead of 0.
22023 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22025         * config/arm/arm-protos.h (struct tune_params): New field
22026         sched_autopref_queue_depth.
22027         * config/arm/arm.c (sched-int.h): Include header.
22028         (arm_first_cycle_multipass_dfa_lookahead_guard,)
22029         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
22030         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
22031         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
22032         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
22033         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
22034         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
22035         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
22036         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
22037         * config/arm/t-arm (arm.o): Update.
22038         * haifa-sched.c (update_insn_after_change): Update.
22039         (rank_for_schedule): Use auto-prefetcher model, if requested.
22040         (autopref_multipass_init): New static function.
22041         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
22042         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
22043         variable for debug dumps.
22044         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
22045         (autopref_multipass_dfa_lookahead_guard): New global function that
22046         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
22047         (init_h_i_d): Update.
22048         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
22049         * sched-int.h (enum autopref_multipass_data_status): New const enum.
22050         (autopref_multipass_data_): Structure for auto-prefetcher data.
22051         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
22052         (struct _haifa_insn_data:autopref_multipass_data): New field.
22053         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
22054         (autopref_multipass_dfa_lookahead_guard): Declare.
22056 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22058         * rtlanal.c (get_base_term): Handle SCRATCH.
22060 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22062         * config/aarch64/aarch64.c
22063         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
22064         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22065         * config/arm/arm.c
22066         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
22067         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22069 2015-01-17  Alan Modra  <amodra@gmail.com>
22071         * cprop.c (do_local_cprop): Disallow replacement of fixed
22072         hard registers.
22074 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22076         PR target/62066
22077         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
22078         early return 0.
22080 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22082         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
22083         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
22085 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22087         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
22088         * config/arm/thumb1.md: ... Here.
22090 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22092         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
22093         TImode for TARGET_32BIT.
22095 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22097         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
22098         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
22099         as ...
22100         (rs6000_abi_word_mode): New function.
22102 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22104         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
22105         instead of UNITS_PER_WORD to describe the size of stack slots.
22107 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22109         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
22110         as rs6000_promote_function_mode.  Move comment to there.
22111         (rs6000_promote_function_mode): New function.
22113 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22115         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
22116         -mpowerpc64 is active.
22118 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
22120         PR middle-end/64353
22121         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
22122         virtuals on start.
22124 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
22126         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
22127         introduced in revision 219724.
22129 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22130             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22132         PR target/64263
22133         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
22134         destination is not a GP reg.
22135         (*movdi_aarch64): Likewise.
22137 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
22139         PR target/64623
22140         * config/rs6000/default64.h: Revert ISA change.
22142 2015-01-16  Richard Biener  <rguenther@suse.de>
22144         PR middle-end/64614
22145         * tree-ssa-uninit.c: Include tree-cfg.h.
22146         (MAX_SWITCH_CASES): New define.
22147         (convert_control_dep_chain_into_preds): Handle switch statements.
22148         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
22149         (normalize_one_pred_1): Do not split bit-manipulations.
22150         Record (x & CST).
22152 2015-01-16  Richard Biener  <rguenther@suse.de>
22154         PR tree-optimization/64568
22155         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
22156         complex load rewriting for TARGET_MEM_REFs.
22158 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
22160         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
22162 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
22164         PR target/64149
22165         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
22166         variable.
22167         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
22168         (aarch64_lra_p): Remove.
22170 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
22172         PR target/64363
22173         * ipa-chkp.h (chkp_instrumentable_p): New.
22174         * ipa-chkp.c: Include tree-inline.h.
22175         (chkp_instrumentable_p): New.
22176         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
22177         Fix processing of not instrumentable functions.
22178         (chkp_versioning): Use chkp_instrumentable_p. Warn about
22179         not instrumentable functions.
22180         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
22181         chkp_instrumentable_p.
22182         * tree-inline.h (copy_forbidden): New.
22183         * tree-inline.c (copy_forbidden): Not static anymore.
22185 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22187         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
22188         ptr1, ptr2 unused.
22190 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
22192         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
22193         type OP_OUT to OP_INOUT.
22195 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
22197         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
22198         (high x) y) to y if x and y have the same base.
22200 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
22202         * config/arm/cortex-a57.md: New.
22203         * config/aarch64/aarch64.md: Include it.
22204         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
22205         * config/aarch64/aarch64-tune.md: Regenerate.
22207 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
22209         PR target/64015
22210         * ccmp.c (expand_ccmp_next): New function.
22211         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
22212         and compare insn sequence.
22213         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
22214         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
22215         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
22216         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
22217         (*ccmp_ior): Changed to ccmp_ior<mode>.
22218         (cmp<mode>): New pattern.
22219         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
22220         parameters.
22221         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
22223 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
22225         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
22226         _mm256_bsrli_epi128): New.
22227         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
22229 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
22231         * expmed.c (store_bit_field_using_insv): Improve warning message.
22232         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
22234 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
22236         PR rtl-optimization/64011
22237         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
22238         there is partial overflow.
22240 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22242         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
22243         prototype.
22244         (nds32_expand_epilogue_v3pop): Likewise.
22245         * config/nds32/nds32.md (sibcall): Define this for sibling call
22246         optimization.
22247         (sibcall_register): Likewise.
22248         (sibcall_immediate): Likewise.
22249         (sibcall_value): Likewise.
22250         (sibcall_value_register): Likewise.
22251         (sibcall_value_immediate): Likewise.
22252         (sibcall_epilogue): Likewise.
22253         (epilogue): Pass false to indicate this is not a sibcall epilogue.
22254         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
22255         (nds32_expand_epilogue_v3pop): Likewise.
22257 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22259         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
22260         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
22261         (return_internal): New.
22262         (return): Define this named pattern.
22263         (simple_return): Define this named pattern.
22264         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
22265         pattern instead of unspec_volatile_func_return.
22266         (nds32_expand_epilogue_v3pop): Likewise.
22267         (nds32_can_use_return_insn): New function.
22269 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22271         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
22272         * config/nds32/nds32.md (pop25return): New.
22273         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
22274         pop25return pattern.
22276 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22278         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
22279         -mforbid-fp-as-gp, and -mex9 options.
22281 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22283         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
22284         remove -mgp-direct option.
22286 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22288         * doc/invoke.texi (--param early-inlining-insns): Update default value.
22289         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
22291 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22293         * ipa-inline.c (inline_small_functions): Work around hints
22294         cache issue.
22296 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
22298         PR target/59710
22299         * doc/invoke.texi (Option Summary): Document new Nios II
22300         -mgpopt= syntax.
22301         (Nios II Options): Likewise.
22302         * config/nios2/nios2.opt: Add -mgpopt= option support.
22303         Modify existing -mgpopt and -mno-gpopt options to be aliases.
22304         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
22305         * config/nios2/nios2.c (nios2_option_override): Adjust
22306         -mgpopt defaulting.
22307         (nios2_in_small_data_p): Return true for explicit small data
22308         sections even with -G0.
22309         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
22310         option choices.
22312 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22314         PR ipa/64612
22315         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
22316         of comdat locals.
22317         (inline_call): Fix removal of aliases.
22319 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
22321         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
22322         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
22323         * opts.c (common_handle_option): Add -fsanitize=vptr.
22324         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
22325         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
22326         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
22327         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
22328         (ubsan_expand_vptr_ifn): New prototype.
22329         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
22330         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
22331         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
22332         expand_LOOP_VECTORIZED): Make argument nameless, remove
22333         ATTRIBUTE_UNUSED.
22334         (expand_UBSAN_VPTR): New function.
22335         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
22336         in fn spec.
22337         (UBSAN_VPTR): New internal function.
22338         * sanopt.c (tree_map_traits): Renamed to ...
22339         (sanopt_tree_map_traits): ... this.
22340         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
22341         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
22342         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
22343         (maybe_optimize_ubsan_vptr_ifn): New function.
22344         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
22345         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
22346         -fsanitize=vptr.
22347         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
22348         internal calls like pure functions for aliasing, even when they
22349         have other side-effects that prevent making them ECF_PURE.
22350         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
22351         (ubsan_expand_vptr_ifn): New function.
22353 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
22355         PR rtl-optimization/64110
22356         * stmt.c (parse_output_constraint): Process '^' and '$'.
22357         (parse_input_constraint): Ditto.
22358         * lra-constraints.c (process_alt_operands): Process the new
22359         constraints.
22360         * ira-costs.c (record_reg_classes): Process the new constraint
22361         '^'.
22362         * genoutput.c (indep_constraints): Add '^' and '$'.
22363         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
22364         * doc/md.texi: Add description of the new constraints.
22366 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
22367             Bernd Schmidt  <bernds@codesourcery.com>
22368             Cesar Philippidis  <cesar@codesourcery.com>
22369             James Norris  <jnorris@codesourcery.com>
22370             Tom de Vries  <tom@codesourcery.com>
22371             Ilmir Usmanov  <i.usmanov@samsung.com>
22372             Dmitry Bocharnikov  <dmitry.b@samsung.com>
22373             Evgeny Gavrin  <e.gavrin@samsung.com>
22374             Jakub Jelinek  <jakub@redhat.com>
22376         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
22377         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22378         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22379         New function types.
22380         * builtins.c: Include "gomp-constants.h".
22381         (expand_builtin_acc_on_device): New function.
22382         (expand_builtin, is_inexpensive_builtin): Handle
22383         BUILT_IN_ACC_ON_DEVICE.
22384         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
22385         New macros.
22386         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
22387         flag_openmp.
22388         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
22389         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
22390         i386/intelmic-offload.h.
22391         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
22392         to libgomp and its dependencies.
22393         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
22394         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
22395         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
22396         * config/ia64/hpux.h (LIB_SPEC): Likewise.
22397         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
22398         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
22399         * doc/generic.texi: Update for OpenACC changes.
22400         * doc/gimple.texi: Likewise.
22401         * doc/invoke.texi: Likewise.
22402         * doc/sourcebuild.texi: Likewise.
22403         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
22404         GF_OMP_FOR_KIND_OACC_LOOP.
22405         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
22406         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
22407         GF_OMP_TARGET_KIND_OACC_UPDATE,
22408         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
22409         Dump more data.
22410         * gimple.c: Update comments for OpenACC changes.
22411         * gimple.def: Likewise.
22412         * gimple.h: Likewise.
22413         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
22414         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
22415         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
22416         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
22417         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
22418         appropriate place.
22419         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
22420         * gimplify.c: Include "gomp-constants.h".
22421         Update comments for OpenACC changes.
22422         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
22423         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
22424         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
22425         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
22426         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
22427         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
22428         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
22429         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
22430         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
22431         OMP_CLAUSE_SEQ.
22432         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
22433         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
22434         OMP_CLAUSE_SET_MAP_KIND.
22435         (gimplify_oacc_cache): New function.
22436         (gimplify_omp_for): Handle OACC_LOOP.
22437         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
22438         OACC_DATA.
22439         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
22440         OACC_EXIT_DATA, OACC_UPDATE.
22441         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
22442         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
22443         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
22444         (gimplify_body): Consider flag_openacc next to flag_openmp.
22445         * lto-streamer-out.c: Include "gomp-constants.h".
22446         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
22447         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
22448         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
22449         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
22450         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
22451         (BUILT_IN_ACC_ON_DEVICE): New builtins.
22452         * omp-low.c: Include "gomp-constants.h".
22453         Update comments for OpenACC changes.
22454         (struct omp_context): Add reduction_map, gwv_below, gwv_this
22455         members.
22456         (extract_omp_for_data, use_pointer_for_field, install_var_field)
22457         (new_omp_context, delete_omp_context, scan_sharing_clauses)
22458         (create_omp_child_function, scan_omp_for, scan_omp_target)
22459         (check_omp_nesting_restrictions, lower_reduction_clauses)
22460         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
22461         Update for OpenACC changes.
22462         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
22463         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
22464         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
22465         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
22466         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
22467         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
22468         OMP_CLAUSE_MAP_*.
22469         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
22470         Handle GF_OMP_FOR_KIND_OACC_LOOP.
22471         (expand_omp_target, lower_omp_target): Handle
22472         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
22473         GF_OMP_TARGET_KIND_OACC_UPDATE,
22474         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
22475         GF_OMP_TARGET_KIND_OACC_DATA.
22476         (pass_expand_omp::execute, execute_lower_omp)
22477         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
22478         flag_openmp.
22479         (offload_symbol_decl): New variable.
22480         (oacc_get_reduction_array_id, oacc_max_threads)
22481         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
22482         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
22483         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
22484         (oacc_gimple_assign, oacc_initialize_reduction_data)
22485         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
22486         functions.
22487         (is_targetreg_ctx): Remove function.
22488         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
22489         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
22490         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
22491         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
22492         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
22493         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
22494         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
22495         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
22496         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
22497         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
22498         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
22499         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
22500         * tree-core.h: Update comments for OpenACC changes.
22501         (enum omp_clause_map_kind): Remove.
22502         (struct tree_omp_clause): Change type of map_kind member from enum
22503         omp_clause_map_kind to unsigned char.
22504         * tree-inline.c: Update comments for OpenACC changes.
22505         * tree-nested.c: Likewise.  Include "gomp-constants.h".
22506         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
22507         (convert_tramp_reference_stmt, convert_gimple_call): Update for
22508         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
22509         OMP_CLAUSE_SET_MAP_KIND.
22510         * tree-pretty-print.c: Include "gomp-constants.h".
22511         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
22512         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
22513         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
22514         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
22515         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
22516         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
22517         instead of OMP_CLAUSE_MAP_*.
22518         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
22519         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
22520         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
22521         * tree-streamer-in.c: Include "gomp-constants.h".
22522         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
22523         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
22524         * tree-streamer-out.c: Include "gomp-constants.h".
22525         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
22526         OMP_CLAUSE_MAP_*.
22527         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
22528         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
22529         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
22530         * tree.c (omp_clause_num_ops): Update accordingly.
22531         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
22532         Likewise.
22533         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
22534         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
22535         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
22536         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
22537         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
22538         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
22539         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
22540         (OMP_CLAUSE_SET_MAP_KIND): New macro.
22541         * varpool.c (varpool_node::get_create): Consider flag_openacc next
22542         to flag_openmp.
22543         * config/i386/intelmic-offload.h: New file.
22544         * config/nvptx/offload.h: Likewise.
22546 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22548         * explow.h: Remove duplicate contents.
22549         * dojump.h: Likewise.
22551 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
22553         * arm.c (arm_xgene_tune): Add default initializer for instruction
22554         fusion.
22556 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22558         PR ipa/64068
22559         PR ipa/64559
22560         * ipa.c (symbol_table::remove_unreachable_nodes):
22561         Do not put abstract origins into boundary.
22563 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
22565         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
22566         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
22568 2015-01-15  Steve Ellcey  <sellcey@mips.com>
22570         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
22571         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
22572         builtins.def, and chkp-builtins.def.
22574 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
22576         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
22577         ISA 2.7 (POWER8).
22579 2015-01-15  Richard Biener  <rguenther@suse.de>
22581         PR tree-optimization/61743
22582         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
22583         information on PHIs for some simple cases.
22585 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22587         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
22588         Include xgene1.md.
22589         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
22590         * config/arm/arm-cores.def (xgene1): New entry.
22591         * config/arm/arm-tables.opt: Regenerate.
22592         * config/arm/arm-tune.md: Regenerate.
22593         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
22595 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
22597         * tree-if-conv.c: Include hash-map.h.
22598         (aggressive_if_conv): New variable.
22599         (fold_build_cond_expr): Add simplification of non-zero condition.
22600         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
22601         destination block is not always executed.
22602         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
22603         than two predecessors if AGGRESSIVE_IF_CONV is true.
22604         (if_convertible_stmt_p): Fix commentary.
22605         (all_preds_critical_p): New function.
22606         (has_pred_critical_p): New function.
22607         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
22608         BB can have more than two predecessors and all incoming edges can be
22609         critical.
22610         (predicate_bbs): Skip predication for loop exit block, use build2_loc
22611         to compute predicate for true edge.
22612         (find_phi_replacement_condition): Delete this function.
22613         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
22614         Allow interchange PHI arguments if EXTENDED is false.
22615         Change check that block containing reduction statement candidate
22616         is predecessor of phi-block since phi may have more than two arguments.
22617         (phi_args_hash_traits): New helper structure.
22618         (struct phi_args_hash_traits): New type.
22619         (phi_args_hash_traits::hash): New function.
22620         (phi_args_hash_traits::equal_keys): New function.
22621         (gen_phi_arg_condition): New function.
22622         (predicate_scalar_phi): Add handling of phi nodes with more than two
22623         arguments, delete COND and TRUE_BB arguments, insert body of
22624         find_phi_replacement_condition to predicate ordinary phi nodes.
22625         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
22626         delete call of find_phi_replacement_condition and invoke
22627         predicate_scalar_phi with two arguments.
22628         (insert_gimplified_predicates): Add assert that non-predicated block
22629         don't have statements to insert.
22630         (ifcvt_split_critical_edges): New function.
22631         (ifcvt_split_def_stmt): Likewise.
22632         (ifcvt_walk_pattern_tree): Likewise.
22633         (stmt_is_root_of_bool_pattern): Likewise.
22634         (ifcvt_repair_bool_pattern): Likewise.
22635         (ifcvt_local_dce): Likewise.
22636         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
22637         is copy of inner or outer loop force_vectorize field, invoke
22638         ifcvt_split_critical_edges, ifcvt_local_dce and
22639         ifcvt_repair_bool_pattern for aggressive if-conversion.
22641 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
22643         * config/aarch64/aarch64.md: Include xgene1.md.
22644         * config/aarch64/xgene1.md: New file.
22646 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22648         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
22649         xgene1 (APM XGene-1) core definition.
22650         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
22651         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
22652         * doc/invoke.texi: Document -mcpu=xgene1.
22654 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22656         * dojump.h: New header file.
22657         * explow.h: Likewise.
22658         * expr.h: Remove includes.
22659         Move expmed.c prototypes to expmed.h.
22660         Move dojump.c prototypes to dojump.h.
22661         Move alias.c prototypes to alias.h.
22662         Move explow.c prototypes to explow.h.
22663         Move calls.c prototypes to calls.h.
22664         Move emit-rtl.c prototypes to emit-rtl.h.
22665         Move varasm.c prototypes to varasm.h.
22666         Move stmt.c prototypes to stmt.h.
22667         (saved_pending_stack_adjust): Move to dojump.h.
22668         (adjust_address): Move to explow.h.
22669         (adjust_address_nv): Move to emit-rtl.h.
22670         (adjust_bitfield_address): Likewise.
22671         (adjust_bitfield_address_size): Likewise.
22672         (adjust_bitfield_address_nv): Likewise.
22673         (adjust_automodify_address_nv): Likewise.
22674         * explow.c (expr_size): Move to expr.c.
22675         (int_expr_size): Likewise.
22676         (tree_expr_size): Likewise.
22677         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22678         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
22679         * genemit.c (main): Generate includes statistics.h, real.h,
22680         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
22681         stmt.h.
22682         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
22683         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
22684         explow.h, emit-rtl.h, stmt.h.
22685         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
22686         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
22687         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
22688         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
22689         emit-rtl.h, varasm.h, stmt.h.
22690         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
22691         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
22692         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
22693         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
22694         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22695         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
22696         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
22697         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
22698         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
22699         tm.h tree.h varasm.h vec.h wide-int.h.
22700         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22701         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
22702         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
22703         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
22704         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
22705         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
22706         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
22707         * loop-iv.c: Likewise.
22708         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
22709         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
22710         statistics.h stmt.h tree.h varasm.h wide-int.h.
22711         * lra-constraints.c: Likewise.
22712         * lra-eliminations.c: Likewise.
22713         * lra-lives.c: Likewise.
22714         * lra-remat.c: Likewise.
22715         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22716         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
22717         statistics.h stmt.h tree.h varasm.h wide-int.h.
22718         * hw-doloop.c: Likewise.
22719         * ira-color.c: Likewise.
22720         * ira-emit.c: Likewise.
22721         * loop-doloop.c: Likewise.
22722         * loop-invariant.c: Likewise.
22723         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22724         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
22725         statistics.h stmt.h tree.h varasm.h wide-int.h.
22726         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
22727         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
22728         statistics.h stmt.h tree.h varasm.h wide-int.h.
22729         * combine-stack-adj.c: Likewise.
22730         * cse.c: Likewise.
22731         * ddg.c: Likewise.
22732         * ifcvt.c: Likewise.
22733         * ira-costs.c: Likewise.
22734         * jump.c: Likewise.
22735         * lra-coalesce.c: Likewise.
22736         * lra-spills.c: Likewise.
22737         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22738         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
22739         stmt.h varasm.h wide-int.h.
22740         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22741         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
22742         varasm.h.
22743         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
22744         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
22745         statistics.h stmt.h varasm.h wide-int.h.
22746         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
22747         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
22748         varasm.h wide-int.h.
22749         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
22750         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
22751         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
22752         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
22753         statistics.h stmt.h.
22754         * config/tilepro/tilepro.c: Likewise.
22755         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
22756         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
22757         * config/pdp11/pdp11.c: Likewise.
22758         * config/xtensa/xtensa.c: Likewise.
22759         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
22760         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
22761         varasm.h.
22762         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22763         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
22764         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
22765         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22766         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
22767         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
22768         * rtl-chkp.c: Likewise.
22769         * tree-chkp-opt.c: Likewise.
22770         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
22771         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
22772         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
22773         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22774         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
22775         statistics.h stmt.h.
22776         * tree-vect-data-refs.c: Likewise.
22777         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
22778         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22779         rtl.h statistics.h stmt.h varasm.h.
22780         * internal-fn.c: Likewise.
22781         * ipa-icf-gimple.c: Likewise.
22782         * lto-section-out.c: Likewise.
22783         * tree-data-ref.c: Likewise.
22784         * tree-nested.c: Likewise.
22785         * tree-outof-ssa.c: Likewise.
22786         * tree-predcom.c: Likewise.
22787         * tree-pretty-print.c: Likewise.
22788         * tree-scalar-evolution.c: Likewise.
22789         * tree-ssa-strlen.c: Likewise.
22790         * tree-vect-loop.c: Likewise.
22791         * tree-vect-patterns.c: Likewise.
22792         * tree-vect-slp.c: Likewise.
22793         * tree-vect-stmts.c: Likewise.
22794         * tsan.c: Likewise.
22795         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22796         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
22797         stmt.h.
22798         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
22799         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22800         statistics.h stmt.h varasm.h.
22801         * loop-unroll.c: Likewise.
22802         * ubsan.c: Likewise.
22803         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
22804         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
22805         stmt.h varasm.h.
22806         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22807         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
22808         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
22809         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
22810         statistics.h stmt.h.
22811         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
22812         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
22813         statistics.h stmt.h varasm.h.
22814         * gimple-match-head.c: Likewise.
22815         * lto-cgraph.c: Likewise.
22816         * lto-section-in.c: Likewise.
22817         * lto-streamer-in.c: Likewise.
22818         * lto-streamer-out.c: Likewise.
22819         * tree-affine.c: Likewise.
22820         * tree-cfg.c: Likewise.
22821         * tree-cfgcleanup.c: Likewise.
22822         * tree-if-conv.c: Likewise.
22823         * tree-into-ssa.c: Likewise.
22824         * tree-ssa-alias.c: Likewise.
22825         * tree-ssa-copyrename.c: Likewise.
22826         * tree-ssa-dse.c: Likewise.
22827         * tree-ssa-forwprop.c: Likewise.
22828         * tree-ssa-live.c: Likewise.
22829         * tree-ssa-math-opts.c: Likewise.
22830         * tree-ssa-pre.c: Likewise.
22831         * tree-ssa-sccvn.c: Likewise.
22832         * tree-tailcall.c: Likewise.
22833         * tree-vect-generic.c: Likewise.
22834         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22835         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
22836         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22837         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
22838         * varasm.c: Likewise.
22839         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22840         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
22841         varasm.h.
22842         * init-regs.c: Likewise.
22843         * ira.c: Likewise.
22844         * omp-low.c: Likewise.
22845         * stack-ptr-mod.c: Likewise.
22846         * tree-ssa-reassoc.c: Likewise.
22847         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22848         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
22849         varasm.h.
22850         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22851         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
22852         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22853         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
22854         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22855         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
22856         * tree-ssa-phiopt.c: Likewise.
22857         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22858         fixed-value.h hashtab.h real.h statistics.h stmt.h.
22859         * config/fr30/fr30.c: Likewise.
22860         * config/frv/frv.c: Likewise.
22861         * expr.c: Likewise.
22862         * final.c: Likewise.
22863         * optabs.c: Likewise.
22864         * passes.c: Likewise.
22865         * simplify-rtx.c: Likewise.
22866         * stmt.c: Likewise.
22867         * toplev.c: Likewise.
22868         * var-tracking.c: Likewise.
22869         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22870         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
22871         * lower-subreg.c: Likewise.
22872         * postreload-gcse.c: Likewise.
22873         * ree.c: Likewise.
22874         * reginfo.c: Likewise.
22875         * store-motion.c: Likewise.
22876         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22877         fixed-value.h hashtab.h real.h stmt.h varasm.h.
22878         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22879         fixed-value.h hashtab.h statistics.h stmt.h.
22880         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22881         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
22882         * except.c: Likewise.
22883         * explow.c: Likewise.
22884         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22885         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
22886         varasm.h.
22887         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22888         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
22889         * tree-ssa-structalias.c: Likewise.
22890         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22891         fixed-value.h insn-config.h real.h statistics.h.
22892         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22893         fixed-value.h insn-config.h real.h statistics.h stmt.h.
22894         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22895         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
22896         * cfgbuild.c: Likewise.
22897         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22898         fixed-value.h real.h rtl.h statistics.h stmt.h.
22899         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22900         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
22901         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22902         fixed-value.h real.h statistics.h stmt.h.
22903         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22904         fixed-value.h real.h statistics.h stmt.h varasm.h.
22905         * cprop.c: Likewise.
22906         * modulo-sched.c: Likewise.
22907         * postreload.c: Likewise.
22908         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
22909         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
22910         statistics.h stmt.h varasm.h.
22911         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
22912         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22913         rtl.h statistics.h stmt.h varasm.h.
22914         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
22915         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
22916         varasm.h.
22917         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
22918         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
22919         varasm.h.
22920         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
22921         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
22922         varasm.h.
22923         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
22924         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
22925         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
22926         function.h real.h statistics.h stmt.h varasm.h.
22927         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
22928         insn-config.h real.h statistics.h stmt.h.
22929         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
22930         statistics.h stmt.h.
22931         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
22932         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
22933         statistics.h stmt.h varasm.h.
22934         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
22935         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
22936         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
22937         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
22938         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
22939         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
22940         statistics.h stmt.h varasm.h.
22941         * ipa-polymorphic-call.c: Likewise.
22942         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
22943         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22944         statistics.h stmt.h.
22945         * config/c6x/c6x.c: Likewise.
22946         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
22947         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22948         statistics.h stmt.h varasm.h.
22949         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
22950         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
22951         stmt.h varasm.h.
22952         * ipa-split.c: Likewise.
22953         * tree-eh.c: Likewise.
22954         * tree-ssa-dce.c: Likewise.
22955         * tree-ssa-loop-niter.c: Likewise.
22956         * tree-vrp.c: Likewise.
22957         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
22958         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
22959         stmt.h.
22960         * config/nds32/nds32-fp-as-gp.c: Likewise.
22961         * config/nds32/nds32-intrinsic.c: Likewise.
22962         * config/nds32/nds32-isr.c: Likewise.
22963         * config/nds32/nds32-md-auxiliary.c: Likewise.
22964         * config/nds32/nds32-memory-manipulation.c: Likewise.
22965         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22966         * config/nds32/nds32-predicates.c: Likewise.
22967         * config/nds32/nds32.c: Likewise.
22968         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
22969         fixed-value.h hashtab.h real.h statistics.h.
22970         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
22971         fixed-value.h hashtab.h real.h statistics.h stmt.h.
22972         * config/arm/arm.c: Likewise.
22973         * config/avr/avr.c: Likewise.
22974         * config/bfin/bfin.c: Likewise.
22975         * config/h8300/h8300.c: Likewise.
22976         * config/i386/i386.c: Likewise.
22977         * config/ia64/ia64.c: Likewise.
22978         * config/iq2000/iq2000.c: Likewise.
22979         * config/m32c/m32c.c: Likewise.
22980         * config/m32r/m32r.c: Likewise.
22981         * config/m68k/m68k.c: Likewise.
22982         * config/mcore/mcore.c: Likewise.
22983         * config/mep/mep.c: Likewise.
22984         * config/mips/mips.c: Likewise.
22985         * config/mn10300/mn10300.c: Likewise.
22986         * config/moxie/moxie.c: Likewise.
22987         * config/pa/pa.c: Likewise.
22988         * config/rl78/rl78.c: Likewise.
22989         * config/rx/rx.c: Likewise.
22990         * config/s390/s390.c: Likewise.
22991         * config/sh/sh.c: Likewise.
22992         * config/sparc/sparc.c: Likewise.
22993         * config/spu/spu.c: Likewise.
22994         * config/stormy16/stormy16.c: Likewise.
22995         * config/v850/v850.c: Likewise.
22996         * config/vax/vax.c: Likewise.
22997         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
22998         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
22999         * config/msp430/msp430.c: Likewise.
23000         * predict.c: Likewise.
23001         * value-prof.c: Likewise.
23002         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
23003         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
23004         * config/microblaze/microblaze.c: Likewise.
23005         * config/nios2/nios2.c: Likewise.
23006         * config/rs6000/rs6000.c: Likewise.
23007         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23008         insn-config.h real.h rtl.h statistics.h stmt.h.
23009         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23010         insn-config.h real.h statistics.h stmt.h.
23011         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
23012         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23013         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
23014         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23015         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
23016         fixed-value.h real.h statistics.h stmt.h.
23017         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
23018         fixed-value.h statistics.h stmt.h.
23019         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
23020         stmt.h.
23022 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
23024         * gengtype.c (create_user_defined_type): Workaround
23025         -Wmaybe-uninitialized false positives.
23026         * cse.c (fold_rtx): Likewise.
23027         * loop-invariant.c (gain_for_invariant): Likewise.
23029 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23031         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
23032         set the memory attributes in all cases but clear MEM_EXPR if need be.
23034 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
23036         PR tree-optimization/64434
23037         * cfgexpand.c (reorder_operands): New function.
23038         (expand_gimple_basic_block): Insert call of reorder_operands if
23039         optimized is true.
23041 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
23043         * config/mips/micromips.md (*swp): Remove explicit parallel.
23044         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
23045         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
23046         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
23047         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
23048         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
23049         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
23050         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
23051         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
23052         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
23053         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
23054         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
23055         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
23056         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
23057         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
23058         (mips_wrdsp): Likewise.
23059         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
23060         parallel.
23061         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
23062         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
23063         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
23064         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
23065         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
23066         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
23067         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
23068         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
23069         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
23071 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23073         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
23074         (mips_print_operand): Support 'y' to print exact log2 in decimal
23075         of a const_int.
23076         * config/mips/mips.h (ISA_HAS_LSA): New define.
23077         (ISA_HAS_DLSA): Likewise.
23078         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
23079         * config/mips/predicates.md (const_immlsa_operand): New predicate.
23081 2015-01-15  Martin Liska  <mliska@suse.cz>
23083         PR target/64377
23084         * optc-save-gen.awk: Add support for array types.
23086 2015-01-15  Richard Biener  <rguenther@suse.de>
23088         PR middle-end/64365
23089         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
23090         for MEM_REF access functions with the same base can never partially
23091         overlap.
23093 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
23095         * common.opt: New option -fstack-protector-explicit.
23096         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
23097         (stack_protect_decl_phase): Handle stack_protect attribute for
23098         explicit stack protection requests.
23099         (expand_used_vars): Similarly.
23100         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
23101         * doc/extend.texi: Add documentation for "stack_protect" attribute.
23102         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
23104 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
23106         PR target/53988
23107         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
23108         reg-reg copies.
23109         (sh_extending_set_of_reg): New struct.
23110         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
23111         sh_remove_reg_dead_or_unused_notes): New Declarations.
23112         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
23113         sh_find_extending_set_of_reg, sh_split_tst_subregs,
23114         sh_extending_set_of_reg::use_as_extended_reg): New functions.
23115         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
23116         convert to insn_and_split and use new function sh_split_tst_subregs.
23118 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
23120         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
23121         option.
23122         (Optimization Options): Move -fuse-ld documentation to...
23123         (Link Options): ...here.
23125 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23127         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
23128         offsets.
23129         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
23130         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
23131         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
23132         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
23133         instead of ZR for the memory operand of LL/SC.
23134         (compare_and_swap_12, sync_add<mode>): Likewise.
23135         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
23136         (sync_new_<optab>_12, sync_nand_12): Likewise.
23137         (sync_old_nand_12, sync_new_nand_12): Likewise.
23138         (sync_sub<mode>, sync_old_add<mode>): Likewise.
23139         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
23140         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
23141         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
23142         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
23143         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
23144         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
23145         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
23146         * doc/md.texi (ZC): Update description.
23148 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
23150         * builtins.c (expand_builtin_atomic_exchange): Remove error when
23151         memory model is CONSUME.
23152         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
23153         expand_builtin_atomic_store): Change invalid memory model errors to
23154         warnings.
23155         (expand_builtin_atomic_clear): Change invalid model errors to warnings
23156         and issue warning for CONSUME.
23158 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
23160         * lto-cgraph: Update function comments for
23161         lto_symtab_encoder_encode_*.
23163 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
23165         * Makefile.in (site.exp): Do not set ENABLE_LTO.
23167 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
23169         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
23170         * lto-cgraph.c (select_what_to_stream): Remove argument, use
23171         lto_stream_offload_p instead.
23172         * lto-streamer.h (select_what_to_stream): Remove argument.
23173         * passes.c (ipa_write_summaries): Likewise.
23174         * tree-pass.h (ipa_write_summaries): Likewise.
23176 2015-01-14  Richard Biener  <rguenther@suse.de>
23178         PR tree-optimization/59354
23179         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
23180         groups larger than the slp group size as having gaps.
23182 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
23184         PR middle-end/59448
23185         * builtins.c (get_memmodel): Promote consume to acquire always.
23187 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23189         PR target/64386
23190         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
23191         V32HImode.
23193 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23195         PR target/64393
23196         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
23197         Enable AVX512BW.
23198         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
23199         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
23200         AVX512VBMI, as it implies AVX512BW.
23202 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23204         PR target/64387
23205         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
23206         (vec_unpacks_hi_v16sf): Ditto.
23208 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23210         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
23211         is not available.
23213 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23215         * doc/invoke.texi (mapcs): Mention deprecation.
23216         (mapcs-frame): Likewise.
23218 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23220         PR target/64453
23221         * config/arm/arm.c (callee_saved_reg_p): Define.
23222         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
23223         register is callee saved instead of !call_used_regs[reg].
23224         (thumb1_compute_save_reg_mask): Likewise.
23226 2015-01-14  Hale Wang  <hale.wang@arm.com>
23228         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
23229         Cortex-M7.
23231 2015-01-14  Richard Biener  <rguenther@suse.de>
23233         PR lto/64415
23234         * tree-inline.c (insert_debug_decl_map): Check destination
23235         function MAY_HAVE_DEBUG_STMTS.
23236         (insert_init_debug_bind): Likewise.
23237         (insert_init_stmt): Remove redundant check.
23238         (remap_gimple_stmt): Drop debug stmts if the destination
23239         function has var-tracking assignments disabled.
23241 2015-01-14  Martin Liska  <mliska@suse.cz>
23243         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
23244         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
23246 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23248         PR target/64460
23249         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
23250         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
23252 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23254         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
23255         level from an ARCH; do not inject the default.
23256         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
23257         MIPS_ISA_LEVEL_SPEC.
23258         (MIPS_ISA_NAN2008_SPEC): Update comment.
23259         (BASE_DRIVER_SELF_SPECS): Likewise.
23260         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
23261         MIPS_DEFAULT_ISA_LEVEL_SPEC.
23262         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
23263         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
23264         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
23266 2015-01-14  Richard Biener  <rguenther@suse.de>
23268         PR tree-optimization/64493
23269         PR tree-optimization/64495
23270         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
23271         assign the proper vectorized PHI to the inner loop exit PHIs.
23273 2015-01-14  Joey Ye  <joey.ye@arm.com>
23275         * config/arm/arm.c (arm_compute_save_reg_mask):
23276         Do not save lr in case of tail call.
23277         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
23279 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
23281         * tree-vrp.c (check_array_ref): Emit more warnings
23282         for warn_array_bounds >= 2.
23283         * common.opt: New option -Warray-bounds=.
23284         * doc/invoke.texi: Document -Warray-bounds=.
23286 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23288         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
23289         (mforbid-fp-as-gp): Remove.
23290         (mex9): Remove.
23291         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
23292         (nds32_symbol_load_store_p): Remove.
23293         (nds32_fp_as_gp_check_available): Clean up implementation.
23294         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
23295         cases.
23296         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
23297         fp-as-gp and ex9 cases.
23299 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
23301         * tree-profile.c (init_ic_make_global_vars): Drop workaround
23302         for bintuils bug 14342.
23303         (init_ic_make_global_vars): Likewise.
23304         (gimple_init_edge_profiler): Likewise.
23305         (gimple_gen_ic_func_profiler): Likewise.
23307 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23309         * ipa-inline.c (inline_small_functions): Swap the operands in
23310         enum.
23312 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
23314         PR ipa/64481
23315         * ipa-inline-analysis.c (node_growth_cache): Remove.
23316         (initialize_growth_caches): Do not initialize it.
23317         (free_growth_caches): Do not free it.
23318         (do_estimate_growth): Rename to ...
23319         (estimate_growth): ... this one; drop growth cache code.
23320         (growth_likely_positive): Always go the heuristics way.
23321         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
23322         (reset_edge_caches): Do not reset node growth.
23323         (heap_edge_removal_hook): Do not maintain cache.
23324         (inline_small_functions): Likewise; strenghten sanity check.
23325         (ipa_inline): Do not maintain caches.
23326         * ipa-inline.h (node_growth_cache): Remove.
23327         (do_estimate_growth): Remove to ...
23328         (estimate_growth): this one; remove inline version.
23329         (reset_node_growth_cache): Remove.
23331 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
23333         PR ipa/64565
23334         * ipa-inline.c (inline_small_functions): Update callee keys after
23335         resolving speculation
23336         (inline_small_functions): Always check monotonicity of the queue.
23338 2015-01-13  Marek Polacek  <polacek@redhat.com>
23340         PR middle-end/64391
23341         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
23343 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
23345         PR rtl-optimization/64286
23346         * ree.c (combine_reaching_defs): Move part of comment earlier,
23347         remove !SCALAR_INT_MODE_P check.
23348         (add_removable_extension): Don't add vector mode
23349         extensions if all uses of the source register aren't the same
23350         vector extensions.
23352 2015-01-13  Renlin Li  <renlin.li@arm.com>
23354         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
23355         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
23357 2015-01-13  Martin Liska  <mliska@suse.cz>
23359         * ipa-icf.c (sem_function::equals_private): Call new functions
23360         cl_target_option_print_diff and cl_optimization_print_diff.
23361         * optc-save-gen.awk (cl_target_option_print_diff): New function.
23362         (cl_optimization_print_diff): Likewise.
23363         * opth-gen.awk: Likewise.
23365 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
23367         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
23368         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
23369         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
23370         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
23371         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
23372         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
23374 2015-01-13  Andrew Pinski  <apinski@cavium.com>
23376         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
23377         instead of src mode.
23379 2015-01-13  Richard Biener  <rguenther@suse.de>
23381         PR lto/64373
23382         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
23383         DECL_CONTEXT.
23385 2015-01-13  Andrew Pinski  <apinski@cavium.com>
23387         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
23388         volatile mems.
23389         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
23391 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
23393         PR middle-end/63974
23394         * cfgexpand.c (expand_computed_goto): Don't call
23395         convert_memory_address here.
23397 2015-01-13  Richard Biener  <rguenther@suse.de>
23399         PR tree-optimization/64406
23400         * tree-loop-distibution.c (pass_loop_distribution::execute):
23401         Reset the SCEV hashtable if we distributed anything.
23403 2015-01-13  Richard Biener  <rguenther@suse.de>
23405         PR tree-optimization/64404
23406         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
23407         SLP types for CSEd loads.
23409 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23411         PR tree-optimization/64436
23412         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
23413         merge of two symbolic numbers for a bitwise OR to ...
23414         (perform_symbolic_merge): This. Also fix computation of the range and
23415         end of the symbolic number corresponding to the result of a bitwise OR.
23417 2015-01-13  Richard Biener  <rguenther@suse.de>
23419         PR tree-optimization/64568
23420         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
23421         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
23423 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23425         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
23426         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
23428 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23430         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
23431         target-specific symbol_ref flag.
23432         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
23433         resides in rodata section.
23434         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
23435         (nds32_encode_section_info): New function.
23437 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23439         * config/nds32/nds32.md (call): Use pseudo instruction bal which
23440         clobbers TA_REGNUM if large code model is specified.
23441         (call_register): Likewise.
23442         (call_immediate): Likewise.
23443         (call_value): Likewise.
23444         (call_value_register): Likewise.
23445         (call_value_immediate): Likewise.
23447 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23449         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
23450         (TARGET_CMODEL_MEDIUM): New macro.
23451         (TARGET_CMODEL_LARGE): New macro.
23452         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
23453         code model setting in assembly code.
23455 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23457         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
23458         Remove MASK_GP_DIRECT flag.
23459         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
23460         one of the multilib default options.
23461         * config/nds32/nds32.opt (mgp-direct): Remove.
23462         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
23463         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
23465 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23467         * config/nds32/nds32.opt (mcmodel): Add new option.
23468         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
23469         to describe code model.
23471 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
23473         PR target/64479
23474         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
23476 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
23478         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
23479         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23480         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
23481         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
23482         __builtin_sh_set_fpscr.
23484 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23486         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
23487         after a funtion name just to indicate it is a function.
23488         ([-fsanitize-undefined-trap-on-error]): Likewise.
23489         ([-fdbg-cnt=]): Likewise.
23490         ([-mmemcpy]): Likewise.
23491         ([-mflush-func]): Likewise.
23492         ([-msynci]): Likewise.
23494 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23496         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
23497         example.
23499 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
23501         PR tree-optimization/64563
23502         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
23503         instead of != VR_VARYING.
23505         PR target/64513
23506         * config/i386/i386.c (ix86_expand_prologue): Add
23507         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
23509         PR tree-optimization/64454
23510         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
23511         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
23512         for signed or [0, op1 - 1] for unsigned modulo.
23513         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
23514         even if op1 does not satisfy integer_pow2p.
23516         PR other/64370
23517         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
23519 2015-01-12  Jeff Law  <law@redhat.com>
23521         PR target/64461
23522         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
23523         (trunchiqi2, truncsihi2): Similarly.
23525         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
23526         rather than calling F.
23528 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23530         * tsan.c (instrument_expr): Use force_gimple_operand.
23531         Use may_be_nonaddressable_p instead of is_gimple_addressable.
23533 2015-01-12  Richard Biener  <rguenther@suse.de>
23535         PR tree-optimization/64530
23536         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
23537         back dr1.
23539 2015-01-12  Richard Biener  <rguenther@suse.de>
23541         PR middle-end/64357
23542         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
23543         latches properly.
23545 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23547         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
23548         Cortex-A17 tuning parameters.
23549         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
23551 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23553         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
23554         * config/arm/arm.c (arm_macro_fusion_p): New function.
23555         (arm_macro_fusion_pair_p): Likewise.
23556         (TARGET_SCHED_MACRO_FUSION_P): Define.
23557         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
23558         (ARM_FUSE_NOTHING): Likewise.
23559         (ARM_FUSE_MOVW_MOVT): Likewise.
23560         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
23561         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
23562         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
23563         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
23564         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
23565         arm_cortex_a5_tune): Specify fuseable_ops value.
23567 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
23569         PR bootstrap/64561
23570         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
23571         test for PIE with copy reloc.
23572         * configure: Regenerated.
23574 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23576         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
23577         in gen_rtx_REG.
23578         (arm_tls_descseq_addr): Likewise.
23579         (arm_gen_movmemqi): Likewise.
23580         (arm_expand_epilogue_apcs_frame): Likewise.
23581         (arm_expand_epilogue): Likewise.
23582         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
23583         in gen_rtx_REG.
23585 2015-01-12  Martin Liska  <mliska@suse.cz>
23587         PR ipa/64550
23588         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
23589         volatility for correct operands.
23591 2015-01-12  Martin Liska  <mliska@suse.cz>
23593         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
23594         indication that a function is not leaf.
23595         (sem_function::compare_polymorphic_p): Likewise.
23597 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23599         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
23600         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
23601         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
23602         fold-const.h, tree-check.h.
23604 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
23606         PR ipa/63967
23607         PR ipa/64425
23608         * ipa-inline.c (compute_uninlined_call_time,
23609         compute_inlined_call_time): Use counts for extra precision when
23610         needed possible.
23611         (big_speedup_p): Fix formating.
23612         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
23613         (relative_time_benefit): Remove.
23614         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
23615         merge guessed and read profile paths.
23616         (inline_small_functions): Count only !optimize_size functions into
23617         initial size; be more lax about sanity check when profile is used;
23618         be sure to update inlined function profile when profile is read.
23620 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
23622         PR ipa/63470
23623         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
23624         cost when edge becomes direct.
23625         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
23626         is resolved or when introducing new speculation.
23628 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
23630         PR ipa/64551
23631         PR ipa/64552
23632         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
23633         '||' to fix typo issue.
23635         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
23636         accept and return NULL.
23638 2015-01-12  Martin Liska  <mliska@suse.cz>
23640         * cgraph.c (cgraph_edge::remove_callee): Move function to header
23641         file for being inlined.
23642         (cgraph_set_edge_callee): Delete.
23643         (cgraph_edge::redirect_callee): Move function to header file
23644         for being inlined.
23645         (cgraph_edge::make_direct): Use new function.
23646         (cgraph_edge::dump_edge_flags): New function created from
23647         static dump_edge_flags function.
23648         (cgraph_node::dump): Use new function.
23649         (cgraph_edge::verify_count_and_frequency): New function created
23650         from verify_edge_count_and_frequency.
23651         (cgraph_edge::verify_corresponds_to_fndecl): New function created
23652         from verify_edge_corresponds_to_fndecl.
23653         (verify_edge_corresponds_to_fndecl): Delete.
23654         (cgraph_node::verify_node): Use new function.
23655         * cgraph.h (cgraph_edge::set_callee): New function.
23656         (cgraph_edge::dump_edge_flags): Likewise.
23657         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
23659 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
23661         * ipa-utils.c (estimate_function_body_sizes): Do not
23662         free node params when called late with early=true.
23664 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
23666         * doc/md.texi (Instruction Patterns): Rewrite text for
23667         clarity.
23668         (Example): Likewise.
23670 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
23672         * doc/invoke.texi (Option Summary): Break long lines.
23673         [(-fdiagnostics-color)]: Put long literal in @smallexample
23674         instead of inline.
23675         [(-fsanitize-recover)]: Likewise.
23676         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
23677         [(-ffast-math)]: Likewise.
23678         [(--param max-inline-insns-recursive)]: Likewise.
23679         [(--param max-inline-recursive-depth)]: Likewise.
23680         [(-mno-text-section-literals)]: Likewise.
23682 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
23684         * doc/install.texi: Update for libgomp being renamed from "GNU
23685         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
23686         Runtime Library".
23687         * doc/sourcebuild.texi: Likewise.
23689 2015-01-10  Anthony Green  <green@moxielogic.com>
23691         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
23692         mul.x availability for moxiebox configuration.
23694 2015-01-09  Anthony Green  <green@moxielogic.com>
23696         * config/moxie/moxie.md: Tabify assembly output.
23698 2015-01-09  Anthony Green  <green@moxielogic.com>
23700         * config/moxie/moxie.md (CC_REG): Correct register definition.
23702 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
23704         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
23705         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
23706         of log files.
23708 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
23710         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
23712 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
23713             Jakub Jelinek  <jakub@redhat.com>
23715         PR middle-end/64412
23716         * lto-streamer.h (lto_stream_offload_p): New declaration.
23717         * lto-streamer.c (lto_stream_offload_p): New variable.
23718         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
23719         at the same time as section_name_prefix.
23720         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
23721         if lto_stream_offload_p.
23722         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
23723         stream TREE_TARGET_OPTION if lto_stream_offload_p.
23724         (write_ts_function_decl_tree_pointers): Don't
23725         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
23726         * tree-streamer-in.c (unpack_value_fields): Don't stream
23727         TREE_TARGET_OPTION in if ACCEL_COMPILER.
23728         (lto_input_ts_function_decl_tree_pointers): Don't stream
23729         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
23730         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
23731         instead of section_name_prefix string comparisons.
23733 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
23735         PR rtl-optimization/64536
23736         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
23737         tablejumps.
23739 2015-01-09  Michael Collison  <michael.collison@linaro.org>
23741         PR tree-optimization/64322
23742         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
23743         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
23745 2015-01-09  Tom de Vries  <tom@codesourcery.com>
23747         PR rtl-optimization/64539
23748         * regcprop.c (kill_clobbered_values): Factor out of ...
23749         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
23750         instead of note_stores with kill_clobbered_value.
23752 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
23754          * ginclude/unwind-arm-common.h: Revert previous commit.
23756 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
23758         * config.gcc (arm*-*-freebsd*): New configuration.
23759         * config/arm/freebsd.h: New file.
23760         * config.host: Add extra components for arm*-*-freebsd*.
23761         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
23762         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
23764 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23766         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
23767         for -mcpu=e6500.
23768         * config/rs6000/t-rtems: Add e6500 multilibs.
23770 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23772         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
23773         MPC8540.
23775 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23777         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
23778         MULTILIB_EXCEPTIONS.
23780 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23782         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
23783         MULTILIB_EXCEPTIONS.
23785 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23787         * config/arm/t-rtems-eabi: Rename to...
23788         * config/arm/t-rtems: ...this.
23789         * config/arm/rtems-eabi.h: Rename to...
23790         * config/arm/rtems.h: ...this.
23791         * config.gcc (arm*-*-rtems*): Reflect changes above.
23793 2015-01-09  Richard Biener  <rguenther@suse.de>
23795         PR tree-optimization/64410
23796         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
23797         on the LHS.
23798         (execute_update_addresses_taken): Deal with that.
23799         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
23800         loads/stores for complex variables.
23802 2015-01-09  Martin Liska  <mliska@suse.cz>
23804         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
23805         name comparison.
23806         (func_checker::compare_memory_operand): New function.
23807         (func_checker::compare_operand): Split case to newly
23808         added functions.
23809         (func_checker::compare_cst_or_decl): New function.
23810         (func_checker::compare_gimple_call): Identify
23811         memory operands.
23812         (func_checker::compare_gimple_assign): Likewise.
23813         * ipa-icf-gimple.h: New function.
23815 2015-01-09  Martin Liska  <mliska@suse.cz>
23817         PR ipa/64503
23818         * sreal.c (sreal::dump): Change unsigned format to signed for
23819         m_exp value.
23820         (sreal::to_double): Replace exp2 with scalbln.
23822 2015-01-09  Martin Liska  <mliska@suse.cz>
23824         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
23825         * ipa-icf.c (sem_function::equals_private): Add support for target and
23826         (sem_item_optimizer::merge_classes): Remove redundant function
23827         optimization flags comparison.
23828         * tree.h (target_opts_for_fn): New function.
23830 2015-01-09  Tom de Vries  <tom@codesourcery.com>
23832         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
23834 2015-01-09  Kito Cheng  <kito@0xlab.org>
23836         PR rtl-optimization/64348
23837         * lra-constraints.c (split_reg): Fix caller-save store/restore
23838         instruction generation.
23840 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
23842         PR gcov-profile/61790
23843         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
23844         long long.  Fallback to int64_t if host doesn't have long long and
23845         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
23847 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
23849         PR tree-optimization/63989
23850         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
23851         from 1000 to 10000.
23852         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
23853         (get_stridx): If we don't have a record for certain SSA_NAME,
23854         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
23855         constant offset, call get_stridx_plus_constant.
23856         (get_stridx_plus_constant): New function.
23857         (zero_length_string): Don't use get_stridx here.
23859         PR target/55023
23860         PR middle-end/64388
23861         * dse.c (struct insn_info): Mention frame_read set also
23862         before reload for tail calls on some targets.
23863         (scan_insn): Revert 2014-12-22 change.  Set frame_read
23864         also before reload for tail calls if
23865         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
23866         instead of add_non_frame_wild_read for non-const/memset
23867         tail calls after reload.
23869 2015-01-08  Jason Merrill  <jason@redhat.com>
23871         * ubsan.c (do_ubsan_in_current_function): New.
23872         (pass_ubsan::gate): Use it.
23873         * ubsan.h: Declare it.
23874         * convert.c (convert_to_integer): Use it.
23876 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
23878         PR target/64338
23879         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
23880         compare_code when it is unconditionally overwritten afterwards.
23881         Use ix86_reverse_condition instead of reverse_condition.  Don't
23882         change code if *reverse_condition* returned UNKNOWN and don't
23883         swap ct/cf and negate diff in that case.
23885 2015-01-08  Mike Stump  <mikestump@comcast.net>
23887         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
23888         (pass_tsan_O0::gate): Likewise.
23889         * extend.texi (Function Attributes): Add no_sanitize_thread
23890         documentation.
23892 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
23894         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
23895         for registering builtins.
23896         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
23897         add -fopenmp to the argv_obstack used when invoking
23898         compile_for_target.
23900         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
23901         add "-m32" or "-m64" to argv_obstack.
23902         (generate_host_descr_file): Likewise, when invoking host_compiler.
23903         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
23904         ld.
23906 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
23908         * config/sh/sh-mem.cc: Use constant as second operand when emitting
23909         tstsi_t insns.
23911 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
23913         PR target/55212
23914         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
23915         constant load if constant operand fits into I08.
23917 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
23919         PR sanitizer/64336
23920         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
23921         and TREE_THIS_VOLATILE for MEM_REFs.
23922         (build5_stat): Fix up initialization of TREE_READONLY and
23923         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
23925 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23927         PR target/64533
23928         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
23929         of r for the second alternative of the destination operand.
23931 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
23933         PR target/36557
23934         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
23936 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
23938         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
23939         keywords.
23940         ([-fivar-visibility], [-fvisibility]): Likewise.
23942 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
23944         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
23945         the file where @code, @command, etc is more appropriate.
23947 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
23949         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
23950         of -mrecip= documentation.
23952 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23954         PR target/64505
23955         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
23956         correct reload handler if -m32 -mpowerpc64 is used.
23958 2015-01-06  Tom de Vries  <tom@codesourcery.com>
23960         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
23962 2015-01-08  Christian Bruel  <christian.bruel@st.com>
23964         PR target/64507
23965         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
23967 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23969         PR tree-optimization/63259
23970         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
23971         if optab exists for 16bit byteswap.
23973 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
23975         * opts.c (common_handle_option): Add support for
23976         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
23977         * doc/invoke.texi: Document -fno-sanitize=all,
23978         -f{,no-}sanitize-recover=all.  Document that
23979         -fsanitize=float-cast-overflow is not enabled
23980         by -fsanitize=undefined.  Fix up documentation
23981         of -f{,no-}sanitize-recover.
23983 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
23985         * config.gcc: Add Visium support.
23986         * configure.ac: Likewise.
23987         * configure: Regenerate.
23988         * doc/extend.texi (interrupt attribute): Add Visium.
23989         * doc/invoke.texi: Document Visium options.
23990         * doc/install.texi: Document Visium target.
23991         * doc/md.texi: Document Visium constraints.
23992         * common/config/visium: New directory.
23993         * config/visium: Likewise.
23995 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
23997         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
23998         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
24000 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
24002         * combine.c (combine_validate_cost): Do not count the cost of a
24003         split I2 twice.  Do not display it twice in the dump, either.
24005 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24007         Revert parts of r219199.
24008         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
24009         <inttypes.h>.
24010         ([-Wtraditional]): Restore markup on <limits.h>.
24012 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
24014         PR c++/31397
24015         * doc/invoke.texi: Document -Wsuggest-override.
24017 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
24019         PR rtl-optimization/64287
24020         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
24021         (process_options): Disable flag_ipa_ra if profiling.
24023 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24025         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
24027 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
24029         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
24030         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
24031         put under #if TARGET_LOOPS guard.
24033 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
24035         * config/i386/i386.c (output_387_binary_op): Use std::swap.
24037 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
24039         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24040         * rtl.h (refers_to_regno_p): Add overload.
24041         * cse.c: Use it.
24042         * bt-load.c: Likewise.
24043         * combine.c: Likewise.
24044         * df-scan.c: Likewise.
24045         * sched-deps.c: Likewise.
24046         * config/s390/s390.c: Likewise.
24047         * config/m32r/m32r.c: Likewise.
24048         * config/rs6000/spe.md: Likewise.
24049         * config/rs6000/rs6000.c: Likewise.
24050         * config/pa/pa.c: Likewise.
24051         * config/stormy16/stormy16.c: Likewise.
24052         * config/cris/cris.c: Likewise.
24053         * config/arc/arc.md: Likewise.
24054         * config/arc/arc.c: Likewise.
24055         * config/sh/sh.md: Likewise.
24056         * config/sh/sh.c: Likewise.
24057         * config/frv/frv.c: Likewise.
24059 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24061         PR sanitizer/64265
24062         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
24063         call as cleanup of the whole body.
24064         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
24065         * tsan.c (replace_func_exit): New function.
24066         (instrument_func_exit): Moved earlier.
24067         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
24068         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
24069         been found.
24070         (tsan_pass): Don't call instrument_func_exit.
24071         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
24072         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
24073         inlining.
24075         PR sanitizer/64344
24076         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
24077         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
24078         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
24079         if the result is integer_zerop, return NULL_TREE.
24080         * convert.c (convert_to_integer): Pass expr as ARG.
24082         PR tree-optimization/64465
24083         * tree-inline.c (redirect_all_calls): During inlining
24084         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
24085         changed the stmt to a non-throwing call.
24087 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24089         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
24090         etc markup throughout the file.
24092 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24094         Enable experimental TSAN support for Ada.
24095         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
24097 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24099         PR tree-optimization/64494
24100         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
24101         clear SSA_NAME_ANTI_RANGE_P flag.
24103 2015-01-05  Marek Polacek  <polacek@redhat.com>
24105         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
24107 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24109         Update copyright years.
24111         * gcc.c (process_command): Update copyright notice dates.
24112         * gcov-dump.c: Ditto.
24113         * gcov.c: Ditto.
24114         * doc/cpp.texi: Bump @copying's copyright year.
24115         * doc/cppinternals.texi: Ditto.
24116         * doc/gcc.texi: Ditto.
24117         * doc/gccint.texi: Ditto.
24118         * doc/gcov.texi: Ditto.
24119         * doc/install.texi: Ditto.
24120         * doc/invoke.texi: Ditto.
24122         * auto-profile.c, auto-profile.h: Fix up Copyright line.
24124 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
24126         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
24127         verb tense, etc.
24128         ([-fvtable-verify], [-fvtv-debug]): Likewise.
24129         ([-Wabi]): Likewise.
24130         ([-fmessage-length]): Likewise.
24131         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
24132         ([-Wno-discarded-qualifiers]): Likewise.
24133         ([-Wnodiscarded-array-qualifiers]): Likewise.
24134         ([-Wno-virtual-move-assign]): Likewise.
24135         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
24136         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
24137         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
24138         ([-fsanitize-undefined-trap-on-error]): Likewise.
24139         ([-floop-interchange]): Likewise.
24140         ([-ftree-coalesce-inlined-vars]): Likewise.
24141         ([-fvect-cost-model]): Likewise.
24142         ([-flto]): Likewise.
24143         ([--param]): Likewise.
24144         (Spec Files): Likewise.
24145         ([-mstrict-align]): Likewise.
24146         ([-mfix-cortex-a53-835769]): Likewise.
24147         ([-march], [-mtune]): Likewise.
24148         ([-mpic-register]): Likewise.
24149         ([-munaligned-access]): Likewise.
24150         ([-msp8]): Likewise.
24151         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
24152         (AVR Built-in Macros): Likewise.
24153         ([-mpreferred-stack-boundary]): Likewise.
24154         ([-mtune-crtl]): Likewise.
24155         ([-mashf]): Likewise.
24156         ([-mmcu=]): Likewise.
24157         ([-minrt]): Likewise.
24158         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
24159         ([-mupper-regs]): Likewise.
24160         ([-matomic-model]): Likewise.
24161         ([-mdiv]): Likewise.
24162         ([-mzdcbranch]): Likewise.
24163         ([-mdisable-callt]): Likewise.
24164         ([-msoft-float]): Likewise.
24165         ([-m8byte-align]): Likewise.
24166         ([-fstack-reuse]): Likewise.
24168 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24170         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
24171         Fix markup, light copy-editing.
24172         ([-fauto-profile]): Rewrite to fix formatting and content
24173         problems.
24175 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24177         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
24178         Copy-edit description.
24179         ([-fisolate-erroneous-paths-attribute]): Likewise.
24180         * common.opt (fisolate-erroneous-paths-dereference):
24181         Copy-edit description.
24182         (fisolate-erroneous-paths-attribute): Likewise.
24184 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24186         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
24187         tidy grammar.
24189 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24191         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
24192         ([-fvtv-debug]): Likewise.
24193         ([-Wc++-compat]): Likewise.
24194         ([-Wc++11-compat]): Likewise.
24195         ([-Wc++14-compat]): Likewise.
24196         ([-Wno-sized-deallocation]): Likewise.
24197         ([-femit-class-debug-always]): Likewise.
24198         ([-femit-struct-debug-detailed]): Likewise.
24199         ([-fno-keep-inline-dllexport]): Likewise.
24200         ([-fira-algorithm]): Likewise.
24201         ([-fira-region]): Likewise.
24202         ([-flra-remat]): Likewise.
24203         ([-fipa-ra]): Likewise.
24204         ([-fhoist-adjacent-loads]): Likewise.
24205         ([-fisolate-erroneous-paths-dereference]): Likewise.
24206         ([-fisolate-erroneous-paths-attribute]): Likewise.
24207         ([-ftree-switch-conversion]): Likewise.
24208         ([-ftree-tail-merge]): Likewise.
24209         ([-ftree-loop-if-convert]): Likewise.
24210         ([-ftree-loop-if-convert-stores]): Likewise.
24211         ([-ftree-loop-distribution]): Likewise.
24212         ([-ftree-loop-distribute-patterns]): Likewise.
24213         ([-flto-compression-level]): Likewise.
24214         ([-flto-report]): Likewise.
24215         ([-flto-report-wpa]): Likewise.
24216         ([-fuse-linker-plugin]): Likewise.
24217         ([-mfix-cortex-a53-835769]): Likewise.
24218         ([-mno-fix-cortex-a53-835769]): Likewise.
24219         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
24220         explicit listing; add a note to the discussion indicating they
24221         exist.  Reorder table to group similar options.  Add missing
24222         @opindex entries.  Add @need commands throughout the table to
24223         allow it to be split across multiple pages.
24224         ([-m8bit-idiv]): Fix @opindex.
24225         ([-mavx256-split-unaligned-load]): Likewise.
24226         ([-mavx256-split-unaligned-store]): Likewise.
24227         ([-mstack-protector-guard]): Likewise.
24228         ([-mcpu=]): Likewise.
24229         ([-mcpu]): Likewise.
24230         ([-mpointer-size=]): Likewise.
24232 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
24234         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
24235         instead of `m' constraint.  Likewise for unnamed movb comparison
24236         patterns using reg_before_reload_operand predicate.
24237         * config/pa/predicates.md (reg_before_reload_operand): Tighten
24238         predicate to reject register index and LO_SUM DLT memory forms
24239         after reload.
24241 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
24243         * doc/invoke.texi (Option Summary): Fix spelling of
24244         -fdevirtualize-at-ltrans.
24245         ([-fdevirtualize]): Fix markup.
24246         ([-fdevirtualize-speculatively]): Fix typo.
24247         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
24248         implementor-speaky.
24249         * common.opt (fdevirtualize-at-ltrans): Likewise.
24250         * ipa-devirt.c: Fix typos in comments throughout the file.
24251         (ipa_devirt): Fix typos in format strings for dump output.
24253 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
24255         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
24256         discussion of defaults, light copy-editing.
24258 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24260         * tsan.c (instrument_expr): corrected previous checkin.
24262 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24264         Instrument bit field and unaligned accesses for TSAN.
24265         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
24266         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
24267         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
24268         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
24269         unaligned memory regions.
24271 2015-01-01  Anthony Green  <green@moxielogic.com>
24273         * config/moxie/predicates.md (moxie_general_movsrc_operand):
24274         Restrict move source register offsets to 16 bits.
24276 Copyright (C) 2015 Free Software Foundation, Inc.
24278 Copying and distribution of this file, with or without modification,
24279 are permitted in any medium without royalty provided the copyright
24280 notice and this notice are preserved.