re PR tree-optimization/78005 (172.mgrid and 450.soplex miscompare)
[gcc.git] / gcc / ChangeLog
1 2016-10-19 Bin Cheng <bin.cheng@arm.com>
2
3 PR tree-optimization/78005
4 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
5 upper (included) bound for niters of prolog loop.
6 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
7 Compute niters of scalar loop above which vectorized loop is
8 preferred, as well as the upper (included) bound for the niters.
9 (vect_do_peeling): Record niter bound for loops accordingly.
10
11 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
12
13 PR lto/77458
14 * tree-core.h (enum tree_index): Put the complex types after their
15 component types.
16 * tree-streamer.c (verify_common_node_recorded): New function.
17 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
18
19 2016-10-19 Martin Liska <mliska@suse.cz>
20
21 * cgraph.h (cgraph_edge::binds_to_current_def_p):
22 Replace NULL with false as a return value.
23
24 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
25
26 PR tree-optimization/78024
27 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
28 don't clear BB_VISITED after processing.
29
30 2016-10-19 Richard Biener <rguenther@suse.de>
31
32 * domwalk.c (dom_walker::walk): Use RPO order.
33
34 2016-10-19 Richard Biener <rguenther@suse.de>
35
36 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
37 stmts_to_remove.
38 (evrp_dom_walker::~evrp_dom_walker): Free it.
39 (evrp_dom_walker::stmts_to_remove): Add.
40 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
41 whose output we fully propagate for removal. Propagate
42 into BB destination PHI arguments.
43 (execute_early_vrp): Remove queued stmts. Dump value ranges
44 before stmt removal.
45
46 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
47
48 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
49 * passes.def: Add two instances of pass_walloca.
50 * tree-pass.h (make_pass_walloca): New.
51 * gimple-ssa-warn-alloca.c: New file.
52 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
53 -Wvla-larger-than= options.
54
55 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
56
57 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
58 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
59
60 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
61
62 * config/rs6000/altivec.h (vec_xl_len): New macro.
63 (vec_xst_len): New macro.
64 (vec_cmpnez): New macro.
65 (vec_cntlz_lsbb): New macro.
66 (vec_cnttz_lsbb): New macro.
67 (vec_xlx): New macro.
68 (vec_xrx): New macro.
69 (vec_all_nez): New C++ predicate template.
70 (vec_any_eqz): New C++ predicate template.
71 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
72 conditional compilation.
73 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
74 conditional compilation.
75 (vec_all_nez): New macro.
76 (vec_any_eqz): New macro.
77 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
78 compilation.
79 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
80 compilation.
81 * config/rs6000/vector.md (VI): Moved this mode iterator
82 definition from altivec.md to vector.md.
83 (UNSPEC_NEZ_P): New value.
84 (vector_ne_<mode>_p): New expansion for implementation of
85 vec_all_ne and vec_any_eq built-in functions.
86 (vector_nez_<mode>_p): New expansion for implementation of
87 vec_all_nez and vec_any_eqz built-in functions.
88 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
89 and vec_any_eq built-in function.
90 (cr6_test_for_zero): New commentary to explain this expansion.
91 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
92 (cr6_test_for_lt): New commentary to explain this expansion.
93 (cr6_test_for_lt_reverse): New commentary to explain this
94 expansion.
95 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
96 overloaded function prototypes for vec_all_ne, vec_all_nez,
97 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
98 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
99 built-in functions.
100 (altivec_resolve_overloaded_builtin): Modify the handling of
101 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
102 the compiler is configured to support TARGET_P9_VECTOR.
103 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
104 to explain the special processing that is given to predicate
105 built-ins introduced using this macro.
106 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
107 the special processing given to predicate built-ins introduced
108 using this macro.
109 (BU_VSX_P): Likewise.
110 (BU_P8V_AV_P): Likewise.
111 (BU_P9V_AV_P): Likewise.
112 (BU_P9V_AV_X): New macro.
113 (BU_P9V_64BIT_AV_X): New macro.
114 (BU_P9V_VSX_3): New macro.
115 (BU_P9V_OVERLOAD_P): New macro.
116 (LXVL): New BU_P9V_64BIT_VSX_2.
117 (VEXTUBLX): New BU_P9V_AV_2.
118 (VEXTUBRX): Likewise.
119 (VEXTUHLX): Likewise.
120 (VEXTUHRX): Likewise.
121 (VEXTUWLX): Likewise.
122 (VEXTUWRX): Likewise.
123 (STXVL): New BU_P9V_64BIT_AV_X.
124 (VCLZLSBB): New BU_P9V_AV_1.
125 (VCTZLSBB): Likewise.
126 (CMPNEB): New BU_P9V_AV_2.
127 (CMPNEH): Likewise.
128 (CMPNEW): Likewise.
129 (CMPNEF): Likewise.
130 (CMPNED): Likewise.
131 (VCMPNEB_P): New BU_P9V_AV_P.
132 (VCMPNEH_P): Likewise.
133 (VCMPNEW_P): Likewise.
134 (VCMPNED_P): Likewise.
135 (VCMPNEFP_P): Likewise.
136 (VCMPNEDP_P): Likewise.
137 (CMPNEZB): New BU_P9V_AV_2.
138 (CMPNEZH): Likewise.
139 (CMPNEZW): Likewise.
140 (VCMPNEZB_P): New BU_P9V_AV_P.
141 (VCMPNEZH_P): Likewise.
142 (VCMPNEZW_P): Likewise.
143 (LXVL): New BU_P9V_OVERLOAD_2.
144 (STXVL): New BU_P9V_OVERLOAD_3.
145 (VEXTULX): New BU_P9V_OVERLOAD_2.
146 (VEXTURX): Likewise.
147 (CMPNEZ): Likewise.
148 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
149 (VCMPNE_P): Likewise.
150 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
151 (VCTZLSBB): Likewise.
152 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
153 comment to explain mode used for scratch register.
154 (altivec_expand_stxvl_builtin): New function.
155 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
156 (altivec_init_builtins): Add initialized variable
157 void_ftype_v16qi_pvoid_long and use this type to define the
158 built-in function __builtin_altivec_stxvl.
159 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
160 (UNSPEC_STXVL): New value.
161 (UNSPEC_VCLZLSBB): New value.
162 (UNSPEC_VCTZLSBB): New value.
163 (UNSPEC_VEXTUBLX): New value.
164 (UNSPEC_VEXTUHLX): New value.
165 (UNSPEC_VEXTUWLX): New value.
166 (UNSPEC_VEXTUBRX): New value.
167 (UNSPEC_VEXTUHRX): New value.
168 (UNSPEC_VEXTUWRX): New value.
169 (UNSPEC_VCMPNEB): New value.
170 (UNSPEC_VCMPNEZB): New value.
171 (UNSPEC_VCMPNEH): New value.
172 (UNSPEC_VCMPNEZH): New value.
173 (UNSPEC_VCMPNEW): New value.
174 (UNSPEC_VCMPNEZW): New value.
175 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
176 vector of integer modes.
177 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
178 vector of float or double modes.
179 (*vector_nez_<mode>_p): New insn for vector test all not equal or
180 zero.
181 (lxvl): New expand for load VSX vector with length.
182 (*lxvl): New insn for load VSX vector with length.
183 (stxvl): New expand for store VSX vector with length.
184 (*stxvl): New insn for store VSX vector with length.
185 (vcmpneb): New insn for vector of byte compare not equal.
186 (vcmpnezb): New insn for vector of byte compare not equal or zero.
187 (vcmpneh): New insn for vector of half word compare not equal.
188 (vcmpnezh): New insn for vector of half word compare not equal or
189 zero.
190 (vcmpnew): New insn for vector of word compare not equal.
191 (vcmpne<VSs>): New insn for vector of float or double compare not
192 equal.
193 (vcmpnezw): New insn for vector of word compare not equal or zero.
194 (vclzlsbb): New insn for vector count leading zero
195 least-significant bits byte.
196 (vctzlsbb): New insn for vector count trailing zero least
197 signficant bits byte.
198 (vextublx): New insn for vector extract unsigned byte left
199 indexed.
200 (vextubrx): New insn for vector extract unsigned byte right
201 indexed.
202 (vextuhlx): New insn for vector extract unsigned half word left
203 indexed.
204 (vextuhrx): New insn for vector extract unsigned half word right
205 indexed.
206 (vextuwlx): New insn for vector extract unsigned word left
207 indexed.
208 (vextuwrx): New insn for vector extract unsigned word right
209 indexed.
210 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
211 clarify intent of this constant.
212 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
213 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
214 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
215 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
216 and vec_xrx functions.
217
218 2016-10-18 Andrew Pinski <apinski@cavium.com>
219
220 PR tree-opt/65950
221 * predict.c (is_exit_with_zero_arg): New function.
222 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
223 as nottaken.
224
225 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
226
227 PR target/77991
228 * config/i386/i386.c (legitimize_tls_address)
229 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
230 convert dest to Pmode if different than Pmode.
231
232 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
233
234 PR tree-optimization/77916
235 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
236 stopgap fix, as pointers with -1 increment are still broken.
237
238 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
239
240 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
241 mapping class decoration from here...
242 (rs6000_xcoff_encode_section): ...to here.
243
244 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
245 if shrink-wrapping and optimizing for speed.
246
247 2016-10-18 Richard Biener <rguenther@suse.de>
248
249 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
250 not visited but non-executable predecessors. Return taken edge.
251 Simplify conditions and refactor propagation vs. folding step.
252
253 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
254
255 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
256 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
257 (rs6000_get_separate_components): Assert we do not have those
258 strategies selected.
259
260 2016-10-18 Richard Biener <rguenther@suse.de>
261
262 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
263 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
264 clearing.
265 (substitute_and_fold_dom_walker): Adjust constructor.
266 (substitute_and_fold_dom_walker::before_dom_children): Remove
267 do_dce flag and handling (always true).
268 (substitute_and_fold): Likewise.
269 * tree-vrp.c (vrp_finalize): Adjust.
270 (execute_early_vrp): Remove final BB_VISITED clearing.
271 * tree-ssa-ccp.c (ccp_finalize): Adjust.
272 * tree-ssa-copy.c (fini_copy_prop): Likewise.
273 * ira.c (ira): Call clear_bb_flags.
274
275 2016-10-18 Richard Biener <rguenther@suse.de>
276
277 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
278 get at the operand to look at with TREE_OPERAND for generic
279 sub-nodes.
280
281 2016-10-18 David Malcolm <dmalcolm@redhat.com>
282
283 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
284 copy_md_ptr_loc.
285 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
286 (write_test_expr): Use rtx_reader_ptr for calls to
287 fprint_c_condition.
288 (write_attr_value): Likewise.
289 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
290 call to print_md_ptr_loc.
291 (write_one_condition): Likewise for calls to print_c_condition.
292 * genconstants.c: Include "statistics.h" and "vec.h".
293 (main): Update for conversion to member functions.
294 * genemit.c (emit_c_code): Use rtx_reader_ptr for
295 call to print_md_ptr_loc.
296 * genenums.c: Include "statistics.h" and "vec.h".
297 (main): Update for conversion of traverse_enum_types to a method.
298 * genmddeps.c: Include "statistics.h" and "vec.h".
299 * genoutput.c (process_template): Use rtx_reader_ptr for call to
300 print_md_ptr_loc.
301 * genpreds.c (write_predicate_subfunction): Likewise.
302 (write_predicate_expr): Likewise for calls to print_c_condition.
303 * genrecog.c (print_test): Likewise.
304 * gensupport.c (process_rtx): Likewise for calls to
305 copy_md_ptr_loc and join_c_conditions.
306 (alter_test_for_insn): Likewise for call to join_c_conditions.
307 (process_substs_on_one_elem): Likewise.
308 (gen_mnemonic_setattr): Update for move of string_obstack to a
309 field of rtx_reader.
310 (mnemonic_htab_callback): Likewise. Fix formatting.
311 (gen_mnemonic_attr): Likewise.
312 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
313 to print_c_condition.
314 * read-md.c: Include "statistics.h" and "vec.h".
315 (string_obstack): Convert this global to field "m_string_obstack"
316 of class rtx_reader.
317 (ptr_locs): Likewise, as "m_ptr_locs".
318 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
319 (joined_conditions): Likewise, as "m_joined_conditions".
320 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
321 (md_constants): Likewise, as "m_md_constants".
322 (enum_types): Likewise, as "m_enum_types".
323 (set_md_ptr_loc): Convert to...
324 (rtx_reader::set_md_ptr_loc): ...member function.
325 (get_md_ptr_loc): Convert to...
326 (rtx_reader::get_md_ptr_loc): ...member function.
327 (copy_md_ptr_loc): Convert to...
328 (rtx_reader::copy_md_ptr_loc): ...member function.
329 (fprint_md_ptr_loc): Convert to...
330 (rtx_reader::fprint_md_ptr_loc): ...member function.
331 (print_md_ptr_loc): Convert to...
332 (rtx_reader::print_md_ptr_loc): ...member function.
333 (join_c_conditions): Convert to...
334 (rtx_reader::join_c_conditions): ...member function.
335 (fprint_c_condition): Convert to...
336 (rtx_reader::fprint_c_condition): ...member function.
337 (print_c_condition): Convert to...
338 (rtx_reader::print_c_condition): ...member function.
339 (read_name): Convert to...
340 (rtx_reader::read_name): ...member function.
341 (read_escape): Convert to...
342 (rtx_reader::read_escape): ...member function.
343 (read_quoted_string): Convert to...
344 (rtx_reader::read_quoted_string): ...member function.
345 (read_braced_string): Convert to...
346 (rtx_reader::read_braced_string): ...member function.
347 (read_string): Convert to...
348 (rtx_reader::read_string): ...member function.
349 (read_skip_construct): Convert to...
350 (rtx_reader::read_skip_construct): ...member function.
351 (handle_constants): Convert to...
352 (rtx_reader::handle_constants): ...member function.
353 (traverse_md_constants): Convert to...
354 (rtx_reader::traverse_md_constants): ...member function.
355 (handle_enum): Convert to...
356 (rtx_reader::handle_enum): ...member function.
357 (lookup_enum_type): Convert to...
358 (rtx_reader::lookup_enum_type): ...member function.
359 (traverse_enum_types): Convert to...
360 (rtx_reader::traverse_enum_types): ...member function.
361 (rtx_reader::rtx_reader): Move initializations
362 of various former global data from rtx_reader::read_md_files to
363 here, as fields, along with the call to unlock_std_streams.
364 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
365 the new fields.
366 (rtx_reader::read_md_files): Move initializations of various
367 global data from here to the ctor.
368 * read-md.h (read_name): Convert to...
369 (rtx_reader::read_name): ...member function.
370 (rtx_reader::read_escape): New method decl.
371 (read_quoted_string): Convert to...
372 (rtx_reader::read_quoted_string): ...member function.
373 (rtx_reader::read_braced_string): New method decl.
374 (read_string): Convert to...
375 (rtx_reader::read_string): ...member function.
376 (rtx_reader::read_skip_construct): New method decl.
377 (rtx_reader::set_md_ptr_loc): New method decl.
378 (rtx_reader::get_md_ptr_loc): New method decl.
379 (copy_md_ptr_loc): Convert to...
380 (rtx_reader::copy_md_ptr_loc): ...member function.
381 (fprint_md_ptr_loc): Convert to...
382 (rtx_reader::fprint_md_ptr_loc): ...member function.
383 (print_md_ptr_loc): Convert to...
384 (rtx_reader::print_md_ptr_loc): ...member function.
385 (rtx_reader::lookup_enum_type): New method decl.
386 (rtx_reader::traverse_enum_types): New method decl.
387 (rtx_reader::handle_constants): New method decl.
388 (traverse_md_constants): Convert to...
389 (rtx_reader::traverse_md_constants): ...member function.
390 (rtx_reader::handle_enum): New method decl.
391 (rtx_reader::join_c_conditions): New method decl.
392 (fprint_c_condition): Convert to...
393 (rtx_reader::fprint_c_condition): ...member function.
394 (print_c_condition): Convert to...
395 (rtx_reader::print_c_condition): ...member function.
396 (rtx_reader::apply_iterator_to_string): New method decl.
397 (rtx_reader::copy_rtx_for_iterators): New method decl.
398 (rtx_reader::read_conditions): New method decl.
399 (rtx_reader::record_potential_iterator_use): New method decl.
400 (rtx_reader::read_mapping): New method decl.
401 (rtx_reader::read_rtx): New method decl.
402 (rtx_reader::read_rtx_code): New method decl.
403 (rtx_reader::read_rtx_operand): New method decl.
404 (rtx_reader::read_nested_rtx): New method decl.
405 (rtx_reader::read_rtx_variadic): New method decl.
406 (rtx_reader::get_string_obstack): New method.
407 (rtx_reader::get_md_constants): New method.
408 (string_obstack): Convert global variable decl to...
409 (rtx_reader::m_string_obstack): ...this new field.
410 (rtx_reader::m_ptr_locs): New field.
411 (rtx_reader::m_ptr_loc_obstack): New field.
412 (rtx_reader::m_joined_conditions): New field.
413 (rtx_reader::m_joined_conditions_obstack): New field.
414 (rtx_reader::m_md_constants): New field.
415 (rtx_reader::m_enum_types): New field.
416 * read-rtl.c (apply_iterator_to_string): Convert to...
417 (rtx_reader::apply_iterator_to_string): ...member function.
418 (copy_rtx_for_iterators): Convert to...
419 (rtx_reader::copy_rtx_for_iterators): ...member function.
420 (add_condition_to_string): Use rtx_reader_ptr for
421 calls join_c_conditions.
422 (apply_iterators): Use rtx_reader_ptr for calls to
423 join_c_conditions and copy_rtx_for_iterators.
424 (read_conditions): Convert to...
425 (rtx_reader::read_conditions): ...member function.
426 (record_potential_iterator_use): Convert to...
427 (rtx_reader::record_potential_iterator_use): ...member function.
428 (read_mapping): Convert to...
429 (rtx_reader::read_mapping): ...member function.
430 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
431 (read_rtx): Convert to...
432 (rtx_reader::read_rtx): ...member function.
433 (read_rtx_code): Convert to...
434 (rtx_reader::read_rtx_code): ...member function.
435 (read_rtx_operand): Convert to...
436 (rtx_reader::read_rtx_operand): ...member function. Update for move
437 of string_obstack to a field.
438 (read_nested_rtx): Convert to..
439 (rtx_reader::read_nested_rtx): ...member function.
440 (read_rtx_variadic): Convert to..
441 (rtx_reader::read_rtx_variadic): ...member function.
442
443 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
444
445 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
446
447 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
448
449 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
450 for pointer type too.
451 (ipcp_update_vr): set_ptr_nonnull for pointer.
452
453 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
454
455 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
456 pt_solution_singleton_p.
457 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
458 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
459 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
460 pointer nonnull computed by VRP.
461 Also Conservatively set pt.null to 1.
462 (pt_solution_reset): Conservatively set pt.null to 1.
463 (pt_solution_singleton_or_null_p): Renamed from
464 pt_solution_singleton_p.
465 * tree-ssanames.h (set_ptr_nonnull): Declare.
466 (get_ptr_nonnull): Likewise.
467 * tree-ssanames.c (set_ptr_nonnull): New.
468 (get_ptr_nonnull): Likewise.
469 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
470 (evrp_dom_walker::before_dom_children): Likewise.
471
472 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
473
474 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
475 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
476 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
477 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
478 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
479 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
480 (rs6000_option_override_internal): Clear it if ABI_AIX.
481 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
482 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
483
484 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
485
486 * gimple-ssa-strength-reduction.c (record_increment): Remove
487 garbage comment.
488
489 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
490
491 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
492 that the result is non-zero if it is true.
493 (maybe_expand_shift): New wrapper around expand_shift_1.
494 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
495
496 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
497
498 PR tree-optimization/77916
499 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
500 Don't allow a MINUS_EXPR for pointer arithmetic for either known
501 or unknown strides.
502 (record_increment): Increments of -1 for unknown strides just use
503 a multiply initializer like other negative values.
504 (analyze_increments): Remove stopgap solution for -1 increment
505 applied to pointer arithmetic.
506
507 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
508
509 * dominance.c (dom_info::dom_info): Add new constructor for region
510 which is vector of basic blocks.
511 (dom_init): New method to initialize members common for both
512 constructors.
513 (dom_info::dom_info): Invoke dom_init for partial initialization.
514 (dom_info::get_idom): Add check to corner cases on basic blocks which
515 are not in region.
516 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
517 to detect unreachable bbs.
518 (dom_info::calc_idoms): Likewise.
519 (compute_dom_fast_query_in_region): New function.
520 (calculate_dominance_info_for_region): Likewise.
521 (free_dominance_info_for_region): Likewise.
522 * dominance.h: Add prototypes for introduced region-based functions
523 tree-if-conv.c: (build_region): New function.
524 (if_convertible_loop_p_1): Invoke local version of post-dominators
525 calculation before basic block predication with subsequent freeing
526 post-dominator info.
527 (tree_if_conversion): Remove free of post-dominator info
528 (pass_if_conversion::execute): Delete detection of infinite loops
529 and fake edges to exit block since post-dominator calculation is
530 performed per if-converted loop only.
531
532 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
533
534 PR target/77308
535 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
536 register explicitly.
537 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
538 optimizing for size.
539
540 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
541
542 * config/aarch64/aarch64.c: Delete inclusion of
543 cortex-a57-fma-steering.h.
544 (aarch64_override_options): Delete call
545 to aarch64_register_fma_steering.
546 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
547 * config/aarch64/cortex-a57-fma-steering.h: Delete.
548 * config/aarch64/aarch64-passes.def: New file.
549 * config/aarch64/cortex-a57-fma-steering.c
550 (aarch64_register_fma_steering): Delete definition.
551 (make_pass_fma_steering): Remove static qualifier.
552 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
553 (cortex-a57-fma-steering.o): Remove dependency on
554 cortex-a57-fma-steering.h.
555
556 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
557
558 * explow.c (validize_mem): Do not modify the argument in-place.
559
560 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
561
562 * tree-streamer.c (record_common_node): Explicitly list expected
563 tree codes.
564
565 2016-10-17 Richard Biener <rguenther@suse.de>
566
567 PR tree-optimization/77988
568 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
569
570 2016-10-17 Marek Polacek <polacek@redhat.com>
571
572 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
573
574 2016-10-17 Richard Biener <rguenther@suse.de>
575
576 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
577 before using it.
578
579 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
580
581 PR tree-optimization/71636
582 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
583
584 2016-10-17 Richard Biener <rguenther@suse.de>
585
586 * gimplify.c (gimplify_function_tree): Do not move the outer
587 binds block.
588
589 2016-10-17 Jakub Jelinek <jakub@redhat.com>
590
591 * langhooks.h (struct lang_hooks_for_decls): Remove
592 function_decl_explicit_p, function_decl_deleted_p and
593 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
594 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
595 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
596 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
597 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
598 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
599 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
600 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
601 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
602 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
603 * langhooks.c (lhd_decl_dwarf_attribute): New function.
604 * dwarf2out.c (gen_subprogram_die): Use
605 lang_hooks.decls.decl_dwarf_attribute instead of
606 lang_hooks.decls.function_decl_*.
607
608 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
609
610 PR ada/37139
611 PR ada/67205
612 * common.opt (-ftrampolines): New option.
613 * doc/invoke.texi (Code Gen Options): Document it.
614 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
615 * doc/tm.texi: Regenerate.
616 * builtins.def: Add init_descriptor and adjust_descriptor.
617 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
618 on platforms with descriptors.
619 (expand_builtin_init_descriptor): New function.
620 (expand_builtin_adjust_descriptor): Likewise.
621 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
622 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
623 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
624 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
625 Set STATIC_CHAIN_REG_P on the static chain register, if any.
626 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
627 (expand_call): Likewise. Move around call to prepare_call_address
628 and pass all flags to it.
629 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
630 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
631 (gimple_call_set_by_descriptor): New setter.
632 (gimple_call_by_descriptor_p): New getter.
633 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
634 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
635 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
636 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
637 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
638 * rtl.h (STATIC_CHAIN_REG_P): New macro.
639 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
640 * target.def (custom_function_descriptors): New POD hook.
641 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
642 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
643 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
644 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
645 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
646 (build_common_builtin_nodes): Initialize init_descriptor and
647 adjust_descriptor.
648 * tree-nested.c: Include target.h.
649 (struct nesting_info): Add 'any_descr_created' field.
650 (get_descriptor_type): New function.
651 (lookup_element_for_decl): New function extracted from...
652 (create_field_for_decl): Likewise.
653 (lookup_tramp_for_decl): ...here. Adjust.
654 (lookup_descr_for_decl): New function.
655 (convert_tramp_reference_op): Deal with descriptors.
656 (build_init_call_stmt): New function extracted from...
657 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
658 * defaults.h (FUNCTION_ALIGNMENT): Define.
659 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
660 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
661 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
662 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
663 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
664
665 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
666
667 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
668 constants in CONST_VECTORs.
669
670 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
671
672 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
673 register as destination of bmask.
674 (vector_init_bshuffle): Likewise.
675 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
676 (bmaskdi_vis): Enable only in 64-bit mode.
677
678 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
679
680 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
681 make LR a separately shrink-wrapped component unless savres_strategy
682 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
683 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
684 wrapping when not both {SAVE,REST}_INLINE_GPRS.
685
686 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
687
688 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
689 and keep looping on failure.
690
691 2016-10-14 David Malcolm <dmalcolm@redhat.com>
692
693 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
694 set.
695 (print_rtx_function): Update example in comment for...
696 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
697 non-virtual pseudos with a '%' sigil followed by the regno, offset
698 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
699 pseudo is dumped as "%0".
700
701 2016-10-14 Jakub Jelinek <jakub@redhat.com>
702
703 PR middle-end/77959
704 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
705 return a MEM.
706
707 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
708
709 * config/sparc/sparc-passes.def: New file.
710 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
711 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
712 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
713
714 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
715
716 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
717 loop peel to loops with exit test at the beginning.
718
719 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
720
721 PR rtl-optimization/68212
722 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
723 frequency when computing scale factor for peeled copies.
724 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
725 values for switch/peel blocks/edges.
726
727 2016-10-14 Pedro Alves <palves@redhat.com>
728
729 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
730
731 2016-10-14 Catherine Moore <clm@codesourcery.com>
732
733 * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
734 micromips_globals to zero.
735
736 2016-10-14 Richard Biener <rguenther@suse.de>
737
738 PR tree-optimization/77979
739 * tree-vrp.c (compare_name_with_value): Handle released SSA names
740 in the equivalency sets.
741 (compare_names): Likewise.
742
743 2016-10-14 Martin Liska <mliska@suse.cz>
744
745 * builtins.h(target_char_cst_p): Declare the function.
746 * builtins.c (fold_builtin_memchr): Remove.
747 (target_char_cst_p): Move the function from gimple-fold.c.
748 (fold_builtin_3): Do not call the function.
749 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
750 (gimple_fold_builtin): Call the function.
751 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
752
753 2016-10-14 Martin Liska <mliska@suse.cz>
754
755 * builtins.c (fold_builtin_strcmp): Remove function.
756 (fold_builtin_strncmp): Likewise.
757 (fold_builtin_2): Remove call of the function.
758 (fold_builtin_3): Likewise.
759 * fold-const-call.c (fold_const_call): Add constant folding
760 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
761 * fold-const-call.h (build_cmp_result): Declare the function.
762 * gimple-fold.c (gimple_load_first_char): New function.
763 (gimple_fold_builtin_string_compare): Likewise.
764 (gimple_fold_builtin): Call the function.
765
766 2016-10-14 Nathan Sidwell <nathan@acm.org>
767
768 * gcov-io.c (gcov_open): Deconstify 'mode'.
769
770 2016-10-14 Martin Liska <mliska@suse.cz>
771
772 * fold-const.c (c_getstr): Support of properly \0-terminated
773 string constants. New argument is added.
774 * fold-const.h: New argument is added.
775
776 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
777
778 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
779 New function.
780 (aarch64_print_hint_for_core): Likewise.
781 (aarch64_print_hint_for_arch): Likewise.
782 (aarch64_validate_march): Use it. Fix indentation in type signature.
783 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
784 (aarch64_validate_mtune): Likewise.
785 (aarch64_handle_attr_arch): Likewise.
786 (aarch64_handle_attr_cpu): Likewise.
787 (aarch64_handle_attr_tune): Likewise.
788
789 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
790
791 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
792 and udivmod_optab.
793
794 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
795
796 * config/m68k/m68k.c (m68k_option_override): Check
797 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
798 instead of stack_limit_rtx.
799
800 2016-10-13 Jakub Jelinek <jakub@redhat.com>
801
802 * dwarf2out.c (gen_member_die): Handle inline static data member
803 definitions.
804
805 2016-10-13 Nathan Sidwell <nathan@acm.org>
806
807 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
808 gcov_var.mode. Remove unnecessary fstat.
809
810 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
811
812 PR bootstrap/77962
813 * function.c (thread_prologue_and_epilogue_insns): Call all
814 make_*logue_seq in the same order as traditional. Call them
815 all a second time if shrink_wrapped_separate.
816
817 2016-10-13 Marek Polacek <polacek@redhat.com>
818
819 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
820 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
821 use -Wno-error.
822
823 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
824
825 PR tree-optimization/77937
826 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
827 to infinite when we have a pointer with an increment of -1.
828
829 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
830
831 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
832 into ...
833 * memmodel.h: This file.
834 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
835 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
836 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
837 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
838 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
839 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
840 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
841 compare-elim.c, config/aarch64/aarch64-builtins.c,
842 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
843 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
844 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
845 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
846 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
847 config/darwin.c, config/epiphany/epiphany.c,
848 config/epiphany/mode-switch-use.c,
849 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
850 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
851 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
852 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
853 config/m68k/m68k.c, config/mcore/mcore.c,
854 config/microblaze/microblaze.c, config/mmix/mmix.c,
855 config/mn10300/mn10300.c, config/moxie/moxie.c,
856 config/msp430/msp430.c, config/nds32/nds32-cost.c,
857 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
858 config/nds32/nds32-memory-manipulation.c,
859 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
860 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
861 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
862 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
863 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
864 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
865 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
866 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
867 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
868 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
869 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
870 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
871 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
872 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
873 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
874 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
875 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
876 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
877 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
878 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
879 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
880 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
881 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
882 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
883 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
884 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
885 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
886 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
887 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
888 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
889 var-tracking.c, varasm.c: Include memmodel.h.
890 * genattrtab.c (write_header): Include memmodel.h in generated file.
891 * genautomata.c (main): Likewise.
892 * gengtype.c (open_base_files): Likewise.
893 * genopinit.c (main): Likewise.
894 * genconditions.c (write_header): Include memmodel.h earlier in
895 generated file.
896 * genemit.c (main): Likewise.
897 * genoutput.c (output_prologue): Likewise.
898 * genpeep.c (main): Likewise.
899 * genpreds.c (write_insn_preds_c): Likewise.
900 * genrecog.c (write_header): Likewise.
901 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
902
903 2016-10-13 David Malcolm <dmalcolm@redhat.com>
904
905 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
906 for new "compact" param of print_rtx_function. Check for "cinsn"
907 rather than "insn".
908 * print-rtl-function.c (flag_compact): New decl.
909 (print_rtx_function): Add param "compact" and use it to set
910 flag_compact, adding a description of the effect to the leading
911 comment, and updating the example output.
912 * print-rtl.c (flag_compact): New variable.
913 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
914 mode.
915 (print_rtx_operand_code_i): When printing source locations, wrap
916 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
917 (print_rtx_operand_code_r): Don't print regnos for hard regs and
918 virtuals in compact mode.
919 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
920 apart from in LABEL_REFs.
921 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
922 Don't print basic block ids in compact mode.
923 (print_rtx): In compact mode, prefix the code of insns with "c",
924 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
925 * print-rtl.h (print_rtx_function): Add "compact" param.
926
927 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
928
929 * arm.h (TARGET_VFP): Delete.
930 (TARGET_VFPD32): Remove references to TARGET_VFP.
931 (TARGET_VFP3, TARGET_VFP5): Likewise.
932 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
933 (TARGET_NEON_FP16): Likewise.
934 (TARGET_FMA): Likewise.
935 (TARGET_CRYPTO): Likewise.
936 (TARGET_NEON): Likewise.
937 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
938 (FUNCTION_ARG_REGNO_P): Likewise.
939 * arm.c (arm_option_check_internal): Likewise.
940 (arm_option_override): Likewise.
941 (use_return_insn): Likewise.
942 (arm_function_value_regno_p): Likewise.
943 (arm_apply_result_size): Likewise.
944 (use_vfp_abi): Likewise.
945 (arm_legitimate_address_outer_p): Likewise.
946 (thumb2_legitimate_address_p): Likewise.
947 (arm_legitimate_index_p): Likewise.
948 (thumb2_legitimate_index_p): Likewise.
949 (arm_legitimate_address): Likewise.
950 (arm_get_vfp_saved_size): Likewise.
951 (arm_emit_vfp_multi_reg_pop): Likewise.
952 (arm_get_frame_offsets): Likewise.
953 (arm_save_coproc_regs): Likewise.
954 (arm_hard_regno_mode_ok): Likewise.
955 (arm_expand_epilogue_apcs_frame): Likewise.
956 (arm_expand_epilogue): Likewise.
957 (arm_file_start): Likewise.
958 (arm_conditional_register_usage): Likewise.
959 (arm_validize_comparison): Use vfp_compare_operand directly.
960 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
961 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
962 unsupported usage.
963 (arm_atomic_assign_expand_fenv): Likewise.
964 * arm.md (divsf3): Likewise.
965 (arm_negsi2): Likewise.
966 (absdf2): Likewise.
967 (arm_movdi): Likewise.
968 (arm_movt): Likewise.
969 (cbranchsf4): Change predicate to vfp_compare_operand.
970 (cbranchdf4): Change predicate to vfp_compare_operand.
971 (cstorehf4): Change predicate to vfp_compare_operand.
972 (cstoresf4): Change predicate to vfp_compare_operand.
973 (cstoredf4): Change predicate to vfp_compare_operand.
974 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
975 (movhi_insn_arch4, movhi_bytes): Likewise.
976 * constraints.md (Dt): Likewise.
977 (Dp): Likewise.
978 * iterators.md (SDF): Likewise.
979 * predicates.md (arm_float_compare_operand): Delete.
980 (const_double_vcvt_power_of_two_reciprocal): Remove references to
981 TARGET_VFP.
982 (const_double_vcvt_power_of_two): Likewise.
983 * thumb2.md thumb2_movsi_insn): Likewise.
984 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
985 (movhf_vfp): Likewise.
986 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
987 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
988 (movsf_vfp, thumb2_movsf_vfp): Likewise.
989 (movdf_vfp, thumb2_movdf_vfp): Likewise.
990 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
991 (subsf3_vfp, divsf3_vfp): Likewise.
992 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
993 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
994 (mulsf3negsfsubsf_vfp): Likewise.
995 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
996 (floatunssisf2, sqrtsf2_vfp): Likewise.
997 (movcc_vfp): Likewise.
998 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
999 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
1000 (push_multi_vfp): Likewise.
1001 (set_fpscr, get_fpscr): Likewise.
1002 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
1003
1004 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
1005
1006 * arm.h (TARGET_VFP): Unconditionally define to 1.
1007 (arm_fpu_desc): Remove 'model' field.
1008 (TARGET_FPU_MODEL): Delete.
1009 * arm.c (all_fpus): Don't initialize the model field.
1010 (arm_can_inline_p): Don't check the FPU model.
1011 * arm-fpus.def: Remove redundant model field from all FPU
1012 descriptions.
1013
1014 2016-10-13 Richard Biener <rguenther@suse.de>
1015
1016 PR middle-end/77826
1017 * genmatch.c (struct capture): Add value_match member.
1018 (commutate): Preserve value_match.
1019 (lower_opt_convert): Likewise.
1020 (lower_cond): Likewise.
1021 (replace_id): Likewise.
1022 (struct dt_operand): Add value_match member.
1023 (decision_tree::cmp_node): Compare it.
1024 (decision_tree::insert_operand): Honor it when finding and
1025 when appending a DT_MATCH.
1026 (dt_operand::gen_match_op): Generate a type check after
1027 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
1028 (parser::get_internal_capture_id): New helper.
1029 (parser::finish_match_operand): New function lowering @@<id>.
1030 (parser::parse_capture): Parse @@<id> as value-match.
1031 (parser::parse_expr): Use get_internal_capture_id.
1032 (parser::parse_simplify): Call finish_match_operand.
1033 (walk_captures): New helper.
1034 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
1035 of operand_equal_p.
1036 ((X /[ex] A) * A -> X): Likewise.
1037 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
1038 convert[12] and value-matching.
1039 ((A | B) & (A | C) -> A | (B & C)): Likewise.
1040 ((X | Y) | Y -> X | Y): Likewise.
1041 ((X ^ Y) ^ Y -> X): Likewise.
1042 (A - (A & B) -> ~B & A): Likewise.
1043 ((T)(P + A) - (T)P -> (T) A): Likewise.
1044 ((T)P - (T)(P + A) -> -(T) A): Likewise.
1045 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
1046 * doc/match-and-simplify.texi: Amend capture section.
1047
1048 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1049
1050 * config/arc/arc.md (umul_600): Remove predicated variant.
1051 (umul64_600): Likewise.
1052
1053 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1054
1055 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
1056
1057 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1058
1059 * tree-vect-loop.c (loop_niters_no_overflow): New func.
1060 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
1061 no-overflow information to vect_do_peeling_for_loop_bound and
1062 vect_gen_vector_loop_niters.
1063
1064 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1065
1066 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
1067 iterates 1 time.
1068
1069 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1070
1071 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
1072 adjust_vec automatically.
1073 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
1074 param exit_bb to guard_to.
1075 (slpeel_checking_verify_cfg_after_peeling):
1076 (set_prologue_iterations):
1077 (create_lcssa_for_virtual_phi): New func which is factored out from
1078 slpeel_tree_peel_loop_to_edge.
1079 (slpeel_tree_peel_loop_to_edge):
1080 (iv_phi_p): New func.
1081 (vect_can_advance_ivs_p): Call iv_phi_p.
1082 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
1083 new gimple stmts in basic block.
1084 (vect_gen_niters_for_prolog_loop): Rename to...
1085 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
1086 adjust implementation.
1087 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
1088 sizetype if necessary.
1089 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
1090 it to external function.
1091 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
1092 (vect_gen_vector_loop_niters_mult_vf): New.
1093 (slpeel_update_phi_nodes_for_loops): New.
1094 (slpeel_update_phi_nodes_for_guard1): Reimplement.
1095 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
1096 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
1097 * tree-vect-loop.c (vect_build_loop_niters): Move to file
1098 tree-vect-loop-manip.c
1099 (vect_generate_tmps_on_preheader): Delete.
1100 (vect_transform_loop): Rename vectorization_factor to vf. Call
1101 vect_do_peeling instead of vect_do_peeling-* functions.
1102 * tree-vectorizer.h (vect_do_peeling): New decl.
1103 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
1104 (vect_do_peeling_for_loop_bound): Delete.
1105 (vect_do_peeling_for_alignment): Delete.
1106
1107 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1108
1109 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
1110 duplicated loop after its preheader and after the original loop.
1111
1112 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1113
1114 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
1115 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
1116
1117 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1118
1119 * tree-vect-loop.c (vectorizable_live_operation): Support handling
1120 for live variable outside loop but not in lcssa form.
1121
1122 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1123
1124 * cfg.c (reset_original_copy_tables): New func.
1125 * cfg.h (reset_original_copy_tables): New decl.
1126
1127 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1128
1129 PR c/77946
1130 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
1131 public_flag.
1132 * varasm.c (default_binds_local_p_3): Formatting fix.
1133
1134 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1135
1136 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
1137 style issue.
1138 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1139 Remove useless code.
1140
1141 2016-10-13 Martin Liska <mliska@suse.cz>
1142
1143 PR tree-optimization/77943
1144 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1145 a different EH landing pads.
1146
1147 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR target/77957
1150 * hooks.h (hook_tree_void_null): Declare.
1151 * hooks.c (hook_tree_void_null): New function.
1152 * langhooks.c (lhd_return_null_tree_v): Remove.
1153 * langhooks-def.h (lhd_return_null_tree_v): Remove.
1154 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
1155 set y to const0_rtx.
1156 * function.c (stack_protect_epilogue): Likewise.
1157 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
1158 if TARGET_THREAD_SSP_OFFSET is defined.
1159 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1160 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1161 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1162 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1163 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1164 (ix86_stack_protect_guard): New function.
1165
1166 2016-10-13 Richard Biener <rguenther@suse.de>
1167
1168 * dwarf2out.c (tree_add_const_value_attribute): Do not try
1169 rtl_for_decl_init during early phase.
1170 (gen_variable_die): Do not create locations during early phase.
1171 (gen_label_die): Likewise.
1172 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
1173 twice.
1174
1175 2016-10-12 Richard Biener <rguenther@suse.de>
1176
1177 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
1178 try_add_new_range and made to eturn new range.
1179 (evrp_dom_walker::before_dom_children): Push op1 value range before
1180 pushing op0 value range.
1181
1182 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1183
1184 PR tree-optimization/77937
1185 * gimple-ssa-strength-reduction.c (analyze_increments): Use
1186 POINTER_TYPE_P on the candidate type to determine whether
1187 candidates in this chain require pointer arithmetic.
1188
1189 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
1190
1191 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
1192 correction if the type is smaller than a word.
1193 (visium_select_cc_mode): Add ... fall through ... comment.
1194
1195 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1196
1197 * config/rs6000/rs6000.c (machine_function): Add new fields
1198 gpr_is_wrapped_separately and lr_is_wrapped_separately.
1199 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1200 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1201 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1202 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1203 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1204 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1205 (rs6000_get_separate_components): New function.
1206 (rs6000_components_for_bb): New function.
1207 (rs6000_disqualify_components): New function.
1208 (rs6000_emit_prologue_components): New function.
1209 (rs6000_emit_epilogue_components): New function.
1210 (rs6000_set_handled_components): New function.
1211 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
1212 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
1213 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
1214 (rs6000_emit_epilogue): Don't emit GPR restores if
1215 gpr_is_wrapped_separately for that register. Don't make a
1216 REG_CFA_RESTORE note for registers we did not restore, either.
1217
1218 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1219
1220 * function.c (thread_prologue_and_epilogue_insns): Call
1221 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
1222 if it has possibly changed. Compute the split_prologue_seq and
1223 epilogue_seq later, too.
1224 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
1225 (dump_components): New function.
1226 (struct sw): New struct.
1227 (SW): New function.
1228 (init_separate_shrink_wrap): New function.
1229 (fini_separate_shrink_wrap): New function.
1230 (place_prologue_for_one_component): New function.
1231 (spread_components): New function.
1232 (disqualify_problematic_components): New function.
1233 (emit_common_heads_for_components): New function.
1234 (emit_common_tails_for_components): New function.
1235 (insert_prologue_epilogue_for_components): New function.
1236 (try_shrink_wrapping_separate): New function.
1237 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
1238
1239 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1240
1241 * regrename.c (build_def_use): Invalidate chains that have a
1242 REG_CFA_RESTORE on some instruction.
1243
1244 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1245
1246 * dce.c (delete_unmarked_insns): Don't delete instructions with
1247 a REG_CFA_RESTORE note.
1248
1249 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1250
1251 * common.opt (-fshrink-wrap-separate): New flag.
1252 * doc/invoke.texi: Document it.
1253 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
1254 * doc/tm.texi: Regenerate.
1255 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
1256 * target.def (shrink_wrap): New hook vector.
1257 (get_separate_components, components_for_bb, disqualify_components,
1258 emit_prologue_components, emit_epilogue_components,
1259 set_handled_components): New hooks.
1260
1261 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1262
1263 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
1264 vector return by reference only if -Wpsabi.
1265 (rs6000_pass_by_reference): Similarly, for argument passing.
1266
1267 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1268
1269 * function-tests.c: Include "print-rtl.h".
1270 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
1271 function, and verify what is dumped.
1272 * print-rtl-function.c (print_edge): New function.
1273 (begin_any_block): New function.
1274 (end_any_block): New function.
1275 (can_have_basic_block_p): New function.
1276 (print_rtx_function): Track the basic blocks of insns in the
1277 chain, wrapping those that are within blocks within "(block)"
1278 directives. Remove the "(cfg)" directive.
1279
1280 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1281
1282 * selftest.c (selftest::read_file): New function.
1283 (selftest::test_read_file): New function.
1284 (selftest::selftest_c_tests): Call test_read_file.
1285 * selftest.h (selftest::read_file): New decl.
1286
1287 2016-10-12 Richard Biener <rguenther@suse.de>
1288
1289 PR debug/77947
1290 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
1291 function context.
1292
1293 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
1294
1295 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
1296
1297 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
1298 dwarf2out_assembly_start.
1299
1300 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
1301
1302 * Makefile.in (SELFTEST_FLAGS): New variable.
1303 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
1304
1305 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
1306 early_finish hook.
1307
1308 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
1309
1310 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
1311 dumped in RTL dumps.
1312
1313 2016-10-12 Martin Liska <mliska@suse.cz>
1314
1315 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
1316 (gimple_fold_builtin_memory_op): Use the function.
1317 (gimple_fold_builtin_strchr): Likewise.
1318 (gimple_fold_builtin_strcat): Likewise.
1319 (gimple_build): Likewise.
1320
1321 2016-10-12 Nathan Sidwell <nathan@acm.org>
1322
1323 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
1324
1325 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1326
1327 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
1328 equivalent 32-bit constant (modulo 2**32) when that yields
1329 smaller instructions.
1330 (size_of_int_loc_descriptor): Update accordingly.
1331
1332 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1333
1334 * dwarf2out.c (dwarf2out_early_global_decl): For nested
1335 functions, call dwarf2out_decl on the parent function first.
1336
1337 2016-10-12 Richard Biener <rguenther@suse.de>
1338
1339 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
1340 on the conversion.
1341
1342 2016-10-12 Richard Biener <rguenther@suse.de>
1343
1344 * tree-ssa-propagate.c
1345 (substitute_and_fold_dom_walker::before_dom_children): Do not
1346 ignore ASSERT_EXPRs but only preserve them.
1347 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
1348 that have been propagated into.
1349 (vrp_finalize): Enable DCE for substitute_and_fold.
1350
1351 2016-10-12 Richard Biener <rguenther@suse.de>
1352
1353 PR tree-optimization/77920
1354 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
1355 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
1356 (simplify_abs_using_ranges): Likewise.
1357 (simplify_conversion_using_ranges): Likewise.
1358 (simplify_stmt_using_ranges): Adjust.
1359
1360 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1361
1362 PR tree-optimization/77929
1363 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
1364 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
1365
1366 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1367
1368 PR target/77934
1369 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
1370 needs a base register for arg 1.
1371
1372 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1373
1374 * common.opt (Wimplicit-fallthrough) Turn into alias to
1375 -Wimplicit-fallthrough=3. Remove EnabledBy.
1376 (Wimplicit-fallthrough=): New option.
1377 * gimplify.c (warn_implicit_fallthrough_r): Use
1378 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
1379 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
1380 to -Wimplicit-fallthrough=3.
1381 (-Wimplicit-fallthrough=): Document.
1382
1383 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1384
1385 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
1386 and GEU in DImode if TARGET_SUBXC.
1387 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
1388 (seqdi<W:mode>_zero_subxc): Delete.
1389 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
1390 (neg_seqdi<W:mode>_zero_vis3): Delete.
1391 (plus_seqdi<W:mode>_zero): Likewise.
1392 (minus_seqdi<W:mode>_zero): Likewise.
1393 (plus_plus_sltu<W:mode>): Accept only register.
1394 (addx<W:mode>): Likewise.
1395 (plus_sltu<W:mode>_vis3): Likewise.
1396 (plus_plus_sltu<W:mode>_vis3): Likewise.
1397 (neg_sgeu<W:mode>_vis3): Delete.
1398 (minus_sgeu<W:mode>_vis3): Likewise.
1399 (addxc<W:mode>): Accept only registers.
1400 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1401 (minus_neg_sltu<W:mode>_subxc): Accept only register.
1402 (neg_plus_sltu<W:mode>_subxc): Likewise.
1403 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1404 (minus_minus_sltu<W:mode>_subxc): Accept only register.
1405 (sgeu<W:mode>_insn_subxc): Delete.
1406 (plus_sgeu<W:mode>_subxc): Likewise.
1407 (subxc<W:mode>): Accept only register.
1408 (scc splitter): Split always GEU again.
1409
1410 2016-10-11 Jeff Law <law@redhat.com>
1411
1412 PR tree-optimization/77424
1413 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
1414 dead conditionals. Assert that all e->aux fields are NULL.
1415
1416 2016-10-11 David Malcolm <dmalcolm@redhat.com>
1417
1418 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
1419 operand-printing "switch" statement into...
1420 (print_rtx_operand_code_0): ...this new function, ...
1421 (print_rtx_operand_code_e): ...this new function, ...
1422 (print_rtx_operand_codes_E_and_V): ...this new function, ...
1423 (print_rtx_operand_code_i): ...this new function, ...
1424 (print_rtx_operand_code_r): ...this new function, ...
1425 (print_rtx_operand_code_u): ...this new function, ...
1426 (print_rtx_operand): ...and this new function.
1427
1428 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
1429
1430 * config/alpha/alpha-passes.def: New file.
1431 * config/alpha/t-alpha: New file.
1432 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
1433 (make_pass_handle_trap_shadows): New prototype.
1434 (make_pass_align_insns): Ditto.
1435 * config/alpha/alpha.c (alpha_option_override): Don't register
1436 passes here.
1437 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
1438
1439 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1440
1441 PR target/77924
1442 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
1443 distinct __ibm128 IBM extended double type if long doubles are
1444 128-bits and the default format for long double is IEEE 128-bit.
1445
1446 2016-10-11 Richard Biener <rguenther@suse.de>
1447
1448 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
1449 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
1450 (verify_die): New function.
1451 (dwarf2out_finish): Call it.
1452 (output_line_info): Handle case of -gsplit-dwarf without
1453 DWARF2_ASM_LINE_DEBUG_INFO.
1454
1455 2016-10-11 Richard Biener <rguenther@suse.de>
1456
1457 PR debug/77931
1458 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
1459 sub-chains of BLOCK_VARS and gimple_bind_vars.
1460
1461 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1462
1463 * config/i386/znver1.md : Fix imov/imovx load type reservations.
1464
1465 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1466
1467 * config/sparc/sparc.opt (msubxc): New option.
1468 * doc/invoke.texi (SPARC options): Document it and tidy up.
1469 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
1470 * doc/tm.texi: Regenerate.
1471 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
1472 (CCNZ): ...this.
1473 (CCX_NOOV): Rename into...
1474 (CCXNZ): ...this.
1475 (CCC): New.
1476 (CCXC): Likewise.
1477 * config/sparc/predicates.m (fcc_register_operand): Simplify.
1478 (fcc0_register_operand): Likewise.
1479 (icc_register_operand): New.
1480 (icc_or_fcc_register_operand): Simplify.
1481 (nz_comparison_operator): New.
1482 (c_comparison_operator): Likewise.
1483 (noov_compare_operator): Rename into...
1484 (icc_comparison_operator): ...this. Use above predicates.
1485 (noov_compare64_operator): Rename into...
1486 (v9_comparison_operator): ...this and tidy up.
1487 (fcc_comparison_operator): New.
1488 (icc_or_fcc_comparison_operator): Likewise.
1489 (v9_register_compare_operator): Rename info...
1490 (v9_register_comparison_operator): ...this.
1491 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1492 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
1493 for Niagara-7.
1494 (sparc_fixed_condition_code_regs): New function.
1495 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
1496 renaming and add support for CCC/CCXC.
1497 (output_cbranch): Likewise.
1498 (sparc_print_operand): Likewise.
1499 (gen_v9_scc): Remove obsolete assertion.
1500 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
1501 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
1502 (output_cbcond): Remove bogus handling of CC modes.
1503 (sparc_register_move_cost): Return 100 for NO_REGS.
1504 * config/sparc/sparc.md (W): New mode iterator.
1505 (length): Adjust for noov_compare64_operator renaming.
1506 (cmpsi_sne): New instruction.
1507 (cmpdi_sne): Likewise.
1508 (seqdi_special): Delete.
1509 (seqdi_special): Likewise.
1510 (snesi<P:mode>_special): Likewise.
1511 (snedi_special): Likewise.
1512 (snedi_special_vis3): Likewise.
1513 (snesi patterns): Use W iterator.
1514 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
1515 (sltu patterns): Likewise.
1516 (sgeu patterns): Likewise.
1517 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
1518 (normal_branch): Use icc_comparison_operator predicate.
1519 (inverted_branch): Likewise.
1520 (cbcond_sp32): Use comparison_operator predicate.
1521 (cbcond_sp64): Likewise.
1522 (normal_int_branch_sp64): Adjust for renaming
1523 (inverted_int_branch_sp64): Likewise.
1524 (mov<I:mode>_cc_reg_sp64): Likewise.
1525 (movsf_cc_reg_sp6): Likewise.
1526 (movdf_cc_reg_sp64): Likewise.
1527 (movtf_cc_reg_hq_sp64): Likewise.
1528 (movtf_cc_reg_sp64): Likewise.
1529 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
1530 (movsf_cc_v9): Likewise.
1531 (movdf_cc_v9): Likewise.
1532 (movtf_cc_hq_v9): Likewise.
1533 (movtf_cc_v9): Likewise.
1534 (adddi3): Call gen_adddi3_sp32.
1535 (adddi3_insn_sp32): Rename to...
1536 (adddi3_sp32): ...this. Accept only register_operand as operand #1
1537 and use CCCmode for the carry.
1538 (addx_extend_sp32): Use CCCmode for the carry.
1539 (addx_extend_sp64): Delete.
1540 (adddi3_extend_sp32): Use CCCmode for the carry.
1541 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
1542 (subdi3): Call gen_subdi3_sp32.
1543 (subdi3_insn_sp32): Rename to...
1544 (subdi3_sp32): ...this and use CCmode for the carry.
1545 (subx_extend_sp32): Use CCCmode for the carry.
1546 (subx_extend_sp64): Delete.
1547 (subdi3_extend_sp32): Use CCmode for the carry.
1548 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
1549 (negdi3): Call gen_negdi3_sp32.
1550 (negdi3_sp32): Use CCCmode for the carry.
1551 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
1552 (cmp_nz_ashift_1): Use CCNZ mode.
1553 (cmp_nz_set_ashift_1): Likewise.
1554 (ctrapsi4): Use comparison_operator predicate.
1555 (ctrapdi4): Likewise.
1556 (trapsi_insn): Use icc_comparison_operator predicate.
1557 (trapdi_insn): Likewise.
1558 (edge8 patterns): Use CCNZmode.
1559 (edge16 patterns): Likewise.
1560 (edge32 patterns): Likewise.
1561
1562 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1563
1564 * config/visium/visium-modes.def (CC_NOOV): Rename into...
1565 (CCNZ): ...this.
1566 (CC_BTST): Rename into...
1567 (CCC): ...this.
1568 * config/visium/predicates.md (real_add_operand): New.
1569 (visium_btst_operator): Rename into...
1570 (visium_equality_comparison_operator): ...this.
1571 (visium_noov_operator): Rename into...
1572 (visium_nz_comparison_operator): ...this.
1573 (visium_c_comparison_operator): New.
1574 (visium_branch_operator): Adjust and deal with all CC modes.
1575 * config/visium/visium.c (visium_adjust_cost): Adjust.
1576 (visium_split_double_add): Use the *_set_carry patterns.
1577 (visium_select_cc_mode): Add support for CCC mode and adjust.
1578 (output_cbranch): Adjust and use the carry-based operators for
1579 floating-point comparisons.
1580 * config/visium/visium.md (flags_subst_arith): Adjust.
1581 (addsi3_insn_set_carry): New instruction.
1582 (subsi3_insn_set_carry): Likewise.
1583 (negsi2_insn_set_carry): Likewise.
1584 (btst): Adjust.
1585 (cmp<mode>_sne): Likewise.
1586 (cbranch<mode>4): Use ordered_comparison_operator.
1587 (cbranch<mode>4_insn): Likewise.
1588 (cbranchsi4_btst_insn): Adjust.
1589
1590 2016-10-11 Tom de Vries <tom@codesourcery.com>
1591
1592 PR middle-end/77558
1593 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1594 special-casing.
1595
1596 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1597
1598 * tree.h (build_complex_type): Add second parameter with default.
1599 * tree.c (build_complex_type): Add NAMED second parameter and adjust
1600 recursive call. Create a TYPE_DECL only if NAMED is true.
1601 (build_common_tree_nodes): Pass true in calls to build_complex_type.
1602
1603 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
1604
1605 New avr-passes.def to register AVR specific passes.
1606
1607 * config/avr/avr-passes.def: New file.
1608 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
1609 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
1610 (make_avr_pass_recompute_note): New proto.
1611 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
1612 (avr_pass_recompute_notes): Use anonymous namespace.
1613 (avr_register_passes): Remove function...
1614 (avr_option_override): ...and its call.
1615
1616 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
1617
1618 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
1619 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
1620 PTF_AVOID_BRANCHLIKELY_SPEED for others.
1621 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
1622 flags.
1623 * config/mips/mips.c (mips_option_override): Enable the branch
1624 likely depending on the tune flags and optimization level.
1625 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
1626 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
1627 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
1628 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
1629
1630 2016-10-11 Richard Biener <rguenther@suse.de>
1631
1632 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
1633 (output_function): Properly stream the whole block tree.
1634 * lto-streamer-in.c (input_function): Likewise.
1635
1636 2016-10-11 Marek Polacek <polacek@redhat.com>
1637
1638 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
1639
1640 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1641
1642 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
1643 (evrp_dom_walker::before_dom_children): Infer and push new value
1644 ranges for x in y < x.
1645
1646 2016-10-10 Joseph Myers <joseph@codesourcery.com>
1647
1648 PR target/77586
1649 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
1650 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
1651 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1652 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1653 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1654 (IA64_NO_LIBGCC_TFMODE): Likewise.
1655
1656 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1657
1658 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1659 copying.
1660
1661 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
1662
1663 * config.gcc: Add aarch64-*-freebsd* support.
1664 * config.host: Likewise.
1665 * config/aarch64/aarch64-freebsd.h: New file.
1666 * config/aarch64/t-aarch64-freebsd: Ditto.
1667
1668 2016-10-10 Jeff Law <law@redhat.com>
1669
1670 PR tree-optimization/71947
1671 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
1672 B with A within a single statement.
1673
1674 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1675
1676 PR tree-optimization/77824
1677 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
1678 zero cost for copies.
1679 (find_candidates_dom_walker::before_dom_children): Replace
1680 MODIFY_EXPR with SSA_NAME.
1681 (replace_mult_candidate): Likewise.
1682 (replace_profitable_candidates): Likewise.
1683
1684 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1685
1686 * config/s390/s390.h: Wrap more macros args in brackets and fix
1687
1688 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
1689
1690 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1691
1692 2016-10-10 Andreas Schwab <schwab@suse.de>
1693
1694 PR target/77738
1695 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
1696 pseudo is not DImode.
1697
1698 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
1699
1700 * common/config/arc/arc-common.c (arc_option_optimization_table):
1701 Remove compact casesi option.
1702 * config/arc/arc.c (arc_override_options): Use compact casesi
1703 option only for pre-ARCv2 cores.
1704 * doc/invoke.texi (mcompact-casesi): Update text.
1705
1706 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1707
1708 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
1709 Add macro to say we can efficiently handle overlapping unaligned
1710 loads.
1711 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
1712 poor code for processors older than p8.
1713
1714 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
1715
1716 * gen-pass-instances.awk: Remove GNUism.
1717
1718 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1719
1720 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
1721 NULL of (*ipcp_transformations)][node->uid].
1722
1723 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
1724
1725 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1726 (MALLOC_ABI_ALIGNMENT): Define.
1727
1728 2016-10-09 Jakub Jelinek <jakub@redhat.com>
1729
1730 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
1731 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
1732 VAR_OR_FUNCTION_DECL_P macros.
1733 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
1734 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
1735 chkp_find_bounds_1): Likewise.
1736 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
1737 * hsa-gen.c (get_symbol_for_decl): Likewise.
1738 * cgraphunit.c (check_global_declaration, analyze_functions,
1739 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1740 Likewise.
1741 * gimple-fold.c (can_refer_decl_in_current_unit_p,
1742 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1743 Likewise.
1744 * tree.c (set_decl_section_name, copy_node_stat,
1745 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1746 merge_dllimport_decl_attributes, handle_dll_attribute,
1747 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1748 verify_type): Likewise.
1749 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1750 find_explicit_erroneous_behavior): Likewise.
1751 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1752 * ipa.c (process_references): Likewise.
1753 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1754 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1755 notice_global_symbol, assemble_variable, mark_decl_referenced,
1756 build_constant_desc, output_constant_def_contents, do_assemble_alias,
1757 make_decl_one_only, default_section_type_flags,
1758 categorize_decl_for_section, default_encode_section_info): Likewise.
1759 * trans-mem.c (requires_barrier): Likewise.
1760 * gimple-expr.c (mark_addressable): Likewise.
1761 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1762 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1763 expand_debug_expr): Likewise.
1764 * tree-dump.c (dequeue_and_dump): Likewise.
1765 * ubsan.c (instrument_bool_enum_load): Likewise.
1766 * tree-pretty-print.c (print_declaration): Likewise.
1767 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1768 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1769 * asan.c (asan_protect_global, instrument_derefs): Likewise.
1770 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1771 pass_build_ssa::execute): Likewise.
1772 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1773 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1774 Likewise.
1775 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1776 Likewise.
1777 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1778 can_be_nonlocal, remap_decls, copy_debug_stmt,
1779 initialize_inlined_parameters, add_local_variables,
1780 reset_debug_binding, replace_locals_op): Likewise.
1781 * dse.c (can_escape): Likewise.
1782 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1783 Likewise.
1784 * tree-diagnostic.c (default_tree_printer): Likewise.
1785 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1786 unpack_ts_decl_with_vis_value_fields,
1787 lto_input_ts_decl_common_tree_pointers): Likewise.
1788 * builtins.c (builtin_save_expr, fold_builtin_expect,
1789 readonly_data_expr): Likewise.
1790 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1791 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1792 Likewise.
1793 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1794 * gimplify.c (force_constant_size, gimplify_bind_expr,
1795 gimplify_decl_expr, gimplify_var_or_parm_decl,
1796 gimplify_compound_lval, gimplify_init_constructor,
1797 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1798 gimplify_type_sizes): Likewise.
1799 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1800 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1801 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1802 remove_unused_locals): Likewise.
1803 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1804 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1805 * function.c (instantiate_expr, instantiate_decls_1,
1806 setjmp_vars_warning, add_local_decl): Likewise.
1807 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1808 Likewise.
1809 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1810 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1811 optimize_va_list_gpr_fpr_size): Likewise.
1812 * tree-nrv.c (pass_nrv::execute): Likewise.
1813 * tsan.c (instrument_expr): Likewise.
1814 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1815 * vtable-verify.c (verify_bb_vtables): Likewise.
1816 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1817 get_ref_base_and_extent): Likewise.
1818 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1819 Likewise.
1820 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1821 analyze_all_variable_accesses): Likewise.
1822 * tree-nested.c (get_nonlocal_debug_decl,
1823 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1824 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1825 get_local_debug_decl, convert_local_omp_clauses,
1826 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1827 Likewise.
1828 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1829 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1830 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1831 dbxout_symbol, dbxout_common_check): Likewise.
1832 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1833 string_constant): Likewise.
1834 * hsa.c (hsa_get_declaration_name): Likewise.
1835 * passes.c (rest_of_decl_compilation): Likewise.
1836 * tree-ssanames.c (make_ssa_name_fn): Likewise.
1837 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1838 pack_ts_decl_with_vis_value_fields,
1839 write_ts_decl_common_tree_pointers): Likewise.
1840 * stor-layout.c (place_field): Likewise.
1841 * symtab.c (symtab_node::maybe_create_reference,
1842 symtab_node::verify_base, symtab_node::make_decl_local,
1843 symtab_node::copy_visibility_from,
1844 symtab_node::can_increase_alignment_p): Likewise.
1845 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1846 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1847 fortran_common, add_location_or_const_value_attribute,
1848 add_scalar_info, add_linkage_name, set_block_abstract_flags,
1849 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1850 optimize_one_addr_into_implicit_ptr,
1851 optimize_location_into_implicit_ptr): Likewise.
1852 * gimple-low.c (record_vars_into): Likewise.
1853 * ipa-visibility.c (update_vtable_references): Likewise.
1854 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1855 Likewise.
1856 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1857 DFS::DFS_write_tree_body, write_symbol): Likewise.
1858 * langhooks.c (lhd_warn_unused_global_decl,
1859 lhd_set_decl_assembler_name): Likewise.
1860 * attribs.c (decl_attributes): Likewise.
1861 * except.c (output_ttype): Likewise.
1862 * varpool.c (varpool_node::get_create, ctor_for_folding,
1863 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1864 * fold-const.c (fold_unary_loc): Likewise.
1865 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1866 ipa_find_agg_cst_from_init): Likewise.
1867 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1868 expand_omp_target, lower_omp_regimplify_p,
1869 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1870 find_link_var_op): Likewise.
1871 * tree-chrec.c (chrec_contains_symbols): Likewise.
1872 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1873 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1874 execute_fixup_cfg): Likewise.
1875
1876 PR tree-optimization/77901
1877 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1878 if ranges[i].exp is SSA_NAME when looking for >= and only when
1879 ranges[i].exp is NULL or SSA_NAME when looking for the other
1880 comparison.
1881
1882 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1883
1884 * ipa-cp.c (ipcp_alignment_lattice): Remove.
1885 (ipcp_param_lattices): Remove field alignment.
1886 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1887 (set_all_contains_variable): Remove call to
1888 ipcp_alignment_lattice::set_to_bottom.
1889 (initialize_node_lattices): Likewise.
1890 (propagate_alignment_accross_jump_function): Remove.
1891 (propagate_constants_accross_call): Remove call to
1892 propagate_alignment_accross_jump_function.
1893 (ipcp_store_alignment_results): Remove.
1894 (ipcp_driver): Remove call to ipcp_store_alignment_results.
1895 (propagate_bits_accross_jump_function): Handle ancestor jump function.
1896 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1897 pretty-printing of alignment jump function.
1898 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1899 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1900 alignments and remove computing ipa_alignment jump function.
1901 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1902 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1903 (ipa_read_jump_function): Remove reading of ipa_alignment.
1904 (write_ipcp_transformation_info): Remove streaming for alignment
1905 propagation summary.
1906 (read_ipcp_transformation_info): Remove reading of alignment
1907 propagation summary.
1908 (ipcp_update_alignments): Remove.
1909 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1910 type.
1911 (ipcp_transform_function): Remove call to ipcp_update_alignments()
1912 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1913 * ipa-prop.h (ipa_alignment): Remove.
1914 (ipa_jump_func): Remove field alignment.
1915 (ipcp_transformation_summary): Remove field alignments.
1916 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1917 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1918 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1919
1920 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
1921
1922 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1923
1924 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1925 change.
1926 (visium_expand_fp_cstore): Likewise.
1927
1928 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1929
1930 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1931 * diagnostic.c (warning_at_rich_loc_n): New function.
1932 (diagnostic_n_impl_richloc): Likewise.
1933 (diagnostic_n_impl): Move most of the function to
1934 diagnostic_n_impl_richloc and call it.
1935
1936 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1937
1938 * gen-pass-instances.awk: Rewritten.
1939 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1940 $(PASSES_EXTRA) after passes.def to the script.
1941 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1942 * config/i386/i386-passes.def: New file.
1943 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1944 make_pass_stv): Declare.
1945 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1946 false.
1947 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1948 or !TARGET_64BIT.
1949 (pass_stv::clone, pass_stv::set_pass_param): New methods.
1950 (pass_stv::timode_p): New non-static data member.
1951 (ix86_option_override): Don't register passes here.
1952
1953 * doc/invoke.texi: Document accepting Else, fallthrough.
1954
1955 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1956 style changes.
1957
1958 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1959 FALLTHRU comment styles.
1960
1961 2016-10-07 Andrew Pinski <apinski@cavium.com>
1962
1963 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1964 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
1965 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
1966 Likewise.
1967 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
1968 Likewise.
1969 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
1970 Likewise.
1971 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
1972 (AARCH64_ARCH): Likewise.
1973 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
1974 Likewise.
1975 (AARCH64_CORE): Likewise.
1976 (AARCH64_ARCH): Likewise.
1977 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
1978 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1979 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
1980 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1981 (AARCH64_ARCH): Likewise.
1982 (AARCH64_CORE): Likewise.
1983 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1984 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
1985 (AARCH64_CORE): Likewise.
1986 (AARCH64_ARCH): Likewise.
1987
1988 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1989
1990 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
1991 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
1992 floating point type infrastructre, and -mfloat128 that enables the
1993 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
1994 if -mfloat128-type. Define __ibm128 to be long double by default.
1995 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
1996 the IEEE 128-bit floating point type infrastructure should
1997 automatically be enabled.
1998 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
1999 instead of -mfloat128 to enable KFmode.
2000 (rs6000_option_override_internal): Split the option -mfloat128
2001 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
2002 systems, automatically set -mfloat128-type, but don't enable it on
2003 other operating systems. Move setting the long double size and
2004 IEEE quad support before the IEEE 128-bit floating point changes.
2005 (rs6000_init_builtins): Do not create a unique type for __ibm128
2006 if long double is IBM extended double, instead rely on __ibm128
2007 being defined as 'long double'. If -mfloat128-type and not
2008 -mfloat128, create the KFmode type with an undocumented __ieee128
2009 keyword.
2010 (rs6000_init_libfuncs): Use -mfloat128-type instead of
2011 -mfloat128 for tests about the types, but keep tests for
2012 -mfloat128 to enable the keyword support.
2013 (rs6000_complex_function_value): Likewise.
2014 (rs6000_scalar_mode_supported_p): Likewise.
2015 (rs6000_floatn_mode): Likewise.
2016 (rs6000_c_mode_for_suffix): Likewise.
2017 (rs6000_opt_masks): Add -mfloat128-type.
2018 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
2019 -mfloat128-type being split from -mfloat128. Add
2020 -mfloat128-hardware, which was missing.
2021 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
2022 -mfloat128 and -mfloat128-type:
2023 (-mfloat128-type): Likewise.
2024 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
2025 that 64-bit Linux systems with enable -mfloat128-type by default
2026 on VSX systems.
2027 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
2028 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
2029 -mfloat128-type instead of -mfloat128.
2030 (FLOAT128_2REG_P): Likewise.
2031 (MASK_FLOAT128_TYPE): Likewise.
2032 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2033 (RS6000_BTM_FLOAT128): Likewise.
2034 (TARGET_FLOAT128): Poison old identifiers.
2035 (OPTION_MASK_FLOAT128): Likewise.
2036 (MASK_FLOAT128): Likewise.
2037 * config/rs6000/rs6000.md (FP): Likewise.
2038 (FLOAT128): Likewise.
2039 (fix_trunc<mode>di2): Likewise.
2040 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2041 (floatdi<mode>2): Likewise.
2042 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
2043 (neg<mode>2, FLOAT128 iterator): Likewise.
2044 (abs<mode>2, FLOAT128 iterator): Likewise.
2045 (ieee_128bit_negative_zero): Likewise.
2046 (ieee_128bit_vsx_neg<mode>2): Likewise.
2047 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2048 (ieee_128bit_vsx_abs<mode>2): Likewise.
2049 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2050 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2051 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2052 (extendiftf2): Likewise.
2053 (extendifkf2): Likewise.
2054 (extendtfkf2): Likewise.
2055 (trunciftf2): Likewise.
2056 (truncifkf2): Likewise.
2057 (trunckftf2): Likewise.
2058 (trunctfif2): Likewise.
2059 (extendkftf2): Likewise.
2060 (trunctfkf2): Likewise.
2061
2062 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2063
2064 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
2065 before merging in bytes to pass down to real_from_target.
2066
2067 2016-10-07 Richard Biener <rguenther@suse.de>
2068
2069 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
2070 required hack.
2071 (substitute_and_fold_dom_walker::before_dom_children):
2072 Substitute and fold before pass specific folding to avoid
2073 feeding that with SSA names that will be later released.
2074 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
2075 introduced by folding and visited by evaluate_stmt called during
2076 ccp_fold_stmt.
2077 (likely_value): Likewise.
2078 (evaluate_stmt): Likewise.
2079 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
2080 (simplify_div_or_mod_using_ranges): Likewise.
2081 (simplify_min_or_max_using_ranges): Likewise.
2082 (simplify_abs_using_ranges): Likewise.
2083 (simplify_conversion_using_ranges): Likewise.
2084 (simplify_float_conversion_using_ranges): Likewise.
2085 (simplify_stmt_using_ranges): Likewise.
2086
2087 2016-10-07 Marek Polacek <polacek@redhat.com>
2088
2089 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
2090 FALLTHROUGH_LABEL_P here...
2091 (warn_implicit_fallthrough_r): ...not here.
2092
2093 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
2094
2095 PR tree-optimization/77880
2096 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
2097 necessary.
2098
2099 2016-10-07 Marek Polacek <polacek@redhat.com>
2100
2101 PR c++/77803
2102 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
2103
2104 2016-10-07 Richard Biener <rguenther@suse.de>
2105
2106 * bitmap.h: Document constraints on bitmap modification while
2107 iterating over it.
2108
2109 2016-10-07 Richard Biener <rguenther@suse.de>
2110
2111 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
2112 * bitmap.h (bmp_iter_set): When advancing to the next element
2113 check that we didn't remove the current one.
2114 (bmp_iter_and): Likewise.
2115 (bmp_iter_and_compl): Likewise.
2116 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
2117 we currently iterate on but keep a one-level queue.
2118 * sched-deps.c (remove_from_deps): Do not clear current bit
2119 but keep a one-level queue.
2120
2121 2016-10-07 Jakub Jelinek <jakub@redhat.com>
2122
2123 PR tree-optimization/77664
2124 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
2125 for the other ranges.
2126 (optimize_range_tests_diff): Fix up formatting.
2127 (optimize_range_tests_var_bound): New function.
2128 (optimize_range_tests): Use it.
2129
2130 2016-10-07 Martin Liska <mliska@suse.cz>
2131
2132 * coverage.c (build_gcov_exit_decl): Fix priority what
2133 should be really 99.
2134
2135 2016-10-07 Richard Biener <rguenther@suse.de>
2136
2137 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
2138 vars in gimple_bind_vars but not in BLOCK_VARS.
2139
2140 2016-10-07 Richard Biener <rguenther@suse.de>
2141
2142 PR tree-optimization/77879
2143 * tree-ssa-structalias.c (handle_const_call): Properly handle
2144 NRV return slots.
2145 (handle_pure_call): Likewise.
2146
2147 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2148
2149 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
2150 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
2151 possible overflow.
2152
2153 2016-10-06 Andrew Pinski <apinski@cavium.com>
2154
2155 * config/aarch64/aarch64-cores.def: Add a comment before each
2156 set of cores.
2157
2158 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2159
2160 PR tree-optimization/77862
2161 * tree-vrp.c (add_equivalence): Use get_value_range so that
2162 num_vr_values is checked before accessing vr_values.
2163
2164 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2165
2166 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2167 POINTER_TYPE_P.
2168
2169 2016-10-05 Jeff Law <law@redhat.com>
2170
2171 PR tree-optimization/71661
2172 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
2173 removal of a forwarder exposes a new natural loop.
2174
2175 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
2176
2177 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
2178 Introduce ssesuffix variable.
2179 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2180 (*<code><mode>3): Ditto.
2181
2182 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
2183
2184 * postreload.c (reload_cse_simplify): Skip also USE when detecting
2185 noop move.
2186
2187 2016-10-06 Richard Biener <rguenther@suse.de>
2188
2189 PR tree-optimization/77855
2190 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
2191 instead of removing the current item while iterating over the set
2192 which is not safe.
2193
2194 2016-10-06 James Clarke <jrtc27@jrtc27.com>
2195 Eric Botcazou <ebotcazou@adacore.com>
2196
2197 PR target/77759
2198 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
2199 (classify_registers): Don't set it
2200 (function_arg_slotno): Don't initialize and test it. Tidy up.
2201
2202 2016-10-06 Richard Biener <rguenther@suse.de>
2203
2204 PR tree-optimization/77839
2205 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
2206 lattice transition.
2207
2208 2016-10-06 Martin Liska <mliska@suse.cz>
2209
2210 * gcc.c: Set -fprofile-update=atomic when profiling is
2211 enabled and -pthread is set. Warn when one combines
2212 -pthread and -fprofile-update=single for an app using
2213 profiling code.
2214
2215 2016-10-06 Martin Liska <mliska@suse.cz>
2216
2217 PR bootstrap/77788
2218 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
2219 * gimple-ssa-strength-reduction.c (slsr_process_cast):
2220 Initialize a pointer to NULL.
2221 (slsr_process_copy): Likewise.
2222 * input.c (location_get_source_line): Likewise.
2223 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2224
2225 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
2226
2227 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
2228 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
2229 (ix86_handle_option): Deleted handle of OPT_mpcommit.
2230 * config.gcc: Deleted pcommitintrin.h
2231 * config/i386/pcommitintrin.h: Deleted file.
2232 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
2233 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
2234 detection.
2235 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
2236 __PCOMMIT__.
2237 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
2238 (PTA_PCOMMIT): Deleted define.
2239 (ix86_option_override_internal): Deleted handle of option.
2240 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
2241 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
2242 __builtin_ia32_pcommit): Deleted.
2243 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
2244 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
2245 (pcommit): Deleted instruction.
2246 * config/i386/i386.opt: Mention -mpcommit deprecation.
2247 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
2248
2249 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
2250
2251 PR target/77874
2252 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
2253 Remove wrong assert.
2254 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
2255 Use <round_constraint> as operand 1 constraint.
2256
2257 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2258
2259 PR sanitizer/66343
2260 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
2261 (ubsan_instrument_float_cast): And not here.
2262
2263 PR sanitizer/66343
2264 * ubsan.c (ubsan_ids): New GTY(()) array.
2265 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
2266 instead of static local counters.
2267
2268 2016-10-05 Martin Sebor <msebor@redhat.com>
2269
2270 PR bootstrap/77819
2271 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
2272 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
2273 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
2274 (default_printf_pointer_format): Define function.
2275 * targhooks.c (linux_printf_pointer_format): Define new function.
2276 * targhooks.h (linux_printf_pointer_format): Declare.
2277 (gnu_libc_printf_pointer_format): Remove declaration.
2278
2279 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2280
2281 * fold-const.c (native_encode_real): Fix logic for selecting offset
2282 to write to when BYTES_BIG_ENDIAN.
2283
2284 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
2285
2286 * builtins.c (fold_builtin_strchr): Remove function.
2287 (fold_builtin_strrchr): Likewise.
2288 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
2289 * gimple-fold.c (target_char_cst_p): New function.
2290 (gimple_fold_builtin_strchr) Add more foldings.
2291 (gimple_fold_builtin): Add index, strrchr, rindex cases.
2292
2293 2016-10-05 Richard Biener <rguenther@suse.de>
2294
2295 PR middle-end/77863
2296 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
2297 capture ids in c-exprs.
2298
2299 2016-10-05 Richard Biener <rguenther@suse.de>
2300
2301 PR middle-end/77826
2302 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
2303 with types_match for GIMPLE code gen to handle type mismatched
2304 constants properly.
2305 (dt_operand::gen): Adjust.
2306 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
2307 and constant A.
2308
2309 2016-10-05 Richard Biener <rguenther@suse.de>
2310
2311 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
2312
2313 2016-10-05 Richard Biener <rguenther@suse.de>
2314
2315 PR middle-end/77842
2316 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
2317
2318 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
2319
2320 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
2321 version check to protect only DW_TAG_imported_module generation.
2322
2323 2016-10-05 Richard Biener <rguenther@suse.de>
2324
2325 PR middle-end/55152
2326 * match.pd (min(a,-a) -> -abs(a)): New pattern.
2327
2328 2016-10-04 Ian Lance Taylor <iant@golang.org>
2329
2330 * explow.c (allocate_dynamic_stack_space): Call
2331 do_pending_stack_adjust before handling flag_split_stack.
2332
2333 2016-10-04 David Malcolm <dmalcolm@redhat.com>
2334
2335 * genattrtab.c (make_internal_attr): Supply dummy column number to
2336 file_location ctor.
2337 (main): Likewise.
2338 * genoutput.c (init_insn_for_nothing): Likewise.
2339 * gensupport.c (add_define_attr): Likewise.
2340 * read-md.c (message_at_1): Print column number.
2341 (fatal_with_file_and_line): Likewise.
2342 (rtx_reader::read_char): Track column numbers.
2343 (rtx_reader::unread_char): Likewise.
2344 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
2345 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
2346 (rtx_reader::handle_file): Initialize m_read_md_colno.
2347 (rtx_reader::get_current_location): Supply column number to
2348 file_location ctor.
2349 * read-md.h (struct file_location): Add field "colno".
2350 (file_location::file_location): Likewise.
2351 (rtx_reader::get_colno): New accessor.
2352 (rtx_reader::m_read_md_colno): New field.
2353 (rtx_reader::m_last_line_colno): New field.
2354
2355 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2356
2357 * doc/extend.texi (Java Exceptions): Remove.
2358 (java_interface): Remove.
2359
2360 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
2361
2362 PR tree-optimization/77808
2363 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
2364 and addr are different before copying points-to information.
2365
2366 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
2367
2368 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
2369 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
2370 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
2371 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
2372
2373 2016-10-04 Richard Biener <rguenther@suse.de>
2374
2375 PR tree-optimization/77399
2376 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
2377 verify the target can convert.
2378
2379 2016-10-04 Richard Biener <rguenther@suse.de>
2380
2381 PR middle-end/77833
2382 * explow.c (plus_constant): Verify the mode of the constant
2383 pool offset before calling plus_constant.
2384
2385 2016-10-04 Richard Biener <rguenther@suse.de>
2386
2387 PR middle-end/77407
2388 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
2389 type support, mark with :C.
2390 (X / -X -> -1): Mark with :C.
2391
2392 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2393
2394 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
2395 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
2396 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
2397 * doc/tm.texi: Regenerated.
2398 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
2399 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
2400 * config/darwin.h (JCR_SECTION_NAME): Remove.
2401 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
2402 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
2403 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
2404 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
2405 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
2406 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
2407
2408 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2409
2410 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
2411 between "because" and "param" in dump message in call to fprintf.
2412
2413 2016-10-03 Jeff Law <law@redhat.com>
2414
2415 PR tree-optimization/71550
2416 PR tree-optimization/71403
2417 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
2418 (profitable_jump_thread_path): Also return boolean indicating if
2419 the realized path will create an irreducible loop.
2420 Remove loop depth tests from 71403.
2421 (fsm_find_control_statement_thread_paths): Remove loop depth tests
2422 from 71403. If threading will create an irreducible loop, then
2423 throw away loop iteration and related information.
2424
2425 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
2426
2427 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
2428 -Woverloaded-virtual checks for warning options.
2429 * configure: Regenerate.
2430
2431 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2432
2433 PR preprocessor/77699
2434 * input.c (maybe_grow): Don't allocate one byte extra headroom.
2435 (get_next_line): Return false on error.
2436 (read_next_line): Removed, use get_next_line instead.
2437 (read_line_num): Don't copy the line.
2438 (location_get_source_line): Don't use static data.
2439 (selftest::test_reading_source_line): Add more test cases.
2440
2441 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2442
2443 Revert
2444 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2445
2446 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2447 (noce_process_if_block): Use it.
2448
2449 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2450
2451 * doc/invoke.texi: Update -Wint-in-bool-context.
2452
2453 2016-10-02 Jakub Jelinek <jakub@redhat.com>
2454
2455 * dwarf2out.c (output_fde, output_call_frame_info,
2456 dwarf2out_do_cfi_startproc, set_indirect_string,
2457 gen_internal_sym, output_die, output_line_info): Use
2458 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
2459 ASM_GENERATE_INTERNAL_LABEL output.
2460
2461 2016-10-01 Richard Biener <rguenther@suse.de>
2462
2463 PR middle-end/77798
2464 * genmatch.c (get_operand_type): Add operand position arg
2465 and handle COND_EXPR comparison operand with fixed boolean_type_node.
2466 (expr::gen_transform): Adjust.
2467 (dt_simplify::gen_1): Likewise.
2468
2469 2016-10-01 Jakub Jelinek <jakub@redhat.com>
2470
2471 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
2472 comments. Simplify asserts, remove unnecessary conditions.
2473 Formatting fixes.
2474 (*<code><mode>3): Likewise.
2475
2476 2016-09-30 Jakub Jelinek <jakub@redhat.com>
2477
2478 * doc/invoke.texi (-Wregister): Document.
2479
2480 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2481
2482 * configure.ac: Split CHECKING_P into CHECKING_P and
2483 ENABLE_EXTRA_CHECKING.
2484 * configure: Regenerated.
2485 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
2486 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
2487
2488 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
2489
2490 PR other/31566
2491 * gcc.c (process_command): For @filename handling, output
2492 the correct name if the file does not exist.
2493
2494 2016-09-30 Marek Polacek <polacek@redhat.com>
2495
2496 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
2497 * config/alpha/predicates.md: Likewise.
2498
2499 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2500
2501 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2502 (noce_process_if_block): Use it.
2503
2504 2016-09-30 Martin Liska <mliska@suse.cz>
2505
2506 * doc/invoke.texi: Document asan-use-after-return that
2507 it's disabled by default in runtime.
2508
2509 2016-09-30 Richard Biener <rguenther@suse.de>
2510
2511 * tree-vrp.c (intersect_ranges): If we failed to handle
2512 the intersection choose a constant singleton range if available.
2513
2514 2016-09-30 Richard Biener <rguenther@suse.de>
2515
2516 PR tree-optimization/77399
2517 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2518 float <-> int conversions.
2519
2520 2016-09-30 Alan Modra <amodra@gmail.com>
2521
2522 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
2523
2524 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2525
2526 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
2527 ext_level before calling CPUID with 0x80000008.
2528 Simplify xgetbv checks.
2529
2530 2016-09-29 David Malcolm <dmalcolm@redhat.com>
2531
2532 * Makefile.in (OBJS): Add print-rtl-function.o.
2533 * print-rtl-function.c: New file.
2534 * print-rtl.h (print_rtx_function): New decl.
2535
2536 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2537
2538 PR target/77756
2539 * config/i386/cpuid.h (__get_cpuid_count): New.
2540 (__get_cpuid): Rename __level to __leaf.
2541
2542 2016-09-29 Marek Polacek <polacek@redhat.com>
2543
2544 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
2545
2546 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
2547
2548 * builtins.c (expand_builtin_memcmp): don't swap args unless
2549 result is only being compared with zero.
2550
2551 2016-09-29 Marek Polacek <polacek@redhat.com>
2552
2553 * dwarf2out.c (loc_descriptor): Add fall through comment.
2554 (add_const_value_attribute): Likewise.
2555
2556 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
2557
2558 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
2559 with "v6t2". Move "arch" attribute above "pool_range".
2560 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
2561 with "v6t2".
2562 (*thumb2_movhi_vfp): Likewise.
2563 (*arm_movhi_fp16): Likewise.
2564 (*thumb2_movhi_fp16): Likewise.
2565 (*arm_movsi_vfp): Remove "arch" attribute.
2566 (*thumb2_movsi_vfp): Likewise.
2567
2568 2016-09-29 Martin Liska <mliska@suse.cz>
2569
2570 * doc/extend.texi: Remove limitation of Objective C for
2571 __attribute__((constructor)) and __attribute__((destructor)).
2572
2573 2016-09-29 Richard Biener <rguenther@suse.de>
2574
2575 PR tree-optimization/77768
2576 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2577 Handle stores to readonly memory when removing redundant stores.
2578
2579 2016-09-29 Richard Biener <rguenther@suse.de>
2580
2581 PR middle-end/77407
2582 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
2583 X / -X -> -1 simplifications.
2584
2585 2016-09-29 Richard Biener <rguenther@suse.de>
2586
2587 PR middle-end/55152
2588 * match.pd: Add max(a,-a) -> abs(a) pattern.
2589 * tree-ssa-phiopt.c (minmax_replacement): Disable for
2590 HONOR_SIGNED_ZEROS types.
2591
2592 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2593
2594 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
2595 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
2596
2597 2016-09-29 Richard Biener <rguenther@suse.de>
2598
2599 * tree-vrp.c (set_defs_to_varying): New helper avoiding
2600 writing to vr_const_varying.
2601 (vrp_initialize): Call it.
2602 (vrp_visit_stmt): Likewise.
2603 (evrp_dom_walker::before_dom_children): Likewise.
2604
2605 2016-09-29 Richard Biener <rguenther@suse.de>
2606
2607 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
2608 constructors with vector elements.
2609
2610 2016-09-29 Richard Biener <rguenther@suse.de>
2611
2612 PR tree-optimization/77768
2613 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
2614 with stores to a place we know has a constant value.
2615
2616 2016-09-29 Alan Modra <amodra@gmail.com>
2617
2618 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
2619 * doc/invoke.texi: Document it.
2620 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
2621 (rs6000_passes_float): Comment.
2622 (rs6000_passes_long_double): New static var.
2623 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
2624 (init_cumulative_args): Set up to emit fp .gnu_attribute for
2625 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
2626 to include fp values returned in vectors.
2627 Set rs6000_passes_long_double.
2628 (rs6000_function_arg_advance_1): Likewise for function args.
2629 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
2630 and SPE. Emit long double tag value too.
2631 (rs6000_opt_vars): Add gnu-attr.
2632 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
2633 * configure: Regenerate.
2634 * config.in: Regenerate.
2635
2636 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2637
2638 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
2639 of 0 < x.
2640 (format_floating, format_string, format_directive,
2641 get_destination_size, pass_sprintf_length::handle_gimple_call):
2642 Likewise.
2643
2644 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2645
2646 * gimple-ssa-sprintf.c: Fix comment formatting.
2647 (format_integer): Use is_gimple_assign.
2648 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
2649 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
2650 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
2651 (pass_sprintf_length::execute): Use is_gimple_call.
2652
2653 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2654
2655 * gimple-fold.c (gimple_fold_builtin): After failing to fold
2656 strchr, also try the generic folding.
2657
2658 2016-09-28 Martin Sebor <msebor@redhat.com>
2659
2660 PR c/77762
2661 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2662 Fix typos.
2663
2664 2016-09-28 Martin Sebor <msebor@redhat.com>
2665
2666 PR middle-end/77683
2667 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
2668 length modifier is not expected.
2669 (format_floating): Ignore l length modifier and fail gracefuly
2670 when it isn't one of the other expected ones.
2671
2672 2016-09-28 Martin Sebor <msebor@redhat.com>
2673
2674 PR bootstrap/77753
2675 * varasm.c (assemble_addr_to_section): Increase local buffer size.
2676
2677 2016-09-27 Richard Biener <rguenther@suse.de>
2678
2679 * dwarf2out.c (cu_die_list): New global.
2680 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
2681 main_comp_unit_die to cu_die_list if we created it.
2682 Move break_out_includes ...
2683 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
2684 the cu_die_list.
2685
2686 2016-09-28 Richard Biener <rguenther@suse.de>
2687
2688 * dwarf2out.c (struct die_struct): Add removed flag.
2689 (lookup_type_die): If the DIE is marked as removed, clear
2690 TYPE_SYMTAB_DIE and return NULL.
2691 (lookup_decl_die): If the DIE is marked as removed, remove it
2692 from the hash and return NULL.
2693 (mark_removed): New helper.
2694 (prune_unused_types_prune): Call it for removed DIEs.
2695 (gen_subprogram_die): Move the premark_used_types call to after
2696 DIEs for the functions scopes are generated.
2697 (process_scope_var): Do not re-create pruned types or type decls.
2698 Make sure to also re-parent type decls.
2699 (dwarf2out_finish): Move unused type pruning and debug_types
2700 handling ...
2701 (dwarf2out_early_finish): ... here.
2702
2703 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2704
2705 * config/arc/arc-c.c: New file.
2706 * config/arc/arc-c.def: Likewise.
2707 * config/arc/t-arc: Likewise.
2708 * config.gcc: Include arc-c.o as c and cpp object.
2709 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
2710 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
2711 arc_cpu_cpp_builtins.
2712
2713 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2714
2715 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
2716 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
2717
2718 2016-09-28 Nathan Sidwell <nathan@acm.org>
2719
2720 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
2721 printing.
2722
2723 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2724
2725 PR tree-optimization/61056
2726 * gimple-fold.c (gimple_fold_builtin_strchr):
2727 New function to optimize strchr (s, 0) to strlen.
2728 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
2729
2730 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
2731
2732 PR tree-optimization/77724
2733 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
2734 Add tree_fits_shwi_p check.
2735
2736 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2737
2738 * auto-inc-dec.c (try_merge): Remove break after return.
2739 * cselib.c (autoinc_split): Likewise.
2740 * explow.c (promote_mode): Likewise.
2741 * fixed-value.c (fixed_arithmetic): Likewise.
2742 * hsa.c (hsa_internal_fn::get_arity): Likewise.
2743 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2744 * trans-mem.c (get_attrs_for): Likewise.
2745 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2746 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2747 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2748 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2749 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2750 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2751 * config/cris/cris.c (cris_op_str): Likewise.
2752 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2753 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2754
2755 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
2756
2757 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2758 IFN_GOACC_REDUCTION_CODES): New.
2759 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2760 ifn_goacc_reduction_kind): Use them.
2761 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2762 of internal functions, when applicable.
2763
2764 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
2765
2766 * config/mips/constraints.md (d): Fix documentation.
2767 * doc/md.texi (Machine Constraints): Update accordingly.
2768
2769 2016-09-27 Richard Biener <rguenther@suse.de>
2770
2771 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2772 cur_line_info_table initialization ...
2773 (dwarf2out_assembly_start): ... here.
2774
2775 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
2776
2777 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2778 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2779 (*thumb2_movhi_vfp): Likewise.
2780 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2781 template. Expand predicable attribute to mark VMOV.F16 as not
2782 predicable. Add "arch" attribute.
2783 (*thumb2_movhi_fp16): Likewise.
2784 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
2785 (*thumb2_movsi_vfp): Add "arch" attribute.
2786
2787 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
2788
2789 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2790 VAR_DECL string.
2791
2792 2016-09-27 Marek Polacek <polacek@redhat.com>
2793
2794 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2795 comment.
2796
2797 * config/c6x/c6x.h: Adjust fall through comment.
2798 * config/sh/sh.c (final_prescan_insn): Likewise.
2799 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2800 (visium_expand_fp_cstore): Likewise.
2801
2802 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2803
2804 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2805 expected by -Wimplicit-fallthrough.
2806 (thumb1_size_rtx_costs): Likewise.
2807 (thumb2_reorg): Likewise.
2808 (tls_mentioned_p): Add "Fall through" comment.
2809 (thumb2_reorg): Likewise.
2810 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2811 comment form expected by -Wimplicit-fallthrough.
2812
2813 2016-09-27 Martin Liska <mliska@suse.cz>
2814
2815 PR gcov-profile/46266
2816 * input.h (RESERVED_LOCATION_P): New macro.
2817 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2818 instread of comparison with UNKNOWN_LOCATION.
2819
2820 2016-09-27 Richard Biener <rguenther@suse.de>
2821
2822 PR tree-optimization/77745
2823 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2824 When removing redundant stores make sure to check compatibility
2825 of the TBAA state for downstream accesses.
2826 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2827 value-numbering virtual operands for store matches.
2828
2829 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2830
2831 PR target/51244
2832 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2833 movrt patterns. Match them before anything else in the SET case.
2834
2835 2016-09-27 Martin Liska <mliska@suse.cz>
2836
2837 PR gcov-profile/7970
2838 PR gcov-profile/16855
2839 PR gcov-profile/44779
2840 * coverage.c (build_gcov_exit_decl): New function.
2841 (coverage_obj_init): Call the function and generate __gcov_exit
2842 destructor.
2843 * doc/gcov.texi: Document when __gcov_exit function is called.
2844
2845 2016-09-27 Marek Polacek <polacek@redhat.com>
2846
2847 PR bootstrap/77751
2848 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2849 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2850 -Wno-error instead of -Wno-implicit-fallthrough.
2851
2852 2016-09-27 Martin Liska <mliska@suse.cz>
2853
2854 PR bootstrap/77749
2855 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2856
2857 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2858
2859 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2860 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2861 comments. Remove break after return.
2862 (ix86_fp_compare_code_to_integer, has_dispatch,
2863 ix86_simd_clone_usable): Remove break after return.
2864
2865 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2866
2867 PR rlt-optimization/77714
2868 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2869 REG_EQUAL note.
2870
2871 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2872
2873 PR ipa/77677
2874 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2875 extract_range_from_unary_expr to convert value_range.
2876 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2877 (extract_range_from_unary_expr): This.
2878 * tree-vrp.h (extract_range_from_unary_expr): Declare.
2879
2880 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
2881
2882 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2883
2884 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2885
2886 * config/i386/i386.c (ix86_print_operand)
2887 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2888 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2889 (epilogue_renumber): Likewise.
2890
2891 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
2892
2893 PR middle-end/77719
2894 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2895 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2896
2897 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2898
2899 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2900 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2901 is_mm_seq_cst, is_mm_sync): Move to ...
2902 * memmodel.h: This. New file.
2903 * builtins.c: Include memmodel.h.
2904 * optabs.c: Likewise.
2905 * tsan.c: Likewise.
2906 * config/aarch64/aarch64.c: Likewise.
2907 * config/alpha/alpha.c: Likewise.
2908 * config/arm/arm.c: Likewise.
2909 * config/i386/i386.c: Likewise.
2910 * config/ia64/ia64.c: Likewise.
2911 * config/mips/mips.c: Likewise.
2912 * config/rs6000/rs6000.c: Likewise.
2913 * config/sparc/sparc.c: Likewise.
2914 * genconditions.c: Include memmodel.h in generated file.
2915 * genemit.c: Likewise.
2916 * genoutput.c: Likewise.
2917 * genpeep.c: Likewise.
2918 * genpreds.c: Likewise.
2919 * genrecog.c: Likewise.
2920
2921 2016-09-26 David Malcolm <dmalcolm@redhat.com>
2922
2923 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2924 "c" instead when parsing characters. Move operand parsing into...
2925 (read_rtx_operand): ...this new function, renaming "i" to "idx",
2926 and tightening the scope of various locals.
2927
2928 2016-09-26 Liu Hao <lh_mouse@126.com>
2929
2930 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2931
2932 2016-09-26 Marek Polacek <polacek@redhat.com>
2933
2934 * system.h: Use __has_attribute to check whether the fallthrough
2935 attribute is supported.
2936
2937 2016-09-26 Marek Polacek <polacek@redhat.com>
2938
2939 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2940 gimple_call_internal_p.
2941 * ipa-split.c (find_return_bb): Likewise.
2942 (execute_split_functions): Likewise.
2943 * omp-low.c (dump_oacc_loop_part): Likewise.
2944 (oacc_loop_xform_head_tail): Likewise.
2945 * predict.c (predict_loops): Likewise.
2946 * sanopt.c (pass_sanopt::execute): Likewise.
2947 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2948 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2949 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2950 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2951 (expand_ifn_va_arg): Likewise.
2952 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2953 (optimize_mask_stores): Likewise.
2954 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2955 (vect_transform_stmt): Likewise.
2956 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2957 * tsan.c (instrument_memory_accesses): Likewise.
2958
2959 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2960 Alexander Monakov <amonakov@ispras.ru>
2961
2962 * regrename.c (rename_chains): Check
2963 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2964 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
2965 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2966
2967 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2968
2969 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
2970 (s390_sched_score): Likewise.
2971
2972 2016-09-26 Martin Liska <mliska@suse.cz>
2973
2974 * doc/gcov.texi: Update program output of gcov tool.
2975
2976 2016-09-26 Martin Liska <mliska@suse.cz>
2977
2978 PR gcov-profile/23332
2979 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
2980 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
2981 * value-prof.c (dump_histogram_value): Do not handle
2982 HIST_TYPE_CONST_DELTA.
2983 (stream_in_histogram_value): Likewise.
2984 (gimple_find_values_to_profile): Likewise.
2985 * value-prof.h (enum hist_type): Likewise.
2986
2987 2016-09-26 Martin Liska <mliska@suse.cz>
2988
2989 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
2990 from default sanitize recover values.
2991 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
2992 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
2993 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
2994 consistent.
2995 * opts.c (finish_options): Do a generic loop over options
2996 that can be recovered.
2997 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
2998 SANITIZE_RETURN.
2999 (common_handle_option): Likewise.
3000 * opts.h: Declare can_recover to sanitizer_opts_s.
3001
3002 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
3003
3004 * target.def(elf_flags_numeric): Change documentation to present tense.
3005 * doc/tm.texi: Regenerate.
3006
3007 2016-09-26 Marek Polacek <polacek@redhat.com>
3008
3009 PR c/7652
3010 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
3011 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
3012 -Wno-switch-fallthrough.
3013 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
3014 (expand_builtin): Likewise.
3015 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
3016 * convert.c (convert_to_real_1): Likewise.
3017 (convert_to_integer_1): Likewise.
3018 * final.c (output_alternate_entry_point): Likewise.
3019 * genattrtab.c (make_canonical): Likewise.
3020 (write_test_expr): Likewise.
3021 * genpreds.c (validate_exp): Likewise.
3022 * gimple-ssa-strength-reduction.c
3023 (find_candidates_dom_walker::before_dom_children): Likewise.
3024 * godump.c (go_format_type): Likewise.
3025 * reload1.c (elimination_effects): Likewise.
3026 * resource.c (mark_referenced_resources): Likewise.
3027 (mark_set_resources): Likewise.
3028 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
3029 * varasm.c (output_addressed_constants): Likewise.
3030
3031 2016-09-26 Marek Polacek <polacek@redhat.com>
3032
3033 PR c/7652
3034 * common.opt (Wimplicit-fallthrough): New option.
3035 * doc/extend.texi: Document statement attributes and the fallthrough
3036 attribute.
3037 * doc/invoke.texi: Document -Wimplicit-fallthrough.
3038 * gimple.h (gimple_call_internal_p): New function.
3039 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
3040 (struct label_entry): New struct.
3041 (find_label_entry): New function.
3042 (case_label_p): New function.
3043 (collect_fallthrough_labels): New function.
3044 (last_stmt_in_scope): New function.
3045 (should_warn_for_implicit_fallthrough): New function.
3046 (warn_implicit_fallthrough_r): New function.
3047 (maybe_warn_implicit_fallthrough): New function.
3048 (expand_FALLTHROUGH_r): New function.
3049 (expand_FALLTHROUGH): New function.
3050 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
3051 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
3052 (gimplify_label_expr): New function.
3053 (gimplify_case_label_expr): Set location.
3054 (gimplify_expr): Call gimplify_label_expr.
3055 * internal-fn.c (expand_FALLTHROUGH): New function.
3056 * internal-fn.def (FALLTHROUGH): New internal function.
3057 * langhooks.c (lang_GNU_OBJC): New function.
3058 * langhooks.h (lang_GNU_OBJC): Declare.
3059 * system.h (gcc_fallthrough): Define.
3060 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
3061 * tree.h (FALLTHROUGH_LABEL_P): Define.
3062
3063 2016-09-26 Richard Biener <rguenther@suse.de>
3064
3065 * dwarf2out.c (stripattributes): Remove unused function.
3066 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
3067 Push dwarf_split_debug_info handling into init_sections_and_labels.
3068 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
3069 (DEBUG_MACRO_SECTION_FLAGS): Remove.
3070 (debug_macinfo_section_name): New global.
3071 (output_macinfo): Use debug_macinfo_section_name.
3072 (init_sections_and_labels): Split out section and label generation
3073 from dwarf2out_init. Set debug_macinfo_section_name.
3074 (dwarf2out_init): Move text section label generation and emission
3075 to ...
3076 (dwarf2out_assembly_start): ... here.
3077 (dwarf2out_finish): Call init_sections_and_labels before DWARF
3078 output starts.
3079
3080 2016-09-26 Richard Biener <rguenther@suse.de>
3081
3082 PR debug/77692
3083 * cgraphunit.c (analyze_functions): Before early removing
3084 global vars calls the late_global_decl debug handler mark
3085 the variable as readonly.
3086
3087 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3088
3089 PR target/51244
3090 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
3091 (sh_rtx_costs): Handle SET of movt and movrt patterns.
3092 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
3093 declare new overloads.
3094 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
3095 operand.
3096
3097 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3098
3099 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
3100 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
3101
3102 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
3103
3104 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
3105 * configure: Regenerate.
3106
3107 2016-09-24 Marek Polacek <polacek@redhat.com>
3108
3109 PR c/77490
3110 * doc/invoke.texi: Document -Wbool-operation.
3111
3112 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3113
3114 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
3115 * config/rs6000/rs6000.c (expand_block_compare): New function used by
3116 cmpmemsi pattern to do builtin expansion of memcmp ().
3117 (compute_current_alignment): Add helper function for
3118 expand_block_compare used to compute alignment as the compare proceeds.
3119 (select_block_compare_mode): Used by expand_block_compare to select
3120 the mode used for reading the next chunk of bytes in the compare.
3121 (do_load_for_compare): Used by expand_block_compare to emit the load
3122 insns for the compare.
3123 (rs6000_emit_dot_insn): Moved this function to avoid a forward
3124 reference from expand_block_compare ().
3125 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
3126 prototype for this function.
3127 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
3128 target option for controlling how much code inline expansion of
3129 memcmp() will be allowed to generate.
3130
3131 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3132
3133 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
3134 hook_bool_mode_false, hook_bool_mode_true,
3135 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
3136 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3137 hook_bool_const_rtx_insn_const_rtx_insn_true,
3138 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
3139 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
3140 hook_bool_const_tree_hwi_hwi_const_tree_false,
3141 hook_bool_const_tree_hwi_hwi_const_tree_true,
3142 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
3143 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3144 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
3145 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
3146 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
3147 hook_bool_const_tree_true, hook_bool_tree_tree_false,
3148 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
3149 hook_bool_rtx_insn_true, hook_bool_rtx_false,
3150 hook_bool_uintp_uintp_false,
3151 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
3152 hook_rtx_tree_int_null, hook_uint_mode_0,
3153 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
3154 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
3155 hook_constcharptr_const_rtx_insn_null,
3156 hook_constcharptr_const_tree_const_tree_null,
3157 hook_constcharptr_int_const_tree_null,
3158 hook_constcharptr_int_const_tree_const_tree_null,
3159 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
3160 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
3161 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
3162
3163 * vec.h (vNULL): Extend comment to say = vNULL initialization
3164 isn't needed for static vars.
3165
3166 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
3167 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
3168 = vNULL initialization of file scope vec.
3169 * passes.c (pass_tab, enabled_pass_uid_range_tab,
3170 disabled_pass_uid_range_tab): Likewise.
3171 * haifa-sched.c (sched_luids, h_i_d): Likewise.
3172 * tree-chkp-opt.c (check_infos): Likewise.
3173 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
3174
3175 * vec.h (vnull::operator vec): Add constexpr keyword for
3176 C++11 and later.
3177
3178 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
3179
3180 PR tree-optimization/77654
3181 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
3182 to duplicate_ssa_name_ptr_info.
3183
3184 2016-09-23 David Malcolm <dmalcolm@redhat.com>
3185
3186 PR preprocessor/77672
3187 * input.c (selftest::test_lexer_string_locations_simple): Update
3188 test to expect location information of the terminator character
3189 at the location of the final closing quote.
3190 (selftest::test_lexer_string_locations_hex): Likewise.
3191 (selftest::test_lexer_string_locations_oct): Likewise.
3192 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
3193 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
3194 (selftest::test_lexer_string_locations_ucn4): Likewise.
3195 (selftest::test_lexer_string_locations_ucn8): Likewise.
3196 (selftest::test_lexer_string_locations_u8): Likewise.
3197 (selftest::test_lexer_string_locations_utf8_source): Likewise.
3198 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
3199 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
3200 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
3201 (selftest::test_lexer_string_locations_macro): Likewise.
3202 (selftest::test_lexer_string_locations_long_line): Likewise.
3203
3204 2016-09-23 Richard Biener <rguenther@suse.de>
3205
3206 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
3207 virtual definition to virtual use if the call devirtualizes
3208 to a const or pure function.
3209 (visit_use): Also visit calls we can devirtualize to a
3210 const or pure function.
3211
3212 2016-09-23 Richard Biener <rguenther@suse.de>
3213
3214 PR tree-optimization/77697
3215 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
3216 signal error if we have sth ternary or unhandled.
3217
3218 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3219
3220 * config/arm/arm_neon.h (vabd_f16): New.
3221 (vabdq_f16): New.
3222 (vabs_f16): New.
3223 (vabsq_f16): New.
3224 (vadd_f16): New.
3225 (vaddq_f16): New.
3226 (vcage_f16): New.
3227 (vcageq_f16): New.
3228 (vcagt_f16): New.
3229 (vcagtq_f16): New.
3230 (vcale_f16): New.
3231 (vcaleq_f16): New.
3232 (vcalt_f16): New.
3233 (vcaltq_f16): New.
3234 (vceq_f16): New.
3235 (vceqq_f16): New.
3236 (vceqz_f16): New.
3237 (vceqzq_f16): New.
3238 (vcge_f16): New.
3239 (vcgeq_f16): New.
3240 (vcgez_f16): New.
3241 (vcgezq_f16): New.
3242 (vcgt_f16): New.
3243 (vcgtq_f16): New.
3244 (vcgtz_f16): New.
3245 (vcgtzq_f16): New.
3246 (vcle_f16): New.
3247 (vcleq_f16): New.
3248 (vclez_f16): New.
3249 (vclezq_f16): New.
3250 (vclt_f16): New.
3251 (vcltq_f16): New.
3252 (vcltz_f16): New.
3253 (vcltzq_f16): New.
3254 (vcvt_f16_s16): New.
3255 (vcvt_f16_u16): New.
3256 (vcvt_s16_f16): New.
3257 (vcvt_u16_f16): New.
3258 (vcvtq_f16_s16): New.
3259 (vcvtq_f16_u16): New.
3260 (vcvtq_s16_f16): New.
3261 (vcvtq_u16_f16): New.
3262 (vcvta_s16_f16): New.
3263 (vcvta_u16_f16): New.
3264 (vcvtaq_s16_f16): New.
3265 (vcvtaq_u16_f16): New.
3266 (vcvtm_s16_f16): New.
3267 (vcvtm_u16_f16): New.
3268 (vcvtmq_s16_f16): New.
3269 (vcvtmq_u16_f16): New.
3270 (vcvtn_s16_f16): New.
3271 (vcvtn_u16_f16): New.
3272 (vcvtnq_s16_f16): New.
3273 (vcvtnq_u16_f16): New.
3274 (vcvtp_s16_f16): New.
3275 (vcvtp_u16_f16): New.
3276 (vcvtpq_s16_f16): New.
3277 (vcvtpq_u16_f16): New.
3278 (vcvt_n_f16_s16): New.
3279 (vcvt_n_f16_u16): New.
3280 (vcvtq_n_f16_s16): New.
3281 (vcvtq_n_f16_u16): New.
3282 (vcvt_n_s16_f16): New.
3283 (vcvt_n_u16_f16): New.
3284 (vcvtq_n_s16_f16): New.
3285 (vcvtq_n_u16_f16): New.
3286 (vfma_f16): New.
3287 (vfmaq_f16): New.
3288 (vfms_f16): New.
3289 (vfmsq_f16): New.
3290 (vmax_f16): New.
3291 (vmaxq_f16): New.
3292 (vmaxnm_f16): New.
3293 (vmaxnmq_f16): New.
3294 (vmin_f16): New.
3295 (vminq_f16): New.
3296 (vminnm_f16): New.
3297 (vminnmq_f16): New.
3298 (vmul_f16): New.
3299 (vmul_lane_f16): New.
3300 (vmul_n_f16): New.
3301 (vmulq_f16): New.
3302 (vmulq_lane_f16): New.
3303 (vmulq_n_f16): New.
3304 (vneg_f16): New.
3305 (vnegq_f16): New.
3306 (vpadd_f16): New.
3307 (vpmax_f16): New.
3308 (vpmin_f16): New.
3309 (vrecpe_f16): New.
3310 (vrecpeq_f16): New.
3311 (vrnd_f16): New.
3312 (vrndq_f16): New.
3313 (vrnda_f16): New.
3314 (vrndaq_f16): New.
3315 (vrndm_f16): New.
3316 (vrndmq_f16): New.
3317 (vrndn_f16): New.
3318 (vrndnq_f16): New.
3319 (vrndp_f16): New.
3320 (vrndpq_f16): New.
3321 (vrndx_f16): New.
3322 (vrndxq_f16): New.
3323 (vrsqrte_f16): New.
3324 (vrsqrteq_f16): New.
3325 (vrecps_f16): New.
3326 (vrecpsq_f16): New.
3327 (vrsqrts_f16): New.
3328 (vrsqrtsq_f16): New.
3329 (vsub_f16): New.
3330 (vsubq_f16): New.
3331
3332 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3333
3334 * config.gcc (extra_headers): Add arm_fp16.h
3335 * config/arm/arm_fp16.h: New.
3336 * config/arm/arm_neon.h: Include "arm_fp16.h".
3337
3338 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3339
3340 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
3341 variants).
3342 (vmulf): New (v8hf, v4hf variants).
3343 (vfma): New (v8hf, v4hf variants).
3344 (vfms): New (v8hf, v4hf variants).
3345 (vsub): New (v8hf, v4hf variants).
3346 (vcage): New (v8hf, v4hf variants).
3347 (vcagt): New (v8hf, v4hf variants).
3348 (vcale): New (v8hf, v4hf variants).
3349 (vcalt): New (v8hf, v4hf variants).
3350 (vceq): New (v8hf, v4hf variants).
3351 (vcgt): New (v8hf, v4hf variants).
3352 (vcge): New (v8hf, v4hf variants).
3353 (vcle): New (v8hf, v4hf variants).
3354 (vclt): New (v8hf, v4hf variants).
3355 (vceqz): New (v8hf, v4hf variants).
3356 (vcgez): New (v8hf, v4hf variants).
3357 (vcgtz): New (v8hf, v4hf variants).
3358 (vcltz): New (v8hf, v4hf variants).
3359 (vclez): New (v8hf, v4hf variants).
3360 (vabd): New (v8hf, v4hf variants).
3361 (vmaxf): New (v8hf, v4hf variants).
3362 (vmaxnm): New (v8hf, v4hf variants).
3363 (vminf): New (v8hf, v4hf variants).
3364 (vminnm): New (v8hf, v4hf variants).
3365 (vpmaxf): New (v4hf variant).
3366 (vpminf): New (v4hf variant).
3367 (vpadd): New (v4hf variant).
3368 (vrecps): New (v8hf, v4hf variants).
3369 (vrsqrts): New (v8hf, v4hf variants).
3370 (vabs): New (v8hf, v4hf variants).
3371 (vneg): New (v8hf, v4hf variants).
3372 (vrecpe): New (v8hf, v4hf variants).
3373 (vrnd): New (v8hf, v4hf variants).
3374 (vrnda): New (v8hf, v4hf variants).
3375 (vrndm): New (v8hf, v4hf variants).
3376 (vrndn): New (v8hf, v4hf variants).
3377 (vrndp): New (v8hf, v4hf variants).
3378 (vrndx): New (v8hf, v4hf variants).
3379 (vrsqrte): New (v8hf, v4hf variants).
3380 (vmul_lane): Add v4hf and v8hf variants.
3381 (vmul_n): Add v4hf and v8hf variants.
3382 (vext): New (v8hf, v4hf variants).
3383 (vcvts): New (v8hi, v4hi variants).
3384 (vcvts): New (v8hf, v4hf variants).
3385 (vcvtu): New (v8hi, v4hi variants).
3386 (vcvtu): New (v8hf, v4hf variants).
3387 (vcvts_n): New (v8hf, v4hf variants).
3388 (vcvtu_n): New (v8hi, v4hi variants).
3389 (vcvts_n): New (v8hi, v4hi variants).
3390 (vcvtu_n): New (v8hf, v4hf variants).
3391 (vbsl): New (v8hf, v4hf variants).
3392 (vcvtas): New (v8hf, v4hf variants).
3393 (vcvtau): New (v8hf, v4hf variants).
3394 (vcvtms): New (v8hf, v4hf variants).
3395 (vcvtmu): New (v8hf, v4hf variants).
3396 (vcvtns): New (v8hf, v4hf variants).
3397 (vcvtnu): New (v8hf, v4hf variants).
3398 (vcvtps): New (v8hf, v4hf variants).
3399 (vcvtpu): New (v8hf, v4hf variants).
3400
3401 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3402
3403 * config/arm/arm-builtins.c (hf_UP): New.
3404 (si_UP): New.
3405 (vfp_builtin_data): New. Update comment.
3406 (enum arm_builtins): Include "arm_vfp_builtins.def".
3407 (ARM_BUILTIN_VFP_PATTERN_START): New.
3408 (arm_init_vfp_builtins): New.
3409 (arm_init_builtins): Add arm_init_vfp_builtins.
3410 (arm_expand_vfp_builtin): New.
3411 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
3412 long line.
3413 * config/arm/arm_vfp_builtins.def: New file.
3414 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
3415 (arm-builtins.o): Likewise.
3416
3417 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3418
3419 PR ipa/77677
3420 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
3421 from constant while creating value range.
3422
3423 2016-09-23 Renlin Li <renlin.li@arm.com>
3424
3425 * ira.c (ira): Move ira_use_lra_p initialization code to ...
3426 (ira_init_once): Here.
3427
3428 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
3429 Jakub Jelinek <jakub@redhat.com>
3430
3431 * hooks.h (hook_uint_uintp_false): Rename to...
3432 (hook_bool_uint_uintp_false): ... this.
3433 * hooks.c (hook_uint_uintp_false): Rename to...
3434 (hook_bool_uint_uintp_false): ... this.
3435 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
3436 instead of hook_uint_uintp_false.
3437
3438 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3439
3440 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
3441 (arm_init_builtins): Move body of a loop to the standalone
3442 function arm_init_neon_builtin.
3443 (arm_expand_neon_builtin_1): New. Update comment. Function body
3444 moved from arm_neon_builtin with some white-space fixes.
3445 (arm_expand_neon_builtin): Move code into the standalone function
3446 arm_expand_neon_builtin_1.
3447
3448 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3449
3450 * config/arm/iterators.md (VCVTHI): New.
3451 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
3452 (NEON_VAGLTE): New.
3453 (VFM_LANE_AS): New.
3454 (VH_CVTTO): New.
3455 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
3456 (V_HALF): Add V4HF. Fix white-space.
3457 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
3458 (V_s_elem): Likewise.
3459 (V_sz_elem): Fix white-space.
3460 (V_elem_ch): Likewise.
3461 (VH_elem_ch): New.
3462 (scalar_mul_constraint): Add V8HF and V4HF.
3463 (Is_float_mode): Fix white-space.
3464 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
3465 (q): Add HF. Fix white-space.
3466 (float_sup): New.
3467 (float_SUP): New.
3468 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
3469 (neon_vfm_lane_as): New.
3470 * config/arm/neon.md (add<mode>3_fp16): New.
3471 (sub<mode>3_fp16): New.
3472 (mul<mode>3add<mode>_neon): New.
3473 (fma<VH:mode>4_intrinsic): New.
3474 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
3475 (fmsub<VH:mode>4_intrinsic): New.
3476 (<absneg_str><mode>2): New.
3477 (neon_v<absneg_str><mode>): New.
3478 (neon_v<fp16_rnd_str><mode>): New.
3479 (neon_vrsqrte<mode>): New.
3480 (neon_vpaddv4hf): New.
3481 (neon_vadd<mode>): New.
3482 (neon_vsub<mode>): New.
3483 (neon_vmulf<mode>): New.
3484 (neon_vfma<VH:mode>): New.
3485 (neon_vfms<VH:mode>): New.
3486 (neon_vc<cmp_op><mode>): New.
3487 (neon_vc<cmp_op><mode>_fp16insn): New
3488 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
3489 (neon_vca<cmp_op><mode>): New.
3490 (neon_vca<cmp_op><mode>_fp16insn): New.
3491 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
3492 (neon_vc<cmp_op>z<mode>): New.
3493 (neon_vabd<mode>): New.
3494 (neon_v<maxmin>f<mode>): New.
3495 (neon_vp<maxmin>fv4hf: New.
3496 (neon_<fmaxmin_op><mode>): New.
3497 (neon_vrecps<mode>): New.
3498 (neon_vrsqrts<mode>): New.
3499 (neon_vrecpe<mode>): New (VH variant).
3500 (neon_vdup_lane<mode>_internal): New.
3501 (neon_vdup_lane<mode>): New.
3502 (neon_vcvt<sup><mode>): New (VCVTHI variant).
3503 (neon_vcvt<sup><mode>): New (VH variant).
3504 (neon_vcvt<sup>_n<mode>): New (VH variant).
3505 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
3506 (neon_vcvt<vcvth_op><sup><mode>): New.
3507 (neon_vmul_lane<mode>): New.
3508 (neon_vmul_n<mode>): New.
3509 * config/arm/unspecs.md (UNSPEC_VCALE): New
3510 (UNSPEC_VCALT): New.
3511 (UNSPEC_VFMA_LANE): New.
3512 (UNSPECS_VFMS_LANE): New.
3513
3514 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3515
3516 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
3517 ("*extzv<mode><clobbercc_or_nocc>"):
3518 Correct a typo in a comment.
3519 Merged patterns.
3520 ("*insv<mode>_zEC12", "*insv<mode>_z10")
3521 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
3522 ("*insv<mode>_zEC12_appendbitsleft")
3523 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
3524 ("*insv<mode>_z10_appendbitsleft"): Ditto.
3525 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
3526 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
3527 Provide pattern with operands switched.
3528 ("*pre_z10_extv<mode>"):
3529 Use new subst patterns.
3530 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
3531 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
3532 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
3533 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
3534 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
3535 ("*<risbg_n>_sidi_ior_and_lshiftrt")
3536 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
3537 New patterns.
3538 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
3539 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3540 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
3541 on zEC12.
3542 ("SINT"): New mode_iterator with SI, HI, QI.
3543 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
3544 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
3545 duplication.
3546
3547 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3548
3549 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
3550 new interface of s390_contiguous_bitmask_p.
3551 ("contiguous_bitmask_nowrap_operand"): New predicate.
3552 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
3553 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
3554 of s390_contiguous_bitmask_p.
3555 ("NxxDw"): Rename NxxDq constraint to NxxDw.
3556 ("NxxSw"): New constraint.
3557 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
3558 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
3559 interface.
3560 (s390_contiguous_bitmask_nowrap_p): Export.
3561 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
3562 former s390_contiguous_bitmask_p.
3563 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
3564 detect contiguous bit ranges with wraparound. Change signature to
3565 return START and END position instead of POS and LENGTH.
3566 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
3567 ranges with wraparound.
3568 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
3569 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
3570 Adapt to new signature of s390_contiguous_bitmask_p.
3571
3572 2016-09-23 Bin Cheng <bin.cheng@arm.com>
3573
3574 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
3575 (create_intersect_range_checks): New.
3576 (vect_create_cond_for_alias_checks): Call above function.
3577
3578 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3579
3580 * config/arm/iterators.md (Code iterators): Fix some white-space
3581 in the comments.
3582 (GLTE): New.
3583 (ABSNEG): New
3584 (FCVT): Moved from vfp.md.
3585 (VCVT_HF_US_N): New.
3586 (VCVT_SI_US_N): New.
3587 (VCVT_HF_US): New.
3588 (VCVTH_US): New.
3589 (FP16_RND): New.
3590 (absneg_str): New.
3591 (FCVTI32typename): Moved from vfp.md.
3592 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
3593 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
3594 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
3595 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
3596 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
3597 (vcvth_op): New.
3598 (fp16_rnd_str): New.
3599 (fp16_rnd_insn): New.
3600 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
3601 (UNSPEC_VCVT_HF_U_N): New.
3602 (UNSPEC_VCVT_SI_S_N): New.
3603 (UNSPEC_VCVT_SI_U_N): New.
3604 (UNSPEC_VCVTH_S): New.
3605 (UNSPEC_VCVTH_U): New.
3606 (UNSPEC_VCVTA_S): New.
3607 (UNSPEC_VCVTA_U): New.
3608 (UNSPEC_VCVTM_S): New.
3609 (UNSPEC_VCVTM_U): New.
3610 (UNSPEC_VCVTN_S): New.
3611 (UNSPEC_VCVTN_U): New.
3612 (UNSPEC_VCVTP_S): New.
3613 (UNSPEC_VCVTP_U): New.
3614 (UNSPEC_VCVTP_S): New.
3615 (UNSPEC_VCVTP_U): New.
3616 (UNSPEC_VRND): New.
3617 (UNSPEC_VRNDA): New.
3618 (UNSPEC_VRNDI): New.
3619 (UNSPEC_VRNDM): New.
3620 (UNSPEC_VRNDN): New.
3621 (UNSPEC_VRNDP): New.
3622 (UNSPEC_VRNDX): New.
3623 * config/arm/vfp.md (<absneg_str>hf2): New.
3624 (neon_vabshf): New.
3625 (neon_v<fp16_rnd_str>hf): New.
3626 (neon_vrndihf): New.
3627 (addhf3): New.
3628 (subhf3): New.
3629 (divhf3): New.
3630 (mulhf3): New.
3631 (*mulsf3neghf_vfp): New.
3632 (*negmulhf3_vfp): New.
3633 (*mulsf3addhf_vfp): New.
3634 (*mulhf3subhf_vfp): New.
3635 (*mulhf3neghfaddhf_vfp): New.
3636 (*mulhf3neghfsubhf_vfp): New.
3637 (fmahf4): New.
3638 (neon_vfmahf): New.
3639 (fmsubhf4_fp16): New.
3640 (neon_vfmshf): New.
3641 (*fnmsubhf4): New.
3642 (*fnmaddhf4): New.
3643 (neon_vsqrthf): New.
3644 (neon_vrsqrtshf): New.
3645 (FCVT): Move to iterators.md.
3646 (FCVTI32typename): Likewise.
3647 (neon_vcvth<sup>hf): New.
3648 (neon_vcvth<sup>si): New.
3649 (neon_vcvth<sup>_nhf_unspec): New.
3650 (neon_vcvth<sup>_nhf): New.
3651 (neon_vcvth<sup>_nsi_unspec): New.
3652 (neon_vcvth<sup>_nsi): New.
3653 (neon_vcvt<vcvth_op>h<sup>si): New.
3654 (neon_<fmaxmin_op>hf): New.
3655
3656 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3657
3658 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
3659 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
3660 ("*insv<mode>_zEC12_appendbitsleft")
3661 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
3662 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
3663
3664 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3665
3666 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
3667 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
3668 construct values without normalization.
3669 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
3670 static local lhs_ops to vNULL.
3671
3672 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3673 Jiong Wang <jiong.wang@arm.com>
3674
3675 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
3676 available when FP16 instructions are available.
3677 (output_move_vfp): Add support for 16-bit data moves.
3678 (arm_validize_comparison): Fix some white-space. Support HFmode
3679 by conversion to SFmode.
3680 * config/arm/arm.md (truncdfhf2): Fix a comment.
3681 (extendhfdf2): Likewise.
3682 (cstorehf4): New.
3683 (movsicc): Fix some white-space.
3684 (movhfcc): New.
3685 (movsfcc): Fix some white-space.
3686 (*cmovhf): New.
3687 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
3688 instructions are available.
3689 (*thumb2_movhi_vfp): Likewise.
3690 (*arm_movhi_fp16): New.
3691 (*thumb2_movhi_fp16): New.
3692 (*movhf_vfp_fp16): New.
3693 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
3694 (*movhf_vfp): Likewise.
3695 (extendhfsf2): Enable when VFP FP16 instructions are available.
3696 (truncsfhf2): Enable when VFP FP16 instructions are available.
3697
3698 2016-09-23 Martin Liska <mliska@suse.cz>
3699
3700 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
3701
3702 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3703
3704 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
3705 V4HF modes.
3706 (arm_evpc_neon_vtrn): Likewise.
3707 (arm_evpc_neon_vrev): Likewise.
3708 (arm_evpc_neon_vext): Likewise.
3709 * config/arm/arm_neon.h (vbsl_f16): New.
3710 (vbslq_f16): New.
3711 (vdup_n_f16): New.
3712 (vdupq_n_f16): New.
3713 (vdup_lane_f16): New.
3714 (vdupq_lane_f16): New.
3715 (vext_f16): New.
3716 (vextq_f16): New.
3717 (vmov_n_f16): New.
3718 (vmovq_n_f16): New.
3719 (vrev64_f16): New.
3720 (vrev64q_f16): New.
3721 (vtrn_f16): New.
3722 (vtrnq_f16): New.
3723 (vuzp_f16): New.
3724 (vuzpq_f16): New.
3725 (vzip_f16): New.
3726 (vzipq_f16): New.
3727 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
3728 (vdup_lane): New (v8hf, v4hf variants).
3729 (vext): New (v8hf, v4hf variants).
3730 (vbsl): New (v8hf, v4hf variants).
3731 * config/arm/iterators.md (VDQWH): New.
3732 (VH): New.
3733 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
3734 (Scalar_mul_8_16): Fix white-space.
3735 (Is_d_reg): Add V4HF and V8HF.
3736 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
3737 (neon_vdup_lane<mode>): New.
3738 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
3739 (*neon_vtrn<mode>_insn): Likewise.
3740 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3741 (*neon_vzip<mode>_insn): Likewise
3742 (neon_vuzp<mode>_internal): Likewise.
3743 (*neon_vuzp<mode>_insn): Likewise
3744 * config/arm/vec-common.md (vec_perm_const<mode>): New.
3745
3746 2016-09-23 Jiong Wang <jiong.wang@arm.com>
3747 Matthew Wahab <matthew.wahab@arm.com>
3748
3749 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3750 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3751 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3752 available. Also fix some white-space.
3753 * config/arm/vfp.md (*arm_movhi_vfp): New.
3754 (*thumb2_movhi_vfp): New.
3755
3756 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3757
3758 * config/arm/arm-c.c (arm_cpu_builtins): Define
3759 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3760 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3761
3762 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3763
3764 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3765 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
3766 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3767 arm_v8_2a_fp16_neon_hw.
3768 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3769 arm_v8_2a_neon.
3770
3771 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3772
3773 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3774 arm_fp16_alternative_ok and arm_fp16_none_ok.
3775
3776 2016-09-23 Martin Liska <mliska@suse.cz>
3777
3778 * ipa-icf.c (sem_variable::merge): Replace adress with address.
3779
3780 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3781
3782 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3783 ("armv8.2-a"): New.
3784 ("armv8.2-a+fp16"): New.
3785 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3786 (FL2_FP16INST): New.
3787 (FL2_FOR_ARCH8_2A): New.
3788 * config/arm/arm-tables.opt: Regenerate.
3789 * config/arm/arm.c (arm_arch8_2): New.
3790 (arm_fp16_inst): New.
3791 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
3792 for incompatible fp16-format settings.
3793 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3794 (TARGET_NEON_FP16INST): New.
3795 (arm_arch8_2): Declare.
3796 (arm_fp16_inst): Declare.
3797 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3798 march=armv8.2-a and march=armv8.2-a+fp16.
3799 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3800 and armv8.2-a+fp16.
3801 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3802 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3803
3804 2016-09-23 Martin Liska <mliska@suse.cz>
3805
3806 * doc/extend.texi: Remove fused-madd from i386 target options.
3807
3808 2016-09-23 Martin Liska <mliska@suse.cz>
3809
3810 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3811 Handle movbe.
3812
3813 2016-09-23 Martin Liska <mliska@suse.cz>
3814
3815 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3816 Handle crc32.
3817
3818 2016-09-23 Martin Liska <mliska@suse.cz>
3819
3820 PR target/71652
3821 * config/i386/i386.c (ix86_option_override_internal): Change
3822 signature and return false when there's an error related to
3823 arch string.
3824 (release_options_strings): New function.
3825 (ix86_valid_target_attribute_tree): Call the function.
3826
3827 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3828
3829 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3830 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3831 (gen_hsa_ctor_assignment): Likewise.
3832 * print-tree.c (print_node): Likewise.
3833 * tree-dump.c (dequeue_and_dump): Likewise.
3834 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3835 * expr.c (store_constructor): Likewise.
3836 * fold-const.c (operand_equal_p): Likewise.
3837 * tree-pretty-print.c (dump_generic_node): Likewise.
3838 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3839 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3840
3841 2016-09-23 Richard Biener <rguenther@suse.de>
3842
3843 * hooks.h (hook_uint_uintp_false): Declare.
3844
3845 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3846
3847 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3848 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3849
3850 2016-09-22 Martin Sebor <msebor@redhat.com>
3851
3852 PR target/77676
3853 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3854 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3855 (target_int_min): Correct computation.
3856 (format_integer): Use long long as the argument for the ll length
3857 modifier.
3858 (format_floating): Use target_int_max().
3859 (get_string_length): Same.
3860 (format_string): Avoid setting the bounded flag for strings
3861 of unknown length.
3862 (try_substitute_return_value): Avoid setting range info when
3863 the result isn't bounded.
3864 * varasm.c (assemble_name): Increase buffer size.
3865
3866 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
3867 Terry Guo <terry.guo@arm.com>
3868
3869 * target.def (elf_flags_numeric): New target hook.
3870 * targhooks.h (default_asm_elf_flags_numeric): New.
3871 * varasm.c (default_asm_elf_flags_numeric): New.
3872 (default_elf_asm_named_section): Use new target hook.
3873 * config/arm/arm.opt (mpure-code): New.
3874 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3875 * config/arm/arm.c (arm_asm_init_sections): Add section
3876 attribute to default text section if -mpure-code.
3877 (arm_option_check_internal): Diagnose use of option with
3878 non supported targets and/or options.
3879 (arm_asm_elf_flags_numeric): New.
3880 (arm_function_section): New.
3881 (arm_elf_section_type_flags): New.
3882 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3883 for -mpure-code.
3884 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3885 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3886
3887 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
3888
3889 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3890
3891 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3892
3893 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3894 * rtl.h: Adjust prototype.
3895
3896 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3897
3898 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3899 (prev_active_insn): Likewise.
3900 (active_insn_p): Likewise.
3901 * rtl.h: Adjust prototypes.
3902 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3903 * config/arc/arc.md: Likewise.
3904 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3905 (branch_needs_nop_p): Likewise.
3906 (use_skip_p): Likewise.
3907 * config/sh/sh.c (gen_block_redirect): Likewise.
3908 (split_branches): Likewise.
3909 * reorg.c (optimize_skip): Likewise.
3910 (fill_simple_delay_slots): Likewise.
3911 (fill_slots_from_thread): Likewise.
3912 (relax_delay_slots): Likewise.
3913 * resource.c (mark_target_live_regs): Likewise.
3914
3915 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3916
3917 * config/cris/cris.c (cris_asm_output_case_end): Change argument
3918 type to rtx_insn *.
3919 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3920 (prev_nonnote_nondebug_insn): Likewise.
3921 * config/cris/cris-protos.h: Adjust prototype.
3922 * rtl.h: Likewise.
3923 * jump.c (rtx_renumbered_equal_p): Adjust.
3924
3925 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3926
3927 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3928 * rtl.h: Adjust prototype.
3929 * config/sh/sh.md: Adjust.
3930 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3931
3932 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3933
3934 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3935 (prev_nondebug_insn): Likewise.
3936 * loop-doloop.c (doloop_condition_get): Likewise.
3937 * rtl.h: Adjust prototype.
3938 * cfgloop.h: Likewise.
3939
3940 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3941
3942 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3943 (prev_nonnote_insn): Likewise.
3944 * jump.c (reversed_comparison_code_parts): Likewise.
3945 (reversed_comparison): Likewise.
3946 * rtl.h: Adjust prototypes.
3947 * config/arc/arc.md: Adjust.
3948 * cse.c (find_comparison_args): Likewise.
3949 * reorg.c (redundant_insn): Change return type to rtx_insn *.
3950 (fix_reg_dead_note): Change argument type to rtx_insn *.
3951 (delete_prior_computation): Likewise.
3952 (delete_computation): Likewise.
3953 (fill_slots_from_thread): Adjust.
3954 (relax_delay_slots): Likewise.
3955 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3956 (simplify_relational_operation_1): Likewise.
3957 (simplify_ternary_operation): Likewise.
3958
3959 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3960
3961 * config/arc/arc-protos.h (arc_label_align): Change type of
3962 variables from rtx to rtx_insn *.
3963 * config/arc/arc.c (arc_label_align): Likewise.
3964 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
3965 * config/bfin/bfin.c (workaround_speculation): Likewise.
3966 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
3967 (find_last_same_clock): Likewise.
3968 (reorg_split_calls): Likewise.
3969 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
3970 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
3971 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
3972 (same_cmp_following_p): Likewise.
3973 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
3974 (same_cmp_following_p): Likwise.
3975 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
3976 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
3977 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
3978 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
3979 (rl78_alloc_physical_registers_cmp): Likewise.
3980 (rl78_alloc_physical_registers_umul): Likewise.
3981 (rl78_calculate_death_notes): Likewise.
3982 * config/s390/s390-protos.h (s390_label_align): Likewise.
3983 * config/s390/s390.c (s390_label_align): Likewise.
3984 * config/sh/sh.c (barrier_align): Likewise.
3985 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
3986 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
3987 (emit_cbcond_nop): Likewise.
3988
3989 2016-09-22 Martin Liska <mliska@suse.cz>
3990
3991 PR ipa/77653
3992 * ipa-icf.c (sem_variable::merge): Yield merge operation if
3993 alias address matters, not necessarily address of original.
3994
3995 2016-09-22 Richard Biener <rguenther@suse.de>
3996
3997 PR middle-end/77697
3998 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3999 fold fails.
4000
4001 2016-09-22 Richard Biener <rguenther@suse.de>
4002
4003 PR middle-end/77677
4004 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
4005 from constant folding results.
4006 (gimple_resimplify2): Likewise.
4007 (gimple_resimplify3): Likewise.
4008
4009 2016-09-22 Richard Biener <rguenther@suse.de>
4010
4011 PR middle-end/77678
4012 * expr.c (expand_expr_real_1): Guard array access against negative
4013 offset.
4014
4015 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4016
4017 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
4018 of MPFR_RNDN.
4019 (format_floating): Likewise.
4020
4021 2016-09-22 Jakub Jelinek <jakub@redhat.com>
4022
4023 PR fortran/77665
4024 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
4025 for all IFN_GOMP_SIMD_* internal fns, not just for
4026 IFN_GOMP_SIMD_ORDERED_*.
4027
4028 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4029
4030 PR target/77670
4031 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
4032 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
4033 instructions when you want to invert the test.
4034 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
4035 correct order for XXSEL.
4036 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
4037 for using XSCMP{EQ,GT,GE}DP.
4038
4039 2016-09-21 David Malcolm <dmalcolm@redhat.com>
4040
4041 * genconstants.c (main): Introduce noop_reader and convert call
4042 to read_md_files to a method call.
4043 * genenums.c (main): Likewise.
4044 * genmddeps.c (main): Likewise.
4045 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
4046 rtx_reader_ptr->get_top_level_filename ().
4047 (write_tm_preds_h): Likewise.
4048 (write_insn_preds_c): Likewise.
4049 * gensupport.c (class gen_reader): New subclass of rtx_reader.
4050 (rtx_handle_directive): Convert to...
4051 (gen_reader::handle_unknown_directive): ...this.
4052 (init_rtx_reader_args_cb): Convert return type from bool to
4053 rtx_reader *. Create a gen_reader instance, using it for the
4054 call to read_md_files. Return it if no errors occur.
4055 (init_rtx_reader_args): Convert return type from bool to
4056 rtx_reader *.
4057 * gensupport.h (init_rtx_reader_args_cb): Likewise.
4058 (init_rtx_reader_args_cb): Likewise.
4059 * read-md.c (struct file_name_list): Move to class rtx_reader.
4060 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
4061 (read_md_filename): Delete in favor of
4062 rtx_reader::m_read_md_filename.
4063 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
4064 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
4065 (base_dir): Delete in favor of rtx_reader::m_base_dir.
4066 (first_dir_md_include): Delete in favor of
4067 rtx_reader::m_first_dir_md_include.
4068 (last_dir_md_include_ptr): Delete in favor of
4069 rtx_reader::m_last_dir_md_include_ptr.
4070 (max_include_len): Delete.
4071 (rtx_reader_ptr): New.
4072 (fatal_with_file_and_line): Use get_filename and get_lineno
4073 accessors of rtx_reader_ptr.
4074 (require_char_ws): Likewise.
4075 (rtx_reader::read_char): New method, based on ::read_char.
4076 (rtx_reader::unread_char): New method, based on ::unread_char.
4077 (read_escape): Use get_filename and get_lineno accessors of
4078 rtx_reader_ptr.
4079 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
4080 (read_string): Use get_filename and get_lineno accessors of
4081 rtx_reader_ptr.
4082 (rtx_reader::rtx_reader): New ctor.
4083 (rtx_reader::~rtx_reader): New dtor.
4084 (handle_include): Convert from a function to...
4085 (rtx_reader::handle_include): ...this method, converting
4086 handle_directive from a callback to a virtual function.
4087 (handle_file): Likewise, converting to...
4088 (rtx_reader::handle_file): ...this method.
4089 (handle_toplevel_file): Likewise, converting to...
4090 (rtx_reader::handle_toplevel_file): ...this method.
4091 (rtx_reader::get_current_location): New method.
4092 (parse_include): Convert from a function to...
4093 (rtx_reader::add_include_path): ...this method, dropping redundant
4094 update to unused max_include_len.
4095 (read_md_files): Convert from a function to...
4096 (rtx_reader::read_md_files): ...this method, converting
4097 handle_directive from a callback to a virtual function.
4098 (noop_reader::handle_unknown_directive): New method.
4099 * read-md.h (directive_handler_t): Delete this typedef.
4100 (in_fname): Delete.
4101 (read_md_file): Delete.
4102 (read_md_lineno): Delete.
4103 (read_md_filename): Delete.
4104 (class rtx_reader): New class.
4105 (rtx_reader_ptr): New decl.
4106 (class noop_reader): New subclass of rtx_reader.
4107 (read_char): Reimplement in terms of rtx_reader::read_char.
4108 (unread_char): Reimplement in terms of rtx_reader::unread_char.
4109 (read_md_files): Delete.
4110 * read-rtl.c (read_rtx_code): Update for deletion of globals
4111 read_md_filename and read_md_lineno.
4112
4113 2016-09-21 Jason Merrill <jason@redhat.com>
4114
4115 * input.h (from_macro_definition_at): New.
4116
4117 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4118
4119 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
4120
4121 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4122
4123 PR tree-optimization/77550
4124 * tree-vect-stmts.c (create_array_ref): Change parameters.
4125 (get_group_alias_ptr_type): New function.
4126 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
4127
4128 2016-09-21 Marek Polacek <polacek@redhat.com>
4129
4130 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4131 Add falls through comment.
4132
4133 2016-09-21 Richard Biener <rguenther@suse.de>
4134
4135 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
4136 (replace_child): Likewise.
4137 (remove_child_TAG): Adjust.
4138 (move_marked_base_types): Likewise.
4139 (prune_unused_types_prune): Clear die_sib of removed children.
4140
4141 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
4142
4143 PR target/77326
4144 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
4145 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
4146
4147 2016-09-21 Richard Biener <rguenther@suse.de>
4148
4149 PR tree-optimization/77648
4150 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
4151 with complex RHS.
4152 (make_transitive_closure_constraints): Adjust comment.
4153 (make_any_offset_constraints): New function.
4154 (handle_rhs_call): Make sure to first expand a pointer to all
4155 subfields before transitively closing it.
4156 (handle_const_call): Likewise. Properly expand returned
4157 pointers as well.
4158 (handle_pure_call): Likewise.
4159
4160 2016-09-21 Richard Biener <rguenther@suse.de>
4161 Jakub Jelinek <jakub@redhat.com>
4162
4163 PR tree-optimization/77621
4164 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
4165 group at non-vectorizable stmts.
4166
4167 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4168
4169 PR tree-optimization/72835
4170 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
4171 (make_new_ssa_for_all_defs): Likewise.
4172 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
4173
4174 2016-09-20 Martin Sebor <msebor@redhat.com>
4175
4176 PR middle-end/49905
4177 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
4178 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
4179 * config/linux.c (gnu_libc_printf_pointer_format): New function.
4180 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
4181 * config/sol2.c (solaris_printf_pointer_format): New function.
4182 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
4183 options.
4184 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
4185 * doc/tm.texi: Regenerate.
4186 * gimple-fold.h (get_range_strlen): New function.
4187 (get_maxval_strlen): Declare existing function.
4188 * gimple-fold.c (get_range_strlen): Add arguments and compute both
4189 maximum and minimum.
4190 (get_range_strlen): Define overload.
4191 (get_maxval_strlen): Adjust.
4192 * gimple-ssa-sprintf.c: New file and pass.
4193 * passes.def (pass_sprintf_length): Add new pass.
4194 * targhooks.h (default_printf_pointer_format): Declare new function.
4195 (gnu_libc_printf_pointer_format): Same.
4196 (solaris_libc_printf_pointer_format): Same.
4197 * targhooks.c (default_printf_pointer_format): Define new function.
4198 * tree-pass.h (make_pass_sprintf_length): Declare new function.
4199 * print-tree.c: Increase buffer size.
4200
4201 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4202
4203 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
4204
4205 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4206
4207 * common.opt: New option -fipa-vrp.
4208 * ipa-cp.c (ipa_get_vr_lat): New.
4209 (ipcp_vr_lattice::print): Likewise.
4210 (print_all_lattices): Call ipcp_vr_lattice::print.
4211 (ipcp_vr_lattice::meet_with): New.
4212 (ipcp_vr_lattice::meet_with_1): Likewise.
4213 (ipcp_vr_lattice::top_p): Likewise.
4214 (ipcp_vr_lattice::bottom_p): Likewsie.
4215 (ipcp_vr_lattice::set_to_bottom): Likewise.
4216 (set_all_contains_variable): Call VR set_to_bottom.
4217 (initialize_node_lattices): Init VR lattices.
4218 (propagate_vr_accross_jump_function): New.
4219 (propagate_constants_accross_call): Call
4220 propagate_vr_accross_jump_function.
4221 (ipcp_store_vr_results): New.
4222 (ipcp_driver): Handle VR.
4223 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
4224 (ipa_set_jf_unknown): Likewise.
4225 (ipa_compute_jump_functions_for_edge): Likewise.
4226 (ipa_node_params_t::duplicate): Likewise.
4227 (ipa_write_jump_function): Likewise.
4228 (ipa_read_jump_function): Likewise.
4229 (write_ipcp_transformation_info): Likewise.
4230 (read_ipcp_transformation_info): Likewise.
4231 (ipcp_update_vr): New.
4232 (ipcp_transform_function): Handle VR.
4233 * ipa-prop.h (struct ipa_vr): New.
4234 * cgraph.c: Include tree-vrp.h.
4235 * cgraphunit.c: Likewise.
4236 * ipa-utils.c: Likewise.
4237 * ipa.c: Likewise.
4238 * opts.c: Likewise.
4239 * toplev.c: Likewise.
4240 * ipa-devirt.c: Likewise.
4241 * ipa-inline-transform.c: Likewise.
4242 * ipa-inline.c: Likewise.
4243 * ipa-profile.c: Likewise.
4244
4245 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4246
4247 * doc/invoke.texi: Document -fdump-tree-evrp.
4248 * passes.def: Define new pass_early_vrp.
4249 * timevar.def: Define new TV_TREE_EARLY_VRP.
4250 * tree-pass.h (make_pass_early_vrp): New.
4251 * tree-ssa-propagate.c: Make replace_uses_in non static.
4252 * tree-ssa-propagate.h: Export replace_uses_in.
4253 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
4254 (extract_range_from_assert): Factor out
4255 extract_range_for_var_from_comparison_expr.
4256 (vrp_initialize_lattice): New.
4257 (vrp_initialize): Factor out vrp_initialize_lattice.
4258 (vrp_valueize): Fix it to reject complex value ranges.
4259 (vrp_free_lattice): New.
4260 (evrp_dom_walker::before_dom_children): Likewise.
4261 (evrp_dom_walker::after_dom_children): Likewise.
4262 (evrp_dom_walker::push_value_range): Likewise.
4263 (evrp_dom_walker::pop_value_range): Likewise.
4264 (execute_early_vrp): Likewise.
4265 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
4266 (make_pass_early_vrp): New.
4267
4268 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4269
4270 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
4271 instead of exact_log2.
4272
4273 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4274
4275 PR target/77621
4276 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
4277 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
4278 (ix86_add_stmt_cost): Penalize DFmode vector operations
4279 for !TARGET_VECTORIZE_DOUBLE.
4280
4281 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
4282
4283 * doc/invoke.texi (Warning Options): Simplify language.
4284 (Optimize Options): Complete sentence.
4285
4286 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
4287
4288 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
4289 early_finish hook.
4290
4291 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4292
4293 PR target/71395
4294 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
4295 inits on power8 and above, use the VMRGEW instruction instead of a
4296 permute.
4297
4298 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
4299 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
4300 initialization.
4301
4302 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4303
4304 * config/aarch64/arm_neon.h
4305 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
4306 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
4307 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
4308
4309 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4310
4311 * config/var/vax.h (ELIMINABLE_REGS): Define.
4312 (INITIAL_ELIMINATION_OFFSET): Define.
4313
4314 2016-09-20 Jakub Jelinek <jakub@redhat.com>
4315
4316 PR middle-end/77624
4317 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
4318 cast to void * if the cast is from some other pointer type.
4319
4320 2016-09-20 Richard Biener <rguenther@suse.de>
4321
4322 PR tree-optimization/77646
4323 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
4324 a VDEF.
4325
4326 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4327
4328 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
4329 attributes to all inlined functions and make them extern.
4330
4331 2016-09-20 Richard Biener <rguenther@suse.de>
4332
4333 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
4334 hook.
4335 * debug.c (do_nothing_debug_hooks): Adjust.
4336 * dbxout.c (dbx_debug_hooks): Likewise.
4337 * sdbout.c (sdb_debug_hooks): Likewise.
4338 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
4339 (dwarf2out_finish): Move producer, filename and
4340 path annotation ...
4341 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
4342 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
4343
4344 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4345
4346 PR c++/77434
4347 * doc/invoke.texi: Document -Wint-in-bool-context.
4348
4349 PR middle-end/77421
4350 * dwarf2out.c (output_loc_operands): Fix an assertion.
4351
4352 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4353
4354 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
4355 (CR_DECIMAL_DIG): New macro.
4356
4357 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4358
4359 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
4360 element.
4361
4362 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
4363
4364 PR rtl-optimization/77416
4365 * lra-remat.c (operand_to_remat): Process hard coded insn
4366 registers.
4367
4368 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4369
4370 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
4371 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
4372
4373 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4374
4375 * target.def (lra_p): Wordsmithing.
4376 * doc/tm.texi: Regenerate.
4377
4378 2016-09-19 Jakub Jelinek <jakub@redhat.com>
4379 Jan Hubicka <jh@suse.cz>
4380
4381 PR target/77587
4382 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
4383 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
4384 Call ultimate_alias_target just once, not up to 4 times.
4385
4386 2016-09-19 Richard Biener <rguenther@suse.de>
4387
4388 * dwarf2out.c (early_dwarf_finished): New global.
4389 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
4390 is false.
4391 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
4392 if called from LTO exit early.
4393 (dwarf2out_late_global_decl): When being during the early
4394 debug phase do not add locations but only const value attributes.
4395 Adjust the way we generate early DIEs for LTO.
4396
4397 2016-09-19 Richard Biener <rguenther@suse.de>
4398
4399 PR middle-end/77605
4400 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
4401 proper niter to bound the loops.
4402
4403 2016-09-19 Richard Biener <rguenther@suse.de>
4404
4405 PR tree-optimization/77514
4406 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
4407 search for folded stmt.
4408
4409 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
4410
4411 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
4412 * tree-pass.h (make_pass_early_thread_jumps): Declare.
4413 * tree-ssa-threadbackward.c (fsm_find_thread_path,
4414 fsm_find_thread_path, profitable_jump_thread_path,
4415 fsm_find_control_statement_thread_paths,
4416 find_jump_threads_backwards): Add speed_p parameter.
4417 (pass_data_early_thread_jumps): New pass.
4418 (make_pass_early_thread_jumps): New function.
4419
4420 2016-09-17 Andreas Schwab <schwab@suse.de>
4421
4422 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
4423 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4424
4425 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
4426
4427 * recog.c (rest_of_handle_split_after_reload): Delete.
4428 (pass_split_after_reload::gate): New method.
4429 (pass_split_after_reload::execute): Call split_all_insns directly.
4430
4431 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
4432
4433 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
4434 parameters for functions taking long long arguments.
4435
4436 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4437
4438 PR target/77613
4439 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
4440 splat with truncate.
4441
4442 2016-09-16 Jason Merrill <jason@redhat.com>
4443
4444 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
4445 New.
4446 * hwint.c (exact_log2): Use pow2p_hwi.
4447 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
4448 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
4449 * builtins.c (get_object_alignment_2, get_object_alignment)
4450 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
4451 least_bit_hwi.
4452 * calls.c (compute_argument_addresses, store_one_arg): Use
4453 least_bit_hwi.
4454 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
4455 * combine.c (force_to_mode): Use least_bit_hwi.
4456 (contains_muldiv, find_split_point, combine_simplify_rtx)
4457 (simplify_if_then_else, simplify_set, force_to_mode)
4458 (if_then_else_cond, simplify_and_const_int_1)
4459 (simplify_compare_const): Use pow2p_hwi.
4460 * cse.c (fold_rtx): Use pow2p_hwi.
4461 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
4462 Use least_bit_hwi.
4463 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
4464 (init_expmed_one_conv): Use pow2p_hwi.
4465 * expr.c (is_aligning_offset): Use pow2p_hwi.
4466 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
4467 (fold_binary_loc): Use pow2p_hwi.
4468 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
4469 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
4470 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
4471 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
4472 Use least_bit_hwi.
4473 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
4474 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
4475 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
4476 * omp-low.c (oacc_loop_fixed_partitions)
4477 (oacc_loop_auto_partitions): Use least_bit_hwi.
4478 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
4479 * stor-layout.c (place_field): Use least_bit_hwi.
4480 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
4481 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
4482 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
4483 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
4484 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
4485 * tree-vect-data-refs.c (vect_analyze_group_access_1)
4486 (vect_grouped_store_supported, vect_grouped_load_supported)
4487 (vect_permute_load_chain, vect_shift_permute_load_chain)
4488 (vect_transform_grouped_load): Use pow2p_hwi.
4489 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
4490 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
4491 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
4492 least_bit_hwi.
4493 * tsan.c (instrument_expr): Use least_bit_hwi.
4494 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
4495
4496 2016-09-16 Andreas Schwab <schwab@suse.de>
4497
4498 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
4499 OFFSET, not offset.
4500 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4501
4502 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4503
4504 PR target/77526
4505 * combine.c (rest_of_handle_combine): If any edges have been purged,
4506 free dominators if available.
4507
4508 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4509 Eric Botcazou <ebotcazou@adacore.com>
4510
4511 PR middle-end/77594
4512 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
4513 through into expand_addsub_overflow after expand_neg_overflow.
4514
4515 2016-09-15 David Malcolm <dmalcolm@redhat.com>
4516
4517 * diagnostic-show-locus.c
4518 (selftest::test_fixit_insert_containing_newline): New function.
4519 (selftest::test_fixit_replace_containing_newline): New function.
4520 (selftest::diagnostic_show_locus_c_tests): Call the above.
4521
4522 2016-09-15 Bin Cheng <bin.cheng@arm.com>
4523
4524 PR tree-optimization/77503
4525 * tree-vect-loop.c (vectorizable_reduction): Record reduction
4526 code for CONST_COND_REDUCTION at analysis stage and use it at
4527 transform stage.
4528 * tree-vectorizer.h (struct _stmt_vec_info): New field.
4529 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
4530 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
4531 field.
4532
4533 2016-09-15 Richard Biener <rguenther@suse.de>
4534
4535 PR middle-end/77544
4536 * fold-const.c (split_tree): Do not split constant ~X.
4537
4538 2016-09-15 Jakub Jelinek <jakub@redhat.com>
4539
4540 PR rtl-optimization/77425
4541 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
4542 is NULL.
4543
4544 PR middle-end/77475
4545 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
4546 use %qs instead of %s where desirable, use argument instead of arg in
4547 the diagnostic wording, add list of supported strategies and
4548 spellcheck hint.
4549 (ix86_option_override_internal): Emit target("m...") instead of
4550 option("m...") in the diagnostic. Use %qs instead of %s in invalid
4551 -march/-mtune option diagnostic. Add list of supported arches/tunings
4552 and spellcheck hint. Remove prefix, suffix and sw variables, use
4553 main_args_p ? "..." : "..." in diagnostics to make translation
4554 possible.
4555
4556 2016-09-15 Richard Biener <rguenther@suse.de>
4557
4558 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
4559 extra offset argument.
4560 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
4561 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
4562 to reflect new offset parameter.
4563 * doc/tm.texi: Regenerate.
4564 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4565 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
4566 offset argument.
4567 (darwin_asm_output_dwarf_offset): Likewise.
4568 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
4569 argument.
4570 (darwin_asm_output_dwarf_offset): Pass offset argument through.
4571 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4572 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4573
4574 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
4575
4576 PR fortran/72743
4577 * ipa-icf.c (set_alias_uids): New function.
4578 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
4579 all the merged variable's referring aliases.
4580
4581 2016-09-15 Richard Biener <rguenther@suse.de>
4582
4583 PR tree-optimization/77514
4584 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
4585 only forced_stmts sequence.
4586
4587 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
4588
4589 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
4590 * cfgexpand.c (update_alias_info_with_stack_vars): Use
4591 FOR_EACH_SSA_NAME to iterate over SSA variables.
4592 (pass_expand::execute): Likewise.
4593 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
4594 * tree-cfg.c (dump_function_to_file): Likewise.
4595 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
4596 (update_ssa): Likewise.
4597 * tree-ssa-alias.c (dump_alias_info): Likewise.
4598 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4599 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
4600 (create_outofssa_var_map): Likewise.
4601 (coalesce_ssa_name): Likewise.
4602 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
4603 * tree-ssa-pre.c (compute_avail): Likewise.
4604 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4605 (scc_vn_restore_ssa_info): Likewise.
4606 (free_scc_vn): Likwise.
4607 (run_scc_vn): Likewise.
4608 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4609 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
4610 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4611 * tree-ssa.c (verify_ssa): Likewise.
4612
4613 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
4614
4615 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
4616 and mips64r2 as default 32-bit and 64-bit architectures.
4617 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
4618 as default 32-bit and 64-bit architectures.
4619
4620 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
4621
4622 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
4623 of succ edge.
4624
4625 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4626
4627 * target.def (lra_p): Change commentary (for the manual) for the
4628 new default.
4629 * doc/tm.texi: Regenerate.
4630
4631 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4632
4633 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
4634 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
4635 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
4636 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
4637
4638 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4639
4640 * targhooks.c (default_lra_p): Return true instead of false.
4641
4642 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4643
4644 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
4645 hook_bool_void_false.
4646 * config/avr/avr.c: Ditto.
4647 * config/bfin/bfin.c: Ditto.
4648 * config/c6x/c6x.c: Ditto.
4649 * config/cr16/cr16.c: Ditto.
4650 * config/cris/cris.c: Ditto.
4651 * config/epiphany/epiphany.c: Ditto.
4652 * config/fr30/fr30.c: Ditto.
4653 * config/frv/frv.c: Ditto.
4654 * config/h8300/h8300.c: Ditto.
4655 * config/ia64/ia64.c: Ditto.
4656 * config/iq2000/iq2000.c: Ditto.
4657 * config/lm32/lm32.c: Ditto.
4658 * config/m32c/m32c.c: Ditto.
4659 * config/m32r/m32r.c: Ditto.
4660 * config/m68k/m68k.c: Ditto.
4661 * config/mcore/mcore.c: Ditto.
4662 * config/microblaze/microblaze.c: Ditto.
4663 * config/mmix/mmix.c: Ditto.
4664 * config/mn10300/mn10300.c: Ditto.
4665 * config/moxie/moxie.c: Ditto.
4666 * config/msp430/msp430.c: Ditto.
4667 * config/nios2/nios2.c: Ditto.
4668 * config/nvptx/nvptx.c: Ditto.
4669 * config/pa/pa.c: Ditto.
4670 * config/pdp11/pdp11.c: Ditto.
4671 * config/rl78/rl78.c: Ditto.
4672 * config/sparc/sparc.c: Ditto.
4673 * config/spu/spu.c: Ditto.
4674 * config/stormy16/stormy16.c: Ditto.
4675 * config/tilegx/tilegx.c: Ditto.
4676 * config/tilepro/tilepro.c: Ditto.
4677 * config/v850/v850.c: Ditto.
4678 * config/vax/vax.c: Ditto.
4679 * config/visium/visium.c: Ditto.
4680 * config/xtensa/xtensa.c: Ditto.
4681
4682 2016-09-14 Jakub Jelinek <jakub@redhat.com>
4683
4684 PR sanitizer/68260
4685 * tsan.c: Include target.h.
4686 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
4687 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
4688 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
4689 BUILT_IN_ATOMIC_TEST_AND_SET entries.
4690 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
4691
4692 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4693 Martin Liska <mliska@suse.cz>
4694
4695 PR middle-end/77574
4696 * predict.c (force_edge_cold): Add braces to a condition.
4697
4698 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4699
4700 PR rtl-optimization/77289
4701 * lra-constraints.c (get_final_hard_regno): Removed.
4702 (get_hard_regno): Add new parameter final_p.
4703 (get_reg_class): Directly call lra_get_elimination_hard_regno.
4704 (operands_match_p): Adjust call to get_hard_regno.
4705 (uses_hard_regs_p): Likewise.
4706 (process_alt_operands): Likewise.
4707
4708 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
4709
4710 PR target/70713
4711 * config/msp430/msp430.c (msp430_start_function): Emit an error
4712 if a function is both weak and specifies an interrupt number.
4713
4714 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4715
4716 PR tree-optimization/77454
4717 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
4718 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
4719 Formatting fix.
4720
4721 2016-09-13 Tamar Christina <tamar.christina@arm.com>
4722
4723 * config/aarch64/aarch64-builtins.c
4724 (aarch64_init_simd_builtins): Fix builtin type signature printing.
4725
4726 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
4727
4728 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
4729 SFmode and SCmode arguments by reference.
4730
4731 2016-09-13 David Malcolm <dmalcolm@redhat.com>
4732
4733 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
4734 Rename to...
4735 (selftest::test_one_liner_fixit_insert_before): ...this, and update
4736 for renaming of add_fixit_insert to add_fixit_insert_before.
4737 (selftest::test_one_liner_fixit_insert_after): New function.
4738 (selftest::test_one_liner_fixit_validation_adhoc_locations):
4739 Update for renaming of add_fixit_insert to add_fixit_insert_before.
4740 (selftest::test_one_liner_many_fixits): Likewise.
4741 (selftest::test_diagnostic_show_locus_one_liner): Update for
4742 renaming, call new test function.
4743 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4744 renaming of add_fixit_insert to add_fixit_insert_before.
4745 (selftest::test_fixit_consolidation): Likewise.
4746 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4747 Likewise.
4748 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4749 (selftest::test_applying_fixits_insert_before): ...this.
4750 (selftest::test_applying_fixits_insert): Update for renaming of
4751 add_fixit_insert to add_fixit_insert_before.
4752 (selftest::test_applying_fixits_insert_after): New function.
4753 (selftest::test_applying_fixits_insert_after_at_line_end): New
4754 function.
4755 (selftest::test_applying_fixits_insert_after_failure): New function.
4756 (selftest::test_applying_fixits_multiple): Update for renaming of
4757 add_fixit_insert to add_fixit_insert_before.
4758 (selftest::change_line): Likewise.
4759 (selftest::test_applying_fixits_unreadable_file): Likewise.
4760 (selftest::test_applying_fixits_line_out_of_range): Likewise.
4761 (selftest::test_applying_fixits_column_validation): Likewise.
4762 (selftest::test_applying_fixits_column_validation): Likewise.
4763 (selftest::edit_context_c_tests): Update for renamed test function;
4764 call new test functions.
4765
4766 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
4767
4768 PR tree-optimization/77536
4769 PR rtl-optimization/68212
4770 * config/rs6000/rs6000.md (div->recip splitter): Remove
4771 optimize_insn_for_speed_p condition.
4772
4773 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
4774
4775 * optabs.c (prepare_cmp_insn): Update documentation comment.
4776
4777 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4778 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4779
4780 PR middle-end/77475
4781 * opts.h (candidates_list_and_hint): Declare.
4782 * opts-common.c (candidates_list_and_hint): New function.
4783 (cmdline_handle_error): Use it.
4784
4785 2016-09-12 David Malcolm <dmalcolm@redhat.com>
4786
4787 * edit-context.c (edited_line::get_len): New accessor.
4788 (edited_file::print_diff): Split out hunk-printing into...
4789 (edited_file::print_diff_hunk): New method.
4790 (edited_file::print_diff_line): New method.
4791
4792 2016-09-12 Andrew Pinski <apinski@cavium.com>
4793
4794 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4795 New tuning option.
4796 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4797 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4798 (aarch64_operands_ok_for_ldpstp): Return false if
4799 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4800 was SImode and the alignment is less than 8 byte.
4801 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4802
4803 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
4804
4805 PR target/77570
4806 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4807
4808 2016-09-12 Marek Polacek <polacek@redhat.com>
4809
4810 * doc/extend.texi: Use lowercase "boolean".
4811 * doc/invoke.texi: Likewise.
4812 * doc/md.texi: Likewise.
4813 * target.def: Likewise.
4814 * doc/tm.texi: Regenerated.
4815
4816 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4817
4818 PR middle-end/77426
4819 * expmed.c (synth_mult): Delete duplicate mode check.
4820
4821 2016-09-10 Tom de Vries <tom@codesourcery.com>
4822
4823 PR C/71602
4824 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4825 va_list type only.
4826 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4827 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4828
4829 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
4830
4831 PR rtl-optimization/77289
4832 * lra-constraints.c (get_final_hard_regno): Add support for non hard
4833 register numbers. Remove support for subregs.
4834 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
4835 (get_reg_class): Delete removed get_final_hard_regno() argument.
4836 (uses_hard_regs_p): Call get_final_hard_regno().
4837
4838 2016-09-09 Martin Sebor <msebor@redhat.com>
4839
4840 PR c/77520
4841 PR c/77521
4842 * pretty-print.c (pp_quoted_string): New function.
4843 (pp_format): Call it for %c and %s directives.
4844
4845 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4846
4847 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4848 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4849 INITIAL_ELIMINATION_OFFSET) : Update documentation.
4850 * target.def (frame_pointer_required, can_eliminate): Likewise.
4851 * doc/tm.texi: Regenerated.
4852 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4853 ELIMINABLE_REGS.
4854 * df-scan.c (df_hard_reg_init): Likewise.
4855 * ira.c (ira_setup_eliminable_regset): Likewise.
4856 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4857 init_elim_table): Likewise.
4858 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4859 set_initial_elim_offsets, update_eliminables,
4860 init_elim_table): Likewise.
4861 * rtlanal.c (get_initial_register_offset): Likewise.
4862 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4863 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4864 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4865 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4866 * config/fr30/fr30.h: Fix comment.
4867 * config/frv/frv.c: Likewise.
4868 * config/frv/frv.h: Likewise.
4869 * config/ft32/ft32.h: Likewise.
4870 * config/visium/visium.h: Likewise.
4871 * config/pa/pa64-linux.h: Likewise.
4872 * config/v850/v850.h: Likewise.
4873 * config/cris/cris.c: Likewise.
4874 * config/ia64/ia64.h: Likewise.
4875 * config/moxie/moxie.h: Likewise.
4876 * config/m32r/m32r.h: Likewise.
4877
4878 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4879
4880 PR target/77267
4881 * config.in: Regenerate.
4882 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4883 New macro.
4884 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4885 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4886 static-libmpxwrappers case.
4887 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4888 MPX_LD_AS_NEEDED_GUARD_POP.
4889 * configure: Regenerate.
4890 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4891 defined if linker support "--push-state"/"--pop-state".
4892
4893 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4894
4895 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4896
4897 2016-09-09 Joseph Myers <joseph@codesourcery.com>
4898
4899 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4900 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4901 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4902 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4903 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4904 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4905 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4906 Document.
4907 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4908 width macros from TS 18661-1.
4909 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4910
4911 2016-09-08 Jakub Jelinek <jakub@redhat.com>
4912
4913 PR fortran/77516
4914 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4915 OMP_CLAUSE_SAFELEN_EXPR.
4916
4917 2016-09-07 David Malcolm <dmalcolm@redhat.com>
4918
4919 * Makefile.in (OBJS): Add substring-locations.o.
4920 * langhooks-def.h (class substring_loc): New forward decl.
4921 (lhd_get_substring_location): New decl.
4922 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4923 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4924 * langhooks.c (lhd_get_substring_location): New function.
4925 * langhooks.h (class substring_loc): New forward decl.
4926 (struct lang_hooks): Add field get_substring_location.
4927 * substring-locations.c: New file, taking definition of
4928 format_warning_va and format_warning_at_substring from
4929 c-family/c-format.c, making them non-static.
4930 * substring-locations.h (class substring_loc): Move class here
4931 from c-family/c-common.h. Add and rewrite comments.
4932 (format_warning_va): New decl.
4933 (format_warning_at_substring): New decl.
4934 (get_source_location_for_substring): Add comment.
4935
4936 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
4937
4938 * config/i386/i386.c: Add 'U' suffix to processor feature bits
4939 to avoid -Wnarrowing warning.
4940 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4941 * opts.c: Likewise for SANITIZER_OPT bitmasks.
4942
4943 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
4944
4945 * config/aarch64/aarch64.c (aarch64_legitimize_address):
4946 Avoid use of base_offset if offset already in range.
4947
4948 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
4949
4950 * config/sh/sh-protos.h (struct sh_atomic_model,
4951 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4952 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4953 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4954 * config/sh/sh.h (struct sh_atomic_model,
4955 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4956 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4957 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4958 Guard with __cplusplus.
4959
4960 2016-09-06 Jakub Jelinek <jakub@redhat.com>
4961
4962 PR target/69255
4963 * config/i386/i386.c (ix86_expand_builtin): For builtin with
4964 unsupported or unknown ISA, use expand_call.
4965
4966 2016-09-06 Martin Liska <mliska@suse.cz>
4967
4968 PR gcov-profile/77378
4969 PR gcov-profile/77466
4970 * tree-profile.c (tree_profiling): Detect whether target can use
4971 -fprofile-update=atomic.
4972
4973 2016-09-06 Richard Biener <rguenther@suse.de>
4974
4975 PR tree-optimization/77479
4976 * tree-vrp.c (update_value_range): Extend overflow handling to
4977 VARYING.
4978
4979 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4980
4981 PR target/77476
4982 * config/i386/i386.md (isa): Add x64_avx512bw.
4983 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
4984 (kmov_isa): New mode attr.
4985 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
4986 (*zero_extend<mode>si2): Likewise.
4987 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
4988
4989 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
4990
4991 * doc/invoke.texi (SPU Options): nops -> NOPs.
4992 (x86 Options): Ditto.
4993
4994 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4995
4996 PR middle-end/77475
4997 * toplev.c (process_options): Temporarily set input_location
4998 to UNKNOWN_LOCATION around targetm.target_option.override () call.
4999
5000 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
5001
5002 PR rtl-optimization/77452
5003 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
5004 inner-mode reference to a CONST_VECTOR constant in the constant pool.
5005
5006 2016-09-05 Marek Polacek <polacek@redhat.com>
5007
5008 PR c/77423
5009 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
5010
5011 2016-09-05 Jakub Jelinek <jakub@redhat.com>
5012
5013 PR other/77421
5014 * gensupport.c (alter_output_for_subst_insn): Remove redundant
5015 *insn_out == '*' test. Don't copy unnecessary to yet another
5016 memory buffer, and don't leak it.
5017
5018 PR rtl-optimization/77425
5019 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
5020
5021 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
5022
5023 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
5024
5025 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5026
5027 * common.opt (fdiagnostics-generate-patch): New option.
5028 * diagnostic.c: Include "edit-context.h".
5029 (diagnostic_initialize): Initialize context->edit_context_ptr.
5030 (diagnostic_finish): Delete context->edit_context_ptr.
5031 (diagnostic_report_diagnostic): Add fix-it hints from the
5032 diagnostic to context->edit_context_ptr, if any.
5033 * diagnostic.h (class edit_context): Add forward decl.
5034 (struct diagnostic_context): Add field "edit_context_ptr".
5035 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5036 -fdiagnostics-generate-patch.
5037 (-fdiagnostics-generate-patch): New item.
5038 * toplev.c: Include "edit-context.h".
5039 (process_options): Set global_dc->edit_context_ptr to a new
5040 edit_context if the options need one.
5041 (toplev::main): Handle -fdiagnostics-generate-patch by using
5042 global_dc->edit_context_ptr.
5043
5044 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5045
5046 PR c/65467
5047 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
5048 map and firstprivate clauses on target construct for _Atomic
5049 qualified decls.
5050 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
5051 on target construct for _Atomic qualified decls.
5052 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
5053 decls.
5054 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
5055 _Atomic qualified arguments not mentioned in uniform clause.
5056
5057 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5058
5059 * Makefile.in (OBJS-libcommon): Add edit-context.o.
5060 * diagnostic-color.c (color_dict): Add "diff-filename",
5061 "diff-hunk", "diff-delete", and "diff-insert".
5062 (parse_gcc_colors): Update default value of GCC_COLORS in comment
5063 to reflect above changes.
5064 * doc/invoke.texi (-fdiagnostics-color): Update description of
5065 default GCC_COLORS, and of the supported capabilities.
5066 * edit-context.c: New file.
5067 * edit-context.h: New file.
5068 * input.c (struct fcache): Add field "missing_trailing_newline".
5069 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
5070 true.
5071 (add_file_to_cache_tab): Likewise.
5072 (fcache::fcache): Likewise.
5073 (get_next_line): Update c->missing_trailing_newline.
5074 (location_missing_trailing_newline): New function.
5075 * input.h (location_missing_trailing_newline): New decl.
5076 * selftest-run-tests.c (selftest::run_tests): Call
5077 edit_context_c_tests.
5078 * selftest.h (edit_context_c_tests): New decl.
5079
5080 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5081 Richard Biener <rguenth@suse.de>
5082
5083 PR tree-optimization/77444
5084 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
5085 as steptype, remove redundant initialization.
5086
5087 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5088
5089 PR sanitizer/77396
5090 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
5091 (sanopt_optimize_walker): Optimize away
5092 __asan_before_dynamic_init (...) followed by
5093 __asan_after_dynamic_init () without intervening memory loads/stores.
5094 * ipa-pure-const.c (special_builtin_state): Handle
5095 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
5096 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
5097
5098 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5099
5100 * cfg.c (free_original_copy_tables): Replace second assignment of
5101 bb_copy = NULL by bb_original = NULL.
5102
5103 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5104
5105 PR other/77421
5106 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
5107 assignment added in r216794.
5108
5109 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5110
5111 * Makefile.in (OBJS): Add typed-splay-tree.o.
5112 * selftest-run-tests.c (selftest::run_tests): Call
5113 typed_splay_tree_c_tests.
5114 * selftest.h (typed_splay_tree_c_tests): New decl.
5115 * typed-splay-tree.c: New file.
5116 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
5117 (typed_splay_tree::max): New method.
5118 (typed_splay_tree::min): New method.
5119 (typed_splay_tree::foreach): New method.
5120 (typed_splay_tree::closure): New struct.
5121 (typed_splay_tree::inner_foreach_fn): New function.
5122
5123 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5124
5125 * ipa-cp.c (ipcp_store_bits_results): Change option name from
5126 -fipa-cp-bit to -fipa-bit-cp.
5127
5128 2016-09-01 Martin Sebor <msebor@redhat.com>
5129
5130 PR tree-optimization/71831
5131 * tree-object-size.h: Return bool instead of the size and add
5132 argument for the size.
5133 * tree-object-size.c (compute_object_offset): Update signature.
5134 (addr_object_size): Same.
5135 (compute_builtin_object_size): Return bool instead of the size
5136 and add argument for the size. Handle POINTER_PLUS_EXPR when
5137 optimization is disabled.
5138 (expr_object_size): Adjust.
5139 (plus_stmt_object_size): Adjust.
5140 (pass_object_sizes::execute): Adjust.
5141 * builtins.c (fold_builtin_object_size): Adjust.
5142 * doc/extend.texi (Object Size Checking): Update.
5143 * ubsan.c (instrument_object_size): Adjust.
5144
5145 2016-09-01 Martin Sebor <msebor@redhat.com>
5146
5147 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
5148 it fits the output of the formatted function regardless of its
5149 arguments.
5150 * gcc/genmodes.c (parser::parse_expr): Same.
5151 * gimplify.c (gimplify_asm_expr): Same.
5152 * passes.c (pass_manager::register_one_dump_file): Same.
5153 * print-tree.c (print_node): Same.
5154
5155 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5156
5157 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
5158
5159 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5160
5161 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
5162
5163 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5164
5165 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
5166 * config/rs6000/vector.md: Ditto.
5167 * config/rs6000/vsx.md: Ditto.
5168
5169 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5170
5171 * ipa-inline-analysis.c (param_change_prob): Get to the base object
5172 first in all cases.
5173
5174 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5175
5176 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
5177 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
5178 *return_and_restore_gpregs_<mode>_r11,
5179 *return_and_restore_gpregs_<mode>_r12,
5180 *return_and_restore_gpregs_<mode>_r1,
5181 *return_and_restore_fpregs_<mode>_r11,
5182 *return_and_restore_fpregs_<mode>_r12,
5183 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
5184 directly instead of via the "l" constraint. Renumber operands.
5185 Fix whitespace.
5186
5187 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5188
5189 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
5190 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
5191 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
5192 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
5193 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
5194 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
5195 *call_value_nonlocal_darwin64, reload_macho_picbase,
5196 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
5197 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
5198 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
5199 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
5200 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
5201 *save_fpregs_<mode>_r1): Ditto.
5202 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
5203 *return_and_restore_gpregs_spe): Ditto.
5204
5205 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5206
5207 * config/rs6000/rs6000.md
5208 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
5209 the use of the link register.
5210 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
5211
5212 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5213 Michael Meissner <meissner@linux.vnet.ibm.com>
5214
5215 PR target/72827
5216 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
5217 reg+reg addressing for TImode.
5218 (rs6000_legitimate_address_p): Only allow register indirect
5219 addressing for TImode, even without TARGET_QUAD_MEMORY.
5220
5221 2016-09-01 Richard Biener <rguenther@suse.de>
5222
5223 PR middle-end/77436
5224 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
5225 check whether the result fits the desired result type.
5226
5227 2016-09-01 Nathan Sidwell <nathan@acm.org>
5228
5229 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
5230
5231 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
5232
5233 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
5234 New function.
5235 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
5236
5237 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5238
5239 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
5240 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
5241 for comparisons of integer ZERO_EXTEND against zero.
5242
5243 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5244
5245 * config/i386/i386.c (ix86_option_override_internal): Also disable the
5246 STV pass if -mstackrealign is enabled.
5247
5248 2016-08-31 Ilya Verbin <iverbin@gmail.com>
5249
5250 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
5251 AVX512IFMA.
5252
5253 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5254
5255 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
5256 (layout_range::intersects_line_p): New method.
5257 (test_range_contains_point_for_single_point): Rename to...
5258 (test_layout_range_for_single_point): ...this, and add testing
5259 for layout_range::intersects_line_p.
5260 (test_range_contains_point_for_single_line): Rename to...
5261 (test_layout_range_for_single_line): ...this, and add testing
5262 for layout_range::intersects_line_p.
5263 (test_range_contains_point_for_multiple_lines): Rename to...
5264 (test_layout_range_for_multiple_lines): ...this, and add testing
5265 for layout_range::intersects_line_p.
5266 (layout::layout): Populate m_fixit_hints.
5267 (layout::get_expanded_location): Handle the case of a line-span
5268 for a fix-it hint.
5269 (layout::validate_fixit_hint_p): New method.
5270 (get_line_span_for_fixit_hint): New function.
5271 (layout::calculate_line_spans): Add spans for fixit-hints.
5272 (layout::should_print_annotation_line_p): New method.
5273 (layout::print_any_fixits): Drop param "richloc", instead using
5274 validated fixits in m_fixit_hints. Add "const" to hint pointers.
5275 (diagnostic_show_locus): Avoid printing blank annotation lines.
5276 (selftest::test_diagnostic_context::test_diagnostic_context):
5277 Initialize show_column and start_span.
5278 (selftest::test_diagnostic_context::start_span_cb): New static
5279 function.
5280 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
5281 (selftest::diagnostic_show_locus_c_tests): Update for function
5282 renamings. Call test_diagnostic_show_locus_fixit_lines.
5283
5284 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5285
5286 PR tree-optimization/73714
5287 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
5288
5289 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5290
5291 * selftest.c: Move "namespace selftest {" to top of file,
5292 removing explicit "selftest::" qualifiers throughout.
5293
5294 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5295
5296 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
5297 New types.
5298 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
5299 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
5300 Replace builtin with vector extension.
5301 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
5302 New types.
5303 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
5304 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
5305 Replace builtin with vector extension.
5306 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
5307 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
5308 Replace builtin with vector extension.
5309 * config/i386/xmmintrin.h (__m128_u): New type.
5310 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
5311 (_mm_load_ps, _mm_store_ps): Simplify.
5312
5313 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
5314
5315 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
5316
5317 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5318
5319 * diagnostic-show-locus.c (colorizer::begin_state): Support more
5320 than 3 ranges per diagnostic by alternating between color 1 and
5321 color 2.
5322 (layout::layout): Replace use of rich_location::MAX_RANGES
5323 with richloc->get_num_locations ().
5324 (layout::calculate_line_spans): Replace use of
5325 rich_location::MAX_RANGES with m_layout_ranges.length ().
5326 (layout::print_annotation_line): Handle arbitrary numbers of
5327 ranges in caret-printing by defaulting to '^'.
5328 (selftest::test_one_liner_many_fixits): New function.
5329 (test_diagnostic_show_locus_one_liner): Call it.
5330 * diagnostic.c (diagnostic_initialize): Update for renaming
5331 of rich_location::MAX_RANGES to
5332 rich_location::STATICALLY_ALLOCATED_RANGES.
5333 * diagnostic.h (struct diagnostic_context): Likewise.
5334
5335 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5336
5337 * selftest.c (selftest::named_temp_file::named_temp_file): New
5338 ctor.
5339 (selftest::temp_source_file::~temp_source_file): Move to...
5340 (selftest::named_temp_file::~named_temp_file): ...here.
5341 (selftest::test_named_temp_file): New function.
5342 (selftest::selftest_c_tests): Call test_named_temp_file.
5343 * selftest.h (class named_temp_file): New class.
5344 (class temp_source_file): Convert to a subclass of named_temp_file.
5345
5346 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
5347
5348 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
5349 USEs of LR_REGNO in returns and sibcalls.
5350 (rs6000_output_mi_thunk): Similar.
5351 (rs6000_sibcall_aix): Similar.
5352 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
5353 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
5354 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
5355 Remove the USE of LR_REGNO from the patterns as well. Delete an
5356 obsolete comment.
5357 (return_internal_<mode>): Delete.
5358
5359 2016-08-30 Tamar Christina <tamar.christina@arm.com>
5360
5361 * gcc/config/aarch64/aarch64-simd.md
5362 (aarch64_ld2<mode>_dreg_le): New.
5363 (aarch64_ld2<mode>_dreg_be): New.
5364 (aarch64_ld2<mode>_dreg): Removed.
5365 (aarch64_ld3<mode>_dreg_le): New.
5366 (aarch64_ld3<mode>_dreg_be): New.
5367 (aarch64_ld3<mode>_dreg): Removed.
5368 (aarch64_ld4<mode>_dreg_le): New.
5369 (aarch64_ld4<mode>_dreg_be): New.
5370 (aarch64_ld4<mode>_dreg): Removed.
5371 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
5372
5373 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5374
5375 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
5376 redundant location param.
5377 (test_one_liner_fixit_remove): Likewise.
5378 (test_one_liner_fixit_replace): Likewise.
5379 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
5380 * gcc-rich-location.c
5381 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
5382 get_range_from_loc. Drop overload taking a const char *.
5383 * gcc-rich-location.h
5384 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
5385 a const char *.
5386
5387 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5388
5389 * config/linux.c (linux_libc_has_function): Return true on musl.
5390
5391 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5392
5393 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
5394
5395 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
5396
5397 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
5398 used for abnormal egdes.
5399
5400 2016-08-30 Jakub Jelinek <jakub@redhat.com>
5401
5402 PR tree-optimization/72866
5403 * tree-vect-patterns.c (search_type_for_mask): Turn into
5404 a small wrapper, move all code to ...
5405 (search_type_for_mask_1): ... this new function. Add caching
5406 and adjust recursive calls.
5407
5408 PR debug/77363
5409 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
5410 instead of lookup_type_die (type_main_variant (type)) even for array
5411 types.
5412
5413 PR middle-end/77377
5414 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
5415 constant pool reference return x instead of c.
5416
5417 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
5418
5419 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
5420 include MQ.
5421
5422 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5423
5424 * input.c
5425 (selftest::test_make_location_nonpure_range_endpoints): Fix
5426 header comment.
5427
5428 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5429
5430 * diagnostic-show-locus.c
5431 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
5432 function.
5433 (selftest::test_diagnostic_show_locus_one_liner): Call it.
5434 * input.c (get_pure_location): Move to libcpp/line-map.c.
5435 * input.h (get_pure_location): Convert decl to an inline function
5436 calling implementation in libcpp.
5437
5438 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
5439
5440 PR target/77403
5441 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
5442 template for intel asm dialect.
5443 (vec_set_hi_<mode><mask_name>): Ditto.
5444
5445 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5446
5447 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
5448 (selftest::fail_formatted): Likewise.
5449
5450 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5451
5452 * input.c (make_location): Call get_start and get_finish
5453 on the endpoints to avoid storing packed ranges or ad-hoc
5454 ranges in them.
5455 (selftest::test_make_location_nonpure_range_endpoints): New function.
5456 (selftest::input_c_tests): Call it.
5457 * input.h (get_start): New inline function.
5458
5459 2016-08-29 Tom de Vries <tom@codesourcery.com>
5460
5461 PR c/77398
5462 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
5463 with assert.
5464
5465 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
5466
5467 * Makefile.in (gcov-iov.h): Add dummy recipe.
5468
5469 2016-08-29 Nathan Sidwell <nathan@acm.org>
5470
5471 * config/nvptx/nvptx.c: #include tree-vrp.h.
5472
5473 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
5474
5475 PR target/77324
5476 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
5477 HIGH+LO construct during reload.
5478
5479 2016-08-28 Tom de Vries <tom@codesourcery.com>
5480
5481 PR lto/70955
5482 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
5483 'sysv_abi va_list' attribute.
5484 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
5485 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
5486 attributes.
5487
5488 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5489
5490 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
5491 * emit-rtl.c (unshare_all_rtl_1): Adjust.
5492 (unshare_all_rtl_again): Likewise.
5493 * function.c (assign_stack_local_1): Likewise.
5494 (assign_stack_temp_for_type): Likewise.
5495
5496 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5497
5498 * cfgbuild.c (make_edges): Adjust.
5499 * cfgrtl.c (can_delete_label_p): Likewise.
5500 * dwarf2cfi.c (create_trace_edges): Likewise.
5501 * except.c (sjlj_emit_dispatch_table): Likewise.
5502 * function.h (struct expr_status): make x_forced_labels a vector.
5503 * jump.c (rebuild_jump_labels_1): Adjust.
5504 * reload1.c (set_initial_label_offsets): Likewise.
5505 * stmt.c (force_label_rtx): Likewise.
5506 (expand_label): Likewise.
5507
5508 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5509
5510 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
5511
5512 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
5513
5514 PR tree-optimization/71077
5515 PR tree-optimization/68542
5516 * fold-const.c (fold_relational_const): Fix folding of
5517 VECTOR_CST comparisons that have a scalar boolean result type.
5518 (selftest::test_vector_folding): New static function.
5519 (selftest::fold_const_c_tests): Call it.
5520
5521 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
5522
5523 * doc/extend.texi (SPU Built-in Functions): Remove stale
5524 references to material formerly at IBM and Sony.
5525
5526 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
5527
5528 PR target/77349
5529 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
5530
5531 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5532
5533 * diagnostic-show-locus.c
5534 (selftest::test_fixit_consolidation): New function.
5535 (selftest::diagnostic_show_locus_c_tests): Call it.
5536 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
5537 constructor based on source_range.
5538
5539 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5540
5541 * diagnostic-color.c (color_dict): Add "fixit-insert" and
5542 "fixit-delete".
5543 (parse_gcc_colors): Update description of default GCC_COLORS.
5544 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
5545 (colorizer::set_fixit_insert): New method.
5546 (colorizer::set_fixit_delete): New method.
5547 (colorizer::get_color_by_name): New method.
5548 (colorizer::STATE_FIXIT_INSERT): New constant.
5549 (colorizer::STATE_FIXIT_DELETE): New constant.
5550 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
5551 fields in favor of new field "m_stop_color". Add fields
5552 "m_fixit_insert" and "m_fixit_delete".
5553 (colorizer::colorizer): Update for above changes. Replace
5554 colorize_start calls with calls to get_color_by_name.
5555 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
5556 STATE_FIXIT_DELETE. Update for field renamings.
5557 (colorizer::finish_state): Simplify by using m_stop_color,
5558 rather than multiple identical "*_ce" fields.
5559 (colorizer::get_color_by_name): New method.
5560 (layout::print_any_fixits): Print insertions and replacements
5561 using the "fixit-insert" color, and deletions using the
5562 "fixit-delete" color.
5563 * doc/invoke.texi (-fdiagnostics-color): Update description of
5564 default GCC_COLORS, and of the supported capabilities.
5565
5566 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
5567
5568 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
5569 current_function_static_stack_size variable with the static
5570 stack frame size of the current function when
5571 flag_stack_usage_info is enabled.
5572
5573 2016-08-26 Nathan Sidwell <nathan@acm.org>
5574
5575 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
5576 assignment inside if condition.
5577
5578 2016-08-26 Richard Biener <rguenther@suse.de>
5579
5580 PR tree-optimization/69047
5581 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
5582 extracts similar to what FRE does.
5583 (non_rewritable_mem_ref_base): Likewise.
5584
5585 2016-08-26 Joseph Myers <joseph@codesourcery.com>
5586
5587 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
5588 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
5589 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5590 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5591 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
5592 Likewise.
5593 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5594 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5595 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5596 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
5597 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5598
5599 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5600
5601 PR target/70473
5602 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
5603 reservation duration to 15 cycles.
5604 (cortex_a8_vfp_macs): Likewise.
5605 (cortex_a8_vfp_macd): Likewise.
5606 (cortex_a8_vfp_divs): Likewise.
5607 (cortex_a8_vfp_divd): Likewise.
5608
5609 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5610
5611 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
5612 (aarch_macro_fusion_pair_p): Use above to avoid early return.
5613
5614 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5615 Martin Jambhor <mjambor@suse.cz>
5616
5617 * common.opt: New option -fipa-bit-cp.
5618 * doc/invoke.texi: Document -fipa-bit-cp.
5619 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
5620 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
5621 * tree-ssa-ccp.h: New header file.
5622 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
5623 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
5624 Replace all occurences of tree parameter by two new params: signop, int.
5625 (bit_value_unop_1): Change to bit_value_unop and export it.
5626 Replace all occurences of tree parameter by two new params: signop,
5627 int.
5628 (bit_value_binop): Change call from bit_value_binop_1 to
5629 bit_value_binop.
5630 (bit_value_assume_aligned): Likewise.
5631 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
5632 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
5633 to ccp_finalize.
5634 (ccp_finalize): Skip processing if val->mask == 0.
5635 * ipa-cp.c: Include tree-ssa-ccp.h
5636 (ipcp_bits_lattice): New class.
5637 (ipcp_param_lattice (bits_lattice): New member.
5638 (print_all_lattices): Call ipcp_bits_lattice::print.
5639 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
5640 (initialize_node_lattices): Likewise.
5641 (propagate_bits_accross_jump_function): New function.
5642 (propagate_constants_accross_call): Call
5643 propagate_bits_accross_jump_function.
5644 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
5645 (ipcp_store_bits_results): New function.
5646 (ipcp_driver): Call ipcp_store_bits_results.
5647 * ipa-prop.h (ipa_bits): New struct.
5648 (ipa_jump_func): Add new member bits of type ipa_bits.
5649 (ipa_param_descriptor): Change decl to decl_or_type.
5650 (ipa_get_param): Change decl to decl_or_type and assert on
5651 PARM_DECL.
5652 (ipa_get_type): New function.
5653 (ipcp_transformation_summary): New member bits.
5654 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
5655 (ipa_populate_param_decls): Likewise.
5656 (ipa_dump_param): Likewise.
5657 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
5658 function.
5659 (ipa_set_jf_unknown): Set ipa_bits::known to false.
5660 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
5661 propagation.
5662 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
5663 (ipa_write_jump_function): Add streaming for ipa_bits.
5664 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
5665 (write_ipcp_transformation_info): Add streaming for ipa_bits
5666 summary for ltrans.
5667 (read_ipcp_transfomration_info): Add support for reading streamed
5668 ipa_bits.
5669 (ipcp_update_bits): New function.
5670 (ipcp_transform_function): Call ipcp_update_bits.
5671
5672 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5673
5674 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
5675 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
5676
5677 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
5678
5679 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
5680
5681 2016-08-25 Richard Biener <rguenther@suse.de>
5682
5683 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
5684 Only add locations in late dwarf.
5685 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
5686 (dwarf2out_early_finish): But do it here.
5687
5688 2016-08-24 Michael Collison <michael.collison@linaro.org>
5689 Michael Collison <michael.collison@arm.com>
5690
5691 * config/arm/arm-modes.def: Add new condition code mode CC_V
5692 to represent the overflow bit.
5693 * config/arm/arm.c (maybe_get_arm_condition_code):
5694 Add support for CC_Vmode.
5695 (arm_gen_unlikely_cbranch): New function to generate common
5696 rtl conditional branches for overflow patterns.
5697 * config/arm/arm-protos.h: Add prototype for
5698 arm_gen_unlikely_cbranch.
5699 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
5700 addsi3_compareV_upper): New patterns to support signed
5701 builtin overflow add operations.
5702 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
5703 New patterns to support unsigned builtin add overflow operations.
5704 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
5705 builtin overflow subtract operations,
5706 (usubv<mode>4): New patterns to support unsigned builtin subtract
5707 overflow operations.
5708 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
5709 to support builtin overflow negate operations.
5710
5711 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5712
5713 Revert
5714 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5715
5716 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5717 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5718 needed.
5719
5720 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5721
5722 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
5723 MULTILIB_OPTIONS should be used. Small wording fixes.
5724 * genmultilib: Memorize set of all option combinations in
5725 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
5726 found in MULTILIB_OPTIONS by checking if option set is listed in
5727 combination_space. Output new and existing error message to stderr.
5728
5729 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5730
5731 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
5732 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
5733 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
5734 (MULTILIB_REUSE): Remove reuse rules for option set including
5735 -mfpu=fp-armv8 and -mfpu=vfpv4
5736
5737 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
5738
5739 * config/arm/t-rtems: Add vfp multilib.
5740
5741 2016-08-23 Ian Lance Taylor <iant@golang.org>
5742
5743 * config/s390/s390.c (s390_asm_file_start): Call
5744 default_file_start.
5745
5746 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5747
5748 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5749 initialization of all 0's to the 0 constant, instead of directly
5750 generating XOR. Add support for V4SImode vector initialization on
5751 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5752 initialization. Change variables used in V4SFmode vector
5753 intialization. For V4SFmode vector splat on ISA 3.0, make sure
5754 any memory addresses are in index form. Add support for using
5755 VSPLTH/VSPLTB to initialize vector short and vector char vectors
5756 with all of the same element.
5757 (regno_or_subregno): New helper function to return a register
5758 number for either REG or SUBREG.
5759 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5760 Use regno_or_subregno where possible.
5761 (rs6000_split_v4si_init_di_reg): New helper function to build up a
5762 DImode value from two SImode values in order to generate V4SImode
5763 vector initialization on 64-bit systems with direct move.
5764 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5765 initialization.
5766 (rtx_is_swappable_p): V4SImode vector initialization insn is not
5767 swappable.
5768 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5769 declaration.
5770 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5771 attributes to initialize V8HImode and V16QImode vectors with the
5772 same element.
5773 (VSX_SPLAT_COUNT): Likewise.
5774 (VSX_SPLAT_SUFFIX): Likewise.
5775 (UNSPEC_VSX_VEC_INIT): New unspec.
5776 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5777 Allow SFmode values to come from Altivec registers.
5778 (vsx_init_v4si): New insn/split for V4SImode vector initialization
5779 on 64-bit systems with direct move.
5780 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5781 vector initializations, to allow V4SImode vector initializations
5782 on 64-bit systems with direct move.
5783 (vsx_splat_v4si): Likewise.
5784 (vsx_splat_v4si_di): Likewise.
5785 (vsx_splat_v4sf): Likewise.
5786 (vsx_splat_v4sf_internal): Likewise.
5787 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5788 register classes.
5789 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5790 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5791 initializing V8HImode and V16QImode vectors with the same
5792 element.
5793 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5794 optimization if -maltivec=be.
5795
5796 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
5797
5798 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5799 attribute for alternatives 3 and 4.
5800
5801 2016-08-23 David Malcolm <dmalcolm@redhat.com>
5802
5803 * selftest.c (selftest::assert_str_contains): New function.
5804 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5805 * selftest.h (selftest::assert_str_contains): New decl.
5806 (ASSERT_STR_CONTAINS): New macro.
5807
5808 2016-08-23 Richard Biener <rguenther@suse.de>
5809
5810 PR tree-optimization/77286
5811 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5812 the CFG here.
5813 (vect_transform_loop): Split exit edges of loop and scalar
5814 loop if required and at the appropriate time.
5815
5816 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5817
5818 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5819 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5820 needed.
5821 Correct a typo in a comment.
5822
5823 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5824
5825 * config/s390/s390.md ("*andc_split"): New splitter for and with
5826 complement.
5827
5828 2016-08-23 Richard Biener <rguenther@suse.de>
5829
5830 PR tree-optimization/27336
5831 * tree-vrp.c (infer_value_range): Handle stmts that can throw
5832 by looking for a non-EH edge.
5833 (process_assert_insertions_for): Likewise.
5834
5835 2016-08-23 Richard Biener <rguenther@suse.de>
5836
5837 PR middle-end/77305
5838 * statistics.c (statistics_counter_event): Robustify against
5839 NULL current_pass.
5840
5841 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5842
5843 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5844 for targets amdfam10 and barcelona.
5845
5846 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
5847
5848 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5849 (zero_extend<mode>di2): Ditto.
5850 (*zero_extend<mode>si2): Ditto.
5851 (*zero_extendqihi2): Ditto.
5852
5853 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5854
5855 PR middle-end/77269
5856 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5857 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5858
5859 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
5860
5861 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5862 identical consecutive elements.
5863 [SSA_NAME]: Print the name's def stmt on its own line. When printing
5864 the node's def stmt, avoid printing an unwanted trailing newline by
5865 replacing the call to print_gimple_stmt() with its inlined body and
5866 adjusting it to not set pp_needs_newline and to call pp_flush()
5867 instead of pp_newline_and_flush().
5868
5869 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5870
5871 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5872 (float32_type_node, float64_type_node, float32x_type_node)
5873 (float128x_type_node): New macros.
5874 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5875 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5876 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5877 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5878 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5879 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5880 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5881 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5882 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5883 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5884 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5885 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5886 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5887 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5888 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5889 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5890 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5891 (copysign, fabs, huge_val, inf, nan, nans): Use it.
5892 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5893 and copysign.
5894 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5895 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5896 * doc/extend.texi (Other Builtins): Document these built-in
5897 functions.
5898 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5899 for nan and nans.
5900
5901 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
5902
5903 * doc/install.texi (Binaries): www.opencsw.org now uses https.
5904
5905 2016-08-22 Richard Biener <rguenther@suse.de>
5906
5907 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5908
5909 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
5910
5911 PR target/77270
5912 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5913 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5914 non-SSE2 athlons only, otherwise prefer SSE prefetches.
5915
5916 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5917
5918 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5919 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5920 (vrp_visit_switch_stmt): Likewise.
5921 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5922 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5923 (vrp_visit_stmt): Use extract_range_from_stmt.
5924 (vrp_visit_phi_node): Use extract_range_from_phi_node.
5925
5926 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5927
5928 * Makefile.in: Add tree-vrp.h to GTFILES.
5929 * gengtype.c (open_base_files): Add tree-vrp.h.
5930 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5931 * builtins.c: Likewise.
5932 * fold-const.c: Likewise.
5933 * gimple-builder.c: Likewise.
5934 * gimple-laddress.c: Likewise.
5935 * hsa-gen.c: Likewise.
5936 * internal-fn.c: Likewise.
5937 * ssa.h: Likewise.
5938 * targhooks.c: Liewise,
5939 * tree-ssa-address.c: Likewise.
5940 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5941 * tree-vrp.c (struct value_range): Move to tree-vrp.h
5942 * tree-vrp.h: New file.
5943
5944 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5945
5946 PR tree-optimization/61839
5947 * tree-vrp.c (two_valued_val_range_p): New.
5948 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5949 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5950 Also Convert VAR BINOP CST where VAR is two-valued to
5951 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5952
5953 2016-08-19 David Malcolm <dmalcolm@redhat.com>
5954
5955 * diagnostic-show-locus.c
5956 (layout::annotation_line_showed_range_p): New method.
5957 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5958 Reimplement case fixit_hint::REPLACE to cover removals, and
5959 replacements where the range of the replacement isn't one
5960 of the ranges in the rich_location.
5961 (test_one_liner_fixit_replace): Likewise.
5962 (selftest::test_one_liner_fixit_replace_non_equal_range): New
5963 function.
5964 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
5965 New function.
5966 (selftest::test_diagnostic_show_locus_one_liner): Call the new
5967 functions.
5968 * diagnostic.c (print_parseable_fixits): Remove case
5969 fixit_hint::REMOVE.
5970
5971 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
5972
5973 PR target/77270
5974 * config/i386/i386.c (ix86_option_override_internal): Remove
5975 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
5976 Enable SSE prefetch also for TARGET_PREFETCHWT1.
5977 Do not try to enable TARGET_PRFCHW ISA flag here.
5978 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
5979 Rewrite expander function body.
5980 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
5981
5982 2016-08-19 Joseph Myers <joseph@codesourcery.com>
5983
5984 PR c/32187
5985 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
5986 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
5987 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
5988 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
5989 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
5990 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
5991 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
5992 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
5993 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
5994 tree_index values.
5995 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
5996 macros.
5997 (struct floatn_type_info): New structure type.
5998 (floatn_nx_types): New variable declaration.
5999 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
6000 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
6001 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
6002 * tree.c (floatn_nx_types): New variable.
6003 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
6004 corresponding complex types.
6005 * target.def (floatn_mode): New hook.
6006 * targhooks.c: Include "real.h".
6007 (default_floatn_mode): New function.
6008 * targhooks.h (default_floatn_mode): New prototype.
6009 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
6010 types.
6011 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
6012 effective-target and dg-add-options keywords.
6013 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
6014 Document new effective-target keywords.
6015 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
6016 * doc/tm.texi: Regenerate.
6017 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
6018 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
6019 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
6020 18661-3.
6021 * real.h (struct real_format): Add field ieee_bits.
6022 * real.c (ieee_single_format, mips_single_format)
6023 (motorola_single_format, spu_single_format, ieee_double_format)
6024 (mips_double_format, motorola_double_format)
6025 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
6026 (ieee_extended_intel_128_format)
6027 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
6028 (mips_extended_format, ieee_quad_format, mips_quad_format)
6029 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
6030 (decimal_double_format, decimal_quad_format, ieee_half_format)
6031 (arm_half_format, real_internal_format: Initialize ieee_bits
6032 field.
6033 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
6034 float128_type_node. Set float80_type_node to float64x_type_node
6035 if appropriate and long_double_type_node not appropriate.
6036 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
6037 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
6038 Initialize ieee_bits field.
6039 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
6040 (rs6000_init_builtins): Set ieee128_float_type_node to
6041 float128_type_node.
6042 (rs6000_floatn_mode): New function.
6043
6044 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6045
6046 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6047 _rdseed64_step): Uglify argument names and/or local variable names
6048 in inline functions.
6049 * config/i386/rtmintrin.h (_xabort): Likewise.
6050 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
6051 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
6052 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
6053 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
6054 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
6055 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
6056 _mm_maskz_ternarylogic_epi32): Likewise.
6057 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
6058 __lwpins32, __lwpins64): Likewise.
6059 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
6060 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
6061 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
6062 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
6063 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
6064 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
6065 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
6066 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
6067 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
6068 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
6069 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
6070 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
6071 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
6072 _mm256_mask_i64gather_epi32): Likewise.
6073 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6074 * config/i386/ia32intrin.h (__writeeflags): Likewise.
6075 * config/i386/pkuintrin.h (_wrpkru): Likewise.
6076 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
6077 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
6078 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
6079 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
6080 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
6081 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
6082 _mm512_mask_prefetch_i64scatter_ps): Likewise.
6083 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6084 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
6085 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
6086 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
6087 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
6088 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
6089 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
6090 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
6091
6092 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
6093 returning void.
6094 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
6095 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
6096 Likewise.
6097 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
6098 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
6099 function name.
6100 (_rdpkru_u32): Add space after function name.
6101
6102 * config/i386/t-i386 (i386-c.o): Don't depend on
6103 i386-builtin-types.inc.
6104 (i386.o): Depend on i386-builtin-types.inc.
6105
6106 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
6107
6108 PR target/77281
6109 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
6110 Use const_vec_duplicate to check for duplicated elements.
6111
6112 2016-08-19 Richard Biener <rguenther@suse.de>
6113
6114 PR tree-optimization/77290
6115 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6116 Fix flag_tree_parallelize_loops check.
6117
6118 2016-08-19 Richard Biener <rguenther@suse.de>
6119
6120 * match.pd (x | 0 -> x): Add.
6121
6122 2016-08-19 Richard Biener <rguenther@suse.de>
6123
6124 PR tree-optimization/77286
6125 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6126 Deal with virtual PHIs being out-of-order.
6127
6128 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6129
6130 * doc/invoke.texi (fverbose-asm): Note that source code lines
6131 are emitted, and provide an example.
6132 * final.c (asm_show_source): New function.
6133 (final_scan_insn): Call asm_show_source.
6134
6135 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6136
6137 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
6138 param with diagnostic_kind.
6139 (class colorizer): Similarly replace field m_diagnostic with
6140 m_diagnostic_kind.
6141 (colorizer::colorizer): Replace diagnostic
6142 param with diagnostic_kind.
6143 (colorizer::begin_state): Update for above field change.
6144 (layout::layout): Replace diagnostic param with rich_location *
6145 and diagnostic_kind.
6146 (diagnostic_show_locus): Replace diagnostic param with richloc
6147 and diagnostic_kind.
6148 (class selftest::test_diagnostic_context): New class.
6149 (selftest::test_diagnostic_show_locus_unknown_location): New
6150 function.
6151 (selftest::test_one_liner_simple_caret): New function.
6152 (selftest::test_one_liner_caret_and_range): New function.
6153 (selftest::test_one_liner_multiple_carets_and_ranges): New
6154 function.
6155 (selftest::test_one_liner_fixit_remove): New function.
6156 (selftest::test_one_liner_fixit_replace): New function.
6157 (selftest::test_diagnostic_show_locus_one_liner): New function.
6158 (selftest::diagnostic_show_locus_c_tests): Call the new test
6159 functions.
6160 * diagnostic.c (diagnostic_initialize): Initialize
6161 colorize_source_p, show_ruler_p and parseable_fixits_p.
6162 (default_diagnostic_finalizer): Update for change to
6163 diagnostic_show_locus.
6164 (diagnostic_append_note): Likewise.
6165 * diagnostic.h (diagnostic_show_locus): Replace
6166 const diagnostic_info * param with location * and diagnostic_t.
6167
6168 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6169
6170 * input.c (saved_line_table): New global.
6171 (class selftest::temp_line_table): Rename to line_table_test and
6172 move declaration to selftest.h, and drop field m_old_line_table.
6173 (selftest::temp_line_table::temp_line_table): Rename ctor to...
6174 (selftest::line_table_test::line_table_test): ...this. Add a
6175 default ctor. Store current value of line_table within
6176 saved_line_table.
6177 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
6178 (selftest::line_table_test::~line_table_test): ...this, and
6179 restore line_table from the saved_line_table, rather than
6180 m_old_line_table.
6181 (selftest::test_accessing_ordinary_linemaps): Update for above
6182 renaming.
6183 (selftest::test_lexer): Likewise.
6184 (struct selftest::lexer_test): Likewise.
6185 (selftest::lexer_test::lexer_test): Likewise.
6186 (selftest::input_c_tests): Move the looping over test cases from
6187 here into...
6188 (selftest::for_each_line_table_case): New function.
6189 * input.h (saved_line_table): New decl.
6190 * selftest.h (struct selftest::line_table_case): New forward decl.
6191 (class selftest::line_table_test): New class, moved here from
6192 selftest::temp_line_table in input.c, and renamed.
6193 (selftest::for_each_line_table_case): New decl.
6194
6195 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
6196
6197 PR target/72839
6198 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
6199
6200 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6201
6202 PR middle-end/70895
6203 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
6204 enclosing parallel construct for reduction variables on OpenACC loop
6205 directives.
6206
6207 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
6208
6209 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
6210 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
6211 -gdwarf-3.
6212 (function_to_dwarf_procedure): Update comment.
6213
6214 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6215
6216 * input.c (diagnostics_file_cache_forcibly_evict_file): New
6217 function.
6218 * input.h (diagnostics_file_cache_forcibly_evict_file): New
6219 declaration.
6220 * selftest.c (selftest::temp_source_file::~temp_source_file):
6221 Evict m_filename from the diagnostic file cache.
6222
6223 2016-08-18 Richard Biener <rguenther@suse.de>
6224
6225 * tree-pass.h (make_pass_materialize_all_clones): Declare.
6226 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
6227 make_pass_materialize_all_clones): New simple IPA pass encapsulating
6228 clone materialization.
6229 * passes.def (all_late_ipa_passes): Start with
6230 pass_materialize_all_clones.
6231 * cgraphunit.c (symbol_table::compile): Remove call to
6232 materialize_all_clones.
6233 * tree-into-ssa.c: Include statistics.h.
6234 (update_ssa): Count number of times we do incremental/rewrite
6235 SSA update.
6236
6237 2016-08-18 Richard Biener <rguenther@suse.de>
6238
6239 PR tree-optimization/77282
6240 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6241 When doing auto-parallelizing also prevent use of PHIs that
6242 carry dependences across loop backedges.
6243
6244 2016-08-18 Tamar Christina <tamar.christina@arm.com>
6245 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6246
6247 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
6248
6249 2016-08-18 Richard Biener <rguenther@suse.de>
6250
6251 * ssa-iterators.h (ssa_vuse_operand): New inline.
6252 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
6253 (predicate_all_scalar_phis): Use remove_phi_node to remove
6254 phi nodes predicated. Delay removing virtual PHIs.
6255 (predicate_mem_writes): Update virtual operands.
6256 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
6257 (tree_if_conversion): Do not rewrite virtual SSA form.
6258 * tree-phinodes.c (release_phi_node): Make static.
6259 * tree-phinodes.h (release_phi_node): Remove.
6260
6261 2016-08-18 Jakub Jelinek <jakub@redhat.com>
6262
6263 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
6264 codes that appear in bdesc_* arrays, instead include i386-builtin.def
6265 twice to define those.
6266 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
6267 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
6268 bdesc_multi_arg): Define by including i386-builtin.def the third time.
6269 * config/i386/i386-builtin.def: New file.
6270
6271 2016-08-17 David Malcolm <dmalcolm@redhat.com>
6272
6273 * input.c (get_source_range_for_char): Rename to...
6274 (selftest::get_source_range_for_char): ...this, and move within
6275 the #if CHECKING_P guard.
6276 (get_num_source_ranges_for_substring): Rename to...
6277 (selftest::get_num_source_ranges_for_substring): ...this, move
6278 within the #if CHECKING_P guard, and make static.
6279 (selftest::assert_num_substring_ranges): Initialize
6280 actual_num_ranges.
6281
6282 2016-08-18 Alan Modra <amodra@gmail.com>
6283
6284 PR rtl-optimization/72771
6285 * reload.c (find_reloads): Don't assume that a subreg mem is OK
6286 when find_reloads_toplev returns address_reloaded==-1.
6287 (alternative_allows_const_pool_ref): Update comment.
6288
6289 2015-08-17 Alan Hayward <alan.hayward@arm.com>
6290
6291 PR tree-optimization/71752
6292 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
6293 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
6294
6295 2016-08-17 Jakub Jelinek <jakub@redhat.com>
6296
6297 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
6298 instead of testing ECF_NORETURN bit in gimple_call_flags.
6299 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
6300 * predict.c (tree_bb_level_predictions): Likewise.
6301 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
6302
6303 PR middle-end/77259
6304 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
6305 turning a call into __builtin_unreachable-like noreturn call, adjust
6306 gimple_call_set_fntype.
6307 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
6308 gimple_call_fntype has void return type.
6309
6310 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
6311
6312 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
6313 maybe_lookup_decl, to handle nested acc loop directives.
6314
6315 2016-08-17 Richard Biener <rguenther@suse.de>
6316
6317 PR tree-optimization/76490
6318 * tree-vrp.c (update_value_range): Preserve overflow infinities
6319 when intersecting with ranges from get_range_info.
6320 (operand_less_p): Handle overflow infinities correctly.
6321 (value_range_constant_singleton): Use vrp_operand_equal_p
6322 to handle overflow max/min correctly.
6323 (vrp_valueize): Likewise.
6324 (union_ranges): Likewise.
6325 (intersect_ranges): Likewise.
6326 (vrp_visit_phi_node): Improve iteration limitation to only
6327 apply when we'll possibly re-visit the PHI via a changed argument
6328 on the backedge.
6329
6330 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
6331
6332 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
6333 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
6334 rather than those that should not be built.
6335
6336 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
6337
6338 PR target/66488
6339 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
6340
6341 2016-08-17 Richard Biener <rguenther@suse.de>
6342
6343 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
6344 (verify_vssa): New function verifying virtual SSA form.
6345 (verify_ssa): Call it.
6346 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
6347 Do not apply loop-closed SSA handling to virtuals.
6348 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
6349 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
6350 when rewriting their symbol.
6351 (prepare_def_site_for): Likewise.
6352 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
6353 operands of moved stmts.
6354
6355 2016-08-17 Richard Biener <rguenther@suse.de>
6356
6357 PR tree-optimization/23855
6358 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
6359 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
6360 find guards to hoist. Do not update SSA form but rewrite virtuals
6361 into loop closed SSA.
6362 (find_loop_guard): Adjust to skip already hoisted guards. Do
6363 not mark virtuals for renaming or update SSA form.
6364
6365 2016-08-17 Martin Liska <mliska@suse.cz>
6366
6367 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
6368 a LONG_LONG_TYPE_SIZE comparison.
6369 * gcov-io.h: Remove macro definitions.
6370 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
6371 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
6372 comparison.
6373
6374 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6375
6376 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
6377 that builtins not mentioned in bdesc_* arrays come first, then
6378 the ones mentioned in bdesc_* arrays in the order they appear in
6379 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
6380 IX86_BUILTIN__BDESC_*_LAST enumerator.
6381 (bdesc_mpx): Fix up a comment typo.
6382 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
6383 __builtin_ia32_vpcomneu[bwdq] builtins.
6384 (BDESC_VERIFY, BDESC_VERIFYS): Define.
6385 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
6386 enum ix86_builtins ordering.
6387 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
6388 for direct bdesc_* array member access instead of searching all the
6389 arrays until an fcode match is found.
6390
6391 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
6392
6393 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
6394 pattern as define_insn_and_split. Split insn before reload to
6395 ashl<mode>3_1.
6396 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
6397 <shift_insn><mode>3_1.
6398 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
6399 <rotate_insn><mode>3_1.
6400
6401 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6402
6403 PR c/72857
6404 * input.c (get_source_range_for_substring): Rename to...
6405 (get_source_location_for_substring): ...this, adding param
6406 "caret_idx", and converting output param from source_range * to
6407 location_t *.
6408 (get_source_range_for_char): New function.
6409 (get_num_source_ranges_for_substring): Update comment to reflect
6410 above renaming.
6411 (assert_char_at_range): Update to use get_source_range_for_char
6412 rather than get_source_range_for_substring.
6413 (test_lexer_string_locations_concatenation_2): Likewise.
6414 * substring-locations.h (get_source_range_for_substring): Rename
6415 to...
6416 (get_source_location_for_substring): ...this, and adding param
6417 "caret_idx", and converting output param from source_range * to
6418 location_t *.
6419
6420 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6421
6422 * input.c (class selftest::temp_source_file): Move to
6423 selftest.h.
6424 (selftest::temp_source_file::temp_source_file): Move to
6425 selftest.c.
6426 (selftest::temp_source_file::~temp_source_file): Likewise.
6427 * selftest.c (selftest::temp_source_file::temp_source_file): Move
6428 here from input.c.
6429 (selftest::temp_source_file::~temp_source_file): Likewise.
6430 * selftest.h (class selftest::temp_source_file): Move here from
6431 input.c
6432
6433 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6434
6435 PR target/71910
6436 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
6437 inlining, add cgraph edge for the added __builtin_unreachable call.
6438
6439 PR middle-end/67485
6440 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
6441 only cast it to SHWI for the final comparison.
6442
6443 2016-08-16 Martin Liska <mliska@suse.cz>
6444
6445 PR gcov-profile/36412
6446 * doc/gcov.texi: Document --hash-filenames(-x).
6447 * gcov.c (print_usage): Add the option.
6448 (process_args): Process the option, sort options alphabetically.
6449 (md5sum_to_hex): New function.
6450 (make_gcov_file_name): Do the md5sum and append it to a
6451 filename.
6452
6453 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6454
6455 PR tree-optimization/69848
6456 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
6457 and swtich operands to avoid additional NOT instruction.
6458 (vcond<v_cmp_mixed><mode>): Ditto.
6459 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6460
6461 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
6462
6463 * doc/install.texi (*-*-solaris2*): Adjust latest change.
6464
6465 2016-08-16 Richard Biener <rguenther@suse.de>
6466
6467 PR tree-optimization/76783
6468 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
6469 BB visited flags at start.
6470
6471 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6472
6473 PR tree-optimization/72817
6474 PR tree-optimization/73450
6475 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
6476 multiple_of_p for adjusted IV.base.
6477
6478 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
6479
6480 PR target/72867
6481 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
6482 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
6483 for !flag_finite_math_only or flag_signed_zeros.
6484 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
6485 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
6486 depend on flag_finite_math_only.
6487 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
6488 New insn pattern.
6489 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
6490 (*ieee_smin<mode>3): Ditto.
6491 (*ieee_smax<mode>3): Ditto.
6492 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
6493 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
6494 flag_signed_zeros.
6495 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
6496 depend on flag_finite_math_only.
6497 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
6498 (*mmx_<code>v2sf3): Remove.
6499 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
6500 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
6501 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
6502
6503 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
6504
6505 PR rtl-optimization/73650
6506 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
6507 it is not a simple move.
6508
6509 2016-08-15 Martin Liska <mliska@suse.cz>
6510
6511 PR driver/72765
6512 * gcc.c (do_spec_1): Call save_string with the right size.
6513 (save_string): Do an assert about string we copy.
6514
6515 2016-08-15 Richard Biener <rguenther@suse.de>
6516
6517 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
6518 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
6519 TV_MACH_DEP.
6520 (pass_data_stv): Likewise.
6521
6522 2016-08-15 Richard Biener <rguenther@suse.de>
6523
6524 PR tree-optimization/73434
6525 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
6526 TBAA info on the base when forwarding a non-invariant address.
6527
6528 2016-08-15 Jakub Jelinek <jakub@redhat.com>
6529
6530 * dwarf2out.c (struct checksum_attributes): Add
6531 at_string_length_bit_size and at_string_length_byte_size fields.
6532 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
6533 and DW_AT_string_length_byte_size.
6534 (die_checksum_ordered): Handle at_string_length_bit_size and
6535 at_string_length_byte_size.
6536 (gen_array_type_die): For dwarf_version >= 5 emit
6537 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6538 (adjust_string_types): For dwarf_version >= 5 remove
6539 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6540 (resolve_addr): Likewise.
6541
6542 PR debug/71906
6543 * dwarf2out.c (string_types): New variable.
6544 (gen_array_type_die): Change early_dwarf handling of
6545 DW_AT_string_length, create DW_OP_call4 referencing the
6546 length var temporarily. Handle parameters that are pointers
6547 to string length.
6548 (adjust_string_types): New function.
6549 (gen_subprogram_die): Temporarily set string_types to local var,
6550 call adjust_string_types if needed.
6551 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
6552 New functions.
6553 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
6554
6555 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
6556
6557 * doc/install.texi (*-*-solaris2*): Fix version number and document
6558 requirement on GNU make for building libjava with the Solaris linker.
6559
6560 2016-08-15 Martin Liska <mliska@suse.cz>
6561 Jakub Jelinek <jakub@redhat.com>
6562
6563 PR tree-optimization/72824
6564 * tree-loop-distribution.c (const_with_all_bytes_same)
6565 <case VECTOR_CST>: Fix a typo.
6566
6567 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
6568
6569 PR target/76342
6570 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
6571 Renamed from _mm512_undefined_si512.
6572 (_mm_undefined_si512): New definition.
6573
6574 2016-08-13 Richard Biener <rguenther@suse.de>
6575
6576 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
6577 into PHIs and update the lattice for its def.
6578
6579 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6580
6581 PR c/71512
6582 * ubsan.c (instrument_si_overflow): Pass true instead of false
6583 to gsi_replace.
6584 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
6585 of bbs. Return TODO_cleanup_cfg if any returned true.
6586
6587 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6588
6589 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
6590 ISA 3.0 MTVSRDD instruction.
6591 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
6592 vecperm.
6593
6594 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
6595
6596 PR tree-optimization/71083
6597 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
6598 bitfield access when possible.
6599
6600 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
6601
6602 PR middle-end/71654
6603 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
6604 sign-changing cast from a shorter unsigned type to a wider
6605 signed type.
6606
6607 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6608
6609 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
6610 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
6611 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
6612
6613 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6614
6615 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6616 Correct costs for vec_construct.
6617
6618 2016-08-12 Bin Cheng <bin.cheng@arm.com>
6619
6620 PR tree-optimization/69848
6621 * tree-vectorizer.h (enum vect_def_type): New condition reduction
6622 type CONST_COND_REDUCTION.
6623 * tree-vect-loop.c (vectorizable_reduction): Support new condition
6624 reudction type CONST_COND_REDUCTION.
6625
6626 2016-08-12 Richard Biener <rguenther@suse.de>
6627
6628 PR tree-optimization/57326
6629 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
6630 returning an SSA name.
6631 (phi_translate_1): When fully_constant_expression returns a NAME
6632 make sure we have a leader for it.
6633
6634 2016-08-12 Martin Liska <mliska@suse.cz>
6635 Adam Fineman <afineman@afineman.com>
6636
6637 * gcov.c (process_file): Create .gcov file when .gcda
6638 file is missing.
6639
6640 2016-08-12 Marek Polacek <polacek@redhat.com>
6641
6642 PR c/7652
6643 * alias.c (find_base_value): Adjust fall through comment.
6644 * cfgexpand.c (expand_debug_expr): Likewise.
6645 * combine.c (find_split_point): Likewise.
6646 (expand_compound_operation): Likewise. Add FALLTHRU.
6647 (make_compound_operation): Adjust fall through comment.
6648 (canon_reg_for_combine): Add FALLTHRU.
6649 (force_to_mode): Adjust fall through comment.
6650 (simplify_shift_const_1): Likewise.
6651 (simplify_comparison): Likewise.
6652 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
6653 FALLTHRU.
6654 * config/aarch64/predicates.md: Likewise.
6655 * config/i386/i386.c (function_arg_advance_32): Likewise.
6656 (ix86_gimplify_va_arg): Likewise.
6657 (print_reg): Likewise.
6658 (ix86_print_operand): Likewise.
6659 (ix86_build_const_vector): Likewise.
6660 (ix86_expand_branch): Likewise.
6661 (ix86_sched_init_global): Adjust fall through comment.
6662 (ix86_expand_args_builtin): Add FALLTHRU.
6663 (ix86_expand_builtin): Likewise.
6664 (ix86_expand_vector_init_one_var): Likewise.
6665 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6666 (rs6000_adjust_cost): Likewise.
6667 (insn_must_be_first_in_group): Likewise.
6668 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
6669 * dbxout.c (dbxout_symbol): Adjust fall through comment.
6670 * df-scan.c (df_uses_record): Likewise.
6671 * dojump.c (do_jump): Add FALLTHRU.
6672 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
6673 comment.
6674 (resolve_args_picking_1): Adjust fall through comment.
6675 (loc_list_from_tree_1): Likewise.
6676 * expmed.c (make_tree): Likewise.
6677 * expr.c (expand_expr_real_2): Add FALLTHRU.
6678 (expand_expr_real_1): Likewise. Adjust fall through comment.
6679 * fold-const.c (const_binop): Adjust fall through comment.
6680 (fold_truth_not_expr): Likewise.
6681 (fold_cond_expr_with_comparison): Add FALLTHRU.
6682 (fold_binary_loc): Likewise.
6683 (contains_label_1): Adjust fall through comment.
6684 (multiple_of_p): Likewise.
6685 * gcov-tool.c (process_args): Add FALLTHRU.
6686 * genattrtab.c (check_attr_test): Likewise.
6687 (write_test_expr): Likewise.
6688 * genconfig.c (walk_insn_part): Likewise.
6689 * genpreds.c (validate_exp): Adjust fall through comment.
6690 (needs_variable): Likewise.
6691 * gensupport.c (get_alternatives_number): Add FALLTHRU.
6692 (subst_dup): Likewise.
6693 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
6694 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
6695 (gimplify_scan_omp_clauses): Add FALLTHRU.
6696 (goa_stabilize_expr): Likewise.
6697 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
6698 through comment.
6699 * hsa-gen.c (get_address_from_value): Likewise.
6700 * ipa-icf.c (sem_function::hash_stmt): Likewise.
6701 * ira.c (ira_setup_alts): Add FALLTHRU.
6702 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
6703 comment.
6704 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
6705 * opts.c (common_handle_option): Likewise.
6706 * read-rtl.c (read_rtx_code): Likewise.
6707 * real.c (round_for_format): Likewise.
6708 * recog.c (asm_operand_ok): Likewise.
6709 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
6710 * reload1.c (set_label_offsets): Likewise.
6711 (eliminate_regs_1): Likewise.
6712 (reload_reg_reaches_end_p): Likewise.
6713 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
6714 (rtx_cost): Likewise.
6715 * sched-rgn.c (is_exception_free): Likewise.
6716 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
6717 * stor-layout.c (int_mode_for_mode): Likewise.
6718 * toplev.c (print_to_asm_out_file): Likewise.
6719 (print_to_stderr): Likewise.
6720 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6721 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
6722 (chrec_fold_multiply): Likewise.
6723 (evolution_function_is_invariant_rec_p): Likewise.
6724 (for_each_scev_op): Likewise.
6725 * tree-data-ref.c (siv_subscript_p): Likewise.
6726 (get_references_in_stmt): Likewise.
6727 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
6728 (substitute_in_expr): Likewise.
6729 (type_cache_hasher::equal): Likewise.
6730 (walk_type_fields): Likewise.
6731 * var-tracking.c (adjust_mems): Add FALLTHRU.
6732 (set_dv_changed): Adjust fall through comment.
6733 * varasm.c (default_function_section): Add FALLTHRU.
6734
6735 2016-08-12 Marek Polacek <polacek@redhat.com>
6736
6737 PR c/7652
6738 * tree-complex.c (expand_complex_division): Add missing break.
6739
6740 2016-08-12 Richard Biener <rguenther@suse.de>
6741
6742 * passes.c (execute_todo): Do not push/pop TV_TODO.
6743 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6744 (execute_one_pass): Likewise.
6745 * common.opt (ftime-report-details): New switch.
6746 * doc/invoke.texi (ftime-report-details): Document.
6747 * timevar.h (timer::print_row): Adjust signature.
6748 (timer::all_zero): New static helper.
6749 (timer::child_map_t): New typedef.
6750 (timer::time_var_def): Add children field.
6751 * timevar.c (timer::named_items::print): Adjust.
6752 (timer::~timer): Free timevar recorded children.
6753 (timer::pop_internal): When -ftime-report-details record
6754 time spent in sub-timevars.
6755 (timer::print_row): Adjust.
6756 (timer::print): Print sub-timevar stats, use all_zero.
6757 * timevar.def (TV_TODO): Remove.
6758
6759 2016-08-12 Richard Biener <rguenther@suse.de>
6760
6761 PR tree-optimization/72851
6762 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
6763 worklists to use bitmaps indexed in execution order.
6764 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6765 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6766 (cfg_blocks): Make a bitmap.
6767 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6768 New globals.
6769 (cfg_blocks_empty_p): Adjust.
6770 (cfg_blocks_add): Likewise.
6771 (cfg_blocks_get): Likewise.
6772 (add_ssa_edge): Likewise.
6773 (add_control_edge): Likewise.
6774 (simulate_stmt): Likewise.
6775 (process_ssa_edge_worklist): Likewise.
6776 (simulate_block): Likewise.
6777 (ssa_prop_init): Compute PRE order and stmt UIDs.
6778 (ssa_prop_fini): Adjust.
6779 (ssa_propagate): Adjust.
6780
6781 2016-08-12 Richard Biener <rguenther@suse.de>
6782
6783 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6784 the currently executable edges have fixed ranges. Always
6785 go through update_value_range.
6786
6787 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
6788
6789 PR debug/63240
6790 * langhooks-def.h
6791 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6792 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6793 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6794 (LANG_HOOKS_DECLS): Add it.
6795 * langhooks.h (struct lang_hooks_for_decls): Add
6796 function_decl_defaulted. Const_tree-ify
6797 function_decl_explicit_p and function_decl_deleted_p.
6798 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6799 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6800 also at strict DWARF v5.
6801
6802 PR debug/55641
6803 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6804 TYPE_QUAL_CONST in reference-typed decls.
6805
6806 PR debug/49366
6807 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6808 in DW_OP_pieces, just enough to handle pointers to member
6809 functions.
6810 (gen_remaining_tmpl_value_param_die_attribute): Use a location
6811 expression on DWARFv5 if a constant value doesn't work.
6812
6813 2016-08-11 David Malcolm <dmalcolm@redhat.com>
6814
6815 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6816 * selftest.c (selftest::test_assertions): New function.
6817 (selftest::selftest_c_tests): New function.
6818 * selftest.h (selftest::selftest_c_tests): New declaration.
6819
6820 2016-08-11 Richard Biener <rguenther@suse.de>
6821 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6822
6823 PR rtl-optimization/72855
6824 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6825
6826 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6827
6828 PR target/72863
6829 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6830 (vsx_store_<mode>): Likewise.
6831
6832 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6833
6834 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6835 TImode CONST_WIDE_INT store.
6836 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6837
6838 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6839
6840 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6841 mode if unaligned SSE load and store are optimal.
6842
6843 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6844
6845 PR tree-optimization/71083
6846 * tree-predcom.c (ref_at_iteration): Correctly align the
6847 reference type.
6848
6849 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6850
6851 * config/s390/s390-builtin-types.def: Add INT128 types.
6852 * config/s390/s390-builtins.def: Add INT128 variants for the add
6853 sub low-level builtins dealing with TImode.
6854 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6855 via subreg when expanding a builtin.
6856 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6857 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6858 Fix comment.
6859 * config/s390/vecintrin.h: Adjust builtin names accordingly.
6860 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6861 ("vec_addc<mode>", "vec_addc_u128"): Merge to
6862 "vacc<bhfgq>_<mode>".
6863 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6864 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6865 ("vec_subc<mode>", "vec_subc_u128"): Merge to
6866 "vscbi<bhfgq>_<mode>".
6867 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6868 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6869
6870 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6871
6872 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6873
6874 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6875
6876 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6877 unused declaration.
6878 (vcond<v_cmp_mixed><mode>): Ditto.
6879 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6880
6881 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6882
6883 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6884 variable explicitly, also assert on it before use.
6885
6886 2016-08-11 Richard Biener <rguenther@suse.de>
6887
6888 PR tree-optimization/72772
6889 * cfgloopmanip.c (create_preheader): Use split_edge if there
6890 is a single loop entry, avoiding degenerate PHIs.
6891
6892 2016-08-11 Richard Biener <rguenther@suse.de>
6893
6894 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6895 unconditional TODO_cleanup_cfg.
6896 (pass_thread_jumps::execute): Initialize loops, perform a CFG
6897 cleanup only if we threaded a jump.
6898
6899 2016-08-11 Alan Modra <amodra@gmail.com>
6900
6901 PR target/71680
6902 * lra-constraints.c (simplify_operand_subreg): Allow subreg
6903 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6904 slow. Emit two reloads for slow mem case, first loading in
6905 fast innermode, then converting to required mode.
6906
6907 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6908
6909 * config/rs6000/altivec.h (vec_extract_exp): New macro.
6910 (vec_extract_sig): New macro.
6911 (vec_insert_exp): New macro.
6912 (vec_test_data_class): New macro.
6913 (scalar_extract_exp): New macro.
6914 (scalar_extract_sig): New macro.
6915 (scalar_insert_exp): New macro.
6916 (scalar_test_data_class): New macro.
6917 (scalar_test_neg): New macro.
6918 (scalar_cmp_exp_gt): New macro.
6919 (scalar_cmp_exp_lt): New macro.
6920 (scalar_cmp_exp_eq): New macro.
6921 (scalar_cmp_exp_unordered): New macro.
6922 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6923 to enforce constraint that operand is a 7-bit unsigned literal.
6924 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6925 for power9 built-ins.
6926 (BU_P9V_VSX_2): Likewise.
6927 (BU_P9V_64BIT_VSX_2): Likewise.
6928 (VSEEDP): Add scalar extract exponent support.
6929 (VSEESP): Add scalar extract signature support.
6930 (VSTDCNDP): Add scalar test negative support.
6931 (VSTDCNSP): Likewise.
6932 (VSIEDP): Add scalar insert exponent support.
6933 (VSCEDPGT): Add scalar compare exponent greater than support.
6934 (VSCEDPLT): Add scalar compare exponent less than support.
6935 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6936 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6937 (VSTDCDP): Add scalar test data class support.
6938 (VSTDCSP): Likewise.
6939 (VSEEDP): Add overload support for scalar extract exponent
6940 operation.
6941 (VSESDP): Add overload support for scalar extract signature
6942 operation.
6943 (VSTDCN): Add overload support for scalar test negative
6944 operation.
6945 (VSTDCNDP): Add overload support for scalar test negative
6946 operation.
6947 (VSTDCNSP): Add overload support for scalar test negative
6948 operation.
6949 (VSIEDP): Add overload support for scalar insert exponent
6950 operation.
6951 (VSTDC): Add overload support for scalar test data class
6952 operation.
6953 (VSTDCDP): Add overload support for scalar test data class
6954 operation.
6955 (VSTDCSP): Add overload support for scalar test data class
6956 opreation.
6957 (VSCEDPGT): Add overload support for scalar compare exponent
6958 greater than operation.
6959 (VSCEDPLT): Add overload support for scalar compare exponent
6960 less than operation.
6961 (VSCEDPEQ): Add overload support for scalar compare exponent
6962 test-for-equality operation.
6963 (VSCEDPUO): Add overload support for scalar compare exponent
6964 test-for-unordered operation.
6965 (VEEDP): Add vector extract exponent support.
6966 (VEESP): Likewise.
6967 (VESDP): Add vector extract significand support.
6968 (VESSP): Likewise.
6969 (VIEDP): Add vector insert exponent support.
6970 (VIESP): Likewise.
6971 (VTDCDP): Add vector test data class support.
6972 (VTDCSP): Likewise.
6973 (VES): Add overload support for vector extract significand operation.
6974 (VESDP): Likewise.
6975 (VESSP): Likewise
6976 (VEE): Add overload support for vector extract exponent operation.
6977 (VEEDP): Likewise.
6978 (VEESP): Likewise.
6979 (VTDC): Add overload support for vector test data class operation.
6980 (VTDCDP): Likewise.
6981 (VTDCSP): Likewise.
6982 (VIE): Add overload support for vector insert exponent operation.
6983 (VIEDP): Likewise.
6984 (VIESP): Likewise.
6985 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6986 overloaded binary floating point functions.
6987 (altivec_resolve_overloaded_builtin): Improve error messages to
6988 distinguish between functions not supported in the current
6989 compiler configuration and functions that were invoked with an
6990 invalid parameter combination, and include the built-in function
6991 name in both error messages.
6992 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
6993 New prototype.
6994 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
6995 function.
6996 (rs6000_expand_binop_builtin): Add check to enforce that argument
6997 2 of the test data class operations is a 7-bit unsigned literal.
6998 (rs6000_invalid_builtin): Add code to issue an error message if a
6999 built-in function that requires the power9_vector and -m32
7000 command-line options is compiled without these options.
7001 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
7002 (UNSPEC_VSX_SXSIGDP): New value.
7003 (UNSPEC_VSX_SXSIGPDP): New value.
7004 (UNSPEC_VSX_SIEXPDP): New value.
7005 (UNSPEC_VSX_SCMPEXPDP): New value.
7006 (UNSPEC_VSX_STSTDC): New value.
7007 (UNSPEC_VSX_VXEXP): New value.
7008 (UNSPEC_VSX_VXSIG): New value.
7009 (UNSPEC_VSX_VIEXP): New value.
7010 (UNSPEC_VSX_VTSTDC): New value.
7011 (xsxexpdp): New insn for scalar extract exponent.
7012 (xsxsigdp): New insn for scalar extract significand.
7013 (xsiexpdp): New insn for scalar insert exponent.
7014 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
7015 (*xscmpexpdp): New insn for scalar compare exponents.
7016 (xststdc<Fvsx): New expansion for both single- and
7017 double-precision scalar test data class operations.
7018 (xststdcneg<Fvsx>): New expansion for both single- and
7019 double-precision scalar test for negative value operations.
7020 (*xststdc<Fvsx>): New insn for scalar test data class
7021 operation.
7022 (xvxexp<VSs>): New insn for single- and double-precision
7023 vector extract exponent operation.
7024 (xvxsig<VSs>): New insn for single- and double-precision
7025 vector extract significand operation.
7026 (xviexp<VSs>): New insn for single- and double-precision
7027 vector insert exponent operation.
7028 (xvtstdc<VSs>): New insn for single- and double-precision
7029 vector test data class operation.
7030 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7031 built-in functions to represent the Power9 binary floating-point
7032 support instructions.
7033
7034 2016-08-10 bin cheng <bin.cheng@arm.com>
7035
7036 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
7037
7038 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7039 Renlin Li <renlin.li@arm.com>
7040 Bin Cheng <bin.cheng@arm.com>
7041
7042 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
7043 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
7044 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
7045 (aarch64_vcond_internal<mode><mode>): Delete pattern.
7046 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
7047 (vcond<v_cmp_result><mode>): Ditto.
7048 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
7049 (vcondu<mode><mode>): Ditto.
7050 (vcond<v_cmp_mixed><mode>): New pattern.
7051 (vcondu<mode><v_cmp_mixed>): New pattern.
7052 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
7053 of aarch64_vcond_internal.
7054
7055 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7056 Renlin Li <renlin.li@arm.com>
7057 Bin Cheng <bin.cheng@arm.com>
7058
7059 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
7060 (vec_cmp<mode><v_cmp_result>): New pattern.
7061 (vec_cmpu<mode><mode>): New pattern.
7062 (vcond_mask_<mode><v_cmp_result>): New pattern.
7063
7064 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7065
7066 PR tree-optimization/71734
7067 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
7068 REF_LOOP, invoke ref_indep_loop_p_1.
7069 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
7070 to ref_indep_loop_p.
7071 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
7072 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
7073 is inside LOOP, do not cache dpendence value for loops with
7074 non-zero SAFELEN.
7075 (ref_indep_loop_p_2): Delete function.
7076 (can_sm_ref_p): Pass LOOP as additional argument to
7077 ref_indep_loop_p.
7078
7079 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7080
7081 PR target/72853
7082 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
7083 being an offsettable address.
7084
7085 2016-08-10 Martin Liska <mliska@suse.cz>
7086
7087 PR gcov-profile/58306
7088 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
7089 atomic variants of profile update functions.
7090
7091 2016-08-10 Martin Liska <mliska@suse.cz>
7092
7093 Cherry picked (and modified) from google-4_7 branch
7094 2012-12-26 Rong Xu <xur@google.com>
7095 * common.opt (fprofile-update): Add new flag.
7096 * coretypes.h: Define enum profile_update.
7097 * doc/invoke.texi: Document -fprofile-update.
7098 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
7099 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
7100 * tree-profile.c (gimple_init_edge_profiler): Generate
7101 also atomic profiler update.
7102 (gimple_gen_edge_profiler): Likewise.
7103
7104 2016-08-10 David Malcolm <dmalcolm@redhat.com>
7105
7106 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
7107 stack_usage_file to NULL after fclose calls.
7108
7109 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7110
7111 PR target/71873
7112 * reload.c (push_reload): Compute subreg_in_class for
7113 subregs of constants and plus expressions. Remove special
7114 handling of SYMBOL_REFs.
7115
7116 2016-08-10 Alan Modra <amodra@gmail.com>
7117
7118 PR target/71680
7119 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
7120 SImode for TARGET_E500_DOUBLE when given SImode.
7121
7122 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
7123
7124 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
7125 unused variable __O.
7126
7127 2016-08-09 Martin Liska <mliska@suse.cz>
7128
7129 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
7130 _gcov_reset to __gcov_reset.
7131 * doc/gcov-tool.texi: Fix typo.
7132
7133 2016-08-09 Martin Liska <mliska@suse.cz>
7134
7135 * value-prof.c (gimple_divmod_values_to_profile): Do not
7136 instrument MOD histogram if a value is not a SSA name.
7137
7138 2016-08-09 Martin Liska <mliska@suse.cz>
7139
7140 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
7141 values.
7142
7143 2016-08-09 Renlin Li <renlin.li@arm.com>
7144
7145 PR middle-end/64971
7146 * calls.c (prepare_call_address): Convert funexp to Pmode when
7147 necessary.
7148 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
7149 (sibcall_value): Likewise.
7150
7151 2016-08-09 Marek Polacek <polacek@redhat.com>
7152
7153 PR c/7652
7154 * cselib.c (cselib_expand_value_rtx_1): Add return.
7155 * gengtype.c (dbgprint_count_type_at): Likewise.
7156 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
7157 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
7158
7159 2016-08-09 Martin Jambor <mjambor@suse.cz>
7160
7161 PR ipa/71981
7162 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
7163 if instance is a MEM_REF.
7164
7165 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
7166
7167 PR target/72843
7168 * config/i386/i386.md (*movtf_internal): Use
7169 lra_in_progress || reload_completed instead of !can_create_pseudo_p
7170 in the insn constraint.
7171 (*movxf_internal): Ditto.
7172 (*movdf_internal): Ditto.
7173 (*movsf_internal): Ditto.
7174
7175 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7176
7177 PR tree-optimization/72772
7178 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7179 for expanded base.
7180
7181 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7182
7183 PR tree-optimization/72772
7184 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
7185 parameter STOP.
7186 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
7187 parameter STOP and update calls. Move expand_simple_operations
7188 function call from here...
7189 (simplify_using_initial_conditions): ...to here. Delete parameter
7190 STOP.
7191 (tree_simplify_using_condition): Delete parameter STOP.
7192 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
7193 simplify_using_initial_conditions.
7194
7195 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
7196
7197 PR c/65345
7198 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
7199 Use create_tmp_var_raw instead of create_tmp_var.
7200
7201 2016-08-09 Richard Biener <rguenther@suse.de>
7202
7203 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
7204 Treat same SSA names related.
7205
7206 2016-08-09 Jakub Jelinek <jakub@redhat.com>
7207
7208 PR tree-optimization/72824
7209 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
7210 real_zerop is not negative.
7211
7212 2016-08-09 Richard Biener <rguenther@suse.de>
7213
7214 PR tree-optimization/71802
7215 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
7216 all merge opportunities with the predecessor.
7217
7218 2016-08-09 Richard Biener <rguenther@suse.de>
7219
7220 PR ipa/68273
7221 * ipa-prop.c (ipa_modify_formal_parameters): Build
7222 parameter types with natural alignment also for the
7223 over-aligned case.
7224
7225 2016-08-08 Andi Kleen <ak@linux.intel.com>
7226
7227 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
7228
7229 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7230
7231 PR c/64955
7232 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
7233 do-nothing langhook.
7234 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
7235 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
7236 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
7237 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
7238
7239 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7240
7241 PR bootstrap/72844
7242 * input.c: Ensure that HAVE_ICONV is defined.
7243
7244 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7245
7246 PR middle-end/72781
7247 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
7248 private vars for lastprivate and for linear iterator.
7249
7250 PR middle-end/68762
7251 * omp-simd-clone.c: Include varasm.h.
7252 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
7253 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
7254 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
7255 update function name.
7256
7257 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7258
7259 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
7260 (avr_diagnose_devicespecs_error): Remove.
7261 (avr_devicespecs_file): Remove composing absolute path for specfile
7262 and its verbose info. Remove conditions to check specs-file,
7263
7264 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7265
7266 PR rtl-optimization/72821
7267 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
7268 just return false for them.
7269
7270 2016-08-08 Alan Modra <amodra@gmail.com>
7271
7272 PR target/72771
7273 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
7274 toc refs created during reload. Update function comment.
7275
7276 2016-08-08 Alan Modra <amodra@gmail.com>
7277
7278 PR target/72802
7279 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
7280 alternatives. Put loads first, then stores, and reg/reg moves
7281 within same class later. Delete attr length.
7282
7283 2016-08-08 Alan Modra <amodra@gmail.com>
7284
7285 PR target/72802
7286 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
7287 (mem_operand_ds_form): New predicate.
7288 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
7289 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
7290 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
7291 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
7292 (extendsfdf2_fpr): Replace o constraint with wY.
7293
7294 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
7295
7296 * tree-ssa-threadbackward.c: Include tree-inline.h
7297 (profitable_jump_thread_path): Use estimate_num_insns to estimate
7298 size of copied block; for cold paths reduce duplication.
7299 (find_jump_threads_backwards): Remove redundant tests.
7300 (pass_thread_jumps::gate): Enable for -Os.
7301
7302 2016-08-07 Jakub Jelinek <jakub@redhat.com>
7303
7304 PR c/72816
7305 * stor-layout.c (layout_decl): Fix up formatting.
7306 (relayout_decl): Allow DECL to be FIELD_DECL.
7307
7308 2016-08-07 Alan Modra <amodra@gmail.com>
7309
7310 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
7311
7312 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7313
7314 * data-streamer-in.c (streamer_read_wide_int): New.
7315 (streamer_read_widest_int): Renamed function.
7316 * data-streamer-out.c (streamer_write_wide_int): New
7317 (streamer_write_widest_int): Renamed function.
7318 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
7319 data-stream-in.c.
7320 (input_cfg): Call renamed function.
7321 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
7322 data-stream-out.c.
7323 (output_cfg): Call renamed function.
7324 * data-streamer.h: Add declarations.
7325
7326 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7327
7328 * tree-ssa-ccp.c (extend_mask): New param sgn.
7329 Remove ORing with wi::mask.
7330 (get_default_value): Adjust call to extend_mask to pass sign.
7331 (evaluate_stmt): Likewise.
7332
7333 2016-08-06 Jakub Jelinek <jakub@redhat.com>
7334
7335 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
7336 INT64_MAX.
7337
7338 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7339
7340 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
7341 transform if operand's type is pointer to function or method.
7342
7343 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7344
7345 PR tree-optimization/18046
7346 * tree-ssa-threadedge.c: Include cfganal.h.
7347 (simplify_control_statement_condition): If simplifying a
7348 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
7349 with the dominating ASSERT_EXPR before handing it off to VRP.
7350 Mention that a CASE_LABEL_EXPR may be returned.
7351 (thread_around_empty_blocks): Adjust to handle
7352 simplify_control_statement_condition() returning a
7353 CASE_LABEL_EXPR.
7354 (thread_through_normal_block): Likewise.
7355 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
7356 a switch statement by trying to determine which case label
7357 will be taken.
7358
7359 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
7360
7361 PR rtl-optimization/69847
7362 * lra-constraints.c (process_invariant_for_inheritance): Save
7363 pattern instead of src.
7364 (remove_inheritance_pseudos): Use the pattern. Add assert.
7365
7366 2016-08-05 David Malcolm <dmalcolm@redhat.com>
7367
7368 * input.c (string_concat::string_concat): New constructor.
7369 (string_concat_db::string_concat_db): New constructor.
7370 (string_concat_db::record_string_concatenation): New method.
7371 (string_concat_db::get_string_concatenation): New method.
7372 (string_concat_db::get_key_loc): New method.
7373 (class auto_cpp_string_vec): New class.
7374 (get_substring_ranges_for_loc): New function.
7375 (get_source_range_for_substring): New function.
7376 (get_num_source_ranges_for_substring): New function.
7377 (class selftest::lexer_test_options): New class.
7378 (struct selftest::lexer_test): New struct.
7379 (class selftest::ebcdic_execution_charset): New class.
7380 (selftest::ebcdic_execution_charset::s_singleton): New variable.
7381 (selftest::lexer_test::lexer_test): New constructor.
7382 (selftest::lexer_test::~lexer_test): New destructor.
7383 (selftest::lexer_test::get_token): New method.
7384 (selftest::assert_char_at_range): New function.
7385 (ASSERT_CHAR_AT_RANGE): New macro.
7386 (selftest::assert_num_substring_ranges): New function.
7387 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
7388 (selftest::assert_has_no_substring_ranges): New function.
7389 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
7390 (selftest::test_lexer_string_locations_simple): New function.
7391 (selftest::test_lexer_string_locations_ebcdic): New function.
7392 (selftest::test_lexer_string_locations_hex): New function.
7393 (selftest::test_lexer_string_locations_oct): New function.
7394 (selftest::test_lexer_string_locations_letter_escape_1): New function.
7395 (selftest::test_lexer_string_locations_letter_escape_2): New function.
7396 (selftest::test_lexer_string_locations_ucn4): New function.
7397 (selftest::test_lexer_string_locations_ucn8): New function.
7398 (selftest::uint32_from_big_endian): New function.
7399 (selftest::test_lexer_string_locations_wide_string): New function.
7400 (selftest::uint16_from_big_endian): New function.
7401 (selftest::test_lexer_string_locations_string16): New function.
7402 (selftest::test_lexer_string_locations_string32): New function.
7403 (selftest::test_lexer_string_locations_u8): New function.
7404 (selftest::test_lexer_string_locations_utf8_source): New function.
7405 (selftest::test_lexer_string_locations_concatenation_1): New
7406 function.
7407 (selftest::test_lexer_string_locations_concatenation_2): New
7408 function.
7409 (selftest::test_lexer_string_locations_concatenation_3): New
7410 function.
7411 (selftest::test_lexer_string_locations_macro): New function.
7412 (selftest::test_lexer_string_locations_stringified_macro_argument):
7413 New function.
7414 (selftest::test_lexer_string_locations_non_string): New function.
7415 (selftest::test_lexer_string_locations_long_line): New function.
7416 (selftest::test_lexer_char_constants): New function.
7417 (selftest::input_c_tests): Call the new test functions once per
7418 case within the line_table test matrix.
7419 * input.h (struct string_concat): New struct.
7420 (struct location_hash): New struct.
7421 (class string_concat_db): New class.
7422 * substring-locations.h: New header.
7423
7424 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7425
7426 PR tree-optimization/72810
7427 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
7428 the type of the case labels when truncating.
7429
7430 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7431
7432 PR Target/72819
7433 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
7434 (aarch64_fp16_ptr_type_node): Likewise.
7435 * config/aarch64/aarch64-simd-builtins.c
7436 (aarch64_fp16_ptr_type_node): Define.
7437 (aarch64_init_fp16_types): New, refactored out of...
7438 (aarch64_init_builtins): ...here, update to call
7439 aarch64_init_fp16_types.
7440 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
7441 HFmode.
7442 (aapcs_vfp_sub_candidate): Likewise.
7443
7444 2016-08-05 Martin Liska <mliska@suse.cz>
7445 Joshua Cranmer <Pidgeot18@gmail.com>
7446
7447 * gcov.c (line_t::has_block): New function.
7448 (enum loop_type): New enum.
7449 (handle_cycle): New function.
7450 (unblock): Likewise.
7451 (circuit): Likewise.
7452 (get_cycles_count): Likewise.
7453 (accumulate_line_counts): Use new loop detection algorithm.
7454
7455 2016-08-05 Martin Liska <mliska@suse.cz>
7456
7457 * gcov.c (output_intermediate_file): Rename
7458 function_info::line_next to next_file_fn.
7459 (process_file): Likewise.
7460 (read_graph_file): Likewise.
7461 (accumulate_line_counts): Likewise.
7462 (output_lines): Likewise.
7463
7464 2016-08-05 Richard Biener <rguenther@suse.de>
7465
7466 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
7467 restriction on threading to a loop header.
7468
7469 2016-08-05 Richard Biener <rguenther@suse.de>
7470
7471 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
7472 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
7473 adjust loop info accordingly.
7474
7475 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
7476
7477 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
7478 before folding call to __builtin_constant_p with parameters to false.
7479
7480 2016-08-05 Alan Modra <amodra@gmail.com>
7481
7482 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
7483 code accidentally committed 2016-05-02 providing class when given
7484 NO_REGS.
7485
7486 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7487
7488 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
7489 the case label ranges that partially overlap with OP's value
7490 range.
7491
7492 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
7493
7494 PR target/72805
7495 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
7496 Cast builtin function result to __mmask16 instead of __mmask8.
7497 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7498 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
7499 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7500
7501 2016-08-04 David Malcolm <dmalcolm@redhat.com>
7502
7503 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
7504 (ASSERT_TRUE_AT): New macro.
7505 (ASSERT_FALSE): Reimplement in terms of...
7506 (ASSERT_FALSE_AT): New macro.
7507 (ASSERT_STREQ_AT): Fix typo in comment.
7508
7509 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7510
7511 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
7512 labels are exhaustive, designate the label with the widest
7513 range to be the default label.
7514
7515 2016-08-04 Andrew Pinski <apinski@cavium.com>
7516
7517 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
7518 (thunderx_tunings): Use thunderx_vector_cost instead of
7519 generic_vector_cost.
7520
7521 2016-08-04 Martin Liska <mliska@suse.cz>
7522
7523 * gcov.c (main): Fix GNU coding style.
7524 (output_intermediate_file): Likewise.
7525 (process_file): Likewise.
7526 (generate_results): Likewise.
7527 (release_structures): Likewise.
7528 (create_file_names): Likewise.
7529 (find_source): Likewise.
7530 (read_graph_file): Likewise.
7531 (find_exception_blocks): Likewise.
7532 (canonicalize_name): Likewise.
7533 (make_gcov_file_name): Likewise.
7534 (mangle_name): Likewise.
7535 (accumulate_line_counts): Likewise.
7536 (output_branch_count): Likewise.
7537 (read_line): Likewise.
7538
7539 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7540
7541 PR rtl-optimization/71779
7542 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
7543 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
7544 or if it was truncated.
7545
7546 PR rtl-optimization/70903
7547 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
7548
7549 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7550
7551 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
7552 accessing SSA_NAME_PTR_INFO.
7553
7554 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7555
7556 PR 70677
7557 * common/config/avr/avr-common.c (avr_option_optimization_table)
7558 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
7559
7560 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7561
7562 PR 55181
7563 * config/avr/avr.md: New pattern to work around do_store_flag
7564 generating shift instructions for bit extractions.
7565
7566 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7567
7568 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
7569 BITMAP_ALLOC.
7570 (add_equivalence): Likewise.
7571 (get_value_range): Allocate value range with vrp_value_range_pool.
7572 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
7573 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
7574
7575 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
7576
7577 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
7578 the default for the rs6000 port.
7579
7580 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7581
7582 PR middle-end/71876
7583 * calls.c (special_function_p): Remove special handling of
7584 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
7585 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
7586 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
7587
7588 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
7589
7590 PR middle-end/72778
7591 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
7592 Don't stop on regular insns.
7593
7594 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
7595
7596 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
7597 size to DImode boundary.
7598 (nvptx_propagate): Likewise.
7599
7600 2016-08-03 Alan Modra <amodra@gmail.com>
7601
7602 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
7603 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
7604 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
7605 from -mefficient-unaligned-vector. Note that this affects fp too.
7606
7607 2016-08-03 Alan Modra <amodra@gmail.com>
7608
7609 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
7610 cost more.
7611
7612 2016-08-03 Alan Modra <amodra@gmail.com>
7613
7614 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
7615 to a reg. Localize vars.
7616
7617 2016-08-03 Alan Modra <amodra@gmail.com>
7618
7619 * config/rs6000/rs6000.opt: Remove negatives from help strings
7620 and comments.
7621
7622 2016-08-03 Alan Modra <amodra@gmail.com>
7623
7624 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
7625 Delete duplicated code.
7626
7627 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7628
7629 PR middle-end/72778
7630 * lra-spills.c (regno_in_use_p): New.
7631 (lra_final_code_change): Use it.
7632
7633 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7634
7635 PR rtl-optimization/69847
7636 * lra-int.h (struct lra-reg): Use restore_rtx instead of
7637 restore_regno.
7638 (lra_rtx_hash): New.
7639 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
7640 of restore_regno.
7641 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
7642 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
7643 * lra-spills.c (lra_final_code_change): Don't delete insn when the
7644 next insn is USE with the same reg as the current insn source.
7645 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
7646 of restore_regno.
7647 (lra_constraints_init): Call initiate_invariants.
7648 (lra_constraints_finish): Call finish_invariants.
7649 (struct invariant, invariant_t, invariant_ptr_t): New.
7650 (const_invariant_ptr_t, invariants, invariants_pool): New.
7651 (invariant_table, invariant_hash, invariant_eq_p): New.
7652 (insert_invariant, initiate_invariants, finish_invariants): New.
7653 (clear_invariants, invalid_invariant_regs): New.
7654 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
7655 instead of restore_regno.
7656 (invariant_p, process_invariant_for_inheritance): New.
7657 (inherit_in_ebb): Implement invariant inheritance.
7658 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
7659 (remove_inheritance_pseudos): Implement undoing invariant
7660 inheritance.
7661 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
7662 instead of restore_regno.
7663 * lra-assigns.c (regno_live_length): New.
7664 (reload_pseudo_compare_func): Use regno_live_length.
7665 (assign_by_spills): Use restore_rtx instead of restore_regno.
7666 (lra_assign): Ditto. Initiate regno_live_length.
7667
7668 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
7669
7670 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
7671 __builtin_aarch64_fmindf.
7672
7673 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7674
7675 PR tree-optimization/34114
7676 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
7677 information for more control IVs.
7678
7679 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7680
7681 PR tree-optimization/34114
7682 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
7683 PLUS_EXPR case. Handle SSA_NAME case.
7684
7685 2016-08-02 Tamar Christina <tamar.christina@arm.com>
7686
7687 * config/aarch64/aarch64-simd-builtins.def
7688 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
7689 (__builtin_aarch64_fmaxdf): Likewise.
7690 (__builtin_aarch64_smin_nandf): Likewise.
7691 (__builtin_aarch64_smax_nandf): Likewise.
7692 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
7693 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
7694 (<fmaxmin><mode>3): ...this.
7695 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
7696 (vminnm_f64): Likewise.
7697 (vmin_f64): Likewise.
7698 (vmax_f64): Likewise.
7699 * config/aarch64/iterators.md (FMAXMIN): Merge with...
7700 (FMAXMIN_UNS): ...this.
7701 (fmaxmin): Merged with
7702 (fmaxmin_op): ...this...
7703 (maxmin_uns_op): ...in to this.
7704
7705 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7706
7707 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7708 Add support for vec_extract on vector float, vector int, vector
7709 short, and vector char vector types.
7710 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7711 vector float, vector int, vector short, and vector char
7712 optimizations on 64-bit ISA 2.07 systems for both constant and
7713 variable element numbers.
7714 (rs6000_split_vec_extract_var): Likewise.
7715 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
7716 Altivec registers on ISA 2.07 and above.
7717 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
7718 which never was matched due to the split occuring before register
7719 allocation (and the code would not have worked on little endian
7720 systems if it did match). Allow extracts to go to the Altivec
7721 registers if ISA 2.07 (power8). Change from using "" around the
7722 C++ code to using {}'s.
7723 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
7724 vec_extracts when the vector is in memory.
7725 (vsx_extract_v4sf_var): New insn to optimize vector float
7726 vec_extracts when the element number is variable on 64-bit ISA
7727 2.07 systems.
7728 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
7729 for 64-bit ISA 2.07 as well as ISA 3.0.
7730 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
7731 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
7732 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
7733 optimize vector int, vector short, and vector char vec_extracts
7734 when the vector is in memory.
7735 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
7736 optimize vector int, vector short, and vector char vec_extracts
7737 when the element number is variable.
7738
7739 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7740
7741 PR target/71948
7742 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7743 does not overlap with other symbol flags.
7744
7745 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
7746
7747 * config/aarch64/aarch64.h (aarch64_frame):
7748 Remove padding0 and hardfp_offset. Add locals_offset,
7749 initial_adjust, callee_adjust, callee_offset and final_adjust.
7750 * config/aarch64/aarch64.c (aarch64_layout_frame):
7751 Remove unused padding0 and hardfp_offset initializations.
7752 Choose frame layout and set frame variables accordingly.
7753 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7754 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7755 (aarch64_pop_regs): Likewise.
7756 (aarch64_expand_prologue): Remove all decision code, just emit
7757 prolog according to frame variables.
7758 (aarch64_expand_epilogue): Remove all decision code, just emit
7759 epilog according to frame variables.
7760 (aarch64_initial_elimination_offset): Use offset to local/arg area.
7761
7762 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
7763
7764 PR target/72748
7765 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7766 fix_debug_reg_uses after changing source register mode to
7767 V1TImode if source register is undefined.
7768
7769 2015-08-01 Alan Hayward <alan.hayward@arm.com>
7770
7771 PR tree-optimization/71818
7772 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7773 with non invariant evolutions
7774
7775 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7776
7777 PR target/72767
7778 * config/avr/avr.md (length) [branch]: Correct insn length
7779 attribute for forward branches.
7780
7781 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7782
7783 * doc/extend.texi (AVR Built-in Functions): Document
7784 __builtin_avr_nops.
7785 * config/avr/builtins.def (NOPS): New.
7786 * config/avr/avr.c (avr_expand_nops): New static function.
7787 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7788
7789 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7790
7791 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7792 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7793 addresses.
7794
7795 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
7796
7797 * config/aarch64/aarch64.c (vulcan_tunings): Update
7798 vulcan L1 cache_line_size.
7799
7800 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7801
7802 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7803 function that takes a vector memory address, a hard register, an
7804 element number and a temporary base register, and recreates an
7805 address that points to the appropriate element within the vector.
7806 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7807 (rs6000_split_vec_extract_var): Add support for the target of a
7808 vec_extract with variable element number being a scalar memory
7809 location.
7810 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7811 swappable.
7812 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7813 vsx_extract_<mode>_load insn with a new insn that optimizes
7814 storing either element to a memory location, using scratch
7815 registers to pick apart the vector and reconstruct the address.
7816 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7817 (vsx_extract_<mode>_store): Rework alternatives to more correctly
7818 support Altivec registers. Add support for ISA 3.0 Altivec d-form
7819 store instruction.
7820 (vsx_extract_<mode>_var): Add support for extracting a variable
7821 element number from memory.
7822
7823 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7824
7825 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7826 when testing for compares against constants of the form 0xabab.
7827
7828 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7829
7830 PR tree-optimization/57558
7831 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7832 function.
7833 (vect_loop_versioning): Support versioning with niter assumptions.
7834 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7835 (vect_get_loop_niters): New parameter. Reimplement to support
7836 assumptions in loop niter info.
7837 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7838 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7839 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7840 Support loop versioning for niters.
7841 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7842 (vect_free_loop_info_assumptions): New function.
7843 (vectorize_loops): Free loop niter info for loops with flag
7844 LOOP_F_ASSUMPTIONS set if vectorization failed.
7845 * tree-vectorizer.h (struct _loop_vec_info): New field
7846 num_iters_assumptions.
7847 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7848 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7849 (LOOP_REQUIRES_VERSIONING): New macro.
7850 (vect_free_loop_info_assumptions): New decl.
7851
7852 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7853
7854 * cfgloop.h (struct loop): New field constraints.
7855 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7856 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7857 functions.
7858 * cfgloop.c (alloc_loop): Initialize new field.
7859 * cfgloopmanip.c (copy_loop_info): Copy constraints.
7860 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7861 Adjust niter analysis wrto loop constraints.
7862 * doc/loop.texi (@node Number of iterations): Add description for loop
7863 constraints.
7864
7865 2016-07-29 Marek Polacek <polacek@redhat.com>
7866
7867 PR c/7652
7868 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7869 (ix86_expand_round_builtin): Likewise.
7870
7871 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7872 Georg-Johann Lay <avr@gjlay.de>
7873
7874 PR rtl-optimization/71976
7875 * combine.c (get_last_value): Return 0 if the argument for which
7876 the function is called has a wider mode than the recorded value.
7877
7878 2016-07-29 Marek Polacek <polacek@redhat.com>
7879
7880 PR c/7652
7881 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7882 (altivec_expand_st_builtin): Likewise.
7883
7884 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7885
7886 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7887 introduced in r238381.
7888
7889 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7890
7891 PR middle-end/68217
7892 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7893 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7894
7895 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7896
7897 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7898 New declaration.
7899 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7900 Add support for vec_extract of vector double or vector long having
7901 a variable element number on 64-bit ISA 2.07 systems or newer.
7902 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7903 Likewise.
7904 (rs6000_split_vec_extract_var): New function to split a
7905 vec_extract built-in function with variable element number.
7906 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7907 swappable.
7908 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7909 (UNSPEC_VSX_EXTRACT): Likewise.
7910 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7911 direct move instructions to be generated on 64-bit ISA 2.07
7912 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7913 instruction.
7914 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7915 arguments for vec_extract variable element.
7916 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7917 vec_extract with variable element on V2DFmode and V2DImode
7918 vectors.
7919 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7920 -mupper-regs-df requirement, since it isn't needed.
7921 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7922 do direct moves on 64-bit systems, which allows optimization of
7923 vec_extract on 64-bit ISA 2.07 systems and newer.
7924
7925 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7926 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7927
7928 * config/aarch64/aarch64.md
7929 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7930 statement and type.
7931 (<optab>qihi2_aarch64): Likewise, and split into two.
7932 (extendqihi2_aarch64): New.
7933 (zero_extendqihi2_aarch64): New.
7934 * config/aarch64/iterators.md (ldrxt): Remove.
7935 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7936 uxtb/uxth.
7937
7938 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7939
7940 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7941
7942 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7943
7944 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7945 (aarch64_push_reg): New function to push 1 or 2 registers.
7946 (aarch64_pop_reg): New function to pop 1 or 2 registers.
7947 (aarch64_expand_prologue): Use aarch64_push_regs.
7948 (aarch64_expand_epilogue): Use aarch64_pop_regs.
7949
7950 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
7951
7952 PR tree-optimization/71734
7953 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7954 attribute instead of REF_LOOP and use it.
7955 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7956 set it for Loops having non-zero safelen attribute.
7957 (ref_indep_loop_p): Pass zero as initial value for safelen.
7958
7959 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
7960
7961 PR middle-end/72657
7962 PR target/72683
7963 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7964 call using chkp_gimple_call_builtin_p.
7965 (chkp_copy_bounds_for_assign): Likewise.
7966
7967 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7968
7969 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
7970 * config/arm/arm-protos.h (struct tune_params): Likewise.
7971 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
7972 (cortex_a9_sched_adjust_cost): Likewise.
7973 (fa726te_sched_adjust_cost): Likewise.
7974 (arm_adjust_cost): Likewise.
7975 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
7976 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
7977 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
7978 * config/i386/i386.c (ix86_adjust_cost): Likewise.
7979 * config/ia64/ia64.c: Likewise.
7980 * config/m68k/m68k.c: Likewise.
7981 * config/mep/mep.c (mep_adjust_cost): Likewise.
7982 * config/microblaze/microblaze.c (microblaze_adjust_cost):
7983 * Likewise.
7984 * config/mips/mips.c (mips_adjust_cost): Likewise.
7985 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
7986 * Likewise.
7987 * config/pa/pa.c (pa_adjust_cost): Likewise.
7988 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
7989 (rs6000_debug_adjust_cost): Likewise.
7990 * config/sh/sh.c (sh_adjust_cost): Likewise.
7991 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
7992 (hypersparc_adjust_cost): Likewise.
7993 (sparc_adjust_cost): Likewise.
7994 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
7995 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
7996 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
7997 * Likewise.
7998 * config/visium/visium.c (visium_adjust_cost): Likewise.
7999 * doc/tm.texi: Regenerate.
8000 * haifa-sched.c (dep_cost_1): Adjust.
8001 * target.def: Merge adjust_cost and adjust_cost_2.
8002
8003 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8004
8005 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
8006
8007 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8008
8009 * store-motion.c (struct st_expr): Make pattern_regs a vector.
8010 (extract_mentioned_regs): Append to a vector instead of
8011 returning a rtx_expr_list.
8012 (st_expr_entry): Adjust.
8013 (free_st_expr_entry): Likewise.
8014 (store_ops_ok): Likewise.
8015 (store_killed_in_insn): Likewise.
8016 (find_moveable_store): Likewise.
8017
8018 2016-07-28 Martin Liska <mliska@suse.cz>
8019
8020 PR gcov-profile/68025
8021 * tree-profile.c (tree_profiling): Respect
8022 no_profile_instrument_function attribute.
8023 * doc/extend.texi: Document no_profile_instrument_function
8024 attribute.
8025
8026 2016-07-28 Martin Liska <mliska@suse.cz>
8027
8028 PR rtl-optimization/70944
8029 * combine.c (make_compound_operation):
8030 Do not allow make_compound_operation for vector mode
8031
8032 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
8033
8034 PR middle-end/71994
8035 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
8036 before calling get_ops.
8037
8038 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8039
8040 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
8041 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
8042 (BITS_PER_UNIT_LOG): Remove.
8043 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
8044 * expr.c (expand_assignment): Likewise.
8045 * stor-layout.c (initialize_sizetypes): Likewise.
8046
8047 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8048
8049 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
8050 signature of rs6000_expand_vector_extract so that the element
8051 number is a RTX instead of a constant integer.
8052 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
8053 Likewise.
8054 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
8055 (altivec_expand_vec_ext_builtin): Likewise.
8056 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
8057 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
8058 MFVSRLD instruction.
8059
8060 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8061
8062 * input.c (get_pure_location): Move here from tree.c.
8063 (make_location): Likewise. Add header comment.
8064 (selftest::test_accessing_ordinary_linemaps): Verify
8065 pure_location_p, make_location, get_location_from_adhoc_loc and
8066 get_range_from_loc.
8067 * input.h (get_pure_location): Move declaration here from tree.h.
8068 (get_finish): Likewise for inline function.
8069 (make_location): Likewise for declaration.
8070 * tree.c (get_pure_location): Move to input.c.
8071 (make_location): Likewise.
8072 * tree.h (get_pure_location): Move declaration to tree.h.
8073 (get_finish): Likewise for inline function.
8074 (make_location): Likewise for declaration.
8075
8076 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8077
8078 PR middle-end/71078
8079 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
8080
8081 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8082
8083 * system.h (STATIC_ASSERT): Use static_assert if building
8084 with C++11 onwards.
8085
8086 2016-07-27 Richard Biener <rguenther@suse.de>
8087
8088 PR tree-optimization/72517
8089 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8090 Revert change to not compute read-read dependences.
8091
8092 2016-07-27 Richard Biener <rguenther@suse.de>
8093
8094 * predict.c (set_even_probabilities): Make nedges unsigned.
8095
8096 2016-07-27 Martin Liska <mliska@suse.cz>
8097
8098 * predict.c (set_even_probabilities): Handle unlikely edges.
8099 (combine_predictions_for_bb): Likewise.
8100
8101 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8102
8103 PR target/71869
8104 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
8105 __float128 support when we don't have hardware support, so that
8106 the IEEE built-in functions like isgreater, first call __unordkf3
8107 to make sure neither operand is a NaN, and if both operands are
8108 ordered, do the normal comparison.
8109
8110 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8111
8112 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
8113 name.
8114 (extract_code_and_val_from_cond_with_ops): Verify that name is
8115 either cond_op0 or cond_op1.
8116
8117 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8118
8119 PR tree-optimization/18046
8120 * genmodes.c (emit_mode_size_inline): Emit an assert that
8121 verifies that mode is a valid array index.
8122 (emit_mode_nuinits_inline): Likewise.
8123 (emit_mode_inner_inline): Likewise.
8124 (emit_mode_unit_size_inline): Likewise.
8125 (emit_mode_unit_precision_inline): Likewise.
8126 * tree-vrp.c: Include params.h.
8127 (find_switch_asserts): Register edge assertions for the default
8128 label which correspond to the anti-ranges of each case label.
8129 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
8130 * doc/invoke.texi: Document it.
8131
8132 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8133
8134 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
8135 and unnecessary call to gimple_bb.
8136
8137 2016-07-26 Richard Biener <rguenther@suse.de>
8138
8139 PR rtl-optimization/71984
8140 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
8141 for VOIDmode.
8142
8143 2016-07-26 Richard Biener <rguenther@suse.de>
8144
8145 PR middle-end/72517
8146 * expmed.c (extract_bit_field_1): Constrain the vector mode
8147 with element size matching the extraction mode size when
8148 choosing a better vector mode to do the extraction from.
8149
8150 2016-07-26 Richard Biener <rguenther@suse.de>
8151 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8152
8153 PR middle-end/70920
8154 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
8155 pattern.
8156
8157 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8158
8159 * tree-ssa-structalias.c (struct scc_info): Change types of
8160 members to auto_sbitmap and auto_vec.
8161 (scc_info::scc_info): New constructor.
8162 (scc_info::~scc_info): New destructor.
8163 (init_scc_info): Remove.
8164 (free_scc_info): Remove.
8165 (find_indirect_cycles): Adjust.
8166 (perform_var_substitution): Likewise.
8167 (free_var_substitution_info): Likewise.
8168
8169 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8170
8171 * tree-outof-ssa.c (struct elim_graph): Change type of members
8172 to auto_vec and auto_sbitmap.
8173 (elim_graph::elim_graph): New constructor.
8174 (delete_elim_graph): Remove.
8175 (expand_phi_nodes): Adjust.
8176
8177 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8178
8179 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
8180 (new_elim_graph): Adjust.
8181 (clear_elim_graph): Likewise.
8182 (delete_elim_graph): Likewise.
8183 (elim_graph_size): Likewise.
8184 (elim_graph_add_node): Likewise.
8185 (elim_graph_add_edge): Likewise.
8186 (elim_graph_remove_succ_edge): Likewise.
8187 (eliminate_name): Likewise.
8188 (eliminate_build): Likewise.
8189 (elim_forward): Likewise.
8190 (elim_unvisited_predecessor): Likewise.
8191 (elim_backward): Likewise.
8192 (elim_create): Likewise.
8193 (eliminate_phi): Likewise.
8194 (expand_phi_nodes): Likewise.
8195
8196 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8197
8198 * bt-load.c (compute_out): Use auto_sbitmap class.
8199 (link_btr_uses): Likewise.
8200 * cfganal.c (mark_dfs_back_edges): Likewise.
8201 (post_order_compute): Likewise.
8202 (inverted_post_order_compute): Likewise.
8203 (pre_and_rev_post_order_compute_fn): Likewise.
8204 (single_pred_before_succ_order): Likewise.
8205 * cfgexpand.c (pass_expand::execute): Likewise.
8206 * cfgloop.c (verify_loop_structure): Likewise.
8207 * cfgloopmanip.c (fix_bb_placements): Likewise.
8208 (remove_path): Likewise.
8209 (update_dominators_in_loop): Likewise.
8210 * cfgrtl.c (break_superblocks): Likewise.
8211 * ddg.c (check_sccs): Likewise.
8212 (create_ddg_all_sccs): Likewise.
8213 * df-core.c (df_worklist_dataflow): Likewise.
8214 * dse.c (dse_step3): Likewise.
8215 * except.c (eh_region_outermost): Likewise.
8216 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8217 * gcse.c (prune_expressions): Likewise.
8218 (prune_insertions_deletions): Likewise.
8219 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
8220 * graph.c (draw_cfg_nodes_no_loops): Likewise.
8221 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
8222 * lcm.c (compute_earliest): Likewise.
8223 (compute_farthest): Likewise.
8224 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
8225 (unroll_loop_runtime_iterations): Likewise.
8226 (unroll_loop_stupid): Likewise.
8227 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8228 * lra-lives.c: Likewise.
8229 * lra.c (lra): Likewise.
8230 * modulo-sched.c (schedule_reg_moves): Likewise.
8231 (optimize_sc): Likewise.
8232 (get_sched_window): Likewise.
8233 (sms_schedule_by_order): Likewise.
8234 (check_nodes_order): Likewise.
8235 (order_nodes_of_sccs): Likewise.
8236 (order_nodes_in_scc): Likewise.
8237 * recog.c (split_all_insns): Likewise.
8238 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
8239 * reload1.c (reload): Likewise.
8240 * sched-rgn.c (haifa_find_rgns): Likewise.
8241 (split_edges): Likewise.
8242 (compute_trg_info): Likewise.
8243 * sel-sched.c (init_seqno): Likewise.
8244 * store-motion.c (remove_reachable_equiv_notes): Likewise.
8245 * tree-into-ssa.c (update_ssa): Likewise.
8246 * tree-ssa-live.c (live_worklist): Likewise.
8247 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
8248 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8249 * Likewise.
8250 (try_peel_loop): Likewise.
8251 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
8252 * Likewise.
8253 * tree-ssa-pre.c (compute_antic): Likewise.
8254 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8255 * tree-stdarg.c (reachable_at_most_once): Likewise.
8256 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
8257 * var-tracking.c (vt_find_locations): Likewise.
8258
8259 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8260
8261 * sbitmap.h (auto_sbitmap): New class.
8262
8263 2016-07-26 Alan Modra <amodra@gmail.com>
8264
8265 PR target/72103
8266 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
8267 sri->t_icode.
8268
8269 2016-07-25 David Malcolm <dmalcolm@redhat.com>
8270
8271 * input.c (selftest::temp_source_file::temp_source_file): Fix
8272 missing "%s" in fprintf.
8273
8274 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
8275
8276 PR middle-end/71732
8277 * cselib.c (cselib_process_insn): Invalidate argument slots for
8278 const/pure calls.
8279
8280 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8281
8282 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
8283 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
8284 vmulxh_lane_f16, vmulxh_laneq_f16): New.
8285
8286 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8287
8288 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8289 * config/aarch64/aarch64.md (fma, fnma): Support HF.
8290 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
8291
8292 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8293
8294 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8295 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
8296 New.
8297 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
8298 (add<mode>3): Likewise.
8299 (sub<mode>3): Likewise.
8300 (mul<mode>3): Likewise.
8301 (div<mode>3): Likewise.
8302 (*div<mode>3): Likewise.
8303 (<fmaxmin><mode>3): Extend to HF.
8304 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
8305 (fabd<mode>3): Likewise.
8306 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
8307 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
8308 (aarch64_fmulx<mode>): Likewise.
8309 (aarch64_fac<optab><mode>): Likewise.
8310 (aarch64_frecps<mode>): Likewise.
8311 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
8312 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
8313 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
8314 (VSDQ_HSDI): Support HI.
8315 (fcvt_target, FCVT_TARGET): Likewise.
8316 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
8317 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
8318 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
8319 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
8320 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
8321 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
8322 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
8323 vrsqrtsh_f16): New.
8324
8325 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8326
8327 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
8328 * config/aarch64/aarch64-builtins.c (hi_UP): New.
8329 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8330 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
8331 mode.
8332 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8333 (aarch64_cm<optab><mode>): Likewise.
8334 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
8335 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
8336 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
8337 (sqrt<mode>2): Likewise.
8338 (*sqrt<mode>2): Likewise.
8339 (abs<mode>2): Likewise.
8340 (<optab><mode>hf2): New pattern for HF mode.
8341 (<optab>hihf2): Likewise.
8342 * config/aarch64/arm_neon.h: Include arm_fp16.h.
8343 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
8344 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
8345 Support HF mode.
8346 * config/aarch64/arm_fp16.h: New file.
8347 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
8348 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
8349 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
8350 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
8351 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
8352 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
8353 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
8354 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
8355 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
8356 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
8357 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
8358 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
8359 vsqrth_f16): New.
8360
8361 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8362
8363 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
8364 reduc_smin_scal_): Use VDQIF_F16.
8365 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
8366 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
8367 Use VHSDF.
8368 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
8369 * config/aarch64/iterators.md (VDQIF_F16): New.
8370 (vp): Support HF modes.
8371 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
8372 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
8373
8374 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8375
8376 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
8377 "*aarch64_mulx_elt_from_dup<mode>".
8378 (*aarch64_mul3_elt<mode>): Update schedule type.
8379 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
8380 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
8381 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
8382 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
8383 (f, fp): Support HF modes.
8384 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
8385 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
8386 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
8387 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
8388 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
8389 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
8390
8391 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8392
8393 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8394 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
8395 modes.
8396 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
8397 vfmsq_f16): New.
8398
8399 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8400
8401 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8402 * config/aarch64/aarch64-simd.md
8403 (aarch64_rsqrts<mode>): Extend to HF modes.
8404 (fabd<mode>3): Likewise.
8405 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
8406 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
8407 (aarch64_<maxmin_uns>p<mode>): Likewise.
8408 (<su><maxmin><mode>3): Likewise.
8409 (<maxmin_uns><mode>3): Likewise.
8410 (<fmaxmin><mode>3): Likewise.
8411 (aarch64_faddp<mode>): Likewise.
8412 (aarch64_fmulx<mode>): Likewise.
8413 (aarch64_frecps<mode>): Likewise.
8414 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
8415 (add<mode>3): Extend to HF modes.
8416 (sub<mode>3): Likewise.
8417 (mul<mode>3): Likewise.
8418 (div<mode>3): Likewise.
8419 (*div<mode>3): Likewise.
8420 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
8421 HF, V4HF and V8HF.
8422 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
8423 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
8424 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
8425 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
8426 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
8427 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
8428 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
8429 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
8430 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
8431 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
8432 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
8433 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
8434 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
8435 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
8436
8437 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8438
8439 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
8440 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8441 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
8442 (neg<mode>2): Likewise.
8443 (abs<mode>2): Likewise.
8444 (<frint_pattern><mode>2): Likewise.
8445 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8446 (<optab><VDQF:mode><fcvt_target>2): Likewise.
8447 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
8448 (ftrunc<VDQF:mode>2): Likewise.
8449 (<optab><fcvt_target><VDQF:mode>2): Likewise.
8450 (sqrt<mode>2): Likewise.
8451 (*sqrt<mode>2): Likewise.
8452 (aarch64_frecpe<mode>): Likewise.
8453 (aarch64_cm<optab><mode>): Likewise.
8454 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
8455 HF, V4HF and V8HF.
8456 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
8457 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
8458 (stype): New.
8459 * config/aarch64/arm_neon.h (vdup_n_f16): New.
8460 (vdupq_n_f16): Likewise.
8461 (vld1_dup_f16): Use vdup_n_f16.
8462 (vld1q_dup_f16): Use vdupq_n_f16.
8463 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
8464 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
8465 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
8466 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
8467 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
8468 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
8469 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
8470 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
8471 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
8472 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
8473 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
8474 vsqrt_f16, vsqrtq_f16): New.
8475
8476 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8477
8478 * config/aarch64/aarch64-simd.md
8479 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
8480 (aarch64_ext<mode>): Likewise.
8481 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
8482 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
8483 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
8484 and V8HFmode.
8485 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
8486 float16x8_t.
8487 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
8488 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
8489 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
8490 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
8491 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
8492 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
8493 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
8494 New.
8495 (vmov_n_f16): Reimplement using vdup_n_f16.
8496 (vmovq_n_f16): Reimplement using vdupq_n_f16..
8497
8498 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8499
8500 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
8501 "frame_related_p". Generate CFA annotation when it's necessary.
8502 (aarch64_expand_prologue): Use aarch64_add_constant.
8503 (aarch64_expand_epilogue): Likewise.
8504 (aarch64_output_mi_thunk): Pass "false" when calling
8505 aarch64_add_constant.
8506
8507 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8508
8509 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
8510 sequences.
8511
8512 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8513
8514 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
8515 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
8516 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
8517 (aarch64_build_constant): Delete.
8518
8519 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
8520
8521 Revert
8522 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8523
8524 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8525 flag_toplevel_reorder.
8526
8527 2016-07-25 Richard Biener <rguenther@suse.de>
8528
8529 * cgraph.c (cgraph_node::verify_node): Compare against builtin
8530 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
8531 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
8532 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
8533 (streamer_get_builtin_tree): Likewise.
8534 (streamer_write_builtin): Likewise.
8535 * lto-streamer.h (LTO_builtin_decl): Remove.
8536 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
8537 (lto_input_scc): Remove LTO_builtin_decl handling.
8538 (lto_input_tree_1): Liekwise.
8539 * lto-streamer-out.c (lto_output_tree_1): Remove special
8540 handling of builtins.
8541 (DFS::DFS): Likewise.
8542 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
8543 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
8544 assert.
8545 (streamer_write_builtin): Remove.
8546
8547 2016-07-25 Martin Liska <mliska@suse.cz>
8548
8549 * lto-cgraph.c (input_symtab): Don't call get_working_sets
8550 if flag_auto_profile is set to true.
8551
8552 2016-07-25 Martin Liska <mliska@suse.cz>
8553
8554 PR gcov-profile/71868
8555 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
8556 have a function with multiple latches, count them all.
8557
8558 2016-07-25 Martin Liska <mliska@suse.cz>
8559
8560 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
8561
8562 2016-07-25 Martin Liska <mliska@suse.cz>
8563
8564 PR tree-optimization/71987
8565 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
8566 just for SSA_NAMEs. Fix GNU coding style.
8567
8568 2016-07-25 Martin Liska <mliska@suse.cz>
8569
8570 PR gcov-profile/64874
8571 * gcov-io.h: Update command about file format.
8572 * gcov-iov.c (main): Adapt the numbering scheme.
8573
8574 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8575
8576 PR middle-end/66726
8577 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
8578 whose result is used in PHI.
8579 (final_range_test_p): Likewise.
8580 (maybe_optimize_range_tests): Likewise.
8581
8582 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8583
8584 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8585 Reformat two multi-line strings.
8586
8587 2016-07-22 Martin Sebor <msebor@redhat.com>
8588
8589 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
8590
8591 2016-07-22 Martin Sebor <msebor@redhat.com>
8592
8593 PR c/71560
8594 * doc/extend.texi (Compound Literals): Correct and clarify.
8595 (Cast to Union): Same.
8596
8597 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
8598
8599 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8600 comments to explain why certain error messages make mention of
8601 undocumented options.
8602 (rs6000_invalid_builtin): Change error messages to replace mention
8603 of undocumented options with mention of the -mcpu=power9 option
8604 that enables those undocumented options.
8605 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
8606 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
8607 definition of this macro to correct an existing error.
8608 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
8609 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
8610 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
8611 descriptions of built-in functions so that they depend on
8612 -mcpu=power9 instead of on the corresponding undocumented flags.
8613 * doc/invoke.texi (Option Summary): Remove all mention of newly
8614 undocumented flags.
8615 (IBM RS/6000 and PowerPC Options): Likewise.
8616 * doc/md.texi (Constraints for Particuliar Machines): Remove all
8617 mention of newly undocumented flags.
8618
8619 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
8620
8621 * ipa-cp.c (determine_versionability): Do not create constprop clones,
8622 when target_clones attribute is set.
8623
8624 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8625
8626 * common.opt (funsafe-loop-optimizations): Mark ignore.
8627 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
8628 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
8629 related code.
8630 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
8631 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
8632
8633 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8634
8635 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8636 Parameter.
8637 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8638 Parameter.
8639 (number_of_iterations_exit): Warn missed loop optimization for
8640 possible infinite loops.
8641
8642 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
8643
8644 PR target/71216
8645 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
8646 when to emit a ".machine" pseudo-op.
8647
8648 2016-07-22 Martin Liska <mliska@suse.cz>
8649
8650 PR gcov-profile/69028
8651 PR gcov-profile/62047
8652 * coverage.c (coverage_compute_lineno_checksum): Do not
8653 calculate checksum for fns w/o xloc.file.
8654 (coverage_compute_profile_id): Likewise.
8655
8656 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
8657
8658 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
8659 (avr_secondary_reload): ...and implementation.
8660 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
8661 * config/avr/avr.md (reload_in<mode>): Remove insns.
8662 (adjust_len) [lpm]: Remove insn attribute value.
8663 * config/avr/predicates.md (flash_operand): Remove insn predicate.
8664
8665 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8666
8667 PR middle-end/71876
8668 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
8669 attribute.
8670 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
8671 * calls.c (special_function_p): Remove the special handling of the
8672 "__builtin_" prefix.
8673
8674 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8675
8676 PR middle-end/71876
8677 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
8678 if STMT may be an alloca call.
8679 (gimple_alloca_call_p, alloca_call_p): Return only true for the
8680 builtin alloca call.
8681 * calls.h (gimple_maybe_alloca_call_p): New function.
8682 * tree-inline.c (inline_forbidden_p_stmt): Use
8683 gimple_maybe_alloca_call_p here.
8684
8685 2016-07-21 David Malcolm <dmalcolm@redhat.com>
8686
8687 * spellcheck-tree.c (best_macro_match::best_macro_match):
8688 Explictly specify the template arguments when invoking the base
8689 class constructor, to help older C++ compilers.
8690
8691 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8692
8693 PR sanitizer/71953
8694 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
8695 before builtin_decl_implicit.
8696
8697 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8698
8699 * optabs.c (emit_condiitonal_move): Short circuit for identical
8700 sources.
8701
8702 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8703
8704 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
8705 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
8706 (noce_conversion_profitable_p): New.
8707 (noce_try_store_flag_constants): Use it.
8708 (noce_try_addcc): Likewise.
8709 (noce_try_store_flag_mask): Likewise.
8710 (noce_try_cmove): Likewise.
8711 (noce_try_cmove_arith): Likewise.
8712 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
8713 overwriting it.
8714 (noce_convert_multiple_sets): Move cost model to here, from...
8715 (bb_ok_for_noce_convert_multiple_sets) ...here.
8716 (noce_process_if_block): Update calls for above changes.
8717 (noce_find_if_block): Record new noce_if_info parameters.
8718
8719 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8720
8721 * target.def (max_noce_ifcvt_seq_cost): New.
8722 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
8723 * doc/tm.texi: Regenerate.
8724 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
8725 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
8726 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
8727 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
8728 * doc/invoke.texi: Document new params.
8729
8730 2016-07-21 Richard Biener <rguenther@suse.de>
8731
8732 PR tree-optimization/71947
8733 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
8734 ranges have useful limit_vr information.
8735
8736 2016-07-21 Richard Biener <rguenther@suse.de>
8737
8738 * function-tests.c (build_trivial_generic_function): Set
8739 BLOCK_SUPERCONTEXT of DECL_INITIAL.
8740 * omp-low.c (create_omp_child_function): Likewise.
8741 (grid_expand_target_grid_body): Likewise.
8742 * cgraphunit.c (init_lowered_empty_function): Likewise.
8743 (cgraph_node::expand_thunk): Likewise.
8744 * tree-parloops.c (create_loop_fn): Likewise.
8745 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8746
8747 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8748
8749 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8750 in comment.
8751
8752 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
8753
8754 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8755 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8756 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8757 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8758 values for insn attribute.
8759 * config/avr/avr.c (avr_out_insert_notbit): New function.
8760 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8761 ADJUST_LEN_INSV_NOTBIT_0/_7.
8762 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8763
8764 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8765
8766 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
8767 (chrec_convert_1, chrec_convert): Ditto.
8768 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8769 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8770 * tree-vrp.c (adjust_range_with_scev): Ditto.
8771 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8772 (scev_var_range_cant_overflow): New function.
8773 (scev_probably_wraps_p): New parameter. Call above function.
8774 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8775
8776 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8777
8778 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8779 by removing computation of may_be_zero.
8780
8781 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8782
8783 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8784
8785 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
8786
8787 Improving concepts performance and diagnostics.
8788 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8789 for constraint satisfaction and subsumption.
8790 * timevar.h (auto_timevar): New constructor that matches the push/pop
8791 pattern of usage in pt.c.
8792
8793 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8794
8795 * hwint.h (HOST_WIDE_INT_0): New define.
8796 (HOST_WIDE_INT_0U): Ditto.
8797 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8798 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8799 * simplify-rtx.c: Ditto.
8800 * tree-object-size.c: Ditto.
8801
8802 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8803
8804 * config/s390/s390.c (s390_encode_section_info): Remove mode size
8805 check.
8806
8807 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8808
8809 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8810 * combine.c: Use HOST_WIDE_INT_M1U instead of
8811 ~(unsigned HOST_WIDE_INT) 0.
8812 * double-int.h: Ditto.
8813 * dse.c: Ditto.
8814 * dwarf2asm.c:Ditto.
8815 * expmed.c: Ditto.
8816 * genmodes.c: Ditto.
8817 * match.pd: Ditto.
8818 * read-rtl.c: Ditto.
8819 * tree-ssa-loop-ivopts.c: Ditto.
8820 * tree-ssa-loop-prefetch.c: Ditto.
8821 * tree-vect-generic.c: Ditto.
8822 * tree-vect-patterns.c: Ditto.
8823 * tree.c: Ditto.
8824
8825 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8826
8827 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8828 constant addresses outside [0,0xc0] into a register.
8829 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
8830 cases where the base address register is unused after.
8831 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8832 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8833 (avr_out_store_psi_reg_disp_tiny): Same.
8834
8835 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8836
8837 Implement attribute progmem on reduced Tiny cores by adding
8838 flash offset 0x4000 to respective symbols.
8839
8840 PR target/71948
8841 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8842 documentation how it works on reduced Tiny cores.
8843 (AVR Named Address Spaces): No support for reduced Tiny.
8844 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8845 (avr_address_tiny_pm_p): New static function.
8846 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8847 if the address is in progmem.
8848 (avr_assemble_integer): Same.
8849 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8850 for symbol_ref in progmem.
8851 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8852 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8853 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8854
8855 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
8856
8857 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
8858 * configure: Regenerate.
8859 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8860 (USE_THIN_ARCHIVES): New variable.
8861 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8862 this archive as a thin archive.
8863
8864 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8865
8866 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8867 same location as last time, don't skip if we have fix-it hints.
8868 Clarify the skipping logic by converting it from one "if" clause
8869 to repeated "if" clauses.
8870 * spellcheck-tree.c: Include "cpplib.h".
8871 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8872 (best_macro_match::best_macro_match): New constructor.
8873 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8874 Move here from c/c-decl.c.
8875 (class best_macro_match): Move here from c/c-decl.c, converting
8876 from a typedef to a subclass, gaining a ctor.
8877
8878 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8879
8880 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8881 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8882 define...
8883 (avr_addr_space_diagnose_usage): ...and implementation.
8884 (avr_addr_space_supported_p): New function.
8885 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8886 report bad address space usage if that space is supported.
8887 (avr_insert_attributes): Same. No more complain about unsupported
8888 address spaces.
8889 * config/avr/avr-c.c (tm_p.h): Include it.
8890 (avr_cpu_cpp_builtins): Only define addr-space related built-in
8891 macro if avr_addr_space_supported_p.
8892
8893 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8894
8895 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8896 flag_toplevel_reorder.
8897
8898 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8899
8900 * gcc-rich-location.c
8901 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8902 a const char *.
8903 * gcc-rich-location.h
8904 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8905
8906 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8907
8908 * target.def (addr_space): Add new diagnose_usage to hook vector.
8909 * targhooks.c (default_addr_space_diagnose_usage): Add default
8910 implementation and...
8911 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8912 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8913 is some address space, call targetm.addr_space.diagnose_usage.
8914 * doc/tm.texi.in (Named Address Spaces): Add anchor for
8915 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8916 * doc/tm.texi: Regenerate.
8917
8918 2016-07-20 Martin Liska <mliska@suse.cz>
8919
8920 PR middle-end/71898
8921 * graphite-isl-ast-to-gimple.c (later_of_the_two):
8922 Properly handly PHI stmts.
8923
8924 2016-07-20 Bin Cheng <bin.cheng@arm.com>
8925
8926 PR tree-optimization/71503
8927 PR tree-optimization/71683
8928 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8929 and break.
8930
8931 2016-07-20 Martin Liska <mliska@suse.cz>
8932
8933 * doc/invoke.texi (-fipa-ra): Document when the option is
8934 disabled. Fix a typo.
8935
8936 2016-07-20 Martin Liska <mliska@suse.cz>
8937
8938 * Makefile.in: Include fibonacci_heap.c
8939 * fibonacci_heap.c: New file.
8940 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8941 (fibonacci_heap::union_with): Fix deletion of the second heap.
8942 * selftest-run-tests.c (selftest::run_tests): Incorporate
8943 fibonacci heap tests.
8944 * selftest.h: Declare fibonacci_heap_c_tests.
8945
8946 2016-07-20 Martin Liska <mliska@suse.cz>
8947
8948 * selftest-run-tests.c (selftest::run_tests): New function.
8949 * selftest.h (sreal_c_tests): Declare.
8950 * sreal.c (sreal_verify_basics): New function.
8951 (verify_aritmetics): Likewise.
8952 (sreal_verify_arithmetics): Likewise.
8953 (verify_shifting): Likewise.
8954 (sreal_verify_shifting): Likewise.
8955 (void sreal_c_tests): Likewise.
8956
8957 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8958
8959 PR rtl-optimization/71916
8960 * cfgrtl.c (contains_no_active_insn_p): Return false also for
8961 bb which have a single succ fake edge.
8962
8963 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
8964
8965 PR debug/71855
8966 * dwarf2out.c (gen_subprogram_die): Only call
8967 gen_unspecified_parameters_die while dumping early dwarf.
8968
8969 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8970
8971 PR middle-end/71874
8972 * gimple-fold.c (fold_builtin_memory_op): Use
8973 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8974
8975 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
8976
8977 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
8978 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
8979 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
8980 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
8981 * combine.c: Ditto.
8982 * cse.c: Ditto.
8983 * dojump.c: Ditto.
8984 * double-int.c: Ditto.
8985 * dse.c: Ditto.
8986 * dwarf2out.c: Ditto.
8987 * expmed.c: Ditto.
8988 * expr.c: Ditto.
8989 * fold-const.c: Ditto.
8990 * function.c: Ditto.
8991 * fwprop.c: Ditto.
8992 * genmodes.c: Ditto.
8993 * hwint.c: Ditto.
8994 * hwint.h: Ditto.
8995 * ifcvt.c: Ditto.
8996 * loop-doloop.c: Ditto.
8997 * loop-invariant.c: Ditto.
8998 * loop-iv.c: Ditto.
8999 * match.pd: Ditto.
9000 * optabs.c: Ditto.
9001 * real.c: Ditto.
9002 * reload.c: Ditto.
9003 * rtlanal.c: Ditto.
9004 * simplify-rtx.c: Ditto.
9005 * stor-layout.c: Ditto.
9006 * toplev.c: Ditto.
9007 * tree-ssa-loop-ivopts.c: Ditto.
9008 * tree-vect-generic.c: Ditto.
9009 * tree-vect-patterns.c: Ditto.
9010 * tree.c: Ditto.
9011 * tree.h: Ditto.
9012 * ubsan.c: Ditto.
9013 * varasm.c: Ditto.
9014 * wide-int-print.cc: Ditto.
9015 * wide-int.cc: Ditto.
9016 * wide-int.h: Ditto.
9017
9018 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9019
9020 * selftest.c (selftest::assert_streq): Handle NULL values of
9021 val_actual and val_expected.
9022
9023 2016-07-19 Martin Jambor <mjambor@suse.cz>
9024
9025 PR fortran/71688
9026 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
9027 rather than cgraph_create_node to get a call graph node.
9028
9029 2016-07-19 Richard Biener <rguenther@suse.de>
9030
9031 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
9032 handle all tcc_constant bases and valueize SSA names.
9033 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
9034 tcc_constant bases.
9035
9036 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9037
9038 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
9039 the flags of the exit block and bb2, not just the entry block.
9040
9041 2016-07-19 Richard Biener <rguenther@suse.de>
9042
9043 PR tree-optimization/71901
9044 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9045 align member, group stuff with the bitfield.
9046 (vn_ref_op_align_unit): New inline.
9047 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
9048 record element alignment and operand 3 unchanged.
9049 (ao_ref_init_from_vn_reference): Adjust.
9050 (valueize_refs_1): Likewise.
9051 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9052
9053 2016-07-19 Richard Biener <rguenther@suse.de>
9054
9055 PR tree-optimization/71908
9056 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
9057 symbolic constants in a more reliable way.
9058
9059 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
9060
9061 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
9062 comment.
9063 (vect_update_inits_of_drs): Likewise.
9064 (vect_create_cond_for_alias_checks): Likewise.
9065 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
9066
9067 2016-07-19 Richard Biener <rguenther@suse.de>
9068
9069 PR lto/71907
9070 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
9071 with an abstract origin that is not an inlined function outer
9072 scope add a self-reference as abstract origin.
9073 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
9074
9075 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9076
9077 PR target/71493
9078 * config/rs6000/rs6000.c (rs6000_function_value): Fix
9079 unintentional System V.4 structure return breakage for structures
9080 with a single floating point element.
9081
9082 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9083
9084 PR tree-optimization/71734
9085 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
9086 contains REF, use it to check safelen, assume that safelen value
9087 must be greater 1, fix style.
9088 (ref_indep_loop_p_2): Add REF_LOOP argument.
9089 (ref_indep_loop_p): Pass LOOP as additional argument to
9090 ref_indep_loop_p_2.
9091
9092 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
9093
9094 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
9095 allocation in the prologue.
9096 * explow.c (get_dynamic_stack_base): New function to return an address
9097 expression for the dynamic stack base.
9098 (get_dynamic_stack_size): New function to do the required dynamic stack
9099 space size calculations.
9100 (allocate_dynamic_stack_space): Use new functions.
9101 (align_dynamic_address): Move some code from
9102 allocate_dynamic_stack_space to new function.
9103 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
9104
9105 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9106
9107 * config/s390/s390.c (s390_encode_section_info): Always set
9108 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
9109 found.
9110
9111 2016-07-18 Richard Biener <rguenther@suse.de>
9112
9113 PR tree-optimization/71893
9114 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
9115 for sizetype cast added by array_ref_element_size.
9116 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9117
9118 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
9119
9120 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
9121 register parameters. Remove code to initialize argument pointer
9122 on TARGET_64BIT. Optimize call to _mcount when it can be reached
9123 using a pc-relative branch. Cleanup conditional code.
9124 * config/pa/pa.md (call_mcount): New expander.
9125 (call_mcount_nonpic): New insn.
9126 (call_mcount_pic): New insn and split.
9127 (call_mcount_pic_post_reload): New insn.
9128 (call_mcount_64bit): New insn and split.
9129 (call_mcount_64bit_post_reload): New insn.
9130
9131 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
9132
9133 * config/avr/predicates.md (const_m255_to_m1_operand): New.
9134 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
9135 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
9136 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
9137 (*usum_widenqihi3, *udiff_widenqihi3)
9138 (*addhi3_zero_extend.const): New combiner insns.
9139 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
9140 just 1 bit is affected.
9141 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
9142 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
9143
9144 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9145
9146 * omp-low.c (lower_omp_target): Mark data clauses with
9147 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
9148 zero-length subarrays.
9149
9150 2016-07-15 Richard Biener <rguenther@suse.de>
9151
9152 PR tree-optimization/71881
9153 * tree-loop-distribution.c (destroy_loop): Remove blocks in
9154 reverse DOM order to make debug temp generation happy.
9155
9156 2016-07-15 Richard Biener <rguenther@suse.de>
9157
9158 PR tree-optimization/71887
9159 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
9160 verify it is not zero for division / modulo handling.
9161 (value_replacement): Adjust.
9162
9163 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
9164 Julian Brown <julian@codesourcery.com>
9165
9166 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
9167 * config/aarch64/aarch64-cost-tables.h
9168 (vulcan_extra_costs): New variable.
9169 * config/aarch64/aarch64.c
9170 (vulcan_addrcost_table): Likewise.
9171 (vulcan_regmove_cost): Likewise.
9172 (vulcan_vector_cost): Likewise.
9173 (vulcan_branch_cost): Likewise.
9174 (vulcan_tunings): Likewise.
9175
9176 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
9177
9178 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
9179 (output_in_order): Loop over undefined variables too. Output them
9180 via assemble_undefined_decl. Skip variables that correspond to hard
9181 registers or have value-exprs.
9182 * varpool.c (symbol_table::output_variables): Handle undefined
9183 variables together with defined ones.
9184
9185 2016-07-15 Richard Biener <rguenther@suse.de>
9186
9187 * tree-ssa-pre.c (get_representative_for): Make sure to return
9188 the value number of SSA names.
9189 (phi_translate_1): get_representative_for cannot return NULL.
9190 (do_pre_regular_insertion): Remove redundant call to
9191 fully_constant_expression.
9192 (do_pre_partial_partial_insertion): Likewise.
9193
9194 2016-07-15 Bin Cheng <bin.cheng@arm.com>
9195
9196 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
9197 (derive_simple_iv_with_niters): New function.
9198 (simple_iv): Rewrite using simple_iv_with_niters.
9199 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
9200 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9201 function.
9202 (number_of_iterations_exit): Rewrite using above function.
9203 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9204 Decl.
9205
9206 2016-07-15 Richard Biener <rguenther@suse.de>
9207
9208 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
9209 vec_construct cost.
9210
9211 2016-07-14 Jakub Jelinek <jakub@redhat.com>
9212
9213 PR tree-optimization/71872
9214 * tree-data-ref.c (get_references_in_stmt): Ignore references
9215 with is_gimple_constant get_base_address.
9216
9217 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9218
9219 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
9220 (TARGET_HAVE_LDACQD): New macro.
9221 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
9222 than TARGET_HAVE_LDACQ.
9223 (arm_load_acquire_exclusivedi): Likewise.
9224 (arm_store_release_exclusivedi): Likewise.
9225
9226 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9227
9228 PR rtl-optimization/71878
9229 * lra-constraints.c (match_reload): Pass information about other
9230 output operands. Create new unique register value if matching input
9231 operand shares same register value as output operand being considered.
9232 (curr_insn_transform): Record output operands already processed.
9233
9234 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9235
9236 PR target/65951
9237 PR tree-optimization/70923
9238 * tree-vect-patterns.c: Include mult-synthesis.h.
9239 (target_supports_mult_synth_alg): New function.
9240 (synth_lshift_by_additions): Likewise.
9241 (apply_binop_and_append_stmt): Likewise.
9242 (vect_synth_mult_by_constant): Likewise.
9243 (target_has_vecop_for_code): Likewise.
9244 (vect_recog_mult_pattern): Use above functions to synthesize vector
9245 multiplication by integer constants.
9246
9247 2016-07-14 Alan Modra <amodra@gmail.com>
9248
9249 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
9250 gpr alternatives. Correct '*' placement on Y,r alternative.
9251 Add '*' on operand 1 of r,r alternative.
9252
9253 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9254
9255 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
9256 * expmed.h: ... Here.
9257
9258 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
9259
9260 * gimple.h (stmt_can_terminate_bb_p): New function.
9261 * tree-cfg.c (need_fake_edge_p): Rename to ...
9262 (stmt_can_terminate_bb_p): ... this; return true if stmt can
9263 throw external; handle const and pure calls.
9264 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
9265
9266 2016-07-14 Richard Biener <rguenther@suse.de>
9267
9268 PR tree-optimization/71866
9269 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
9270 (do_hoist_insertion): Avoid endless recursion when we
9271 didn't insert anything because we managed to simplify
9272 things down to a constant or SSA name.
9273 (fully_constant_expression): Re-write in terms of ...
9274 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
9275 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
9276 vn_nary_build_or_lookup_1.
9277 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
9278 (vn_nary_build_or_lookup): ... this which now wraps it.
9279
9280 2016-07-14 Alan Modra <amodra@gmail.com>
9281
9282 PR target/71733
9283 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
9284 with p9_vector override before power9-dform override.
9285
9286 2016-07-13 Andi Kleen <ak@linux.intel.com>
9287
9288 * value-prof.c (gimple_value_profile_transformations): Don't run
9289 when auto_profile is on.
9290
9291 2016-07-13 Andi Kleen <ak@linux.intel.com>
9292
9293 * auto-profile.c (update_inlined_ind_target,
9294 afdo_indirect_call): Print information to dump file.
9295
9296 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
9297
9298 * genrecog.c (special_predicate_operand_p): New function.
9299 (predicate_name): Move function.
9300 (validate_pattern): Don't warn about missing mode for all
9301 define_special_predicate predicates.
9302
9303 2016-07-13 Bin Cheng <bin.cheng@arm.com>
9304
9305 * tree-vect-data-refs.c (vect_no_alias_p): New function.
9306 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
9307 resolve alias checks which are known at compilation time.
9308 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
9309 alias checks are resolved. Move dump info for too many runtime
9310 alias checks to here...
9311 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
9312
9313 2016-07-13 Richard Biener <rguenther@suse.de>
9314
9315 PR tree-optimization/24574
9316 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
9317 position and add shift, rotate, divison and modulo support
9318 for left zero.
9319 (value_replacement): Pass in argument position to absorbing_element_p.
9320
9321 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
9322
9323 PR ipa/71633
9324 * ipa-inline-transform.c (inline_call): Support
9325 instrumented thunks.
9326
9327 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9328
9329 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
9330 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
9331 divide feature.
9332 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
9333 Baseline. Make initial alternative TARGET_32BIT only.
9334 (udivsi3): Likewise.
9335 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
9336 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
9337 target.
9338
9339 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9340
9341 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
9342 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
9343 availability with TARGET_HAVE_MOVT.
9344 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
9345 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
9346 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
9347 UINTVAL.
9348 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
9349 extra instruction if MOVW is available. Use a cost variable
9350 incremented by COSTS_N_INSNS (1) when the condition match rather than
9351 returning an arithmetic expression based on COSTS_N_INSNS. Make
9352 constant with bottom half word zero cost 2 instruction if MOVW is
9353 available.
9354 * config/arm/arm.md (define_attr "arch"): Add v8mb.
9355 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
9356 target is ARMv8-M Baseline.
9357 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
9358 (arm_movtas_ze): Likewise.
9359 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
9360 alternative for constants satisfying j constraint.
9361 (thumb1_movsi_insn): Likewise.
9362 (movsi splitter for K alternative): Tighten condition to not trigger
9363 if movt is available and j constraint is satisfied.
9364 (Pe immediate splitter): Likewise.
9365 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
9366 constant fitting in an halfword to use MOVW.
9367 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
9368 effective target.
9369
9370 2016-07-13 Richard Biener <rguenther@suse.de>
9371
9372 PR middle-end/71104
9373 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
9374 gimplifying the LHS. Make sure to gimplify a returning twice
9375 call LHS without using SSA names.
9376
9377 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9378
9379 * tree-data-ref.c (find_data_references_in_stmt): Remove
9380 unnecessary call to vec::release.
9381 (graphite_find_data_references_in_stmt): Likewise.
9382 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
9383 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9384
9385 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9386
9387 * cfgexpand.c (expand_used_vars): Make the type of a local
9388 variable auto_vec.
9389 * genmatch.c (lower_for): Likewise.
9390 * haifa-sched.c (haifa_sched_init): Likewise.
9391 (add_to_speculative_block): Likewise.
9392 (create_check_block_twin): Likewise.
9393 * predict.c (handle_missing_profiles): Likewise.
9394 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
9395 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
9396 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
9397 Likewise.
9398 (maybe_lower_iteration_bound): Likewise.
9399 * tree-ssa-sccvn.c (DFS): Likewise.
9400 * tree-stdarg.c (reachable_at_most_once): Likewise.
9401 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
9402 (vectorizable_store): Likewise.
9403
9404 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9405
9406 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
9407 (sccvn_dom_walker): make cond_stack an auto_vec.
9408
9409 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9410
9411 * ree.c (struct ext_state): Make type of members auto_vec.
9412 (find_and_remove_re): Adjust.
9413
9414 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9415
9416 * cfgexpand.c (struct stack_vars_data): Make type of fields
9417 auto_vec.
9418 (expand_used_vars): Adjust.
9419
9420 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9421
9422 * ipa.c (record_cdtor_fn): Adjust.
9423 (build_cdtor_fns): Likewise.
9424 (ipa_cdtor_merge): Make static_ctors and static_dtors local
9425 variables.
9426
9427 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9428
9429 * genextract.c (struct accum_extract): Add constructor and make
9430 members auto_vec.
9431 (gen_insn): Adjust.
9432
9433 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9434
9435 * tree.c (struct free_lang_data_d): Add constructor and change
9436 types of members to ones that automatically manage resources.
9437 (fld_worklist_push): Adjust.
9438 (find_decls_types): Likewise.
9439 (find_decls_types_in_eh_region): Likewise.
9440 (free_lang_data_in_cgraph): Stop manually creating and
9441 destroying members of free_lang_data_d.
9442
9443 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
9444
9445 PR rtl-optimization/68961
9446 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
9447 peephole variant. Use sse_reg_operand predicates.
9448
9449 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
9450
9451 * config/i386/predicates.md (x86_64_immediate_operand)
9452 <case CONST_INT>: Remove unneeded truncation to DImode.
9453 <case CONST>: Ditto.
9454 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9455
9456 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9457
9458 PR target/71805
9459 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
9460 The xxperm and xxpermr instructions require that the 2nd input
9461 operand overlap with the output operand, and not the 1st.
9462 (altivec_vperm_v8hiv16qi): Likewise.
9463 (altivec_vperm_<mode>_uns_internal): Likewise.
9464 (altivec_vpermr_<mode>_internal): Likewise.
9465 (vperm_v8hiv4si): Likewise.
9466 (vperm_v16qiv8hi): Likewise.
9467
9468 2016-07-12 Nathan Sidwell <nathan@acm.org>
9469
9470 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
9471 when -mno-pic-data-is-text-relative is in effect, by default.
9472 * doc/invoke.texi (mpic-data-is-text-relative): Document new
9473 behavior and clarify.
9474
9475 2016-07-12 Martin Liska <mliska@suse.cz>
9476
9477 * params.def: Add avg-loop niter.
9478 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
9479 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
9480 * doc/invoke.texi: Document the new parameter.
9481
9482 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9483
9484 PR middle-end/71700
9485 * expr.c (store_constructor): Mask sign-extended bits when widening
9486 sub-word constructor element at the start of a word.
9487
9488 2016-07-12 Martin Liska <mliska@suse.cz>
9489
9490 * Makefile.in: Append rule for params-options.h.
9491 * params-options.h: New file.
9492
9493 2016-07-12 Martin Liska <mliska@suse.cz>
9494
9495 * ira-build.c (mark_loops_for_removal): Properly iterate
9496 loops.
9497
9498 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
9499 Richard Biener <rguenther@suse.de>
9500
9501 PR tree-optimization/23286
9502 PR tree-optimization/70159
9503 * doc/invoke.texi: Document -fcode-hoisting.
9504 * common.opt (fcode-hoisting): New flag.
9505 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
9506 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
9507 (do_regular_insertion): Rename to ...
9508 (do_pre_regular_insertion): ... this and amend general comments
9509 on insertion strathegy.
9510 (do_partial_partial_insertion): Rename to ...
9511 (do_pre_partial_partial_insertion): ... this.
9512 (do_hoist_insertion): New function.
9513 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
9514 and call do_hoist_insertion properly.
9515 (insert): Adjust.
9516 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
9517 (pass_pre::execute): Register hoist_insert stats.
9518
9519 2016-07-12 Jakub Jelinek <jakub@redhat.com>
9520
9521 PR middle-end/71716
9522 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
9523 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
9524 is different from mode's bitsize. Small cleanup.
9525
9526 2016-07-12 Richard Biener <rguenther@suse.de>
9527
9528 PR rtl-optimization/68961
9529 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
9530 to simplify to a non-constant.
9531
9532 2016-07-11 Jakub Jelinek <jakub@redhat.com>
9533
9534 PR middle-end/71758
9535 * omp-low.c (expand_omp_target): Gimplify device.
9536
9537 PR tree-optimization/71823
9538 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
9539 to get vec_oprnds2 from op2.
9540
9541 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
9542
9543 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
9544 Hoist common subexpressions.
9545 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9546
9547 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
9548
9549 PR target/71800
9550 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
9551 prevent generation of 'stxsiwx' on pre Power8 hardware.
9552
9553 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9554
9555 * input.c: Include cpplib.h.
9556 (selftest::temp_source_file): New class.
9557 (selftest::temp_source_file::temp_source_file): New ctor.
9558 (selftest::temp_source_file::~temp_source_file): New dtor.
9559 (selftest::should_have_column_data_p): New function.
9560 (selftest::test_should_have_column_data_p): New function.
9561 (selftest::temp_line_table): New class.
9562 (selftest::temp_line_table::temp_line_table): New ctor.
9563 (selftest::temp_line_table::~temp_line_table): New dtor.
9564 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
9565 it to create a temp_line_table.
9566 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
9567 locations that are known to have column data.
9568 (selftest::line_table_case): New struct.
9569 (selftest::test_reading_source_line): Move tempfile handling
9570 to class temp_source_file.
9571 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
9572 (selftest::assert_token_loc_eq): New function.
9573 (ASSERT_TOKEN_LOC_EQ): New macro.
9574 (selftest::test_lexer): New function.
9575 (selftest::boundary_locations): New array.
9576 (selftest::input_c_tests): Call test_should_have_column_data_p.
9577 Loop over a test matrix of interesting values of location and
9578 default_range_bits, calling test_lexer on each case in the matrix.
9579 Move call to test_accessing_ordinary_linemaps into the matrix.
9580 * selftest.h (ASSERT_EQ): Reimplement in terms of...
9581 (ASSERT_EQ_AT): New macro.
9582
9583 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
9584
9585 PR target/71801
9586 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9587 Don't convert TImode in debug insn.
9588
9589 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9590
9591 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
9592 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
9593 (tree_type_common::lang_flag_7): New.
9594 (tree_type_common::spare): Reduce size.
9595 * tree.h (TYPE_ALIGN_OK): Remove.
9596 (TYPE_LANG_FLAG_7): New.
9597 (get_inner_reference): Adjust header.
9598 * print-tree.c (print_node): Adjust.
9599 * expr.c (get_inner_reference): Remove parameter keep_aligning.
9600 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
9601 calls to get_inner_reference.
9602 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
9603 handling of TYPE_ALIGN_OK.
9604 * builtins.c (get_object_alignment_2): Adjust call to
9605 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
9606 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
9607 TYPE_ALIGN_OK.
9608 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
9609 * cfgexpand.c (expand_debug_expr): Likewise.
9610 * dbxout.c (dbxout_expand_expr): Likewise.
9611 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
9612 loc_list_from_tree, fortran_common): Likewise.
9613 * fold-const.c (optimize_bit_field_compare,
9614 decode_field_reference, fold_unary_loc, fold_comparison,
9615 split_address_to_core_and_offset): Likewise.
9616 * gimple-laddress.c (execute): Likewise.
9617 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
9618 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
9619 * hsa-gen.c (gen_hsa_addr): Likewise.
9620 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
9621 * tsan.c (instrument_expr): Likewise.
9622 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
9623 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
9624 * tree-affine.c (tree_to_aff_combination,
9625 get_inner_reference_aff): Adjust calls to get_inner_reference.
9626 * tree-data-ref.c (split_constant_offset_1,
9627 dr_analyze_innermost): Likewise.
9628 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
9629 * tree-sra.c (ipa_sra_check_caller): Likewise.
9630 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
9631 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
9632 bswap_replace): Likewise.
9633 * tree-vect-data-refs.c (vect_check_gather,
9634 vect_analyze_data_refs): Likewise.
9635 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
9636 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
9637 TYPE_ALIGN_OK.
9638
9639 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9640
9641 * Makefile.in (selftest-valgrind): New phony target.
9642 * function-tests.c (selftest::build_cfg): Delete pass instances
9643 created by the test.
9644 (selftest::convert_to_ssa): Likewise.
9645 (selftest::test_expansion_to_rtl): Likewise.
9646 * tree-cfg.c (selftest::test_linear_chain): Release dominator
9647 vectors.
9648 (selftest::test_diamond): Likewise.
9649
9650 2016-07-11 Richard Biener <rguenther@suse.de>
9651
9652 PR tree-optimization/71816
9653 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
9654 than replacing all of its operands.
9655
9656 2016-07-11 Alan Modra <amodra@gmail.com>
9657
9658 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
9659 (ctr<mode>): Add unspec.
9660 (ctr<mode>_internal*): Likewise.
9661
9662 2016-07-08 James Bowman <james.bowman@ftdichip.com>
9663
9664 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
9665 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
9666
9667 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
9668
9669 PR rtl-optimization/71621
9670 * lra-constraints.c (process_alt_operands): Check combination of
9671 reg class and mode.
9672
9673 2016-07-08 Jason Merrill <jason@redhat.com>
9674 Richard Biener <rguenther@suse.de>
9675
9676 P0145: Refining Expression Order for C++.
9677 * gimplify.c (initial_rhs_predicate_for): New.
9678 (gimplfy_modify_expr): Gimplify RHS before LHS.
9679
9680 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9681
9682 PR target/71297
9683 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9684 Allow standard error handling to take over when a wrong number
9685 of arguments is presented to __builtin_vec_ld () or
9686 __builtin_vec_st ().
9687
9688 2016-07-08 Jiong Wang <jiong.wang@arm.com>
9689
9690 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
9691 variants.
9692 (smin): Likewise.
9693 (fmax): New entry.
9694 (fmin): Likewise.
9695 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
9696 __builtin_aarch64_fmaxv2sf.
9697 (vmaxnmq_f32): Likewise.
9698 (vmaxnmq_f64): Likewise.
9699 (vminnm_f32): Likewise.
9700 (vminnmq_f32): Likewise.
9701 (vminnmq_f64): Likewise.
9702
9703 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9704
9705 PR target/71806
9706 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
9707 enable -mfloat128-hardware by default.
9708 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
9709 that IEEE 128-bit hardware support needs.
9710 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9711 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
9712 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
9713 floating point requires.
9714 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9715 -mfloat128 and -mfloat128-hardware changes.
9716
9717 2016-07-08 Alan Hayward <alan.hayward@arm.com>
9718
9719 PR tree-optimization/71667
9720 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
9721
9722 2016-07-08 Martin Liska <mliska@suse.cz>
9723
9724 PR middle-end/71606
9725 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
9726 folding produces SAVE_EXPRs, thus return false for the type.
9727
9728 2016-07-07 Martin Liska <mliska@suse.cz>
9729
9730 * file-find.c (remove_prefix): New function.
9731 * file-find.h (remove_prefix): Declare the function.
9732 * gcc-ar.c (main): Skip a folder of the wrapper if
9733 a wrapped binary would point to the same file.
9734
9735 2016-07-07 Jan Hubicka <jh@suse.cz>
9736
9737 * tree-scalar-evolution.c (iv_can_overflow_p): export.
9738 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
9739 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9740
9741 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
9742
9743 PR ipa/71624
9744 * ipa-inline-analysis.c (compute_inline_parameters): Set
9745 local.can_change_signature to false for intrumentation
9746 thunk callees.
9747
9748 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9749
9750 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9751 with TARGET_HAVE_MOVT.
9752 (TARGET_HAVE_MOVT): Define.
9753 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9754 availability with TARGET_HAVE_MOVT.
9755 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9756 availability.
9757 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9758 TARGET_THUMB2.
9759 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9760 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9761 * config/arm/constraints.md (define_constraint "j"): Use
9762 TARGET_HAVE_MOVT to check MOVT availability.
9763
9764 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9765
9766 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9767
9768 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9769
9770 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9771 (armv8-m.main): Likewise.
9772 (armv8-m.main+dsp): Likewise.
9773 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9774 (FL_FOR_ARCH8M_MAIN): Likewise.
9775 * config/arm/arm-tables.opt: Regenerate.
9776 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9777 armv8-m.main+dsp to BE8_LINK_SPEC.
9778 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9779 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9780 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9781 Baseline and Mainline.
9782 (arm_option_override_internal): Also disable arm_restrict_it when
9783 !arm_arch_notm. Update comment for -munaligned-access to also cover
9784 ARMv8-M Baseline.
9785 (arm_file_start): Increase buffer size for printing architecture name.
9786 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9787 and armv8-m.main+dsp.
9788 (mno-unaligned-access): Clarify that this is disabled by default for
9789 ARMv8-M Baseline architectures as well.
9790
9791 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9792
9793 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9794 decide whether to prevent some libgcc routines being included for some
9795 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9796 link between this condition and the one in
9797 libgcc/config/arm/lib1func.S.
9798
9799 2016-07-07 Richard Biener <rguenther@suse.de>
9800
9801 * tree-ssa-pre.c: Include alias.h.
9802 (compute_avail): If we have multiple VN_REFERENCEs with the
9803 same hashtable entry adjust that to make it a valid replacement
9804 for all of them with respect to alignment and aliasing
9805 when doing insertion.
9806 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9807 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9808
9809 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
9810
9811 PR target/70098
9812 PR target/71763
9813 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9814 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9815 constraint.
9816
9817 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9818
9819 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9820 (adjust_mems): Adjust.
9821 (adjust_insn): Likewise.
9822 (prepare_call_arguments): Likewise.
9823
9824 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9825
9826 * gcse.c (struct ls_expr): Make stores field a vector.
9827 (ldst_entry): Adjust.
9828 (free_ldst_entry): Likewise.
9829 (print_ldst_list): Likewise.
9830 (compute_ld_motion_mems): Likewise.
9831 (update_ld_motion_stores): Likewise.
9832
9833 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9834
9835 * gcse.c (struct ls_expr): Remove loads field.
9836 (ldst_entry): Adjust.
9837 (free_ldst_entry): Likewise.
9838 (print_ldst_list): Likewise.
9839 (compute_ld_motion_mems): Likewise.
9840
9841 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9842
9843 * store-motion.c (struct st_expr): Make antic_stores a vector.
9844 (st_expr_entry): Adjust.
9845 (free_st_expr_entry): Likewise.
9846 (print_store_motion_mems): Likewise.
9847 (find_moveable_store): Likewise.
9848 (compute_store_table): Likewise.
9849 (remove_reachable_equiv_notes): Likewise.
9850 (replace_store_insn): Likewise.
9851 (build_store_vectors): Likewise.
9852
9853 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9854
9855 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9856 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9857
9858 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9859
9860 PR tree-optimization/71518
9861 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9862 misalign also for outer loops with negative step.
9863
9864 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
9865
9866 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9867 (cortex_a53_shift): Add mov_shift.
9868 (cortex_a53_shift_reg): Add new reservation for register shifts.
9869 (cortex_a53_alu): Remove bfm.
9870 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9871 (cortex_a53_alu_extr): Add new reservation for EXTR.
9872 (bypasses): Improve bypass modelling.
9873
9874 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9875
9876 PR target/50739
9877 * config/avr/avr.c (avr_asm_select_section): Strip off
9878 SECTION_DECLARED from flags when calling get_section.
9879
9880 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9881
9882 * tree-vectorizer.h (vect_memory_access_type): Add
9883 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9884 * tree-vect-stmts.c (compare_step_with_zero): New function.
9885 (perm_mask_for_reverse): Move further up file.
9886 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9887 step is negative.
9888 (get_negative_load_store_type): New function.
9889 (get_load_store_type): Call it. Add an ncopies argument.
9890 (vectorizable_mask_load_store): Update call accordingly and
9891 remove tests for negative steps.
9892 (vectorizable_store, vectorizable_load): Likewise. Handle new
9893 memory_access_types.
9894
9895 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9896
9897 * tree-vectorizer.h (vect_memory_access_type): New enum.
9898 (_stmt_vec_info): Add a memory_access_type field.
9899 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9900 (vect_model_store_cost): Take an access type instead of a boolean.
9901 (vect_model_load_cost): Likewise.
9902 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9903 vect_model_store_cost and vect_model_load_cost.
9904 * tree-vect-stmts.c (vec_load_store_type): New enum.
9905 (vect_model_store_cost): Take an access type instead of a
9906 store_lanes_p boolean. Simplify tests.
9907 (vect_model_load_cost): Likewise, but for load_lanes_p.
9908 (get_group_load_store_type, get_load_store_type): New functions.
9909 (vectorizable_store): Use get_load_store_type. Record the access
9910 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9911 (vectorizable_load): Likewise.
9912 (vectorizable_mask_load_store): Likewise. Replace is_store
9913 variable with vls_type.
9914
9915 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9916
9917 * tree-vectorizer.h (vect_grouped_load_supported): Add a
9918 single_element_p parameter.
9919 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9920 Check the PR65518 case here rather than in vectorizable_load.
9921 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9922 * tree-vect-stmts.c (vectorizable_load): Likewise.
9923
9924 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9925
9926 * tree-vectorizer.h (gather_scatter_info): New structure.
9927 (vect_check_gather_scatter): Return a bool rather than a decl.
9928 Replace return-by-pointer arguments with a single
9929 gather_scatter_info *.
9930 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9931 (vect_analyze_data_refs): Update call accordingly.
9932 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9933 (vectorizable_mask_load_store): Likewise. Also record the
9934 offset dt and vectype in the gather_scatter_info.
9935 (vectorizable_store): Likewise.
9936 (vectorizable_load): Likewise.
9937
9938 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9939
9940 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9941 strided groups, use the cost of N scalar accesses instead
9942 of ncopies vector accesses.
9943 (vect_model_load_cost): Likewise.
9944
9945 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9946
9947 * tree-vect-stmts.c (vect_cost_group_size): Delete.
9948 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
9949 variable to indicate when once-per-group costs are being used.
9950 (vect_model_load_cost): Likewise. Fix comment and misindented code.
9951
9952 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9953
9954 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9955 peeling-for-gaps condition.
9956
9957 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9958
9959 * config/s390/s390.c (s390_expand_vec_init): Force initializer
9960 element to register if it doesn't match general_operand.
9961
9962 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9963 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9964
9965 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
9966 prototype.
9967 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
9968 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
9969 (SIGNBIT): New mode iterator.
9970 (Fsignbit): New mode attribute.
9971 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
9972 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
9973 when direct moves are available.
9974 (signbit<mode>2_dm): New define_insn_and_split).
9975 (signbit<mode>2_dm2): New define_insn.
9976
9977 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9978
9979 PR rtl-optimization/71594
9980 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
9981 into subregs of appropriate mode before trying to emit a conditional
9982 move.
9983
9984 2016-07-05 Jan Hubicka <jh@suse.cz>
9985
9986 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
9987 (simple_iv): Use it.
9988
9989 2016-07-05 Jan Hubicka <jh@suse.cz>
9990
9991 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
9992
9993 2016-07-05 Jiong Wang <jiong.wang@arm.com>
9994
9995 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
9996 "offmemok".
9997
9998 2016-07-05 Jan Hubicka <jh@suse.cz>
9999
10000 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
10001 IV can overflow.
10002
10003 2016-07-05 Richard Biener <rguenther@suse.de>
10004
10005 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
10006 Handle empty else block.
10007 (is_feasible_trace): Likewise.
10008 (split_paths): Likewise.
10009
10010 2016-07-05 Richard Biener <rguenther@suse.de>
10011
10012 * tree-loop-distribution.c (distribute_loop): Fix issue with
10013 the cost model loop.
10014
10015 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
10016
10017 * config/arm/neon-testgen.ml: Delete.
10018 * config/arm/neon.ml: Delete.
10019
10020 2016-07-04 Jakub Jelinek <jakub@redhat.com>
10021
10022 PR c++/71739
10023 * tree.c (attribute_value_equal): Use get_attribute_name instead of
10024 directly using TREE_PURPOSE.
10025
10026 2016-07-04 Jiong Wang <jiong.wang@arm.com>
10027
10028 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
10029 * config/aarch64/aarch64_neon.h: Likewise.
10030 * config/aarch64/arm_neon.h: Likewise.
10031 * config/aarch64/atomics.md: Likewise.
10032 * config/aarch64/aarch64-simd-builtins.def: Likewise.
10033 * doc/invoke.texi: Likewise.
10034
10035 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10036
10037 * config/s390/s390.md: Add "z13" cpu_facility.
10038 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
10039 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
10040 condition" type instructions.
10041
10042 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10043 Jeff Law <law@redhat.com>
10044
10045 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
10046 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
10047
10048 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
10049
10050 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
10051 permutation for TARGET_AVX512F.
10052 (ix86_expand_vec_one_operand_perm_avx512): New function.
10053 (expand_vec_perm_1): Invoke introduced function.
10054 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10055 it may be not valid after vectorization.
10056
10057 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10058
10059 PR target/63874
10060 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
10061 typo in comment. Only force to memory if it is a weak
10062 external reference.
10063
10064 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
10065 Jiong Wang <jiong.wang@arm.com>
10066
10067 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
10068 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
10069 (AARCH64_FL_F16): New.
10070 (AARCH64_FL_FOR_ARCH8_2): New.
10071 (AARCH64_ISA_8_2): New.
10072 (AARCH64_ISA_F16): New.
10073 (TARGET_FP_F16INST): New.
10074 (TARGET_SIMD_F16INST): New.
10075 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
10076 ("fp"): Disabling "fp" also disables "fp16".
10077 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
10078 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
10079 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
10080 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
10081
10082 2016-07-04 Jan Beulich <jbeulich@suse.com>
10083
10084 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
10085
10086 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10087
10088 PR target/71720
10089 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
10090 the insns, use an insn form that does not adjust the offset on
10091 little endian systems.
10092
10093 2016-07-01 Jan Beulich <jbeulich@suse.com>
10094
10095 * varasm.c (get_variable_section): Validate initializer in
10096 named .bss-like sections.
10097
10098 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10099
10100 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
10101 Exchange the order of the second and third operands in the vpermr
10102 instruction tmeplate.
10103
10104 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
10105
10106 PR target/71698
10107 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
10108 Disallow TDmode values.
10109
10110 2016-07-01 Alan Modra <amodra@gmail.com>
10111
10112 PR rtl-optimization/71709
10113 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
10114 being set, not referenced.
10115
10116 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10117
10118 PR tree-optimization/70729
10119 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
10120 of loop since it can be not valid after transformation.
10121
10122 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10123
10124 * config/arm/arm.c (thumb_reload_in_hi): Delete.
10125 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
10126
10127 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
10128
10129 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
10130 for NULL decl.
10131
10132 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10133
10134 PR target/71677
10135 * config/rs6000/constraints.md (wY constraint): New constraint to
10136 match the requirements for the LXSD and STXSD instructions.
10137 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
10138 predicate to match the requirements for the LXSD and STXSD
10139 instructions.
10140 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
10141 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
10142 to make sure that the bottom 2 bits of offset are 0, the address
10143 form is offsettable, and no updating is done in the address mode.
10144 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
10145 (movdi_internal32): Likewise
10146 (movdi_internal64): Likewise.
10147
10148 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10149
10150 PR tree-optimization/71707
10151 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
10152 strinfo even for ADDR_EXPR ptr.
10153
10154 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10155
10156 * config/rs6000/altivec.md (darn_32): Change the condition to
10157 TARGET_P9_MISC instead of TARGET_MODULO.
10158 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
10159 condition expression.
10160 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
10161 condition expression.
10162 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
10163 (DFP_TEST): New code iterator.
10164 (dfptstsfi_<code>_mode>): New define_expand.
10165 (*dfp_sgnfcnc_<mode>): New define_insn.
10166 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
10167 definition next to BU_P9_MISC_1 definition and change the MASK
10168 value to RS6000_BTM_P9_MISC.
10169 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
10170 (BU_P9_64BIT_MISC_0): Likewise.
10171 (BU_P9_DFP_MISC_0): New macro definition.
10172 (BU_P9_DFP_MISC_1): New macro definition.
10173 (BU_P9_DFP_MISC_2): New macro definition.
10174 (BU_P9_DFP_OVERLOAD_1): New macro definition.
10175 (BU_P9_DFP_OVERLOAD_2): New macro definition.
10176 (BU_P9_DFP_OVERLOAD_3): New macro definition.
10177 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
10178 (TSTSFI_LT_TD): Likewise.
10179 (TSTSFI_EQ_DD): Likewise.
10180 (TSTSFI_EQ_TD): Likewise.
10181 (TSTSFI_GT_DD): Likewise.
10182 (TSTSFI_GT_TD): Likewise.
10183 (TSTSFI_OV_DD): Likewise.
10184 (TSTSFI_OV_TD): Likewise.
10185 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
10186 (TSTSFI_LT_DD): Likewise.
10187 (TSTSFI_LT_TD): Likewise.
10188 (TSTSFI_EQ): Likewise.
10189 (TSTSFI_EQ_DD): Likewise.
10190 (TSTSFI_EQ_TD): Likewise.
10191 (TSTSFI_GT): Likewise.
10192 (TSTSFI_GT_DD): Likewise.
10193 (TSTSFI_GT_TD): Likewise.
10194 (TSTSFI_OV): Likewise.
10195 (TSTSFI_OV_DD): Likewise.
10196 (TSTSFI_OV_TD): Likewise.
10197 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10198 overloaded test significance functions.
10199 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10200 OPTION_MASK_P9_MISC into the representation of this mask.
10201 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
10202 of this mask.
10203 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
10204 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
10205 non-zero.
10206 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
10207 argument is a 6-bit unsigned literal value if the icode argument
10208 represents a DFP test significance built-in call.
10209 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
10210 flag used independently and in combination with the
10211 RS6000_BTM_64BIT flag.
10212 (rs6000_opt_masks): Add entry for power9-misc command-line option.
10213 (rs6000_builtin_mask_names): Add entry for power9-misc
10214 command-line option.
10215 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
10216 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
10217 RS6000_BTM_P9_MISC macros.
10218 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
10219 option and change the description of the -mpower9-vector option to
10220 enable only vector instructions, removing its erroneously claimed
10221 support for scalar instructions.
10222 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10223 the ISA 3.0 digital floating point test significance built-in
10224 functions.
10225
10226 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
10227
10228 * config/aarch64/aarch64.c (cortexa35_tunings):
10229 Enable AES fusion. Use cortexa57_branch_cost.
10230 (cortexa53_tunings): Use cortexa57_branch_cost.
10231 (cortexa72_tunings): Use cortexa57_branch_cost.
10232 Use AUTOPREFETCHER_WEAK.
10233 (cortexa73_tunings): Use cortexa57_branch_cost.
10234
10235 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10236 James Greenhalgh <james.greenhalgh@arm.com>
10237
10238 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
10239 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
10240 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
10241 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
10242 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
10243 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
10244 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
10245 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
10246 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
10247 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
10248 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
10249 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
10250 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
10251 New intrinsics.
10252
10253 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
10254 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10255
10256 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
10257 New define_insn.
10258 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
10259
10260 2016-06-30 David Malcolm <dmalcolm@redhat.com>
10261
10262 PR driver/71651
10263 * gcc.c (driver::build_option_suggestions): Pass "option" to
10264 add_misspelling_candidates.
10265 * opts-common.c (add_misspelling_candidates): Add "option" param;
10266 use it to avoid adding negated forms for options marked with
10267 RejectNegative.
10268 * opts.h (add_misspelling_candidates): Add "option" param.
10269
10270 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10271
10272 PR middle-end/71693
10273 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
10274 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
10275 first when permuting bitwise operation with rotate. Cast
10276 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
10277
10278 2016-06-29 David Malcolm <dmalcolm@redhat.com>
10279
10280 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
10281 for misspelled param names.
10282 * params.c: Include spellcheck.h.
10283 (find_param_fuzzy): New function.
10284 * params.h (find_param_fuzzy): New prototype.
10285 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
10286 * spellcheck.h (struct edit_distance_traits<const char *>):
10287 ...here.
10288
10289 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
10290
10291 * config/rs6000/predicates.md (const_0_to_7_operand): New
10292 predicate, recognize 0..7.
10293 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10294 support for doing extracts from V16QImode, V8HImode, V4SImode
10295 under ISA 3.0.
10296 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
10297 vector extract support.
10298 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
10299 for ISA 3.0 vector extract.
10300 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
10301 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
10302 extracts of a constant element number from small integer vectors
10303 on 64-bit ISA 3.0 systems.
10304 (vsx_extract_<mode>_di): Likewise.
10305 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
10306 say when we can do ISA 3.0 vector extracts.
10307 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
10308 registers, using the stxsiwx instruction.
10309
10310 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
10311
10312 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
10313 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
10314 qdf24xx_regmove_cost, qdf24xx_tunings): New.
10315 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
10316 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
10317 * config/arm/arm.c (arm_qdf24xx_tune): New.
10318
10319 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
10320
10321 * config/aarch64/aarch64.c (cortexa53_tunings):
10322 Increase loop alignment to 8. Set function alignment to 16.
10323 (cortexa35_tunings): Likewise.
10324 (cortexa57_tunings): Increase loop alignment to 8.
10325 (cortexa72_tunings): Likewise.
10326 (cortexa73_tunings): Likewise.
10327
10328 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
10329
10330 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
10331 for arm_fp16_ok and arm_fp16_hw.
10332 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
10333 arm_fp16_alternative.
10334
10335 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
10336
10337 PR tree-optimization/71655
10338 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
10339 types when swapping operands.
10340
10341 2016-06-29 Martin Liska <mliska@suse.cz>
10342
10343 PR middle-end/71585
10344 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
10345 * ipa-inline-transform.c (inline_call): Remove unnecessary call
10346 of build_optimization_node.
10347
10348 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
10349
10350 PR tree-optimization/70729
10351 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
10352 independent in loops having positive safelen value.
10353 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10354 it may be not valid after vectorization.
10355
10356 2016-06-29 Jakub Jelinek <jakub@redhat.com>
10357
10358 PR tree-optimization/71625
10359 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
10360 is sorted by ascending list->offset. If PTR is non-NULL and there is
10361 previous strinfo, call get_stridx_plus_constant.
10362 (get_stridx): Pass exp as second argument to get_addr_stridx.
10363 (addr_stridxptr): Add missing list = list->next, so that there can be
10364 more than one entries in the list. Bump limit from 16 to 32. Ensure
10365 the list is sorted by ascending list->offset.
10366 (get_stridx_plus_constant): Adjust so that it can be also called with
10367 ADDR_EXPR instead of SSA_NAME as PTR.
10368 (handle_char_store): Pass NULL_TREE as second argument to
10369 get_addr_stridx.
10370
10371 2016-06-29 Richard Biener <rguenther@suse.de>
10372
10373 PR rtl-optimization/68961
10374 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
10375
10376 2016-06-29 Richard Biener <rguenther@suse.de>
10377
10378 PR middle-end/71002
10379 * alias.c (component_uses_parent_alias_set_from): Handle
10380 type punning through union accesses by using the union alias set.
10381 * gimple.c (gimple_get_alias_set): Remove union type punning case.
10382
10383 2016-07-29 Richard Biener <rguenther@suse.de>
10384
10385 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
10386 precision not matching mode precision.
10387
10388 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
10389
10390 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
10391 pa_output_arg_descriptor.
10392 (call_val_symref_64bit_post_reload): Likewise.
10393 (call_val_powf_64bit_post_reload): Likewise.
10394 (sibcall_internal_symref_64bit): Likewise.
10395 (sibcall_value_internal_symref_64bit): Likewise.
10396
10397 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10398
10399 PR middle-end/71626
10400 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
10401 a constant, force its SUBREG_REG into memory or register instead
10402 of whole op1.
10403
10404 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10405
10406 PR target/58655
10407 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
10408 * doc/invoke.texi (AVR Options): Document it.
10409
10410 2016-06-28 Walter Lee <walt@tilera.com>
10411
10412 * config/tilegx/linux.h: Do not include arch/icache.h
10413 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10414 * config/tilepro/linux.h: Do not include arch/icache.h
10415 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10416
10417 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
10418
10419 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
10420 for big-endian BIT_FIELD_REF.
10421
10422 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
10423
10424 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
10425 ('size' attribute): Add '128'.
10426 Include power9.md.
10427 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
10428 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
10429 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
10430 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
10431 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
10432 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
10433 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
10434 *trunc<mode>df2_odd): Set size attribute to '128'.
10435 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
10436 * config/rs6000/power6.md (power6-fp): Include dfp type.
10437 * config/rs6000/power7.md (power7-fp): Likewise.
10438 * config/rs6000/power8.md (power8-fp): Likewise.
10439 * config/rs6000/power9.md: New file.
10440 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
10441 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
10442 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
10443 htmsimple.
10444 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
10445 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
10446 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
10447 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
10448 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
10449 dfp_dscri_<mode>): Change type attribute to dfp.
10450 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
10451 attribute to vecsimple.
10452 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
10453 and prefetch streams.
10454 (rs6000_option_override_internal): Remove temporary code setting
10455 tuning to power8. Don't set rs6000_sched_groups for power9.
10456 (last_scheduled_insn): Change to rtx_insn *.
10457 (divide_cnt, vec_load_pendulum): New variables.
10458 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
10459 (rs6000_issue_rate): Set issue rate for Power9.
10460 (is_power9_pairable_vec_type): New.
10461 (power9_sched_reorder2): New.
10462 (rs6000_sched_reorder2): Call new function for Power9 specific
10463 reordering.
10464 (insn_must_be_first_in_group): Remove Power9.
10465 (insn_must_be_last_in_group): Likewise.
10466 (force_new_group): Likewise.
10467 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
10468 Initialize divide_cnt/vec_load_pendulum.
10469 (_rs6000_sched_context, rs6000_init_sched_context,
10470 rs6000_set_sched_context): Handle context save/restore of new
10471 variables.
10472
10473 2016-06-28 Richard Biener <rguenther@suse.de>
10474
10475 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10476 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
10477 COMPONENT_REF operand.
10478 (nonoverlapping_component_refs_p): Likewise.
10479 * stor-layout.c (start_bitfield_representative): Mark
10480 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
10481
10482 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10483
10484 * Makefile.in: Don't cat ../stage_current if it does not exist.
10485
10486 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
10487 last argument is a bit-field.
10488
10489 PR rtl-optimization/71673
10490 * internal-fn.c (expand_arith_overflow_result_store): Use
10491 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
10492 expand_simple_binop.
10493
10494 PR middle-end/66867
10495 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
10496 expand_ifn_atomic_compare_exchange): New functions.
10497 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
10498 * tree.h (build_call_expr_internal_loc): Rename to ...
10499 (build_call_expr_internal_loc_array): ... this. Fix up type of
10500 last argument.
10501 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
10502 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
10503 ATOMIC_COMPARE_EXCHANGE result.
10504 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
10505 * gimple-fold.h (optimize_atomic_compare_exchange_p,
10506 fold_builtin_atomic_compare_exchange): New prototypes.
10507 * gimple-fold.c (optimize_atomic_compare_exchange_p,
10508 fold_builtin_atomic_compare_exchange): New functions..
10509 * tree-ssa.c (execute_update_addresses_taken): If
10510 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
10511 of call when finding addressable vars, and if such var becomes
10512 non-addressable, call fold_builtin_atomic_compare_exchange.
10513
10514 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
10515
10516 PR target/71670
10517 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
10518 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
10519
10520 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
10521
10522 * config/rs6000/rs6000.md ('type' attribute): Add
10523 veclogical,veccmpfx,vecexts,vecmove insn types.
10524 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
10525 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
10526 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
10527 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
10528 *nabs<mode>2_hw): Change type to vecmove.
10529 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
10530 *boolcc<mode>3_internal, *eqv<mode>3_internal,
10531 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
10532 *ieee_128bit_vsx_abs<mode>2_internal,
10533 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
10534 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
10535 *ieee128_mtvsrd_32bit): Change type to veclogical.
10536 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10537 *movdi_internal32, *movdi_internal64): Update insn types.
10538 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
10539 vsx_extract_<mode>): Change type to veclogical.
10540 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
10541 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
10542 *vsx_sign_extend_si_v2di): Change type to vecexts.
10543 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
10544 type to veclogical.
10545 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
10546 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
10547 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
10548 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
10549 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
10550 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
10551 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
10552 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
10553 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
10554 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
10555 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
10556 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
10557 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
10558 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
10559 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
10560 (ppc7450-vecsimple): Add veclogical, vecmove.
10561 (ppc7450-veccmp): Add veccmpfx.
10562 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
10563 vecmove.
10564 (ppc8540_vector_compare): Add veccmpfx.
10565 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
10566 * config/rs6000/cell.md (cell-fp): Add fpsimple.
10567 (cell-vecsimple): Add veclogical, vecmove.
10568 (cell-veccmp): Add veccmpfx.
10569 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
10570 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
10571 veccmpfx.
10572 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
10573 * config/rs6000/power4.md (power4-fp): Add fpsimple.
10574 (power4-vecsimple): Add veclogical, vecmove.
10575 (power4-veccmp): Add veccmpfx.
10576 * config/rs6000/power5.md (power5-fp): Add fpsimple.
10577 * config/rs6000/power6.md (power6-fp): Add fpsimple.
10578 (power6-vecsimple): Add veclogical, vecmove.
10579 (power6-veccmp): Add veccmpfx.
10580 * config/rs6000/power7.md (power7-fp): Add fpsimple.
10581 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
10582 * config/rs6000/power8.md (power8-fp): Add fpsimple.
10583 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
10584 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
10585 * config/rs6000/titan.md (titan_fp): Add fpsimple.
10586 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
10587 fpsimple.
10588 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
10589
10590 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
10591
10592 PR target/71656
10593 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10594 OPTION_MASK_P9_DFORM_VECTOR.
10595 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10596 disable -mpower9-dform-vector when using reload.
10597 (quad_address_p): Remove 'gpr_p' argument and all associated code.
10598 New 'strict' argument. Update all callers. Add strict addressing
10599 support.
10600 (rs6000_legitimate_offset_address_p): Remove call to
10601 virtual_stack_registers_memory_p.
10602 (rs6000_legitimize_reload_address): Add quad address support.
10603 (rs6000_legitimate_address_p): Move call to quad_address_p above
10604 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
10605 to account for new strict usage.
10606 (rs6000_output_move_128bit): Adjust quad_address_p args to account
10607 for new strict usage.
10608 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
10609
10610 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
10611
10612 PR target/70902
10613 PR target/71453
10614 PR target/71555
10615 PR target/71596
10616 PR target/71657
10617 * config/i386/i386.c (ix86_spill_class): Disable condition to
10618 always return NO_REGS.
10619
10620 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
10621
10622 * predict.c: Include gimple-pretty-print.h
10623 (predicted_by_loop_heuristics_p): Check also
10624 PRED_LOOP_EXIT_WITH_RECURSION
10625 (predict_loops): Find self recursive calls and use special purpose
10626 predictors for them; dump log about decisions.
10627 (pass_profile::execute): Dump info about #of iterations.
10628 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10629 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
10630
10631 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
10632
10633 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
10634 output_asm_insn calls and shorten long lines. Output .CALL
10635 argument descriptor using pa_output_arg_descriptor. Add various
10636 inline $$dyncall and other optimizations.
10637 (pa_attr_length_indirect_call): Adjust ordering and lengths.
10638
10639 2016-06-25 Jakub Jelinek <jakub@redhat.com>
10640
10641 PR tree-optimization/71643
10642 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
10643 EH preds.
10644
10645 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
10646 leak a bitmap if dep_bb is NULL.
10647
10648 PR tree-optimization/71631
10649 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
10650 to rewrite_expr_tree even if negate_result, move new_lhs var
10651 declaration and initialization earlier, for powi_result set afterwards
10652 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
10653 if new_lhs != lhs, and don't shadow gsi var.
10654
10655 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10656
10657 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
10658 Add in_loop parameter.
10659 (predict_loops): Add loop guard heuristics.
10660 * predict.def (PRED_LOOP_GUARD): New heuristics.
10661
10662 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10663
10664 * predict.c: Include ipa-utils.h
10665 (tree_bb_level_prediction): Predict recursive calls.
10666 (tree_estimate_probability_bb): Skip inexpensive calls for call
10667 predictor.
10668 * predict.def (PRED_RECURSIVE_CALL): New.
10669
10670 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10671
10672 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
10673 (BU_FLOAT128_1): Likewise.
10674 (FABSQ): Likewise.
10675 (COPYSIGNQ): Likewise.
10676 (RS6000_BUILTIN_NANQ): Likewise.
10677 (RS6000_BUILTIN_NANSQ): Likewise.
10678 (RS6000_BUILTIN_INFQ): Likewise.
10679 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
10680 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
10681 (TARGET_FOLD_BUILTIN): New #define.
10682 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
10683 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
10684 (rs6000_fold_builtin): New target hook implementation, handling
10685 folding of 128-bit NaNs and infinities.
10686 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
10687 entries are filled in to avoid problems during bootstrap
10688 self-test; define builtins for 128-bit NaNs and infinities.
10689 (rs6000_opt_mask): Add entry for float128.
10690 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
10691 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
10692 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
10693 (const_str_type_node): New #define.
10694 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
10695 to a define_expand that dispatches to either copysign<mode>3_soft
10696 or copysign<mode>3_hard.
10697 (copysign<mode>3_hard): Rename from copysign<mode>3.
10698 (copysign<mode>3_soft): New define_insn.
10699 * doc/extend.texi: Document new builtins.
10700
10701 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10702
10703 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
10704 PRIu64 instead of lu.
10705
10706 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
10707
10708 PR debug/71642
10709 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
10710 copy the type name.
10711
10712 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10713
10714 PR tree-optimization/71647
10715 * omp-low.c (lower_rec_input_clauses): Convert
10716 omp_clause_aligned_alignment (c) to size_type_node for the
10717 last argument of __builtin_assume_aligned.
10718
10719 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
10720
10721 * configure.ac (calling ___tls_get_addr via GOT): New
10722 assembler/linker check.
10723 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
10724 assembler and linker supports calling ___tls_get_addr via GOT.
10725 Otherise, defined to 0.
10726 * config.in: Regenerated.
10727 * configure: Likewise.
10728 * config/i386/constraints.md (Yb): New constraint.
10729 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
10730 (REG_CLASS_NAMES): Likewise.
10731 (REG_CLASS_CONTENTS): Likewise.
10732 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
10733 the b constraint with the Yb constraint. Call ___tls_get_addr
10734 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
10735 is 1.
10736 (*tls_local_dynamic_base_32_gnu): Likewise.
10737 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
10738 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
10739 (*tls_local_dynamic_base_64_<mode>): Likewise.
10740
10741 2016-06-24 Martin Liska <mliska@suse.cz>
10742
10743 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10744 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10745 few functions.
10746 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10747 argument to true if the expected number of iterations is
10748 loop-based.
10749
10750 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
10751
10752 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10753 assemble for 32bit target.
10754 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10755 and $ld_ix86_gld_32_opt to link for 32bit target.
10756 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10757 * configure: Regenerate.
10758
10759 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10760
10761 * config/arm/arm.c (int_log2): Delete definition and prototype.
10762 (shift_op): Use exact_log2 instead of int_log2.
10763 (vfp3_const_double_for_fract_bits): Likewise.
10764
10765 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10766
10767 * internal-fn.c (expand_arith_set_overflow): New function.
10768 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10769 Use it.
10770 (expand_arith_overflow_result_store): Likewise. Handle precision
10771 smaller than mode precision.
10772 * tree-vrp.c (extract_range_basic): For imag part, handle
10773 properly signed 1-bit precision result.
10774 * doc/extend.texi (__builtin_add_overflow): Document that last
10775 argument can't be pointer to enumerated or boolean type.
10776 (__builtin_add_overflow_p): Document that last argument can't
10777 have enumerated or boolean type.
10778
10779 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10780 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10781
10782 * config/rs6000/predicates.md (splat_input_operand): Rework.
10783 Don't allow constants, since the insns that use this predicate
10784 don't support constants. Constants are handled by other insns
10785 that are created via combine. During and after register
10786 allocation, only allow indexed or indirect addresses, and not
10787 general addresses. Only allow modes supported by the hardware.
10788 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10789 comment. Move check for using VSPLTIS<x> to a common location,
10790 instead of doing it in two different places.
10791
10792 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
10793
10794 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10795 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10796 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10797 signature_CENTAUR_ebx.
10798
10799 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
10800
10801 PR target/66232
10802 PR target/67400
10803 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10804 (as_ix86_gas_32_opt): This.
10805 (ld_ix86_tls_ldm_opt): Renamed to ...
10806 (ld_ix86_gld_32_opt): This.
10807 (R_386_TLS_LDM reloc): Updated.
10808 (R_386_GOT32X reloc): New assembler/linker check.
10809 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
10810 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
10811 defined to 0.
10812 * config.in: Regenerated.
10813 * configure: Likewise.
10814 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10815 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10816 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10817 if ix86_force_load_from_GOT_p returns true.
10818 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10819 ix86_force_load_from_GOT_p returns true.
10820 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10821 the external function address via the GOT slot.
10822 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10823 HAVE_AS_IX86_GOT32X before returning false.
10824 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10825 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10826
10827 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
10828
10829 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10830
10831 2016-06-23 Andi Kleen <ak@linux.intel.com>
10832
10833 * Makefile.in: Regenerate.
10834 * doc/install.texi: Document autoprofiledbootstrap.
10835
10836 2016-06-23 Andi Kleen <ak@linux.intel.com>
10837
10838 * config/i386/gcc-auto-profile: New file.
10839
10840 2016-06-23 Martin Liska <mliska@suse.cz>
10841
10842 PR middle-end/71619
10843 * predict.c (predict_loops): Revert the hunk that was removed
10844 in r237103.
10845
10846 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
10847
10848 * config.gcc: Add support for arm*-*-phoenix* targets.
10849 * config/arm/t-phoenix: New.
10850 * config/phoenix.h: New.
10851
10852 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
10853 H.J. Lu <hongjiu.lu@intel.com>
10854
10855 PR target/67400
10856 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10857 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10858 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10859 ix86_force_load_from_GOT_p returns true.
10860 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10861 ix86_force_load_from_GOT_p returns true.
10862 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10863 ix86_force_load_from_GOT_p returns true.
10864 (ix86_expand_move): Load the external function address via the
10865 GOT slot if ix86_force_load_from_GOT_p returns true.
10866 * config/i386/predicates.md (x86_64_immediate_operand): Return
10867 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10868 (x86_64_zext_immediate_operand): Ditto.
10869
10870 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
10871
10872 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10873
10874 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10875
10876 PR c/70339
10877 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10878 * diagnostic.c (pedwarn_at_rich_loc): New function.
10879 * spellcheck.h (best_match::best_match): Add a
10880 "best_distance_so_far" optional parameter.
10881 (best_match::set_best_so_far): New method.
10882 (best_match::get_best_distance): New accessor.
10883 (best_match::get_best_candidate_length): New accessor.
10884
10885 2016-06-22 Nick Clifton <nickc@redhat.com>
10886
10887 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10888 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10889 modes are accepted as well.
10890 (ucompare_loc_descriptor): Likewise.
10891 (minmax_loc_descriptor): Likewise.
10892 (clz_loc_descriptor): Likewise.
10893 (popcount_loc_descriptor): Likewise.
10894 (bswap_loc_descriptor): Likewise.
10895 (rotate_loc_descriptor): Likewise.
10896 (mem_loc_descriptor): Likewise.
10897 (loc_descriptor): Likewise.
10898
10899 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10900
10901 * common.opt (fdiagnostics-parseable-fixits): New option.
10902 * diagnostic.c: Include "selftest.h".
10903 (print_escaped_string): New function.
10904 (print_parseable_fixits): New function.
10905 (diagnostic_report_diagnostic): Call print_parseable_fixits.
10906 (selftest::assert_print_escaped_string): New function.
10907 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10908 (selftest::test_print_escaped_string): New function.
10909 (selftest::test_print_parseable_fixits_none): New function.
10910 (selftest::test_print_parseable_fixits_insert): New function.
10911 (selftest::test_print_parseable_fixits_remove): New function.
10912 (selftest::test_print_parseable_fixits_replace): New function.
10913 (selftest::diagnostic_c_tests): New function.
10914 * diagnostic.h (struct diagnostic_context): Add field
10915 "parseable_fixits_p".
10916 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10917 -fdiagnostics-parseable-fixits.
10918 (-fdiagnostics-parseable-fixits): New option.
10919 * opts.c (common_handle_option): Handle
10920 -fdiagnostics-parseable-fixits.
10921 * selftest-run-tests.c (selftest::run_tests): Call
10922 selftest::diagnostic_c_tests.
10923 * selftest.h (selftest::diagnostic_c_tests): New prototype.
10924
10925 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
10926
10927 PR tree-optimization/71488
10928 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10929 comparison of boolean vectors.
10930 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10931 of boolean vectors using bitwise operations.
10932
10933 2016-06-22 Andreas Schwab <schwab@suse.de>
10934
10935 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10936 Remove declaration.
10937
10938 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
10939
10940 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10941
10942 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
10943
10944 * config/i386/i386.c (print_reg): Emit an error message on attempt to
10945 print FLAGS_REG.
10946
10947 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10948
10949 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10950 * config/arm/arm-cores.def (cortex-a73): New entry.
10951 (cortex-a73.cortex-a35): Likewise.
10952 (cortex-a73.cortex-a53): Likewise.
10953 * config/arm/arm-tables.opt: Regenerate.
10954 * config/arm/arm-tune.md: Likewise.
10955 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10956 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10957 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10958 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10959 * doc/invoke.texi (ARM Options): Document cortex-a73,
10960 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10961
10962 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10963
10964 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
10965 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
10966 (cortex-a73.cortex-a35): Likewise.
10967 (cortex-a73.cortex-a53): Likewise.
10968 * config/aarch64/aarch64-tune.md: Regenerate.
10969 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
10970 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
10971 -mcpu and -mtune.
10972
10973 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10974
10975 * configure.ac (gcc_cv_as_compress_debug): Remove
10976 --compress-debug-sections as extra as switch.
10977 Handle gas --compress-debug-sections=type.
10978 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
10979 Handle gld --compress-debug-sections=type.
10980 * configure: Regenerate.
10981
10982 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
10983
10984 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
10985
10986 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
10987
10988 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
10989 (do_rewrite): likewise.
10990
10991 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10992
10993 * common/config/mep/mep-common.c: Remove.
10994 * config.gcc: Remove mep-* support.
10995 * config/mep/constraints.md: Remove.
10996 * config/mep/default.h: Remove.
10997 * config/mep/intrinsics.h: Remove.
10998 * config/mep/intrinsics.md: Remove.
10999 * config/mep/ivc2-template.h: Remove.
11000 * config/mep/mep-c5.cpu: Remove.
11001 * config/mep/mep-core.cpu: Remove.
11002 * config/mep/mep-default.cpu: Remove.
11003 * config/mep/mep-ext-cop.cpu: Remove.
11004 * config/mep/mep-intrin.h: Remove.
11005 * config/mep/mep-ivc2.cpu: Remove.
11006 * config/mep/mep-pragma.c: Remove.
11007 * config/mep/mep-protos.h: Remove.
11008 * config/mep/mep.c: Remove.
11009 * config/mep/mep.cpu: Remove.
11010 * config/mep/mep.h: Remove.
11011 * config/mep/mep.md: Remove.
11012 * config/mep/mep.opt: Remove.
11013 * config/mep/predicates.md: Remove.
11014 * config/mep/t-mep: Remove.
11015 * doc/install.texi: Remove mep-* documentation.
11016 * doc/md.texi: Likewise.
11017
11018 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11019
11020 * config.gcc: Remove support for avr-rtems.
11021 * config/avr/gen-avr-mmcu-specs.c: Likewise.
11022 * config/avr/rtems.h: Remove.
11023 * config/avr/t-rtems: Remove.
11024
11025 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11026
11027 * config.gcc: Remove m32r-rtems support.
11028 * config/m32r/rtems.h: Remove.
11029
11030 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11031
11032 * config.gcc: Remove h8300-rtems support.
11033 * config/h8300/rtems.h: Remove.
11034 * config/h8300/t-rtems: Remove.
11035
11036 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11037
11038 * config.gcc: Remove support for knetbsd.
11039 * configure.ac: Likewise.
11040 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
11041 * config/knetbsd-gnu.h: Remove.
11042 * configure: Regenerate.
11043
11044 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11045
11046 * config.gcc: Remove support for openbsd 2 and 3.
11047 * config/openbsd-oldgas.h: Remove.
11048
11049 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11050
11051 * config.gcc: Remove interix support.
11052 * config/i386/i386-interix.h: Remove.
11053 * config/i386/interix.opt: Remove.
11054 * config/i386/t-interix: Remove.
11055 * configure: Regenerate.
11056 * configure.ac: Remove interix support.
11057 * doc/install.texi: Remove interix documentation.
11058
11059 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11060
11061 * config/rs6000/rs6000.h: Add conditional preprocessing directives
11062 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
11063 not defined.
11064
11065 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11066
11067 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
11068 they are both PLACEHOLDER_EXPRs.
11069
11070 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11071
11072 * stor-layout.c (layout_type): Move setting complex MODE to
11073 layout_type, instead of setting it ahead of time by the caller.
11074 * tree.c (build_complex_type): Likewise.
11075
11076 2016-06-21 Martin Liska <mliska@suse.cz>
11077
11078 * predict.c (force_edge_cold): Replace imposisble with
11079 impossible.
11080
11081 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11082
11083 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
11084 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
11085
11086 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11087
11088 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
11089
11090 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
11091 Ilya Enkovich <ilya.enkovich@intel.com>
11092
11093 PR target/71549
11094 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11095 New member function to convert V1TImode register to SUBREG
11096 TImode in debug insn.
11097 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
11098 after changing register mode to V1TImode.
11099
11100 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
11101
11102 * config/aarch64/aarch64-cores.def (vulcan): New core.
11103 * config/aarch64/aarch64-tune.md: Regenerate.
11104 * doc/invoke.texi: Document vulcan as an available option.
11105
11106 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11107
11108 * cse.c (canon_asm_operands): New function extracted from...
11109 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
11110 either standalone or member of a PARALLEL.
11111
11112 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11113
11114 PR target/30417
11115 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
11116 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
11117 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
11118
11119 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11120
11121 PR target/71103
11122 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
11123 constant addresses if can_create_pseudo_p.
11124
11125 2016-06-21 Jakub Jelinek <jakub@redhat.com>
11126
11127 PR tree-optimization/71588
11128 * tree-ssa-strlen.c (valid_builtin_call): New function.
11129 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
11130 it.
11131
11132 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11133
11134 PR middle-end/71581
11135 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
11136 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
11137 for conversion of scalar user var to complex type and use the
11138 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
11139 punt.
11140
11141 PR rtl-optimization/71591
11142 * toplev.c (toplev::run_self_tests): If no_backend, complain and
11143 don't run any tests.
11144
11145 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
11146
11147 PR target/71571
11148 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
11149 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
11150 space for PIC with non-v32 and the common non-PIC "jump".
11151
11152 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11153
11154 PR target/71559
11155 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
11156 returned values and add UN*/LTGT/*ORDERED cases with values matching
11157 D operand modifier on vcmp for AVX.
11158
11159 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11160
11161 * config/aarch64/aarch64.opt
11162 (mpc-relative-literal-loads): Rename internal option name.
11163 * config/aarch64/aarch64.c
11164 (aarch64_nopcrelative_literal_loads): Rename to
11165 aarch64_pcrelative_literal_loads.
11166 (aarch64_expand_mov_immediate): Likewise.
11167 (aarch64_secondary_reload): Likewise.
11168 (aarch64_can_use_per_function_literal_pools_p): Likewise.
11169 (aarch64_override_options_after_change_1): Rename and simplify logic.
11170 (aarch64_classify_symbol): Merge large model checks into switch,
11171 remove pc-relative load check.
11172
11173 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11174
11175 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
11176 costs relative to the cost of a register move.
11177
11178 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11179
11180 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
11181 (vcvt_n_f64_u64): Likewise.
11182 (vcvt_n_s64_f64): Likewise.
11183 (vcvt_n_u64_f64): Likewise.
11184 (vcvt_f64_s64): Likewise.
11185 (vrecpe_f64): Likewise.
11186 (vcvt_f64_u64): Likewise.
11187 (vrecps_f64): Likewise.
11188
11189 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11190
11191 * config/aarch64/aarch64.md
11192 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
11193 iterators.
11194 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
11195 attributes.
11196 * config/aarch64/aarch64-builtins.c
11197 (aarch64_types_binop_uss_qualifiers): Delete.
11198 (TYPES_BINOP_USS): Likewise.
11199 (aarch64_types_binop_sus_qualifiers): Likewise.
11200 (TYPES_BINOP_SUS): Likewise.
11201 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
11202 (TYPES_FCVTIMM_SUS): Likewise.
11203 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
11204 rather than BINOP.
11205 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
11206 (fcvtzs): Use SHIFTIMM rather than BINOP.
11207 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
11208
11209 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11210
11211 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
11212 costs relative to the cost of a register move.
11213
11214 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11215
11216 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
11217 Allow scalar/single vector modes to be tieable.
11218
11219 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11220
11221 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
11222
11223 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11224
11225 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
11226 "alignement".
11227 * tree.h (TYPE_ALIGN): Likewise.
11228
11229 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11230
11231 PR target/71103
11232 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
11233
11234 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11235
11236 * config/avr/avr.c (avr_print_operand): Fix "format not a string
11237 literal" build warnings.
11238 (avr_print_operand_address): Dito.
11239
11240 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
11241
11242 PR target/71375
11243 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
11244 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
11245
11246 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
11247
11248 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
11249
11250 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
11251
11252 PR bootstrap/71435
11253 * reload1.c (reload): Pass 0 to finish_spills when called because
11254 update_eliminables_and_spill returns true and remove did_spill.
11255 (finish_spills): Adjust comment and document GLOBAL parameter.
11256
11257 2016-06-17 DJ Delorie <dj@redhat.com>
11258
11259 PR target/71338
11260 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
11261 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
11262 (umulqihi3_virt): Likewise.
11263 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
11264 (umulqihi3_real): Likewise.
11265
11266 2016-06-17 Martin Liska <mliska@suse.cz>
11267
11268 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
11269
11270 2016-06-17 Martin Liska <mliska@suse.cz>
11271
11272 * predict.def: PRED_LOOP_EXIT from 92 to 85.
11273
11274 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
11275
11276 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
11277 __FAST_MATH__.
11278 (vaddq_f32): Likewise.
11279 (vmul_f32): Likewise.
11280 (vmulq_f32): Likewise.
11281 (vsub_f32): Likewise.
11282 (vsubq_f32): Likewise.
11283
11284 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11285
11286 PR tree-optimization/71347
11287 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
11288 cost for all uses in group.
11289
11290 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11291
11292 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
11293 insert gimple seq if it's not empty.
11294
11295 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11296
11297 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
11298 member OFFSET.
11299 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
11300 rather than OFFSET.
11301 (comp_dr_with_seg_len_pair): Ditto.
11302 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
11303 struct dr_with_seg_len_pair against DR_OFFSET.
11304 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
11305 DR_OFFSET directly.
11306
11307 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
11308
11309 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
11310
11311 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
11312
11313 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
11314 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
11315 (pa_output_millicode_call): Likewise.
11316 (pa_output_call): Likewise.
11317 (pa_output_indirect_call): Likewise.
11318 (pa_asm_output_mi_thunk): Likewise.
11319
11320 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11321
11322 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
11323
11324 2016-06-16 Martin Liska <mliska@suse.cz>
11325
11326 * predict.c (combine_predictions_for_insn): When we find a first
11327 match predictor, we should consider just predictors with
11328 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
11329 DS theory predictor.
11330 (combine_predictions_for_bb): Likewise.
11331
11332 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11333
11334 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
11335 with base of reference to struct.
11336
11337 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11338
11339 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
11340
11341 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11342
11343 PR target/71151
11344 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
11345 progmem_swtable_section.
11346 (progmem_swtable_section): Remove.
11347 (avr_asm_function_rodata_section): Remove.
11348 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
11349 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
11350
11351 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
11352
11353 * config/i386/driver-i386.c (host_detect_local_cpu): Set
11354 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
11355 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
11356 signature_CENTAUR_ebx.
11357 * config/i386/i386.c (ix86_option_override_internal): Add
11358 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
11359 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
11360 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
11361
11362 2016-06-16 Martin Liska <mliska@suse.cz>
11363
11364 * predict.def: Add fortran loop preheader predictor.
11365 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
11366 fold IFN_BUILTIN_EXPECT with a known constant argument.
11367
11368 2016-06-16 Martin Liska <mliska@suse.cz>
11369
11370 * predict.def: Add 'Fortran' to display text of all
11371 PRED_FORTRAN_* predictors.
11372
11373 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11374
11375 PR target/71242
11376 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
11377 [IA64_BUILTIN_NANSQ]: Ditto.
11378 (ia64_fold_builtin): New function.
11379 (TARGET_FOLD_BUILTIN): New define.
11380 (ia64_init_builtins) Declare const_string_type node.
11381 Add __builtin_nanq and __builtin_nansq builtin functions.
11382 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
11383
11384 2016-06-16 Nick Clifton <nickc@redhat.com>
11385
11386 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
11387 MSP430_HWMULT_ prefix to enum values.
11388 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
11389 * config/msp430/msp430.c: Update use of enum values.
11390 * config/msp430/msp430.md: Likewise.
11391 * config/msp430/msp430.opt: Likewise.
11392
11393 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
11394
11395 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
11396 of comparsions in the last iteration.
11397
11398 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11399 Joern Rennecke <joern.rennecke@embecosm.com>
11400
11401 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
11402 addresses.
11403 (arc_needs_pcl_p): Add GOTOFFPC.
11404 (arc_legitimate_pic_addr_p): Likewise.
11405 (arc_output_pic_addr_const): Likewise.
11406 (arc_legitimize_pic_address): Generate a pc-relative address using
11407 GOTOFFPC.
11408 (arc_output_libcall): Use @pcl syntax.
11409 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
11410 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
11411 (*movsi_insn): Use @pcl syntax.
11412 (doloop_begin_i): Likewise.
11413
11414 2016-06-16 Martin Liska <mliska@suse.cz>
11415
11416 * predict.def: Define a new predictor.
11417
11418 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11419
11420 * config/arc/arc.opt (mtp-regno): Update text.
11421
11422 2016-06-16 Renlin Li <renlin.li@arm.com>
11423
11424 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
11425
11426 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11427
11428 PR target/71554
11429 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
11430 (setcc + and peephole2): Likewise.
11431
11432 PR rtl-optimization/71532
11433 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
11434 memory slots.
11435
11436 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11437
11438 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
11439 DImode constants with XXSPLTIB in vector registers.
11440 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
11441 vsx_extract_<mode>_internal{1,2} into a single insn that handles
11442 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
11443 extraction of the element at the top of the register as a scalar
11444 value.
11445 (vsx_extract_<mode>_internal1): Likewise.
11446 (vsx_extract_<mode>_internal2): Likewise.
11447 * config/rs6000/constraints.md (wi constraint): Remove a comment
11448 about DImode not being allowed in Altivec registers.
11449 (wB constraint): New constraint for constants that can be
11450 generated in Altivec registers with VSPLTISW/VUPKHSW.
11451 * config/rs6000/predicates.md (xxspltib_constant_split): Update
11452 comments.
11453 (xxspltib_constant_nosplit): Likewise.
11454 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
11455 support for -mupper-regs-di to enable DImode to go into Altivec
11456 registers.
11457 (POWERPC_MASKS): Likewise.
11458 (power7 cpu): Likewise.
11459 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
11460 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
11461 for DImode being allowed in Altivec registers. Update wi/wj
11462 constraints. Set scalar_in_vmx_p flag.
11463 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
11464 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
11465 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
11466 (rs6000_opt_masks): Add -mupper-regs-di.
11467 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
11468 direct move to use wi and not wj.
11469 (lfiwzx): Likewise.
11470 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
11471 alternative.
11472 (floatunssi<mode>2_lfiwzx_mem): Likewise.
11473 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
11474 any VSX register, instead of just Altivec registers, to allow
11475 either operand to be an Altivec register or both.
11476 (fixuns_trunc<mode>di2_fctiduz): Likewise.
11477 (movdi_internal32): Add support for -mupper-regs-di. Add support
11478 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
11479 the alternatives and attributes to be lined up to be easier to
11480 read.
11481 (movdi_internal64): Likewise.
11482 (64-bit DImode splitters): Change predicates to only split loading
11483 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
11484 load constants in ISA 3.0 or ISA 2.07 respectively.
11485 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11486 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
11487 mention -mcpu=power9 sets these options.
11488 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
11489 wB constraint.
11490
11491 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11492
11493 PR target/67353
11494 * config/avr/avr.c (avr_set_current_function): Warn misspelled
11495 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
11496 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
11497 by default to warn misspelled interrupt/ signal handler.
11498 * doc/invoke.texi (AVR Options): Document it. Update description
11499 for -nodevicelib option.
11500
11501 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11502
11503 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
11504 up parentheses. Use GET_MODE_UNIT_BITSIZE.
11505 (aarch64_<sur>shll2_n<mode>): Likewise.
11506
11507 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
11508
11509 PR middle-end/71529
11510 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
11511 DECL_CONTEXT for copied arguments.
11512
11513 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11514
11515 PR tree-optimization/71483
11516 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
11517 for slp
11518
11519 2016-06-15 Martin Liska <mliska@suse.cz>
11520
11521 * predict.c (tree_predict_by_opcode): Call predict_edge_def
11522 instead of predict_edge w/o a probability.
11523
11524 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11525
11526 PR tree-optimization/71439
11527 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
11528 live PHIs.
11529
11530 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11531
11532 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
11533 register subregs in SET_SRC.
11534
11535 2016-06-15 Richard Biener <rguenther@suse.de>
11536
11537 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
11538 store restrictions.
11539
11540 2016-06-15 Richard Biener <rguenther@suse.de>
11541
11542 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
11543 not consider dependences between accesses that belong to the
11544 same group.
11545 (vect_analyze_data_ref_dependences): Do not analyze read-read
11546 or self-dependences.
11547
11548 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11549
11550 * spellcheck-tree.c: Include spellcheck-tree.h rather than
11551 spellcheck.h.
11552 (find_closest_identifier): Reimplement in terms of
11553 best_match<tree,tree>.
11554 * spellcheck-tree.h: New file.
11555 * spellcheck.c (struct edit_distance_traits<const char *>): New
11556 struct.
11557 (find_closest_string): Reimplement in terms of
11558 best_match<const char *, const char *>.
11559 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
11560 overload to spellcheck-tree.h.
11561 (find_closest_identifier): Likewise.
11562 (struct edit_distance_traits<T>): New template.
11563 (class best_match): New class.
11564
11565 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11566
11567 * selftest-run-tests.c (selftest::run_tests): Call
11568 selftest::spellcheck_tree_c_tests.
11569 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
11570 * spellcheck-tree.c: Include selftest.h and stringpool.h.
11571 (selftest::test_find_closest_identifier): New function.
11572 (selftest::spellcheck_tree_c_tests): New function.
11573 * spellcheck.c (selftest::test_find_closest_string): Verify that
11574 the order of the vec does not affect the results for this case.
11575 (selftest::test_data): New array.
11576 (selftest::test_metric_conditions): New function.
11577 (selftest::spellcheck_c_tests): Add a test of case-comparison.
11578 Call selftest::test_metric_conditions.
11579
11580 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11581
11582 * config/rs6000/rs6000-builtin.def (commentary): Typo.
11583 (BU_P9_MISC_1): Likewise.
11584 (BU_P9_64BIT_MISC_0): Likewise.
11585 (BU_P9_MISC_0): Likewise.
11586
11587 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11588
11589 * gcc-rich-location.c
11590 (gcc_rich_location::add_fixit_misspelled_id): New method.
11591 * gcc-rich-location.h
11592 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
11593
11594 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
11595
11596 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
11597 FreeBSD 11 and above.
11598
11599 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
11600
11601 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
11602
11603 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11604
11605 * expmed.h: Close parenthesis in "at your option" in copyright
11606 boilerplate.
11607 * lower-subreg.h: Likewise.
11608
11609 2016-06-14 Richard Biener <rguenther@suse.de>
11610
11611 PR middle-end/71526
11612 * genmatch.c (expr::gen_transform): Use in_type for comparisons
11613 if available.
11614
11615 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11616
11617 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
11618 New function.
11619 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
11620 mask+shift version.
11621 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
11622 New prototype.
11623 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
11624 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
11625
11626 2016-06-14 Richard Biener <rguenther@suse.de>
11627
11628 PR tree-optimization/71522
11629 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
11630 copying into float copying.
11631
11632 2016-06-14 Jakub Jelinek <jakub@redhat.com>
11633
11634 PR tree-optimization/71520
11635 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
11636 (replace_block_by): Move user labels from bb1 to bb2.
11637
11638 2016-06-14 Richard Biener <rguenther@suse.de>
11639
11640 PR middle-end/71310
11641 PR bootstrap/71510
11642 * expr.h (get_bit_range): Declare.
11643 * expr.c (get_bit_range): Export.
11644 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
11645 word_mode again to constrain the bitfield access.
11646
11647 2016-06-14 Richard Biener <rguenther@suse.de>
11648
11649 PR tree-optimization/71521
11650 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
11651 division int_const_binop against zero divisor.
11652
11653 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11654
11655 * config/i386/i386.md (signbittf2): New expander.
11656 * config/i386/sse.md (ptesttf2): New insn pattern.
11657
11658 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11659
11660 PR bootstrap/71481
11661 * input.c (selftest::test_reading_source_line): Avoid reading from
11662 __FILE__ by creating a tempfile with known content and reading
11663 from that instead.
11664
11665 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11666
11667 * pretty-print.c (assert_pp_format_colored): Skip the test if
11668 GCC_COLORS is set.
11669 (test_pp_format): Remove comment about GCC_COLORS.
11670
11671 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11672
11673 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
11674 * pretty-print.c (assert_pp_format_va): Add location param and use
11675 it with ASSERT_STREQ_AT.
11676 (assert_pp_format): Add location param and pass it to
11677 assert_pp_format_va.
11678 (assert_pp_format_colored): Likewise.
11679 (ASSERT_PP_FORMAT_1): New.
11680 (ASSERT_PP_FORMAT_2): New.
11681 (ASSERT_PP_FORMAT_3): New.
11682 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
11683 explicitly, or implicitly via the above macros.
11684 * selftest.c (selftest::pass): Use a selftest::location rather
11685 than file and line.
11686 (selftest::fail): Likewise. Print the function name.
11687 (selftest::fail_formatted): Likewise.
11688 (selftest::assert_streq): Use a selftest::location rather than
11689 file and line.
11690 * selftest.h (selftest::location): New struct.
11691 (SELFTEST_LOCATION): New macro.
11692 (selftest::pass): Accept a const location & rather than file
11693 and line.
11694 (selftest::fail): Likewise.
11695 (selftest::fail_formatted): Likewise.
11696 (selftest::assert_streq): Likewise.
11697 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
11698 (ASSERT_FALSE): Likewise.
11699 (ASSERT_EQ): Likewise.
11700 (ASSERT_NE): Likewise.
11701 (ASSERT_STREQ): Likewise.
11702 (ASSERT_PRED1): Likewise.
11703 (ASSERT_STREQ_AT): New macro.
11704
11705 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11706
11707 * selftest.c (selftest::fail_formatted): New function.
11708 (selftest::assert_streq): New function.
11709 * selftest.h (selftests::fail_formatted): New decl.
11710 (selftest::assert_streq): New decl.
11711 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
11712
11713 2016-06-13 Jeff Law <law@redhat.com>
11714
11715 PR tree-optimization/71403
11716 * tree-ssa-threadbackward.c
11717 (convert_and_register_jump_thread_path): No longer accept reference
11718 to path. Do not pop items off the path anymore.
11719 (fsm_find_control_statement_thread_paths): Do not allow threading
11720 to a deeper loop nest. Pop the last item off the path here rather
11721 than in convert_and_register_jump_thread_path.
11722
11723 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11724 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
11725
11726 [AArch64] Emit division using the Newton series
11727
11728 * config/aarch64/aarch64-protos.h
11729 (cpu_approx_modes): Add new member "division".
11730 (aarch64_emit_approx_div): Declare new function.
11731 * config/aarch64/aarch64.c
11732 (generic_approx_modes): New member "division".
11733 (exynosm1_approx_modes): Likewise.
11734 (xgene1_approx_modes): Likewise.
11735 (aarch64_emit_approx_div): Define new function.
11736 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
11737 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
11738 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
11739 * doc/invoke.texi (-mlow-precision-div): Describe new option.
11740
11741 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11742 Wilco Dijkstra <wilco.dijkstra@arm.com>
11743
11744 [AArch64] Emit square root using the Newton series
11745
11746 * config/aarch64/aarch64-protos.h
11747 (aarch64_emit_approx_rsqrt): Replace with new function
11748 "aarch64_emit_approx_sqrt".
11749 (cpu_approx_modes): New member "sqrt".
11750 * config/aarch64/aarch64.c
11751 (generic_approx_modes): New member "sqrt".
11752 (exynosm1_approx_modes): Likewise.
11753 (xgene1_approx_modes): Likewise.
11754 (aarch64_emit_approx_rsqrt): Replace with new function
11755 "aarch64_emit_approx_sqrt".
11756 (aarch64_override_options_after_change_1): Handle new option.
11757 * config/aarch64/aarch64-simd.md
11758 (rsqrt<mode>2): Use new function instead.
11759 (sqrt<mode>2): New expansion and insn definitions.
11760 * config/aarch64/aarch64.md: Likewise.
11761 * config/aarch64/aarch64.opt
11762 (mlow-precision-sqrt): Add new option description.
11763 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11764
11765 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11766
11767 [AArch64] Add more choices for the reciprocal square root approximation
11768
11769 Allow a target to prefer such operation depending on the operation mode.
11770
11771 * config/aarch64/aarch64-protos.h
11772 (AARCH64_APPROX_MODE): New macro.
11773 (AARCH64_APPROX_{NONE,ALL}): Likewise.
11774 (cpu_approx_modes): New structure.
11775 (tune_params): New member "approx_modes".
11776 * config/aarch64/aarch64-tuning-flags.def
11777 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11778 * config/aarch64/aarch64.c
11779 (generic_approx_modes): New core "cpu_approx_modes" structure.
11780 (exynosm1_approx_modes): Likewise.
11781 (xgene1_approx_modes): Likewise.
11782 (generic_tunings): New member "approx_modes".
11783 (cortexa35_tunings): Likewise.
11784 (cortexa53_tunings): Likewise.
11785 (cortexa57_tunings): Likewise.
11786 (cortexa72_tunings): Likewise.
11787 (exynosm1_tunings): Likewise.
11788 (thunderx_tunings): Likewise.
11789 (xgene1_tunings): Likewise.
11790 (use_rsqrt_p): New argument for the mode and use new member from
11791 "tune_params".
11792 (aarch64_builtin_reciprocal): Devise mode from builtin.
11793 (aarch64_optab_supported_p): New argument for the mode.
11794 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11795
11796 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11797
11798 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11799 RS6000_BTM_MODULO flag into the set of flags that are considered
11800 to be part of the common configuration.
11801
11802 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11803
11804 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11805 difference unsigned.
11806 (vec_absdb): New macro for vector absolute difference unsigned
11807 byte.
11808 (vec_absdh): New macro for vector absolute difference unsigned
11809 half-word.
11810 (vec_absdw): New macro for vector absolute difference unsigned word.
11811 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11812 (vadu<mode>3): New insn.
11813 (*p9_vadu<mode>3): New insn.
11814 * config/rs6000/rs6000-builtin.def (vadub): New built-in
11815 definition.
11816 (vaduh): New built-in definition.
11817 (vaduw): New built-in definition.
11818 (vadu): New overloaded built-in definition.
11819 (vadub): New overloaded built-in definition.
11820 (vaduh): New overloaded built-in definition.
11821 (vaduw): New overloaded built-in definition.
11822 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11823 overloaded vector absolute difference unsigned functions.
11824 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11825 the ISA 3.0 vector absolute difference unsigned built-in functions.
11826
11827 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
11828
11829 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11830 update shared_lookup_references only once after changing operands.
11831
11832 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
11833
11834 PR middle-end/71373
11835 * tree-nested.c (convert_nonlocal_omp_clauses)
11836 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11837
11838 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11839 * tree.def (CASE_LABEL_EXPR): Likewise.
11840
11841 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11842
11843 PR bootstrap/71481
11844 * input.c (test_builtins): Fix an assertion.
11845
11846 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11847
11848 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11849 (paritysi2): Ditto.
11850 (isinfxf2): Ditto.
11851 (isinf<mode>2): Ditto.
11852
11853 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11854
11855 * ggc-tests.c (test_finalization): Only test need_finalization_p
11856 for GCC_VERSION >= 4003.
11857
11858 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11859
11860 * config/s390/vecintrin.h: Fix file description in comment.
11861
11862 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11863
11864 * config/s390/s390-builtin-types.def: Change builtin type naming
11865 scheme to match builtin-types.def.
11866
11867 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
11868
11869 * fold-const.c (optimize_minmax_comparison): Remove.
11870 (fold_comparison): Remove call to the above.
11871 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11872 New transformations.
11873
11874 2016-06-13 Alan Hayward <alan.hayward@arm.com>
11875
11876 PR tree-optimization/71416
11877 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11878 multiple entries
11879
11880 2016-06-13 Martin Liska <mliska@suse.cz>
11881
11882 * predict.c (enum predictor_reason): Prefix enum with REASON_.
11883 (combine_predictions_for_insn): Likewise.
11884 (prune_predictions_for_bb): Likewise.
11885 (combine_predictions_for_bb): Likewise.
11886
11887 2016-06-13 Richard Biener <rguenther@suse.de>
11888
11889 PR tree-optimization/71505
11890 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11891 assert match comment.
11892
11893 2016-06-13 Marek Polacek <polacek@redhat.com>
11894
11895 PR middle-end/71476
11896 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11897 gimplify_switch_expr.
11898 (warn_switch_unreachable_r): New function.
11899
11900 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11901
11902 PR target/71379
11903 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11904 one.
11905
11906 2016-06-13 Richard Biener <rguenther@suse.de>
11907
11908 PR middle-end/64516
11909 * fold-const.c (fold_unary_loc): Preserve alignment when
11910 folding a VIEW_CONVERT_EXPR into a MEM_REF.
11911
11912 2016-06-13 Martin Liska <mliska@suse.cz>
11913
11914 PR sanitizer/71458
11915 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11916 w/ -fsanitize=bounds.
11917
11918 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11919
11920 * config/i386/i386.c (ix86_init_builtins): Calculate
11921 FLOAT128_FTYPE_CONST_STRING function type only once.
11922 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11923 built-in functions are available for x86-32 and x86-64 targets.
11924
11925 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11926
11927 PR target/71241
11928 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11929 New primitive type.
11930 (FLOAT128_FTYPE_CONST_STRING): New function type.
11931 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11932 [IX86_BUILTIN_NANSQ]: Ditto.
11933 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11934 (ix86_init_builtin_types): Declare const_string_type_node.
11935 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11936 builtin functions.
11937 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11938 * doc/extend.texi (x86 Built-in Functions): Document
11939 __builtin_nanq and __builtin_nansq.
11940
11941 2016-06-11 Jiong Wang <jiong.wang@arm.com>
11942
11943 PR target/71061
11944 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11945 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11946 length for pop patterns.
11947 (arm_attr_length_push_multi): Update comments.
11948 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11949 attribute.
11950 (*pop_multiple_with_writeback_and_return): Likewise.
11951 (*pop_multiple_with_return): Likewise.
11952
11953 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
11954
11955 PR middle-end/71310
11956 * fold-const.c (optimize_bit_field_compare): Don't try to use
11957 word_mode unconditionally for reading the bit field, look at
11958 DECL_BIT_FIELD_REPRESENTATIVE instead.
11959
11960 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
11961
11962 PR middle-end/71478
11963 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11964 vector integer type.
11965
11966 2016-06-10 Jakub Jelinek <jakub@redhat.com>
11967
11968 PR middle-end/71494
11969 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
11970 without LABEL_DECL, set *handled_ops_p to false instead of true.
11971
11972 2016-06-10 Martin Sebor <msebor@redhat.com>
11973
11974 PR c/71392
11975 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
11976 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
11977 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
11978 them.
11979 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
11980 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
11981 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
11982 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
11983 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
11984 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
11985 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
11986 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
11987
11988 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11989
11990 * config/arm/arm.h (pool_vector_label,
11991 return_used_this_function): Remove.
11992
11993 2016-06-10 Jeff Law <law@redhat.com>
11994
11995 PR tree-optimization/71335
11996 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
11997 zero length paths here.
11998 (convert_and_register_jump_thread_path): Remove hacks related to
11999 duplicated blocks in the jump thread path.
12000 (fsm_find_control_statement_thread_paths): Avoid putting the same
12001 block on the thread path twice, but ensure the thread path is
12002 unchanged from the caller's point of view.
12003
12004 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12005
12006 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
12007 * predict.def (PRED_LOOP_BRANCH): Remove.
12008
12009 2016-06-10 David Malcolm <dmalcolm@redhat.com>
12010
12011 * Makefile.in (OBJS): Add ggc-tests.o.
12012 (GTFILES): Add ggc-tests.c.
12013 * ggc-tests.c: New file.
12014 * selftest-run-tests.c (selftest::run_tests): Call
12015 selftest::ggc_tests_c_tests.
12016 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
12017
12018 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
12019
12020 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
12021
12022 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
12023
12024 PR sanitizer/71480
12025 * varasm.c (place_block_symbol): Adjust alignment for asan protected
12026 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
12027
12028 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12029
12030 * profile.c: Include cfgloop.h.
12031 (branch_prob): Compute estimated number of iterations.
12032 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
12033 recompute estimate number of iterations from profile.
12034
12035 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12036
12037 PR inline-asm/68843
12038 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
12039 must be grouped on top of stack. Don't force early clobber
12040 on ordinary reg outputs.
12041
12042 2016-06-10 Richard Biener <rguenther@suse.de>
12043
12044 * targhooks.c (default_builtin_vectorization_cost): Adjust
12045 vec_construct cost.
12046
12047 2016-06-10 Richard Biener <rguenther@suse.de>
12048
12049 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
12050 to fold the RHS to a constant if possible.
12051
12052 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12053
12054 PR middle-end/71373
12055 * tree-nested.c (convert_nonlocal_omp_clauses)
12056 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
12057 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12058 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
12059
12060 * gimplify.c (gimplify_adjust_omp_clauses): Discard
12061 OMP_CLAUSE_TILE.
12062 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
12063
12064 * omp-low.c (scan_sharing_clauses): Don't expect
12065 OMP_CLAUSE__CACHE_.
12066
12067 2016-06-10 Alan Hayward <alan.hayward@arm.com>
12068
12069 PR tree-optimization/71407
12070 PR tree-optimization/71416
12071 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
12072 BIT_FIELD_REF type.
12073
12074 2016-06-10 Richard Biener <rguenther@suse.de>
12075
12076 PR middle-end/71477
12077 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
12078
12079 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
12080
12081 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
12082
12083 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
12084 Jiong Wang <jiong.wang@arm.com>
12085
12086 PR rtl-optimization/70751
12087 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
12088 spilled into memory.
12089
12090 2016-06-09 Jonathan Yong <10walls@gmail.com>
12091
12092 Revert:
12093 2015-09-21 Jonathan Yong <10walls@gmail.com>
12094
12095 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12096 sysroot/usr/lib/32api for additional win32 libraries,
12097 fixes failing Cygwin bootstrapping.
12098
12099 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
12100
12101 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
12102 Delete.
12103
12104 2016-06-09 David Malcolm <dmalcolm@redhat.com>
12105
12106 PR bootstrap/71471
12107 * pretty-print.c (pp_indent): Specify that %p is printed in a
12108 host-dependent manner.
12109 (test_pp_format): Remove the test for %p.
12110
12111 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
12112
12113 * config/mips/mips.c (mips_output_jump): Fix formatting.
12114
12115 2016-06-09 Richard Biener <rguenther@suse.de>
12116
12117 PR tree-optimization/71462
12118 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
12119 removed blocks.
12120
12121 2016-06-09 Martin Liska <mliska@suse.cz>
12122
12123 * predict.c (dump_prediction): Add new argument.
12124 (enum predictor_reason): New enum.
12125 (struct predictor_hash): New struct.
12126 (predictor_hash::hash): New function.
12127 (predictor_hash::equal): Likewise.
12128 (not_removed_prediction_p): New function.
12129 (prune_predictions_for_bb): Likewise.
12130 (combine_predictions_for_bb): Prune predictions.
12131
12132 2016-06-09 Martin Liska <mliska@suse.cz>
12133
12134 * predict.c (filter_predictions): New function.
12135 (remove_predictions_associated_with_edge): Use the filter
12136 function.
12137 (equal_edge_p): New function.
12138
12139 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
12140
12141 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
12142 Correct usage of @samp vs @option, add @samp where appropriate.
12143 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
12144 Add armv6s-m and document it, as it is no official ARM name.
12145
12146 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12147
12148 * ifcvt.c (struct noce_if_info): Add transform_name field.
12149 (noce_try_move): Set if_info->transform_name to the function name.
12150 (noce_try_ifelse_collapse): Likewise.
12151 (noce_try_store_flag): Likewise.
12152 (noce_try_inverse_constants): Likewise.
12153 (noce_try_store_flag_constants): Likewise.
12154 (noce_try_addcc): Likewise.
12155 (noce_try_store_flag_mask): Likewise.
12156 (noce_try_cmove): Likewise.
12157 (noce_try_cmove_arith): Likewise.
12158 (noce_try_minmax): Likewise.
12159 (noce_try_abs): Likewise.
12160 (noce_try_sign_mask): Likewise.
12161 (noce_try_bitop): Likewise.
12162 (noce_convert_multiple_sets): Likewise.
12163 (noce_process_if_block): Print if_info->transform_name to
12164 dump_file if transformation succeeded.
12165
12166 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12167
12168 * config/arm/cortex-a57.md (cortex_a57_alu):
12169 Handle csel type.
12170
12171 2016-06-08 Martin Sebor <msebor@redhat.com>
12172 Jakub Jelinek <jakub@redhat.com>
12173
12174 PR c++/70507
12175 PR c/68120
12176 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
12177 BUILT_IN_MUL_OVERFLOW_P): New builtins.
12178 * builtins.c: Include gimple-fold.h.
12179 (fold_builtin_arith_overflow): Handle
12180 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
12181 (fold_builtin_3): Likewise.
12182 * doc/extend.texi (Integer Overflow Builtins): Document
12183 __builtin_{add,sub,mul}_overflow_p.
12184
12185 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
12186
12187 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
12188 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
12189
12190 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
12191
12192 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
12193 Rewrite, looking one level down for records and arrays.
12194
12195 2016-06-08 David Malcolm <dmalcolm@redhat.com>
12196
12197 * pretty-print.c: Include "selftest.h".
12198 (pp_format): Fix comment.
12199 (identifier_to_locale): Likewise.
12200 (selftest::test_basic_printing): New function.
12201 (selftest::assert_pp_format): New function.
12202 (selftest::test_pp_format): New function.
12203 (selftest::pretty_print_c_tests): New function.
12204 * selftest-run-tests.c (selftest::run_tests): Call
12205 selftest::pretty_print_c_tests.
12206 * selftest.h (pretty_print_c_tests): New declaration.
12207
12208 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12209
12210 * invoke.texi (max-loop-headers-insns): Document.
12211 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
12212 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
12213 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
12214
12215 2016-06-08 Richard Biener <rguenther@suse.de>
12216
12217 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
12218 on strided SLP loads and fall back to scalar loads in case
12219 we can't chunk them.
12220
12221 2016-06-08 Richard Biener <rguenther@suse.de>
12222
12223 PR tree-optimization/71452
12224 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
12225 type used for the SSA rewrite has enough precision to cover
12226 the dynamic type of the location.
12227
12228 2016-06-08 Jakub Jelinek <jakub@redhat.com>
12229 Richard Biener <rguenther@suse.de>
12230
12231 PR c++/71448
12232 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
12233 the same as DECL_P (base0) for indirect_base0. Use equality_code
12234 in one further place.
12235
12236 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
12237
12238 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
12239 to one word if the field is known to overlap other words.
12240 (extract_bit_field_1): Likewise.
12241 (store_split_bit_field): Remove compensating code.
12242 (extract_split_bit_field): Likewise.
12243
12244 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
12245
12246 PR debug/71432
12247 PR ada/71413
12248 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
12249
12250 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12251
12252 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
12253 VDQF.
12254 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
12255 (arch64_addpv4sf): Delete.
12256 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
12257 "gen_aarch64_addpv4sf".
12258 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
12259 builtin.
12260 (vpadds_f32): Likewise.
12261 (vpaddq_f32): Likewise.
12262 (vpaddq_f64): Likewise.
12263
12264 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12265
12266 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
12267 VALLF.
12268 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
12269 to VALLF. Rename to "fabd<mode>3".
12270 "*fabd_scalar<mode>3): Delete.
12271 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
12272 Use builtin.
12273 (vabdd_f64): Likewise.
12274 (vabd_f32): Likewise.
12275 (vabd_f64): Likewise.
12276 (vabdq_f32): Likewise.
12277 (vabdq_f64): Likewise.
12278
12279 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12280
12281 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
12282 VALLF.
12283 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
12284 "aarch64_rsqrts<mode>".
12285 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
12286 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
12287 builtin.
12288 (vrsqrtsd_f64): Likewise.
12289 (vrsqrts_f32): Likewise.
12290 (vrsqrts_f64): Likewise.
12291 (vrsqrtsq_f32): Likewise.
12292 (vrsqrtsq_f64): Likewise.
12293
12294 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12295
12296 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
12297 VALLF.
12298 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
12299 "aarch64_rsqrte<mode>".
12300 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
12301 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
12302 builtin.
12303 (vrsqrted_f64): Likewise.
12304 (vrsqrte_f32): Likewise.
12305 (vrsqrte_f64): Likewise.
12306 (vrsqrteq_f32): Likewise.
12307 (vrsqrteq_f64): Likewise.
12308
12309 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12310
12311 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
12312 (ucvtf): Likewise.
12313 (fcvtzs): Likewise.
12314 (fcvtzu): Likewise.
12315 * config/aarch64/aarch64-simd.md
12316 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
12317 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
12318 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
12319 Use builtin.
12320 (vcvt_n_f32_u32): Likewise.
12321 (vcvt_n_s32_f32): Likewise.
12322 (vcvt_n_u32_f32): Likewise.
12323 (vcvtq_n_f32_s32): Likewise.
12324 (vcvtq_n_f32_u32): Likewise.
12325 (vcvtq_n_f64_s64): Likewise.
12326 (vcvtq_n_f64_u64): Likewise.
12327 (vcvtq_n_s32_f32): Likewise.
12328 (vcvtq_n_s64_f64): Likewise.
12329 (vcvtq_n_u32_f32): Likewise.
12330 (vcvtq_n_u64_f64): Likewise.
12331 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
12332 (VSDQ_SDI): Likewise.
12333 (fcvt_target): Support V4DI, V4SI and V2SI.
12334 (FCVT_TARGET): Likewise.
12335
12336 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12337
12338 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
12339 (TYPES_BINOP_SUS): Likewise.
12340 (aarch64_simd_builtin_data): Update include file name.
12341 (aarch64_builtins): Likewise.
12342 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
12343 for conversion between scalar float-point and fixed-point.
12344 (ucvtf): Likewise.
12345 (fcvtzs): Likewise.
12346 (fcvtzu): Likewise.
12347 * config/aarch64/aarch64.md
12348 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
12349 pattern for conversion between scalar float to fixed-pointer.
12350 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
12351 (UNSPEC_FCVTZS): New UNSPEC enumeration.
12352 (UNSPEC_FCVTZU): Likewise.
12353 (UNSPEC_SCVTF): Likewise.
12354 (UNSPEC_UCVTF): Likewise.
12355 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
12356 Use builtin.
12357 (vcvtd_n_f64_u64): Likewise.
12358 (vcvtd_n_s64_f64): Likewise.
12359 (vcvtd_n_u64_f64): Likewise.
12360 (vcvtd_n_f32_s32): Likewise.
12361 (vcvts_n_f32_u32): Likewise.
12362 (vcvtd_n_s32_f32): Likewise.
12363 (vcvts_n_u32_f32): Likewise.
12364 * config/aarch64/iterators.md (fcvt_target): Support integer to float
12365 mapping.
12366 (FCVT_TARGET): Likewise.
12367 (FCVT_FIXED2F): New iterator.
12368 (FCVT_F2FIXED): Likewise.
12369 (fcvt_fixed_insn): New define_int_attr.
12370
12371 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12372
12373 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
12374 some statements was removed.
12375
12376 2016-06-08 Alan Hayward <alan.hayward@arm.com>
12377
12378 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
12379 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
12380 (vect_can_advance_ivs_p): likewise.
12381 (vect_update_ivs_after_vectorizer): likewise.
12382 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
12383 (vect_analyze_scalar_cycles_1): likewise.
12384 (vect_analyze_loop_operations): likewise.
12385 (report_vect_op): likewise.
12386 (vect_is_slp_reduction): likewise.
12387 (vect_is_simple_reduction): likewise.
12388 (get_initial_def_for_induction): likewise.
12389 (vect_transform_loop): likewise.
12390 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
12391 (vect_recog_sad_pattern): likewise.
12392 (vect_recog_widen_sum_pattern): likewise.
12393 (vect_recog_widening_pattern): likewise.
12394 (vect_recog_divmod_pattern): likewise.
12395 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
12396 (vect_analyze_slp_instance): likewise.
12397 (vect_transform_slp_perm_load): likewise.
12398 (vect_schedule_slp_instance): likewise.
12399
12400 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12401
12402 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
12403 (return_prediction): PRED_CONST_RETURN predict return as not taken.
12404 * predict.def (PRED_CONTINUE): Change hitrate 50->67
12405 (PRED_LOOP_BRANCH): Document predictor as broken.
12406 (PRED_LOOP_EXIT): Change hitrate 91->92.
12407 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
12408 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
12409 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
12410 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
12411 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
12412 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
12413 (PRED_CALL): Chane hitrate 71->67.
12414 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
12415 (PRED_GOTO): Document as unused right now.
12416 (PRED_CONST_RETURN): Change hitrate 67->69
12417 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
12418 (PRED_NULL_RETURN): Change hitrate 91->90.
12419 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
12420 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
12421 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
12422
12423 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
12424
12425 * config/rs6000/altivec.h: Add __builtin_vec_mul.
12426 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
12427 special case Altivec builtin.
12428 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
12429 VSX_BUILTIN_VEC_MUL (replaced with special case code).
12430 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12431 code for ALTIVEC_BUILTIN_VEC_MUL.
12432 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12433 for __builtin_vec_mul.
12434
12435 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
12436
12437 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
12438 -mno-htm.
12439
12440 2016-06-07 David Malcolm <dmalcolm@redhat.com>
12441
12442 * spellcheck.c (selftest::test_find_closest_string): New function.
12443 (spellcheck_c_tests): Call the above.
12444
12445 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12446
12447 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
12448
12449 2016-06-07 Jakub Jelinek <jakub@redhat.com>
12450
12451 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
12452 Yv=Yv,C alternatives.
12453
12454 2016-06-07 Richard Biener <rguenther@suse.de>
12455
12456 PR c/61564
12457 * common.opt (ffast-math): Make Optimization.
12458
12459 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
12460 Prachi Godbole <prachi.godbole@imgtec.com>
12461
12462 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
12463 `fabs' and `fneg' type attributes.
12464 (p5600_fpu_fabs): Add `fmove' to the comment.
12465
12466 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12467
12468 * gimple.c: Include builtins.h
12469 (gimple_inexpensive_call_p): New function.
12470 * gimple.h (gimple_inexpensive_call_p): Declare.
12471 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
12472 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
12473 fix formatting.
12474
12475 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
12476
12477 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
12478 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
12479 warning_at_rich_loc, warning_n, pedwarn, permerror,
12480 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
12481 sorry, fatal_error, internal_error, internal_error_no_backtrace):
12482 Use the above.
12483
12484 2016-06-07 Richard Biener <rguenther@suse.de>
12485
12486 PR tree-optimization/71428
12487 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
12488 BIT_FIELD_REF op vs. load.
12489
12490 2016-06-07 Richard Biener <rguenther@suse.de>
12491
12492 PR middle-end/71423
12493 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
12494 for signed ops.
12495
12496 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12497
12498 * config/pa/pa.md (call): Generate indirect long calls to non-local
12499 functions on TARGET_64BIT.
12500 (call_value): Likewise.
12501
12502 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12503
12504 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
12505 pattern and subsequent splitters.
12506 (call_val_reg_64bit_post_reload): Likewise.
12507
12508 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12509
12510 PR middle-end/71408
12511 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
12512 propagate_op_to_single_use.
12513
12514 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12515
12516 PR middle-end/71281
12517 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
12518
12519 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
12520
12521 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
12522 (enum x86_dirflag_state): New enum.
12523 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
12524 (machine_function): Remove needs_cld.
12525 (ix86_current_function_needs_cld): Remove.
12526 * config/i386/i386.c (ix86_set_func_type): Set
12527 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
12528 (ix86_expand_prologue): Do not emit CLD here.
12529 (ix86_dirflag_mode_needed): New function.
12530 (ix86_dirflag_mode_entry): Ditto.
12531 (ix86_mode_needed): Handle X86_DIRFLAG entity.
12532 (ix86_mode_after): Ditto.
12533 (ix86_mode_entry): Ditto.
12534 (ix86_mode_exit): Ditto.
12535 (ix86_emit_mode_set): Ditto.
12536 * config/i386/i386.md (strmov_singleop): Set
12537 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
12538 Do not set ix86_current_function_needs_cld.
12539 (rep_mov): Ditto.
12540 (strset_singleop): Ditto.
12541 (rep_stos): Ditto.
12542 (cmpstrnqi_nz_1): Ditto.
12543 (cmpstrnqi_1): Ditto.
12544 (strlenqi_1): Ditto.
12545
12546 2016-06-06 Jakub Jelinek <jakub@redhat.com>
12547
12548 PR tree-optimization/71259
12549 * tree-vect-slp.c (vect_get_constant_vectors): For
12550 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
12551 one for constant op, and use COND_EXPR for non-constant.
12552
12553 2016-06-06 David Malcolm <dmalcolm@redhat.com>
12554
12555 * Makefile.in (OBJS): Add function-tests.o,
12556 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
12557 selftest-run-tests.o.
12558 (OBJS-libcommon): Add selftest.o.
12559 (OBJS-libcommon-target): Add selftest.o.
12560 (all.internal): Add "selftest".
12561 (all.cross): Likewise.
12562 (selftest): New phony target.
12563 (s-selftest): New target.
12564 (selftest-gdb): New phony target.
12565 (COLLECT2_OBJS): Add selftest.o.
12566 * bitmap.c: Include "selftest.h".
12567 (selftest::test_gc_alloc): New function.
12568 (selftest::test_set_range): New function.
12569 (selftest::test_clear_bit_in_middle): New function.
12570 (selftest::test_copying): New function.
12571 (selftest::test_bitmap_single_bit_set_p): New function.
12572 (selftest::bitmap_c_tests): New function.
12573 * common.opt (fself-test): New.
12574 * diagnostic-show-locus.c: Include "selftest.h".
12575 (make_range): New function.
12576 (test_range_contains_point_for_single_point): New function.
12577 (test_range_contains_point_for_single_line): New function.
12578 (test_range_contains_point_for_multiple_lines): New function.
12579 (assert_eq): New function.
12580 (test_get_line_width_without_trailing_whitespace): New function.
12581 (selftest::diagnostic_show_locus_c_tests): New function.
12582 * et-forest.c: Include "selftest.h".
12583 (selftest::test_single_node): New function.
12584 (selftest::test_simple_tree): New function.
12585 (selftest::test_disconnected_nodes): New function.
12586 (selftest::et_forest_c_tests): New function.
12587 * fold-const.c: Include "selftest.h".
12588 (selftest::assert_binop_folds_to_const): New function.
12589 (selftest::assert_binop_folds_to_nonlvalue): New function.
12590 (selftest::test_arithmetic_folding): New function.
12591 (selftest::fold_const_c_tests): New function.
12592 * function-tests.c: New file.
12593 * gimple.c: Include "selftest.h".
12594 Include "gimple-pretty-print.h".
12595 (selftest::verify_gimple_pp): New function.
12596 (selftest::test_assign_single): New function.
12597 (selftest::test_assign_binop): New function.
12598 (selftest::test_nop_stmt): New function.
12599 (selftest::test_return_stmt): New function.
12600 (selftest::test_return_without_value): New function.
12601 (selftest::gimple_c_tests): New function.
12602 * hash-map-tests.c: New file.
12603 * hash-set-tests.c: New file.
12604 * input.c: Include "selftest.h".
12605 (selftest::assert_loceq): New function.
12606 (selftest::test_accessing_ordinary_linemaps): New function.
12607 (selftest::test_unknown_location): New function.
12608 (selftest::test_builtins): New function.
12609 (selftest::test_reading_source_line): New function.
12610 (selftest::input_c_tests): New function.
12611 * rtl-tests.c: New file.
12612 * selftest-run-tests.c: New file.
12613 * selftest.c: New file.
12614 * selftest.h: New file.
12615 * spellcheck.c: Include "selftest.h".
12616 (selftest::levenshtein_distance_unit_test_oneway): New function,
12617 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
12618 (selftest::levenshtein_distance_unit_test): Likewise.
12619 (selftest::spellcheck_c_tests): Likewise.
12620 * toplev.c: Include selftest.h.
12621 (toplev::run_self_tests): New.
12622 (toplev::main): Handle -fself-test.
12623 * toplev.h (toplev::run_self_tests): New.
12624 * tree.c: Include "selftest.h".
12625 (selftest::test_integer_constants): New function.
12626 (selftest::test_identifiers): New function.
12627 (selftest::test_labels): New function.
12628 (selftest::tree_c_tests): New function.
12629 * tree-cfg.c: Include "selftest.h".
12630 (selftest::push_fndecl): New function.
12631 (selftest::test_linear_chain): New function.
12632 (selftest::test_diamond): New function.
12633 (selftest::test_fully_connected): New function.
12634 (selftest::tree_cfg_c_tests): New function.
12635 * vec.c: Include "selftest.h".
12636 (selftest::safe_push_range): New function.
12637 (selftest::test_quick_push): New function.
12638 (selftest::test_safe_push): New function.
12639 (selftest::test_truncate): New function.
12640 (selftest::test_safe_grow_cleared): New function.
12641 (selftest::test_pop): New function.
12642 (selftest::test_safe_insert): New function.
12643 (selftest::test_ordered_remove): New function.
12644 (selftest::test_unordered_remove): New function.
12645 (selftest::test_block_remove): New function.
12646 (selftest::reverse_cmp): New function.
12647 (selftest::test_qsort): New function.
12648 (selftest::vec_c_tests): New function.c.
12649 * wide-int.cc: Include selftest.h and wide-int-print.h.
12650 (selftest::from_int <wide_int>): New function.
12651 (selftest::from_int <offset_int>): New function.
12652 (selftest::from_int <widest_int>): New function.
12653 (selftest::assert_deceq): New function.
12654 (selftest::assert_hexeq): New function.
12655 (selftest::test_printing <VALUE_TYPE>): New function template.
12656 (selftest::test_ops <VALUE_TYPE>): New function template.
12657 (selftest::test_comparisons <VALUE_TYPE>): New function template.
12658 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
12659 template.
12660 (selftest::wide_int_cc_tests): New function.
12661
12662 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12663
12664 PR middle-end/37780
12665 * ifcvt.c (noce_try_ifelse_collapse): New function.
12666 Declare prototype.
12667 (noce_process_if_block): Call noce_try_ifelse_collapse.
12668 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
12669 (simplify_ternary_operation): Use the above to simplify
12670 conditional CLZ/CTZ expressions.
12671
12672 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12673
12674 PR middle-end/37780
12675 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
12676 define_insn_and_split.
12677
12678 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12679
12680 PR middle-end/37780
12681 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
12682
12683 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
12684
12685 PR c/24414
12686 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
12687 Implicitly clobber memory for basic asm with non-empty assembler
12688 string. Use targetm.md_asm_adjust also here.
12689 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
12690 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
12691 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
12692 non-empty assembler string.
12693 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
12694 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
12695 (decode_asm_operands): Handle basic asm in PARALLEL block.
12696 (extract_insn): Handle basic asm in PARALLEL block.
12697 * doc/extend.texi: Mention new behavior of basic asm.
12698 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
12699 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
12700 branch_needs_nop_p): Use asm_noperands.
12701
12702 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
12703
12704 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
12705 Include the M7 SPARC DFA scheduler.
12706 New attribute v3pipe.
12707 Annotate insns with v3pipe where appropriate.
12708 Define cpu_feature vis4.
12709 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
12710 Add (V8QI "8") to vbits.
12711 Add insns {add,sub}v8qi3
12712 Add insns ss{add,sub}v8qi3
12713 Add insns us{add,sub}{v8qi,v4hi}3
12714 Add insns {min,max}{v8qi,v4hi,v2si}3
12715 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
12716 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
12717 * config/sparc/niagara4.md: Add a comment explaining the
12718 discrepancy between the documented latenty numbers and the
12719 implemented ones.
12720 * config/sparc/niagara7.md: New file.
12721 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
12722 supports SPARC5 and VIS 4.0 instructions.
12723 * configure: Regenerate.
12724 * config.in: Likewise.
12725 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
12726 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
12727 TARGET_CPU_niagara7.
12728 (ASM_CPU64_DEFAULT_SPEC): Likewise.
12729 (CPP_CPU_SPEC): Handle niagara7.
12730 (ASM_CPU_SPEC): Likewise.
12731 * config/sparc/sparc-opts.h (processor_type): Add
12732 PROCESSOR_NIAGARA7.
12733 (mvis4): New option.
12734 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
12735 (AS_NIAGARA7_FLAG): Define.
12736 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
12737 (CPP_CPU64_DEFAULT_SPEC): Likewise.
12738 (CPP_CPU_SPEC): Handle niagara7.
12739 (ASM_CPU_SPEC): Likewise.
12740 * config/sparc/sparc.c (niagara7_costs): Define.
12741 (sparc_option_override): Handle niagara7 and adjust cache-related
12742 parameters with better values for niagara cpus. Also support VIS4.
12743 (sparc32_initialize_trampoline): Likewise.
12744 (sparc_use_sched_lookahead): Likewise.
12745 (sparc_issue_rate): Likewise.
12746 (sparc_register_move_cost): Likewise.
12747 (dump_target_flag_bits): Support VIS4.
12748 (sparc_vis_init_builtins): Likewise.
12749 (sparc_builtins): Likewise.
12750 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12751 VIS4 4.0.
12752 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12753 UltraSparc M7.
12754 * config/sparc/sparc.opt (sparc_processor_type): New value
12755 niagara7.
12756 * config/sparc/visintrin.h (__attribute__): Prototypes for the
12757 VIS4 builtins.
12758 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12759 -mvis4.
12760 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12761 VIS4 builtins.
12762
12763 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
12764
12765 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12766
12767 2016-06-06 Richard Biener <rguenther@suse.de>
12768
12769 PR tree-optimization/71398
12770 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12771 remove edges.
12772
12773 2016-06-05 James Bowman <james.bowman@ftdichip.com>
12774
12775 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12776 ft32_expand_prolog, ft32_expand_epilogue):
12777 Handle pretend_args.
12778 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12779 * config/ft32/ft32.md: Add pretend_returner.
12780
12781 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
12782
12783 PR target/71389
12784 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12785 Copy op1 RTX to avoid invalid sharing.
12786 (ix86_expand_vector_move_misalign): Ditto.
12787
12788 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
12789
12790 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12791 ATTRIBUTE_UNUSED.
12792
12793 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12794
12795 * predict.c (predicted_by_loop_heuristics_p): New function.
12796 (predict_iv_comparison): Use it.
12797 (predict_loops): Walk from innermost loops; do not predict edges
12798 leaving multiple loops multiple times; implement
12799 PRED_LOOP_ITERATIONS_MAX heuristics.
12800 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12801
12802 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12803
12804 * cfg.c (check_bb_profile): Do not report mismatched profiles when
12805 only edges out of BB are EH edges.
12806
12807 2016-06-04 Martin Sebor <msebor@redhat.com>
12808 Marcin Baczyński <marbacz@gmail.com>
12809
12810 PR c/48116
12811 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12812 a void expression in a void function.
12813
12814 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12815
12816 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12817 aux; dump reasons of decisions.
12818 (should_duplicate_loop_header_p): Likewise.
12819 (do_while_loop_p): Likewise.
12820 (ch_base::copy_headers): Dump asi num insns duplicated.
12821
12822 2016-06-04 Jakub Jelinek <jakub@redhat.com>
12823
12824 PR tree-optimization/71405
12825 * tree-ssa.c (execute_update_addresses_taken): For clobber with
12826 incompatible type, build a new clobber with the right type instead
12827 of building a VIEW_CONVERT_EXPR around it.
12828
12829 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12830
12831 PR tree-optimization/52171
12832 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12833 by_pieces_ninsns instead of move_by_pieces_ninsns.
12834
12835 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12836
12837 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12838 for reg+reg addressing mode.
12839
12840 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12841
12842 * rs6000-c.c (c/c-tree.h): Add #include.
12843 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12844 in C++ when found in the base position of vec_ld or vec_st.
12845
12846 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12847
12848 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12849 use of profile unless profile status is PROFILE_READ.
12850 * profile.c (compute_branch_probabilities): Set profile status
12851 only after reporting predictor hitrates.
12852
12853 2016-06-03 Joseph Myers <joseph@codesourcery.com>
12854
12855 PR target/71276
12856 PR target/71277
12857 * common.opt (ffp-int-builtin-inexact): New option.
12858 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12859 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12860 (ceil@var{m}2): Document dependence on this option.
12861 * ipa-inline-transform.c (inline_call): Handle
12862 flag_fp_int_builtin_inexact.
12863 * ipa-inline.c (can_inline_edge_p): Likewise.
12864 * config/i386/i386.md (rintxf2): Do not test
12865 flag_unsafe_math_optimizations.
12866 (rint<mode>2_frndint): New define_insn.
12867 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12868 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
12869 for 387 instead of extending and truncating.
12870 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12871 !flag_trapping_math instead of flag_unsafe_math_optimizations.
12872 Change to frndint<mode>2_<rounding>.
12873 (frndintxf2_<rounding>_i387): Likewise. Change to
12874 frndint<mode>2_<rounding>_i387.
12875 (<rounding_insn>xf2): Likewise.
12876 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12877 !flag_trapping_math instead of flag_unsafe_math_optimizations for
12878 x87. Test TARGET_ROUND || !flag_trapping_math ||
12879 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12880 SSE. Use ROUND_NO_EXC in constant operand of
12881 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
12882 for 387 instead of extending and truncating.
12883
12884 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
12885 Julia Koval <julia.koval@intel.com>
12886
12887 PR target/66960
12888 PR target/67630
12889 PR target/67634
12890 PR target/67841
12891 PR target/68037
12892 PR target/68618
12893 PR target/68661
12894 PR target/69575
12895 PR target/69596
12896 PR target/69734
12897 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12898 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12899 all registers, except for function return registers if there are
12900 no caller-saved registers.
12901 (ix86_set_func_type): New function.
12902 (ix86_set_current_function): Call ix86_set_func_type to set
12903 no_caller_saved_registers and func_type. Call reinit_regs if
12904 caller-saved registers are changed. Don't allow MPX, SSE, MMX
12905 nor x87 instructions in interrupt handler nor function with
12906 no_caller_saved_registers attribute.
12907 (ix86_function_ok_for_sibcall): Return false if there are no
12908 caller-saved registers.
12909 (type_natural_mode): Don't warn ABI change for MMX in interrupt
12910 handler.
12911 (ix86_function_arg_advance): Skip for callee in interrupt handler.
12912 (ix86_function_arg): Return special arguments in interrupt handler.
12913 (ix86_promote_function_mode): Promote pointer to word_mode only
12914 for normal functions.
12915 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12916 interrupt handler.
12917 (ix86_epilogue_uses): New function.
12918 (ix86_hard_regno_scratch_ok): Likewise.
12919 (ix86_save_reg): Preserve all registers in interrupt handler
12920 after reload. Preserve all registers, except for function return
12921 registers, if there are no caller-saved registers after reload.
12922 (find_drap_reg): Always use callee-saved register if there are
12923 no caller-saved registers.
12924 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12925 for interrupt handler.
12926 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12927 Emit cld instruction if stringops are used in interrupt handler
12928 or interrupt handler isn't a leaf function.
12929 (ix86_expand_epilogue): Generate interrupt return for interrupt
12930 handler and pop the 'ERROR_CODE' off the stack before interrupt
12931 return in exception handler.
12932 (ix86_expand_call): Disallow calling interrupt handler directly.
12933 If there are no caller-saved registers, mark all registers that
12934 are clobbered by the call which returns as clobbered.
12935 (ix86_handle_no_caller_saved_registers_attribute): New function.
12936 (ix86_handle_interrupt_attribute): Likewise.
12937 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12938 attributes.
12939 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12940 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12941 accumulation in interrupt function if stack may be realigned to
12942 avoid DRAP.
12943 (EPILOGUE_USES): New.
12944 (function_type): New enum.
12945 (machine_function): Add func_type and no_caller_saved_registers.
12946 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12947 (interrupt_return): New pattern.
12948 * doc/extend.texi: Document x86 interrupt and
12949 no_caller_saved_registers attributes.
12950
12951 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
12952
12953 PR tree-optimization/52171
12954 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12955 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
12956 Look for constant strings. Move some code to emit_block_cmp_hints
12957 and use it.
12958 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12959 * defaults.h (COMPARE_MAX_PIECES): New macro.
12960 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12961 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12962 (clear_by_pieces_1): Don't declare. Move definition before use.
12963 (can_do_by_pieces): New static function.
12964 (can_move_by_pieces): Use it. Return bool.
12965 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
12966 OP. All callers changed. Handle COMPARE_BY_PIECES.
12967 (class pieces_addr); New.
12968 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
12969 pieces_addr::adjust, pieces_addr::increment_address,
12970 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
12971 functions for it.
12972 (class op_by_pieces_d): New.
12973 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
12974 functions for it.
12975 (class move_by_pieces_d, class compare_by_pieces_d,
12976 class store_by_pieces_d): New subclasses of op_by_pieces_d.
12977 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
12978 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
12979 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
12980 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
12981 compare_by_pieces_d::finish_mode): New member functions.
12982 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
12983 functions.
12984 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
12985 (emit_block_cmp_hints): New function.
12986 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
12987 use the newly defined classes.
12988 * expr.h (by_pieces_constfn): New typedef.
12989 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
12990 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
12991 (move_by_pieces_ninsns): Don't declare.
12992 (can_move_by_pieces): Change return value to bool.
12993 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
12994 (compare_by_pieces_branch_ratio): New hook.
12995 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
12996 (by_pieces_ninsns): Declare.
12997 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
12998 COMPARE_BY_PIECES.
12999 (default_compare_by_pieces_branch_ratio): New function.
13000 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
13001 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
13002 * doc/tm.texi: Regenerate.
13003 * tree-ssa-strlen.c: Include "builtins.h".
13004 (handle_builtin_memcmp): New static function.
13005 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
13006 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
13007
13008 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13009
13010 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
13011 relevant stmts which are simple and invariant.
13012 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
13013 instead of simple and invariant
13014
13015 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13016
13017 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
13018 (vectorizable_reduction): Check for new relevant state.
13019 (vectorizable_live_operation): vectorize live stmts using
13020 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
13021 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
13022 (vect_stmt_relevant_p): Check for stmts which are only used live.
13023 (process_use): Use of a stmt does not inherit it's live value.
13024 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
13025 (vect_analyze_stmt): Check for new relevant state.
13026 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
13027 outside the loop, but not inside it.
13028
13029 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13030
13031 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
13032 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
13033 (vect_get_vec_def_for_operand): Split out code.
13034
13035 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
13036
13037 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
13038
13039 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13040
13041 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
13042
13043 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13044
13045 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
13046
13047 2016-06-03 Jakub Jelinek <jakub@redhat.com>
13048
13049 PR middle-end/71387
13050 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
13051 to noreturn e->callee->decl that has void return type and void
13052 arguments, adjust gimple_call_fntype and remove lhs even if it had
13053 previously addressable type.
13054
13055 2016-06-02 Jeff Law <law@redhat.com>
13056
13057 PR tree-optimization/71328
13058 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
13059 error when checking for a jump back onto the copied path.
13060
13061 2016-06-02 David Malcolm <dmalcolm@redhat.com>
13062
13063 * config/microblaze/microblaze.c (get_branch_target): Add return
13064 NULL_RTX for the non-CALL_P case.
13065 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
13066 (insert_wic): Remove unused local "j".
13067
13068 2016-06-02 Martin Liska <mliska@suse.cz>
13069
13070 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
13071
13072 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
13073 Julia Koval <julia.koval@intel.com>
13074
13075 * function.c (assign_parm_setup_stack): Force source into a
13076 register if needed.
13077 * target.def (function_incoming_arg): Update documentation to
13078 allow arbitrary address computation based on hard register.
13079 * doc/tm.texi: Regenerated.
13080
13081 2016-06-02 Martin Liska <mliska@suse.cz>
13082
13083 * predict.c (combine_predictions_for_bb): Fix first match in
13084 cases where a first predictor contains more than one occurence
13085 in list of predictors. Take the best value in such case.
13086
13087 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13088
13089 PR rtl-optimization/71295
13090 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
13091 offset would go over the size of the inner mode reject it.
13092
13093 2016-06-02 Jakub Jelinek <jakub@redhat.com>
13094
13095 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
13096 x=x,x and v=v,m instead of x=x,m.
13097
13098 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
13099 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
13100 alternative to v=rm,C.
13101
13102 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
13103 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
13104 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
13105 instead of vex for the last two above mentioned alternatives.
13106
13107 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13108
13109 PR target/70830
13110 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
13111
13112 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
13113
13114 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
13115
13116 2016-06-01 David Malcolm <dmalcolm@redhat.com>
13117
13118 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
13119 from int to unsigned.
13120
13121 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13122
13123 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
13124 alternatives, eliminating preferred register class. Add support
13125 for the MTVSRDD instruction in ISA 3.0.
13126 (vsx_splat_v4si_internal): Use splat_input_operand instead of
13127 reg_or_indexed_operand.
13128 (vsx_splat_v4sf_internal): Likewise.
13129
13130 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13131
13132 PR target/71186
13133 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
13134 for loading up all 0's or all 1's.
13135
13136 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13137
13138 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
13139
13140 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
13141
13142 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
13143 extension.
13144 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
13145 * gcc.c (set_source_date_epoch_envvar): New function, sets
13146 the SOURCE_DATE_EPOCH environment variable to the current time.
13147
13148 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13149
13150 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
13151 the factor for live Phi nodes.
13152
13153 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13154
13155 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
13156 * tree-parloops.c (parallelize_loops): likewise.
13157 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
13158 tree_unswitch_outer_loop): likewise.
13159
13160 2016-06-01 Jakub Jelinek <jakub@redhat.com>
13161
13162 PR middle-end/71371
13163 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
13164 around creation of the temporary.
13165
13166 2016-06-01 Richard Biener <rguenther@suse.de>
13167
13168 PR tree-optimization/71366
13169 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
13170 (unloop_loops): Move removing edges here ...
13171 (try_unroll_loop_completely): ... from here.
13172 (try_peel_loop): ... and here.
13173 (tree_unroll_loops_completely_1): Track parent loops via
13174 bitmap of header BBs.
13175 (tree_unroll_loops_completely): Adjust for that.
13176
13177 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
13178
13179 * config/rs6000/altivec.h (vec_slv): New macro.
13180 (vec_srv): New macro.
13181 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
13182 (UNSPEC_VSRV): New value.
13183 (vslv): New insn.
13184 (vsrv): New insn.
13185 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
13186 (vsrv): New builtin definition.
13187 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
13188 define argument types for new builtin.
13189 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
13190 new builtin.
13191 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
13192 functions.
13193
13194 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
13195 Jocelyn Mayer <l_indien@magic.fr>
13196
13197 PR target/67310
13198 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
13199 detect processor family for signature_CENTAUR_ebx.
13200 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
13201 signature_CENTAUR_ebx.
13202 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
13203 <default>: Pass x86-64 for has_longmode.
13204
13205 2016-06-01 Nathan Sidwell <nathan@acm.org>
13206
13207 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
13208 undefined weak.
13209
13210 2016-06-01 Richard Biener <rguenther@suse.de>
13211
13212 PR tree-optimization/71261
13213 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
13214 of stmts successfully put in the bool pattern. Remove
13215 single-use restriction.
13216 (adjust_bool_pattern_cast): Add cast at the use site via the
13217 pattern def sequence.
13218 (adjust_bool_pattern): Remove recursion, maintain a hash-map
13219 of patterned defs. Use the pattern def seqence instead of
13220 multiple independent patterns.
13221 (sort_after_uid): New qsort compare function.
13222 (adjust_bool_stmts): New function to process stmts in the bool
13223 pattern in IL order.
13224 (vect_recog_bool_pattern): Adjust.
13225 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
13226 (ifcvt_walk_pattern_tree): Likewise.
13227 (stmt_is_root_of_bool_pattern): Likewise.
13228 (ifcvt_repair_bool_pattern): Likewise.
13229 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
13230
13231 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13232
13233 * loop-unroll.c (decide_unroll_constant_iterations,
13234 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
13235 likely upper bounds.
13236 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
13237
13238 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
13239
13240 * tree-core.h (enum omp_clause_code): Remove
13241 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
13242
13243 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13244
13245 * config/arm/sync.md (arm_store_exclusive<mode>):
13246 Use 'H' output modifier on operands[2] rather than creating a new
13247 entry in out-of-bounds memory of the operands array.
13248 (arm_store_release_exclusivedi): Likewise.
13249
13250 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13251
13252 * config/arm/arm.c (arm_fusion_enabled_p): New function.
13253 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
13254 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
13255 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13256
13257 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13258
13259 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
13260 into account live statements for mask producers.
13261
13262 2016-06-01 Richard Biener <rguenther@suse.de>
13263
13264 PR tree-optimization/71311
13265 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
13266 restrict to non-INTEGER_CST @0.
13267
13268 2016-06-01 Richard Biener <rguenther@suse.de>
13269
13270 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
13271 (relational patterns): Use :c to avoid pattern duplications.
13272
13273 2016-06-01 Richard Biener <rguenther@suse.de>
13274
13275 * genmatch.c (comparison_code_p): New predicate.
13276 (swap_tree_comparison): New function.
13277 (commutate): Add for_vec parameter to append new for entries.
13278 Support commutating relational operators by swapping it alongside
13279 operands.
13280 (lower_commutative): Adjust.
13281 (dt_simplify::gen): Do not pass artificial operators to gen
13282 functions.
13283 (decision_tree::gen): Do not add artificial operators as parameters.
13284 (parser::parse_expr): Verify operator commutativity when :c is
13285 applied. Allow :C to override this.
13286 * match.pd: Adjust patterns to use :C instead of :c where required.
13287
13288 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
13289
13290 PR tree-optimization/71077
13291 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
13292 the combining step, use boolean_false_node and boolean_true_node
13293 as the designated false/true return values.
13294
13295 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13296
13297 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
13298 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
13299 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
13300 PRED_LOOP_EXIT.
13301
13302 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13303
13304 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
13305 of flags impliying the register renaming.
13306 * toplev.c (process_options): Do not imply flag_rename_registers with
13307 loop peeling.
13308
13309 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13310
13311 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
13312 default implementation.
13313
13314 2016-05-31 Nathan Sidwell <nathan@acm.org>
13315
13316 * dwarf2out.c (cur_line_info_table): Add GTY marker.
13317
13318 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13319
13320 * config/sh/constraints.md (b): Remove constraint.
13321 * config/sh/predicates.md (arith_reg_operand): Remove
13322 TARGET_REGISTER_P.
13323 * config/sh/sh-modes.def (PDI): Remove.
13324 * config/sh/sh.c (sh_target_reg_class,
13325 sh_optimize_target_register_callee_saved): Remove functions.
13326 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
13327 (sh_expand_epilogue): Update comment.
13328 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
13329 sh_secondary_reload): Remove TARGET_REGS related code.
13330 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
13331 TARGET_REGISTER_P): Remove macros.
13332 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
13333 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
13334 TR1_REG, TR2_REG): Remove constants.
13335 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
13336
13337 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13338
13339 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
13340 define_expand patterns.
13341 (adddi3_compact): Rename to adddi3.
13342 (subdi3_compact): Rename to subdi3.
13343 (*negdi2): Rename to negdi2.
13344 (*abs<mode>2): Rename to abs<mode>2.
13345
13346 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13347
13348 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
13349 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
13350 (atomic_sub_fetchsi): ... this new pattern.
13351 (mvtc): Add CC_REG clobber.
13352
13353 2016-05-31 Marek Polacek <polacek@redhat.com>
13354
13355 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
13356
13357 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13358
13359 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
13360 aarch64_fusion_enabled_p to check for fusion capabilities.
13361
13362 2016-05-31 Richard Biener <rguenther@suse.de>
13363
13364 PR tree-optimization/71352
13365 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
13366 minus one and a negate.
13367
13368 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13369
13370 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
13371 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
13372 Delete prototype.
13373 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
13374 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
13375 Remove use of aarch64_simd_attr_length_move, set length attribute
13376 directly.
13377 (*aarch64_be_movoi): Likewise.
13378 (*aarch64_be_movci): Likewise.
13379 (*aarch64_be_movxi): Likewise.
13380
13381 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13382
13383 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
13384 It no longer does that.
13385 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
13386
13387 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
13388
13389 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
13390 attribute __unused__.
13391
13392 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
13393
13394 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
13395 * config/arm/arm.c (arm_arch_thumb1): Define.
13396 (arm_option_override): Initialize arm_arch_thumb1.
13397 * config/arm/arm.h (arm_arch_thumb1): Declare.
13398 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
13399 support Thumb-1 ISA.
13400
13401 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
13402
13403 PR target/71346
13404 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
13405 `Yv' for scalar operand.
13406
13407 2016-05-31 Tom de Vries <tom@codesourcery.com>
13408
13409 PR tree-optimization/69068
13410 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
13411 phis with more than two args.
13412
13413 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
13414
13415 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
13416 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
13417 target.
13418
13419 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
13420
13421 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
13422 tune_64.
13423 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
13424 support on SPARC.
13425 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
13426 cpu_32, cpu_64, tune_32 and tune_64.
13427 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
13428
13429 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
13430
13431 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
13432
13433 2016-05-30 Andi Kleen <ak@linux.intel.com>
13434
13435 * auto-profile.c (read_profile): Replace asserts with errors
13436 when file does not exist.
13437 * gcov-io.c (gcov_read_words): Dito.
13438
13439 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13440
13441 * tree-cfg.c (print_loop): Print likely upper bounds.
13442
13443 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13444
13445 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
13446 * opts.c (default_options): Enable peel loops at -O3.
13447 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
13448 (try_peel_loop): Do not re-peel already peeled loops;
13449 use likely upper bounds; fix profile updating.
13450 (pass_complete_unroll::execute): Initialize peeled_loops.
13451
13452 2016-05-30 Martin Liska <mliska@suse.cz>
13453
13454 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
13455 computed costs by frequency of BB they belong to.
13456 (get_scaled_computation_cost_at): New function.
13457
13458 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
13459 Marc Glisse <marc.glisse@inria.fr>
13460
13461 PR tree-optimization/71289
13462 * match.pd (-1 / B < A, A > -1 / B): New transformations.
13463
13464 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13465
13466 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
13467
13468 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13469
13470 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
13471 for peeled copies; avoid underflow when updating estimates; correctly
13472 scale loop profile.
13473
13474 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13475
13476 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
13477 r236875. Corrected oe3 to oe2 as obvious.
13478
13479 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13480
13481 PR middle-end/71269
13482 PR middle-end/71252
13483 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
13484 that inserted stmt will not dominate stmts that defines its operand.
13485 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
13486 (rewrite_expr_tree_parallel): Likewise.
13487
13488 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13489
13490 PR middle-end/71252
13491 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
13492 all fields including stmt_to_insert are swapped.
13493
13494 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13495
13496 * predict.h (force_edge_cold): Declare.
13497 * predict.c (force_edge_cold): New function.
13498 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
13499 updating.
13500 (canonicalize_loop_induction_variables): Fix formating.
13501
13502 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
13503
13504 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
13505 (visium_expand_copysign): Use gen_int_mode directly.
13506 (visium_compute_frame_size): Minor tweaks.
13507
13508 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13509
13510 * tree-vect-loop.c (vect_analyze_loop_2): Use
13511 likely_max_stmt_executions_int.
13512
13513 2016-05-30 Tom de Vries <tom@codesourcery.com>
13514
13515 PR tree-optimization/69067
13516 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
13517
13518 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
13519
13520 PR target/71245
13521 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
13522 New peepholes to remove unneeded fild/fistp pairs.
13523 (define_peephole2 atomic_loaddi_fpu): Ditto.
13524
13525 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13526
13527 * predict.c (maybe_hot_frequency_p): Avoid division.
13528
13529 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
13530
13531 * doc/install.texi: Use https for shop.fsf.org.
13532
13533 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13534
13535 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
13536 likely_max_stmt_executions_int.
13537
13538 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13539
13540 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
13541 likely_max_stmt_executions_int.
13542
13543 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13544
13545 * profile.c (compute_branch_probabilities): Do not report hitrates
13546 here.
13547 (branch_prob): Report hitrates here.
13548 * predict.c (gimple_predict_edge): Do not assert profile status;
13549 fix formatting issues.
13550
13551 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13552
13553 * predict.c (edge_predicted_by_p): New function.
13554 (predict_paths_for_bb): Do not put multiple predictions of the same type
13555 on one edge.
13556
13557 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13558
13559 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
13560 commit.
13561
13562 2016-05-28 Alan Modra <amodra@gmail.com>
13563
13564 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
13565
13566 2016-05-28 Alan Modra <amodra@gmail.com>
13567
13568 PR rtl-optimization/71275
13569 * ira.c (ira): Free dominance info.
13570
13571 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
13572
13573 * doc/sourcebuild.texi: New address for upstream Go repository.
13574
13575 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13576
13577 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
13578 (TARGET_ARM_V7M): Likewise.
13579
13580 2016-05-26 Jeff Law <law@redhat.com>
13581
13582 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
13583 (thread_across_edge): Remove calls to find_jump_threads_backwards.
13584 * passes.def: Add jump threading passes before DOM/VRP.
13585 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
13586 argument to a basic block from an edge. Remove tests which are
13587 handled elsewhere.
13588 (pass_data_thread_jumps, class pass_thread_jumps): New.
13589 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
13590 (make_pass_thread_jumps): Likewise.
13591 * tree-pass.h (make_pass_thread_jumps): Declare.
13592
13593 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
13594
13595 * config/visium/visium-protos.h (split_double_move): Rename into...
13596 (visium_split_double_move): ...this.
13597 (visium_split_double_add): Declare.
13598 * config/visium/visium.c (split_double_move): Rename into...
13599 (visium_split_double_move): ...this.
13600 (visium_split_double_add): New function.
13601 (visium_expand_copysign): Renumber operands for consistency.
13602 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
13603 (DFmode move splitter): Likewise.
13604 (*addi3_insn): Split by means of visium_split_double_add.
13605 (*adddi3_insn_flags): Delete.
13606 (*plus_plus_sltu<subst_arith>): New insn.
13607 (*subdi3_insn): Split by means of visium_split_double_add.
13608 (subdi3_insn_flags): Delete.
13609 (*minus_minus_sltu<subst_arith>): New insn.
13610 (*negdi2_insn): Split by means of visium_split_double_add.
13611 (*negdi2_insn_flags): Delete.
13612
13613 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
13614
13615 * configure.ac: Treat a --with-headers option without argument
13616 the same as the default (i.e. consult sys-include directory).
13617 * configure: Regenerate.
13618
13619 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13620
13621 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
13622 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
13623 prototype.
13624 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
13625 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13626
13627 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13628
13629 PR target/63596
13630 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
13631 tree-stdarg analysis results.
13632 (aarch64_setup_incoming_varargs): Likewise.
13633
13634 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13635
13636 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
13637 va_list_gpr_counter_field and va_list_fpr_counter_field.
13638
13639 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
13640
13641 PR67609
13642 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
13643 * config/aarch64/aarch64.c
13644 (aarch64_cannot_change_mode_class): Remove function.
13645 * config/aarch64/aarch64-protos.h
13646 (aarch64_cannot_change_mode_class): Remove.
13647
13648 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13649
13650 * cfgloop.c (record_niter_bound): Record likely upper bounds.
13651 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
13652 get_likely_max_loop_iterations_int): New.
13653 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
13654 any_likely_upper_bound.
13655 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
13656 Declare.
13657 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
13658 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
13659 upper bound.
13660 (unroll_loop_constant_iterations): Likewise.
13661 (unroll_loop_runtime_iterations): Likewise.
13662 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
13663 * lto-streamer-out.c (output_cfg): Likewise.
13664 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
13665 bounds.
13666 (canonicalize_loop_induction_variables): Dump likely upper bounds.
13667 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
13668 (likely_max_loop_iterations): New.
13669 (likely_max_loop_iterations_int): New.
13670 (likely_max_stmt_executions): New.
13671 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
13672 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
13673 likely_max_stmt_executions): Declare.
13674
13675 2016-05-27 Marek Polacek <polacek@redhat.com>
13676
13677 PR middle-end/71308
13678 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
13679
13680 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13681
13682 * config/s390/s390.md (2x risbg splitters): Use
13683 reg_overlap_mentioned_p instead of rtx_equal_p.
13684
13685 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13686
13687 * combine.c (make_compound_operation): Take known zero bits into
13688 account when checking for possible zero_extend.
13689
13690 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13691
13692 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
13693 Use const_int_operand for operand 2 predicate. Simplify expand code
13694 as a result.
13695
13696 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
13697
13698 PR middle-end/71279
13699 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
13700 into comparison.
13701
13702 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13703
13704 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
13705 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
13706 that returns CC_SESWPmode and CC_ZESWPmode.
13707 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
13708 and CC_SESWPmode.
13709 (aarch64_rtx_costs): Likewise.
13710
13711 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13712
13713 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
13714 for ISA 3.0 min/max support.
13715 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
13716 conditional move support.
13717 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
13718 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
13719 available.
13720 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
13721 conditional moves where the comparison type is different from move
13722 type.
13723 (fp_minmax): New code iterator for smin/smax.
13724 (minmax): New code attributes for min/max.
13725 (SMINMAX): Likewise.
13726 (smax<mode>3): Combine min, max insns into one insn using the
13727 fp_minmax code iterator. Add support for ISA 3.0 min/max
13728 instructions that don't need -ffast-math.
13729 (s<minmax><mode>3): Likewise.
13730 (smax<mode>3_vsx): Likewise.
13731 (smin<mode>3): Likewise.
13732 (s<minmax><mode>3_vsx): Likewise.
13733 (smin<mode>3_vsx): Likewise.
13734 (pre-VSX min/max splitters): Likewise.
13735 (s<minmax><mode>3_fpr): Likewise.
13736 (movsfcc): Rewrite floating point conditional moves to combine
13737 SFmode/DFmode into a single insn.
13738 (mov<mode>cc): Likewise.
13739 (movdfcc): Likewise.
13740 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13741 SFDF2 iterators to handle all combinations.
13742 (fseldfsf4): Likewise.
13743 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13744 (fseldfdf4): Likewise.
13745 (fselsfdf4): Likewise.
13746 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13747 comparison instructions that set a 0/-1 mask, and use it for
13748 floating point conditional move via XXSEL.
13749 (fpmask<mode>): Likewise.
13750 (xxsel<mode>): Likewise.
13751 * config/rs6000/predicates.md (min_max_operator): Delete, no
13752 longer used.
13753 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13754 instructions that generate a 0/-1 mask for use with XXSEL.
13755 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13756 say whether floating point min/max is available, either through
13757 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13758 (TARGET_MINMAX_DF): Likewise.
13759
13760 2016-05-27 Alan Modra <amodra@gmail.com>
13761
13762 PR rtl-optimization/71275
13763 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13764 for update_equiv_regs and combine_and_move_insns.
13765
13766 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
13767
13768 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13769 if_then_else or cond RTXes to calculate attribute value.
13770 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13771 <attr "length_immediate>: Ditto.
13772 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13773 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13774 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13775 <attr "type">: Ditto.
13776 <attr "prefix_data16">: Ditto.
13777 <attr "prefix_extra">: Ditto.
13778 <attr "length_immediate">: Ditto.
13779 <attr "prefix">: Ditto.
13780 (vec_set<mode>_0) <attr "isa">: Ditto.
13781 <attr "prefix_extra">: Ditto.
13782 <attr "length_immediate">: Ditto.
13783 <attr "prefix">: Ditto.
13784 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13785 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13786 (sse2_storelpd) <attr "prefix_data16">: Ditto.
13787 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13788 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13789 <attr "length_immediate">: Ditto.
13790 <attr "prefix">: Ditto.
13791 (sse2_movsd) <attr "length_immediate">: Ditto.
13792 <attr "prefix">: Ditto.
13793 (vec_concatv2df) <attr "isa">: Ditto.
13794 <attr "prefix">: Ditto.
13795 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13796 (*vec_extractv2di_1) <attr "isa">: Ditto.
13797 <attr "type">: Ditto.
13798 <attr "length_immediate">: Ditto.
13799 <attr "prefix_rex">: Ditto.
13800 <attr "prefix_extra">: Ditto.
13801 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13802 <attr "prefix_extra">: Ditto.
13803 <attr "length_immediate">: Ditto.
13804 (vec_concatv2di) <attr "isa">: Ditto.
13805 <attr "prefix_extra">: Ditto.
13806 <attr "length_immediate">: Ditto.
13807 <attr "prefix">: Ditto.
13808
13809 2016-05-26 Martin Liska <mliska@suse.cz>
13810
13811 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13812 function.
13813 (operator+): Likewise.
13814 (operator-): Likewise.
13815 (comp_cost::operator+=): Likewise.
13816 (comp_cost::operator-=): Likewise.
13817 (comp_cost::operator/=): Likewise.
13818 (comp_cost::operator*=): Likewise.
13819 (operator<): Likewise.
13820 (operator==): Likewise.
13821 (operator<=): Likewise.
13822 (new_cost): Remove.
13823 (infinite_cost_p): Likewise.
13824 (add_costs): Likewise.
13825 (sub_costs): Likewise.
13826 (compare_costs): Likewise.
13827 (set_group_iv_cost): Use the newly introduced functions.
13828 (get_address_cost): Likewise.
13829 (get_shiftadd_cost): Likewise.
13830 (force_expr_to_var_cost): Likewise.
13831 (split_address_cost): Likewise.
13832 (ptr_difference_cost): Likewise.
13833 (difference_cost): Likewise.
13834 (get_computation_cost_at): Likewise.
13835 (determine_group_iv_cost_generic): Likewise.
13836 (determine_group_iv_cost_address): Likewise.
13837 (determine_group_iv_cost_cond): Likewise.
13838 (autoinc_possible_for_pair): Likewise.
13839 (determine_group_iv_costs): Likewise.
13840 (cheaper_cost_pair): Likewise.
13841 (iv_ca_recount_cost): Likewise.
13842 (iv_ca_set_no_cp): Likewise.
13843 (iv_ca_set_cp): Likewise.
13844 (iv_ca_cost): Likewise.
13845 (iv_ca_new): Likewise.
13846 (iv_ca_dump): Likewise.
13847 (iv_ca_narrow): Likewise.
13848 (iv_ca_prune): Likewise.
13849 (iv_ca_replace): Likewise.
13850 (try_add_cand_for): Likewise.
13851 (try_improve_iv_set): Likewise.
13852 (find_optimal_iv_set): Likewise.
13853
13854 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
13855
13856 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13857 that internal functions will clobber all caller-saved registers.
13858
13859 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13860
13861 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13862 Return a better case_values_threshold when optimizing.
13863
13864 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13865
13866 * config/aarch64/aarch64-simd.md (aarch64_combinez):
13867 Add ? to integer variant.
13868 (aarch64_combinez_be): Likewise.
13869
13870 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13871
13872 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13873 instead of x constraint.
13874 (vcvtps2ph256<mask_name>): Likewise.
13875
13876 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13877 alternative. Formatting fix.
13878
13879 * config/i386/sse.md
13880 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13881 to ...
13882 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13883 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
13884 maybe_evex prefix instead of vex.
13885 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
13886 EXT_REX_SSE_REG_P (op0) case in the splitter.
13887
13888 2016-05-25 Jeff Law <law@redhat.com>
13889
13890 PR tree-optimization/71272
13891 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13892 Update comments. Add test for empty path.
13893
13894 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13895
13896 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13897 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13898 special case builtin.
13899 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13900 code for ALTIVEC_BUILTIN_VEC_CMPNE.
13901 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13902 for __builtin_vec_cmpne.
13903
13904 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
13905
13906 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13907 redundant test and bail out if the type of the new operand is not
13908 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13909
13910 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13911
13912 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13913 (x_ix86_target_flags_explicit): Remove.
13914 * config/i386/i386.c (ix86_function_specific_save): Do not copy
13915 x_ix86_target_flags_explicit.
13916 (ix86_function_specific_restore): Ditto.
13917
13918 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13919 H.J. Lu <hongjiu.lu@intel.com>
13920
13921 PR target/70738
13922 * common/config/i386/i386-common.c
13923 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13924 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13925 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13926 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13927 (-mgeneral-regs-only): Add new option.
13928 * config/i386/i386.c (ix86_option_override_internal): Don't enable
13929 x87 instructions if only general registers are allowed.
13930 (ix86_target_string): Add ix86_flags argument. Handle additional
13931 flags options through ix86_flags argument. Update all callers.
13932 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13933
13934 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13935
13936 PR rtl-optimization/66940
13937 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13938 decrementing desired_val will not overflow before performing these
13939 operations.
13940
13941 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
13942
13943 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13944 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13945 * config/i386/i386.c (enum ix86_builtins): Add
13946 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13947 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13948 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13949 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13950 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13951 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13952 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13953 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13954 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13955 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13956 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13957 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13958 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13959 __builtin_ia32_cvtps2dq512_mask.
13960 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13961 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13962 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13963 * config/i386/sse.md
13964 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
13965 Rename to ...
13966 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
13967 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
13968 to ...
13969 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
13970 (avx512f_vec_pack_sfix_v8df): New define_expand.
13971 (avx512f_roundpd512): Rename to ...
13972 (avx512f_round<castmode>512): ... this. Change iterator.
13973 (avx512f_roundps512_sfix): New define_expand.
13974 (round<mode>2_sfix): Change iterator.
13975
13976 2016-05-25 Nick Clifton <nickc@redhat.com>
13977
13978 * config/msp430/msp430.c (msp430_attr): Produce an error if a
13979 static interrupt handler is detected.
13980 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
13981 default linker script.
13982 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
13983 the low part of a symbolic pointer.
13984
13985 2016-05-25 Richard Biener <rguenther@suse.de>
13986
13987 PR tree-optimization/71261
13988 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
13989 interesting stmt instead of immediate uses when looking
13990 for the use operand to replace.
13991
13992 2016-05-25 Martin Liska <mliska@suse.cz>
13993
13994 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
13995
13996 2016-05-25 Richard Biener <rguenther@suse.de>
13997
13998 PR tree-optimization/71264
13999 * tree-vect-stmts.c (vect_init_vector): Properly deal with
14000 vector type val.
14001
14002 2016-05-25 Martin Liska <mliska@suse.cz>
14003
14004 PR tree-optimization/71239
14005 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
14006 if DECL_SIZE is NULL.
14007
14008 2016-05-25 Richard Biener <rguenther@suse.de>
14009
14010 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
14011 * tree-if-conv.c (pass_data_if_conversion): Use it.
14012
14013 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14014
14015 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
14016 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
14017 * varpool.c (varpool_node::get_availability): Likewise.
14018
14019 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14020
14021 * config/rs6000/altivec.md (VNEG iterator): New iterator for
14022 VNEGW/VNEGD instructions.
14023 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
14024 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
14025 support for ISA 3.0 VNEGW/VNEGD instructions.
14026
14027 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
14028
14029 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
14030 pointers inside OACC_DATA regions.
14031 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
14032 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
14033 (gimplify_adjust_omp_clauses): Fix typo in comment.
14034
14035 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14036
14037 * config/rs6000/altivec.md (VParity): New mode iterator for vector
14038 parity built-in functions.
14039 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
14040 zeros.
14041 (p9v_parity<mode>2): Likewise.
14042 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
14043 parity.
14044 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
14045 (parity<mode>2): ISA 3.0 expander for vector parity.
14046 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
14047 power9 built-ins.
14048 (BU_P9_64BIT_MISC_0): Likewise.
14049 (BU_P9_MISC_0): Likewise.
14050 (BU_P9V_AV_1): Likewise.
14051 (BU_P9V_AV_2): Likewise.
14052 (BU_P9V_AV_3): Likewise.
14053 (BU_P9V_AV_P): Likewise.
14054 (BU_P9V_VSX_1): Likewise.
14055 (BU_P9V_OVERLOAD_1): Likewise.
14056 (BU_P9V_OVERLOAD_2): Likewise.
14057 (BU_P9V_OVERLOAD_3): Likewise.
14058 (VCTZB): Add vector count trailing zeros support.
14059 (VCTZH): Likewise.
14060 (VCTZW): Likewise.
14061 (VCTZD): Likewise.
14062 (VPRTYBD): Add vector parity support.
14063 (VPRTYBQ): Likewise.
14064 (VPRTYBW): Likewise.
14065 (VCTZ): Add overloaded vector count trailing zeros support.
14066 (VPRTYB): Add overloaded vector parity support.
14067 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14068 overloaded vector count trailing zeros and parity instructions.
14069 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
14070 vector parity support.
14071 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
14072 trailing zeros support.
14073 (vec_cntlz): Likewise.
14074 (vec_vctzb): Likewise.
14075 (vec_vctzd): Likewise.
14076 (vec_vctzh): Likewise.
14077 (vec_vctzw): Likewise.
14078 (vec_vprtyb): Add ISA 3.0 vector parity support.
14079 (vec_vprtybd): Likewise.
14080 (vec_vprtybw): Likewise.
14081 (vec_vprtybq): Likewise.
14082 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14083 the ISA 3.0 vector count trailing zeros and vector parity built-in
14084 functions.
14085
14086 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14087
14088 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
14089 when there is stmt_to_insert.
14090
14091 2016-05-24 Martin Sebor <msebor@redhat.com>
14092
14093 PR c++/71147
14094 * tree.h (complete_or_array_type_p): New inline function.
14095
14096 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14097
14098 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
14099 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
14100 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
14101
14102 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
14103 Limit 1st alternative to noavx isa, split 2nd alternative into one
14104 noavx and one avx alternative, use *x and Bm in the former and
14105 x and m in the latter.
14106
14107 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
14108 of sse4 for the first alternative, drop %v from the template
14109 and d operand modifier. Split second alternative into one sse4_noavx
14110 and one avx alternative, use *x instead of *v in the former and v
14111 instead of *v in the latter.
14112 (*sse4_1_extractps): Use noavx isa instead of * for the first
14113 alternative, drop %v from the template. Split second alternative into
14114 one noavx and one avx alternative, use *x instead of *v in the
14115 former and v instead of *v in the latter.
14116 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
14117 with noavx and the last one with avx.
14118 (sse4_1_phminposuw): Guard first alternative with noavx isa,
14119 split the second one into one noavx and one avx alternative,
14120 use *x and Bm in the former and x and m in the latter one.
14121 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
14122 alternatives.
14123
14124 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
14125 first two alternatives to noavx, use *x instead of *v in the second
14126 one, add avx alternative without *.
14127 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
14128 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
14129 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
14130
14131 2016-05-24 Jeff Law <law@redhat.com>
14132
14133 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
14134 New function, extracted from...
14135 (fsm_find_control_statement_thread_paths): Here. Use the new function.
14136 Allow simple copies and constant initializations in the SSA chain.
14137
14138 2016-05-24 Marek Polacek <polacek@redhat.com>
14139
14140 PR c/71249
14141 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
14142 scope.
14143
14144 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14145
14146 PR c++/71257
14147 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
14148 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
14149 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
14150 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
14151 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
14152
14153 2016-05-24 Richard Biener <rguenther@suse.de>
14154
14155 PR tree-optimization/71240
14156 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
14157 has integral type.
14158
14159 2016-05-24 Richard Biener <rguenther@suse.de>
14160
14161 PR tree-optimization/71230
14162 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
14163
14164 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14165
14166 * tree-vectorizer.h (vectorizable_comparison): Delete.
14167 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
14168 PURE_SLP_STMT check.
14169 * tree-vect-stmts.c (vectorizable_call): Likewise.
14170 (vectorizable_simd_clone_call): Likewise.
14171 (vectorizable_conversion): Likewise.
14172 (vectorizable_assignment): Likewise.
14173 (vectorizable_shift): Likewise.
14174 (vectorizable_operation): Likewise.
14175 (vectorizable_load): Likewise.
14176 (vectorizable_condition): Likewise.
14177 (vectorizable_store): Likewise. Assert that we don't have
14178 hybrid SLP.
14179 (vectorizable_comparison): Make static. Remove redundant
14180 PURE_SLP_STMT check.
14181 (vect_transform_stmt): Assert that we always have an slp_node
14182 if PURE_SLP_STMT.
14183
14184 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14185
14186 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
14187 operands[2] against 1 with comparison against CONST1_RTX.
14188 (<shift>di3_neon): Likewise.
14189 * config/arm/predicates.md (const0_operand): Replace with comparison
14190 against CONST0_RTX.
14191
14192 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14193
14194 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
14195 operands[2] against 1 with comparison against CONST1_RTX.
14196 (ashrdi3): Likewise.
14197 (lshrdi3): Likewise.
14198 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
14199 UINTVAL.
14200 (ashrsi3): Likewise.
14201 (lshrsi3): Likewise.
14202 (rotrsi3): Likewise.
14203 (define_split above *compareqi_eq0): Likewise.
14204 (define_split above "prologue"): Likewise.
14205 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
14206 * config/arm/predicates.md (shift_operator): Likewise.
14207 (shift_nomul_operator): Likewise.
14208 (sat_shift_operator): Likewise.
14209 (thumb1_cmp_operand): Likewise.
14210 (const_neon_scalar_shift_amount_operand): Replace manual range
14211 check with IN_RANGE.
14212 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
14213 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
14214
14215 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14216
14217 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
14218 with HOST_WIDE_INT_1.
14219 (insv): Likewise.
14220 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
14221 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
14222 (arm_canonicalize_comparison): Likewise.
14223 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
14224 HOST_WIDE_INT_1.
14225 (thumb1_size_rtx_costs): Likewise.
14226 (vfp_const_double_index): Replace cast of 1 to unsigned
14227 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14228 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
14229 HOST_WIDE_INT_1.
14230 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
14231 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14232 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
14233 HOST_WIDE_INT with HOST_WIDE_INT_1.
14234
14235 2016-05-24 Marek Polacek <polacek@redhat.com>
14236
14237 * tree-cfg.h (should_remove_lhs_p): New predicate.
14238 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14239 * gimplify.c (gimplify_modify_expr): Likewise.
14240 * tree-cfg.c (verify_gimple_call): Likewise.
14241 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14242 * gimple-fold.c: Include "tree-cfg.h".
14243 (gimple_fold_call): Use should_remove_lhs_p.
14244
14245 2016-05-24 Richard Biener <rguenther@suse.de>
14246
14247 PR tree-optimization/71253
14248 * cfganal.h (control_dependences): Make robust against edge
14249 and BB removal.
14250 (control_dependences::control_dependences): Remove edge_list argument.
14251 (control_dependences::get_edge): Remove.
14252 (control_dependences::get_edge_src): Add.
14253 (control_dependences::get_edge_dest): Likewise.
14254 (control_dependences::m_el): Make a vector of edge src/dest index.
14255 * cfganal.c (control_dependences::find_control_dependence): Adjust.
14256 (control_dependences::control_dependences): Likewise.
14257 (control_dependences::~control_dependence): Likewise.
14258 (control_dependences::get_edge): Remove.
14259 (control_dependences::get_edge_src): Add.
14260 (control_dependences::get_edge_dest): Likewise.
14261 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
14262 get_edge_src.
14263 (perform_tree_ssa_dce): Adjust.
14264 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
14265 get_edge_src.
14266 (pass_loop_distribution::execute): Adjust. Do loop destroying
14267 conditional on changed.
14268
14269 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14270
14271 PR target/69857
14272 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
14273 return. Reindent transformation comment and mention the ARM state
14274 behavior.
14275
14276 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14277
14278 PR middle-end/71252
14279 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
14280 after build_and_add_sum creates new use stmt.
14281
14282 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14283
14284 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
14285 load_lanes/grouped_load classification comes first. Don't check
14286 whether the vectorization factor is a multiple of the group size
14287 for load_lanes.
14288
14289 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14290
14291 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
14292 GROUP_GAP for single-element interleaving.
14293 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
14294 variable.
14295
14296 2016-05-24 Richard Biener <rguenther@suse.de>
14297
14298 PR middle-end/70434
14299 PR c/69504
14300 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
14301 bases which are accessed with non-invariant indices.
14302 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
14303 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
14304
14305 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14306
14307 PR middle-end/71170
14308 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
14309 (add_to_ops_vec): Add stmt_to_insert.
14310 (add_repeat_to_ops_vec): Init stmt_to_insert.
14311 (insert_stmt_before_use): New.
14312 (transform_add_to_multiply): Remove mult_stmt insertion and add it
14313 to ops vector.
14314 (get_ops): Init stmt_to_insert.
14315 (maybe_optimize_range_tests): Likewise.
14316 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
14317 (rewrite_expr_tree_parallel): Likewise.
14318 (reassociate_bb): Likewise.
14319
14320 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14321
14322 PR target/71201
14323 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
14324 ISA 3.0 xxperm fusion alternative.
14325 (altivec_vperm_v8hiv16qi): Likewise.
14326 (altivec_vperm_<mode>_uns_internal): Likewise.
14327 (vperm_v8hiv4si): Likewise.
14328 (vperm_v16qiv8hi): Likewise.
14329
14330 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14331 Kelvin Nilsen <kelvin@gcc.gnu.org>
14332
14333 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
14334 vpermr/xxpermr on ISA 3.0.
14335 (altivec_expand_vec_perm_le): Likewise.
14336 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
14337 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
14338 ISA 3.0.
14339
14340 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
14341
14342 * config/i386/i386.h (IS_STACK_MODE): Enable for
14343 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
14344 SSE_FLOAT_MODE_P macros.
14345 * config/i386/i386.c (ix86_preferred_reload_class): Use
14346 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
14347 Cleanup regclass processing for CONST_DOUBLE_P.
14348 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
14349 (ix86_rtx_costs): Remove redundant TARGET_80387 check
14350 with IS_STACK_MODE macro.
14351 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
14352 with TARGET_SSE2.
14353 (*movdf_internal): Use IS_STACK_MODE macro.
14354 (*movsf_internal): Ditto.
14355
14356 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
14357
14358 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
14359 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
14360
14361 2016-05-23 Jeff Law <law@redhat.com>
14362
14363 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
14364 extracted from ...
14365 (fsm_find_control_statement_thread_paths): Call it.
14366
14367 2016-05-23 Martin Jambor <mjambor@suse.cz>
14368
14369 PR ipa/71234
14370 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
14371 from_global_constant if t is not NULL.
14372
14373 2016-05-23 Marek Polacek <polacek@redhat.com>
14374
14375 PR c/49859
14376 * common.opt (Wswitch-unreachable): New option.
14377 * doc/invoke.texi: Document -Wswitch-unreachable.
14378 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
14379 warning.
14380
14381 2016-05-23 Bin Cheng <bin.cheng@arm.com>
14382
14383 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
14384 TMR_INDEX is non-NULL.
14385
14386 2016-05-23 Richard Biener <rguenther@suse.de>
14387
14388 PR tree-optimization/71230
14389 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
14390 (try_special_add_to_ops): ... here. Always test for single-use.
14391
14392 2016-05-23 Martin Jambor <mjambor@suse.cz>
14393
14394 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
14395 default block if a PHI node in the original one would be resized.
14396
14397 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14398
14399 PR tree-optimization/58135
14400 * tree-vect-slp.c: When group size is not multiple
14401 of vector size, allow splitting of store group at
14402 vector boundary.
14403
14404 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
14405
14406 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
14407
14408 2016-05-22 Jakub Jelinek <jakub@redhat.com>
14409
14410 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14411 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
14412 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
14413 of 64x2.
14414
14415 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
14416 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
14417 v constraint instead of x and vinserti32x4 insn.
14418
14419 * config/i386/sse.md (i128vldq): New mode iterator.
14420 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
14421 avx512dq and avx512vl alternatives.
14422
14423 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
14424 constraint, use maybe_evex prefix instead of vex.
14425 (vec_dupv4sf): Use v constraint instead of x for output
14426 operand except for noavx alternative, use Yv constraint
14427 instead of x for input. Use maybe_evex prefix instead of vex.
14428 (*vec_dupv4si): Likewise.
14429 (*vec_dupv2di): Likewise.
14430
14431 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14432
14433 PR middle-end/40921
14434 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
14435 (linearize_expr_tree): Call try_special_add_to_ops.
14436 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
14437
14438 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14439
14440 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
14441 to computed stack_usage.
14442
14443 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14444
14445 PR target/71103
14446 * config/avr/avr.md (define_expand "mov<mode>"): If the source
14447 operand is subreg (symbol_ref) then move the symbol ref to register.
14448
14449 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
14450
14451 * tree.c (array_at_struct_end_p): Look through MEM_REF.
14452
14453 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
14454
14455 PR middle-end/71179
14456 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
14457 VECTOR type.
14458
14459 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14460
14461 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
14462 ranges by calling get_single_symbol and tidy up. Look more closely
14463 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
14464
14465 2016-05-20 Jeff Law <law@redhat.com>
14466
14467 * bitmap.c (bitmap_find_bit): Remove useless test.
14468
14469 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
14470
14471 * function.c (thread_prologue_and_epilogue_insns): Commit the
14472 insertion of the epilogue.
14473
14474 2016-05-20 Martin Jambor <mjambor@suse.cz>
14475
14476 PR tree-optimization/70884
14477 * tree-sra.c (initialize_constant_pool_replacements): Do not check
14478 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
14479 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
14480 of constant pool data as a reason for scalarization.
14481
14482 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14483
14484 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
14485 for naked functions.
14486 (thumb1_expand_prologue): Likewise.
14487
14488 2016-05-20 Nathan Sidwell <nathan@acm.org>
14489
14490 * config/nvptx/nptx.c (nvptx_option_override): Only set
14491 flag_toplevel_reorder, if not explicitly specified. Set
14492 flag_no_common, unless explicitly specified.
14493
14494 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14495
14496 * calls.c (can_implement_as_sibling_call_p): Mark param
14497 reg_parm_stack_space with ATTRIBUTE_UNUSED.
14498
14499 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
14500
14501 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
14502 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
14503 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
14504 constants.
14505 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
14506 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
14507 and CASE_CONST_ANY.
14508
14509 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
14510
14511 * config/nvptx/nvptx.md (sincossf3): New pattern.
14512
14513 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14514
14515 * calls.c (maybe_complain_about_tail_call): New function.
14516 (initialize_argument_information): Call
14517 maybe_complain_about_tail_call when clearing *may_tailcall.
14518 (can_implement_as_sibling_call_p): Call
14519 maybe_complain_about_tail_call when returning false.
14520 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
14521 ensure try_tail_call is set. Call maybe_complain_about_tail_call
14522 if tail-call optimization fails.
14523 * cfgexpand.c (expand_call_stmt): Initialize
14524 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
14525 * gimple-pretty-print.c (dump_gimple_call): Dump
14526 gimple_call_must_tail_p.
14527 * gimple.c (gimple_build_call_from_tree): Call
14528 gimple_call_set_must_tail with the value of
14529 CALL_EXPR_MUST_TAIL_CALL.
14530 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
14531 (gimple_call_set_must_tail): New function.
14532 (gimple_call_must_tail_p): New function.
14533 * print-tree.c (print_node): Update printing of TREE_STATIC
14534 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
14535 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
14536 trailing comment listing applicable flags.
14537 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
14538
14539 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14540
14541 * calls.c (expand_call): Move "Rest of purposes for tail call
14542 optimizations to fail" to...
14543 (can_implement_as_sibling_call_p): ...this new function, and
14544 split into multiple "if" statements.
14545
14546 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14547
14548 * cfgloop.h (expected_loop_iterations_unbounded,
14549 expected_loop_iterations): Unconstify.
14550 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
14551 profile with known upper bound; return 3 when profile is absent.
14552 (expected_loop_iterations): Update.
14553
14554 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14555
14556 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
14557 and get_max_loop_iterations_int.
14558
14559 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14560
14561 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
14562 realistic upper bounds here.
14563
14564 2016-05-20 Jakub Jelinek <jakub@redhat.com>
14565
14566 PR c++/71210
14567 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
14568 calls if the LHS is variable length or has addressable type.
14569 If targets[0]->decl is a noreturn call with void return type and
14570 zero arguments, adjust fntype and remove lhs in that case.
14571
14572 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
14573
14574 PR tree-optimization/71079
14575 PR tree-optimization/71206
14576 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
14577
14578 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14579
14580 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
14581 (get_vec_alignment_for_array_decl): Likewise.
14582 (get_vec_alignment_for_record_decl): Likewise.
14583 (increase_alignment::execute): Move code to find alignment to
14584 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
14585 (type_align_map): New hash_map.
14586
14587 2016-05-20 Richard Guenther <rguenther@suse.de>
14588
14589 PR tree-optimization/29756
14590 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
14591 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
14592 * fold-const.c (operand_equal_p): Likewise.
14593 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
14594 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
14595 * tree-inline.c (estimate_operator_cost): Likewise.
14596 * tree-pretty-print.c (dump_generic_node): Likewise.
14597 * tree-ssa-operands.c (get_expr_operands): Likewise.
14598 * cfgexpand.c (expand_debug_expr): Likewise.
14599 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14600 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
14601 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
14602 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
14603 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
14604 (execute_update_addresses_taken): Do it.
14605
14606 2016-05-20 Richard Biener <rguenther@suse.de>
14607
14608 PR tree-optimization/71185
14609 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
14610 register operations.
14611
14612 2016-05-20 Richard Biener <rguenther@suse.de>
14613
14614 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
14615 gimple_seq_add_seq_without_update.
14616 (release_bb_predicate): Assert we have no operands to free.
14617 (if_convertible_loop_p_1): Calculate post dominators later.
14618 Do not free BB predicates here.
14619 (combine_blocks): Do not recompute BB predicates.
14620 (version_loop_for_if_conversion): Save BB predicates around
14621 loop versioning.
14622
14623 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14624
14625 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
14626 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
14627 code. Ignore sibcalls on EDGE_IGNORE edges.
14628 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
14629 on edges for sibcalls that run without prologue. The rest of the
14630 function is combined from...
14631 (fix_fake_fallthrough_edge): ... this, and ...
14632 (try_shrink_wrapping): ... a part of this. Remove the bb_with
14633 function argument, make it a local variable.
14634
14635 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
14636
14637 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
14638 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
14639 for 32-bit mode and SEH for 64-bit.
14640 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
14641 TARGET_64BIT_DEFAULT.
14642
14643 2016-05-19 Ryan Burn <contact@rnburn.com>
14644
14645 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
14646 * gengtype.c (open_base_files): Add cilk.h to ifiles.
14647
14648 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
14649
14650 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
14651 force pending loads from memory.
14652
14653 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
14654
14655 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
14656 (UNSPEC_DARN_32): New unspec constant.
14657 (UNSPEC_DARN_RAW): New unspec constant.
14658 (darn_32): New instruction.
14659 (darn_raw): New instruction.
14660 (darn): New instruction.
14661 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
14662 support and documentation for this macro.
14663 (BU_P9_MISC_1): New macro definition.
14664 (BU_P9_64BIT_MISC_0): New macro definition.
14665 (BU_P9_MISC_0): New macro definition.
14666 (darn_32): New builtin definition.
14667 (darn_raw): New builtin definition.
14668 (darn): New builtin definition.
14669 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
14670 RS6000_BUILTIN_0 directives to surround each occurrence of
14671 #include "rs6000-builtin.def".
14672 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
14673 RS6000_BTM_64BIT flags to the returned mask, depending on
14674 configuration.
14675 (def_builtin): Correct an error in the assignments made to the
14676 debugging variable attr_string.
14677 (rs6000_expand_builtin): Add support for no-operand built-in
14678 functions.
14679 (builtin_function_type): Remove fatal_error assertion that is no
14680 longer valid.
14681 (rs6000_common_init_builtins): Add support for no-operand built-in
14682 functions.
14683 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
14684 definition.
14685 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
14686 definition.
14687 (RS6000_BTM_64BIT): New macro definition.
14688 * doc/extend.texi: Document __builtin_darn (void),
14689 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
14690 functions.
14691
14692 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
14693
14694 * tree-vect-loop.c (vect_analyze_loop_2): Use also
14695 max_loop_iterations_int.
14696
14697 2016-05-19 Marek Polacek <polacek@redhat.com>
14698
14699 PR tree-optimization/71031
14700 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
14701 condition and adjust the code a bit.
14702
14703 2016-05-19 Martin Liska <mliska@suse.cz>
14704
14705 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
14706 auto_vec instead of vec.
14707
14708 2016-05-19 Martin Liska <mliska@suse.cz>
14709
14710 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
14711
14712 2016-05-19 Martin Liska <mliska@suse.cz>
14713
14714 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
14715
14716 2016-05-19 Martin Liska <mliska@suse.cz>
14717
14718 * ipa-pure-const.c (set_function_state): Remove an existing
14719 funct_state.
14720 (remove_node_data): Do not free it as it's released
14721 in set_function_state.
14722
14723 2016-05-19 Martin Liska <mliska@suse.cz>
14724
14725 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
14726 bitmap.
14727
14728 2016-05-19 Martin Liska <mliska@suse.cz>
14729
14730 * omp-simd-clone.c (simd_clone_adjust): Release vector.
14731
14732 2016-05-19 Martin Liska <mliska@suse.cz>
14733
14734 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
14735 an auto_vec instead of re-creating it.
14736
14737 2016-05-19 Martin Liska <mliska@suse.cz>
14738
14739 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14740 auto_vec instead of vec.
14741
14742 2016-05-19 Martin Liska <mliska@suse.cz>
14743
14744 * lto-section-in.c (lto_get_section_data): Call
14745 lto_check_version with additional argument.
14746 * lto-streamer.c (lto_check_version): Add new argument.
14747 * lto-streamer.h (lto_check_version): Likewise.
14748
14749 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14750
14751 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14752 Don't add cost of inner memory when handling sign-extended loads.
14753
14754 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
14755
14756 PR rtl-optimization/71148
14757 * cse.c (cse_main): Free dominance info.
14758 (rest_of_handle_cse): Don't free dominance info.
14759 (rest_of_handle_cse2): Likewise.
14760 (rest_of_handle_cse_after_global_opts): Likewise.
14761
14762 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14763
14764 PR target/71056
14765 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14766 NULL_TREE early if NEON is not available. Remove now redundant check
14767 in ARM_CHECK_BUILTIN_MODE.
14768
14769 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
14770
14771 PR sanitizer/64354
14772 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14773 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14774 * doc/cpp.texi: Document new macros.
14775
14776 2016-05-19 Bin Cheng <bin.cheng@arm.com>
14777
14778 PR tree-optimization/69848
14779 * tree-vect-loop.c (vectorizable_reduction): Don't factor
14780 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14781
14782 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14783
14784 * function.c (thread_prologue_and_epilogue_insn): Move the
14785 "goto epilogue_done" one block later.
14786
14787 2016-05-19 Richard Biener <rguenther@suse.de>
14788
14789 PR tree-optimization/70729
14790 * passes.def: Move LIM pass before PRE. Remove no longer
14791 required copyprop and move first DCE out of the loop pipeline.
14792
14793 2016-05-18 David Malcolm <dmalcolm@redhat.com>
14794
14795 PR driver/69265
14796 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14797 (OBJS-libcommon-target): ...here.
14798 * opts-common.c: Include spellcheck.h.
14799 (cmdline_handle_error): Build a vec of valid options and use it
14800 to suggest provide hints for misspelled arguments.
14801
14802 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14803
14804 PR c++/71100
14805 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14806 lhs if it has TREE_ADDRESSABLE type.
14807
14808 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
14809
14810 PR target/71145
14811 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14812 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14813
14814 2016-05-18 Martin Jambor <mjambor@suse.cz>
14815
14816 PR ipa/69708
14817 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14818 input for NOP_EXPR pass-through functions.
14819 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14820 aggregate global constant VAR_DECLs in constant jump functions.
14821
14822 2016-05-18 Martin Jambor <mjambor@suse.cz>
14823
14824 PR ipa/69708
14825 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14826 from TREE_READONLY parameters.
14827
14828 2016-05-18 Martin Jambor <mjambor@suse.cz>
14829
14830 PR ipa/69708
14831 * cgraph.h (cgraph_indirect_call_info): New field
14832 guaranteed_unmodified.
14833 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14834 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14835 appropriate.
14836 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14837 pass the parameter value to ipa_find_agg_cst_for_param.
14838 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14839 guaranteed_unmodified, store AA results there instead of bailing out
14840 if present.
14841 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14842 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14843 (find_constructor_constant_at_offset): New function.
14844 (ipa_find_agg_cst_from_init): Likewise.
14845 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14846 static initializers of contants, report back through a new paameter
14847 from_global_constant if that was the case.
14848 (try_make_edge_direct_simple_call): Also pass parameter value to
14849 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14850 appropriate.
14851 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14852 (ipa_read_indirect_edge_info): Likewise.
14853 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14854 (ipa_load_from_parm_agg): Likewise.
14855
14856 2016-05-18 Jiong Wang <jiong.wang@arm.com>
14857
14858 PR rtl-optimization/71150
14859 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14860 check.
14861
14862 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14863
14864 PR target/70915
14865 * config/rs6000/constraints.md (wE constraint): New constraint
14866 for a vector constant that can be loaded with XXSPLTIB.
14867 (wM constraint): New constraint for a vector constant of a 1's.
14868 (wS constraint): New constraint for a vector constant that can be
14869 loaded with XXSPLTIB and a vector sign extend instruction.
14870 * config/rs6000/predicates.md (xxspltib_constant_split): New
14871 predicates for wE/wS constraints.
14872 (xxspltib_constant_nosplit): Likewise.
14873 (easy_vector_constant): Add support for constants that can be
14874 loaded via XXSPLTIB.
14875 (all_ones_constant): New predicate for vector constant with all
14876 1's set.
14877 (splat_input_operand): Add support for ISA 3.0 word splat operations.
14878 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14879 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14880 instruction and possibly with a sign extension.
14881 (output_vec_const_move): Add support for XXSPLTIB. If we are
14882 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14883 instead of XXLXOR/XXLORC.
14884 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14885 operations.
14886 (rs6000_legitimize_reload_address): Likewise.
14887 (rs6000_output_move_128bit): Use output_vec_const_move to emit
14888 constants.
14889 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14890 combine VSX_M and VSX_M2 into one iterator.
14891 (VSX_M2): Likewise.
14892 (VSINT_84): New iterators for loading constants with XXSPLTIB.
14893 (VSINT_842): Likewise.
14894 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14895 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14896 XXSPLTIB instruction.
14897 (xxspltib_<mode>_nosplit): Likewise.
14898 (xxspltib_<mode>_split): New insn to load up constants with
14899 XXSPLTIB and a sign extend instruction.
14900 (vsx_mov<mode>): Replace single move that handled all vector types
14901 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
14902 moves (when -mvsx-timode is in effect) into the main vector
14903 moves. Eliminate separate moves for <VSr> <VSa>, where the
14904 preferred register class (<VSr>) is listed first, and the
14905 secondary register class (<VSa>) is listed second with a '?' to
14906 discourage use. Prefer loading 0/-1 in any VSX register for ISA
14907 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14908 that if the register was involved in a slow operation, the
14909 clear/set operation does not wait for the slow operation to
14910 finish. Adjust the length attributes for 32-bit mode. Use
14911 rs6000_output_move_128bit and drop the use of the string
14912 instructions for 32-bit movti when -mvsx-timode is in effect. Use
14913 spacing so that the alternatives and attributes don't generate
14914 long lines, and put things in columns, so that it is easier to
14915 match up the operands and attributes with the insn alternatives.
14916 (vsx_mov<mode>_64bit): Likewise.
14917 (vsx_mov<mode>_32bit): Likewise.
14918 (vsx_movti_64bit): Fold movti into normal vector moves.
14919 (vsx_movti_32bit): Likewise.
14920 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14921 splat instructions.
14922 (vsx_splat_v4si_internal): Likewise.
14923 (vsx_splat_v4sf_internal): Likewise.
14924 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14925 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14926 extend vector elements.
14927 (vsx_sign_extend_hi_<mode>): Likewise.
14928 (vsx_sign_extend_si_v2di): Likewise.
14929 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14930 declaration.
14931 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14932 constraints. Add trailing period to wL documentation.
14933
14934 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
14935
14936 PR middle-end/71020
14937 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14938 * tree-dfa.c (replace_abnormal_ssa_names): New function.
14939 * tree-call-cdce.c: Include tree-dfa.h.
14940 (can_guard_call_p): New function, extracted from...
14941 (can_use_internal_fn): ...here.
14942 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14943 and return void.
14944 (shrink_wrap_one_built_in_call): Likewise.
14945 (use_internal_fn): Likewise.
14946 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14947 and return void. Call replace_abnormal_ssa_names.
14948 (pass_call_cdce::execute): Check can_guard_call_p during the
14949 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
14950 will always change something.
14951
14952 2016-05-18 Martin Jambor <mjambor@suse.cz>
14953
14954 PR ipa/70646
14955 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14956 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14957
14958 2016-05-18 Martin Jambor <mjambor@suse.cz>
14959
14960 PR ipa/70646
14961 * ipa-inline.h (condition): New field size.
14962 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14963 for comaprison and store it into the new condition.
14964 (evaluate_conditions_for_known_args): Use condition size to check
14965 access sizes for all but CHANGED conditions.
14966 (unmodified_parm_1): New parameter size_p, store access size into it.
14967 (unmodified_parm): Likewise.
14968 (unmodified_parm_or_parm_agg_item): Likewise.
14969 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
14970 (set_cond_stmt_execution_predicate): Extract access sizes and store
14971 them to conditions.
14972 (set_switch_stmt_execution_predicate): Likewise.
14973 (will_be_nonconstant_expr_predicate): Likewise.
14974 (will_be_nonconstant_predicate): Likewise.
14975 (inline_read_section): Stream condition size.
14976 (inline_write_summary): Likewise.
14977
14978 2016-05-18 Richard Biener <rguenther@suse.de>
14979
14980 * tree-ssa-loop-im.c (determine_max_movement): Properly add
14981 condition cost to PHI cost instead of total_cost.
14982
14983 2016-05-18 Martin Liska <mliska@suse.cz>
14984
14985 PR fortran/70856
14986 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
14987 merged variables.
14988
14989 2016-05-18 Richard Biener <rguenther@suse.de>
14990
14991 * lto-streamer.h (LTO_major_version): Bump to 6.
14992
14993 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14994
14995 * function.c (make_split_prologue_seq, make_prologue_seq,
14996 make_epilogue_seq): New functions, factored out from...
14997 (thread_prologue_and_epilogue_insns): Here.
14998
14999 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
15000
15001 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
15002 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
15003 of before. Add a comment.
15004
15005 2016-05-18 Bin Cheng <bin.cheng@arm.com>
15006
15007 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
15008 expression pointer, not pointer to the pointer.
15009
15010 2016-05-18 Jakub Jelinek <jakub@redhat.com>
15011
15012 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
15013 (avx2_pbroadcast<mode>): Add another alternative with v instead
15014 of x constraints in it, using <pbroadcast_evex_isa> isa.
15015 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
15016
15017 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
15018 constraint x instead of v in second alternative, add avx512bw
15019 alternative.
15020
15021 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
15022 constraint x instead of v in second alternative, add avx512bw
15023 alternative.
15024
15025 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
15026 constraint x instead of v in second alternative, add avx512bw
15027 alternative.
15028
15029 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
15030 avx512bw alternative.
15031
15032 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15033
15034 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
15035 array to 128 chars.
15036 (define_insn "*andnottf3"): Ditto.
15037 (define_insn "*<code><mode>3"/any_logic): Ditto.
15038 (define_insn "*<code>tf3"/any_logic): Ditto.
15039 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
15040 operand to block AVX-512VL insn variant emit when it is not enabled.
15041
15042 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15043
15044 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
15045 constraint fot SF mode.
15046
15047 2016-05-18 Petr Murzin <petr.murzin@intel.com>
15048 Kirill Yukhin <kirill.yukhin@intel.com>
15049
15050 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
15051 modifiers.
15052 (define_insn "rsqrt14<mode>"): Ditto.
15053 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
15054 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15055 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
15056 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15057 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
15058 Ditto.
15059 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
15060 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
15061 * config/i386/i386.c (ix86_print_operand): Expand check for size
15062 override codes for Intel syntax.
15063
15064 2016-05-18 Richard Biener <rguenther@suse.de>
15065
15066 PR tree-optimization/71168
15067 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
15068 initialization earlier.
15069
15070 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
15071
15072 * config/aarch64/aarch64-simd.md
15073 (aarch64_reduc_plus_internal<mode>): Rename to...
15074 (reduc_plus_scal): ...This, and remove previous implementation.
15075
15076 2016-05-18 Richard Biener <rguenther@suse.de>
15077
15078 * passes.def: Put late dse and cd_dce in canonical order.
15079
15080 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
15081
15082 * ipa-inline-transform.c (preserve_function_body_p): Look for
15083 first non-thunk clone.
15084 (save_function_body): Save into first non-thunk.
15085 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
15086 up call stmt id.
15087 (lto_output_node): Inline thunks don't need body in every
15088 partition.
15089 * lto-streamer-in.c: Do not fixup thunk clones.
15090 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
15091 thunks.
15092 * tree-inline.c (copy_bb): Be prepared for target node to be new after
15093 folding suceeds.
15094
15095 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15096
15097 PR middle-end/63586
15098 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
15099 (reassociate_bb): Call transform_add_to_multiply.
15100
15101 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15102
15103 * config/aarch64/aarch64.c (all_extensions): Removed unused
15104 static variable.
15105
15106 2016-05-17 Nathan Sidwell <nathan@acm.org>
15107
15108 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
15109 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
15110
15111 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
15112
15113 PR tree-optimization/54579
15114 PR middle-end/55299
15115 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
15116
15117 2016-05-17 Marek Polacek <polacek@redhat.com>
15118
15119 PR ipa/71146
15120 * tree-inline.c (expand_call_inline): Call
15121 maybe_remove_unused_call_args.
15122
15123 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
15124
15125 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
15126 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
15127 * doc/md.texi (fmin@var{m}3): Likewise.
15128
15129 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15130
15131 * match.pd (X & C): New transformation.
15132
15133 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15134
15135 * match.pd (~X & Y): New transformation.
15136
15137 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15138
15139 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
15140 information for new SSA_NAME.
15141 (simplify_conversion_using_ranges): Get range through get_range_info
15142 instead of get_value_range.
15143
15144 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15145
15146 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
15147 Remove inline assembly.
15148 (vmvn_s16): Likewise.
15149 (vmvn_s32): Likewise.
15150 (vmvn_u8): Likewise.
15151 (vmvn_u16): Likewise.
15152 (vmvn_u32): Likewise.
15153 (vmvnq_s8): Likewise.
15154 (vmvnq_s16): Likewise.
15155 (vmvnq_s32): Likewise.
15156 (vmvnq_u8): Likewise.
15157 (vmvnq_u16): Likewise.
15158 (vmvnq_u32): Likewise.
15159 (vmvn_p8): Likewise.
15160 (vmvnq_p16): Likewise.
15161
15162 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15163
15164 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
15165 Use builtin.
15166 (vmul_n_s16): Likewise.
15167 (vmul_n_s32): Likewise.
15168 (vmul_n_u16): Likewise.
15169 (vmul_n_u32): Likewise.
15170 (vmulq_n_f32): Likewise.
15171 (vmulq_n_f64): Likewise.
15172 (vmulq_n_s16): Likewise.
15173 (vmulq_n_s32): Likewise.
15174 (vmulq_n_u16): Likewise.
15175 (vmulq_n_u32): Likewise.
15176
15177 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15178
15179 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
15180 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
15181
15182 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15183
15184 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
15185 to *aarch64_fma4_elt_from_dup<mode>.
15186 (*aarch64_fnma4_elt_to_128df): Rename to
15187 *aarch64_fnma4_elt_from_dup<mode>.
15188 * config/aarch64/arm_neon.h (vfma_n_f64): New.
15189 (vfms_n_f32): Likewise.
15190 (vfms_n_f64): Likewise.
15191 (vfmsq_n_f32): Likewise.
15192 (vfmsq_n_f64): Likewise.
15193
15194 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
15195
15196 * wide-int.h: Change fixed_wide_int_storage from class to struct.
15197
15198 2016-05-17 Richard Biener <rguenther@suse.de>
15199
15200 PR tree-optimization/71132
15201 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
15202 Only add control dependences for blocks in the loop.
15203 (build_rdg): Adjust.
15204 (generate_code_for_partition): Return whether loop should
15205 be destroyed and delay that.
15206 (distribute_loop): Likewise.
15207 (pass_loop_distribution::execute): Record loops to be destroyed
15208 and perform delayed destroying of loops.
15209
15210 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15211
15212 PR target/70809
15213 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
15214
15215 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15216
15217 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
15218
15219 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
15220
15221 PR target/71114
15222 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
15223 insertion point for instructions generated by validize_mem.
15224
15225 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15226
15227 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
15228 in brackets.
15229
15230 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15231
15232 * config/aarch64/aarch64.c
15233 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
15234 rather than a macro.
15235
15236 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15237
15238 * doc/invoke.texi (AArch64 Options): Various updates.
15239
15240 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15241
15242 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
15243 into instrumentation thunks.
15244 * cif-code.def (CIF_CHKP): New.
15245
15246 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
15247
15248 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
15249
15250 2016-05-16 Martin Jambor <mjambor@suse.cz>
15251
15252 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
15253 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
15254
15255 2016-05-16 Marek Polacek <polacek@redhat.com>
15256
15257 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
15258 commentary.
15259
15260 2016-05-16 Martin Jambor <mjambor@suse.cz>
15261
15262 PR hsa/70857
15263 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
15264 the outlined kernel function.
15265
15266 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
15267
15268 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
15269 (ISA_HAS_DLSA): Ditto.
15270
15271 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15272
15273 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
15274
15275 2016-05-16 Nathan Sidwell <nathan@acm.org>
15276
15277 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
15278 (nvptx_name_replacement): Restore. Add comment.
15279 (write_fn_proto, write_fn_proto_from_insn,
15280 nvptx_output_call_insn): Restore
15281 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
15282
15283 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15284
15285 * config/aarch64/aarch64.md
15286 (add<mode>3_compareC_cconly_imm): Remove use of %w.
15287 (add<mode>3_compareC_imm): Likewise.
15288 (<optab>si3_uxtw): Split into register and immediate variants.
15289 (andsi3_compare0_uxtw): Likewise.
15290 (and<mode>3_compare0): Likewise.
15291 (and<mode>3nr_compare0): Likewise.
15292 (stack_protect_test_<mode>): Don't use %x for memory operands.
15293
15294 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15295
15296 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
15297
15298 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15299
15300 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15301 Split integer shifts into shift_reg and bfm.
15302 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15303 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15304 (ror<mode>3_insn): Likewise.
15305 (<optab>si3_insn_uxtw): Likewise.
15306 (<optab><mode>3_insn): Change to rotate_imm.
15307 (extr<mode>5_insn_alt): Likewise.
15308 (extrsi5_insn_uxtw): Likewise.
15309 (extrsi5_insn_uxtw_alt): Likewise.
15310
15311 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15312
15313 * doc/tm.texi: Regenerate.
15314 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
15315 (TARGET_INVALID_RETURN_TYPE): Remove.
15316 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
15317 TARGET_INVALID_RETURN_TYPE.
15318 * target.def (invalid_parameter_type): Remove.
15319 (invalid_return_type): Remove.
15320
15321 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15322
15323 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
15324 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
15325 calls from thunk.
15326 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
15327 gimple body.
15328 (preserve_function_body_p): No need to preserve function body
15329 * cif-codes.def (CIF_THUNK): Remove.
15330 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
15331
15332 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15333
15334 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
15335
15336 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15337
15338 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
15339 for thunks.
15340
15341 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15342
15343 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
15344 (inline_small_functions): Do not look for function symbol when
15345 resetting caches.
15346
15347 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15348
15349 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
15350 of inline thunks
15351
15352 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15353 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15354 Jiong Wang <jiong.wang@arm.com>
15355
15356 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
15357 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
15358 Define __ARM_FP16_ARGS when appropriate.
15359 * config/arm/arm.c (arm_invalid_parameter_type): Remove
15360 declaration.
15361 (arm_invalid_return_type): Likewise.
15362 (TARGET_INVALID_PARAMETER_TYPE): Remove.
15363 (TARGET_INVALID_RETURN_TYPE): Remove.
15364 (aapcs_vfp_sub_candidate): Allow HFmode.
15365 (aapcs_vfp_allocate): Add comment. Support HFmode.
15366 (aapcs_vfp_allocate_return_reg): Likewise.
15367 (struct aapcs_cp_arg_layout): Slightly reword comments for
15368 is_return_candidate and allocate_return_reg.
15369 (output_mov_vfp): Update assert.
15370 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
15371 condition.
15372 (arm_invalid_parameter_type): Remove.
15373 (amr_invalid_return_type): Remove.
15374 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
15375 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
15376 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
15377
15378 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15379
15380 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15381 * config/aarch64/arch64-protos.h
15382 (aarch64_legitimize_reload_address): Remove.
15383 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
15384 Remove.
15385
15386 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
15387
15388 * configure.ac: Add ACX_NONCANONICAL_HOST.
15389 * configure: Regenerate.
15390 * Makefile.in: Set host_noncanonical.
15391
15392 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
15393
15394 PR target/71097
15395 * config/i386/i386.md (*movtf_internal): Before register allocation,
15396 do not allow FP constants for CM_MEDIUM memory model, allow only
15397 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
15398 (*movxf_internal): Ditto.
15399 (*movdf_internal): Ditto.
15400 (*movsf_internal): Ditto.
15401
15402 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15403
15404 PR rtl-optimization/67483
15405 * combine.c (make_compound_operation): Don't call extract_left_shift
15406 with negative shift amounts.
15407
15408 2016-05-13 Jakub Jelinek <jakub@redhat.com>
15409
15410 PR bootstrap/71071
15411 * fold-const.c (fold_checksum_tree): Allow modification
15412 of TYPE_ALIAS_SET during folding.
15413
15414 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
15415 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
15416 (ix86_split_to_parts): Likewise. Fix up formatting.
15417
15418 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
15419
15420 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
15421 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
15422 printf format.
15423
15424 2016-05-13 Nathan Sidwell <nathan@acm.org>
15425
15426 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
15427 (nvptx_name_replacement): Delete.
15428 (write_fn_proto, write_fn_proto_from_insn,
15429 nvptx_output_call_insn): Remove nvptx_name_replacement call.
15430 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
15431 * langhooks.c (add_builtin_funcction_common): Call
15432 targetm.mangle_decl_assembler_name.
15433
15434 * config/nvptx/nvptx.c (write_fn_proto): Handle
15435 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
15436
15437 2016-05-13 Martin Liska <mliska@suse.cz>
15438
15439 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
15440 and PRIu64 in printf format.
15441
15442 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15443
15444 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
15445 comment.
15446
15447 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15448
15449 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15450 Change --param max-completely-peeled-times to
15451 --param max-completely-peel-times in dump file printing.
15452
15453 2016-05-13 Richard Biener <rguenther@suse.de>
15454
15455 PR tree-optimization/42587
15456 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
15457 (find_bswap_or_nop_1): Likewise.
15458 (bswap_replace): Likewise.
15459
15460 2016-05-13 Martin Liska <mliska@suse.cz>
15461
15462 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
15463 Initialize a variable with default value.
15464
15465 2016-05-13 Martin Liska <mliska@suse.cz>
15466
15467 * doc/invoke.texi: Enhance explanation of error recovery
15468 of sanitizers.
15469
15470 2016-05-13 Martin Liska <mliska@suse.cz>
15471
15472 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
15473 (struct cost_pair): Change inv_expr_id (int) to inv_expr
15474 (iv_inv_expr_ent *).
15475 (struct iv_inv_expr_ent): Comment struct fields.
15476 (sort_iv_inv_expr_ent): New function.
15477 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
15478 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
15479 a hash_map between iv_inv_expr_ent and number of usages.
15480 (niter_for_exit): Fix coding style.
15481 (tree_ssa_iv_optimize_init): Use renamed variable.
15482 (determine_base_object): Fix coding style.
15483 (alloc_iv): Likewise.
15484 (find_interesting_uses_outside): Likewise.
15485 (add_candidate_1): Likewise.
15486 (add_standard_iv_candidates): Likewise.
15487 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
15488 (prepare_decl_rtl): Fix coding style.
15489 (get_address_cost): Likewise.
15490 (get_shiftadd_cost): Likewise.
15491 (force_expr_to_var_cost): Likewise.
15492 (compare_aff_trees): Likewise.
15493 (get_expr_id): Restructure the function.
15494 (get_loop_invariant_expr_id): Renamed to
15495 get_loop_invariant_expr.
15496 (get_computation_cost_at): Replace usage of inv_expr_id with
15497 inv_expr.
15498 (get_computation_cost): Likewise.
15499 (determine_group_iv_cost_generic): Likewise.
15500 (determine_group_iv_cost_address): Likewise.
15501 (iv_period): Fix coding style.
15502 (iv_elimination_compare_lt): Likewise.
15503 (may_eliminate_iv): Likewise.
15504 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
15505 inv_expr.
15506 (determine_group_iv_costs): Dump invariant expressions.
15507 (iv_ca_recount_cost): Use the newly added hash_map.
15508 (iv_ca_set_remove_invariants): Fix coding style.
15509 (iv_ca_set_add_invariants): Fix coding style.
15510 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
15511 invariants.
15512 (iv_ca_set_cp): Likewise.
15513 (iv_ca_new): Initialize the newly added hash_map and remove
15514 initialization of fields.
15515 (iv_ca_free): Delete the hash_map.
15516 (iv_ca_dump): Dump invariant expressions.
15517 (iv_ca_extend): Fix coding style.
15518 (try_add_cand_for): Likewise.
15519 (create_new_ivs): Dump information about # of avg iterations and
15520 # of used invariant expressions.
15521 (rewrite_use_compare): Fix coding style.
15522 (free_loop_data): Set default value for max_inv_expr_id.
15523
15524 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15525
15526 * cse.c (rest_of_handle_cse): Use cleanup_cfg
15527 returned value cse_cfg_altered computation.
15528 (rest_of_handle_cse2): Likewise.
15529 (rest_of_handle_cse_after_global_opts): Likewise.
15530
15531 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15532
15533 PR target/53440
15534 * config/arm/arm.c (arm32_output_mi_thunk): New.
15535 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
15536 to split Thumb1 vs TARGET_32BIT functionality.
15537 (arm_thumb1_mi_thunk): New.
15538
15539 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15540
15541 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
15542 to true.
15543
15544 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15545
15546 PR target/71080
15547 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
15548
15549 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
15550
15551 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
15552 (expand_builtin_trap): Emit a regular call.
15553 (set_builtin_user_assembler_name): Remove obsolete cases.
15554 * dse.c (scan_insn): Adjust.
15555 * except.c: Include calls.h.
15556 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
15557 emit a regular call to setjmp.
15558 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
15559 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
15560 (emit_block_move_via_libcall): Delete.
15561 (block_move_fn): Delete.
15562 (init_block_move_fn): Likewise.
15563 (emit_block_move_libcall_fn): Likewise.
15564 (emit_block_op_via_libcall): New function.
15565 (set_storage_via_libcall): Tidy up and use memset builtin.
15566 (block_clear_fn): Delete.
15567 (init_block_clear_fn): Likewise.
15568 (clear_storage_libcall_fn): Likewise.
15569 (expand_assignment): Call emit_block_move_via_libcall.
15570 Do not include gt-expr.h.
15571 * expr.h (emit_block_op_via_libcall): Declare.
15572 (emit_block_copy_via_libcall): New inline function.
15573 (emit_block_move_via_libcall): Likewise.
15574 (emit_block_comp_via_libcall): Likewise.
15575 (block_clear_fn): Delete.
15576 (init_block_move_fn): Likewise.
15577 (init_block_clear_fn): Likewise.
15578 (emit_block_move_via_libcall): Likewise.
15579 (set_storage_via_libcall): Add default parameter value.
15580 * libfuncs.h (enum libfunc_index): Remove obsolete values.
15581 (abort_libfunc): Delete.
15582 (memcpy_libfunc): Likewise.
15583 (memmove_libfunc): Likewise.
15584 (memcmp_libfunc): Likewise.
15585 (memset_libfunc): Likewise.
15586 (setbits_libfunc): Likewise.
15587 (setjmp_libfunc): Likewise.
15588 (longjmp_libfunc): Likewise.
15589 (profile_function_entry_libfunc): Likewise.
15590 (profile_function_exit_libfunc): Likewise.
15591 (gcov_flush_libfunc): Likewise.
15592 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
15593 and DECL_VISIBILITY on the declaration.
15594 (init_optabs): Do not initialize obsolete libfuncs.
15595 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
15596 * tree-core.h (ECF_RET1): Define.
15597 (ECF_TM_PURE): Adjust.
15598 (ECF_TM_BUILTIN): Likewise.
15599 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
15600 (build_common_builtin_nodes): Initialize abort builtin.
15601 Add ECF_RET1 on memcpy, memmove and memset builtins.
15602 Pass final flags for alloca and alloca_with_align builtins.
15603 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
15604 obsolete builtins.
15605 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
15606 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
15607 set_storage_via_libcall and call emit_block_copy_via_libcall.
15608
15609 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
15610
15611 * config/i386/i386.md (*call_got_x32): Change operand 0 to
15612 DImode before it is passed to ix86_output_call_operand.
15613 (*call_value_got_x32): Ditto for operand 1.
15614
15615 2016-05-12 Jiong Wang <jiong.wang@arm.com>
15616
15617 PR rtl-optimization/70904
15618 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
15619 reload for wide mode.
15620
15621 2016-05-12 Marek Polacek <polacek@redhat.com>
15622
15623 PR c/70756
15624 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
15625 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
15626 * langhooks.h (incomplete_type_error): Likewise.
15627 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
15628 parameter, pass it down to incomplete_type_error.
15629 * tree.h (size_in_bytes): New inline overload.
15630 (size_in_bytes_loc): Renamed from size_in_bytes.
15631
15632 2016-05-12 Richard Biener <rguenther@suse.de>
15633
15634 PR tree-optimization/71059
15635 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
15636 nary before looking up or entering the expression into the VN
15637 hashes.
15638 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
15639 Make sure to re-use NARYs without result as inserted by
15640 phi-translation.
15641
15642 2016-05-12 Richard Biener <rguenther@suse.de>
15643
15644 PR tree-optimization/71062
15645 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15646 field.
15647 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15648 vars_contains_restrict if the var is a restrict tag.
15649 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
15650 do not disambiguate pointers against it.
15651 (dump_points_to_solution): Re-structure and adjust for new
15652 vars_contains_restrict flag.
15653 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
15654
15655 2016-05-12 Martin Liska <mliska@suse.cz>
15656
15657 * doc/invoke.texi: Explain connection between
15658 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
15659
15660 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
15661
15662 PR tree-optimization/71006
15663 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15664 consider COND_EXPR as a mask producer.
15665
15666 2016-05-12 Marek Polacek <polacek@redhat.com>
15667
15668 PR driver/71063
15669 * opts.c (common_handle_option): Detect missing argument for --help^.
15670
15671 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15672
15673 PR target/70830
15674 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
15675 when popping the PC and within an interrupt handler routine.
15676 Add missing tab to output of "ldmfd".
15677 (output_return_instruction): Output LDMFD with SP update rather
15678 than POP when returning from interrupt handler.
15679
15680 2016-05-12 Jakub Jelinek <jakub@redhat.com>
15681
15682 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
15683 TARGET_64BIT && TARGET_AVX512DQ.
15684 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
15685 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
15686 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
15687 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
15688 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
15689 (*vec_extractv4si_zext): Add avx512dq alternative.
15690 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
15691 use v instead of x constraint in other alternatives where possible.
15692
15693 * config/i386/sse.md (sse2_loadld): Use v instead of x
15694 constraint in alternatives 0,1,4.
15695
15696 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
15697 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
15698 v constraints instead of x and <pinsr_evex_isa> isa attribute.
15699
15700 PR target/71019
15701 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
15702 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
15703 is not emitted unless TARGET_AVX512BW.
15704 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
15705 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
15706 for the result operand.
15707
15708 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
15709 constraint instead of x in avx alternatives. Use maybe_evex instead
15710 of vex prefix.
15711
15712 * config/i386/constraints.md (Yv): New constraint.
15713 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
15714 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
15715 * config/i386/i386.md (avx512fvecmode): New mode attr.
15716 (*pushtf): Use v constraint instead of x.
15717 (*movtf_internal): Likewise. For TARGET_AVX512VL and
15718 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
15719 (*absneg<mode>2): Use Yv constraint instead of x constraint.
15720 (*absnegtf2_sse): Likewise.
15721 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
15722 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
15723 avx512f alternatives.
15724 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
15725
15726 2016-05-12 Richard Biener <rguenther@suse.de>
15727
15728 PR tree-optimization/71060
15729 * tree-data-ref.c (initialize_data_dependence_relation): Do not
15730 require exact match of DR_BASE_OBJECT but only matching address and
15731 type.
15732
15733 2016-05-12 Richard Biener <rguenther@suse.de>
15734
15735 PR tree-optimization/70986
15736 * cfganal.c: Include cfgloop.h.
15737 (dfs_find_deadend): Prefer to take edges exiting loops.
15738
15739 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15740
15741 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15742 compile and run time.
15743
15744 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
15745
15746 PR c/43651
15747 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15748
15749 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
15750
15751 * config/i386/i386.c (legitimize_pic_address): Use
15752 copy_to_suggested_reg instead of gen_movsi.
15753
15754 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15755
15756 * config/rs6000/predicates.md (quad_memory_operand): Move most of
15757 the code into quad_address_p and call it to share code with
15758 vsx_quad_dform_memory_operand.
15759 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15760 d-form support.
15761 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15762 bit instead of being a separate word. Split -mpower9-dform into
15763 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15764 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15765 for the register class supporting 128-bit quad word memory offsets.
15766 (mode_supports_vsx_dform_quad): Helper function to return if the
15767 register class uses quad word memory offsets.
15768 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15769 (rs6000_debug_reg_global): Always print if we are using LRA or not.
15770 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15771 instructions are enabled, set up the appropriate addr_masks for
15772 128-bit types.
15773 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15774 -mpower9-dform-scalar, instead of -mpower9-dform.
15775 (rs6000_option_override_internal): Split -mpower9-dform into two
15776 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
15777 -mpower9-dform switch sets or clears both. If we are not using
15778 the LRA register allocator, do not enable -mpower9-dform-vector by
15779 default. If we are using LRA, enable -mpower9-dform-vector and
15780 -mvsx-timode if it is appropriate. Issue a warning if either
15781 -mpower9-dform-vector or -mvsx-timode are explicitly used without
15782 enabling LRA.
15783 (quad_address_offset_p): New helper function to return if the
15784 offset is legal for quad word memory instructions.
15785 (quad_address_p): New function to determin if GPR or vector
15786 register quad word memory addresses are legal.
15787 (mem_operand_gpr): Validate quad word address offsets.
15788 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15789 d-form (register + offset) instructions.
15790 (offsettable_ok_by_alignment): Likewise.
15791 (rs6000_legitimate_offset_address_p): Likewise.
15792 (legitimate_lo_sum_address_p): Likewise.
15793 (rs6000_legitimize_address): Likewise.
15794 (rs6000_legitimize_reload_address): Add more debug statements for
15795 -mdebug=addr.
15796 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15797 d-form instructions.
15798 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15799 d-form instructions. Distinguish different cases in debug
15800 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15801 d-form instructions.
15802 (rs6000_preferred_reload_class): Likewise.
15803 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15804 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
15805 of the ISA 2.06 indexed memory instructions.
15806 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15807 use them to save/restore the saved vector registers instead of
15808 using Altivec instructions.
15809 (rs6000_emit_epilogue): Likewise.
15810 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15811 (rs6000_opt_masks): Split -mpower9-dform into
15812 -mpower9-dform-scalar and -mpower9-dform-vector.
15813 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15814 was not selected.
15815 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15816 ISA 3.0 vector indexed memory instructions, and fold the code into
15817 the normal mov<mode> patterns.
15818 (p9_vecstore_<mode>): Likewise.
15819 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15820 instructions.
15821 (vsx_movti_64bit): Likewise.
15822 (vsx_movti_32bit): Likewise.
15823 * config/rs6000/constraints.md (wO constraint): New constraint for
15824 ISA 3.0 vector d-form support.
15825 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15826 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
15827 include -mpower9-dform-vector until we switch over to LRA.
15828 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15829 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15830 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15831 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15832 for -mpower9-dform and -mlra.
15833 * doc/md.texi (wO constraint): Document wO constraint.
15834
15835 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
15836
15837 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15838 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15839 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15840 Move handling of non-insn arguments inline into the sole user:
15841 (output_trans_func): ...here.
15842 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15843 in emitted function prototype.
15844 (output_internal_insn_latency_func): Ditto. Simplify.
15845 (output_internal_maximal_insn_latency_func): Ditto. Delete
15846 always-unused argument.
15847 (output_insn_latency_func): Ditto.
15848 (output_maximal_insn_latency_func): Ditto.
15849
15850 2016-05-11 Richard Biener <rguenther@suse.de>
15851
15852 PR tree-optimization/71055
15853 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15854 sth with precision not equal to access size verify we don't chop
15855 off bits.
15856
15857 2016-05-11 Richard Biener <rguenther@suse.de>
15858
15859 PR debug/71057
15860 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15861 (dwarf2out_finish): Move retry_incomplete_types call ...
15862 (dwarf2out_early_finish): ... here.
15863
15864 2016-05-11 Richard Biener <rguenther@suse.de>
15865
15866 PR middle-end/71002
15867 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15868 if the langhook insists on it.
15869 * fold-const.c (make_bit_field_ref): Add arg for the original
15870 reference and preserve its alias-set.
15871 (decode_field_reference): Take exp by reference and adjust it
15872 to the original memory reference.
15873 (optimize_bit_field_compare): Adjust callers.
15874 (fold_truth_andor_1): Likewise.
15875 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15876
15877 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
15878
15879 PR middle-end/70807
15880 * cfgrtl.h (delete_insn_and_edges): Now return bool.
15881 * cfgrtl.c (delete_insn_and_edges): Likewise.
15882 * config/i386/i386.c (convert_scalars_to_vector): Remove
15883 redundant code.
15884 * cse.c (cse_insn): Compute cse_cfg_altered.
15885 (delete_trivially_dead_insns): Likewise.
15886 (cse_cc_succs): Likewise.
15887 (rest_of_handle_cse): Free dominance info if required.
15888 (rest_of_handle_cse2): Likewise.
15889 (rest_of_handle_cse_after_global_opts): Likewise.
15890
15891 2016-05-11 Alan Modra <amodra@gmail.com>
15892
15893 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15894 abi_v4_pass_in_fpr): New functions.
15895 (rs6000_function_arg_boundary): Exclude complex IBM long double
15896 from 64-bit alignment when ABI_V4.
15897 (rs6000_function_arg, rs6000_function_arg_advance_1,
15898 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15899
15900 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
15901
15902 PR rtl-optimization/71028
15903 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15904 jump with just a return in the fallthrough block if the branch
15905 block contains just a return as well.
15906
15907 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
15908
15909 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15910 * match.pd ((X & Y) ^ Y): ... this.
15911 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15912 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15913
15914 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15915
15916 * read-md.c (require_char_ws): New function.
15917 (read_string): Simplify using require_char_ws.
15918 (handle_constants): Likewise.
15919 (handle_enum): Likewise.
15920 (handle_file): Likewise.
15921 * read-md.h (require_char_ws): New declaration.
15922 * read-rtl.c (read_conditions): Simplify using require_char_ws.
15923 (read_mapping): Likewise.
15924 (read_rtx_code): Likewise.
15925 (read_nested_rtx): Likewise.
15926
15927 2016-05-10 James Norris <jnorris@codesourcery.com>
15928
15929 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15930 if offloading is enabled and -fopenacc or -fopenmp is specified.
15931 (CRTOFFLOADEND): Likewise.
15932 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15933 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15934
15935 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
15936
15937 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15938 gotoff_operand code paths. Use copy_to_suggested_regs and
15939 expand_simple_binop where appropriate. Cleanup.
15940
15941 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15942
15943 PR target/70799
15944 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15945 integer constants.
15946 (dimode_scalar_chain::vector_const_cost): New.
15947 (dimode_scalar_chain::compute_convert_gain): Handle constants.
15948 (dimode_scalar_chain::convert_op): Likewise.
15949 (dimode_scalar_chain::convert_insn): Likewise.
15950
15951 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15952
15953 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15954 unary operation, not a binary one.
15955
15956 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15957
15958 PR middle-end/70877
15959 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15960 calls with type casted fndecl.
15961
15962 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15963
15964 PR tree-optimization/70786
15965 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
15966 * calls.c (initialize_argument_information): Bind bounds
15967 with corresponding args passed by reference.
15968
15969 2016-05-10 Jakub Jelinek <jakub@redhat.com>
15970
15971 PR target/70927
15972 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
15973 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
15974 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
15975 accordingly.
15976
15977 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15978
15979 PR target/70963
15980 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
15981 code for a zero scale factor.
15982 (vsx_xvcvdpuxds_scale): Likewise.
15983
15984 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15985
15986 * diagnostic-show-locus.c (layout::layout): Call show_ruler
15987 if show_ruler_p was set on the context.
15988 (layout::show_ruler): New method.
15989 * diagnostic.h (struct diagnostic_context): Add field
15990 "show_ruler_p".
15991
15992 2016-05-10 Richard Biener <rguenther@suse.de>
15993
15994 PR tree-optimization/71039
15995 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
15996 (chk_uses): New function.
15997 (propagate_with_phi): Verify we can safely replicate the lhs of an
15998 aggregate assignment on all incoming edges.
15999
16000 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
16001
16002 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
16003 Forward declare.
16004 (rx_atomic_sequence): New class.
16005 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
16006 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
16007 non-inline.
16008 (rx_atomic_sequence::rx_atomic_sequence,
16009 rx_atomic_sequence::~rx_atomic_sequence): New functions.
16010 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
16011 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
16012 CTRLREG_INTB): New constants.
16013 (FETCHOP): New code iterator.
16014 (fethcop_name, fetchop_name2): New iterator code attributes.
16015 (QIHI): New mode iterator.
16016 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
16017 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
16018 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
16019
16020 2016-05-10 Martin Liska <mliska@suse.cz>
16021
16022 * tree-inline.c (remap_dependence_clique): Do not remap
16023 debugging statements.
16024
16025 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16026
16027 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
16028 ("*fixuns_truncdfdi2_z13")
16029 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
16030 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
16031 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
16032
16033 2016-05-10 Richard Biener <rguenther@suse.de>
16034
16035 PR tree-optimization/70497
16036 PR tree-optimization/28367
16037 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
16038 split out from ...
16039 (visit_reference_op_load): ... here.
16040 (vn_reference_lookup_3): Use it to handle subreg-like accesses
16041 with simplified BIT_FIELD_REFs.
16042 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
16043 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
16044 correctly.
16045
16046 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16047
16048 * dwarf2out.c (add_abstract_origin_attribute): Adjust
16049 documentation comment. For BLOCK nodes, add a
16050 DW_AT_abstract_origin attribute that points to the DIE generated
16051 for the origin BLOCK.
16052 (gen_lexical_block_die): Call add_abstract_origin_attribute for
16053 blocks from inlined functions.
16054
16055 2016-05-10 Alan Modra <amodra@gmail.com>
16056
16057 PR target/70947
16058 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
16059 regrename modifying insns saving lr before __morestack call.
16060 * config/rs6000/rs6000.md (split_stack_return): Similarly for
16061 insns restoring lr after __morestack call.
16062
16063 2016-05-09 Jakub Jelinek <jakub@redhat.com>
16064
16065 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
16066 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
16067 expanders.
16068 * config/i386/sse.md (vec_interleave_high<mode>,
16069 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
16070 <avx512>_vpermt2var<mode>3_maskz): Likewise.
16071
16072 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16073
16074 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
16075 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
16076 parallel reassociation for power8 and forward.
16077
16078 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
16079
16080 * config/i386/i386.md (absneg splitters with general regs): Use
16081 general_reg_operand predicate.
16082 (btsq peephole2): Use x86_64_immediate_operand to check if new
16083 value is suitable for immediate operand. Generate emitted insn
16084 using RTL expressions.
16085 (btcq peephole2): Ditto.
16086 (btrq peephole2): Ditto. Generate correct immediate operand
16087 for AND masking.
16088
16089 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16090
16091 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
16092 bitpos.
16093
16094 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16095
16096 * tree-affine.c (wide_int_constant_multiple_p): Add missing
16097 pointer dereference.
16098
16099 2016-05-09 Richard Biener <rguenther@suse.de>
16100
16101 PR tree-optimization/70985
16102 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
16103 op0 isn't a gimple register.
16104
16105 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
16106
16107 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
16108 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
16109 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
16110 (i6400_fpu_mult): New cpu units.
16111 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
16112 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
16113 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
16114 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
16115 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
16116 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
16117 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
16118 (i6400_msa_long_float4, i6400_msa_long_float5)
16119 (i6400_msa_long_float8, i6400_msa_fdiv_df)
16120 (i6400_msa_fdiv_sf): New reservations.
16121 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
16122 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
16123 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
16124 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
16125 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
16126 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
16127 (msa_short_cmp, msa_short_float2, msa_short_logic3)
16128 (msa_short_store4, msa_long_load, msa_short_store)
16129 (msa_long_logic, msa_long_float2, msa_long_float4)
16130 (msa_long_float5, msa_long_float8, msa_long_mult)
16131 (msa_long_fdiv, msa_long_div): New reservations.
16132
16133 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
16134 Sameera Deshpande <sameera.deshpande@imgtec.com>
16135 Matthew Fortune <matthew.fortune@imgtec.com>
16136 Graham Stott <graham.stott@imgtec.com>
16137 Chao-ying Fu <chao-ying.fu@imgtec.com>
16138
16139 * config.gcc: Add MSA header file for mips*-*-* target.
16140 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
16141 (Ubv8i, Urv8): New constraints.
16142 * config/mips/mips-ftypes.def: Add function types for MSA
16143 builtins.
16144 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
16145 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
16146 * config/mips/mips-msa.md: New file.
16147 * config/mips/mips-protos.h
16148 (mips_split_128bit_const_insns): New prototype.
16149 (mips_msa_idiv_insns): Likewise.
16150 (mips_split_128bit_move): Likewise.
16151 (mips_split_128bit_move_p): Likewise.
16152 (mips_split_msa_copy_d): Likewise.
16153 (mips_split_msa_insert_d): Likewise.
16154 (mips_split_msa_fill_d): Likewise.
16155 (mips_expand_msa_branch): Likewise.
16156 (mips_const_vector_same_val_p): Likewise.
16157 (mips_const_vector_same_bytes_p): Likewise.
16158 (mips_const_vector_same_int_p): Likewise.
16159 (mips_const_vector_shuffle_set_p): Likewise.
16160 (mips_const_vector_bitimm_set_p): Likewise.
16161 (mips_const_vector_bitimm_clr_p): Likewise.
16162 (mips_msa_vec_parallel_const_half): Likewise.
16163 (mips_msa_output_division): Likewise.
16164 (mips_ldst_scaled_shift): Likewise.
16165 (mips_expand_vec_cond_expr): Likewise.
16166 * config/mips/mips.c (enum mips_builtin_type): Add
16167 MIPS_BUILTIN_MSA_TEST_BRANCH.
16168 (mips_gen_const_int_vector_shuffle): New prototype.
16169 (mips_const_vector_bitimm_set_p): New function.
16170 (mips_const_vector_bitimm_clr_p): Likewise.
16171 (mips_const_vector_same_val_p): Likewise.
16172 (mips_const_vector_same_bytes_p): Likewise.
16173 (mips_const_vector_same_int_p): Likewise.
16174 (mips_const_vector_shuffle_set_p): Likewise.
16175 (mips_symbol_insns): Forbid loading symbols via immediate for
16176 MSA.
16177 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
16178 stores.
16179 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
16180 MSA.
16181 (mips_lx_address_p): Add support load indexed address for MSA.
16182 (mips_address_insns): Add calculation of instructions needed for
16183 stores and loads for MSA.
16184 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
16185 CONST_VECTOR for MSA and let it fall through.
16186 (mips_ldst_scaled_shift): New function.
16187 (mips_subword_at_byte): Likewise.
16188 (mips_msa_idiv_insns): Likewise.
16189 (mips_legitimize_move): Validate MSA moves.
16190 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
16191 calculation of costs for MSA division.
16192 (mips_split_move_p): Check if MSA moves need splitting.
16193 (mips_split_move): Split MSA moves if necessary.
16194 (mips_split_128bit_move_p): New function.
16195 (mips_split_128bit_move): Likewise.
16196 (mips_split_msa_copy_d): Likewise.
16197 (mips_split_msa_insert_d): Likewise.
16198 (mips_split_msa_fill_d): Likewise.
16199 (mips_output_move): Handle MSA moves.
16200 (mips_expand_msa_branch): New function.
16201 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
16202 Reinstate 'y' modifier.
16203 (mips_file_start): Add MSA .gnu_attribute.
16204 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
16205 FPRs.
16206 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
16207 (mips_class_max_nregs): Add register size for MSA supported mode.
16208 (mips_cannot_change_mode_class): Allow conversion between MSA
16209 vector modes and TImode.
16210 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
16211 instruction.
16212 (mips_secondary_reload_class): Force MSA loads/stores via memory.
16213 (mips_preferred_simd_mode): Add preffered modes for MSA.
16214 (mips_vector_mode_supported_p): Add MSA supported modes.
16215 (mips_autovectorize_vector_sizes): New function.
16216 (mips_msa_output_division): Likewise.
16217 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
16218 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
16219 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
16220 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
16221 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
16222 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
16223 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
16224 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
16225 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
16226 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
16227 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
16228 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
16229 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
16230 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
16231 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
16232 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
16233 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
16234 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
16235 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
16236 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
16237 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
16238 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
16239 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
16240 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
16241 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
16242 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
16243 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
16244 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
16245 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
16246 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
16247 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
16248 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
16249 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
16250 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
16251 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
16252 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
16253 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
16254 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
16255 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
16256 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
16257 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
16258 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
16259 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
16260 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
16261 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16262 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16263 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16264 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16265 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16266 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16267 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16268 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16269 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
16270 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
16271 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
16272 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
16273 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
16274 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
16275 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
16276 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
16277 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
16278 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
16279 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
16280 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
16281 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
16282 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
16283 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
16284 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
16285 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
16286 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
16287 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
16288 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
16289 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
16290 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
16291 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
16292 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
16293 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
16294 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
16295 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
16296 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
16297 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
16298 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
16299 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
16300 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
16301 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
16302 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
16303 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
16304 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
16305 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
16306 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
16307 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
16308 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
16309 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
16310 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
16311 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
16312 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
16313 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
16314 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
16315 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
16316 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
16317 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
16318 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
16319 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
16320 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
16321 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
16322 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
16323 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
16324 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
16325 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
16326 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
16327 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
16328 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
16329 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
16330 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
16331 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
16332 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
16333 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
16334 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
16335 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
16336 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
16337 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
16338 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
16339 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
16340 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
16341 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
16342 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
16343 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
16344 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
16345 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
16346 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
16347 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
16348 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
16349 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
16350 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
16351 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
16352 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
16353 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
16354 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
16355 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
16356 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
16357 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
16358 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
16359 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
16360 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
16361 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
16362 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
16363 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
16364 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
16365 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
16366 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
16367 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
16368 move_v builtins.
16369 (mips_get_builtin_decl_index): New array.
16370 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
16371 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
16372 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
16373 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
16374 (mips_init_builtins): Initialize mips_get_builtin_decl_index
16375 array.
16376 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
16377 hook.
16378 (mips_expand_builtin_insn): Prepare operands for
16379 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
16380 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
16381 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
16382 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
16383 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
16384 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
16385 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
16386 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
16387 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
16388 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
16389 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
16390 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
16391 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
16392 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
16393 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
16394 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
16395 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
16396 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
16397 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
16398 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
16399 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
16400 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
16401 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
16402 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
16403 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
16404 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
16405 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
16406 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
16407 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
16408 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
16409 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
16410 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
16411 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
16412 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
16413 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
16414 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
16415 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
16416 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
16417 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
16418 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
16419 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
16420 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
16421 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
16422 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
16423 These are set implicitly and an error is reported if overridden.
16424 (mips_expand_builtin_msa_test_branch): New function.
16425 (mips_expand_msa_shuffle): Likewise.
16426 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
16427 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
16428 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
16429 (mips_expand_vec_unpack): Add support for MSA.
16430 (mips_expand_vector_init): Likewise.
16431 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
16432 instead of const0_rtx.
16433 (mips_msa_vec_parallel_const_half): New function.
16434 (mips_gen_const_int_vector): Likewise.
16435 (mips_gen_const_int_vector_shuffle): Likewise.
16436 (mips_expand_msa_cmp): Likewise.
16437 (mips_expand_vec_cond_expr): Likewise.
16438 * config/mips/mips.h
16439 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
16440 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
16441 specified.
16442 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
16443 (ISA_HAS_MSA): New macro.
16444 (UNITS_PER_MSA_REG): Likewise.
16445 (BITS_PER_MSA_REG): Likewise.
16446 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
16447 (MSA_REG_FIRST): New macro.
16448 (MSA_REG_LAST): Likewise.
16449 (MSA_REG_NUM): Likewise.
16450 (MSA_REG_P): Likewise.
16451 (MSA_REG_RTX_P): Likewise.
16452 (MSA_SUPPORTED_MODE_P): Likewise.
16453 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
16454 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
16455 * config/mips/mips.md: Include mips-msa.md.
16456 (alu_type): Add simd_add.
16457 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
16458 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
16459 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
16460 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
16461 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
16462 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
16463 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
16464 simd_move, simd_load, simd_store. Choose "multi" for moves
16465 for "qword_mode".
16466 (qword_mode): New attribute.
16467 (insn_count): Add instruction count for quad moves.
16468 Increase the count for MIPS SIMD division.
16469 (UNITMODE): Add UNITMODEs for vector types.
16470 (addsub): New code iterator.
16471 * config/mips/mips.opt (mmsa): New option.
16472 * config/mips/msa.h: New file.
16473 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
16474 specified.
16475 * config/mips/mti-linux.h: Likewise.
16476 * config/mips/predicates.md
16477 (const_msa_branch_operand): New constraint.
16478 (const_uimm3_operand): Likewise.
16479 (const_uimm4_operand): Likewise.
16480 (const_uimm5_operand): Likewise.
16481 (const_uimm8_operand): Likewise.
16482 (const_imm5_operand): Likewise.
16483 (aq10b_operand): Likewise.
16484 (aq10h_operand): Likewise.
16485 (aq10w_operand): Likewise.
16486 (aq10d_operand): Likewise.
16487 (const_m1_operand): Likewise.
16488 (reg_or_m1_operand): Likewise.
16489 (const_exp_2_operand): Likewise.
16490 (const_exp_4_operand): Likewise.
16491 (const_exp_8_operand): Likewise.
16492 (const_exp_16_operand): Likewise.
16493 (const_vector_same_val_operand): Likewise.
16494 (const_vector_same_simm5_operand): Likewise.
16495 (const_vector_same_uimm5_operand): Likewise.
16496 (const_vector_same_uimm6_operand): Likewise.
16497 (const_vector_same_uimm8_operand): Likewise.
16498 (par_const_vector_shf_set_operand): Likewise.
16499 (reg_or_vector_same_val_operand): Likewise.
16500 (reg_or_vector_same_simm5_operand): Likewise.
16501 (reg_or_vector_same_uimm6_operand): Likewise.
16502 * doc/extend.texi (MIPS SIMD Architecture Functions): New
16503 section.
16504 * doc/invoke.texi (-mmsa): Document new option.
16505
16506 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16507
16508 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
16509 * configure: Regenerate.
16510 * config.in: Regenerate.
16511 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
16512 on -fvtable-verify.
16513 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
16514 (ENDFILE_VTV_SPEC): Define.
16515
16516 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
16517
16518 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
16519 registers in all interrupt handlers if necessary.
16520 (rl78_option_override): Add warning.
16521 (MUST_SAVE_MDUC_REGISTERS): New macro.
16522 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
16523 * config/rl78/rl78.c (check_mduc_usage): New function.
16524 (mduc_regs): New structure to hold MDUC register data.
16525 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
16526 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
16527 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
16528 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
16529 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
16530 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
16531
16532 2016-05-09 Bin Cheng <bin.cheng@arm.com>
16533
16534 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
16535 (tree-ssa-loop-niter.h): Ditto.
16536 (idx_within_array_bound, ref_within_array_bound): New functions.
16537 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
16538 Factor out check on writable base object to ...
16539 (base_object_writable): ... here.
16540
16541 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16542
16543 * config/arm/arm.md (probe_stack): Add modes to set source
16544 and destination.
16545
16546 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
16547
16548 * regrename.c (base_reg_class_for_rename): New static function.
16549 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
16550
16551 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
16552
16553 * cgraph.c (thunk_adjust): Export.
16554 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
16555 * cgraphunit.c (thunk_adjust): Export.
16556 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
16557 thunks.
16558 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
16559 inlinable.
16560 * tree-inline.c (expand_call_inline): Expand thunks inline.
16561
16562 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
16563
16564 PR target/70998
16565 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
16566 (*sse2_vd_cvtss2sd): Ditto.
16567 * config/i386/i386.md
16568 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
16569 Generate *sse2_vd_cvtsd2ss pattern.
16570 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
16571 Generate *sse2_vd_cvtss2sd pattern.
16572
16573 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16574
16575 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
16576 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
16577 users.
16578
16579 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16580
16581 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
16582 * config/sh/sh.c: Define and declare variables on first use throughout
16583 the file.
16584 (current_function_interrupt): Change to bool type.
16585 (frame_insn): Rename to emit_frame_insn and update users.
16586 (push_regs): Use bool for 'interrupt_handler' argument.
16587 (save_schedule_s): Remove.
16588 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
16589 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
16590 targetm.asm_out.unaligned_op.di.
16591 (gen_far_branch): Remove redundant forward declaration.
16592 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
16593 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
16594 (sh_set_return_address, sh_function_ok_for_sibcall,
16595 scavenge_reg): Update comments.
16596 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
16597 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
16598 (sh_attr_renesas_p): Remove unnecessary parentheses.
16599 (branch_dest): Simplify.
16600 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
16601 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
16602 (CUMULATIVE_ARGS): Change macro to typedef.
16603 (current_function_interrupt): Change to bool type.
16604 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
16605 Surround with __cplusplus ifdef.
16606 (sh_compare_op0, sh_compare_op1): Remove.
16607 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
16608
16609 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
16610
16611 * config/arm/arm.md: (arch): Add neon.
16612 (arch_enabled): Return yes for arch neon when TARGET_NEON.
16613 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
16614 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
16615 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
16616 attributes for alt renumbering. Mark alt 3 as non-predicable.
16617 (thumb2_movdf_vfp): Likewise.
16618
16619 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
16620
16621 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
16622 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
16623 (*andqi_1): Add preferred_for_speed attribute to disparage
16624 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
16625 (*<code>qi_1): Ditto.
16626 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
16627 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
16628 (*ashlqi3_1): Ditto.
16629 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
16630 Add preferred_for_size attribute to disparage alternative 0 and
16631 preferred_for_speed attribute to disparage alternative 1 for
16632 TARGET_PARTIAL_REG_STALL targets.
16633
16634 2016-05-07 Tom de Vries <tom@codesourcery.com>
16635
16636 PR tree-optimization/70956
16637 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
16638 def.
16639
16640 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16641
16642 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
16643 * config/sh/sh.c (sh_cbranch_distance): Implement it.
16644 * config/sh/sh.md (branch_zero): Remove define_attr.
16645 (define_delay): Disable delay slot if branch distance is one insn.
16646
16647 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16648
16649 * config/i386/i386.md (LEAMODE): New mode attribute.
16650 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
16651 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
16652 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
16653 operand 2 predicate.
16654 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
16655 (*lea<mode>_general_3): Ditto.
16656 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
16657
16658 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16659
16660 * genmddump.c (main): Convert argv from char ** to const char **.
16661
16662 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16663
16664 * coretypes.h (OVERRIDE): New macro.
16665 (FINAL): New macro.
16666
16667 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
16668
16669 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
16670 allow coalescing if the types are compatible.
16671
16672 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16673
16674 * pass_manager.h (pass_manager::register_pass_name): New method.
16675 (pass_manager::get_pass_by_name): New method.
16676 (pass_manager::create_pass_tab): New method.
16677 (pass_manager::m_name_to_pass_map): New field.
16678 * passes.c (name_to_pass_map): Delete global in favor of field
16679 "m_name_to_pass_map" of pass_manager.
16680 (register_pass_name): Rename from a function to...
16681 (pass_manager::register_pass_name): ...this method, updating
16682 for renaming of global "name_to_pass_map" to field
16683 "m_name_to_pass_map".
16684 (create_pass_tab): Rename from a function to...
16685 (pass_manager::create_pass_tab): ...this method, updating
16686 for renaming of global "name_to_pass_map" to field.
16687 (get_pass_by_name): Rename from a function to...
16688 (pass_manager::get_pass_by_name): ...this method.
16689 (enable_disable_pass): Convert use of get_pass_by_name to
16690 a method call, locating the pass_manager singleton.
16691
16692 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16693
16694 * genattr-common.c (main): Convert argv from char ** to const char **.
16695 * genattr.c (main): Likewise.
16696 * genattrtab.c (main): Likewise.
16697 * genautomata.c (initiate_automaton_gen): Likewise.
16698 (main): Likewise.
16699 * gencodes.c (main): Likewise.
16700 * genconditions.c (main): Likewise.
16701 * genconfig.c (main): Likewise.
16702 * genconstants.c (main): Likewise.
16703 * genemit.c (main): Likewise.
16704 * genenums.c (main): Likewise.
16705 * genextract.c (main): Likewise.
16706 * genflags.c (main): Likewise.
16707 * genmddeps.c (main): Likewise.
16708 * genopinit.c (main): Likewise.
16709 * genoutput.c (main): Likewise.
16710 * genpeep.c (main): Likewise.
16711 * genpreds.c (main): Likewise.
16712 * genrecog.c (main): Likewise.
16713 * gensupport.c (init_rtx_reader_args_cb): Likewise.
16714 (init_rtx_reader_args): Likewise.
16715 * gensupport.h (init_rtx_reader_args_cb): Likewise.
16716 (init_rtx_reader_args): Likewise.
16717 * gentarget-def.c (main): Likewise.
16718 * read-md.c (read_md_files): Likewise.
16719 * read-md.h (read_md_files): Likewise.
16720
16721 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16722
16723 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
16724 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
16725 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
16726 Remove unused predicate.
16727 (register_and_not_fp_reg_operand): Ditto.
16728
16729 2016-05-06 Martin Liska <mliska@suse.cz>
16730
16731 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
16732 instead of vec as the vector is local to the function.
16733
16734 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16735
16736 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
16737 avx512bw alternative.
16738
16739 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16740 before the ashr<mode>3 pattern.
16741
16742 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16743 v instead of x in vex or maybe_vex alternatives, use
16744 maybe_evex instead of vex in prefix.
16745
16746 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16747 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16748 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16749 in vex or maybe_vex alternatives, use maybe_evex instead of vex
16750 in prefix.
16751
16752 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16753 v instead of x in vex or maybe_vex alternatives, use
16754 maybe_evex instead of vex in prefix.
16755
16756 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16757 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16758 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16759 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16760 alternatives, use maybe_evex instead of vex in prefix.
16761
16762 * config/i386/sse.md (vec_interleave_lowv4sf,
16763 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16764 v instead of x in vex or maybe_vex alternatives, use
16765 maybe_evex instead of vex in prefix.
16766
16767 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16768 v instead of x in vex or maybe_vex alternatives, use
16769 maybe_evex instead of vex in prefix.
16770
16771 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16772 v constraint instead of x.
16773
16774 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
16775
16776 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16777 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16778 equality first.
16779
16780 2016-05-06 Richard Biener <rguenther@suse.de>
16781
16782 PR tree-optimization/70948
16783 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16784 Properly clobber all fields of va_list for __builtin_va_start.
16785
16786 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16787
16788 PR debug/70935
16789 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16790 loop latch destination.
16791
16792 2016-05-06 Martin Liska <mliska@suse.cz>
16793
16794 * tree-ssa-uninit.c: Apply manual changes
16795 to the GNU coding style.
16796 (prune_uninit_phi_opnds): Rename from
16797 prune_uninit_phi_opnds_in_unrealizable_paths.
16798
16799 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16800
16801 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16802 mspace): Remove deprecated options.
16803 * doc/invoke.texi (SH options): Remove -mspace.
16804
16805 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16806
16807 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16808
16809 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16810
16811 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16812 corresponding combine split pattern.
16813
16814 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16815
16816 PR target/58219
16817 * config/sh/predicates.md (long_displacement_mem_operand): New.
16818 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16819 Add movi20, movi20s alternatives. Adjust length attribute for
16820 alternatives.
16821 (movsi_ie): Allow for any FPU. Adjust length attribute for
16822 alternatives.
16823 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
16824 attribute for alternatives.
16825 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16826 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16827 length attribute for alternatives.
16828
16829 2016-05-06 Richard Biener <rguenther@suse.de>
16830
16831 PR tree-optimization/70960
16832 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16833
16834 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16835
16836 PR target/52933
16837 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16838 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16839
16840 2016-05-06 Marek Polacek <polacek@redhat.com>
16841
16842 PR sanitizer/70875
16843 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16844
16845 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16846
16847 PR target/54089
16848 * config/sh/sh.md (*rotcr): Add another variant.
16849
16850 2016-05-06 Richard Biener <rguenther@suse.de>
16851
16852 PR middle-end/70931
16853 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16854
16855 2016-05-06 Richard Biener <rguenther@suse.de>
16856
16857 PR middle-end/70941
16858 * fold-const.c (split_tree): Always convert to the original type
16859 before negating.
16860
16861 2016-05-06 Richard Biener <rguenther@suse.de>
16862
16863 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16864 (fwprop_addr): Likewise.
16865
16866 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16867
16868 PR target/70873
16869 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16870 New prototype.
16871 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16872 * config/i386/i386.md (push mem splitter): Use find_constant_src in
16873 the splitter condition.
16874 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16875 the splitter condition.
16876 (FP float_extend load splitter): Ditto.
16877
16878 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
16879
16880 * config/i386/i386.md (peehole2 patterns): Change true_regnum
16881 to REGNO in all peephole2 patterns.
16882 (post-reload splitters): Change true_regnum to REGNO in
16883 post-reload splitters.
16884 (zero_extend splitters): Use general_reg_operand and
16885 nonimmediate_gr_operand predicates.
16886
16887 2016-05-05 Jakub Jelinek <jakub@redhat.com>
16888
16889 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16890 v constraint instead of x.
16891
16892 2016-05-05 Alan Modra <amodra@gmail.com>
16893
16894 PR target/68662
16895 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16896 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
16897 TARGET_NO_FP_IN_TOC for -mrelocatable.
16898 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16899 TARGET_RELOCATABLE test.
16900 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16901 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16902 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16903 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16904 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16905 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16906 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16907 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16908 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16909 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16910 Likewise.
16911 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16912 (rs6000_stack_info): Likewise.
16913 (rs6000_elf_asm_out_constructor): Likewise.
16914 (rs6000_elf_asm_out_destructor): Likewise.
16915 (rs6000_elf_declare_function_name): Likewise.
16916 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16917 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16918 Don't define.
16919
16920 2016-05-05 Alan Modra <amodra@gmail.com>
16921
16922 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16923
16924 2016-05-05 Alan Modra <amodra@gmail.com>
16925
16926 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16927 out-of-line gpr restore for one or two regs if that would add
16928 a save of lr.
16929
16930 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
16931
16932 PR target/70873
16933 * config/i386/i386.md
16934 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16935 Change to post-epilogue_completed late splitter. Use sse_reg_operand
16936 as operand 0 predicate.
16937 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16938 Ditto.
16939 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16940 Ditto. Emit the pattern using RTX.
16941
16942 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16943 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
16944 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
16945 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16946 Ditto.
16947 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16948 sse_reg_operand as operand 0 predicate.
16949
16950 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16951 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
16952 instead of gen_rtx_REG.
16953 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16954 Ditto.
16955
16956 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16957
16958 * function.c (emit_use_return_register_into_block): Delete.
16959 (gen_return_pattern): Delete.
16960 (emit_return_into_block): Delete.
16961 (active_insn_between): Delete.
16962 (convert_jumps_to_returns): Delete.
16963 (emit_return_for_exit): Delete.
16964 (thread_prologue_and_epilogue_insns): Delete all code dealing with
16965 simple_return for shrink-wrapped blocks.
16966 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
16967 end of blocks that need one.
16968 (get_unconverted_simple_return): Delete.
16969 (convert_to_simple_return): Delete.
16970 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
16971 (convert_to_simple_return): Ditto.
16972
16973 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16974
16975 * cfgcleanup.c (bb_is_just_return): New function.
16976 (try_optimize_cfg): Simplify jumps to return, branches to return,
16977 and branches around return.
16978
16979 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16980
16981 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
16982 branch to a return.
16983
16984 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16985
16986 PR c++/70906
16987 PR c++/70933
16988 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
16989 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
16990 assert flags & OEP_HASH_CHECK, instead of asserting it
16991 never happens. Handle TARGET_EXPR.
16992 * fold-const.c (operand_equal_p): For hash verification,
16993 or in OEP_HASH_CHECK into flags.
16994
16995 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
16996
16997 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
16998 comment.
16999 (compute_samebase_partition_bases): Fix typo.
17000
17001 2016-05-04 Jakub Jelinek <jakub@redhat.com>
17002
17003 * config/i386/sse.md (vec_interleave_highv8sf,
17004 vec_interleave_lowv8sf, vec_interleave_highv4df,
17005 vec_interleave_lowv4df): Remove constraints from expanders.
17006
17007 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
17008
17009 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17010
17011 * tree-inline.c (expand_call_inline): Fix path dealing with
17012 making lhs of call statement undefined.
17013
17014 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
17015
17016 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
17017 Check availability on NODE, too.
17018 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
17019 (cgraph_node::call_for_symbol_and_aliases): Likewise.
17020 (varpool_node::call_for_symbol_and_aliase): Likewise.
17021 * ipa-pure-const.c (add_new_function): Analyze all bodies.
17022 (propagate_pure_const): Propagate across interposable functions, too.
17023 (skip_function_for_local_pure_const): Do not skip interposable bodies
17024 with aliases.
17025 (pass_local_pure_const::execute): Update.
17026
17027 2016-05-04 Marek Polacek <polacek@redhat.com>
17028
17029 * doc/invoke.texi: Document -Wdangling-else.
17030
17031 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17032
17033 * config.gcc: Error out when conflicting multilib is detected. Do not
17034 loop over multilibs since no combination is legal.
17035
17036 2016-05-04 Alan Modra <amodra@gmail.com>
17037
17038 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
17039 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
17040 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
17041 Align .toc.
17042
17043 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
17044
17045 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
17046 Clean up p5600 comments.
17047
17048 2016-05-04 Richard Biener <rguenther@suse.de>
17049
17050 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
17051 constructor simplifications.
17052 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
17053
17054 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
17055
17056 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
17057 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
17058 result.set_rtx is null instead of aborting.
17059 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
17060 Always enable.
17061 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
17062 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
17063 *mov<mode>_store_postinc): New patterns.
17064
17065 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
17066
17067 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
17068 as commutative. Check both conversions are NOP.
17069 ((A & B) OP (C & B)): Remove.
17070
17071 2016-05-04 Alan Modra <amodra@gmail.com>
17072
17073 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
17074
17075 2016-05-04 Alan Modra <amodra@gmail.com>
17076
17077 PR target/70866
17078 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
17079 when cr2,3,4 are all fixed regs.
17080
17081 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
17082
17083 PR rtl-optimization/57193
17084 * opts.c (default_options_table): Revert OPT_frename_registers change.
17085 * doc/invoke.texi (-frename-registers, -O2): Likewise.
17086
17087 2016-05-03 Martin Sebor <msebor@redhat.com>
17088
17089 PR c++/66561
17090 * builtins.c (fold_builtin_FILE): New function.
17091 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
17092 (fold_builtin_0): Call them.
17093 * gimplify.c (gimplify_call_expr): Remove the handling of
17094 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
17095
17096 PR c++/66561
17097 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
17098 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
17099 constants.
17100
17101 PR c++/66639
17102 * doc/extend.texi (Function Names as Strings): Update __func__,
17103 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
17104 constants.
17105
17106 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17107 Richard Biener <rguenther@suse.de>
17108
17109 PR tree-optimization/70916
17110 * tree-if-conv.c: Include cfganal.h.
17111 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
17112 and remove_fake_exit_edges around the optimization pass.
17113
17114 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
17115
17116 * cgraph.c (symbol_table::create_edge): Set inline_failed.
17117 (cgraph_edge::make_direct): Likewise.
17118 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
17119 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
17120 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
17121 (CIF_THUNK): New code.
17122 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
17123 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
17124 (compute_inline_parameters): Set inline_failed for thunks.
17125 (inline_analyze_function): Cleanup.
17126 * ipa-inline.c (can_inline_edge_p): Do not deal with
17127 call_stmt_cannot_inline_p.
17128 (can_early_inline_edge_p): Likewise.
17129 (early_inliner): Initialize inline_failed.
17130 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
17131
17132 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
17133
17134 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
17135 from nonimm_ssenomem_operand.
17136 (nonimm_ssenomem_operand): New predicate.
17137 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
17138 as operand 0 predicate.
17139 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
17140 Disable unsupported alternatives using "enabled" attribute.
17141 Use register_ssemem_operand as operand 0 predicate.
17142 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
17143
17144 2016-05-03 Marek Polacek <polacek@redhat.com>
17145
17146 PR c/70859
17147 * input.c (expansion_point_location): New function.
17148 * input.h (expansion_point_location): Declare.
17149
17150 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
17151
17152 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
17153 occurence with frame_offset_ ones.
17154
17155 2016-05-03 Alan Modra <amodra@gmail.com>
17156
17157 PR rtl-optimization/70890
17158 * ira.c (combine_and_move_insns): When moving def_insn, remove
17159 equivs on use_insn.
17160
17161 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
17162
17163 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
17164 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
17165 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
17166 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
17167
17168 2016-05-03 Alan Modra <amodra@gmail.com>
17169
17170 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
17171 for SAVE_MULTIPLE/STORE_MULTIPLE.
17172
17173 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17174
17175 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
17176 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
17177
17178 2016-05-03 Richard Biener <rguenther@suse.de>
17179
17180 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
17181 default true.
17182 (gimplify_arg): Likewise.
17183 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
17184 re-writing the result to a decl if required.
17185 (internal_get_tmp_var): Add allow_ssa parameter
17186 and override into_ssa with it.
17187 (get_formal_tmp_var): Adjust.
17188 (get_initialized_tmp_var): Add allow_ssa parameter.
17189 (gimplify_arg): Add allow_ssa parameter and avoid generating
17190 SSA names for the result false.
17191 (gimplify_call_expr): If the call may return twice do not
17192 gimplify parameters into SSA.
17193 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
17194 (gimplify_modify_expr): Adjust assert. For noreturn calls
17195 with a SSA name LHS adjust its def.
17196 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
17197 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
17198 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
17199 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
17200 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
17201 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
17202 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
17203 (optimize_target_teams): Do not allow SSA names for clause operands.
17204 (gimplify_expr): Likewise for where we mark the result addressable.
17205 * passes.def (pass_init_datastructures): Remove.
17206 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
17207 (rewrite_stmt): Likewise.
17208 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
17209 (replace_locals_op): Replace SSA names.
17210 (copy_gimple_seq_and_replace_locals): Init src_cfun.
17211 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
17212 * cgraph.c (release_function_body): Free CFG annotations only
17213 when we have a CFG. Simplify.
17214 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
17215 force_gimple_operand instead of get_initialized_tmp_var.
17216 * tree-pass.h (make_pass_init_datastructures): Remove.
17217 * tree-ssa.c (execute_init_datastructures): Remove.
17218 (pass_data_init_datastructures): Likewise.
17219 (class pass_init_datastructures): Likewise.
17220 (make_pass_init_datastructures): Likewise.
17221 * omp-low.c (create_omp_child_function): Init SSA data structures.
17222 (grid_expand_target_grid_body): Likewise.
17223 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
17224 name before adding it to names_to_release.
17225 (remove_bb): Always release SSA defs.
17226 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
17227 before dereferencing it.
17228 * cgraphunit.c (init_lowered_empty_function): Always
17229 int SSA data structures.
17230 * tree-ssanames.c (release_defs): Remove assert that we are in
17231 SSA form.
17232 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
17233
17234 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17235 Uros Bizjak <ubizjak@gmail.com>
17236
17237 PR rtl-optimization/70467
17238 * config/i386/predicates.md (x86_64_hilo_int_operand,
17239 x86_64_hilo_general_operand): New predicates.
17240 * config/i386/constraints.md (Wd): New constraint.
17241 * config/i386/i386.md (mode attr di): Use Wd instead of e.
17242 (general_hilo_operand): New mode attr.
17243 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
17244 instead of <general_operand>.
17245 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
17246 x86_64_hilo_general_operand instead of <general_operand>.
17247
17248 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17249
17250 PR tree-optimization/70916
17251 * tree-if-conv.c (constant_or_ssa_name): Removed.
17252 (fold_build_cond_expr): Use is_gimple_val instead of
17253 constant_or_ssa_name.
17254
17255 PR tree-optimization/70916
17256 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
17257 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
17258
17259 PR target/49244
17260 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
17261 (optimize_atomic_bit_test_and): New function.
17262 (pass_fold_builtins::execute): Use it.
17263 * optabs.def (atomic_bit_test_and_set_optab,
17264 atomic_bit_test_and_complement_optab,
17265 atomic_bit_test_and_reset_optab): New optabs.
17266 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
17267 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
17268 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
17269 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
17270 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
17271 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
17272 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
17273 * doc/md.texi (atomic_bit_test_and_set@var{mode},
17274 atomic_bit_test_and_complement@var{mode},
17275 atomic_bit_test_and_reset@var{mode}): Document.
17276 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
17277 atomic_bit_test_and_complement<mode>,
17278 atomic_bit_test_and_reset<mode>): New expanders.
17279 (atomic_bit_test_and_set<mode>_1,
17280 atomic_bit_test_and_complement<mode>_1,
17281 atomic_bit_test_and_reset<mode>_1): New insns.
17282
17283 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
17284
17285 PR rtl-optimization/70687
17286 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
17287 instead of unsigned HOST_WIDE_INT.
17288
17289 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
17290
17291 PR rtl-optimization/44281
17292 * hard-reg-set.h (struct target_hard_regs): New field
17293 x_fixed_nonglobal_reg_set.
17294 (fixed_nonglobal_reg_set): New macro.
17295 * reginfo.c (init_reg_sets_1): Initialize it.
17296 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
17297 of fixed_reg_set.
17298 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
17299
17300 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17301
17302 PR tree-optimization/56541
17303 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
17304 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
17305 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
17306 (any_complicated_phi): new static variable.
17307 (aggressive_if_conv): delete.
17308 (if_convertible_phi_p): support phis with more than two arguments.
17309 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
17310 critical pred edges.
17311 (ifcvt_split_critical_edges): support phis with more than two
17312 arguments by checking new parameter. only split critical edges
17313 if needed.
17314 (tree_if_conversion): handle simd pragma marked loop using new
17315 local variable aggressive_if_conv. check any_complicated_phi.
17316
17317 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17318
17319 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
17320 before using it.
17321
17322 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17323
17324 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
17325 cbase.
17326
17327 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17328
17329 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
17330 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
17331 define_insn_and_split.
17332 (mulsi3_i): New define_insn_and_split.
17333 (mulsi3_call): Convert to define_insn.
17334 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
17335 Remove constraints.
17336
17337 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17338
17339 * machmode.h (mode_complex): Add support to give the complex mode
17340 for a given mode.
17341 (GET_MODE_COMPLEX_MODE): Likewise.
17342 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
17343 stored by build_complex_type and gfc_build_complex_type instead of
17344 trying to figure out the appropriate mode based on the size. Raise
17345 an assertion error, if the type was not set.
17346 * genmodes.c (struct mode_data): Add field for the complex type of
17347 the given type.
17348 (blank_mode): Likewise.
17349 (make_complex_modes): Remember the complex mode created in the
17350 base type.
17351 (emit_mode_complex): Write out the mode_complex array to map a
17352 type mode to the complex version.
17353 (emit_insn_modes_c): Likewise.
17354 * tree.c (build_complex_type): Set the complex type to use before
17355 calling layout_type.
17356 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
17357 support for __float128 complex datatypes.
17358 (rs6000_hard_regno_mode_ok): Likewise.
17359 (rs6000_setup_reg_addr_masks): Likewise.
17360 (rs6000_complex_function_value): Likewise.
17361 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
17362 __float128 and __ibm128 complex.
17363 (FLOAT128_IBM_P): Likewise.
17364 (ALTIVEC_ARG_MAX_RETURN): Likewise.
17365 * doc/extend.texi (Additional Floating Types): Document that
17366 -mfloat128 must be used to enable __float128. Document complex
17367 __float128 and __ibm128 support.
17368
17369 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17370
17371 PR target/49244
17372 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
17373 char/short arguments promoted to int because of promote_prototypes.
17374
17375 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17376
17377 * config/i386/predicates.md (register_ssemem_operand): New predicate.
17378 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
17379 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
17380 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
17381 alternatives using "enabled" attribute. Use register_ssemem_operand
17382 as operand 1 predicate.
17383 (*cmpi<unord>xf_i387): Split XFmode pattern from
17384 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
17385 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
17386 *absneg<mode>2_i387. Disable unsupported alternatives using
17387 "enabled" attribute.
17388 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
17389
17390 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17391
17392 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
17393 marker.
17394 (oacc_loop_process): Check mask for loop termination.
17395
17396 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17397
17398 * cif-code.def (CIF_THUNK): Add.
17399 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
17400 accidental change.
17401
17402 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17403
17404 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
17405 (dump_inline_summary): Dump it.
17406 (fp_expression_p): New predicate.
17407 (estimate_function_body_sizes): Use it.
17408 (inline_merge_summary): Merge fp_expressions.
17409 (inline_read_section): Read fp_expressions.
17410 (inline_write_summary): Write fp_expressions.
17411 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
17412 codegen boundary if either caller or callee is !fp_expressions.
17413 * ipa-inline.h (inline_summary): Add fp_expressions.
17414 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
17415 to fp_expressions be sure the fp generation flags are updated.
17416
17417 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17418
17419 PR rtl-optimization/70467
17420 * cse.c (cse_insn): Handle no-op MEM moves after folding.
17421
17422 PR rtl-optimization/70467
17423 * ipa-pure-const.c (check_call): Handle internal calls even in
17424 ipa mode like in local mode.
17425
17426 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17427
17428 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
17429
17430 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17431
17432 * match.pd (X u< X, X u> X): New transformations.
17433
17434 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17435
17436 * flag-types.h (enum warn_strict_overflow_code): Move ...
17437 * coretypes.h: ... here.
17438 * fold-const.h (fold_overflow_warning): Declare.
17439 * fold-const.c (fold_overflow_warning): Make non-static.
17440 (fold_comparison): Move the transformation of X +- C1 CMP C2
17441 into X CMP C2 -+ C1 ...
17442 * match.pd: ... here.
17443 * gimple-fold.c (fold_stmt_1): Protect with
17444 fold_defer_overflow_warnings.
17445
17446 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17447
17448 * omp-low.c (struct oacc_loop): Add 'inner' field.
17449 (new_oacc_loop_raw): Initialize it to zero.
17450 (oacc_loop_fixed_partitions): Initialize it.
17451 (oacc_loop_auto_partitions): Partition outermost loop to outermost
17452 available partitioning.
17453
17454 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17455
17456 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
17457 register_operand.
17458 (umulsidi3): Likewise.
17459 (indirect_jump): Fix jump instruction assembly patterns.
17460
17461 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
17462
17463 PR target/70860
17464 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
17465 (nvptx_function_value): Assert non-NULL cfun.
17466
17467 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
17468
17469 PR rtl-optimization/70886
17470 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
17471
17472 * cselib.h (rtx_equal_for_cselib_1): Declare.
17473 (rtx_equal_for_cselib_p: New inline function.
17474 * cselib.c (rtx_equal_for_cselib_p): Delete.
17475 (rtx_equal_for_cselib_1): Make public.
17476
17477 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17478
17479 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
17480 (register_mixssei387nonimm_operand): Remove predicate.
17481 * config/i386/i386.md (*fop_<mode>_comm): Merge from
17482 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
17483 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
17484 for TARGET_MIX_SSE_I387 alternatives.
17485 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
17486 Disable unsupported alternatives using "enabled" attribute. Use
17487 nonimm_ssenomem_operand as operand 1 predicate. Also check
17488 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
17489
17490 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17491
17492 * tree.c (cst_and_fits_in_hwi): Simplify.
17493
17494 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17495
17496 * tree.h (wi::to_wide): New function.
17497 * expr.c (expand_expr_real_1): Use wi::to_wide.
17498 * fold-const.c (int_const_binop_1): Likewise.
17499 (extract_muldiv_1): Likewise.
17500
17501 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17502
17503 * wide-int.h: Update offset_int and widest_int documentation.
17504 (WI_SIGNED_SHIFT_RESULT): New macro.
17505 (wi::binary_shift): Define signed_shift_result_type for
17506 shifts on offset_int- and widest_int-like types.
17507 (generic_wide_int): Support <<= and >>= if << and >> are supported.
17508 * tree.h (int_bit_position): Use shift operators instead of wi::
17509 shifts.
17510 * alias.c (adjust_offset_for_component_ref): Likewise.
17511 * expr.c (get_inner_reference): Likewise.
17512 * fold-const.c (fold_comparison): Likewise.
17513 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
17514 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
17515 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17516 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17517 (stmt_kills_ref_p): Likewise.
17518 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
17519 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
17520 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17521 (ao_ref_init_from_vn_reference): Likewise.
17522
17523 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17524
17525 * wide-int.h: Update offset_int and widest_int documentation.
17526 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
17527 (wi::binary_traits): Allow ordered comparisons between offset_int and
17528 offset_int, between widest_int and widest_int, and between either
17529 of these types and basic C types.
17530 (operator <, <=, >, >=): Define for the same combinations.
17531 * tree.h (tree_int_cst_lt): Use comparison operators instead
17532 of wi:: comparisons.
17533 (tree_int_cst_le): Likewise.
17534 * gimple-fold.c (fold_array_ctor_reference): Likewise.
17535 (fold_nonarray_ctor_reference): Likewise.
17536 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
17537 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
17538 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
17539 * tree-sra.c (completely_scalarize): Likewise.
17540 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
17541 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
17542 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
17543 (check_for_binary_op_overflow): Likewise.
17544 (search_for_addr_array): Likewise.
17545 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
17546
17547 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17548
17549 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
17550 (arc_save_restore): Likewise.
17551 (arc_dwarf_register_span): Likewise.
17552 (arc_output_pic_addr_const): Initialize suffix variable.
17553
17554 2016-05-02 Martin Liska <mliska@suse.cz>
17555
17556 * symbol-summary.h (function_summary::function_summary):
17557 Remove checking assert for all cgraph nodes.
17558 (function_summary::get): Check summary_uid.
17559 (symtab_insertion): Check summary_uid.
17560
17561 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17562
17563 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
17564 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
17565 bmaskn instruction.
17566 (arc_dwarf_register_span): Remove enum keyword.
17567 (compact_memory_operand_p): New function.
17568 * config/arc/arc.h (reg_class): Add code density register classes.
17569 (REG_CLASS_NAMES): Likewise.
17570 (REG_CLASS_CONTENTS): Likewise.
17571 * config/arc/arc.md (*movqi_insn): Add code density instructions.
17572 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
17573 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
17574 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
17575 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
17576 constraints.
17577 (h, Rcd, Rsd, Rzd): New register constraints.
17578 (T): Use compact_memory_operand_p function.
17579 * config/arc/predicates.md (compact_load_memory_operand): Remove.
17580
17581 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17582
17583 * config/sh/sh.md (*negnegt, *movtt): Remove.
17584
17585 2016-05-02 Marek Polacek <polacek@redhat.com>
17586 Tom de Vries <tom@codesourcery.com>
17587
17588 PR tree-optimization/70700
17589 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
17590 bigger than FIRST_REF_NODE.
17591
17592 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17593
17594 PR target/52898
17595 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
17596 TARGET_CMPEQDI_T.
17597 (prepare_cbranch_operands): Don't use scratch register. Assume that
17598 function is used when pseudos can be created.
17599 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
17600 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
17601 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
17602 define_expand. Allow it only when pseudos can be created.
17603 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
17604
17605 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
17606
17607 * config/i386/constraints.md (BC): Only allow -1 operands.
17608 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
17609 Add "enabled" attribute. Update XI mode attribute calculation.
17610 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
17611 (*movoi_internal_avx): Update XI mode attribute calculation.
17612 (*movti_internal): Ditto.
17613
17614 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17615
17616 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
17617 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
17618
17619 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
17620
17621 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
17622 statement on instruction code. Remove trailing spaces.
17623 (altivec_expand_stv_builtin): Likewise.
17624
17625 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17626
17627 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
17628 (TARGET_FPU_DOUBLE): Simplify.
17629 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
17630 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
17631 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
17632 with 'TARGET_FPU_DOUBLE'.
17633 * config/sh/sh.md: Likewise.
17634
17635 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
17636
17637 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
17638 SH_DIV_STR_FOR_SIZE): Remove.
17639 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
17640 SH_DIV_STR_FOR_SIZE): Remove.
17641
17642 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17643
17644 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
17645 logical_reg_operand): Delete.
17646 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
17647 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
17648 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
17649 match_operand and match_test.
17650 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
17651 variables on their first use. Return bool values.
17652 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
17653 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
17654 arith_reg_operand for input operand. Remove empty constraints.
17655 (xorsi3): Delete.
17656 (*xorsi3_compact): Rename to xorsi3.
17657 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
17658 (*zero_extend<mode>si2_disp_mem): Update comment.
17659 (mov_nop): Delete.
17660
17661 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17662
17663 * config/sh/t-sh: Remove SH5 support.
17664 * config.gcc: Likewise.
17665 * configure: Likewise.
17666
17667 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17668
17669 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
17670
17671 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17672
17673 * config/sh/sh.c (register_sh_passes, sh_option_override,
17674 sh_print_operand, prepare_move_operands,
17675 sh_can_follow_jump): Remove TARGET_SH1 checks.
17676 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
17677 PROMOTE_MODE): Likewise.
17678 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
17679 movdi): Likewise.
17680
17681 2016-04-30 Alan Modra <amodra@gmail.com>
17682
17683 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
17684 restoring when fixed_reg_p, but allow out-of-line or stmw save.
17685 Check for user regs later to avoid unnecessary looping over regs.
17686 Merge user reg check with non-saved reg check. Don't force
17687 inline VR restore when static chain used.
17688 (rs6000_frame_related): Omit eh_frame info for user regs when
17689 saving.
17690 (fixed_regs_p): Delete.
17691
17692 2016-04-30 Alan Modra <amodra@gmail.com>
17693
17694 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
17695 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
17696 Update all uses.
17697
17698 2016-04-30 Alan Modra <amodra@gmail.com>
17699
17700 PR target/69645
17701 * config/rs6000/rs6000.c (fixed_reg_p): New function.
17702 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
17703 Update all uses.
17704
17705 2016-04-30 Alan Modra <amodra@gmail.com>
17706
17707 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17708 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
17709 flag_pic test for Darwin.
17710
17711 2016-04-30 Alan Modra <amodra@gmail.com>
17712
17713 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
17714 throw_calls_crossed.
17715 (REG_FREQ_CALLS_CROSSED): Delete.
17716 (REG_N_THROWING_CALLS_CROSSED): Delete.
17717 * regstat.c (regstat_bb_compute_ri): Don't calculate
17718 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
17719 (dump_reg_info): Don't print call cross frequency.
17720 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
17721 and REG_N_THROWING_CALLS_CROSSED.
17722
17723 2016-04-30 Alan Modra <amodra@gmail.com>
17724
17725 * regs.h (struct reg_info_t): Delete live_length.
17726 (REG_LIVE_LENGTH): Delete macro.
17727 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
17728 local_live, local_processed and local_live_last_luid params.
17729 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
17730 Formatting fixes.
17731 (regstat_compute_ri): Adjust for above. Don't set
17732 REG_LIVE_LENGTH.
17733 (dump_reg_info): Don't print live length.
17734 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
17735 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
17736 Localize loop_depth var.
17737
17738 2016-04-30 Alan Modra <amodra@gmail.com>
17739
17740 * ira.c (enum valid_equiv): New.
17741 (validate_equiv_mem): Return enum.
17742 (update_equiv_mem): Create replacement in more cases.
17743 (add_store_equivs): Update validate_equiv_mem call.
17744
17745 2016-04-30 Alan Modra <amodra@gmail.com>
17746
17747 * ira.c (combine_and_move_insns): Rather than scanning insns,
17748 use DF infrastucture to find use and def insns.
17749
17750 2016-04-30 Alan Modra <amodra@gmail.com>
17751
17752 ira.c (combine_and_move_insns): Move invariant conditions..
17753 (ira.c): ..to here. Call combine_and_move_insns before
17754 add_store_equivs. Call grow_reg_equivs later. Allocate
17755 req_equiv later using max_reg_num() rather than global max_regno.
17756 (contains_replace_regs): Delete.
17757 (add_store_equivs): Remove contains_replace_regs test.
17758
17759 2016-04-30 Alan Modra <amodra@gmail.com>
17760
17761 * ira.c (struct equiv_mem_data): New.
17762 (equiv_mem, equiv_mem_modified): Delete static vars.
17763 (validate_equiv_mem_from_store): Use "data" param to communicate..
17764 (validate_equiv_mem): ..from here.
17765
17766 2016-04-30 Alan Modra <amodra@gmail.com>
17767
17768 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17769 split out from..
17770 (update_reg_equivs): ..here. Move allocation and freeing of
17771 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17772 end_alias_analysis to..
17773 (ira): ..here.
17774
17775 2016-04-30 Alan Modra <amodra@gmail.com>
17776
17777 * ira.c (pdx_subregs): Delete.
17778 (struct equivalence): Add pdx_subregs field.
17779 (set_paradoxical_subreg): Remove pdx_subregs param. Update
17780 pdx_subregs access.
17781 (update_equiv_regs): Don't create or free pdx_subregs. Update
17782 pdx_subregs access.
17783
17784 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17785
17786 * config/rs6000/altivec.h: Change definitions of vec_xl and
17787 vec_xst.
17788 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17789 (LD_ELEMREV_V2DI): New.
17790 (LD_ELEMREV_V4SF): New.
17791 (LD_ELEMREV_V4SI): New.
17792 (LD_ELEMREV_V8HI): New.
17793 (LD_ELEMREV_V16QI): New.
17794 (ST_ELEMREV_V2DF): New.
17795 (ST_ELEMREV_V2DI): New.
17796 (ST_ELEMREV_V4SF): New.
17797 (ST_ELEMREV_V4SI): New.
17798 (ST_ELEMREV_V8HI): New.
17799 (ST_ELEMREV_V16QI): New.
17800 (XL): New.
17801 (XST): New.
17802 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17803 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17804 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17805 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17806 (altivec_expand_builtin): Add handling for
17807 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17808 (rs6000_invalid_builtin): Add error-checking for
17809 RS6000_BTM_P9_VECTOR.
17810 (altivec_init_builtins): Define builtins used to implement vec_xl
17811 and vec_xst.
17812 (rs6000_builtin_mask_names): Define power9-vector.
17813 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17814 (RS6000_BTM_P9_VECTOR): Define.
17815 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17816 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17817 (vsx_ld_elemrev_v2df): Likewise.
17818 (vsx_ld_elemrev_v4sf): Likewise.
17819 (vsx_ld_elemrev_v4si): Likewise.
17820 (vsx_ld_elemrev_v8hi): Likewise.
17821 (vsx_ld_elemrev_v16qi): Likewise.
17822 (vsx_st_elemrev_v2df): Likewise.
17823 (vsx_st_elemrev_v2di): Likewise.
17824 (vsx_st_elemrev_v4sf): Likewise.
17825 (vsx_st_elemrev_v4si): Likewise.
17826 (vsx_st_elemrev_v8hi): Likewise.
17827 (vsx_st_elemrev_v16qi): Likewise.
17828 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
17829 grammar.
17830
17831 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
17832
17833 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17834 out into ...
17835 (simplify_control_stmt_condition_1): ... here. Recurse into
17836 BIT_AND_EXPRs and BIT_IOR_EXPRs.
17837
17838 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
17839
17840 PR target/69810
17841 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17842 (zero_extendqi<mode>2_dot): Revert earlier conversion from
17843 define_insn_and_split to define_insn.
17844 (zero_extendqi<mode>2_dot2): Same.
17845 (extendqi<mode>2_dot): Same.
17846 (extendqi<mode>2_dot2): Same.
17847
17848 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17849
17850 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17851 (probe_stack): New expander.
17852 (probe_stack_<mode>): New insn pattern.
17853
17854 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17855
17856 * config/i386/i386.md
17857 (operations with memory inputs setting flags peephole2):
17858 Remove uneeded REG_P checks. Cleanup pattern generation.
17859
17860 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
17861
17862 * tree-vect-loop.c (vect_transform_loop): Fix
17863 nb_iterations_upper_bound computation for vectorized loop.
17864
17865 2016-04-29 Marek Polacek <polacek@redhat.com>
17866 Jakub Jelinek <jakub@redhat.com>
17867
17868 PR sanitizer/70342
17869 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17870 TARGET_EXPR_SLOT as a base.
17871
17872 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
17873
17874 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17875 with 'rCm2' constraints to limit possible immediate size.
17876 (*load_zeroextendqisi_update): Likewise.
17877 (*load_signextendqisi_update): Likewise.
17878 (*loadhi_update): Likewise.
17879 (*load_zeroextendhisi_update): Likewise.
17880 (*load_signextendhisi_update): Likewise.
17881 (*loadsi_update): Likewise.
17882 (*loadsf_update): Likewise.
17883
17884 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17885
17886 * config/i386/predicates.md (constm1_operand): Fix comparison.
17887
17888 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17889
17890 * testsuite/gcc.target/arc/ieee_eq.c: New test.
17891
17892 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
17893
17894 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17895 remaining SH5 related settings.
17896 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17897 shmedia_prepare_call_address): Delete.
17898 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17899 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17900 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17901 UNSUPPORTED_SH2A): Remove m5 checks.
17902 (sh_divide_strategy_e): Remove SH5 division strategies.
17903 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17904 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17905
17906 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17907
17908 * config/s390/s390.c (s390_rtx_costs): Update documentation.
17909
17910 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17911
17912 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17913 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17914 Change lder to ldr.
17915 * config/s390/vector.md ("mov<mode>"): Likewise.
17916
17917 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
17918
17919 * config/s390/constraints.md ("U", "W"): Invoke
17920 s390_mem_constraint with "ZR" and "ZT".
17921 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17922 addresses when using LRA. Accept also short displacements for S
17923 and T constraints. Do not check for long displacement target for
17924 S and T constraints.
17925 (s390_mem_constraint): Remove handling of U and W constraints.
17926 * config/s390/s390.md (various patterns): Remove the short
17927 displacement constraints (Q and R) if a long displacement
17928 constraint is present. Add longdisp as required CPU capability.
17929 * config/s390/vector.md: Likewise.
17930 * config/s390/vx-builtins.md: Likewise.
17931
17932 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17933
17934 PR target/60040
17935 * reload1.c (reload): Call finish_spills before
17936 restarting reload loop. Skip select_reload_regs
17937 if update_eliminables_and_spill returns true.
17938
17939 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17940
17941 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17942 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17943 (umulhisi3_imm): Update predicates and constraint letters.
17944 (umulhisi3_reg): Declare instruction as commutative.
17945 * config/arc/constraints.md (J12, J16): New constraints.
17946 * config/arc/predicates.md (short_unsigned_const_operand): New
17947 predicate.
17948 (arc_short_operand): Likewise.
17949 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17950
17951 2016-04-29 Richard Biener <rguenther@suse.de>
17952
17953 PR tree-optimization/13962
17954 PR tree-optimization/65686
17955 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17956 * tree-ssa-alias.c (ptrs_compare_unequal): New function
17957 using PTA to compare pointers.
17958 * match.pd: Add pattern for pointer equality compare simplification
17959 using ptrs_compare_unequal.
17960
17961 2016-04-29 Richard Biener <rguenther@suse.de>
17962
17963 * stor-layout.c (layout_type): Do not build a pointer-to-element
17964 type for arrays.
17965
17966 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17967
17968 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
17969 Use SWI mode iterator. Use general_reg_operand predicate.
17970 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
17971 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
17972 predicates.
17973
17974 2016-04-29 Jakub Jelinek <jakub@redhat.com>
17975
17976 PR middle-end/70843
17977 * fold-const.c (operand_equal_p): Don't verify hash value equality
17978 if arg0 == arg1.
17979 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
17980 and OMP_CLAUSE.
17981
17982 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17983
17984 PR target/70858
17985 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
17986 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
17987 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
17988 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
17989 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
17990
17991 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17992
17993 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
17994 to info. Don't initialize separate fields to 0. Clean up
17995 formatting a bit.
17996
17997 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17998
17999 * config/i386/i386.md (peephole2s for operations with memory inputs):
18000 Use SWI mode iterator.
18001 (peephole2s for operations with memory outputs): Ditto.
18002 Do not check for stack checking probe.
18003
18004 (probe_stack): Remove expander.
18005
18006 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18007 Andrew Burgess <andrew.burgess@embecosm.com>
18008
18009 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
18010 operands as 32-bits.
18011
18012 2016-04-28 Jason Merrill <jason@redhat.com>
18013
18014 * gdbinit.in: Skip line-map.h.
18015
18016 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18017 Andrew Burgess <andrew.burgess@embecosm.com>
18018
18019 * config/arc/arc.c (arc_conditional_register_usage): Take
18020 TARGET_RRQ_CLASS into account.
18021 (arc_print_operand): Support printing 'p' and 's' operands.
18022 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
18023 as 0.
18024 (TARGET_RRQ_CLASS): Define.
18025 (IS_POWEROF2_OR_0_P): Define.
18026 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
18027 alternatives.
18028 (*tst_movb): New define_insn.
18029 (*tst): Avoid recognition if it could prevent '*tst_movb'
18030 combination; replace c/CnL with c/Chs alternative.
18031 (*tst_bitfield_tst): New define_insn.
18032 (*tst_bitfield_asr): New define_insn.
18033 (*tst_bitfield): New define_insn.
18034 (andsi3_i): Add Rrq variant.
18035 (extzv): New define_expand.
18036 (insv): New define_expand.
18037 (*insv_i): New define_insn.
18038 (*movb): New define_insn.
18039 (*movb_signed): New define_insn.
18040 (*movb_high): New define_insn.
18041 (*movb_high_signed): New define_insn.
18042 (*movb_high_signed + 1): New define_split pattern.
18043 (*mrgb): New define_insn.
18044 (*mrgb + 1): New define_peephole2 pattern.
18045 (*mrgb + 2): New define_peephole2 pattern.
18046 * config/arc/arc.opt (mbitops): New option for nps400, uses
18047 TARGET_NPS_BITOPS_DEFAULT.
18048 * config/arc/constraints.md (q): Make register class conditional.
18049 (Rrq): New register constraint.
18050 (Chs): New constraint.
18051 (Clo): New constraint.
18052 (Chi): New constraint.
18053 (Cbf): New constraint.
18054 (Cbn): New constraint.
18055 (C18): New constraint.
18056 (Cbi): New constraint.
18057
18058 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18059
18060 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
18061 dst->popcount.
18062 (bitmap_intersection_of_preds): Ditto.
18063 (bitmap_union_of_succs): Ditto.
18064 (bitmap_union_of_preds): Ditto.
18065 * sbitmap.c (do_popcount): Delete.
18066 (BITMAP_DEBUGGING): Delete.
18067 (sbitmap_verify_popcount): Delete.
18068 (sbitmap_alloc): Don't initialize the popcount field.
18069 (sbitmap_alloc_with_popcount): Delete.
18070 (sbitmap_resize): Don't resize the popcount array.
18071 (sbitmap_vector_alloc): Don't initialize the popcount field.
18072 (bitmap_copy): Don't copy the popcount array.
18073 (bitmap_clear): Don't clear the popcount array.
18074 (bitmap_clear): Delete the popcount array handling.
18075 (bitmap_ior_and_compl): Delete the popcount assert.
18076 (bitmap_not): Ditto.
18077 (bitmap_and_compl): Ditto.
18078 (bitmap_and): Delete the popcount array handling.
18079 (bitmap_xor): Ditto.
18080 (bitmap_ior): Ditto.
18081 (bitmap_or_and): Delete the popcount assert.
18082 (bitmap_and_or): Ditto.
18083 (popcount_table): Delete.
18084 (sbitmap_elt_popcount): Delete.
18085 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
18086 (bitmap_set_bit): Delete the popcount assert.
18087 (bitmap_clear_bit): Ditto.
18088 (sbitmap_free): Don't free the popcount array.
18089 (sbitmap_alloc_with_popcount): Delete declaration.
18090 (sbitmap_popcount): Ditto.
18091
18092 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18093 Andrew Burgess <andrew.burgess@embecosm.com>
18094
18095 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
18096 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
18097 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
18098 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
18099 * config/arc/arc.opt (mcmem): New option.
18100 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
18101 supply length for r/m alternative.
18102 (*extendqisi2_ac): Likewise.
18103 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
18104 r/Uex alternative.
18105 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
18106 (movhi_insn): Likewise.
18107 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
18108 (*zero_extendqihi2_i): Add r/Ucm alternative.
18109 (*zero_extendqisi2_ac): Likewise.
18110 (*zero_extendhisi2_i): Likewise.
18111 * config/arc/constraints.md (Uex): New memory constraint.
18112 (Ucm): New define_constraint.
18113 * config/arc/predicates.md (long_immediate_loadstore_operand):
18114 Return 0 for MEM with cmem_address address.
18115 (cmem_address_0): New predicates.
18116 (cmem_address_1): Likewise.
18117 (cmem_address_2): Likewise.
18118 (cmem_address): Likewise.
18119
18120 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18121
18122 * config/rs6000/rs6000.c (machine_function): Rename
18123 insn_chain_scanned_p to spe_insn_chain_scanned_p.
18124 (rs6000_stack_info): Adjust.
18125
18126 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18127 Andrew Burgess <andrew.burgess@embecosm.com>
18128
18129 * config/arc/constraints.md (Usd): Convert to define_constraint.
18130 (Us<): Likewise.
18131 (Us>): Likewise.
18132
18133 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18134
18135 PR target/70821
18136 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
18137 Add new peephole2 where the first insn is *mov<mode>_or instead of
18138 *mov<mode>_internal.
18139
18140 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
18141
18142 * tracer.c (bb_seen): Make static.
18143
18144 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
18145
18146 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
18147 support, setup defaults.
18148 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
18149 * config/arc/arc.c (arc_init): Add NPS400 support.
18150 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
18151 (TARGET_ARC700): NPS400 is also an ARC700.
18152 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
18153
18154 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18155
18156 PR target/70668
18157 * config/nds32/nds32.md (casesi): Don't access the operands array
18158 out of bounds.
18159
18160 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18161
18162 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
18163 (or $-1,reg peephole2): Ditto.
18164 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
18165
18166 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18167
18168 * doc/extend.texi (Common Function Attributes) [optimize]:
18169 Discourage use of the optimize attribute.
18170
18171 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
18172
18173 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
18174 special case builtin.
18175 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18176 ALTIVEC_BUILTIN_VEC_ADDE.
18177 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18178 support for ALTIVEC_BUILTIN_VEC_ADDE.
18179 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18180 for __builtin_vec_adde.
18181
18182 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18183
18184 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
18185 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
18186
18187 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18188
18189 PR testsuite/70595
18190 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18191 attributes): Document cilkplus_runtime.
18192
18193 2016-04-28 Martin Jambor <mjambor@suse.cz>
18194
18195 * tree-cfg.c (verify_expr): Verify that local declarations belong to
18196 this function. Call verify_expr on MEM_REFs and bases of other
18197 handled_components.
18198
18199 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18200
18201 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
18202 for WORD_REGISTER_OPERATIONS to runtime check.
18203
18204 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18205
18206 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
18207
18208 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18209
18210 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
18211 big-endian compilation.
18212 * config/arc/arc.md (addf3): Likewise.
18213 (subdf3): Likewise.
18214 (muldf3): Likewise.
18215
18216 2016-04-28 Richard Biener <rguenther@suse.de>
18217
18218 PR tree-optimization/70840
18219 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
18220 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
18221 Mark x * pow(x,c) -> pow(x,c+1) commutative.
18222 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
18223
18224 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18225
18226 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
18227 and explain why in a comment.
18228
18229 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18230
18231 * config/arc/arc.md (cpu_facility): Add fpx variant.
18232 (subdf3): Prohibit use reverse sub when assist operations option
18233 is enabled.
18234 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
18235 instructions only when FPX is enabled.
18236 * testsuite/gcc.target/arc/trsub.c: New test.
18237
18238 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18239
18240 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
18241 mult_operator when calculating "type" attribute.
18242 (*fop_<mode>_1_i387): Ditto.
18243 (*fop_xf_1_i387): Ditto.
18244 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
18245 Use std::swap to swap operands. Use RTL expressions to generate
18246 converted pattern.
18247
18248 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18249 Joern Rennecke <joern.rennecke@embecosm.com>
18250
18251 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
18252 declaration.
18253 (emit_pic_move): Remove.
18254 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
18255 * config/arc/arc.c (emit_pic_move): Removed.
18256 (TARGET_HAVE_TLS): Define.
18257 (arc_conditional_register_usage): Test for arc_tp_regno.
18258 (arc_print_operand, arc_print_operand_address): Handle TLS
18259 unspecs.
18260 (arc_needs_pcl_p): New function.
18261 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
18262 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
18263 (arc_raw_symbolic_reference_mentioned_p): Likewise.
18264 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
18265 (arc_legitimize_tls_address): Likewise.
18266 (DTPOFF_ZERO_SYM): Define.
18267 (arc_legitimize_pic_address): Make it static, handle TLS cases.
18268 (arc_output_pic_addr_const): Print TLS unspecs.
18269 (prepare_pic_move): New function, replaces emit_pic_move.
18270 (arc_legitimate_constant_p): Handle TLS unspecs.
18271 (arc_legitimate_address_p): Likewise.
18272 (arc_rewrite_small_data_p): Use assert for TLS constants.
18273 (prepare_move_operands): Use prepare_pic_move.
18274 (arc_legitimize_address): Legitimize tls addresses.
18275 (arc_epilogue_uses): Check for arc_tp_regno.
18276 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
18277 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
18278 Define.
18279 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
18280 Likewise.
18281 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
18282 %(arc_tls_extra_start_spec).
18283 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
18284 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
18285 (EH_USES): Define.
18286 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
18287 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
18288 (UNSPEC_TLS_OFF): Add.
18289 (R10_REG): Define.
18290 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
18291 (get_thread_pointersi): New patterns.
18292 * config/arc/arc.opt (mtp-regno): New option.
18293 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
18294 (move_dest_operand): Likewise.
18295 * configure: Regenerate.
18296 * configure.ac: Add arc*-*-* case to test for tls.
18297 * doc/invoke.texi (ARC options): Document mtp-regno.
18298
18299 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18300
18301 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
18302 the new ARC HS SIMD instructions.
18303 (arc_preferred_simd_mode): New function.
18304 (arc_autovectorize_vector_sizes): Likewise.
18305 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
18306 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18307 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
18308 (arc_init_builtins): Add new SIMD builtin types.
18309 (arc_split_move): Handle 64 bit vector moves.
18310 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
18311 (TARGET_PLUS_QMACW): Define.
18312 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
18313 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
18314 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
18315 (VSUBADD4H): New builtins.
18316 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
18317 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
18318
18319 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
18320 Matthias Klose <doko@debian.org>
18321
18322 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
18323
18324 2016-04-28 Richard Biener <rguenther@suse.de>
18325
18326 PR middle-end/70777
18327 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
18328 canonicalization.
18329
18330 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
18331
18332 * common/config/sh/sh-common.c: Remove SH5 support.
18333 * config/sh/constraints.md: Likewise.
18334 * config/sh/config/sh/elf.h: Likewise.
18335 * config/sh/linux.h: Likewise.
18336 * config/sh/netbsd-elf.h: Likewise.
18337 * config/sh/predicates.md: Likewise.
18338 * config/sh/sh-c.c: Likewise.
18339 * config/sh/sh-protos.h: Likewise.
18340 * config/sh/sh.c: Likewise.
18341 * config/sh/sh.h: Likewise.
18342 * config/sh/sh.md: Likewise.
18343 * config/sh/sh.opt: Likewise.
18344 * config/sh/sync.md: Likewise.
18345 * config/sh/sh64.h: Delete.
18346 * config/sh/shmedia.h: Likewise.
18347 * config/sh/shmedia.md: Likewise.
18348 * config/sh/sshmedia.h: Likewise.
18349 * config/sh/t-netbsd-sh5-64: Likewise.
18350 * config/sh/t-sh64: Likewise.
18351 * config/sh/ushmedia.h: Likewise.
18352
18353 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18354
18355 * config/i386/i386.md (sign_extend to memory peephole2s): Use
18356 general_reg_operand instead of register_operand predicate.
18357
18358 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18359
18360 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
18361
18362 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
18363
18364 * match.pd (A - B > A, A + B < A): New transformations.
18365
18366 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
18367
18368 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
18369 which defaults to true. Emit an outer pair of parentheses only if
18370 EMIT_PARENS. When continuing a chain of && or || (or & or |),
18371 don't emit parentheses for the right-hand operand.
18372
18373 2016-04-27 Jeff Law <law@redhat.com>
18374
18375 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
18376
18377 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18378
18379 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
18380 (altivec_lvx_<mode>_internal): Document.
18381 (altivec_lvx_<mode>_2op): New define_insn.
18382 (altivec_lvx_<mode>_1op): Likewise.
18383 (altivec_lvx_<mode>_2op_si): Likewise.
18384 (altivec_lvx_<mode>_1op_si): Likewise.
18385 (altivec_stvx_<mode>): Remove.
18386 (altivec_stvx_<mode>_internal): Document.
18387 (altivec_stvx_<mode>_2op): New define_insn.
18388 (altivec_stvx_<mode>_1op): Likewise.
18389 (altivec_stvx_<mode>_2op_si): Likewise.
18390 (altivec_stvx_<mode>_1op_si): Likewise.
18391 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18392 Expand vec_ld and vec_st during parsing.
18393 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
18394 changes.
18395 (altivec_expand_stvx_be): Likewise.
18396 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
18397 address-masking behavior in RTL.
18398 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
18399 address-masking behavior in RTL.
18400 (altivec_expand_builtin): Change builtin code arguments for calls
18401 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
18402 (insn_is_swappable_p): Avoid incorrect swap optimization in the
18403 presence of lvx/stvx patterns.
18404 (alignment_with_canonical_addr): New function.
18405 (alignment_mask): Likewise.
18406 (find_alignment_op): Likewise.
18407 (recombine_lvx_pattern): Likewise.
18408 (recombine_stvx_pattern): Likewise.
18409 (recombine_lvx_stvx_patterns): Likewise.
18410 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
18411 stvx patterns from expand.
18412 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
18413 expansions.
18414 (vector_altivec_store_<mode>): Likewise.
18415
18416 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
18417
18418 * config/aarch64/aarch64.md
18419 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
18420 remove the "fp" attributes.
18421 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
18422 add the "simd" attributes.
18423 (*movdf_aarch64): Likewise.
18424 (*movtf_aarch64): Remove the "fp" attributes.
18425 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
18426 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
18427
18428 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18429
18430 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
18431 rtx to rtx_code_label *.
18432 * rtl.h (maybe_set_first_label_num): Likewise.
18433
18434 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18435
18436 * df-core.c (df_add_problem): Make the problem param be const.
18437 (df_remove_problem): Make local "problem" be const.
18438 * df-problems.c (problem_RD): Make const.
18439 (problem_LR): Likewise.
18440 (problem_LIVE): Likewise.
18441 (problem_MIR): Likewise.
18442 (problem_CHAIN): Likewise.
18443 (problem_WORD_LR): Likewise.
18444 (problem_NOTE): Likewise.
18445 (problem_MD): Likewise.
18446 * df-scan.c (problem_SCAN): Likewise.
18447 * df.h (struct df_problem): Make field "dependent_problem" be
18448 const.
18449 (struct dataflow): Likewise for field "problem".
18450 (df_add_problem): Make param const.
18451
18452 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18453
18454 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
18455 inter-unit moves to/from vector registers are enabled. Do not disable
18456 for TARGET_MMX.
18457
18458 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18459
18460 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
18461 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
18462 #define to...
18463 (enum df_problem_id): ...this new enum.
18464 (struct df_problem): Convert field "id" from "int" to
18465 enum df_problem_id.
18466
18467 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18468
18469 * rtl.def: Update comment for "things in the instruction chain" to
18470 reflect the removal of the leading "i" field for INSN_UID in
18471 r210360. Fix bogus apostrophe.
18472
18473 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18474
18475 * config/i386/i386.md
18476 (lea arith with mem operand + setcc peephole2): Set operator mode.
18477
18478 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
18479
18480 PR target/70155
18481 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
18482 (dimode_scalar_to_vector_candidate_p): This.
18483 (timode_scalar_to_vector_candidate_p): New function.
18484 (scalar_to_vector_candidate_p): Likewise.
18485 (timode_check_non_convertible_regs): Likewise.
18486 (timode_remove_non_convertible_regs): Likewise.
18487 (remove_non_convertible_regs): Likewise.
18488 (remove_non_convertible_regs): Renamed to ...
18489 (dimode_remove_non_convertible_regs): This.
18490 (scalar_chain::~scalar_chain): Make it virtual.
18491 (scalar_chain::compute_convert_gain): Make it pure virtual.
18492 (scalar_chain::mark_dual_mode_def): Likewise.
18493 (scalar_chain::convert_insn): Likewise.
18494 (scalar_chain::convert_registers): Likewise.
18495 (scalar_chain::add_to_queue): Make it protected.
18496 (scalar_chain::emit_conversion_insns): Likewise.
18497 (scalar_chain::replace_with_subreg): Likewise.
18498 (scalar_chain::replace_with_subreg_in_insn): Likewise.
18499 (scalar_chain::convert_op): Likewise.
18500 (scalar_chain::convert_reg): Likewise.
18501 (scalar_chain::make_vector_copies): Likewise.
18502 (scalar_chain::convert_registers): New pure virtual function.
18503 (class dimode_scalar_chain): New class.
18504 (class timode_scalar_chain): Likewise.
18505 (scalar_chain::mark_dual_mode_def): Renamed to ...
18506 (dimode_scalar_chain::mark_dual_mode_def): This.
18507 (timode_scalar_chain::mark_dual_mode_def): New function.
18508 (timode_scalar_chain::convert_insn): Likewise.
18509 (dimode_scalar_chain::convert_registers): Likewise.
18510 (scalar_chain::compute_convert_gain): Renamed to ...
18511 (dimode_scalar_chain::compute_convert_gain): This.
18512 (scalar_chain::replace_with_subreg): Renamed to ...
18513 (dimode_scalar_chain::replace_with_subreg): This.
18514 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
18515 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
18516 (scalar_chain::make_vector_copies): Renamed to ...
18517 (dimode_scalar_chain::make_vector_copies): This.
18518 (scalar_chain::convert_reg): Renamed to ...
18519 (dimode_scalar_chain::convert_reg ): This.
18520 (scalar_chain::convert_op): Renamed to ...
18521 (dimode_scalar_chain::convert_op): This.
18522 (scalar_chain::convert_insn): Renamed to ...
18523 (dimode_scalar_chain::convert_insn): This.
18524 (scalar_chain::convert): Call convert_registers.
18525 (convert_scalars_to_vector): Change to scalar_chain pointer to
18526 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
18527 in 32-bit mode. Delete scalar_chain pointer. Call
18528 free_dominance_info in 64-bit mode.
18529 (pass_stv::gate): Remove TARGET_64BIT check.
18530 (ix86_option_override): Put the 64-bit STV pass before the CSE
18531 pass.
18532
18533 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
18534
18535 * dwarf2out.h (struct dw_loc_descr_node): Remove the
18536 dw_loc_frame_offset field.
18537 * dwarf2out.c (new_loc_descr): Likewise.
18538 (resolve_args_picking_1): Turn the VISITED hash set into a
18539 FRAME_OFFSET hash map. Use it to associate a frame offset to
18540 visited nodes. Remove uses of the CHECKING_P macro.
18541 (resolve_args_picking): Update call to resolve_args_picking_1.
18542
18543 2016-04-27 Martin Liska <mliska@suse.cz>
18544
18545 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
18546 (free_loop_data): Release vuses of groups.
18547
18548 2016-04-27 Bin Cheng <bin.cheng@arm.com>
18549
18550 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
18551 instead of redundant use_id and boolean have_use_for.
18552 (struct iv_use): Change sub_id into group_id. Remove field next.
18553 Move fields: related_cands, n_map_members, cost_map and selected
18554 to ...
18555 (struct iv_group): ... here. New structure.
18556 (struct iv_common_cand): Use structure declaration directly.
18557 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
18558 (MAX_CONSIDERED_USES): Rename macro to ...
18559 (MAX_CONSIDERED_GROUPS): ... here.
18560 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
18561 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
18562 (dump_uses): Rename to ...
18563 (dump_groups): ... here. Update all uses.
18564 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
18565 (find_induction_variables): Refactor format of dump information.
18566 (record_sub_use): Delete.
18567 (record_use): Update all uses.
18568 (record_group): New function.
18569 (record_group_use, find_interesting_uses_op): Call above functions.
18570 Update all uses.
18571 (find_interesting_uses_cond): Ditto.
18572 (group_compare_offset): New function.
18573 (split_all_small_groups): Rename to ...
18574 (split_small_address_groups_p): ... here. Update all uses.
18575 (split_address_groups): Update all uses.
18576 (find_interesting_uses): Refactor format of dump information.
18577 (add_candidate_1): Update all uses. Remove redundant check on iv,
18578 base and step.
18579 (add_candidate, record_common_cand): Remove redundant assert.
18580 (add_iv_candidate_for_biv): Update use.
18581 (add_iv_candidate_derived_from_uses): Update all uses.
18582 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
18583 (alloc_use_cost_map): Ditto.
18584 (set_use_iv_cost, get_use_iv_cost): Rename to ...
18585 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
18586 (determine_use_iv_cost_generic): Ditto.
18587 (determine_group_iv_cost_generic): Ditto.
18588 (determine_use_iv_cost_address): Ditto.
18589 (determine_group_iv_cost_address): Ditto.
18590 (determine_use_iv_cost_condition): Ditto.
18591 (determine_group_iv_cost_cond): Ditto.
18592 (determine_use_iv_cost): Ditto.
18593 (determine_group_iv_cost): Ditto.
18594 (set_autoinc_for_original_candidates): Update all uses.
18595 (find_iv_candidates): Update all uses. Refactor dump information.
18596 (determine_use_iv_costs): Ditto.
18597 (determine_iv_costs): Ditto.
18598 (iv_ca_cand_for_use): Rename to ...
18599 (iv_ca_cand_for_group): ... here. Update all uses.
18600 (iv_ca_add_use, iv_ca_add_group): Ditto.
18601 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
18602 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
18603 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
18604 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
18605 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
18606 (create_new_iv, adjust_iv_update_pos): Ditto.
18607 (rewrite_use_address): Delete.
18608 (rewrite_use_address_1): Rename to ...
18609 (rewrite_use_address): ... here.
18610 (rewrite_use_compare): Update all uses.
18611 (rewrite_use): Delete.
18612 (rewrite_uses): Rename to ...
18613 (rewrite_groups): ... here. Update all uses.
18614 (remove_unused_ivs, free_loop_data): Update all uses.
18615 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
18616
18617 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18618
18619 * rtlanal.c (nonzero_bits1): Convert preprocessor check
18620 for WORD_REGISTER_OPERATIONS to runtime check.
18621
18622 2016-04-27 Richard Biener <rguenther@suse.de>
18623
18624 PR ipa/70760
18625 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
18626 aggregate_value_p to determine if a function result is
18627 returned by reference.
18628 (ipa_pta_execute): Functions having their address taken are
18629 not automatically nonlocal.
18630
18631 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18632
18633 PR sanitizer/70683
18634 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
18635 * fold-const.c (operand_equal_p): If flag_checking and
18636 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
18637 and if it returns non-zero, assert iterative_hash_expr on both
18638 args is the same.
18639
18640 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18641
18642 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
18643
18644 2016-04-27 Nick Clifton <nickc@redhat.com>
18645
18646 PR middle-end/49889
18647 * varasm.c (merge_weak): Generate an error if an attempt is made
18648 to convert a non-weak static function into a weak, public function.
18649
18650 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18651
18652 * params.def (MAX_PARTITION_SIZE): New param.
18653 * doc/invoke.texi: Document lto-max-partition.
18654
18655 2016-04-27 Richard Biener <rguenther@suse.de>
18656
18657 PR ipa/70785
18658 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
18659 function cummulating used_from_other_partition, externally_visible
18660 and force_output from aliases.
18661 (refered_from_nonlocal_var): Likewise.
18662 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
18663 node flags properly.
18664
18665 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18666
18667 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
18668 (-Wmemset-elt-size): New item.
18669
18670 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
18671
18672 PR ada/70759
18673 * stor-layout.h (internal_reference_types): Delete.
18674 * stor-layout.c (reference_types_internal): Likewise.
18675 (internal_reference_types): Likewise.
18676 (layout_type) <REFERENCE_TYPE>: Adjust.
18677
18678 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18679
18680 PR sanitizer/70683
18681 * tree.h (inchash::add_expr): Add FLAGS argument.
18682 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
18683 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
18684 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
18685 Formatting fix. Adjust recursive calls. For tcc_comparison,
18686 if swap_tree_comparison (code) is smaller than code, hash that
18687 and arguments in the other order. Hash CONVERT_EXPR the same
18688 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
18689 of ADDR_EXPR of decl as the decl itself. Add or remove
18690 OEP_ADDRESS_OF from recursive flags as needed. For
18691 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
18692 operands commutatively and only the third one normally.
18693 For internal CALL_EXPR hash in CALL_EXPR_IFN.
18694
18695 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
18696
18697 * config/rtems.h (LIB_SPEC): Add -latomic.
18698
18699 2016-04-27 Joel Sherrill <joel@rtems.org>
18700
18701 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
18702 xilink.ld and flags not relevant to RTEMS.
18703
18704 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18705
18706 * toplev.c (backend_init_target): Avoid calling init_reload when using
18707 LRA.
18708
18709 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18710
18711 * reorg.c (try_merge_delay_insns): Declare i and j inside the
18712 for loops rather than one for the whole function.
18713
18714 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18715
18716 * match.pd (X + CST CMP X): New transformation.
18717
18718 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18719
18720 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
18721 * fold-const.c (fold_binary_loc): Remove 2 transformations
18722 superseded by match.pd.
18723 * match.pd (x+x -> x*2): Generalize to integers.
18724
18725 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
18726
18727 * config/i386/i386.md (operation on memory peephole): Duplicate an
18728 existing peephole and adapt it to match lea rather than an operation
18729 that clobbers CC.
18730
18731 PR rtl-optimization/57193
18732 * opts.c (default_options_table): Add OPT_frename_registers at -O2
18733 and above.
18734 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
18735
18736 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18737
18738 * tree-if-conv.c (any_pred_load_store): New static variable.
18739 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
18740 any_pred_load_store instead of and_mask_load_store.
18741 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18742 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18743 (combine_blocks, tree_if_conversion): Ditto.
18744
18745 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18746
18747 PR tree-optimization/70771
18748 PR tree-optimization/70775
18749 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18750 virtual PHI nodes. Delete parameter.
18751 (if_convertible_loop_p_1): Delete argument to above function.
18752 (predicate_all_scalar_phis): Delete code handling single-argument
18753 PHIs.
18754 (tree_if_conversion): Mark and update virtual SSA.
18755
18756 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18757
18758 PR target/61821
18759 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18760 (x86_elf_aligned_common): Rename to ...
18761 (x86_elf_aligned_decl_common): ... this.
18762 Add decl arg. Switch to .lbss for largecomm object. Use
18763 LARGECOMM_SECTION_ASM_OP.
18764 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18765 renaming.
18766 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18767 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18768 Pass new decl arg.
18769 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18770 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18771
18772 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18773
18774 PR target/59407
18775 * config/i386/i386.c (SECTION_LARGE): Define.
18776 (x86_64_elf_select_section): Set it for large data/bss sections.
18777 Only clear SECTION_WRITE for .lrodata.
18778 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18779 data/bss sections.
18780 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18781 * varasm.c (default_elf_asm_named_section): Grow flagchars.
18782 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18783 SECTION_MACH_DEP.
18784 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18785 * doc/tm.texi: Regenerate.
18786
18787 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18788
18789 PR bootstrap/70704
18790 * configure.ac (--enable-checking): Document extra flag, for
18791 non-release builds default to --enable-checking=yes,extra.
18792 If misc checking and extra checking, define CHECKING_P to 2 instead
18793 of 1.
18794 * common.opt (fchecking=): Add.
18795 * doc/invoke.texi (-fchecking=): Document.
18796 * doc/install.texi: Document --enable-checking changes.
18797 * configure: Regenerated.
18798 * config.in: Regenerated.
18799
18800 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18801
18802 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18803 attribute instead of which_alternative.
18804 * config/i386/sse.md (*mov<mode>_internal): Ditto.
18805 Use EXT_REX_SSE_REG_P where appropriate.
18806
18807 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18808
18809 * config/i386/predicates.md (const0_operand): Do not match
18810 const_wide_int code.
18811 (const1_operand): Ditto.
18812
18813 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18814
18815 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18816 for SSE constm1 operands and TARGET_AVX512VL.
18817 (*movti_internal): Ditto.
18818 (*mov<mode>_or): Use constm1_operand predicate.
18819 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18820 for SSE vector_all_ones operands and TARGET_AVX512VL.
18821 * config/i386/predicates.md (constm1_operand): New predicate.
18822 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18823 emission of constant -1 load.
18824
18825 2016-04-25 Jason Merrill <jason@redhat.com>
18826
18827 * gdbinit.in: Skip is-a.h.
18828
18829 * attribs.c (register_scoped_attributes): Fix logic.
18830 * attribs.h: Declare register_scoped_attributes.
18831
18832 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18833
18834 * config/rs6000/rs6000-builtin.def: Correct pasto error for
18835 stxvd2x and stxvw4x built-in functions.
18836
18837 2016-04-25 DJ Delorie <dj@redhat.com>
18838
18839 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18840 (ashrhi3): Likewise.
18841 (lshrhi3): Likewise.
18842
18843 2016-04-25 Richard Biener <rguenther@suse.de>
18844
18845 PR tree-optimization/70780
18846 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18847 wasn't visited yet.
18848 (compute_antic): Mark blocks with abnormal preds as visited as
18849 they have a final empty antic-in solution already.
18850
18851 2016-04-25 Michael Collison <michael.collison@linaro.org>
18852
18853 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18854
18855 2016-04-25 Michael Collison <michael.collison@linaro.org>
18856
18857 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18858 mode is VQI to improve mixed mode vectorization.
18859 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18860 define_insn to match low half of signed vaddw.
18861 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18862 define_insn to match high half of signed vaddw.
18863 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18864 define_insn to match low half of unsigned vaddw.
18865 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18866 define_insn to match high half of unsigned vaddw.
18867 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18868 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18869 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18870 for new function.
18871 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18872 * config/arm/predicates.md (vect_par_constant_high): Support
18873 big endian and simplify by calling
18874 arm_simd_check_vect_par_cnst_half
18875 (vect_par_constant_low): Likewise.
18876
18877 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18878
18879 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18880 predicate for operand 2.
18881
18882 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
18883 H.J. Lu <hongjiu.lu@intel.com>
18884
18885 * config/i386/i386-protos.h (standard_sse_constant_p): Add
18886 machine_mode argument.
18887 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18888 constm1_rtx operands. For VOIDmode constants, get mode from
18889 pred_mode. Check mode size if the mode is supported by ABI.
18890 (standard_sse_constant_opcode): Do not use standard_constant_p.
18891 Strictly check ABI support for all-ones operands.
18892 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18893 immediates. Update calls to standard_sse_constant_p.
18894 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18895 (ix86_rtx_costs): Ditto.
18896 * config/i386/i386.md (*movxi_internal_avx512f): Use
18897 nonimmediate_or_sse_const_operand instead of vector_move_operand.
18898 Use (v,BC) alternative instead of (v,C). Use register_operand
18899 checks instead of MEM_P.
18900 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18901 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
18902 isa attribute. Use register_operand checks instead of MEM_P.
18903 (*movti_internal): Use nonimmediate_or_sse_const_operand for
18904 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
18905 alternative and corresponding sse2 isa attribute.
18906 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18907 to standard_sse_constant_p.
18908 (FP constant splitters): Ditto.
18909 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18910 (C): Ditto.
18911 * config/i386/predicates.md (constm1_operand): Remove.
18912 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18913 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18914 vector_all_ones_operand instead of constm1_operand.
18915
18916 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18917
18918 * print-rtl.c (print_rtx_insn_vec): New function.
18919 * print-rtl.h: New prototype.
18920 * store-motion.c (struct st_expr): Make avail_stores a vector.
18921 (st_expr_entry): Adjust.
18922 (free_st_expr_entry): Likewise.
18923 (print_store_motion_mems): Likewise.
18924 (find_moveable_store): Likewise.
18925 (compute_store_table): Likewise.
18926 (delete_store): Likewise.
18927 (build_store_vectors): Likewise.
18928
18929 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18930
18931 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18932
18933 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18934
18935 * vec.h (vec_safe_contains): New function.
18936 (vec::contains): Likewise.
18937 (vec::begin): Likewise.
18938 (vec::end): Likewise.
18939
18940 2016-04-23 Jakub Jelinek <jakub@redhat.com>
18941
18942 PR sanitizer/70712
18943 * cfgexpand.c (expand_stack_vars): Fix typo.
18944
18945 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18946
18947 * system.h (list, map, set, vector): Include conditionally.
18948 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18949 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18950 * ipa-icf.c (INCLUDE_LIST): Define.
18951 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18952 * config/sh/sh.c (INCLUDE_VECTOR): Define.
18953 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18954 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18955 * cp/logic.cc (INCLUDE_LIST): Define.
18956 * fortran/trans-common.c (INCLUDE_MAP): Define.
18957
18958 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18959
18960 * auto-profile.c: Remove <string.h> include.
18961 * ipa-icf-gimple.c: Remove <list> include.
18962 * diagnostic.c: Remove <new> include.
18963 * genmatch.c: Likewise.
18964 * pretty-print.c: Likewise.
18965 * toplev.c: Likewise
18966 * c/c-objc-common.c: Likewise.
18967 * cp/error.c: Likewise.
18968 * fortran/error.c: Likewise.
18969
18970 2016-04-22 Richard Biener <rguenther@suse.de>
18971
18972 * lto-streamer-in.c (input_ssa_names): Do not allocate
18973 GIMPLE_NOP for all SSA names.
18974 * lto-streamer-out.c (output_ssa_names): Do not output
18975 SSA names that should have been released.
18976
18977 2016-04-22 Richard Biener <rguenther@suse.de>
18978
18979 PR tree-optimization/70740
18980 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
18981 VDEF.
18982
18983 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
18984
18985 PR target/70750
18986 * config/i386/predicates.md (call_insn_operand): Replace
18987 sibcall_memory_operand with memory_operand.
18988
18989 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
18990
18991 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
18992 has_single_use() tests.
18993 (register_edge_assert_for_1): Likewise.
18994 (find_assert_locations_1): Check the liveness bitmap instead of
18995 checking has_single_use().
18996
18997 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
18998
18999 PR target/70728
19000 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
19001 Extract AVX-512BW constraint from AVX.
19002
19003 2016-04-21 Richard Biener <rguenther@suse.de>
19004
19005 PR tree-optimization/70725
19006 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
19007 for phi_convertible_by_degenerating_args.
19008 (predicate_all_scalar_phis): Handle single-argument PHIs.
19009
19010 2016-04-21 Richard Biener <rguenther@suse.de>
19011
19012 PR middle-end/70747
19013 * fold-const.c (fold_comparison): Return properly typed
19014 constant boolean.
19015
19016 2016-04-21 Bin Cheng <bin.cheng@arm.com>
19017
19018 PR tree-optimization/70715
19019 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
19020 after expanding BASE using expand_simple_operations.
19021
19022 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19023
19024 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
19025 New transformations.
19026
19027 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19028
19029 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
19030
19031 2016-04-20 Jan Hubicka <jh@suse.cz>
19032
19033 * ipa-inline.c (can_inline_edge_p): Pass caller info to
19034 ultiimate_alias_target.
19035 (update_callee_keys): Likewise.
19036 (lookup_recursive_calls): Likewise.
19037 (speculation_useful_p): Likewise.
19038
19039 2016-04-20 Jan Hubicka <jh@suse.cz>
19040
19041 PR ipa/70018
19042 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
19043 (set_nothrow_flag_1): ... this; handle interposition correctly;
19044 recurse on aliases and thunks.
19045 (cgraph_node::set_nothrow_flag): New.
19046 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
19047 functions compiled with non-call exceptions that binds to current
19048 def.
19049 (propagate_nothrow): Be safe WRT interposition.
19050 * cgraph.h (set_nothrow_flag): Update prototype.
19051
19052 2016-04-18 Jan Hubicka <jh@suse.cz>
19053
19054 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19055 max_loop_iterations_int.
19056 (tree_unswitch_outer_loop): Likewise.
19057
19058 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19059
19060 PR tree-optimization/69489
19061 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
19062 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
19063 Revise dump message.
19064 (if_convertible_bb_p): Remove check on edge count of basic block's
19065 predecessors.
19066
19067 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19068
19069 PR tree-optimization/56625
19070 PR tree-optimization/69489
19071 * tree-data-ref.h (DR_INNERMOST): New macro.
19072 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
19073 hashing struct innermost_loop_behavior.
19074 (ref_DR_map): Remove.
19075 (innermost_DR_map): New map.
19076 (baseref_DR_map): Revise comment.
19077 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
19078 to innermost_DR_map accroding to its innermost loop behavior.
19079 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
19080 to its innermost loop behavior.
19081 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
19082 Add initialization for innermost_DR_map. Record memory reference
19083 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
19084 have innermost loop behavior.
19085 (if_convertible_loop_p): Remove release for ref_DR_map. Release
19086 innermost_DR_map.
19087
19088 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
19089
19090 * config/i386/i386.md (*lea<mode>_general_1): Rename from
19091 *lea_general_1. Use explicit SWI12 mode interator.
19092 (*lea<mode>_general_2): Rename from *lea_general_2.
19093 Use explicit SWI12 mode interator.
19094 (*lea<mode>_general_3): Rename from *lea_general_3.
19095 Use explicit SWI12 mode interator.
19096 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
19097 Use explicit SWI12 mode interator.
19098 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
19099 Use explicit SWI48 mode interator.
19100
19101 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19102
19103 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19104 Short-cut unaligned load and store cases. Handle all integer
19105 vector modes.
19106 (ix86_expand_vector_move_misalign): Short-cut unaligned load
19107 and store cases. Call ix86_avx256_split_vector_move_misalign
19108 directly without checking mode class.
19109
19110 2016-04-20 Andrew Pinski <apinski@cavium.com>
19111 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19112
19113 PR target/64971
19114 * config/aarch64/aarch64.md (sibcall): Force call
19115 address to be DImode for ILP32.
19116 (sibcall_value): Likewise.
19117
19118 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19119
19120 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
19121
19122 2016-04-20 Richard Biener <rguenther@suse.de>
19123
19124 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
19125 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
19126 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
19127 (maybe_push_res_to_seq): Adjust.
19128 * gimple-fold.c (maybe_build_generic_op): Likewise.
19129
19130 2016-04-20 Marek Polacek <polacek@redhat.com>
19131
19132 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
19133 rather than true.
19134
19135 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
19136
19137 * config/i386/sse.md (vec_unpacks_lo_hi): Always
19138 use kmovw to support AVX512F target.
19139
19140 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19141
19142 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
19143
19144 2016-04-20 Marek Polacek <polacek@redhat.com>
19145
19146 PR tree-optimization/70725
19147 * tree-if-conv.c (is_false_predicate): New function.
19148 (predicate_mem_writes): Use it.
19149
19150 2016-04-20 Richard Biener <rguenther@suse.de>
19151
19152 PR tree-optimization/70726
19153 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
19154 shift amounts from a pattern stmt operand.
19155
19156 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19157
19158 PR target/70674
19159 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
19160 stack_restore_from_fpr pattern when restoring r15.
19161 (s390_optimize_prologue): Strip away the memory barrier in the
19162 parallel when trying to get rid of restore insns.
19163 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
19164 definition for loading the stack pointer from an FPR. Compared to
19165 the normal move insn this pattern includes a full memory barrier.
19166
19167 2016-04-19 Jakub Jelinek <jakub@redhat.com>
19168
19169 PR middle-end/70680
19170 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
19171 implicitly linear or lastprivate iterator on the outer context.
19172
19173 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19174
19175 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
19176 alignment check.
19177 * config/i386/i386.md (ssememalign): Removed.
19178 * config/i386/sse.md: Remove ssememalign attribute from patterns.
19179
19180 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19181
19182 PR target/69201
19183 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
19184 const short * to __builtin_ia32_loaddquhi512_mask.
19185 (_mm512_maskz_loadu_epi16): Likewise.
19186 (_mm512_mask_storeu_epi16): Pass short * to
19187 __builtin_ia32_storedquhi512_mask.
19188 (_mm512_mask_loadu_epi8): Pass const char * to
19189 __builtin_ia32_loaddquqi512_mask.
19190 (_mm512_maskz_loadu_epi8): Likewise.
19191 (_mm512_mask_storeu_epi8): Pass char * to
19192 __builtin_ia32_storedquqi512_mask.
19193 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
19194 const double * to __builtin_ia32_loadupd512_mask.
19195 (_mm512_mask_loadu_pd): Likewise.
19196 (_mm512_maskz_loadu_pd): Likewise.
19197 (_mm512_storeu_pd): Pass double * to
19198 __builtin_ia32_storeupd512_mask.
19199 (_mm512_mask_storeu_pd): Likewise.
19200 (_mm512_loadu_ps): Pass const float * to
19201 __builtin_ia32_loadups512_mask.
19202 (_mm512_mask_loadu_ps): Likewise.
19203 (_mm512_maskz_loadu_ps): Likewise.
19204 (_mm512_storeu_ps): Pass float * to
19205 __builtin_ia32_storeups512_mask.
19206 (_mm512_mask_storeu_ps): Likewise.
19207 (_mm512_mask_loadu_epi64): Pass const long long * to
19208 __builtin_ia32_loaddqudi512_mask.
19209 (_mm512_maskz_loadu_epi64): Likewise.
19210 (_mm512_mask_storeu_epi64): Pass long long *
19211 to __builtin_ia32_storedqudi512_mask.
19212 (_mm512_loadu_si512): Pass const int * to
19213 __builtin_ia32_loaddqusi512_mask.
19214 (_mm512_mask_loadu_epi32): Likewise.
19215 (_mm512_maskz_loadu_epi32): Likewise.
19216 (_mm512_storeu_si512): Pass int * to
19217 __builtin_ia32_storedqusi512_mask.
19218 (_mm512_mask_storeu_epi32): Likewise.
19219 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
19220 char * to __builtin_ia32_storedquqi256_mask.
19221 (_mm_mask_storeu_epi8): Likewise.
19222 (_mm256_mask_loadu_epi16): Pass const short * to
19223 __builtin_ia32_loaddquhi256_mask.
19224 (_mm256_maskz_loadu_epi16): Likewise.
19225 (_mm_mask_loadu_epi16): Pass const short * to
19226 __builtin_ia32_loaddquhi128_mask.
19227 (_mm_maskz_loadu_epi16): Likewise.
19228 (_mm256_mask_loadu_epi8): Pass const char * to
19229 __builtin_ia32_loaddquqi256_mask.
19230 (_mm256_maskz_loadu_epi8): Likewise.
19231 (_mm_mask_loadu_epi8): Pass const char * to
19232 __builtin_ia32_loaddquqi128_mask.
19233 (_mm_maskz_loadu_epi8): Likewise.
19234 (_mm256_mask_storeu_epi16): Pass short * to.
19235 __builtin_ia32_storedquhi256_mask.
19236 (_mm_mask_storeu_epi16): Pass short * to.
19237 __builtin_ia32_storedquhi128_mask.
19238 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
19239 const double * to __builtin_ia32_loadupd256_mask.
19240 (_mm256_maskz_loadu_pd): Likewise.
19241 (_mm_mask_loadu_pd): Pass onst double * to
19242 __builtin_ia32_loadupd128_mask.
19243 (_mm_maskz_loadu_pd): Likewise.
19244 (_mm256_mask_storeu_pd): Pass double * to
19245 __builtin_ia32_storeupd256_mask.
19246 (_mm_mask_storeu_pd): Pass double * to
19247 __builtin_ia32_storeupd128_mask.
19248 (_mm256_mask_loadu_ps): Pass const float * to
19249 __builtin_ia32_loadups256_mask.
19250 (_mm256_maskz_loadu_ps): Likewise.
19251 (_mm_mask_loadu_ps): Pass const float * to
19252 __builtin_ia32_loadups128_mask.
19253 (_mm_maskz_loadu_ps): Likewise.
19254 (_mm256_mask_storeu_ps): Pass float * to
19255 __builtin_ia32_storeups256_mask.
19256 (_mm_mask_storeu_ps): ass float * to
19257 __builtin_ia32_storeups128_mask.
19258 (_mm256_mask_loadu_epi64): Pass const long long * to
19259 __builtin_ia32_loaddqudi256_mask.
19260 (_mm256_maskz_loadu_epi64): Likewise.
19261 (_mm_mask_loadu_epi64): Pass const long long * to
19262 __builtin_ia32_loaddqudi128_mask.
19263 (_mm_maskz_loadu_epi64): Likewise.
19264 (_mm256_mask_storeu_epi64): Pass long long * to
19265 __builtin_ia32_storedqudi256_mask.
19266 (_mm_mask_storeu_epi64): Pass long long * to
19267 __builtin_ia32_storedqudi128_mask.
19268 (_mm256_mask_loadu_epi32): Pass const int * to
19269 __builtin_ia32_loaddqusi256_mask.
19270 (_mm256_maskz_loadu_epi32): Likewise.
19271 (_mm_mask_loadu_epi32): Pass const int * to
19272 __builtin_ia32_loaddqusi128_mask.
19273 (_mm_maskz_loadu_epi32): Likewise.
19274 (_mm256_mask_storeu_epi32): Pass int * to
19275 __builtin_ia32_storedqusi256_mask.
19276 (_mm_mask_storeu_epi32): Pass int * to
19277 __builtin_ia32_storedqusi128_mask.
19278 * config/i386/i386-builtin-types.def (PCSHORT): New.
19279 (PINT64): Likewise.
19280 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
19281 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
19282 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
19283 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
19284 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
19285 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
19286 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
19287 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
19288 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
19289 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
19290 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
19291 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
19292 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
19293 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
19294 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
19295 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
19296 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
19297 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
19298 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
19299 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
19300 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
19301 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
19302 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
19303 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
19304 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
19305 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
19306 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
19307 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
19308 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
19309 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
19310 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
19311 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
19312 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
19313 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
19314 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
19315 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
19316 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
19317 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
19318 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
19319 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
19320 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
19321 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
19322 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
19323 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
19324 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
19325 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
19326 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
19327 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
19328 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
19329 use UNSPEC_STOREU.
19330 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
19331 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
19332 load nor store.
19333 (ix86_expand_vector_move_misalign): Likewise.
19334 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
19335 to scalar function prototype for unaligned load/store builtins.
19336 (ix86_expand_special_args_builtin): Updated.
19337 * config/i386/sse.md (UNSPEC_LOADU): Removed.
19338 (UNSPEC_STOREU): Likewise.
19339 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
19340 (VI_ULOADSTORE_F_AVX512VL): Likewise.
19341 (ssescalarsize): Handle V4TI, V2TI and V1TI.
19342 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19343 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19344 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
19345 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
19346 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
19347 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
19348 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
19349 (<avx512>_storedqu<mode>_mask): Likewise.
19350 (*sse4_2_pcmpestr_unaligned): Likewise.
19351 (*sse4_2_pcmpistr_unaligned): Likewise.
19352 (*mov<mode>_internal): Renamed to ...
19353 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
19354 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
19355 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
19356 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
19357
19358 2016-04-19 Richard Biener <rguenther@suse.de>
19359
19360 PR tree-optimization/70171
19361 * tree-ssa-phiprop.c: Include stor-layout.h.
19362 (phiprop_insert_phi): Handle the aggregate copy case.
19363 (propagate_with_phi): Likewise.
19364
19365 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
19366
19367 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
19368 instead of simplify_gen_subreg (... , 0).
19369 (ix86_delegitimize_address): Ditto.
19370 (ix86_split_divmod): Ditto.
19371 (ix86_split_copysign_const): Ditto.
19372 (ix86_split_copysign_var): Ditto.
19373 (ix86_expand_args_builtin): Ditto.
19374 (ix86_expand_round_builtin): Ditto.
19375 (ix86_expand_special_args_builtin): Ditto.
19376 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
19377 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
19378 (udivmodqi4): Ditto.
19379 (absneg splitters): Ditto.
19380 (*jcc_bt<mode>_1): Ditto.
19381
19382 2016-04-19 Richard Biener <rguenther@suse.de>
19383
19384 PR tree-optimization/70724
19385 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
19386 restoring out from ...
19387 (free_scc_vn): ... here.
19388 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
19389 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
19390 tail merging.
19391 (pass_fre::execute): Restore SSA info.
19392
19393 2016-04-19 Richard Biener <rguenther@suse.de>
19394
19395 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
19396 * gimple-walk.c (walk_gimple_op): Initialize it.
19397 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
19398 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
19399 remapping SSA names of defs.
19400 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
19401 adjustment.
19402
19403 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
19404
19405 PR middle-end/70689
19406 * lra-constraints.c (equiv_substition_p): New.
19407 (process_alt_operands): Use it.
19408 (swap_operands): Swap it.
19409 (curr_insn_transform): Update it.
19410
19411 2016-04-18 Michael Matz <matz@suse.de>
19412
19413 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
19414 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
19415 * tree-core.h (tree_type_common.align): Use bit-field.
19416 (tree_type_common.spare): New.
19417 (tree_decl_common.off_align): Make smaller.
19418 (tree_decl_common.align): Use bit-field.
19419
19420 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
19421 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
19422 (scan_sharing_clauses): Ditto.
19423 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19424 (omp_finish_file): Ditto.
19425 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
19426 (layout_decl): Ditto.
19427 (relayout_decl): Ditto.
19428 (finalize_record_size): Use SET_TYPE_ALIGN.
19429 (finalize_type_size): Ditto.
19430 (finish_builtin_struct): Ditto.
19431 (layout_type): Ditto.
19432 (initialize_sizetypes): Ditto.
19433 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
19434 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
19435 (lookup_field_for_decl): Use SET_DECL_ALIGN.
19436 (get_chain_field): Ditto.
19437 (get_trampoline_type): Ditto.
19438 (get_nl_goto_field): Ditto.
19439 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
19440 SET_DECL_ALIGN.
19441 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
19442 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
19443 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19444 (build_qualified_type): Use SET_TYPE_ALIGN.
19445 (build_aligned_type, build_range_type_1): Ditto.
19446 (build_atomic_base): Ditto.
19447 (build_common_tree_nodes): Ditto.
19448 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
19449 (expand_one_stack_var_at): Ditto.
19450 * coverage.c (build_var): Use SET_DECL_ALIGN.
19451 * except.c (init_eh): Ditto.
19452 * function.c (assign_parm_setup_block): Ditto.
19453 * symtab.c (increase_alignment_1): Ditto.
19454 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
19455 * tree-vect-stmts.c (ensure_base_align): Ditto.
19456 * varasm.c (align_variable): Ditto.
19457 (assemble_variable): Ditto.
19458 (build_constant_desc): Ditto.
19459 (output_constant_def_contents): Ditto.
19460
19461 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
19462 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
19463 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
19464 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
19465 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
19466
19467 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
19468
19469 PR target/70708
19470 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
19471 replace %vmovsd with "%vmovq".
19472 (vec_concatv2df): Likewise.
19473
19474 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
19475
19476 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
19477 (*vec_extractv2si_0): Ditto.
19478 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
19479 (zero_extended_scalar_load_operand splitters): Ditto.
19480 (vec_extract splitters): Ditto.
19481 (*vec_extractv4si_0_zext): Ditto.
19482 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
19483 and lowpart_subreg.
19484 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
19485 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
19486 (*sse4_1_extractps): Use lowpart_subreg.
19487 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
19488
19489 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19490
19491 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
19492 gld requirements.
19493 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
19494 Mention Solaris 11 packaging changes.
19495 Update gas and gld requirements.
19496 Remove reference to pre-Solaris 10 bug.
19497 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
19498 systems and bugs.
19499 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
19500 with cc.
19501
19502 2016-04-17 Jan Hubicka <jh@suse.cz>
19503
19504 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
19505 max_loop_iterations_int.
19506
19507 2016-04-18 Richard Biener <rguenther@suse.de>
19508
19509 PR tree-optimization/43434
19510 * tree-ssa-structalias.c (struct vls_data): New.
19511 (visit_loadstore): Handle all pointer-based accesses.
19512 (compute_dependence_clique): Compute a bitmap of restrict tags
19513 assigned bases and pass it to visit_loadstore.
19514
19515 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
19516
19517 PR target/70711
19518 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
19519 armv8.1-a and armv8.1-a+crc.
19520
19521 2016-04-18 Richard Biener <rguenther@suse.de>
19522
19523 PR tree-optimization/70701
19524 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
19525 references after translating through a memcpy.
19526
19527 2016-04-18 Richard Biener <rguenther@suse.de>
19528
19529 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
19530 (compute_antic): ... here. For partial antic use regular
19531 postorder and scrap iteration.
19532 (compute_partial_antic_aux): Remove unused return value.
19533 (init_pre): Do not allocate postorder.
19534 (fini_pre): Do not free postorder.
19535
19536 2016-04-18 Richard Biener <rguenther@suse.de>
19537
19538 PR middle-end/37870
19539 * expmed.c (extract_bit_field_1): Remove broken case
19540 using a wider MODE_INT mode.
19541
19542 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
19543
19544 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
19545 unless compiling with at least GCC-4.8.
19546
19547 2016-04-17 Jan Hubicka <jh@suse.cz>
19548
19549 PR bootstrap/70706
19550 * graphite.c (graphite_finalize): Update call to
19551 tree_estimate_probability.
19552 * predict.h (tree_estimate_probability): Update prototype.
19553
19554 2016-04-17 Jan Hubicka <jh@suse.cz>
19555
19556 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
19557 (tree_estimate_probability): Likewise.
19558 (pass_profile::execute): Update.
19559 (report_predictor_hitrates): New function.
19560 * profile.c (compute_branch_probabilities): Use it.
19561 * predict.h (report_predictor_hitrates): Declare.
19562
19563 2016-04-17 Jan Hubicka <jh@suse.cz>
19564
19565 PR ipa/70018
19566 * cgraph.h (cgraph_node::set_const_flag,
19567 cgraph_node::set_pure_flag): Update prototype to return bool;
19568 update comment.
19569 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
19570 of interposable symbol are interposable, too.
19571 (cgraph_set_const_flag_1): Rename to ...
19572 (set_const_flag_1): ... this one; change to self recursive function
19573 instead of call_for_symbol_thunks_and_aliases. Handle correctly
19574 clearnig the flag in all variants and also virtual thunks of const
19575 functions are pure; track if any change was done.
19576 (cgraph_node::set_const_flag): Update.
19577 (struct set_pure_flag_info): New struct.
19578 (cgraph_set_pure_flag_1): Rename to ...
19579 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
19580 rather than pointer encoded flags; track if any changes was done;
19581 handle correctly clearning flag and setting flag of aliases already
19582 declared const.
19583 (cgraph_node::set_pure_flag): Update.
19584 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
19585
19586 2016-04-17 Tom de Vries <tom@codesourcery.com>
19587
19588 PR other/70433
19589 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
19590 backslash in label.
19591
19592 2016-04-17 Tom de Vries <tom@codesourcery.com>
19593
19594 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
19595 '{}<> ' as escape-for-record.
19596
19597 2016-04-17 Tom de Vries <tom@codesourcery.com>
19598
19599 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
19600 structure.
19601
19602 2016-04-17 Tom de Vries <tom@codesourcery.com>
19603
19604 PR other/70185
19605 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
19606 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
19607 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
19608 * passes.c (finish_optimization_passes): Only call
19609 finish_graph_dump_file if dfi->graph_dump_initialized.
19610 (execute_function_dump, pass_init_dump_file): Use
19611 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
19612
19613 2016-04-17 Tom de Vries <tom@codesourcery.com>
19614
19615 PR tree-optimization/70256
19616 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
19617 (debug_varmap): New function.
19618
19619 2016-04-17 Tom de Vries <tom@codesourcery.com>
19620
19621 PR other/70183
19622 * passes.c (pass_manager::register_pass): Propagate pflags.
19623
19624 2016-04-17 Tom de Vries <tom@codesourcery.com>
19625
19626 PR other/68875
19627 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
19628 * passes.c (pass_manager::pass_manager): Declare and init p_start in
19629 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
19630 check if it's equal to p_start.
19631 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
19632
19633 2016-04-15 Jan Hubicka <jh@suse.cz>
19634
19635 PR ipa/70018
19636 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
19637 function does not bind to current def.
19638 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
19639 handle conservatively calls to functions that does not need to bind
19640 to current def.
19641 (check_call): Update call of worse_state.
19642 (ignore_edge_for_nothrow): Update.
19643 (ignore_edge_for_pure_const): Likewise.
19644 (propagate_pure_const): Update calls to worse_state.
19645 (skip_function_for_local_pure_const): Reformat comments.
19646
19647 2016-04-15 Jan Hubicka <jh@suse.cz>
19648
19649 PR ipa/70018
19650 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
19651 (cgraph_node::function_symbol): Likewise.
19652 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19653 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
19654 (symtab_node::ultimate_alias_target): Add REF parameter.
19655 (symtab_node::binds_to_current_def_p): Declare.
19656 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
19657 (cgraph_node::function_symbol): Likewise.
19658 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19659 (cgraph_node::get_availability): Likewise.
19660 (cgraph_edge::binds_to_current_def_p): New inline function.
19661 (varpool_node::get_availability): Add REF parameter.
19662 (varpool_node::ultimate_alias_target): Likewise.
19663 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
19664 (symtab_node::binds_to_current_def_p): Likewise.
19665 * varpool.c (varpool_node::get_availability): Likewise.
19666
19667 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19668
19669 PR target/70662
19670 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
19671 Fix mode size check.
19672
19673 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19674
19675 * BASE-VER: Set to 7.0.0.
19676
19677 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
19678
19679 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
19680
19681 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19682
19683 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
19684 architecture revisions.
19685
19686 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
19687
19688 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
19689 * config/i386/i386.c (ix86_using_red_zone): No longer static.
19690 * config/i386/i386.md (stack decrement to push peepholes): Guard
19691 with !x86_using_red_zone ().
19692
19693 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19694
19695 PR c++/70675
19696 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
19697 to dump_generic_node.
19698 (NIY): Pass also flags to do_niy.
19699
19700 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
19701
19702 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
19703 (simd_clone_vector_of_formal_parm_types)
19704 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
19705 (simd_clone_mangle, simd_clone_create)
19706 (simd_clone_adjust_return_type, create_tmp_simd_array)
19707 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
19708 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
19709 (ipa_simd_modify_function_body, simd_clone_linear_addend)
19710 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
19711 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
19712 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
19713 * omp-simd-clone.c: ... this new file.
19714 (simd_clone_vector_of_formal_parm_types): Make it static.
19715 * Makefile.in (OBJS): Add omp-simd-clone.o.
19716
19717 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19718
19719 PR target/70662
19720 * config/i386/sse.md: Use proper memory operand modifiers.
19721
19722
19723 2016-04-15 Richard Biener <rguenther@suse.de>
19724 Alan Modra <amodra@gmail.com>
19725
19726 PR tree-optimization/70130
19727 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
19728 when alignment stays not the same and no not use the realign
19729 scheme then.
19730
19731 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19732
19733 PR target/70669
19734 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19735 direct move handlers for KFmode. Change TFmode handlers test from
19736 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
19737
19738 2016-04-14 Jakub Jelinek <jakub@redhat.com>
19739
19740 PR c++/70594
19741 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19742 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19743 (inlined_polymorphic_ctor_dtor_block_p): Use it.
19744 * tree-ssa-live.c (remove_unused_scope_block_p): When
19745 in_ctor_dtor_block, avoid discarding not just BLOCKs with
19746 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19747 block_ultimate_origin is FUNCTION_DECL.
19748 (remove_unused_locals): If current_function_decl is
19749 polymorphic_ctor_dtor_p, pass initial true to
19750 remove_unused_scope_block_p' is_ctor_dtor_block.
19751
19752 2016-04-14 Martin Sebor <msebor@redhat.com>
19753
19754 PR c++/69517
19755 PR c++/70019
19756 PR c++/70588
19757 * doc/extend.texi (Variable Length): Revert.
19758
19759 2016-04-14 Marek Polacek <polacek@redhat.com>
19760 Jan Hubicka <hubicka@ucw.cz>
19761
19762 PR c++/70029
19763 * tree.c (verify_type): Disable the canonical type of main variant
19764 check.
19765
19766 2016-04-14 Jason Merrill <jason@redhat.com>
19767
19768 * cfgexpand.c, expr.c: Revert previous change.
19769
19770 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
19771
19772 PR middle-end/70643
19773 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19774 when building a mem ref for the incoming reduction variable.
19775
19776 2016-04-14 Richard Biener <rguenther@suse.de>
19777
19778 PR tree-optimization/70614
19779 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19780 loop if the evolution dropped to chrec_dont_know.
19781 (interpret_condition_phi): Likewise.
19782
19783 2016-04-14 Richard Biener <rguenther@suse.de>
19784
19785 PR tree-optimization/70623
19786 * tree-ssa-pre.c (changed_blocks): Make global ...
19787 (compute_antic): ... local here. Move and fix worklist
19788 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19789 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
19790 worklist handling, dump when ANTIC_IN changed.
19791 (compute_partial_antic_aux): Remove worklist handling.
19792 (init_pre): Do not compute post dominators. Add a comment about
19793 the CFG order chosen.
19794 (fini_pre): Do not free post dominators.
19795
19796 2016-04-13 Martin Sebor <msebor@redhat.com>
19797
19798 PR c++/69517
19799 PR c++/70019
19800 PR c++/70588
19801 * doc/extend.texi (Variable Length): Document C++ specifics.
19802
19803 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19804
19805 PR c++/70641
19806 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19807 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
19808 eh edges have been purged.
19809
19810 PR c++/70594
19811 * tree-sra.c (create_access_replacement,
19812 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19813 gets fancy name.
19814 * tree-pretty-print.c (dump_fancy_name): New function.
19815 (dump_decl_name, dump_generic_node): Use it.
19816
19817 2016-04-13 Jason Merrill <jason@redhat.com>
19818
19819 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19820 * expr.c (expand_expr_real_1): Likewise.
19821
19822 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
19823
19824 * config/i386/i386.md (kunpckhi): Swap operands.
19825 (kunpcksi): Likewise.
19826 (kunpckdi): Likewise.
19827 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19828 (vec_pack_trunc_<mode>): Likewise.
19829
19830 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19831
19832 PR debug/70628
19833 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19834
19835 PR middle-end/70633
19836 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19837 gimplification turns some element into non-constant.
19838
19839 PR debug/70628
19840 * rtl.h (convert_memory_address_addr_space_1): New prototype.
19841 * explow.c (convert_memory_address_addr_space_1): No longer static,
19842 add NO_EMIT argument and don't call convert_modes if true, pass
19843 it down recursively, remove break after return.
19844 (convert_memory_address_addr_space): Adjust caller.
19845 * simplify-rtx.c (simplify_unary_operation_1): Call
19846 convert_memory_address_addr_space_1 instead of convert_memory_address,
19847 if it returns NULL, don't simplify.
19848
19849 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
19850
19851 PR target/70630
19852 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19853
19854 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19855
19856 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19857 Bump the upper SIMDLEN limits, so that if the return type or
19858 characteristic type if the return type is void can be passed in
19859 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19860 allowed.
19861
19862 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19863
19864 PR target/70640
19865 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19866 Do not use "=" constraint on an input constraint.
19867 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19868 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19869 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19870 generates (neg (abs ...)) instead of (abs ...).
19871
19872 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19873
19874 PR rtl-optimization/70596
19875 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19876 just invalidate LRA data and reset them. Adjust dump wording.
19877
19878 2016-04-12 Martin Liska <mliska@suse.cz>
19879
19880 Revert
19881 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19882
19883 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19884 estimates here.
19885 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19886 max_loop_iterations_int.
19887 (tree_unswitch_outer_loop): Likewise.
19888 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19889 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19890
19891 2016-04-12 Tom de Vries <tom@codesourcery.com>
19892
19893 PR tree-optimization/68756
19894 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19895 instead of new_name.
19896
19897 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19898
19899 PR tree-optimization/70602
19900 * tree-sra.c (generate_subtree_copies): Don't write anything into
19901 constant pool decls.
19902
19903 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19904 regardless whether there are depend clauses or not.
19905
19906 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19907
19908 PR target/70381
19909 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19910 target attribute and pragma from changing the -mfloat128
19911 and -mfloat128-hardware options.
19912
19913 * doc/extend.texi (Additional Floating Types): Document PowerPC
19914 __float128 restrictions.
19915
19916 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19917
19918 PR target/70133
19919 * config/aarch64/driver-aarch64.c
19920 (aarch64_get_extension_string_for_isa_flags): New.
19921 (arch_extension): Rename to...
19922 (aarch64_arch_extension): ...This.
19923 (ext_to_feat_string): Rename to...
19924 (aarch64_extensions): ...This.
19925 (aarch64_core_data): Keep track of architecture extension flags.
19926 (cpu_data): Rename to...
19927 (aarch64_cpu_data): ...This.
19928 (aarch64_arch_driver_info): Keep track of architecture extension
19929 flags.
19930 (get_arch_name_from_id): Rename to...
19931 (get_arch_from_id): ...This, change return type.
19932 (host_detect_local_cpu): Update and reformat for renames, handle
19933 extensions through common infrastructure.
19934
19935 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19936
19937 PR target/70133
19938 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19939 track of a canonical flag name.
19940 (all_extensions): Likewise.
19941 (arch_to_arch_name): Also track extension flags enabled by the arch.
19942 (all_architectures): Likewise.
19943 (aarch64_parse_extension): Move to here.
19944 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19945 rework.
19946 (aarch64_rewrite_selected_cpu): Update for above change.
19947 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19948 are handled, such that the single explicit value enabled by an
19949 extension is kept seperate from the implicit values it also enables.
19950 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19951 to here.
19952 (aarch64_parse_extension): New.
19953 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19954 here to config/aarch64/aarch64-protos.h.
19955 (aarch64_parse_extension): Move from here to
19956 common/config/aarch64/aarch64-common.c.
19957 (aarch64_option_print): Update.
19958 (aarch64_declare_function_name): Likewise.
19959 (aarch64_start_file): Likewise.
19960 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19961 the canonical flag for extensions.
19962 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19963 flags.
19964
19965 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19966
19967 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
19968 AARCH64_FL_CRC.
19969
19970 2016-04-09 Tom de Vries <tom@codesourcery.com>
19971
19972 PR tree-optimization/68953
19973 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
19974 first to last subscript.
19975
19976 2016-04-09 Jakub Jelinek <jakub@redhat.com>
19977
19978 PR tree-optimization/70586
19979 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
19980 for any calls.
19981
19982 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
19983
19984 PR lto/70289
19985 PR ipa/70348
19986 PR tree-optimization/70373
19987 PR middle-end/70533
19988 PR middle-end/70534
19989 PR middle-end/70535
19990 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
19991 clauses for acc parallel reductions as necessary. Error on those
19992 that are private.
19993 * omp-low.c (scan_sharing_clauses): Don't install variables which
19994 are used in acc parallel reductions.
19995 (lower_rec_input_clauses): Remove dead code.
19996 (lower_oacc_reductions): Add support for reference reductions.
19997 (lower_reduction_clauses): Remove dead code.
19998 (lower_omp_target): Don't remap variables appearing in acc parallel
19999 reductions.
20000 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
20001
20002 2016-04-08 Jakub Jelinek <jakub@redhat.com>
20003
20004 PR middle-end/70593
20005 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
20006 with multiple SSA_NAME defs, force the outputs other than first
20007 to be live before calling live_track_process_def on each output.
20008
20009 PR rtl-optimization/70574
20010 * fwprop.c (forward_propagate_and_simplify): Don't add
20011 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
20012 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
20013 paradoxical subregs within *loc.
20014
20015 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
20016
20017 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
20018 -ftree-parallelize-loops={0,1}.
20019 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
20020 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20021 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20022 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20023 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20024
20025 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
20026
20027 PR sanitizer/70541
20028 * asan.c (instrument_derefs): If we get unknown location, extract it
20029 with EXPR_LOCATION.
20030 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
20031
20032 2016-04-08 Tom de Vries <tom@codesourcery.com>
20033
20034 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
20035 implicit firstprivate clause.
20036
20037 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20038
20039 PR target/70566
20040 * config/arm/thumb2.md (tst + branch-> lsls + branch
20041 peephole below *orsi_not_shiftsi_si): Require that condition
20042 register is dead after the peephole.
20043 (second peephole after the above): Likewise.
20044
20045 2016-04-08 Alan Modra <amodra@gmail.com>
20046
20047 PR target/70117
20048 * builtins.c (fold_builtin_classify): For IBM extended precision,
20049 look at just the high-order double to test for NaN.
20050 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
20051 test just the high double for Inf but both doubles for subnormal
20052 limit.
20053
20054 2016-04-07 Jakub Jelinek <jakub@redhat.com>
20055
20056 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
20057 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
20058 node->simdclone->mask_mode != VOIDmode masks.
20059 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
20060 earlier, use it instead of node->simdclone.
20061 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20062 Set clonei->mask_mode.
20063
20064 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20065
20066 PR c/70436
20067 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
20068 Pass it through to cp_parser_already_scoped_statement.
20069 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
20070 it through to cp_parser_statement.
20071 (cp_parser_statement): Pass IF_P through to
20072 cp_parser_iteration_statement.
20073 (cp_parser_pragma): Adjust call to
20074 cp_parser_iteration_statement.
20075
20076 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20077
20078 PR c/70436
20079 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
20080 resolve a future -Wparentheses warning.
20081 * omp-low.c (scan_sharing_clauses): Likewise.
20082 * tree-parloops.c (eliminate_local_variables): Likewise.
20083
20084 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
20085
20086 PR rtl-optimization/70398
20087 * lra-constraints.c (process_address_1): Check zero scale and code
20088 for reloading with zero scale.
20089
20090 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
20091
20092 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
20093 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
20094
20095 2016-04-06 Jakub Jelinek <jakub@redhat.com>
20096
20097 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20098 Add support for AVX512F clones, include them by default for
20099 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
20100 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
20101 up to 128.
20102
20103 PR middle-end/70550
20104 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
20105 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
20106 firstprivate clauses.
20107 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
20108 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
20109 (lower_omp_target): Set TREE_NO_WARNING for
20110 non-addressable possibly uninitialized vars which are copied into
20111 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
20112
20113 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
20114
20115 * config/pa/predicates.md (integer_store_memory_operand): Accept
20116 REG+D operands with a large offset when reload_in_progress is true.
20117 (floating_point_store_memory_operand): Likewise.
20118
20119 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20120
20121 PR c++/70336
20122 * match.pd (nested int casts): Limit to GIMPLE.
20123
20124 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
20125
20126 PR ipa/66223
20127 * ipa-devirt.c (maybe_record_node): Fix comment; use
20128 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
20129
20130 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20131
20132 PR rtl-optimization/70542
20133 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
20134 if there are any uses other than insn or debug insns.
20135
20136 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
20137 Jakub Jelinek <jakub@redhat.com>
20138
20139 PR tree-optimization/70509
20140 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
20141 Shift HOST_WIDE_INT_1U instead of 1.
20142
20143 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
20144
20145 PR tree-optimization/70509
20146 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
20147 of the vector base type for index.
20148
20149 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
20150
20151 PR target/70510
20152 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
20153
20154 2016-04-05 Richard Biener <rguenther@suse.de>
20155
20156 PR tree-optimization/70526
20157 * tree-sra.c (build_ref_for_offset): Use prev_base to
20158 extract the alias pointer type.
20159
20160 2016-04-05 Richard Biener <rguenther@suse.de>
20161
20162 * dse.c (struct store_info): Remove alias_set member.
20163 (struct read_info_type): Likewise.
20164 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
20165 spill_deleted, clear_alias_set_lookup): Remove.
20166 (get_group_info): Remove dead base == NULL_RTX case.
20167 (dse_step0): Remove initialization of removed variables.
20168 (delete_dead_store_insn): Reomve alias set dumping.
20169 (free_read_records): Remove alias_set handling.
20170 (canon_address): Remove alias_set_out parameter.
20171 (record_store): Remove spill_alias_set, it's always zero.
20172 (check_mem_read_rtx): Likewise.
20173 (dse_step2): Rename from ...
20174 (dse_step2_nospill): ... this. Adjust.
20175 (scan_stores): Rename from ...
20176 (scan_stores_nospill): ... this.
20177 (scan_reads): Rename from ...
20178 (scan_reads_nospill): ... this.
20179 (scan_stores_spill, scan_reads_spill): Remove.
20180 (dse_step3_scan): Remove for_spills argument which is always false.
20181 (dse_step3): Likewise.
20182 (dse_step5): Rename from ...
20183 (dse_step5_nospill): ... this. Remove alias_set handling.
20184 (rest_of_handle_dse): Adjust.
20185
20186 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20187
20188 PR target/70525
20189 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
20190 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
20191 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
20192 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
20193
20194 2016-04-05 Richard Biener <rguenther@suse.de>
20195
20196 PR middle-end/70499
20197 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
20198 non-register type temporaries into SSA.
20199
20200 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
20201
20202 PR ipa/66223
20203 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
20204 calls when sanitizing.
20205 (possible_polymorphic_call_target_p): Fix formatting.
20206
20207 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20208 Jakub Jelinek <jakub@redhat.com>
20209
20210 PR middle-end/70457
20211 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
20212 to ensure a call statement is compatible with a built-in's
20213 prototype.
20214 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
20215 Likewise.
20216
20217 2016-04-04 Richard Biener <rguenther@suse.de>
20218
20219 PR rtl-optimization/70484
20220 * rtl.h (canon_output_dependence): Declare.
20221 * alias.c (canon_output_dependence): New function.
20222 * dse.c (record_store): Use canon_output_dependence rather
20223 than canon_true_dependence.
20224
20225 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20226
20227 PR ipa/68881
20228 * cgraph.h (symtab_node::copy_visibility_from): New function.
20229 * symtab.c (symtab_node::copy_visibility_from): New function.
20230 * ipa-visibility.c (optimize_weakref): New function.
20231 (function_and_variable_visibility): Use it.
20232
20233 2016-04-04 Martin Liska <mliska@suse.cz>
20234
20235 PR hsa/70402
20236 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
20237 value that is really in range handled by SBR instruction.
20238 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
20239 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
20240 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
20241
20242 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
20243
20244 PR target/70416
20245 PR target/67391
20246 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
20247 set, but not for SP_REG operands.
20248
20249 2016-04-02 Martin Sebor <msebor@redhat.com>
20250
20251 PR c++/67376
20252 * fold-const.c (maybe_nonzero_address): New function.
20253 (fold_comparison): Call it. Fold equality and relational
20254 expressions involving null pointers.
20255 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
20256
20257 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
20258
20259 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
20260 the "Y" constraint (scalar FP 0.0 immediate).
20261
20262 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
20263 Add the "const_double" to the list of operand constraints.
20264
20265 2016-04-01 Jakub Jelinek <jakub@redhat.com>
20266
20267 PR rtl-optimization/70467
20268 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
20269 If low word of the last operand is 0, just emit addition/subtraction
20270 for the high word.
20271
20272 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20273
20274 PR target/70404
20275 * config/s390/s390.c (s390_expand_insv): Check for everything
20276 constant instead of just VOIDmode stuff.
20277
20278 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20279
20280 PR target/70496
20281 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
20282
20283 2016-04-01 Nathan Sidwell <nathan@acm.org>
20284
20285 * tree.def (TRY_CATCH_EXPR): Correct documentation.
20286
20287 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
20288
20289 PR rtl-optimization/70461
20290 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
20291 is necessary.
20292
20293 2016-03-31 Martin Liska <mliska@suse.cz>
20294
20295 PR hsa/70399
20296 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
20297 a tree value or an immediate integer value to a buffer
20298 that is eventually copied to a BRIG section.
20299 (emit_immediate_operand): Call the function here.
20300 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
20301 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
20302 of class' fields that are removed.
20303 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
20304 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
20305 m_brig_repr_size fields.
20306
20307 2016-03-31 Martin Liska <mliska@suse.cz>
20308
20309 PR hsa/70391
20310 * hsa-gen.c (hsa_function_representation::update_dominance): New
20311 function.
20312 (convert_addr_to_flat_segment): Likewise.
20313 (gen_hsa_memory_set): New alignment argument.
20314 (gen_hsa_ctor_assignment): Likewise.
20315 (gen_hsa_insns_for_single_assignment): Provide alignment
20316 to gen_hsa_ctor_assignment.
20317 (gen_hsa_insns_for_direct_call): Add new argument.
20318 (expand_lhs_of_string_op): New function.
20319 (expand_string_operation_builtin): Likewise.
20320 (expand_memory_copy): New function.
20321 (expand_memory_set): New function.
20322 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
20323 (convert_switch_statements): Change signature.
20324 (generate_hsa): Use a return value of the function.
20325 (pass_gen_hsail::execute): Do not call
20326 convert_switch_statements here.
20327 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
20328 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
20329 (hsa_function_representation::update_dominance): New function.
20330
20331 2016-03-31 Martin Liska <mliska@suse.cz>
20332
20333 PR hsa/70391
20334 * hsa-brig.c (emit_directive_variable): Emit alignment
20335 according to hsa_symbol::m_align.
20336 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
20337 (dump_hsa_symbol): Dump alignment of HSA symbols.
20338 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
20339 (gen_hsa_addr_with_align): New function.
20340 (hsa_bitmemref_alignment): Use newly added function.
20341 (gen_hsa_insns_for_load): Likewise.
20342 (gen_hsa_insns_for_store): Likewise.
20343 (gen_hsa_memory_copy): New argument added.
20344 (gen_hsa_insns_for_single_assignment): Respect
20345 alignment for assignments processed via gen_hsa_memory_copy.
20346 (gen_hsa_insns_for_direct_call): Likewise.
20347 (gen_hsa_insns_for_return): Likewise.
20348 (gen_function_def_parameters): Set default alignment.
20349 * hsa.c (hsa_object_alignment): New function.
20350 (hsa_byte_alignment): Pasted function.
20351 * hsa.h (hsa_symbol::m_align): New field.
20352
20353 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20354
20355 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
20356 scratch field for goto case.
20357
20358 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
20359
20360 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
20361
20362 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
20363
20364 PR target/70442
20365 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
20366 (scalar_chain::convert_insn): Call convert_op for reg
20367 moves to handle undefined registers.
20368
20369 2016-03-31 Nathan Sidwell <nathan@acm.org>
20370
20371 PR c++/70393
20372 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
20373 Assert we don't want to move backwards.
20374
20375 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
20376
20377 PR target/70453
20378 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
20379
20380 2016-03-31 Jakub Jelinek <jakub@redhat.com>
20381
20382 PR rtl-optimization/70460
20383 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
20384 with operand from REG_LABEL_OPERAND, instead substitute
20385 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
20386 Don't do anything for REG_NON_LOCAL_GOTO jumps.
20387
20388 2016-03-31 Martin Liska <mliska@suse.cz>
20389
20390 * passes.c (execute_one_pass): Do not call
20391 todo_after for a discarded function.
20392
20393 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20394
20395 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
20396 (no_cost, infinite_cost): Initialize the new field.
20397 (get_computation_cost_at): Record setup cost.
20398 (determine_use_iv_cost_address): Skip cost computation for sub
20399 uses if we can estimate it without losing accuracy.
20400
20401 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20402
20403 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
20404 estimates here.
20405 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20406 max_loop_iterations_int.
20407 (tree_unswitch_outer_loop): Likewise.
20408 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
20409 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
20410
20411 2016-03-30 Richard Biener <rguenther@suse.de>
20412
20413 PR middle-end/70450
20414 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
20415
20416 2016-03-30 Jakub Jelinek <jakub@redhat.com>
20417
20418 PR target/70421
20419 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
20420 in gen_blendm expander.
20421
20422 2016-03-30 Nick Clifton <nickc@redhat.com>
20423
20424 PR target/62254
20425 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
20426 case where we are already provided with an SImode SUBREG.
20427
20428 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
20429
20430 PR target/70439
20431 * config/i386/i386.c (ix86_expand_epilogue): Properly check
20432 conflict between DRAP register and __builtin_eh_return.
20433
20434 2016-03-30 Michael Matz <matz@suse.de>
20435 Richard Biener <rguenther@suse.de>
20436
20437 PR ipa/12392
20438 * ipa-polymorphic-call.c (struct type_change_info): Change
20439 speculative to an unsigned allowing to limit the work we do.
20440 (csftc_abort_walking_p): New inline function..
20441 (check_stmt_for_type_change): Limit the number of may-defs
20442 skipped for speculative devirtualization to
20443 max-speculative-devirt-maydefs.
20444 * params.def (max-speculative-devirt-maydefs): New param.
20445 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
20446
20447 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
20448
20449 PR target/63890
20450 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
20451 and TARGET_MACHO.
20452
20453 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
20454
20455 PR tree-optimization/59124
20456 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
20457 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
20458
20459 2016-03-29 Jeff Law <law@redhat.com>
20460
20461 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
20462
20463 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20464
20465 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
20466 to HOST_WIDE_INT.
20467
20468 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
20469
20470 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
20471 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
20472 gcrt0.o if linking dynamically.
20473
20474 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20475
20476 PR ipa/70283
20477 * ipa-devirt.c (methods_equal_p): New function.
20478 (compare_virtual_tables): Use it.
20479 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
20480 * cgraphclones.c (clone_function_name_1): Use
20481 symbol_table::symbol_suffix_separator.
20482 * coverage.c (build_var): Likewise.
20483 * symtab.c (symbol_table::symbol_suffix_separator): New.
20484
20485 2016-03-29 Jakub Jelinek <jakub@redhat.com>
20486
20487 PR rtl-optimization/70429
20488 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
20489 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
20490 mode != result_mode.
20491
20492 PR c++/70353
20493 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
20494
20495 PR tree-optimization/70405
20496 * ssa-iterators.h (num_imm_uses): Add missing braces.
20497
20498 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
20499
20500 PR rtl-optimization/68695
20501 * ira-color.c (allocno_copy_cost_saving): New.
20502 (improve_allocation): Use it.
20503
20504 2016-03-29 Richard Henderson <rth@redhat.com>
20505
20506 PR middle-end/70355
20507 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
20508
20509 2016-03-29 Richard Biener <rguenther@suse.de>
20510
20511 PR middle-end/70424
20512 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
20513 use alignment returned by get_pointer_alignment_1 if it is
20514 bigger than BITS_PER_UNIT.
20515 * builtins.c (get_pointer_alignment_1): Do not return true
20516 for alignment extracted from SSA info.
20517
20518 2016-03-28 James Bowman <james.bowman@ftdichip.com>
20519
20520 * config/ft32/ft32.opt (mnodiv): New.
20521 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
20522 * doc/invoke.texi (FT32 Options -mnodiv): New.
20523
20524 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
20525
20526 PR target/70406
20527 * config/i386/i386.md (define_split, andn): Fix modes.
20528
20529 2016-03-26 Richard Biener <rguenther@suse.de>
20530 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20531
20532 PR ipa/70366
20533 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
20534 instead of
20535 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
20536 as 2nd argument to cl_optimization_restore().
20537
20538 2016-03-25 Richard Henderson <rth@redhat.com>
20539
20540 PR target/70120
20541 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
20542 * config/aarch64/aarch64-protos.h: Declare it.
20543 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
20544
20545 2016-03-25 Alan Modra <amodra@gmail.com>
20546
20547 PR target/70052
20548 * config/rs6000/constraints.md (j): Simplify.
20549 * config/rs6000/predicates.md (easy_fp_constant): Exclude
20550 decimal float 0.D.
20551 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
20552 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
20553 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
20554 in all constraint alternatives.
20555 (movtd_64bit_nodm): Delete "j" constraint alternative.
20556
20557 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20558
20559 * tree-ssa-propagate.c: Enhance docs for
20560 SSA_PROP_NOT_INTERESTING.
20561
20562 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20563
20564 * doc/extend.texi: Fix typo in documentation to pure attribute.
20565
20566 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
20567
20568 PR target/70319
20569 * config/pa/pa.md (bswapdi2): Use a scratch register.
20570
20571 2016-03-24 Richard Henderson <rth@redhat.com>
20572
20573 PR middle-end/69845
20574 * fold-const.c (extract_muldiv_1): Correct test for multiplication
20575 overflow.
20576
20577 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
20578
20579 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
20580 using ix86_expand_binary_operator instead of gen_andsi3.
20581
20582 2016-03-24 Richard Biener <rguenther@suse.de>
20583
20584 PR tree-optimization/70396
20585 * tree-vect-stmts.c (vectorizable_comparison): Use
20586 get_vectype_for_scalar_type.
20587
20588 2016-03-24 Richard Biener <rguenther@suse.de>
20589
20590 PR middle-end/70370
20591 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
20592 with register bases.
20593
20594 2016-03-24 Richard Biener <rguenther@suse.de>
20595
20596 PR tree-optimization/70372
20597 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
20598 build_all_ones_cst to also handle vector types correctly.
20599
20600 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20601
20602 PR target/70381
20603 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
20604 -mfloat128 here.
20605
20606 2016-03-23 Marek Polacek <polacek@redhat.com>
20607
20608 PR c++/69884
20609 * doc/invoke.texi: Document -Wignored-attributes.
20610
20611 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20612
20613 PR tree-optimization/69042
20614 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
20615 parameter from 30 to 40.
20616
20617 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20618
20619 PR tree-optimization/69042
20620 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
20621 for use with constant offset stripped in base.
20622
20623 2016-03-23 Richard Biener <rguenther@suse.de>
20624
20625 PR middle-end/70251
20626 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
20627 mode compatibility check.
20628 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20629
20630 2016-03-23 Jeff Law <law@redhat.com>
20631
20632 PR tree-optimization/64058
20633 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
20634 CONFLICT_COUNT.
20635 (struct ssa_conflicts): Move up earlier in the file.
20636 (conflicts_, var_map_): New static variables.
20637 (initialize_conflict_count): New function to initialize the
20638 CONFLICT_COUNT field for each conflict pair.
20639 (compare_pairs): Lazily initialize the conflict count and use it
20640 as the first tie-breaker.
20641 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
20642 and wipe conflicts_ and map_ around the call to qsort. Remove
20643 special case for 2 coalesce pairs.
20644 * bitmap.c (bitmap_count_unique_bits): New function.
20645 (bitmap_count_bits_in_word): New function, extracted from
20646 bitmap_count_bits.
20647 (bitmap_count_bits): Use bitmap_count_bits_in_word.
20648 * bitmap.h (bitmap_count_unique_bits): Declare it.
20649
20650 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
20651
20652 PR target/69917
20653 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
20654 transparent alias chain for decl assembler name.
20655 * config/sol2.c (solaris_assemble_visibility): Likewise.
20656
20657 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20658
20659 * config/arm/arm1020e.md (1020call_op): Reduce reservation
20660 duration.
20661 (v10_fdivs): Likewise.
20662 (v10_fdivd): Likewise.
20663
20664 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20665
20666 PR driver/70132
20667 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
20668 to not call fclose twice on file.
20669
20670 2016-03-23 Jakub Jelinek <jakub@redhat.com>
20671
20672 PR tree-optimization/70354
20673 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20674 oprnd0 is wider than oprnd1 and there is a cast from the wider
20675 type to oprnd1, mask it with the mask of the narrower type.
20676
20677 PR target/70321
20678 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
20679 Optimize TARGET_STV splitters, if high or low word of last argument
20680 is 0 or -1.
20681
20682 2016-03-22 Jeff Law <law@redhat.com>
20683
20684 PR target/70232
20685 tree-ssa-threadbackward.c
20686 (fsm_find_control_statement_thread_paths): Correctly distinguish
20687 between old style jump threads vs FSM jump threads.
20688
20689 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20690
20691 PR target/70302
20692 * config/i386/i386.c (scalar_chain::convert_op): Support
20693 uninitialized register usage case.
20694
20695 2016-03-22 Richard Biener <rguenther@suse.de>
20696
20697 PR middle-end/70251
20698 * genmatch.c (gen_transform): Adjust last parameter to a three-state
20699 int...
20700 (capture::gen_transform): ... to change behavior when substituting
20701 a condition into cond or not-cond expr context.
20702 (dt_simplify::gen_1): Adjust.
20703 * gimple-match-head.c: Include gimplify.h for unshare_expr.
20704 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
20705 last change and instead change to
20706 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
20707 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20708
20709 2016-03-22 Anthony Green <green@moxielogic.com>
20710
20711 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
20712 issue for moxiebox targets.
20713 (CC1PLUS_SPEC): Ditto.
20714
20715 2016-03-22 Richard Biener <rguenther@suse.de>
20716
20717 PR middle-end/70333
20718 * fold-const.c (extract_muldiv_1): Properly perform multiplication
20719 in the wide type.
20720
20721 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20722
20723 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
20724
20725 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20726
20727 PR target/70325
20728 * config/i386/i386.c (def_builtin): Handle
20729 OPTION_MASK_ISA_AVX512VL to be and-ed with other
20730 bits.
20731 (const struct builtin_description bdesc_special_args[]):
20732 Remove duplicate ISA bits.
20733
20734 2016-03-22 Jakub Jelinek <jakub@redhat.com>
20735
20736 PR target/70329
20737 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
20738 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
20739 in a way that works also for AVX512BW.
20740
20741 PR target/70300
20742 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20743 instead of source if operands[1] is xmm16 and above and
20744 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
20745 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20746
20747 PR c++/70295
20748 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20749 on assign if (*from_p) is a comparison, set it to
20750 TREE_NO_WARNING (*from_p).
20751
20752 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20753
20754 PR middle-end/70326
20755 * lra.c (restore_scratches): Ignore deleted insns.
20756
20757 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
20758 Jakub Jelinek <jakub@redhat.com>
20759
20760 PR tree-optimization/70317
20761 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20762 to HONOR_NANS.
20763
20764 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
20765
20766 PR target/70327
20767 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20768 of ix86_expand_move.
20769 (movoi): Ditto.
20770 (movti): Use general_operand for operand 1 predicate.
20771
20772 2016-03-21 Martin Liska <mliska@suse.cz>
20773
20774 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20775 insns.
20776 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20777
20778 2016-03-21 Martin Liska <mliska@suse.cz>
20779
20780 PR ipa/70306
20781 * ipa-icf.c (sem_function::parse): Skip static
20782 constructors and destructors.
20783
20784 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20785
20786 PR target/70296
20787 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20788 function-like macro, peek following token(s) if it is followed
20789 by CPP_OPEN_PAREN token with optional padding in between, and
20790 if not, don't treat it like a macro.
20791
20792 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
20793 Alexander Monakov <amonakov@ispras.ru>
20794
20795 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20796 for the stabs debug format.
20797
20798 2016-03-21 Richard Biener <rguenther@suse.de>
20799
20800 PR tree-optimization/70310
20801 * tree-vect-generic.c (expand_vector_condition): Fold the built
20802 condition.
20803
20804 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
20805
20806 PR target/70293
20807 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20808 Block third alternative for AVX-512VL target,
20809
20810 2016-03-21 Martin Liska <mliska@suse.cz>
20811
20812 PR hsa/70234
20813 * hsa-brig.c (emit_function_directives): Mark unemitted
20814 global variables for emission.
20815 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20816 (get_symbol_for_decl): Likewise.
20817 * hsa.h (struct hsa_symbol): New flag.
20818
20819 2016-03-21 Richard Biener <rguenther@suse.de>
20820
20821 PR tree-optimization/70288
20822 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20823 we do not estimate unsimplified all-constant conditionals or
20824 switches as optimized away.
20825
20826 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
20827
20828 PR rtl-optimization/69102
20829 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20830 when we have a readonly dependency context.
20831
20832 2016-03-18 Jeff Law <law@redhat.com>
20833
20834 PR rtl-optimization/70263
20835 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20836 (update_equiv_regs): When trying to move a store to after the insn
20837 that sets the source of the store, make sure the store occurs after
20838 the insn that sets the source of the store. When successful note
20839 the REG_EQUIV note created in the dump file.
20840
20841 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
20842 Bernd Schmidt <bschmidt@redhat.com>
20843
20844 * doc/extend.texi: Document more potential problems with basic asms.
20845
20846 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
20847
20848 PR rtl-optimization/70278
20849 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20850 VOIDmode.
20851
20852 2016-03-18 Jason Merrill <jason@redhat.com>
20853
20854 * calls.c (load_register_parameters): Fix zero size sibcall logic.
20855
20856 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20857
20858 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20859 values to 128b regs.
20860
20861 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20862
20863 PR tree-optimization/70252
20864 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20865 boolean vector has a proper number of elements.
20866 (supportable_narrowing_operation): Likewise.
20867
20868 2016-03-18 Tom de Vries <tom@codesourcery.com>
20869
20870 PR ipa/70269
20871 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20872
20873 2016-03-18 Jakub Jelinek <jakub@redhat.com>
20874
20875 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20876 instead of replace_rtx for DEBUG_INSNs.
20877
20878 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20879
20880 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20881 load type reservations.
20882
20883 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
20884
20885 PR target/70188
20886 * config/pa/constraints.md: Revert 2015-02-13 change. Use
20887 define_constraint for "Q" and "T" constraints.
20888
20889 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
20890
20891 Tweak the pipeline model for Exynos M1
20892
20893 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
20894 model.
20895
20896 2016-03-17 David Malcolm <dmalcolm@redhat.com>
20897
20898 PR c/70264
20899 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20900 where one or both locations aren't within a line_map.
20901
20902 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
20903
20904 PR driver/70192
20905 * opts.c (finish_options): Don't set flag_pie to the default if
20906 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
20907 if it is -1.
20908
20909 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
20910
20911 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20912 true as ALL_REGS argument to replace_rtx.
20913
20914 2016-03-17 Richard Biener <rguenther@suse.de>
20915
20916 PR debug/70271
20917 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20918 last.
20919
20920 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20921
20922 PR target/70245
20923 * rtl.h (replace_rtx): Add ALL_REGS argument.
20924 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
20925 equality and assert mode is the same, instead of just rtx pointer
20926 equality.
20927 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20928 true as ALL_REGS argument to replace_rtx.
20929
20930 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
20931
20932 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20933 for boolean vector with vector mode only.
20934 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20935
20936 2016-03-17 Nick Clifton <nickc@redhat.com>
20937
20938 PR target/70162
20939 * config/rx/rx.c (rx_print_integer): Print negative constants in
20940 decimal.
20941
20942 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20943
20944 PR target/70261
20945 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20946
20947 2016-03-16 Richard Henderson <rth@redhat.com>
20948 Richard Biener <rguenth@suse.de>
20949
20950 PR middle-end/70240
20951 PR middle-end/68215
20952 PR tree-opt/68714
20953 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20954 first operand as is_gimple_condexpr.
20955
20956 PR middle-end/70240
20957 PR middle-end/68215
20958 Revert r231575
20959 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
20960 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20961 Do not gimplify the result.
20962 (do_unop): Adjust call to tree_vec_extract.
20963 (do_binop): Likewise.
20964 (do_compare): Likewise.
20965 (do_plus_minus): Likewise.
20966 (do_negate): Likewise.
20967 (expand_vector_condition): Likewise.
20968 (do_cond): Likewise.
20969
20970 2016-03-16 Richard Henderson <rth@redhat.com>
20971
20972 PR target/70048
20973 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
20974 (aarch64_classify_address): Use it.
20975 (aarch64_legitimize_address): Force all subexpressions of PLUS
20976 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
20977
20978 2016-03-16 Jakub Jelinek <jakub@redhat.com>
20979 Richard Biener <rguenth@suse.de>
20980
20981 PR target/70245
20982 * rtlanal.c (replace_rtx): For REG, if from is a REG,
20983 return to even if only REGNO is equal, and assert
20984 mode is the same.
20985
20986 2016-03-11 Jeff Law <law@redhat.com>
20987
20988 PR rtl-optimization/70224
20989 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
20990
20991 2016-03-16 Richard Henderson <rth@redhat.com>
20992
20993 PR middle-end/70199
20994 * function.h (struct function): Add has_forced_label_in_static.
20995 * gimplify.c (force_labels_r): Set it.
20996 * lto-streamer-in.c (input_struct_function_base): Read it.
20997 * lto-streamer-out.c (output_struct_function_base): Write it.
20998 * tree-inline.c (has_label_address_in_static_1): Remove.
20999 (copy_forbidden): Remove fndecl parameter; test
21000 has_forced_label_in_static.
21001 (inline_forbidden_p): Update call to copy_forbidden.
21002 (tree_versionable_function_p): Likewise.
21003 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
21004 (chkp_versioning): Likewise.
21005 * tree-inline.h (copy_forbidden): Update decl.
21006
21007 2016-03-16 Marek Polacek <polacek@redhat.com>
21008
21009 PR c/70093
21010 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
21011 function being thunked if the result type doesn't have fixed size.
21012 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
21013 doesn't have fixed size.
21014
21015 2016-03-16 Bin Cheng <bin.cheng@arm.com>
21016
21017 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
21018 reporting malformed loop nest.
21019
21020 2016-03-16 Tom de Vries <tom@codesourcery.com>
21021
21022 PR lto/70187
21023 * ipa-devirt.c (possible_polymorphic_call_targets): Move
21024 nodes.length () == 1 test to before first nodes[0] access.
21025
21026 2016-03-16 Tom de Vries <tom@codesourcery.com>
21027
21028 PR tree-optimization/68715
21029 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
21030 single_pred_p test.
21031
21032 2016-03-16 Tom de Vries <tom@codesourcery.com>
21033
21034 PR tree-optimization/68809
21035 * graphite-scop-detection.c (same_close_phi_node): Test if result types
21036 are the same.
21037
21038 2016-03-16 Carlos O'Donell <carlos@redhat.com>
21039 Sandra Loosemore <sandra@codesourcery.com>
21040
21041 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
21042 on leaf attribute. Mention ELF interposition problems.
21043
21044 2016-03-16 Alan Modra <amodra@gmail.com>
21045
21046 PR rtl-optimization/69195
21047 PR rtl-optimization/47992
21048 * ira.c (indirect_jump_optimize): Ignore artificial defs.
21049 Add comments.
21050
21051 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
21052
21053 PR bootstrap/69513
21054 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
21055
21056 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21057
21058 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
21059
21060 2016-03-15 Jakub Jelinek <jakub@redhat.com>
21061
21062 PR rtl-optimization/70222
21063 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
21064 optimization if mode is different from result_mode, queue up masking
21065 of the result in outer_op. Formatting fix.
21066
21067 PR middle-end/70239
21068 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
21069 of safe_grow.
21070
21071 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21072
21073 PR rtl-optimization/69032
21074 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
21075 looping backwards over basic block insns.
21076
21077 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21078
21079 PR target/66660
21080 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
21081 to non-speculative when propagating trap bits.
21082
21083 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21084
21085 PR rtl-optimization/63384
21086 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
21087 DEBUG_INSN_P insns.
21088
21089 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21090
21091 PR target/64411
21092 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
21093 factored out from ...
21094 (sched_analyze_insn): ... here.
21095 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
21096 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
21097 get_implicit_reg_pending_clobbers in it.
21098 (setup_id_reg_sets): Use setup_id_implicit_regs.
21099 (deps_init_id): Ditto.
21100
21101 2016-03-15 Tom de Vries <tom@codesourcery.com>
21102
21103 PR ipa/70161
21104 * cgraph.c (cgraph_node::get_body): Save, reset and restore
21105 dump_file_name.
21106 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
21107 execute_function_dump.
21108 (execute_one_pass): Don't dump function if it will be dumped after ipa
21109 transform.
21110
21111 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21112
21113 * genrecog.c (match_pattern_2): If pred is NULL don't call
21114 safe_predicate_mode on it.
21115
21116 2016-03-14 Jakub Jelinek <jakub@redhat.com>
21117
21118 PR middle-end/70219
21119 * lra-constraints.c (delete_move_and_clobber): Change assertion
21120 to also allow dregno == 0.
21121
21122 2016-03-14 Richard Henderson <rth@redhat.com>
21123
21124 PR tree-opt/68714
21125 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
21126 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
21127 (reassociate_bb): Use optimize_vec_cond_expr; avoid
21128 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
21129 on vectors.
21130
21131 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
21132
21133 PR target/70083
21134 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
21135 regs.
21136 (lra_create_live_ranges_1): initialize hard register biggest_mode to
21137 VOIDmode.
21138 * lra-constraints.c (split_reg): For hard regs, try to find the
21139 biggest single-register mode used in the function.
21140
21141 2016-03-14 Richard Biener <rguenther@suse.de>
21142
21143 PR tree-optimization/56365
21144 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
21145 constants to compare against.
21146
21147 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
21148
21149 PR target/70098
21150 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
21151 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
21152 (define_split for the GPR case): Use int_reg_operand instead of
21153 gpc_reg_operand for the output.
21154
21155 2016-03-14 Tom de Vries <tom@codesourcery.com>
21156
21157 PR tree-optimization/70045
21158 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
21159 create_empty_if_region_on_edge argument.
21160
21161 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
21162
21163 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
21164 (STACK_CHECK_PROTECT): Likewise.
21165 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21166 (STACK_CHECK_PROTECT): Likewise.
21167 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21168 (STACK_CHECK_PROTECT): Likewise.
21169 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
21170 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21171 (STACK_CHECK_PROTECT): Likewise.
21172
21173 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
21174
21175 PR rtl-optimization/69307
21176 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
21177 registers in modes that span more than one register.
21178
21179 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
21180
21181 PR target/69614
21182 * lra-constraints.c (delete_move_and_clobber): New.
21183 (remove_inheritance_pseudos): Use it.
21184
21185 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
21186
21187 PR ada/70017
21188 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
21189 the libcall is LCT_THROW.
21190 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
21191 for the checking routine.
21192
21193 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21194
21195 PR target/70131
21196 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
21197 optimization if we have direct move.
21198 (roundu32<mode>2_fprs): Likewise.
21199
21200 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
21201
21202 PR target/70123
21203 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
21204 be rematerialized.
21205 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
21206 Arguments swapped. All callers changed. Take reg_renumber into
21207 account, and Calculate and compare register ranges for hard regs.
21208
21209 2016-03-11 Jeff Law <law@redhat.com>
21210
21211 PR tree-optimization/70190
21212 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21213 Handle cases where we can not extract the taken edge, even though we
21214 found a constant value.
21215
21216 PR tree-optimization/64058
21217 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
21218 (num_coalesce_pairs): Move up earlier in file.
21219 (find_coalesce_pair): Initialize the INDEX field for each pair
21220 discovered.
21221 (compare_pairs): No longer sort on the elements in each pair.
21222 Instead break ties with the index of the coalesce pair.
21223
21224 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21225
21226 PR target/70002
21227 * config/aarch64/aarch64-protos.h
21228 (aarch64_save_restore_target_globals): New prototype.
21229 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
21230 Call the above when popping pragma.
21231 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
21232 New function.
21233 (aarch64_set_current_function): Rewrite using the above.
21234
21235 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21236
21237 PR tree-optimization/70177
21238 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
21239 (extract_ops_from_tree): ... this. In the 2 argument
21240 overload remove _1 suffix.
21241 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
21242 (extract_ops_from_tree): ... this.
21243 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
21244 Adjust callers.
21245 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
21246 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
21247 extract_ops_from_tree instead of 2 operand one.
21248
21249 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
21250
21251 PR tree-optimization/70013
21252 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
21253 for constant-pool entries.
21254
21255 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21256
21257 PR rtl-optimization/70174
21258 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
21259 followed by gen_lowpart on force_reg instead of just gen_lowpart.
21260
21261 PR tree-optimization/70169
21262 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
21263 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
21264 for unknown codes.
21265
21266 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
21267 Jakub Jelinek <jakub@redhat.com>
21268
21269 PR target/70160
21270 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
21271 of uninitialized values.
21272
21273 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21274
21275 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
21276 define_expand.
21277 ("*trunctddd2"): New pattern definition.
21278 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
21279 TD->DD truncation.
21280
21281 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21282
21283 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
21284 definitions for BFP and DFP rounding modes.
21285 ("fixuns_truncdddi2", "fixuns_trunctddi2")
21286 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
21287 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
21288 ("fix_trunctf<mode>2"): Use the new constants instead of magic
21289 numbers.
21290
21291 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21292
21293 * config/s390/constraints.md: Adjust comment.
21294 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
21295 s390_decompose_addrstyle_without_index.
21296 * config/s390/predicates.md (shift_count_or_setmem_operand):
21297 Rename to setmem_operand.
21298 * config/s390/s390-protos.h
21299 (s390_decompose_shift_count): Rename to
21300 s390_decompose_addrstyle_without_index.
21301 * config/s390/s390.c (s390_decompose_shift_count)
21302 (s390_mem_constraint, print_shift_count_operand)
21303 (print_operand_address, print_operand): Rename
21304 s390_decompose_shift_count to
21305 s390_decompose_addrstyle_without_index and rename
21306 print_shift_count_operand to print_addrstyle_operand troughout the
21307 file.
21308 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
21309 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
21310 Rename shift_count_or_setmem_operand to setmem_operand.
21311 * config/s390/vx-builtins.md ("vec_insert<mode>")
21312 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
21313 nonmemory_operand.
21314
21315 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21316
21317 PR target/70168
21318 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21319 Handle overlapping retval and newval.
21320
21321 2016-03-10 Nick Clifton <nickc@redhat.com>
21322
21323 PR target/7044
21324 * config/aarch64/aarch64.c
21325 (aarch64_override_options_after_change_1): When forcing
21326 flag_omit_frame_pointer to be true, use a special value that can
21327 be detected if this function is called again, thus preventing
21328 flag_omit_leaf_frame_pointer from being forced to be false.
21329
21330 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21331
21332 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
21333 Set x_flag_omit_leaf_frame_pointer when handling
21334 -momit-leaf-frame-pointer.
21335
21336 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21337
21338 PR lto/69589
21339 * cgraph.c (cgraph_node::dump): Dump split_part and
21340 indirect_call_target.
21341 * cgraph.h (cgraph_node): Add indirect_call_target flag.
21342 * ipa.c (has_addr_references_p): Cleanup.
21343 (is_indirect_call_target_p): New.
21344 (walk_polymorphic_call_targets): Do not mark virtuals that may be
21345 called indirectly as local.
21346 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
21347
21348 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21349
21350 PR ipa/69630
21351 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21352 on cxa_pure_virtual.
21353
21354 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21355
21356 PR lto/69589
21357 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
21358
21359 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21360
21361 PR lto/69589
21362 * tree.c (need_assembler_name_p): Only record main variant type names.
21363
21364 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21365
21366 PR target/70113.
21367 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
21368 Always define to 0 or 1.
21369 (TARGET_FIX_ERR_A53_843419): New macro.
21370 * config/aarch64/aarch64-elf-raw.h
21371 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
21372 * config/aarch64/aarch64-linux.h: Likewise.
21373 * config/aarch64/aarch64.c
21374 (aarch64_override_options_after_change_1): Do not default
21375 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
21376 843419 is on.
21377 (aarch64_attributes): Handle fix-cortex-a53-843419.
21378 (aarch64_can_inline_p): Likewise.
21379 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
21380
21381 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
21382 Jakub Jelinek <jakub@redhat.com>
21383
21384 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
21385 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
21386 DECL_COMMONS if flag_unconstrained_commons is set.
21387 * tree-dfa.c (get_ref_base_and_extent): Likewise.
21388 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
21389 (funconstrained-commons): Document.
21390
21391 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21392
21393 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
21394 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
21395
21396 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
21397
21398 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
21399 has a proper number of elements.
21400
21401 2016-03-10 Alan Modra <amodra@gmail.com>
21402
21403 PR rtl-optimization/69195
21404 PR rtl-optimization/47992
21405 * ira.c (recorded_label_ref): Delete.
21406 (update_equiv_regs): Return void.
21407 (indirect_jump_optimize): New function.
21408 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
21409 before regstat_compute_ri. Don't rebuild_jump_labels here.
21410 Delete update_regstat.
21411
21412 2016-03-10 Richard Biener <rguenther@suse.de>
21413
21414 PR tree-optimization/70128
21415 * tree-ssa-structalias.c (set_uids_in_ptset): Set
21416 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
21417
21418 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21419
21420 PR tree-optimization/70152
21421 * tree-sra.c (replace_removed_params_ssa_names): Copy over
21422 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
21423
21424 PR target/70086
21425 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
21426 instead of gen_sse2_loadlpd.
21427 * config/i386/sse.md (*vec_concatv2df): Rename to...
21428 (vec_concatv2df): ... this.
21429
21430 PR tree-optimization/70127
21431 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
21432
21433 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21434
21435 PR c/68473
21436 PR c++/70105
21437 * diagnostic-show-locus.c (compatible_locations_p): New function.
21438 (layout::layout): Sanitize ranges using compatible_locations_p.
21439
21440 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21441
21442 PR c/68473
21443 PR c++/70105
21444 * diagnostic-show-locus.c (layout_range::layout_range): Replace
21445 location_range param with three const expanded_locations * and a
21446 bool.
21447 (layout::layout): Replace call to
21448 rich_location::lazily_expand_location with get_expanded_location.
21449 Extract the range and perform location expansion here, passing
21450 the results to the layout_range ctor.
21451 * diagnostic.c (source_range::debug): Delete.
21452 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
21453 of rich_location::get_expanded_location.
21454 * gcc-rich-location.c (get_range_for_expr): Delete.
21455 (gcc_rich_location::add_expr): Reimplement to avoid the
21456 rich_location::add_range overload that took a location_range,
21457 passing a location_t instead.
21458
21459 2016-03-09 Richard Biener <rguenther@suse.de>
21460 Jakub Jelinek <jakub@redhat.com>
21461
21462 PR tree-optimization/70138
21463 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21464 Also skip vect_double_reduction_def.
21465
21466 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21467
21468 PR target/70049
21469 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
21470 if the operand is "m".
21471
21472 2016-03-09 Nathan Sidwell <nathan@acm.org>
21473
21474 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
21475
21476 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21477
21478 * config/i386/i386.c (processor_target_table): Fix cost table
21479 intialization order for znver1.
21480
21481 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21482
21483 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
21484 - becuase -> because.
21485 * ipa-reference.c (ignore_module_statics): Likewise.
21486 * cgraph.c (cgraph_node::get_body): Likewise.
21487 * ipa-inline.c (early_inliner): Likewise.
21488 * ipa-devirt.c (types_same_for_odr): Likewise.
21489 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
21490 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
21491
21492 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21493
21494 * tree-ssa-math-opts.c: Fix typo in comment.
21495
21496 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21497
21498 PR target/70110
21499 * config/i386/i386.c (scalar_chain::make_vector_copies,
21500 scalar_chain::convert_reg): Call end_sequence in between
21501 get_insns and emit_conversion_insns rather than after both
21502 calls.
21503
21504 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
21505
21506 PR target/70064
21507 * config/i386/i386.h (machine_function): Add
21508 pc_thunk_call_expanded flag.
21509 (ix86_pc_thunk_call_expanded): New define.
21510 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
21511 (*set_got): Rename insn pattern from set_got.
21512 (*set_got_labelled): Rename inst pattern from set_got_labelled.
21513 * config/i386/i386.c (ix86_compute_frame_layout): Use
21514 ix86_pc_thunk_call_expanded to prevent red-zone.
21515
21516 2016-03-07 Martin Jambor <mjambor@suse.cz>
21517
21518 * hsa.h (hsa_get_ctor_statements): Declare.
21519 (hsa_get_dtor_statements): Likewise.
21520 (hsa_get_kernel_dispatch_type): Likewise.
21521 * hsa.c (hsa_get_ctor_statements): New function.
21522 (hsa_get_dtor_statements): Likewise.
21523 (hsa_get_kernel_dispatch_type): Likewise.
21524 * hsa-brig.c (hsa_cdtor_statements): Removed.
21525 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
21526 hsa_get_dtor_statements.
21527 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
21528 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
21529
21530 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
21531
21532 * config/arm/arm-cores.def (cortex-r8): New.
21533 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
21534 * config/arm/arm-tune.md: Likewise.
21535 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
21536
21537 2016-03-07 Martin Sebor <msebor@redhat.com>
21538
21539 PR rtl-optimization/19705
21540 * doc/invoke.texi (Options That Control Optimization): Clarify
21541 -fno-branch-count-reg.
21542
21543 2016-02-26 Richard Biener <rguenther@suse.de>
21544 Jeff Law <law@redhat.com>
21545
21546 PR tree-optimization/69740
21547 * cfghooks.c (remove_edge): Request loop fixups if we delete
21548 an edge that might turn an irreducible loop into a natural
21549 loop.
21550 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
21551 Move after definition of loops_state_clear.
21552
21553 2016-03-07 Bin Cheng <bin.cheng@arm.com>
21554
21555 PR rtl-optimization/69052
21556 * rtlanal.c (commutative_operand_precedence): Set higher precedence
21557 to CONST_WIDE_INT.
21558
21559 2016-03-07 Tom de Vries <tom@codesourcery.com>
21560
21561 PR tree-optimization/70116
21562 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
21563 is_tm_ending stmts and ubsan/asan internal functions.
21564 (find_duplicate): Use it. Don't test is_tm_ending here.
21565
21566 2016-03-07 Richard Biener <rguenther@suse.de>
21567
21568 PR tree-optimization/70115
21569 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
21570 (propagate_constants_for_unrolling): Use replace_uses_by.
21571
21572 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
21573
21574 PR middle-end/69916
21575 * omp-low.c (struct oacc_loop): Add ifns.
21576 (new_oacc_loop_raw): Initialize it.
21577 (finish_oacc_loop): Clear mask & flags if no ifns.
21578 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
21579 (oacc_loop_xform_loop): Add ifns arg & adjust.
21580 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
21581
21582 2016-03-07 Richard Henderson <rth@redhat.com>
21583
21584 PR rtl-opt/70061
21585 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
21586 (insert_value_copy_on_edge): Likewise.
21587
21588 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21589
21590 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
21591
21592 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21593
21594 PR target/62281
21595 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
21596
21597 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21598
21599 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
21600
21601 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21602
21603 Fix sseimul type attribute.
21604 * config/i386/znver1.md
21605 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
21606 znver1_sseimul_avx256_load) : Fix the type attribute.
21607 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
21608 pipe usage and latency.
21609
21610 2016-03-05 Jakub Jelinek <jakub@redhat.com>
21611
21612 PR c++/70084
21613 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
21614 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
21615 to the right type.
21616
21617 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21618
21619 PR c/69973
21620 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
21621
21622 PR rtl-optimization/69941
21623 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
21624 the reg share its mode.
21625
21626 2016-03-04 Jeff Law <law@redhat.com>
21627
21628 PR tree-optimization/69196
21629 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21630 If the both SSA_NAMEs are anonymous, then consider them unassociated
21631 and include the PHI in the statement count.
21632
21633 2016-03-05 Tom de Vries <tom@codesourcery.com>
21634
21635 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
21636 construct in oacc routine. Check for oacc region in oacc routine.
21637
21638 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21639
21640 PR target/70062
21641 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
21642 2016-02-22 changes, instead don't recurse if RECUR is already true.
21643 Don't change *dynamic_check if RECUR. Adjust recursive caller
21644 to pass true to the new argument.
21645 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
21646
21647 PR target/70059
21648 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21649 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
21650 fixes.
21651 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
21652
21653 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21654
21655 PR rtl-optimization/57676
21656 * lra-assigns.c (lra_assign): Guard test for maximum iterations
21657 with flag_checking.
21658
21659 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
21660
21661 * tree-vect-patterns.c (search_type_for_mask): Handle
21662 comparison of booleans.
21663
21664 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21665
21666 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
21667 Fix @xref usage.
21668
21669 PR debug/69947
21670 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
21671 all other ops that have dw_val_class_die_ref operands,
21672 and DW_OP_GNU_entry_value.
21673
21674 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21675
21676 PR rtl-optimization/69904
21677 * config/arm/arm.c (arm_cannot_copy_insn_p):
21678 Return true for load-exclusive instructions.
21679
21680 2016-03-03 Jakub Jelinek <jakub@redhat.com>
21681
21682 PR target/70021
21683 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
21684 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
21685 the pattern no matter if it is used just by non-pattern, pattern
21686 or mix thereof.
21687 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
21688 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21689 oprnd1 def_stmt is in pattern, don't look through it.
21690
21691 2016-03-03 Marek Polacek <polacek@redhat.com>
21692
21693 PR middle-end/70050
21694 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
21695
21696 2016-03-03 Martin Liska <mliska@suse.cz>
21697
21698 PR tree-optimization/70043
21699 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
21700 previous statement if we see a debug statement.
21701
21702 2016-03-03 Richard Biener <rguenther@suse.de>
21703
21704 PR tree-optimization/55936
21705 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
21706 parameter and guard unsafe equivalence use.
21707 (vrp_evaluate_conditional_warnv_with_ops): Always use
21708 safe equivalences but not via the quadratic compare_names
21709 helper.
21710
21711 2016-03-03 Michael Collison <michael.collison@linaro.org>
21712
21713 PR target/70014
21714 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
21715 for operand 1 to s_register_operand. Change predicate for operand
21716 2 to arm_not_immediate_operand.
21717
21718 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
21719
21720 * doc/tm.texi: Regenerated.
21721
21722 2016-03-02 Richard Henderson <rth@redhat.com>
21723
21724 PR rtl-opt/67145
21725 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
21726 simplification when all args are positive non-fixed registers.
21727
21728 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21729
21730 * target.def (lra_p): Specify that new ports should use LRA.
21731
21732 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21733
21734 PR libgomp/69555
21735 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
21736 gimplify_type_sizes the type they refer to.
21737 (omp_notice_variable): Handle reference vars to VLAs.
21738 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
21739 reference to VLA decls in the second pass instead of first pass.
21740
21741 2016-03-02 Tom de Vries <tom@codesourcery.com>
21742
21743 PR tree-optimization/68659
21744 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21745 new_expr == NULL_TREE.
21746 (get_new_name): Handle ADDR_EXPR.
21747
21748 2016-03-02 Bin Cheng <bin.cheng@arm.com>
21749
21750 PR rtl-optimization/69052
21751 * loop-invariant.c (canonicalize_address): New function.
21752 (inv_can_prop_to_addr_use): Check validity of address expression
21753 which is canonicalized by above function.
21754
21755 2016-03-02 Alan Modra <amodra@gmail.com>
21756
21757 PR ipa/69990
21758 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21759 larger alignment.
21760
21761 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21762
21763 PR target/70028
21764 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21765 (*movhi_internal): Put mask moves from and to memory separately
21766 from moves from/to GPRs.
21767
21768 2016-03-02 Richard Biener <rguenther@suse.de>
21769
21770 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21771 GENERIC expressions in GIMPLE.
21772
21773 2016-03-02 Richard Biener <rguenther@suse.de>
21774
21775 * config/i386/i386.c (type_natural_mode): Fix typo.
21776
21777 2016-03-02 Nick Clifton <nickc@redhat.com>
21778
21779 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21780
21781 2016-03-02 Richard Biener <rguenther@suse.de>
21782 Uros Bizjak <ubizjak@gmail.com>
21783
21784 PR target/67278
21785 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21786
21787 2016-03-02 Richard Biener <rguenther@suse.de>
21788
21789 PR middle-end/67278
21790 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21791
21792 2016-03-02 Marek Polacek <polacek@redhat.com>
21793
21794 PR c/67854
21795 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21796 "is promoted to" warning.
21797
21798 2016-03-01 DJ Delorie <dj@redhat.com>
21799
21800 * config.gcc: Deprecate mep-*.
21801
21802 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
21803
21804 PR middle-end/70025
21805 * lra-constraints.c (regno_val_use_in): New.
21806 (match_reload): Use it instead of regno_use_in.
21807
21808 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21809
21810 PR rtl-optimization/70007
21811 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21812 references present in REG_EQUAL notes attached to non-SET patterns.
21813
21814 2016-03-01 Jeff Law <law@redhat.com>
21815
21816 PR tree-optimization/69196
21817 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21818 Appropriately clamp the number of statements to copy when the
21819 thread path does not traverse a loop backedge.
21820
21821 PR tree-optimization/69196
21822 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21823 Do count some PHIs in the thread path against the insn count. Decrease
21824 final statement count by one as the control statement in the last
21825 block will get removed. Remove special cased code for handling PHIs
21826 in the last block.
21827
21828 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
21829
21830 PR target/70027
21831 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21832 asm dialect alternatives to explicit GOTPCREL calls.
21833
21834 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21835
21836 PR ada/70017
21837 * ira.c (do_reload): Issue warning for generic stack checking here...
21838 * reload1.c (reload): ...instead of here and streamline it.
21839
21840 2016-03-01 Nick Clifton <nickc@redhat.com>
21841
21842 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21843
21844 2016-03-01 Richard Biener <rguenther@suse.de>
21845
21846 PR tree-optimization/69983
21847 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21848 types and fall back to operand_equal_p.
21849
21850 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21851
21852 Revert
21853 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21854
21855 * config/s390/constraints.md ("jm8"): New constraint.
21856 * config/s390/predicates.md ("const_int_8bitset_operand"): New
21857 predicate.
21858 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21859 into ...
21860 ("*setmem_long<setmem_and>"): New pattern.
21861 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21862 into ...
21863 ("*setmem_long_31z<setmem_and>"): New pattern.
21864 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21865 New substitution rules with the required attributes.
21866
21867
21868 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21869
21870 Revert
21871 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21872
21873 * gensupport.c (process_substs_on_one_elem): Split loop to
21874 complete mark_operands_used_in_match_dup on all expressions in the
21875 vector first.
21876 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21877 and remove function.
21878
21879 2016-03-01 Richard Biener <rguenther@suse.de>
21880
21881 PR middle-end/70022
21882 * fold-const.c (fold_indirect_ref_1): Fix range checking for
21883 vector BIT_FIELD_REF extract.
21884
21885 2016-03-01 Richard Biener <rguenther@suse.de>
21886
21887 PR tree-optimization/69994
21888 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21889
21890 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
21891
21892 PR tree-optimization/69956
21893 * tree-vect-stmts.c (supportable_widening_operation): Support
21894 multi-step conversion of boolean vectors.
21895 (supportable_narrowing_operation): Likewise.
21896
21897 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21898
21899 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21900 anymore.
21901
21902 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21903
21904 * config/s390/subst.md (DSI_VI): New mode iterator.
21905 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21906 * config/s390/vector.md ("vec_set<mode>"): Move expander before
21907 the insn definition.
21908 ("*vec_set<mode>"): Change predicate and add alternative to
21909 support only either register or const_int operands as element
21910 selector.
21911 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21912 operands.
21913 ("vec_extract<mode>"): New expander.
21914 ("*vec_extract<mode>"): New insn definition supporting reg and
21915 const_int element selectors.
21916 ("*vec_extract<mode>_plus"): New insn definition supporting
21917 reg+const_int element selectors.
21918 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21919 following expander+insn definition.
21920 ("<vec_shifts_name><mode>3"): New expander.
21921 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21922
21923 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21924
21925 * config/s390/s390.md ("*tabort_1"): Change predicate to
21926 nonmemory_operand. Add a second alternative to cover
21927 register as well as const int operands.
21928 ("*tabort_1_plus"): New pattern definition.
21929
21930 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21931
21932 * config/s390/s390.md ("*ashrdi3_cc_31")
21933 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21934 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21935 Merge insn definitions into ...
21936 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21937 New pattern definition.
21938 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21939 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21940 ("*ashr<mode>3_and"): Merge insn definitions into ...
21941 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21942 New pattern definition.
21943 * config/s390/subst.md ("addr_style_op_cc_subst")
21944 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21945 substitutions patterns plus attributes.
21946 Add ashiftrt to SUBST iterator.
21947
21948 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21949
21950 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21951 op2 to nonmemory_operand.
21952 ("*<shift>di3_31", "*<shift>di3_31_and"):
21953 Merge into single pattern definition ...
21954 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21955 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21956 pattern definition ...
21957 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21958 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21959 iterator.
21960
21961 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21962
21963 * config/s390/predicates.md (const_int_6bitset_operand): New
21964 predicate.
21965 * config/s390/s390.md: Include subst.md.
21966 ("rotl<mode>3"): New expander.
21967 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
21968 ...
21969 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
21970 * config/s390/subst.md: New file.
21971
21972 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21973
21974 * config/s390/s390.md ("op_type", "atype", "length" attributes):
21975 Remove RRR type. It doesn't really exist.
21976 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
21977 attributes.
21978 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
21979 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
21980 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21981 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
21982 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
21983 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
21984 `enabled' attribute.
21985
21986 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21987
21988 * gensupport.c (process_substs_on_one_elem): Split loop to
21989 complete mark_operands_used_in_match_dup on all expressions in the
21990 vector first.
21991 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21992 and remove function.
21993
21994 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
21995
21996 PR target/69706
21997 * config/sparc/sparc.c (NWORDS_UP): Rename to...
21998 (CEIL_NWORDS): ...this. Use CEIL macro.
21999 (compute_fp_layout): Adjust to above renaming.
22000 (function_arg_union_value): Likewise.
22001 (sparc_arg_partial_bytes): Likewise.
22002 (sparc_function_arg_advance): Likewise.
22003
22004 2016-02-29 Jeff Law <law@redhat.com>
22005
22006 PR tree-optimization/70005
22007 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
22008 where an object with a boolean range is compared against a value
22009 outside [0..1].
22010
22011 PR tree-optimization/69999
22012 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
22013 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
22014 loop cleanups.
22015
22016 2016-02-29 Richard Biener <rguenther@suse.de>
22017
22018 PR tree-optimization/69994
22019 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
22020 (get_unary_op): Look through nop conversions.
22021 (ops_equal_values_p): New function, look for equality diregarding
22022 nop conversions.
22023 (eliminate_plus_minus_pair): Use ops_equal_values_p
22024 (repropagate_negates): Do not use get_unary_op here.
22025
22026 2016-02-29 Martin Liska <mliska@suse.cz>
22027
22028 * system.h: Poison ENABLE_CHECKING macro.
22029
22030 2016-02-29 Martin Liska <mliska@suse.cz>
22031
22032 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
22033 is presented in dump flags.
22034 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22035 (hsa_regalloc): Likewise.
22036
22037 2016-02-19 Richard Biener <rguenther@suse.de>
22038
22039 PR tree-optimization/69980
22040 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
22041 permutation of those we need to keep.
22042
22043 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22044
22045 PR target/69706
22046 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
22047 (NWORDS_UP): ...this
22048 (init_cumulative_args): Minor tweaks.
22049 (sparc_promote_function_mode): Likewise.
22050 (scan_record_type): Delete.
22051 (traverse_record_type): New function template.
22052 (classify_data_t): New structure type.
22053 (classify_registers): New inline function.
22054 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
22055 exhausted. Instantiate traverse_record_type on classify_registers and
22056 deal with the case of a structure passed in slot #15 with no FP field
22057 in the first word.
22058 (assign_data_t): New structure type.
22059 (compute_int_layout): New static function.
22060 (compute_fp_layout): Likewise.
22061 (count_registers): New inline function.
22062 (assign_int_registers): New static function.
22063 (assign_fp_registers): Likewise.
22064 (assign_registers): New inline function.
22065 (function_arg_record_value_1): Delete.
22066 (function_arg_record_value_2): Likewise.
22067 (function_arg_record_value_3): Likewise.
22068 (function_arg_record_value): Adjust to above changes. Instantiate
22069 traverse_record_type on count_registers to first count the number of
22070 registers to be used and then on assign_registers to assign them.
22071 (function_arg_union_value): Adjust to above renaming.
22072 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
22073 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
22074 case of a structure passed in slot #15
22075 (sparc_function_arg_advance): Likewise.
22076 (function_arg_padding): Minor tweak.
22077
22078 2016-02-29 Richard Biener <rguenther@suse.de>
22079
22080 PR tree-optimization/69720
22081 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
22082 the adjustment_def path for possibly vectorized defs.
22083 (vect_create_epilog_for_reduction): Handle vectorized initial
22084 defs properly.
22085
22086 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
22087
22088 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
22089
22090 2016-02-27 Jeff Law <law@redhat.com>
22091
22092 Revert
22093 2016-02-26 Richard Biener <rguenther@suse.de>
22094 Jeff Law <law@redhat.com>
22095
22096 PR tree-optimization/69740
22097 * cfghooks.c (remove_edge): Request loop fixups if we delete
22098 an edge that might turn an irreducible loop into a natural
22099 loop.
22100
22101 2016-02-27 Jakub Jelinek <jakub@redhat.com>
22102
22103 PR rtl-optimization/69896
22104 * tree-vect-generic.c (get_compute_type): Avoid single element
22105 vector types.
22106
22107 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
22108
22109 Rename the AArch64 tuning option and related functions to enable the
22110 Newton series for the reciprocal square root to reflect its
22111 approximative characteristic.
22112
22113 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
22114 function to "aarch64_emit_approx_rsqrt".
22115 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
22116 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
22117 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
22118 (xgene1_tunings): Likewise.
22119 (use_rsqrt_p): Likewise.
22120 (aarch64_emit_swrsqrt): Use new function name.
22121 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
22122 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
22123 text explaining this option.
22124 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
22125
22126 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22127
22128 PR target/69969
22129 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22130 complain about -mallow-movmisalign without -mvsx if
22131 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
22132
22133 2016-02-26 Joel Sherrill <joel@rtems.org>
22134
22135 * config.gcc: Add x86_64-*-rtems*.
22136 * config/i386/rtems-64.h: New file.
22137
22138 2016-02-26 Joel Sherrill <joel@rtems.org>
22139
22140 * config.gcc: Add aarch64-*-rtems*.
22141 * config/aarch64/rtems.h: New file.
22142
22143 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
22144
22145 PR target/69946
22146 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
22147 shift amount using %h. Add comment.
22148
22149 2016-02-26 Richard Biener <rguenther@suse.de>
22150 Jeff Law <law@redhat.com>
22151
22152 PR tree-optimization/69740
22153 * cfghooks.c (remove_edge): Request loop fixups if we delete
22154 an edge that might turn an irreducible loop into a natural
22155 loop.
22156
22157 2016-02-26 Martin Jambor <mjambor@suse.cz>
22158
22159 PR middle-end/69920
22160 * tree-sra.c (sra_modify_assign): Do not remove loads of
22161 uninitialized aggregates to SSA_NAMEs.
22162
22163 2016-02-26 Richard Henderson <rth@redhat.com>
22164
22165 PR target/69709
22166 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
22167 pseudo in case the target rtx matches the source of the left
22168 shift.
22169
22170 2016-02-26 Martin Jambor <mjambor@suse.cz>
22171
22172 PR hsa/69568
22173 * hsa.h (hsa_type_packed_p): Declare.
22174 * hsa.c (hsa_type_packed_p): New function.
22175 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
22176 loads.
22177 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
22178 * hsa-brig.c (emit_basic_insn): Likewise.
22179
22180 2016-02-26 Martin Jambor <mjambor@suse.cz>
22181
22182 pr hsa/69674
22183 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
22184 pointers.
22185 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
22186
22187 2016-02-26 Martin Jambor <mjambor@suse.cz>
22188
22189 * hsa.h (is_a_helper): New overload for hsa_op_immed for
22190 hsa_op_with_type operands.
22191 (hsa_unsigned_type_for_type): Declare.
22192 * hsa.c (hsa_unsigned_type_for_type): New function.
22193 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
22194 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
22195 the finalizer. Do not emit extra move.
22196
22197 2016-02-26 Martin Jambor <mjambor@suse.cz>
22198
22199 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
22200 atomic operations in private segment.
22201
22202 2016-02-26 Martin Jambor <mjambor@suse.cz>
22203
22204 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
22205 statements to wi->info. Also disallow omp simd constructs.
22206 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
22207 for not gridifying. Dump special string for omp_for.
22208
22209 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22210
22211 PR target/69245
22212 * config/aarch64/aarch64.c (aarch64_set_current_function):
22213 Save/restore target globals when switching to
22214 target_option_default_node.
22215
22216 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22217
22218 PR target/69613
22219 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
22220 Return 0 if !SHIFT_COUNT_TRUNCATED.
22221
22222 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22223 Eric Botcazou <ebotcazou@adacore.com>
22224
22225 PR rtl-optimization/69891
22226 * dse.c (scan_insn): If we can't figure out memset arguments
22227 or they are non-constant, call clear_rhs_from_active_local_stores.
22228
22229 2016-02-26 Martin Liska <mliska@suse.cz>
22230
22231 * doc/extend.texi: Mention clog10, clog10f an clog10l
22232 in Builtins section.
22233
22234 2016-02-26 Martin Liska <mliska@suse.cz>
22235
22236 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
22237 CHECKING_P.
22238 (resolve_args_picking_1): Likewise.
22239 * dwarf2out.h (struct GTY): Likewise.
22240
22241 2016-02-26 Martin Liska <mliska@suse.cz>
22242
22243 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
22244 with flag_checking.
22245 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22246
22247 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22248 Martin Liska <mliska@suse.cz>
22249
22250 * doc/install.texi: Mention --enable-valgrind-annotations.
22251
22252 2016-02-26 Richard Biener <rguenther@suse.de>
22253
22254 PR tree-optimization/69551
22255 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
22256 looking through aliases adjust DECL_PT_UID to refer to the
22257 ultimate alias target.
22258
22259 2016-02-25 Martin Liska <mliska@suse.cz>
22260
22261 PR middle-end/69919
22262 * alloc-pool.c (after_memory_report): New variable.
22263 * alloc-pool.h (base_pool_allocator ::release): Do not use
22264 the infrastructure if after_memory_report.
22265 * toplev.c (toplev::main): Mark after memory report.
22266
22267 2016-02-25 Richard Biener <rguenther@suse.de>
22268
22269 PR tree-optimization/48795
22270 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
22271
22272 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
22273
22274 PR driver/68463
22275 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
22276 offloading is enabled and -fopenacc or -fopenmp is specified.
22277 (CRTOFFLOADEND): Likewise.
22278 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
22279 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
22280 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
22281 (offload_objects_file_name): New static var.
22282 (tool_cleanup): Remove offload_objects_file_name file.
22283 (find_offloadbeginend): Replace with ...
22284 (find_crtoffloadtable): ... this.
22285 (run_gcc): Remove offload_argc and offload_argv.
22286 Get offload_objects_file_name from -foffload-objects=... option.
22287 Read names of object files with offload from this file, pass them to
22288 compile_images_for_offload_targets. Don't call find_offloadbeginend and
22289 don't pass offloadbegin and offloadend to the linker. Don't pass
22290 offload non-LTO files to the linker, because now they're not claimed.
22291
22292 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
22293
22294 PR ipa/69630
22295 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
22296 on builtin_unreachable.
22297
22298 2016-02-25 Jakub Jelinek <jakub@redhat.com>
22299
22300 PR rtl-optimization/69896
22301 * regcprop.c: Include cfgrtl.h.
22302 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
22303 than remembered mode, either delete it (if noop_move_p), or
22304 treat like copy_p but not noop_p instruction.
22305
22306 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22307
22308 PR debug/69705
22309 * dwarf2out.c (gen_variable_die): Work around buggy LTO
22310 - allow NULL decl for Fortran DW_TAG_common_block variables.
22311
22312 2016-02-24 Jason Merrill <jason@redhat.com>
22313
22314 * common.opt (flifetime-dse): Add -flifetime-dse=1.
22315
22316 2016-02-24 Richard Biener <rguenther@suse.de>
22317 Jakub Jelinek <jakub@redhat.com>
22318
22319 PR middle-end/69760
22320 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
22321 conditionally executed ops to well-defined overflow behavior.
22322
22323 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22324
22325 PR middle-end/69915
22326 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
22327 elements.
22328
22329 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22330
22331 PR rtl-optimization/69886
22332 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
22333 argument. Use it when checking validity of set instructions.
22334 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
22335 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
22336 callsite.
22337 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
22338 * store-motion.c (find_moveable_store): Update
22339 can_assign_to_reg_without_clobbers_p callsite.
22340
22341 2016-02-24 Richard Biener <rguenther@suse.de>
22342
22343 PR middle-end/68963
22344 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
22345 bogus check.
22346 (record_nonwrapping_iv): Do not fall back to the low/high bound
22347 for non-constant IV bases if the stmt is not always executed.
22348
22349 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22350
22351 * config/arm/arm-cores.def (cortex-a32): New entry.
22352 * config/arm/arm-tables.opt: Regenerate.
22353 * config/arm/arm-tune.md: Regenerate.
22354 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
22355 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
22356 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
22357 for -mcpu and -mtune.
22358
22359 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22360
22361 PR target/69875
22362 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
22363 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
22364 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
22365 (atomic_loaddi_1): Delete.
22366 (atomic_loaddi): Rewrite expander using the above changes.
22367
22368 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22369
22370 PR c/69918
22371 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
22372 2 to 3.
22373
22374 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22375 Richard Biener <rguenth@suse.de>
22376
22377 PR middle-end/69909
22378 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
22379 set_mem_attributes if tem is SSA_NAME which got expanded
22380 as a MEM.
22381
22382 2016-02-24 Richard Biener <rguenther@suse.de>
22383
22384 PR tree-optimization/69907
22385 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
22386 end of permutations for BB vectorization.
22387
22388 2016-02-24 Christian Bruel <christian.bruel@st.com>
22389
22390 * config/arm/arm-c.c (arm_option_override): Initialize
22391 target_option_current_node.
22392 * config/arm/arm.c (arm_pragma_target_parse): Replace
22393 build_target_option_node call by target_option_current_node.
22394 Set target_option_current_node.
22395 Fix comments.
22396
22397 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
22398
22399 PR target/69810
22400 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
22401 define_insn_and_split to define_insn.
22402 (zero_extendqi<mode>2_dot2): Same.
22403 (extendqi<mode>2_dot): Same.
22404 (extendqi<mode>2_dot2): Same.
22405
22406 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22407
22408 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
22409 and add bypass for AES{D,E} and AESMC pairs.
22410 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
22411 and AESMC pairs.
22412
22413 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22414
22415 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
22416 series for reciprocal square root in Exynos M1.
22417
22418 2016-02-23 Martin Sebor <msebor@redhat.com>
22419
22420 PR c/69759
22421 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
22422 __builtin_alloca_with_align.
22423
22424 2016-02-23 Richard Henderson <rth@redhat.com>
22425
22426 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
22427 (ix86_register_pragmas): Remove __seg_tls.
22428 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
22429 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
22430 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
22431 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
22432 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
22433 * doc/extend.texi (__seg_tls): Remove item.
22434
22435 2016-02-23 Richard Biener <rguenther@suse.de>
22436
22437 * alloc-pool.h (struct allocation_object): Make id member
22438 conditional on CHECKING_P again.
22439 (get_instance): Adjust.
22440 (base_pool_allocator): Likewise.
22441
22442 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
22443
22444 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
22445 (parallelize_loops): In OpenACC kernels mode, set n_threads to
22446 zero.
22447 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
22448 flag_openacc.
22449 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
22450
22451 2016-02-23 Richard Biener <rguenther@suse.de>
22452
22453 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
22454 * bitmap.h (struct bitmap_usage): Likewise.
22455 (bitmap_move): Declare.
22456 * bitmap.c (register_overhead): Take size_t argument.
22457 (bitmap_move): New function.
22458 * df-problems.c (df_rd_transfer_function): Use bitmap_move
22459 to properly account overhead.
22460 * tree.c (free_node): Use tree_size.
22461
22462 2016-02-23 Jakub Jelinek <jakub@redhat.com>
22463
22464 PR c++/69902
22465 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
22466 when inverting comparison.
22467
22468 PR c/69900
22469 * common.opt (Wunreachable-code): Add Warning flag.
22470
22471 2016-02-23 Mark Wielaard <mjw@redhat.com>
22472 Jakub Jelinek <jakub@redhat.com>
22473
22474 PR c/69911
22475 * cgraphunit.c (check_global_declaration): Check main_input_filename
22476 and DECL_SOURCE_FILE are not NULL.
22477
22478 2016-02-23 Martin Jambor <mjambor@suse.cz>
22479
22480 PR tree-optimization/69666
22481 * tree-sra.c (sra_modify_assign): Do not attempt to create
22482 default_def replacements for unscalarizable regions.
22483
22484 2016-02-20 Mark Wielaard <mjw@redhat.com>
22485
22486 PR c/28901
22487 * cgraphunit.c (check_global_declaration): Check level of
22488 warn_unused_const_variable and main_input_filename.
22489 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
22490 (-Wunused-variable): For C implies -Wunused-const-variable=1.
22491 (-Wunused-const-variable): Explain levels 1 and 2.
22492
22493 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22494
22495 PR target/69888
22496 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
22497 identical arguments. Formatting and spelling fixes.
22498
22499 PR target/69885
22500 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
22501 be specified.
22502
22503 PR target/69894
22504 PR target/69895
22505 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
22506 and m68k-devices.def.
22507 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
22508 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
22509
22510 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
22511
22512 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
22513 and HImode registers.
22514
22515 2016-02-22 Richard Biener <rguenther@suse.de>
22516
22517 PR tree-optimization/69882
22518 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
22519 preserve permutations present because of gaps.
22520 (vect_supported_load_permutation_p): Always continue checking
22521 permutations after vect_attempt_slp_rearrange_stmts.
22522
22523 2016-02-22 Bin Cheng <bin.cheng@arm.com>
22524
22525 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
22526 min_profitable_estimate, rather than min_profitable_iters.
22527
22528 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22529
22530 PR target/69885
22531 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
22532 SImode for last match_operand.
22533
22534 2016-02-22 Martin Liska <mliska@suse.cz>
22535
22536 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
22537 return bitsize - 1 as the return value.
22538
22539 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
22540
22541 PR target/69806
22542 PR target/54089
22543 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
22544 Handle negative shift counts.
22545 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
22546 force_reg on the shift constant.
22547 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
22548 (lshrsi3_d): Handle negative shift counts.
22549
22550 2016-02-22 Richard Biener <rguenther@suse.de>
22551 Tom de Vries <tom@codesourcery.com>
22552
22553 * graph.c: Include dumpfile.h.
22554 (print_graph_cfg): Split into three overloads.
22555 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
22556
22557 2016-02-22 Tom de Vries <tom@codesourcery.com>
22558
22559 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
22560 dump-fn.
22561
22562 2016-02-22 Richard Biener <rguenther@suse.de>
22563
22564 PR ipa/37448
22565 * ipa-inline-transform.c (inline_call): When not updating
22566 overall summaries adjust self size by the growth estimate.
22567 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
22568 hash-set, do not update overall summaries here. Renamed from ...
22569 (inline_to_all_callers): ... this which is now wrapping the
22570 above and performing delayed overall summary update.
22571 (early_inline_small_functions): Delay updating of the overall
22572 summary.
22573
22574 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
22575
22576 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
22577 variable.
22578
22579 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22580
22581 PR driver/69805
22582 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
22583 :%* in %:gt() argument.
22584 (greater_than_spec_func): Adjust for expecting only numbers,
22585 if there are more than two numbers, compare the last two.
22586
22587 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
22588
22589 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
22590 -Wnarrowing with -std.
22591
22592 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22593
22594 PR c++/69851
22595 * expr.c (store_field): Don't use bit-field path if exp is
22596 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
22597 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
22598 and the assignment can be performed by bitwise copy. Formatting
22599 fix.
22600
22601 PR middle-end/69838
22602 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
22603 call copy_reg_eh_region_note_forward on before and/or after sequences
22604 and remove note from insn if it no longer can throw.
22605
22606 PR target/69820
22607 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
22608 if TARGET_AVX512BW.
22609
22610 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22611
22612 * config/s390/vector.md: Add missing commutative operand markers
22613 to the patterns which qualify for one.
22614 * config/s390/vx-builtins.md: Likewise.
22615
22616 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22617
22618 * config/s390/vector.md (VI, VI_QHS): Add single element vector
22619 types to mode iterators.
22620 (vec_double): ... and mode attribute.
22621 * config/s390/vx-builtins.md (non_vec_int): Likewise.
22622
22623 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22624
22625 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
22626 Change the predicate of op2 from nonimmediate to general and let
22627 reload fix it if necessary.
22628
22629 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22630
22631 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
22632
22633 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22634
22635 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
22636 mode.
22637
22638 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22639
22640 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
22641 * config/s390/s390.c (s390_expand_vec_movstr): New function.
22642 * config/s390/s390.md ("movstr<P:mode>"): Call
22643 s390_expand_vec_movstr.
22644
22645 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22646
22647 * config/s390/s390.md: Add missing output modifier for operand 1
22648 to print it as address properly.
22649
22650 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22651
22652 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
22653 * config/s390/2964.md: New file.
22654 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
22655 of insn grouping attributes depending on the CPU level.
22656 (s390_get_unit_mask): New function.
22657 (s390_sched_score): Remove the OOO from the scheduling macros.
22658 Add loop to calculate a score for the instruction mix.
22659 (s390_sched_reorder): Likewise plus improve debug output.
22660 (s390_sched_variable_issue): Rename macros as above. Calculate
22661 the unit distances after actually scheduling an insn. Improve
22662 debug output.
22663 (s390_sched_init): Clear last_scheduled_unit_distance array.
22664 * config/s390/s390.md: Include 2964.md.
22665
22666 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22667
22668 PR target/69671
22669 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
22670 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
22671 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
22672 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
22673 *avx512f_<code>v8div16qi2_mask_1): New insns.
22674
22675 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22676
22677 PR target/68404
22678 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
22679 2016-02-09 change.
22680
22681 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
22682 earlyclobber from target. Use wF constraint for fused memory
22683 address.
22684 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
22685
22686 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22687 Martin Liska <mliska@suse.cz>
22688
22689 PR sanitizer/69863
22690 * cfgexpand.c (asan_sanitize_stack_p): New function.
22691 (partition_stack_vars): Use the function.
22692 (expand_stack_vars): Likewise.
22693 (defer_stack_allocation): Likewise.
22694 (expand_used_vars): Likewise.
22695
22696 2016-02-18 Richard Biener <rguenther@suse.de>
22697
22698 PR middle-end/69553
22699 * fold-const.c (operand_equal_p): Properly compare offsets for
22700 IMAGPART_EXPR and ARRAY_REF.
22701
22702 2016-02-18 Nick Clifton <nickc@redhat.com>
22703
22704 PR target/62254
22705 PR target/69610
22706 * config/arm/arm.c (arm_option_override_internal): Disable
22707 interworking if the target does not support thumb instructions.
22708 (arm_reload_in_hi): Handle the case where a register to register
22709 move needs reloading because there is no simple pattern to handle
22710 it.
22711 (arm_reload_out_hi): Likewise.
22712
22713 2016-02-18 Richard Biener <rguenther@suse.de>
22714
22715 PR middle-end/69854
22716 * match.pd: Don't use fold_binary or fold_unary for folding
22717 constants.
22718
22719 2016-02-17 Jakub Jelinek <jakub@redhat.com>
22720
22721 PR c++/69850
22722 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
22723 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
22724 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
22725 warn on gimple_no_warning_p statements.
22726
22727 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
22728
22729 * doc/extend.texi (C++ Attributes): Correct description of
22730 warn_unused type attribute.
22731
22732 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22733
22734 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
22735 correct instruction.
22736
22737 2016-02-17 Richard Biener <rguenther@suse.de>
22738
22739 PR rtl-optimization/69609
22740 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22741 (find_traces_1_round): When ending a trace update cached priority
22742 of successors.
22743 (bb_to_key): Use cached priority when available.
22744 (copy_bb): Initialize cached priority.
22745 (reorder_basic_blocks_software_trace_cache): Likewise.
22746
22747 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22748
22749 PR target/69161
22750 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22751 New predicate.
22752 (aarch64_comparison_operator): Break overly long line into two.
22753 (aarch64_comparison_operation): Likewise.
22754 * config/aarch64/aarch64.md (cstorecc4): Use
22755 aarch64_comparison_operator_mode instead of
22756 aarch64_comparison_operator.
22757 (cstore<mode>4): Likewise.
22758 (aarch64_cstore<mode>): Likewise.
22759 (*cstoresi_insn_uxtw): Likewise.
22760 (cstore<mode>_neg): Likewise.
22761 (*cstoresi_neg_uxtw): Likewise.
22762
22763 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22764
22765 PR target/69161
22766 * config/arm/predicates.md (arm_comparison_operator_mode):
22767 New predicate.
22768 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22769 instead of arm_comparison_operator.
22770 (*mov_negscc): Likewise.
22771 (*mov_notscc): Likewise.
22772 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22773 (*thumb2_mov_negscc): Likewise.
22774 (*thumb2_mov_negscc_strict_it): Likewise.
22775 (*thumb2_mov_notscc): Likewise.
22776 (*thumb2_mov_notscc_strict_it): Likewise.
22777
22778 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
22779
22780 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22781 Add missing return.
22782
22783 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
22784
22785 * config/visium/visium.c (machine_libfunc_index): New enum.
22786 (machine_libfuncs): New structure.
22787 (visium_libfuncs): New static variable.
22788 (TARGET_INIT_LIBFUNCS): Define to...
22789 (visium_init_libfuncs): ...this. New function.
22790 (expand_block_move_4): Use the appropriate libfunc.
22791 (expand_block_move_2): Likewise.
22792 (expand_block_move_1): Likewise.
22793 (expand_block_set_4): Likewise.
22794 (expand_block_set_2): Likewise.
22795 (expand_block_set_1): Likewise.
22796 (visium_trampoline_init): Likewise.
22797
22798 2016-02-17 Nick Clifton <nickc@redhat.com>
22799
22800 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22801 TI's devices.csv file as of March 2016.
22802
22803 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
22804
22805 PR Target/48344
22806 * opts-global.c (handle_common_deferred_options): Introduce and
22807 initialize two global variables to remember command-line options
22808 specifying a stack-limiting register.
22809 * opts.h: Add extern declarations of the two new global variables.
22810 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22811 variable based on the values of the two new global variables.
22812
22813 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22814
22815 PR c/69835
22816 * common.opt (Wnonnull-compare): New warning.
22817 * doc/invoke.texi (-Wnonnull): Remove text about comparison
22818 of arguments against NULL.
22819 (-Wnonnull-compare): Document.
22820 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22821 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22822 * passes.def (pass_warn_nonnull_compare): Add.
22823 * gimple-ssa-nonnull-compare.c: New file.
22824
22825 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22826
22827 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22828 AARCH64_EXTRA_TUNE_RECIP_SQRT.
22829
22830 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22831
22832 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22833 reciprocal sqrt for -mlow-precision-recip-sqrt.
22834
22835 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22836 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22837
22838 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22839 always use lane loads to construct non-constant vectors.
22840
22841 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22842
22843 * config/aarch64/aarch64.md
22844 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22845 constraints for operand 3.
22846 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22847
22848 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22849 Richard Biener <rguenther@suse.de>
22850
22851 PR tree-optimization/69820
22852 * tree-vect-patterns.c (type_conversion_p): Return false if
22853 *orig_type is unsigned single precision or boolean.
22854 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22855 Formatting fix.
22856
22857 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22858
22859 PR rtl-optimization/69764
22860 PR rtl-optimization/69771
22861 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22862 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22863
22864 2016-02-16 Richard Biener <rguenther@suse.de>
22865
22866 PR tree-optimization/69776
22867 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22868 sets from caller.
22869 (indirect_refs_may_alias_p): Likewise.
22870 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22871 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22872 according to tbaa_p.
22873 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22874 (optimize_stmt): For redundant store discovery do not allow tbaa.
22875
22876 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
22877
22878 PR tree-optimization/69714
22879 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22880 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22881
22882 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
22883
22884 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22885 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22886 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22887 * config/arc/arc.c (arc_init): Check FPU options.
22888 (get_arc_condition_code): Handle new CC_FPU* modes.
22889 (arc_select_cc_mode): Likewise.
22890 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22891 register pair only. Allow access for ARCv2 accumulator.
22892 (gen_compare_reg): Whenever we have FPU support use FPU compare
22893 instructions.
22894 (arc_reorg): Don't generate brcc insns when FPU compare
22895 instructions are involved.
22896 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22897 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22898 floating point emulation.
22899 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22900 (REVERSE_CONDITION): Add new CC_FPU* modes.
22901 (TARGET_FP_SP_BASE): Define.
22902 (TARGET_FP_DP_BASE): Likewise.
22903 (TARGET_FP_SP_FUSED): Likewise.
22904 (TARGET_FP_DP_FUSED): Likewise.
22905 (TARGET_FP_SP_CONV): Likewise.
22906 (TARGET_FP_DP_CONV): Likewise.
22907 (TARGET_FP_SP_SQRT): Likewise.
22908 (TARGET_FP_DP_SQRT): Likewise.
22909 (TARGET_FP_DP_AX): Likewise.
22910 * config/arc/arc.md (ARCV2_ACC): New constant.
22911 (type): New fpu type attribute.
22912 (SDF): Conditional iterator.
22913 (cstore<mode>, cbranch<mode>): Change expand condition.
22914 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22915 handles FPU/FPX cases as well.
22916 * config/arc/arc.opt (mfpu): New option.
22917 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22918 Renamed.
22919 (adddf3, muldf3, subdf3): Removed.
22920 * config/arc/predicates.md (proper_comparison_operator): Recognize
22921 CC_FPU* modes.
22922 * config/arc/fpu.md: New file.
22923 * doc/invoke.texi (ARC Options): Document mfpu option.
22924
22925 2016-02-16 Richard Biener <rguenther@suse.de>
22926
22927 PR rtl-optimization/69291
22928 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22929 noce_operand_ok check.
22930
22931 2016-02-16 Tom de Vries <tom@codesourcery.com>
22932
22933 PR lto/67709
22934 * omp-low.c (simd_clone_create): Remove call to
22935 symtab->call_cgraph_insertion_hooks.
22936
22937 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22938
22939 PR tree-optimization/69802
22940 * tree-ssa-reassoc.c (update_range_test): If op is
22941 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22942 op == 1 test of precision 1 integral op, otherwise handle
22943 that case as op itself. Fix up formatting.
22944 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22945 up formatting.
22946
22947 2016-02-16 Richard Biener <rguenther@suse.de>
22948
22949 PR tree-optimization/69586
22950 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22951 types for conversion sources.
22952
22953 2016-02-16 Richard Biener <rguenther@suse.de>
22954
22955 PR middle-end/69801
22956 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22957 mask OEP_ADDRESS_OF.
22958
22959 2016-02-16 Alan Modra <amodra@gmail.com>
22960
22961 PR target/68973
22962 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22963 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22964 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
22965 (p8_mtvsrwz): New.
22966 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
22967 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
22968 (p8_fmrgow_<mode>): Likewise.
22969 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
22970 changes.
22971 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
22972 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
22973 to use movdi_internal64. Remove op0_di.
22974 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
22975
22976 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
22977
22978 Add support for the FCCMP insn types
22979
22980 * config/aarch64/aarch64.md (fccmp): Change insn type.
22981 (fccmpe): Likewise.
22982 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
22983 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
22984 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
22985 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
22986 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
22987 * config/arm/types.md (fccmps): Add new insn type.
22988 (fccmpd): Likewise.
22989
22990 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
22991
22992 * alias.c (get_alias_set): Fix a typo in comment.
22993
22994 2016-02-15 Richard Biener <rguenther@suse.de>
22995
22996 PR tree-optimization/69595
22997 * match.pd: Complete range test simplification to true.
22998
22999 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
23000
23001 PR rtl-optimization/69648
23002 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
23003 pic_offset_table_rtx.
23004
23005 PR rtl-optimization/69752
23006 * ira.c (update_equiv_regs): When looking for more than a single SET,
23007 also take other side effects into account.
23008
23009 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23010
23011 * config/s390/s390.c (s390_function_profiler): Add a new sequence
23012 for z900+ CPUs in 31-bit mode.
23013
23014 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
23015
23016 * common/config/s390/s390-common.c (s390_supports_split_stack):
23017 New function.
23018 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
23019 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
23020 * config/s390/s390.c (struct machine_function): New field
23021 split_stack_varargs_pointer.
23022 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
23023 in s390_emit_prologue.
23024 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
23025 vararg pointer.
23026 (morestack_ref): New global.
23027 (SPLIT_STACK_AVAILABLE): New macro.
23028 (s390_expand_split_stack_prologue): New function.
23029 (s390_live_on_entry): New function.
23030 (s390_va_start): Use split-stack vararg pointer if appropriate.
23031 (s390_asm_file_end): Emit the split-stack note sections.
23032 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
23033 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
23034 (UNSPECV_SPLIT_STACK_CALL): New unspec.
23035 (UNSPECV_SPLIT_STACK_DATA): New unspec.
23036 (split_stack_prologue): New expand.
23037 (split_stack_space_check): New expand.
23038 (split_stack_data): New insn.
23039 (split_stack_call): New expand.
23040 (split_stack_call_*): New insn.
23041 (split_stack_cond_call): New expand.
23042 (split_stack_cond_call_*): New insn.
23043
23044 2016-02-15 Richard Biener <rguenther@suse.de>
23045
23046 PR tree-optimization/69783
23047 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23048 Add trivially correct cases.
23049
23050 2016-02-15 Tom de Vries <tom@codesourcery.com>
23051
23052 PR lto/69655
23053 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
23054 do_force_output.
23055 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
23056
23057 2016-02-15 Richard Biener <rguenther@suse.de>
23058
23059 PR tree-optimization/69776
23060 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
23061 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
23062 indicate whether we can use TBAA to disambiguate against stores.
23063 Use alias-set zero if not.
23064 (visit_reference_op_store): Do not use TBAA when looking up
23065 redundant stores.
23066 * tree-ssa-pre.c (compute_avail): Use TBAA here.
23067 (eliminate_dom_walker::before_dom_children): But not when looking
23068 up redundant stores.
23069
23070 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
23071
23072 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
23073
23074 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23075
23076 * config/i386/znver1.md
23077 (znver1_pop, znver1_pop_mem,
23078 znver1_load_imov_double_store,
23079 znver1_load_imov_direct_store,
23080 znver1_load_imov_direct_load,
23081 znver1_load_imov_double_load): Add new.
23082 (znver1_insn, znver1_insn_load): Add icmov type.
23083 (znver1_sseavx_fma,
23084 znver1_sseavx_fma_load,
23085 znver1_avx256_fma,
23086 znver1_avx256_fma_load): Fix pipe usage.
23087
23088 2016-02-14 Alan Modra <amodra@gmail.com>
23089
23090 PR target/68973
23091 * reload.c (find_reloads_address_1): For pre/post-inc/dec
23092 with an invalid hard reg, reload just the reg not the entire
23093 pre/post-inc/dec address expression.
23094
23095 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23096
23097 PR target/67260
23098 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
23099 fixed R1_REG scratch reg.
23100 (sibcall_value_pcrel_fdpic): Likewise.
23101
23102 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23103
23104 PR target/67636
23105 PR target/64345
23106 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
23107
23108 2016-02-12 Walter Lee <walt@tilera.com>
23109
23110 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
23111 * config/tilegx/t-tilegx: Likewise.
23112
23113 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23114
23115 PR other/69554
23116 * diagnostic-show-locus.c (struct line_span): New struct.
23117 (layout::get_first_line): Delete.
23118 (layout::get_last_line): Delete.
23119 (layout::get_num_line_spans): New member function.
23120 (layout::get_line_span): Likewise.
23121 (layout::print_heading_for_line_span_index_p): Likewise.
23122 (layout::get_expanded_location): Likewise.
23123 (layout::calculate_line_spans): Likewise.
23124 (layout::m_first_line): Delete.
23125 (layout::m_last_line): Delete.
23126 (layout::m_line_spans): New field.
23127 (layout::layout): Update comment. Replace m_first_line and
23128 m_last_line with m_line_spans, replacing their initialization
23129 with a call to calculate_line_spans.
23130 (diagnostic_show_locus): When printing source lines and
23131 annotations, rather than looping over a single span
23132 of lines, instead loop over each line_span within
23133 the layout, with an inner loop over the lines within them.
23134 Call the context's start_span callback when changing line spans.
23135 * diagnostic.c (diagnostic_initialize): Initialize start_span.
23136 (diagnostic_build_prefix): Break out the building of the location
23137 part of the string into...
23138 (diagnostic_get_location_text): ...this new function, rewriting
23139 it from nested ternary expressions to a sequence of "if"
23140 statements.
23141 (default_diagnostic_start_span_fn): New function.
23142 * diagnostic.h (diagnostic_start_span_fn): New typedef.
23143 (diagnostic_context::start_span): New field.
23144 (default_diagnostic_start_span_fn): New prototype.
23145
23146 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23147
23148 PR driver/69779
23149 * gcc.c (driver::finalize): Fix cleanup of "specs".
23150
23151 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23152
23153 PR driver/69265
23154 PR driver/69453
23155 * gcc.c (driver::driver): Initialize m_option_suggestions.
23156 (driver::~driver): Clean up m_option_suggestions.
23157 (suggest_option): Convert to...
23158 (driver::suggest_option): ...this, and split out into
23159 driver::build_option_suggestions and find_closest_string.
23160 (driver::build_option_suggestions): New function, from
23161 first half of suggest_option. Special-case
23162 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
23163 the sanitizer_opts array. For options of enum types, add the
23164 various enum values to the candidate strings.
23165 (driver::handle_unrecognized_options): Remove "const".
23166 * gcc.h (driver::handle_unrecognized_options): Likewise.
23167 (driver::build_option_suggestions): New decl.
23168 (driver::suggest_option): New decl.
23169 (driver::m_option_suggestions): New field.
23170 * opts-common.c (add_misspelling_candidates): New function.
23171 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
23172 and make non-static.
23173 * opts.h (sanitizer_opts): New array decl.
23174 (add_misspelling_candidates): New function decl.
23175 * spellcheck.c (find_closest_string): New function.
23176 * spellcheck.h (find_closest_string): New function decl.
23177
23178 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23179
23180 PR rtl-optimization/69764
23181 PR rtl-optimization/69771
23182 * optabs.c (expand_binop_directly): For shift_optab_p, force
23183 convert_modes with VOIDmode if xop1 has VOIDmode.
23184
23185 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
23186
23187 PR target/69729
23188 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
23189 to correctly determine instrumentation thunks.
23190
23191 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23192
23193 PR ipa/69241
23194 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
23195 type by reference, force lhs on the call.
23196
23197 PR ipa/68672
23198 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
23199 Compute retval and retbnd early in all cases if split_part_return_p
23200 and return_bb is not EXIT. Remove all clobber stmts and reset
23201 all debug stmts that refer to SSA_NAMEs defined in split part,
23202 except if it is retval, in that case replace the old retval with the
23203 lhs of the call to the split part.
23204
23205 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23206
23207 revert:
23208 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23209
23210 PR middle-end/66726
23211 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23212 whose result is used in PHI.
23213 (maybe_optimize_range_tests): Likewise.
23214 (final_range_test_p): Likweise.
23215
23216 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23217
23218 PR middle-end/66726
23219 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23220 whose result is used in PHI.
23221 (maybe_optimize_range_tests): Likewise.
23222 (final_range_test_p): Likweise.
23223
23224 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23225
23226 * cgraph.c: Spelling fixes - behaviour -> behavior and
23227 neighbour -> neighbor.
23228 * target.def: Likewise.
23229 * sel-sched.c: Likewise.
23230 * config/mips/mips.c: Likewise.
23231 * config/arc/arc.md: Likewise.
23232 * config/arm/cortex-a57.md: Likewise.
23233 * config/arm/arm.c: Likewise.
23234 * config/arm/neon.md: Likewise.
23235 * config/arm/arm-c.c: Likewise.
23236 * config/vms/vms-c.c: Likewise.
23237 * config/s390/s390.c: Likewise.
23238 * config/i386/znver1.md: Likewise.
23239 * config/i386/i386.c: Likewise.
23240 * config/ia64/hpux-unix2003.h: Likewise.
23241 * config/msp430/msp430.md: Likewise.
23242 * config/rx/rx.c: Likewise.
23243 * config/rx/rx.md: Likewise.
23244 * config/aarch64/aarch64-simd.md: Likewise.
23245 * config/aarch64/aarch64.c: Likewise.
23246 * config/nvptx/nvptx.c: Likewise.
23247 * config/bfin/bfin.c: Likewise.
23248 * config/cris/cris.opt: Likewise.
23249 * config/rs6000/rs6000.c: Likewise.
23250 * target.h: Likewise.
23251 * spellcheck.c: Likewise.
23252 * ira-build.c: Likewise.
23253 * tree-inline.c: Likewise.
23254 * builtins.c: Likewise.
23255 * lra-constraints.c: Likewise.
23256 * explow.c: Likewise.
23257 * hwint.h: Likewise.
23258 * targhooks.c: Likewise.
23259 * tree-vect-data-refs.c: Likewise.
23260 * expr.c: Likewise.
23261 * doc/tm.texi: Likewise.
23262 * doc/extend.texi: Likewise.
23263 * doc/install.texi: Likewise.
23264 * doc/md.texi: Likewise.
23265 * tree-ssa-tail-merge.c: Likewise.
23266 * sched-int.h: Likewise.
23267 * match.pd: Likewise.
23268 * sched-ebb.c: Likewise.
23269 * target.def (omit_struct_return_reg): Likewise.
23270 * gimple-ssa-isolate-paths.c: Likewise.
23271 (find_implicit_erroneous_behaviour): Renamed to...
23272 (find_implicit_erroneous_behavior): ... this.
23273 (find_explicit_erroneous_behaviour): Renamed to...
23274 (find_explicit_erroneous_behavior): ... this.
23275 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
23276
23277 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
23278
23279 PR rtl-optimization/64682
23280 PR rtl-optimization/69567
23281 PR rtl-optimization/69737
23282 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
23283 in I2 as well, just lose it.
23284
23285 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23286
23287 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
23288 New variable.
23289 (aarch64_last_printed_tune_string): Likewise.
23290 (aarch64_declare_function_name): Only output .arch assembler
23291 directive if it will be different from the previously output
23292 directive. Same for .tune comment but only if -dA is set.
23293 (aarch64_start_file): New function.
23294 (TARGET_ASM_FILE_START): Define.
23295
23296 2016-02-11 David Malcolm <dmalcolm@redhat.com>
23297
23298 PR plugins/69758
23299 * Makefile.in (PLUGIN_HEADERS): Add params.list.
23300
23301 2016-02-11 Jakub Jelinek <jakub@redhat.com>
23302
23303 PR target/65313
23304 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
23305 -Wmaybe-uninitialized warning.
23306
23307 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
23308
23309 PR target/69713
23310 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
23311
23312 2016-02-11 Richard Biener <rguenther@suse.de>
23313
23314 PR rtl-optimization/69291
23315 * ifcvt.c (noce_try_store_flag_constants): Do not allow
23316 subexpressions affected by changing the result.
23317
23318 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
23319
23320 PR target/69148
23321 * lra-constraints.c (curr_insn_transform): Find in/out operands
23322 for secondary memory moves. Update dups.
23323
23324 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
23325
23326 PR tree-optimization/69652
23327 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
23328 to nested loop, did source re-formatting, skip debug statements,
23329 add check on statement with volatile operand, remove dead scalar
23330 statements.
23331
23332 2016-02-10 Jakub Jelinek <jakub@redhat.com>
23333 Patrick Palka <ppalka@gcc.gnu.org>
23334
23335 PR ipa/69241
23336 PR c++/69649
23337 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
23338 calls if the return type is TREE_ADDRESSABLE.
23339 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
23340 * ipa-split.c (split_function): Fix doubled "we" in comment.
23341 Use void return type for the split part even if
23342 !split_point->split_part_set_retval.
23343
23344 2016-02-10 Bin Cheng <bin.cheng@arm.com>
23345
23346 PR tree-optimization/68021
23347 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
23348 when computing the value of biv cand by itself.
23349
23350 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23351
23352 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
23353 (cortexa57_tunings): Likewise.
23354 (cortexa72_tunings): Likewise.
23355 (arch_macro_fusion_pair_p): Add support for AES fusion.
23356 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
23357 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
23358 Allow virtual registers before reload so early scheduling works.
23359 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
23360 correct latency and pipeline.
23361 (cortex_a57_crypto_complex): Likewise.
23362 (cortex_a57_crypto_xor): Likewise.
23363 (define_bypass): Add AES bypass.
23364
23365 2016-02-10 Richard Biener <rguenther@suse.de>
23366
23367 PR tree-optimization/69726
23368 * passes.def: Add DCE pass before late uninit.
23369 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
23370 really fixup if-conversions job.
23371
23372 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23373
23374 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
23375 (arm_cortex_a57_tune): Likewise.
23376 (aarch_macro_fusion_pair_p): Add support for AES fusion.
23377 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
23378
23379 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
23380
23381 * timevar.def (TV_PHASE_DBGINFO): Delete.
23382 (TV_PHASE_CHECK_DBGINFO): Likewise.
23383 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
23384
23385 2016-02-10 Richard Biener <rguenther@suse.de>
23386
23387 PR tree-optimization/69719
23388 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23389 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
23390
23391 2016-02-09 Andrew Pinski <apinski@cavium.com>
23392
23393 PR tree-opt/69282
23394 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
23395 get_vcond_mask_icode returns false.
23396
23397 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23398
23399 PR target/68404
23400 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
23401 an ADDIS that adds a pointer to a large constant that sets the
23402 upper16 bits with a load operation.
23403
23404 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23405
23406 PR target/68532
23407 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
23408 order.
23409 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
23410 endian.
23411 (vzipq_s16): Likewise.
23412 (vzipq_s32): Likewise.
23413 (vzipq_f32): Likewise.
23414 (vzipq_u8): Likewise.
23415 (vzipq_u16): Likewise.
23416 (vzipq_u32): Likewise.
23417 (vzipq_p8): Likewise.
23418 (vzipq_p16): Likewise.
23419
23420 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23421
23422 PR target/68532
23423 * config/arm/arm.c (neon_endian_lane_map): New function.
23424 (neon_vector_pair_endian_lane_map): New function.
23425 (arm_evpc_neon_vuzp): Allow for big endian lane order.
23426 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
23427 endian.
23428 (vuzpq_s16): Likewise.
23429 (vuzpq_s32): Likewise.
23430 (vuzpq_f32): Likewise.
23431 (vuzpq_u8): Likewise.
23432 (vuzpq_u16): Likewise.
23433 (vuzpq_u32): Likewise.
23434 (vuzpq_p8): Likewise.
23435 (vuzpq_p16): Likewise.
23436
23437 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
23438
23439 PR target/69634
23440 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
23441 debug insns.
23442
23443 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
23444
23445 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
23446 truncate const_int operand 1 to QImode.
23447
23448 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
23449
23450 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
23451 corresponding to an abnormal edge.
23452
23453 2016-02-09 Tom de Vries <tom@codesourcery.com>
23454
23455 PR tree-optimization/69599
23456 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
23457 function.
23458 (find_func_aliases_for_builtin_call, find_func_clobbers)
23459 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
23460 partition.
23461
23462 2016-02-09 Richard Biener <rguenther@suse.de>
23463
23464 PR tree-optimization/69715
23465 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
23466 LHS on calls as non-rewritable.
23467
23468 2016-02-09 Tom de Vries <tom@codesourcery.com>
23469
23470 PR lto/69707
23471 * lto-wrapper.c (append_diag_options): New function.
23472 (compile_offload_image): Call append_diag_options.
23473
23474 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
23475
23476 PR other/69722
23477 * doc/extend.texi (Flag Output Operands): Correct sectioning.
23478 Minor copy-edit to fix verb tenses.
23479
23480 2016-02-08 Jakub Jelinek <jakub@redhat.com>
23481
23482 PR tree-optimization/69209
23483 * ipa-split.c (split_function): If split part is not
23484 returning retval, retval has gimple type but is not
23485 gimple value, force it into a SSA_NAME first.
23486
23487 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
23488
23489 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
23490 outdated section.
23491
23492 2016-02-08 Jason Merrill <jason@redhat.com>
23493
23494 PR c++/69631
23495 * convert.c (convert_to_integer_1): Check dofold on truncation
23496 distribution.
23497 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
23498 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
23499 Rename from *_nofold.
23500 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
23501 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
23502
23503 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
23504
23505 PR target/60410
23506 * tree.c (build_common_tree_nodes): Remove short_double argument.
23507 All callers changed.
23508 * tree.h (build_common_tree_nodes): Adjust declaration.
23509 * doc/invoke.texi (-fshort-double): Remove documentation.
23510 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23511 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
23512 * lto-wrapper.c (merge_and_complain, append_compiler_options)
23513 (append_linker_options): Don't handle OPT_fshort_double.
23514
23515 PR rtl-optimization/68730
23516 * lra-remat.c (insn_to_cand_activation): New static variable.
23517 (lra_remat): Allocate and free it.
23518 (create_cand): New arg activation. Initialize a field in
23519 insn_to_cand_activation if it is nonnull.
23520 (create_cands): Pass the activation insn to create_cand when making
23521 a candidate involving an output reload. Reorganize code a little.
23522 (do_remat): Keep track of active status of candidates in a separate
23523 bitmap.
23524
23525 2016-02-08 Richard Biener <rguenther@suse.de>
23526
23527 PR tree-optimization/69719
23528 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23529 Properly use absolute of the difference of the two offsets to
23530 compare or adjust the segment length.
23531
23532 2016-02-08 Richard Biener <rguenther@suse.de>
23533 Jeff Law <law@redhat.com>
23534
23535 PR target/68273
23536 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
23537 types for anonymous SSA names.
23538
23539 2016-02-08 Richard Biener <rguenther@suse.de>
23540
23541 PR rtl-optimization/69274
23542 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
23543
23544 2016-02-08 Jeff Law <law@redhat.com>
23545
23546 PR tree-optimization/65917
23547 * tree-ssa-dom.c (record_temporary_equivalences): Record both
23548 equivalences from if (x == y) style conditionals.
23549 (loop_depth_of_name): Remove.
23550 (record_equality): Remove loop depth check.
23551 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
23552 (const_and_copies::record_const_or_copy_raw): New member function.
23553 * tree-ssa-scopedtables.c
23554 (const_and_copies::record_const_or_copy_raw): New, factored out of
23555 (const_and_copies::record_const_or_copy): Call new member function.
23556
23557 2016-02-05 Jeff Law <law@redhat.com>
23558
23559 PR tree-optimization/68541
23560 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
23561 (count_stmts_in_block): New function.
23562 (poor_ifcvt_candidate_code): Likewise.
23563 (is_feasible_trace): Add some heuristics to determine when path
23564 splitting is profitable.
23565 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
23566 is a diamond with a single exit.
23567
23568 2016-02-05 Martin Sebor <msebor@redhat.com>
23569
23570 PR c++/69662
23571 * doc/invoke.texi: Update -Wplacement-new to take an optional
23572 argument.
23573
23574 2016-02-06 Richard Henderson <rth@redhat.com>
23575
23576 PR c/69643
23577 * tree.c (tree_nop_conversion_p): Do not strip casts into or
23578 out of non-standard address spaces.
23579
23580 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23581
23582 PR rtl-optimization/69691
23583 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
23584
23585 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
23586
23587 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
23588 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
23589 (*ieee128_mfvsrd_64bit): Likewise.
23590 (*ieee128_mfvsrd_32bit): Likewise.
23591
23592 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
23593
23594 PR target/69369
23595 Revert r232560:
23596 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23597
23598 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23599 instrumented_version.
23600
23601 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
23602
23603 * doc/invoke.texi (Optimize Options): In table of --param options
23604 rename second occurrence of tracer-min-branch-ratio to
23605 tracer-min-branch-probability, rename
23606 tracer-min-branch-ratio-feedback to
23607 tracer-min-branch-probability-feedback and clarify description,
23608 rename sched-spec-state-edge-prob-cutoff to
23609 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
23610 to selsched-insns-to-rename, rename lto-minpartition to
23611 lto-min-partition, delete reorder-blocks-duplicate and
23612 reorder-blocks-duplicate-feedback.
23613
23614 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23615
23616 * config/s390/s390.c (s390_register_info_set_ranges): Remove
23617 superfluous loops.
23618
23619 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
23620
23621 * doc/extend.texi: S/390: Correct some typos.
23622
23623 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23624
23625 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
23626
23627 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23628
23629 PR target/69625
23630 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
23631 (s390_register_info_gprtofpr): Use new macros above.
23632 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
23633 its name.
23634 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
23635 its name. Adjust restore and save gpr ranges.
23636 (s390_register_info_set_ranges): New function.
23637 (s390_register_info): Use new macros above. Call
23638 s390_register_info_set_ranges.
23639 (s390_optimize_register_info): Likewise.
23640 (s390_hard_regno_rename_ok): Use new macros.
23641 (s390_hard_regno_scratch_ok): Likewise.
23642 (s390_emit_epilogue): Likewise.
23643 (s390_can_use_return_insn): Likewise.
23644 (s390_optimize_prologue): Likewise.
23645 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
23646
23647 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23648
23649 PR bootstrap/69677
23650 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
23651 alignment fixes.
23652 (ix86_option_override_internal): Disable TARGET_STV even for
23653 -m{incoming,preferred}-stack-boundary=3.
23654
23655 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23656
23657 * config.gcc: Mark deprecated rtems targets as obsolete.
23658
23659 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
23660
23661 PR rtl-optimization/64682
23662 PR rtl-optimization/69567
23663 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
23664 before I2 only if the register is both used and set in I2.
23665
23666 2016-02-04 DJ Delorie <dj@redhat.com>
23667
23668 * config/msp430/msp430.c (msp430_start_function): Add function type.
23669
23670 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23671
23672 PR fortran/69368
23673 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
23674
23675 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
23676
23677 PR rtl-optimization/69577
23678 Revert:
23679 2015-10-29 Richard Henderson <rth@redhat.com>
23680
23681 PR target/68124
23682 PR rtl-opt/67609
23683 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
23684 sse check to the exact conditions of PR 67609.
23685
23686 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
23687
23688 PR target/69667
23689 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
23690 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
23691 not allowed into the traditional Altivec registers.
23692 (movtd_64bit_nodm): Likewise.
23693 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
23694
23695 2016-02-04 David Malcolm <dmalcolm@redhat.com>
23696
23697 * config/aarch64/cortex-a57-fma-steering.c
23698 (aarch64_register_fma_steering): Remove "static" from arguments
23699 to register_pass.
23700
23701 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
23702
23703 PR target/69619
23704 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
23705 twice when complex.
23706
23707 2016-02-04 Mike Frysinger <vapier@gentoo.org>
23708
23709 * doc/invoke.texi: Delete -mno-fma4.
23710
23711 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
23712
23713 PR rtl-optimization/69577
23714 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
23715 (find_subregs_of_mode): Update accordingly. Iterate over partial
23716 definitions.
23717
23718 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
23719
23720 * config/arm/arm-protos.h (neon_reinterpret): Remove.
23721 * config/arm/arm.c (neon_reinterpret): Remove.
23722 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
23723 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
23724 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
23725 vreinterpretti): Remove.
23726 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
23727 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
23728 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
23729 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
23730 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
23731 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
23732 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
23733 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
23734 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
23735 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
23736 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
23737 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
23738 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
23739 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23740 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23741 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23742 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23743 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23744 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23745 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23746 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23747 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23748 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23749 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23750 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23751 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23752 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23753 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23754 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23755 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23756 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23757 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23758 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23759 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23760 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23761 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23762 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23763 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23764 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23765 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23766 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23767 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23768 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23769 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23770 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23771 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23772 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23773 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23774 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23775 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23776 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23777 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23778 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23779 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23780 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23781 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23782 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23783 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23784 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23785 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23786 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23787 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23788 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23789 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23790 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23791 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23792 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23793 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23794 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23795 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23796 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23797 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23798 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23799 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23800 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23801 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23802 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23803 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23804 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23805 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23806 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23807 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23808 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23809 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23810 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23811 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23812 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23813 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23814 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23815 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23816 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23817 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23818 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23819 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23820 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23821 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23822 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23823 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23824 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23825 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23826 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23827 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23828 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23829
23830 2016-02-04 Martin Liska <mliska@suse.cz>
23831
23832 PR sanitizer/69276
23833 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23834 that are gimple_store_p.
23835 (maybe_instrument_call): Likewise.
23836
23837 2016-02-04 Bin Cheng <bin.cheng@arm.com>
23838
23839 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23840 register scaling out of memory reference and comment why.
23841
23842 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23843
23844 PR target/65932
23845 PR target/67714
23846 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23847 folding the source of a SET.
23848
23849 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23850
23851 PR target/65932
23852 PR target/67714
23853 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23854 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23855
23856 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
23857
23858 PR target/65932
23859 PR target/67714
23860 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23861 HImode.
23862
23863 2016-02-04 Christian Bruel <christian.bruel@st.com>
23864
23865 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23866 * config/arm/arm.c (arm_set_current_function): Likewise.
23867
23868 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23869 Ilya Enkovich <enkovich.gnu@gmail.com>
23870 H.J. Lu <hongjiu.lu@intel.com>
23871
23872 PR target/69454
23873 * config/i386/i386.c (convert_scalars_to_vector): Remove
23874 stack alignment fixes.
23875 (ix86_option_override_internal): Disable TARGET_STV if stack
23876 might not be aligned enough.
23877 (ix86_minimum_alignment): Assert that TARGET_STV is false.
23878
23879 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
23880
23881 * config/i386/x86-tune.def: Disable default prefetching
23882 for -march=znver1.
23883
23884 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23885 Vladimir Makarov <vmakarov@redhat.com>
23886
23887 PR target/69461
23888 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23889 in validating fused toc addresses.
23890
23891 2016-02-03 Jakub Jelinek <jakub@redhat.com>
23892
23893 PR c/69627
23894 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23895 range->m_caret fields if range->m_show_caret_p is false.
23896
23897 PR target/69644
23898 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23899 Force oldval into register if it does not satisfy reg_or_short_operand
23900 predicate. Fix up formatting.
23901
23902 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
23903 Alexandre Oliva <aoliva@redhat.com>
23904
23905 PR target/69461
23906 * lra-constraints.c (simplify_operand_subreg): Check additionally
23907 address validity after potential reloading.
23908 (process_address_1): Check insns validity. In case of failure do
23909 nothing.
23910
23911 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
23912
23913 PR target/69118
23914 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23915 Fix target.
23916
23917 2016-02-02 Jakub Jelinek <jakub@redhat.com>
23918
23919 * wide-int.cc (canonize_uhwi): New function.
23920 (wi::divmod_internal): Use it.
23921
23922 2016-02-02 James Norris <jnorris@codesourcery.com>
23923
23924 * gimplify.c (omp_notice_variable): Add usage check.
23925
23926 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
23927
23928 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23929 like LE, GE, LT, GT when emitting relational operator.
23930
23931 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23932
23933 * ira-costs.c (find_costs_and_classes): Add extra argument.
23934 * target.def (ira_change_pseudo_allocno_class): Add parameter.
23935 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23936 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23937 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23938 Add best_class parameter, and return it if not ALL_REGS.
23939 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23940 Add parameter.
23941 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23942 Update target hook.
23943
23944 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23945
23946 * config/aarch64/aarch64.c
23947 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23948 (aarch64_ira_change_pseudo_allocno_class): New function.
23949
23950 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
23951
23952 PR target/67032
23953 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23954
23955 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23956
23957 * config/avr/avr.c (avr_option_override): Set
23958 PARAM_ALLOW_STORE_DATA_RACES to 1.
23959
23960 2016-02-02 Richard Biener <rguenther@suse.de>
23961
23962 PR tree-optimization/69595
23963 * match.pd: Add range test simplifications to true/false.
23964
23965 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
23966
23967 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
23968 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
23969 instead.
23970
23971 2016-02-02 Richard Biener <rguenther@suse.de>
23972
23973 PR tree-optimization/69606
23974 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
23975 info on the result before moving a stmt.
23976
23977 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
23978
23979 PR middle-end/68542
23980 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
23981 branch with vector comparison.
23982 * config/i386/sse.md (VI48_AVX): New mode iterator.
23983 (define_expand "cbranch<mode>4): Add support for conditional branch
23984 with vector comparison.
23985 * tree-vect-loop.c (optimize_mask_stores): New function.
23986 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23987 has_mask_store field of vect_info.
23988 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
23989 vectorized loops having masked stores after vec_info destroy.
23990 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
23991 correspondent macros.
23992 (optimize_mask_stores): Add prototype.
23993
23994 2016-02-02 Alan Modra <amodra@gmail.com>
23995
23996 PR target/69548
23997 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
23998 allow subregs.
23999
24000 2016-02-02 Alan Modra <amodra@gmail.com>
24001
24002 PR target/68662
24003 * config/rs6000/rs6000.c (need_toc_init): New var, set it
24004 whenever toc_label_name used.
24005 (rs6000_file_start): Don't set up toc section here,
24006 (rs6000_output_function_epilogue): do so here instead,
24007 (rs6000_xcoff_file_start): and here.
24008 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
24009 (load_toc_aix_di): Likewise.
24010
24011 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24012
24013 PR rtl-optimization/69592
24014 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
24015 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
24016 (num_sign_bit_copies_binary_arith_p): New inline function.
24017 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
24018
24019 2016-02-01 Jeff Law <law@redhat.com>
24020
24021 PR tree-optimization/69580
24022 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
24023 * tree-ssa-threadbackward.c
24024 (fsm_find_control_statement_thread_paths): Do not try to walk
24025 through large PHI nodes.
24026
24027 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24028
24029 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
24030 when count is incremented above limit, don't analyze further
24031 insns afterwards.
24032
24033 * omp-low.c (oacc_parse_default_dims): Avoid
24034 -Wsign-compare warning, make sure value fits into int
24035 rather than just unsigned int.
24036
24037 2016-02-01 Bin Cheng <bin.cheng@arm.com>
24038
24039 PR tree-optimization/67921
24040 * fold-const.c (split_tree): New parameters. Convert pointer
24041 type variable part to proper type before negating.
24042 (fold_binary_loc): Pass new arguments to split_tree.
24043
24044 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
24045
24046 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
24047 (nvptx_goacc_validate_dims): Extend to handle global defaults.
24048 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
24049 * doc/tm.texti: Rebuilt.
24050 * doc/invoke.texi (fopenacc-dim): Document.
24051 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
24052 (append_compiler_options): Likewise.
24053 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
24054 (oacc_parse_default_dims): New.
24055 (oacc_validate_dims): Add USED arg. Select non-unity default when
24056 possible.
24057 (oacc_loop_fixed_partitions): Return mask of used partitions.
24058 (oacc_loop_auto_partitions): Emit dump info.
24059 (oacc_loop_partition): Return mask of used partitions.
24060 (execute_oacc_device_lower): Parse default dimension arg. Adjust
24061 loop partitioning and validation calls.
24062
24063 2016-02-01 Richard Biener <rguenther@suse.de>
24064
24065 PR middle-end/69556
24066 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
24067
24068 2016-02-01 Richard Biener <rguenther@suse.de>
24069
24070 PR tree-optimization/69574
24071 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
24072 of asserting return chrec_dont_know.
24073
24074 2016-02-01 Martin Liska <mliska@suse.cz>
24075
24076 * mem-stats-traits.h: Add copyright header.
24077 * mem-stats.h: Likewise.
24078
24079 2016-02-01 Richard Biener <rguenther@suse.de>
24080
24081 PR tree-optimization/69579
24082 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
24083 Do not propagate through abnormal PHI results.
24084
24085 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
24086
24087 * postreload.c (reload_cse_simplify): Remove dead code.
24088
24089 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24090
24091 PR rtl-optimization/69570
24092 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
24093 if there is more than one set, not if there is a single set.
24094
24095 2016-02-01 Richard Henderson <rth@redhat.com>
24096
24097 PR rtl-opt/69535
24098 * combine.c (make_compound_operation): When looking through a
24099 subreg, make sure to re-extend to the width of the outer mode.
24100
24101 2016-01-30 Jakub Jelinek <jakub@redhat.com>
24102
24103 PR tree-optimization/69546
24104 * wide-int.cc (wi::divmod_internal): For unsigned division
24105 where both operands fit into uhwi, if o1 is 1 and o0 has
24106 msb set, if divident_prec is larger than bits per hwi,
24107 clear another quotient word and return 2 instead of 1.
24108 Similarly for remainder with msb in HWI set, if dividend_prec
24109 is larger than bits per hwi.
24110
24111 2016-01-29 Martin Jambor <mjambor@suse.cz>
24112
24113 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
24114 Use short lowercase names.
24115 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
24116 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
24117 acq_rel one. Protect warning agains segfaults if
24118 get_memory_order_name returns NULL.
24119 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
24120 with release semantics. Do not warn if get_memory_order already did.
24121 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
24122 semantics. Fix check for relaxed or acquire semantics. Do not warn
24123 if get_memory_order already did.
24124
24125 2016-01-29 Sebastian Pop <s.pop@samsung.com>
24126
24127 * doc/install.texi: Document that isl-0.16 is supported.
24128
24129 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
24130
24131 PR target/69299
24132 * config/i386/constraints.md (Bm): Describe as special memory
24133 constraint.
24134 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
24135 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24136 * genpreds.c (struct constraint_data): Add is_special_memory.
24137 (have_special_memory_constraints, special_memory_start): New
24138 static vars.
24139 (special_memory_end): Ditto.
24140 (add_constraint): Add new arg is_special_memory. Add code to
24141 process its true value. Update have_special_memory_constraints.
24142 (process_define_constraint): Pass the new arg.
24143 (process_define_register_constraint): Ditto.
24144 (choose_enum_order): Process special memory.
24145 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
24146 function insn_extra_special_memory_constraint.
24147 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24148 * gensupport.c (process_rtx): Process
24149 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24150 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
24151 * ira-lives.c (single_reg_class): Use
24152 insn_extra_special_memory_constraint.
24153 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
24154 * lra-constraints.c (process_alt_operands): Ditto.
24155 (curr_insn_transform): Use insn_extra_special_memory_constraint.
24156 * recog.c (asm_operand_ok, preprocess_constraints): Process
24157 CT_SPECIAL_MEMORY.
24158 * reload.c (find_reloads): Ditto.
24159 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
24160 * stmt.c (parse_input_constraint): Use
24161 insn_extra_special_memory_constraint.
24162
24163 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24164
24165 PR target/69530
24166 * lra-splill.c (lra_final_code_change): Revert r229087 by
24167 removing all sub-registers.
24168
24169 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
24170
24171 PR target/65604
24172 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
24173
24174 2016-01-29 Jakub Jelinek <jakub@redhat.com>
24175
24176 PR target/69551
24177 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
24178 SSE1, copy target into the temporary reg first before recursing
24179 on it.
24180
24181 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24182
24183 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
24184 with vm.
24185
24186 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24187
24188 * ginclude/stdarg.h: Test __cplusplus instead of
24189 __GXX_EXPERIMENTAL_CXX0X__.
24190
24191 2016-01-29 Richard Biener <rguenther@suse.de>
24192
24193 PR tree-optimization/69547
24194 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
24195 Do not mark clobbers necessary.
24196 (mark_all_reaching_defs_necessary_1): Likewise.
24197
24198 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24199
24200 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
24201 declaration name with %qs and print it in both error messages.
24202 Also fix indentation.
24203
24204 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24205
24206 PR other/69006
24207 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
24208 trailing blank line from error message.
24209
24210 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24211
24212 PR c++/69462
24213 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
24214 for C++-11.
24215
24216 2016-01-29 Richard Biener <rguenther@suse.de>
24217
24218 PR middle-end/69537
24219 * match.pd: Allow all integral types when simplifying a
24220 widening or sign-changing conversion.
24221
24222 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24223
24224 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
24225 back to setting codegen_error to fail codegen.
24226
24227 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
24228
24229 PR target/69459
24230 * config/i386/constraints.md (C): Only accept constant zero operand.
24231 (BC): New constraint.
24232 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
24233 instead of C constraint.
24234 * doc/md.texi (Machine Constraints): Update description
24235 of C constraint.
24236
24237 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
24238
24239 PR target/68400
24240 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
24241
24242 2016-01-28 Jakub Jelinek <jakub@redhat.com>
24243
24244 PR middle-end/69542
24245 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
24246 non-debug insns.
24247
24248 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
24249
24250 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
24251 branches if using guessed profile.
24252
24253 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
24254
24255 * graphite-optimize-isl.c (optimize_isl): Fix dump.
24256
24257 2016-01-28 Richard Henderson <rth@redhat.com>
24258
24259 PR target/69305
24260 * config/aarch64/aarch64-modes.def (CC_Cmode): New
24261 * config/aarch64/aarch64-protos.h: Update.
24262 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
24263 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
24264 (aarch64_get_condition_code_1): Handle CC_Cmode.
24265 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
24266 (*add<mode>3_compareC_cconly_imm): New.
24267 (*add<mode>3_compareC_cconly): New.
24268 (*add<mode>3_compareC_imm): New.
24269 (add<mode>3_compareC): New.
24270 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
24271 to be first. Use aarch64_carry_operation.
24272 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
24273 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
24274 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
24275 (subti3): Use subdi3_compare1.
24276 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
24277 (sub<mode>3_compare1): New.
24278 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
24279 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
24280 (*subsi3_carryin_uxtw): Likewise.
24281 (*ngc<mode>, *ngcsi_uxtw): Likewise.
24282 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
24283 * config/aarch64/iterators.md (DWI): New.
24284 * config/aarch64/predicates.md (aarch64_carry_operation): New.
24285 (aarch64_borrow_operation): New.
24286
24287 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24288
24289 * graphite-optimize-isl.c (optimize_isl): Print a different debug
24290 message when isl does not return a valid schedule.
24291
24292 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24293
24294 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
24295 Remove comments from class declarations: they are already in the code
24296 close by the defs.
24297
24298 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24299
24300 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
24301 codegen_error_p.
24302 (ternary_op_to_tree): Same.
24303 (unary_op_to_tree): Same.
24304 (nary_op_to_tree): Same.
24305 (gcc_expression_from_isl_expr_op): Same.
24306 (gcc_expression_from_isl_expression): Same.
24307 (graphite_create_new_loop): Same.
24308 (graphite_create_new_loop_guard): Same.
24309 (build_iv_mapping): Same.
24310 (graphite_create_new_guard): Same.
24311 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
24312 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
24313
24314 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24315
24316 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
24317 instead of setting codegen_error to fail codegen.
24318
24319 2016-01-28 Jason Merrill <jason@redhat.com>
24320
24321 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
24322
24323 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24324
24325 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24326 Remove CONST_INT_P check in CCMP cost calculation.
24327
24328 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24329
24330 * config/aarch64/aarch64.c (generic_vector_cost):
24331 Set vec_permute_cost.
24332 (cortexa57_vector_cost): Likewise.
24333 (exynosm1_vector_cost): Likewise.
24334 (xgene1_vector_cost): Likewise.
24335 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
24336 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
24337 Add vec_permute_cost entry.
24338
24339 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24340
24341 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
24342 immediate as %1.
24343 (add<mode>3_compare0): Likewise.
24344 (addsi3_compare0_uxtw): Likewise.
24345 (add<mode>3nr_compare0): Likewise.
24346 (compare_neg<mode>): Likewise.
24347 (<optab><mode>3): Likewise.
24348
24349 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
24350
24351 * tree-vect-stmts.c (vectorizable_comparison): Add
24352 NULL check for vectype.
24353
24354 2016-01-28 Richard Biener <rguenther@suse.de>
24355
24356 PR tree-optimization/69466
24357 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
24358 Account for PHIs we couldn't duplicate.
24359
24360 2016-01-28 Martin Liska <mliska@suse.cz>
24361
24362 PR pch/68758
24363 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
24364 instead of ENABLE_VALGRIND_CHECKING.
24365
24366 2016-01-27 Richard Henderson <rth@redhat.com>
24367
24368 PR rtl-opt/69447
24369 * lra-remat.c (subreg_regs): New.
24370 (dump_candidates_and_remat_bb_data): Dump it.
24371 (operand_to_remat): Reject if operand in subreg_regs.
24372 (set_bb_regs): Collect subreg_regs.
24373 (lra_remat): Init and free subreg_regs. Compute
24374 calculate_local_reg_remat_bb_data before create_cands.
24375
24376 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
24377
24378 PR target/68986
24379 * config/i386/i386.c (ix86_update_stack_boundary): Don't
24380 change stack_alignment_needed for __tls_get_addr call.
24381
24382 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
24383
24384 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
24385
24386 2016-01-27 Jeff Law <law@redhat.com>
24387
24388 PR tree-optimization/68398
24389 PR tree-optimization/69196
24390 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
24391 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
24392 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24393 Only count PHIs in the last block in the path. The others will
24394 const/copy propagate away. Add heuristic to allow more irreducible
24395 subloops to be created when it is likely profitable to do so.
24396
24397 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24398 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
24399 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
24400
24401 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24402
24403 PR lto/69254
24404 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
24405 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
24406 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
24407 * tree-streamer-in.c: Include asan.h.
24408 (streamer_get_builtin_tree): For builtins in sanitizer
24409 range call initialize_sanitizer_builtins and retry.
24410
24411 2016-01-27 Ian Lance Taylor <iant@google.com>
24412
24413 * common.opt (fkeep-gc-roots-live): New undocumented option.
24414 * tree-ssa-loop-ivopts.c (add_candidate_1): If
24415 -fkeep-gc-roots-live, skip pointers.
24416 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
24417 NULL.
24418
24419 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
24420
24421 PR target/69512
24422 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
24423 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
24424
24425 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
24426
24427 PR target/68380
24428 * configure.ac: NetBSD provides SSP in its C library.
24429 * configure: Updated.
24430
24431 2016-01-27 Richard Biener <rguenther@suse.de>
24432
24433 PR tree-optimization/69166
24434 * tree-vect-loop.c (vect_is_simple_reduction): Always check
24435 reduction code for commutativity / associativity.
24436
24437 2016-01-27 Martin Jambor <mjambor@suse.cz>
24438
24439 PR tree-optimization/69355
24440 * tree-sra.c (analyze_access_subtree): Correct hole detection when
24441 total_scalarization fails.
24442
24443 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
24444
24445 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
24446 power9.
24447
24448 2016-01-27 Christian Bruel <christian.bruel@st.com>
24449
24450 PR target/69245
24451 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
24452 Move arm_reset_previous_fndecl and set_target_option_current_node in
24453 the conditional part. Call save_restore_target_globals.
24454 * config/arm/arm.c (arm_set_current_function):
24455 Refactor to better support #pragma target and attribute mix.
24456 Call save_restore_target_globals.
24457 * config/arm/arm-protos.h (save_restore_target_globals): New function.
24458
24459 2016-01-27 Martin Liska <mliska@suse.cz>
24460
24461 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
24462 reference for an HSA kernel and its host function.
24463
24464 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24465
24466 PR tree-optimization/69399
24467 * wide-int.h (wi::lrshift): For larger precisions, only
24468 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
24469
24470 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
24471
24472 * config/arc/predicates.md (proper_comparison_operator): Reject
24473 constant-constant comparison.
24474
24475 2016-01-26 Tom de Vries <tom@codesourcery.com>
24476
24477 PR tree-optimization/69110
24478 * tree-data-ref.c (initialize_data_dependence_relation): Handle
24479 DR_NUM_DIMENSIONS == 0.
24480
24481 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24482 Sebastian Pop <s.pop@samsung.com>
24483
24484 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
24485 isl_ast_op_cond and isl_ast_op_select.
24486 (gcc_expression_from_isl_expr_op): Same.
24487
24488 2016-01-26 Jason Merrill <jason@redhat.com>
24489
24490 PR c++/68782
24491 * tree.c (recompute_constructor_flags): Split out from
24492 build_constructor.
24493 (verify_constructor_flags): New.
24494 * tree.h: Declare them.
24495
24496 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
24497
24498 PR rtl-optimization/69217
24499 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
24500 are no TYPE_FIELDS set for the record type.
24501
24502 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24503
24504 PR target/68662
24505 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
24506 toc_label_name unconditionally.
24507 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
24508 SYMBOL_REF string. Use toc_label_name instead of constructing
24509 LCTOC1.
24510 (rs6000_elf_declare_function_name): Use toc_label_name instead of
24511 constructing LCTOC1.
24512
24513 2016-01-26 Martin Sebor <msebor@redhat.com>
24514
24515 PR other/69477
24516 * doc/extend.texi (Common Type Attributes): Move text that talks about
24517 attribute packed from attribute aligned to the section discussing
24518 the former attribute for clarity.
24519
24520 2016-01-26 Richard Henderson <rth@redhat.com>
24521
24522 PR middle-end/60908
24523 * trans-mem.c (tm_region_init): Mark entry block as visited.
24524
24525 2016-01-26 David Malcolm <dmalcolm@redhat.com>
24526
24527 PR other/69006
24528 * diagnostic-show-locus.c (layout::print_source_line): Replace
24529 call to pp_newline with call to layout::print_newline.
24530 (layout::print_annotation_line): Likewise.
24531 (layout::move_to_column): Likewise.
24532 (layout::print_any_fixits): After printing any fixits, print a
24533 trailing newline, if necessary.
24534 (layout::print_newline): New method, resetting any colorization
24535 before a newline.
24536 (diagnostic_show_locus): Move the pp_newline to before the
24537 early bailout. Remove dummy block enclosing the layout instance.
24538 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
24539 of pp_newline_and_flush with pp_flush.
24540 (diagnostic_append_note): Delete use of pp_newline.
24541 (diagnostic_append_note_at_rich_loc): Delete.
24542 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
24543 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
24544 when newline characters are added to the buffer.
24545
24546 2016-01-26 Michael Matz <matz@suse.de>
24547
24548 * configure.ac (ac_cv_std_swap_in_utility): New test.
24549 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
24550 * configure: Regenerate.
24551 * config.in: Regenerate.
24552
24553 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
24554
24555 * config/arc/arc.md (cstoresi4): Force operand into register.
24556 (arcset<code>): Fix predicate.
24557 (arcsetltu): Likewise.
24558 (arcsetgeu): Likewise.
24559 (arcsethi): Likewise.
24560 (arcsetls): Likewise.
24561
24562 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24563
24564 PR tree-optimization/69483
24565 * gimple-fold.c (canonicalize_constructor_val): Return NULL
24566 if base has error_mark_node type.
24567
24568 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
24569
24570 PR target/68620
24571 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
24572 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
24573 New helper macros.
24574 (vget_lane_f16): Handle big-endian.
24575 (vgetq_lane_f16): Likewise.
24576 (vset_lane_f16): Likewise.
24577 (vsetq_lane_f16): Likewise.
24578 * config/arm/iterators.md (VQXMOV): Add V8HF.
24579 (VDQ): Add V4HF and V8HF.
24580 (V_reg): Handle V4HF and V8HF.
24581 (Is_float_mode): Likewise.
24582 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
24583 neon_vdup_nv8hf): New patterns.
24584 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
24585 Use VD_LANE iterator.
24586 (neon_vld1_dup<mode>): Use VQ2 iterator.
24587
24588 2016-01-26 Nathan Sidwell <nathan@acm.org>
24589
24590 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
24591 (set_oacc_fn_attrib): Add IS_KERNEL arg.
24592 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
24593 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
24594 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
24595 (oacc_validate_dims): Add LEVEL arg, don't return level.
24596 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
24597 oacc_validate_dims.
24598 (execute_oacc_device_lower): Adjust, add more dump output.
24599 * tree-ssa-loop.c (gate_oacc_kernels): Use
24600 oacc_fn_attrib_kernels_p.
24601 * tree-parloops.c (create_parallel_loop): Adjust
24602 set_oacc_fn_attrib call.
24603
24604 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24605
24606 PR lto/69254
24607 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
24608 (append_compiler_options): Handle -fcilkplus.
24609 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
24610
24611 2016-01-26 Nick Clifton <nickc@redhat.com>
24612
24613 PR target/66655
24614 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
24615 been marked as DECL_ONE_ONLY but we do not the means to make it
24616 so, then do not allow it to bind locally.
24617
24618 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24619
24620 PR lto/69254
24621 * opts.h (parse_sanitizer_options): New prototype.
24622 * opts.c (sanitizer_opts): New array.
24623 (parse_sanitizer_options): New function.
24624 (common_handle_option): Use parse_sanitizer_options.
24625
24626 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
24627
24628 PR target/68986
24629 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
24630 alignment adjustment to ...
24631 (ix86_update_stack_boundary): Here. Don't over-align stack for
24632 __tls_get_addr.
24633 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
24634 if __tls_get_addr is called.
24635
24636 2016-01-26 Christian Bruel <christian.bruel@st.com>
24637
24638 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
24639
24640 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
24641
24642 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
24643
24644 2016-01-26 Richard Biener <rguenther@suse.de>
24645
24646 PR middle-end/69467
24647 * match.pd: Guard X * CST CMP 0 pattern with single_use.
24648
24649 2016-01-26 Richard Biener <rguenther@suse.de>
24650
24651 PR tree-optimization/69452
24652 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
24653 (move_computations_dom_walker::before_dom_children): Rename
24654 to ...
24655 (move_computations_worker): This.
24656 (move_computations): Perform an RPO rather than a DOM walk.
24657
24658 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24659
24660 PR target/69442
24661 * combine.c (combine_instructions): For REG_EQUAL note with
24662 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
24663 to the underlying register.
24664 * doc/rtl.texi (REG_EQUAL): Document the behavior of
24665 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
24666
24667 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
24668
24669 PR target/67896
24670 * config/aarch64/aarch64-builtins.c
24671 (aarch64_init_simd_builtin_types): Do not set structural
24672 equality to __Poly{8,16,64,128}_t types.
24673
24674 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
24675
24676 PR tree-optimization/69400
24677 * wide-int.cc (wi_pack): Take the precision as argument and
24678 perform canonicalization here rather than in the callers.
24679 Use the main loop to handle all full-width HWIs. Add a
24680 zero HWI if in_len isn't a full result.
24681 (wi::divmod_internal): Update accordingly.
24682 (wi::mul_internal): Likewise. Simplify.
24683
24684 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24685 Sebastian Pop <s.pop@samsung.com>
24686
24687 * graphite-poly.c (apply_poly_transforms): Simplify.
24688 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
24689 (print_isl_map): Same.
24690 (print_isl_union_map): Same.
24691 (print_isl_schedule): New.
24692 (debug_isl_schedule): New.
24693 * graphite-dependences.c (scop_get_reads): Do not call
24694 isl_union_map_add_map that is undocumented isl functionality.
24695 (scop_get_must_writes): Same.
24696 (scop_get_may_writes): Same.
24697 (scop_get_original_schedule): Remove.
24698 (scop_get_dependences): Do not call isl_union_map_compute_flow that
24699 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
24700 (compute_deps): Remove.
24701 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
24702 (debug_schedule_ast): New.
24703 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
24704 set_separate_option.
24705 (graphite_regenerate_ast_isl): Add dump.
24706 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
24707 from scop->transformed_schedule.
24708 (graphite_regenerate_ast_isl): Add more dump.
24709 * graphite-optimize-isl.c (optimize_isl): Set
24710 scop->transformed_schedule. Check whether schedules are equal.
24711 (apply_poly_transforms): Move here.
24712 * graphite-poly.c (apply_poly_transforms): ... from here.
24713 (free_poly_bb): Static.
24714 (free_scop): Static.
24715 (pbb_number_of_iterations_at_time): Remove.
24716 (print_isl_ast): New.
24717 (debug_isl_ast): New.
24718 (debug_scop_pbb): New.
24719 * graphite-scop-detection.c (print_edge): Move.
24720 (print_sese): Move.
24721 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
24722 (build_scop_scattering): Remove.
24723 (create_pw_aff_from_tree): Assert instead of bailing out.
24724 (add_condition_to_pbb): Remove unused code, do not fail.
24725 (add_conditions_to_domain): Same.
24726 (add_conditions_to_constraints): Remove.
24727 (build_scop_context): New.
24728 (add_iter_domain_dimension): New.
24729 (build_iteration_domains): Initialize pbb->iterators.
24730 Call add_conditions_to_domain.
24731 (nested_in): New.
24732 (loop_at): New.
24733 (index_outermost_in_loop): New.
24734 (index_pbb_in_loop): New.
24735 (outermost_pbb_in): New.
24736 (add_in_sequence): New.
24737 (add_outer_projection): New.
24738 (outer_projection_mupa): New.
24739 (add_loop_schedule): New.
24740 (build_schedule_pbb): New.
24741 (build_schedule_loop): New.
24742 (embed_in_surrounding_loops): New.
24743 (build_schedule_loop_nest): New.
24744 (build_original_schedule): New.
24745 (build_poly_scop): Call build_original_schedule.
24746 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24747 (free_poly_dr): Remove.
24748 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
24749 (free_poly_bb): Remove.
24750 (debug_loop_vec): Remove.
24751 (print_isl_ast): Declare.
24752 (debug_isl_ast): Declare.
24753 (scop_do_interchange): Remove.
24754 (scop_do_strip_mine): Remove.
24755 (scop_do_block): Remove.
24756 (flatten_all_loops): Remove.
24757 (optimize_isl): Remove.
24758 (pbb_number_of_iterations_at_time): Remove.
24759 (debug_scop_pbb): Declare.
24760 (print_schedule_ast): Declare.
24761 (debug_schedule_ast): Declare.
24762 (struct scop): Remove schedule. Add original_schedule,
24763 transformed_schedule.
24764 (free_gimple_poly_bb): Remove.
24765 (print_generated_program): Remove.
24766 (debug_generated_program): Remove.
24767 (unify_scattering_dimensions): Remove.
24768 * sese.c (print_edge): ... here.
24769 (print_sese): ... here.
24770 (debug_edge): ... here.
24771 (debug_sese): ... here.
24772 * sese.h (print_edge): Declare.
24773 (print_sese): Declare.
24774 (dump_edge): Declare.
24775 (dump_sese): Declare.
24776
24777 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24778 Sebastian Pop <s.pop@samsung.com>
24779
24780 * Makefile.in: Set ISLVER in site.exp.
24781
24782 2016-01-25 Jakub Jelinek <jakub@redhat.com>
24783
24784 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24785 DECL_VALUE_EXPR of new_var even for the non-array case. Look
24786 through DECL_VALUE_EXPR for expansion.
24787
24788 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
24789
24790 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24791 the frame info after reload completed.
24792
24793 2016-01-25 Jeff Law <law@redhat.com>
24794
24795 PR tree-optimization/69196
24796 PR tree-optimization/68398
24797 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24798 tree-ssa-threadupdate.c.
24799 (determine_bb_domination_status): Prototype
24800 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24801 (determine_bb_domination_status): No longer static.
24802 (valid_jump_thread_path): Remove code to detect characteristics
24803 of the jump thread path not associated with correctness.
24804 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24805 Correct test for thread path length. Count PHIs for real operands as
24806 statements that need to be copied. Do not count ASSERT_EXPRs.
24807 Look at all the blocks in the thread path. Compute and selectively
24808 filter thread paths based on threading through the latch, threading
24809 a multiway branch or crossing a multiway branch.
24810
24811 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24812
24813 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
24814 decl with __attribute__ ((unused)) annotation.
24815
24816 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
24817
24818 PR target/69421
24819 * tree-vect-stmts.c (vectorizable_condition): Check vectype
24820 of operands is compatible with a statement vectype.
24821
24822 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
24823
24824 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24825 improve wording for mixed storage order support.
24826
24827 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
24828
24829 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24830 (vcvt_u64_f64): Likewise.
24831 (vcvta_s64_f64): Likewise.
24832 (vcvta_u64_f64): Likewise.
24833 (vcvtm_s64_f64): Likewise.
24834 (vcvtm_u64_f64): Likewise.
24835 (vcvtn_s64_f64): Likewise.
24836 (vcvtn_u64_f64): Likewise.
24837 (vcvtp_s64_f64): Likewise.
24838 (vcvtp_u64_f64): Likewise.
24839
24840 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
24841
24842 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24843 (arc_init): Check validity mll64 option.
24844 (arc_save_restore): Use double load/store instruction.
24845 (arc_expand_movmem): Likewise.
24846 (arc_split_move): Don't split if we have double load/store
24847 instructions. Returns a boolean.
24848 (arc_process_double_reg_moves): Change function to return boolean
24849 instead of a sequence of instructions.
24850 (arc_dwarf_register_span): New function.
24851 * config/arc/arc-protos.h (arc_split_move): Change prototype.
24852 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24853 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24854 (*movdf_insn): Likewise.
24855 * config/arc/arc.opt (mll64): New option.
24856 * config/arc/predicates.md (even_register_operand): New predicate.
24857 * doc/invoke.texi (ARC Options): Add mll64 documentation.
24858
24859 2016-01-25 Richard Biener <rguenther@suse.de>
24860
24861 PR lto/69393
24862 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24863 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24864 DECL_NAMELESS.
24865 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24866
24867 2016-01-25 Richard Biener <rguenther@suse.de>
24868
24869 PR tree-optimization/69376
24870 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24871 flag.
24872 (VN_INFO_ANTI_RANGE_P): New inline.
24873 (VN_INFO_RANGE_TYPE): Likewise.
24874 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24875 SSA_NAME_ANTI_RANGE_P.
24876 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24877 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24878 Properly query VN_INFO_RANGE_TYPE.
24879
24880 2016-01-25 Nick Clifton <nickc@redhat.com>
24881
24882 PR target/66655
24883 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24884
24885 2016-01-23 Tom de Vries <tom@codesourcery.com>
24886
24887 PR tree-optimization/69426
24888 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24889 removed clobber.
24890
24891 2016-01-23 Jakub Jelinek <jakub@redhat.com>
24892
24893 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24894 "the the" with "the" in the comments.
24895 * ipa-devirt.c (build_type_inheritance_graph,
24896 update_type_inheritance_graph): Likewise.
24897 * tree.c (build_function_type_list_1): Likewise.
24898 * cfgloopmanip.c (scale_loop_profile): Likewise.
24899 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24900 * gimple-ssa-split-paths.c
24901 (find_block_to_duplicate_for_splitting_paths): Likewise.
24902 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24903 * expr.c (convert_move): Likewise.
24904 * var-tracking.c (vt_stack_adjustments): Likewise.
24905 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24906 * tree-vrp.c (test_for_singularity): Likewise.
24907
24908 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24909 directly instead of building a temporary tree.
24910
24911 PR bootstrap/69434
24912 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24913 remove <algorithm> include.
24914
24915 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24916
24917 PR target/69432
24918 * config/i386/i386.c: Include dojump.h.
24919 (expand_small_movmem_or_setmem,
24920 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24921 fixes.
24922 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24923 if dynamic_check != -1.
24924
24925 2016-01-21 Jeff Law <law@redhat.com>
24926
24927 PR middle-end/69347
24928 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24929 record_temporary_equivalences. Rewritten to avoid unnecessary calls
24930 into dominated_by_p.
24931 (cprop_into_successor_phis): Avoid unnecessary tests.
24932
24933 2016-01-22 Richard Henderson <rth@redhat.com>
24934
24935 PR target/69416
24936 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24937 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24938
24939 2016-01-22 Michael Matz <matz@suse.de>
24940
24941 * system.h (string, algorithm): Include only conditionally.
24942 (new): Include always under C++.
24943 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24944 * final.c (toplevel): Ditto.
24945 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24946 * genconditions.c (write_header): Make gencondmd.c define
24947 INCLUDE_STRING.
24948 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24949
24950 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24951 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24952
24953 2016-01-22 Christian Bruel <christian.bruel@st.com>
24954
24955 PR target/68674
24956 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24957
24958 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24959
24960 PR target/69403
24961 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24962 define_insn_and_split. Ensure operands[1] and operands[0] do not
24963 get assigned the same register.
24964
24965 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24966
24967 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
24968
24969 2016-01-22 Christian Bruel <christian.bruel@st.com>
24970
24971 * config/arm/arm-c.c (arm_pragma_target_parse):
24972 Remove warn_builtin_macro_redefined overwrite.
24973
24974 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24975
24976 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
24977 flag_non_call_exceptions compatibility.
24978
24979 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24980
24981 PR debug/66668
24982 * dwarf2out.c (add_child_die_after): New function.
24983 (dwarf_qual_info_t): New type.
24984 (dwarf_qual_info): New variable.
24985 (qualified_die_p): New function.
24986 (modified_type_die): For -fdebug-types-section, ensure
24987 canonical order of qualifiers. Put qualified DIEs adjacent
24988 to the corresponding non-qualified type DIE and search there
24989 for existing qualified DIEs.
24990
24991 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24992
24993 * doc/extend.texi (scalar_storage_order type attribute): Document
24994 restriction on type punning and aliasing, and remove future tense.
24995
24996 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
24997
24998 PR target/69252
24999 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
25000 first stage.
25001
25002 2016-01-21 Jeff Law <law@redhat.com>
25003
25004 PR middle-end/69347
25005 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
25006 useless call to record_temporary_equivalences.
25007 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
25008 allocate 10 slots in the bb_path vector and let it grow as needed.
25009 (fsm_find_control_statement_thread_paths): Similarly for the next_path
25010 vector.
25011
25012 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25013
25014 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
25015 Detangle.
25016 * configure: Regenerate.
25017
25018 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
25019
25020 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
25021 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
25022
25023 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
25024
25025 PR middle-end/66178
25026 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
25027 drop EXPAND_INITIALIZER.
25028 * rtl.h (contains_symbolic_reference_p): Declare.
25029 * rtlanal.c (contains_symbolic_reference_p): New function.
25030 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
25031 a subtraction into a NOT if symbolic constants are involved.
25032
25033 2016-01-21 Anton Blanchard <anton@samba.org>
25034 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25035
25036 PR target/63354
25037 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
25038 #define.
25039 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
25040 function.
25041
25042 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25043
25044 * config/microblaze/microblaze.c
25045 (get_branch_target): New.
25046 (insert_wic_for_ilb_runout): New.
25047 (insert_wic): New.
25048 (microblaze_machine_dependent_reorg): New.
25049 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
25050 * config/microblaze/microblaze.md
25051 (UNSPEC_IPREFETCH): Define.
25052 (iprefetch): New pattern
25053 * config/microblaze/microblaze.opt
25054 (mxl-prefetch): New flag.
25055
25056 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25057
25058 * config/microblaze/microblaze.h
25059 (FIXED_REGISTERS): Update in macro.
25060 (CALL_USED_REGISTERS): Update in macro.
25061
25062 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
25063
25064 PR rtl-optimization/68920
25065 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
25066 moves.
25067
25068 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
25069
25070 PR rtl-optimization/68990
25071 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
25072 pseudo instead of inheritance ones.
25073
25074 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25075 Nick Clifton <nickc@redhat.com>
25076
25077 PR target/69129
25078 PR target/69012
25079 * config/mips/mips.c (mips_compute_frame_info): Initialise
25080 args_size and hard_frame_pointer_offset fields of the frame
25081 structure before calling mips_global_pointer.
25082
25083 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25084
25085 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
25086 label reference.
25087 * configure: Regenerate.
25088
25089 2016-01-21 Richard Biener <rguenther@suse.de>
25090
25091 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
25092
25093 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25094
25095 * config/s390/s390.c (s390_asm_declare_function_size): Add code
25096 to actually emit the .size directive.
25097
25098 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
25099 Jakub Jelinek <jakub@redhat.com>
25100
25101 PR target/69187
25102 PR target/65624
25103 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
25104 args array size by one to avoid buffer overflow.
25105
25106 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25107
25108 * config/s390/s390.md (pool_section_start): Use switch_to_section
25109 to select proper read-only data section instead of hardcoding
25110 .rodata.
25111 (pool_section_end): Use switch_to_section to match the above.
25112
25113 2016-01-21 Richard Biener <rguenther@suse.de>
25114
25115 PR tree-optimization/69378
25116 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
25117 (set_ssa_val_to): Use it for dominance checks taking into
25118 account not executable edges.
25119
25120 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25121
25122 PR c++/69355
25123 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
25124 for bitsize instead of GET_MODE_PRECISION (mode).
25125
25126 2016-01-20 Martin Sebor <msebor@redhat.com>
25127
25128 PR c/52291
25129 * extend.texi (__sync Builtins): Clarify the semantics of
25130 __sync_fetch_and_OP built-ins on pointers.
25131 (__atomic Builtins): Same.
25132
25133 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25134 Sebastian Pop <s.pop@samsung.com>
25135
25136 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
25137 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
25138 (is_valid_rename): Same.
25139 (translate_isl_ast_to_gimple::get_rename): Same.
25140 (translate_isl_ast_to_gimple::rename_all_uses): Same.
25141 (translate_isl_ast_to_gimple::rename_uses): Same.
25142 (get_new_name): Check for close_phi nodes.
25143 (copy_loop_phi_args): Use phi_node_kind.
25144 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
25145 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
25146
25147 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25148 Sebastian Pop <s.pop@samsung.com>
25149
25150 Revert commit r229783.
25151 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
25152 Remove use of parameter_rename_map.
25153 (copy_def): Remove.
25154 (copy_internal_parameters): Remove.
25155 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
25156 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
25157 (free_sese_info): Do not free parameter_rename_map.
25158 (set_rename): Do not use parameter_rename_map.
25159 (rename_uses): Update call to set_rename.
25160 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
25161 * sese.h (parameter_rename_map_t): Remove.
25162 (struct sese_info_t): Remove field parameter_rename_map.
25163
25164 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25165 Sebastian Pop <s.pop@samsung.com>
25166
25167 * graphite-isl-ast-to-gimple.c: Fix comment.
25168 * graphite-scop-detection.c (defined_in_loop_p): New.
25169 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
25170 names defined in loop.
25171
25172 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25173 Sebastian Pop <s.pop@samsung.com>
25174
25175 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
25176 Discard unstructured if-then-else regions.
25177
25178 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25179 Sebastian Pop <s.pop@samsung.com>
25180
25181 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
25182 (cleanup_loop_iter_dom): Remove.
25183 (build_loop_iteration_domains): Remove.
25184 (build_scop_context): Remove.
25185 (build_scop_iteration_domain): Remove.
25186 (add_loop_constraints): New.
25187 (build_iteration_domains): New.
25188 (build_poly_scop): Call build_iteration_domains.
25189
25190 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25191 Sebastian Pop <s.pop@samsung.com>
25192
25193 * graphite-scop-detection.c
25194 (scop_detection::harmful_loop_in_region): Free dom and loops.
25195 (scop_detection::loop_body_is_valid_scop): Free bbs.
25196
25197 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25198 Sebastian Pop <s.pop@samsung.com>
25199
25200 * graphite-scop-detection.c (record_loop_in_sese): New.
25201 (gather_bbs::before_dom_children): Call record_loop_in_sese.
25202 (build_scops): Remove call to build_sese_loop_nests.
25203 * sese.c (sese_record_loop): Remove.
25204 (build_sese_loop_nests): Remove.
25205 (new_sese_info): Remove region->loops.
25206 (free_sese_info): Same.
25207 * sese.h (sese_contains_loop): Same.
25208 (build_sese_loop_nests): Remove.
25209 (sese_contains_loop): Remove.
25210
25211 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25212 Sebastian Pop <s.pop@samsung.com>
25213
25214 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
25215 loop_is_valid_in_scop.
25216 (scop_detection::harmful_stmt_in_region): Renamed
25217 harmful_loop_in_region.
25218 Call loop_is_valid_in_scop.
25219
25220 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25221 Sebastian Pop <s.pop@samsung.com>
25222
25223 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
25224 isl_ast_node_mark.
25225
25226 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25227 Sebastian Pop <s.pop@samsung.com>
25228
25229 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
25230 * graphite.h (struct poly_bb): Remove field is_reduction.
25231 (PBB_IS_REDUCTION): Remove.
25232
25233 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25234 Sebastian Pop <s.pop@samsung.com>
25235
25236 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
25237 (add_pdr_constraints): Same.
25238 (scop_get_reads): Same.
25239 (scop_get_must_writes): Same.
25240 (scop_get_may_writes): Same.
25241 (scop_get_original_schedule): Same.
25242 (extend_schedule): Same.
25243 (apply_schedule_on_deps): Same.
25244 (carries_deps): Same.
25245 (compute_deps): Same.
25246 (scop_get_dependences): Same.
25247 * graphite-isl-ast-to-gimple.c
25248 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
25249 * graphite-optimize-isl.c (get_schedule_for_band): Same.
25250 (get_schedule_for_band_list): Same.
25251 (get_schedule_map): Same.
25252 (apply_schedule_map_to_scop): Same.
25253 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25254 (build_loop_iteration_domains): Same.
25255 (add_condition_to_pbb): Same.
25256 (add_param_constraints): Same.
25257 (pdr_add_memory_accesses): Same.
25258 (pdr_add_data_dimensions): Same.
25259
25260 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25261
25262 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
25263 requirements.
25264
25265 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25266
25267 * common.opt (feliminate-dwarf2-dups): Replace references to
25268 "DWARF 2" with just "DWARF".
25269 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
25270 * doc/extend.texi: Likewise.
25271 * doc/cpp.texi: Likewise.
25272 * doc/invoke.texi: Likewise.
25273 (Option Summary): Add -gdwarf to list of Debugging Options.
25274 (Debugging Options): Document -gdwarf.
25275 * doc/contrib.texi: Spell "DWARF" like that.
25276
25277 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25278
25279 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
25280 warning. Fix up formatting.
25281
25282 PR middle-end/67653
25283 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
25284 attempt to mark memory input operand addressable and
25285 call prepare_gimple_addressable in that case. Don't adjust
25286 input_location for diagnostics, use error_at instead.
25287
25288 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
25289
25290 * config/rs6000/ppc-auxv.h: New file.
25291 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
25292 (cpu_is): Likewise.
25293 (cpu_supports): Likewise.
25294 * config/rs6000/rs6000.c: include "ppc-auxv.h".
25295 (cpu_is_info): New variable.
25296 (cpu_supports_info): Likewise.
25297 (tcb_verification_symbol): Likewise.
25298 (cpu_builtin_p): Likewise.
25299 (cpu_expand_builtin): New function.
25300 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
25301 (rs6000_init_builtins): Likewise.
25302 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
25303 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
25304 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
25305 * configure: Regenerate.
25306 * config.in: Likewise.
25307 * doc/extend.texi (PowerPC Built-in Functions): Document
25308 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
25309
25310 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
25311
25312 PR target/68609
25313 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
25314 domain check.
25315 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
25316 for V4SFmode.
25317
25318 2016-01-20 Richard Henderson <rth@redhat.com>
25319
25320 PR bootstrap/69343
25321 PR bootstrap/69339
25322 PR tree-opt/68964
25323 Revert:
25324 * tree.c (tm_define_builtin): New.
25325 (find_tm_vector_type): New.
25326 (build_tm_vector_builtins): New.
25327 (build_common_builtin_nodes): Call it.
25328
25329 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
25330
25331 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
25332 (arm_fp_ok): Likewise.
25333 (arm_fp): Likewise.
25334 (arm_crypto): Likewise.
25335
25336 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25337 Richard Biener <rguenther@suse.de>
25338
25339 PR tree-optimization/69328
25340 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
25341 vectors have same number of elements.
25342 (vectorizable_condition): Fix masked version recognition.
25343
25344 2016-01-20 Richard Biener <rguenther@suse.de>
25345
25346 PR tree-optimization/69345
25347 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
25348 (VN_INFO_PTR_INFO): Likewise.
25349 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
25350 info when it is equal between non-dominating SSA names.
25351 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25352 Make sure to look at original SSA infos.
25353
25354 2016-01-20 Jeff Law <law@redhat.com>
25355
25356 PR target/25114
25357 * config/m68k/predicates.md (pow2_m1_operand): New predicate
25358 extracted from ...
25359 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
25360 (pc_or_label_operand): New predicate.
25361 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
25362 tests for small integers that are 2^n - 1.
25363
25364 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
25365
25366 * doc/invoke.texi (Options Summary): Add '.' after @xref.
25367
25368 2016-01-19 Jeff Law <law@redhat.com>
25369
25370 PR middle-end/69347
25371 * tree-ssa-threadbackwards.c
25372 (fsm_find_control_statement_thread_paths): Do not try to lookup
25373 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
25374
25375 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25376
25377 * doc/lto.texi: Remove text that says only Gold has linker plugin
25378 support.
25379
25380 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
25381
25382 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
25383 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
25384 the DIE accordingly.
25385 (modified_type_die): Add REVERSE parameter and pass it recursively,
25386 as well as to base_type_die. Adjust presence check accordingly.
25387 (base_type_for_mode): Adjust call to modified_type_die.
25388 (add_type_attribute): Add REVERSE parameter and pass it to
25389 modified_type_die.
25390 (generic_parameter_die): Adjust call to add_type_attribute.
25391 (add_scalar_info): Likewise.
25392 (add_subscript_info): Likewise.
25393 (gen_array_type_die): Likewise.
25394 (gen_descr_array_type_die): Likewise.
25395 (gen_entry_point_die): Likewise.
25396 (gen_enumeration_type_die): Likewise.
25397 (gen_formal_parameter_die): Likewise.
25398 (gen_subprogram_die): Likewise.
25399 (gen_variable_die ): Likewise.
25400 (gen_const_die): Likewise.
25401 (gen_field_die): Likewise.
25402 (gen_pointer_type_die): Likewise.
25403 (gen_reference_type_die): Likewise.
25404 (gen_ptr_to_mbr_type_die): Likewise.
25405 (gen_inheritance_die): Likewise.
25406 (gen_subroutine_type_die): Likewise.
25407 (gen_typedef_die): Likewise.
25408 (force_type_die): Adjust call to modified_type_die.
25409
25410 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
25411
25412 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
25413 flow throughout the file. Fix broken link to Objective-C 2.0
25414 documentation.
25415 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
25416 errors.
25417
25418 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25419
25420 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
25421
25422 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25423
25424 PR ipa/66223
25425 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
25426 (maybe_record_node): Record cxa_pure_virtual as the only possible
25427 target if there are not ohter candidates.
25428 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
25429
25430 2016-01-19 Richard Biener <rguenther@suse.de>
25431
25432 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
25433 (get_memory_order): Likewise.
25434
25435 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
25436
25437 * tree-vect-stmts.c (vectorizable_store): Check
25438 rhs vectype.
25439
25440 2016-01-19 David Malcolm <dmalcolm@redhat.com>
25441
25442 PR jit/68446
25443 * gcc.c (driver::decode_argv): Add call to
25444 init_opts_obstack before init_options_struct.
25445 * opts.c (init_opts_obstack): Remove idempotency.
25446 (init_options_struct): Replace call to init_opts_obstack
25447 with a gcc_assert to verify that it has already been called.
25448 * toplev.c (toplev::main): Add call to init_opts_obstack before
25449 calls to init_options_struct.
25450 (toplev::finalize): Move cleanup of opts_obstack next to
25451 cleanup of save_decoded_options, clearing the latter, and
25452 save_decoded_options_count.
25453
25454 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25455
25456 PR target/69135
25457 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
25458 attribute to unconditional. Remove %? from output template.
25459
25460 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25461 Jiong Wang <jiong.wang@arm.com>
25462
25463 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
25464 generated from different expand order.
25465
25466 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25467
25468 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
25469 Add support for CCMP costing.
25470
25471 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25472
25473 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
25474 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
25475 (fccmpe<mode>): Likewise.
25476 (fcmp): Rename to fcmp and globalize pattern.
25477 (fcmpe): Likewise.
25478 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
25479 (aarch64_gen_ccmp_next): Add FP support.
25480
25481 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25482
25483 * target.def (gen_ccmp_first): Update documentation.
25484 (gen_ccmp_next): Likewise.
25485 * doc/tm.texi (gen_ccmp_first): Update documentation.
25486 (gen_ccmp_next): Likewise.
25487 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
25488 expand_ccmp_expr_1. Improve comments.
25489 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
25490 (ccmp_ior<mode>): Remove pattern.
25491 (cmp<mode>): Remove expand.
25492 (cmp): Globalize pattern.
25493 (cstorecc4): Use cc_register.
25494 (mov<mode>cc): Remove ccmp_cc_register check.
25495 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
25496 Simplify after removal of CC_DNE/* modes.
25497 (aarch64_ccmp_mode_to_code): Remove.
25498 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
25499 In 'k' case use integer as condition.
25500 (aarch64_nzcv_codes): Remove inverted cases.
25501 (aarch64_code_to_ccmode): Remove.
25502 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
25503 comparison with CC register to be used in folowing CCMP/branch/CSEL.
25504 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
25505 pattern. Return the comparison with CC register. Invert conditions
25506 when bitcode is OR.
25507 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
25508 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
25509
25510 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25511
25512 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25513 instrumented_version.
25514
25515 2016-01-19 Richard Biener <rguenther@suse.de>
25516
25517 PR tree-optimization/69336
25518 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
25519 handled components with get_ref_base_and_extent.
25520 (equal_mem_array_ref_p): Adjust.
25521
25522 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25523
25524 PR debug/65779
25525 * shrink-wrap.c: Include valtrack.h.
25526 (move_insn_for_shrink_wrap): Add DEBUG argument. If
25527 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
25528 in between insn and where it will be moved to. Call
25529 dead_debug_insert_temp.
25530 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
25531 first and dead_debug_local_finish at the end.
25532 For uses and defs bitmap, handle all regs in between REGNO and
25533 END_REGNO, not just the first one.
25534
25535 2016-01-19 Richard Biener <rguenther@suse.de>
25536
25537 PR tree-optimization/69352
25538 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
25539 (equal_mem_array_ref_p): Constrain size and max size properly.
25540 Compare the reverse flag.
25541
25542 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
25543
25544 * ira.c (ira): Update regstat data if we deleted insns.
25545
25546 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25547
25548 PR rtl-optimization/68955
25549 PR rtl-optimization/64557
25550 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
25551 here. Fix up formatting.
25552 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
25553
25554 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25555
25556 PR lto/69133
25557 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
25558 assume that the node has body.
25559 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
25560 check.
25561
25562 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25563
25564 * lto-streamer-out.c (lto_output): Do not stream instrumentation
25565 thunks.
25566
25567 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25568
25569 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
25570 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
25571
25572 2016-01-19 Martin Jambor <mjambor@suse.cz>
25573 Martin Liska <mliska@suse.cz>
25574 Michael Matz <matz@suse.de>
25575
25576 * Makefile.in (OBJS): Add new source files.
25577 (GTFILES): Add hsa.c.
25578 * common.opt (disable_hsa): New variable.
25579 (-Whsa): New warning.
25580 * config.in (ENABLE_HSA): New.
25581 * configure.ac: Treat hsa differently from other accelerators.
25582 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
25583 $enable_offloading.
25584 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
25585 * doc/install.texi (Configuration): Document --with-hsa-runtime,
25586 --with-hsa-runtime-include, --with-hsa-runtime-lib and
25587 --with-hsa-kmt-lib.
25588 * doc/invoke.texi (-Whsa): Document.
25589 (hsa-gen-debug-stores): Likewise.
25590 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
25591 to invoke offload compiler for hsa acclerator.
25592 * opts.c (common_handle_option): Determine whether HSA offloading
25593 should be performed.
25594 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
25595 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
25596 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
25597 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
25598 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
25599 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
25600 GF_OMP_FOR_KIND_GRID_LOOP.
25601 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
25602 (pp_gimple_stmt_1): Likewise.
25603 * gimple-walk.c (walk_gimple_stmt): Likewise.
25604 * gimple.c (gimple_build_omp_grid_body): New function.
25605 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
25606 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
25607 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
25608 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
25609 GF_OMP_TEAMS_GRID_PHONY.
25610 (gimple_statement_omp_single_layout): Updated comments.
25611 (gimple_build_omp_grid_body): New function.
25612 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
25613 (gimple_omp_for_grid_phony): New function.
25614 (gimple_omp_for_set_grid_phony): Likewise.
25615 (gimple_omp_parallel_grid_phony): Likewise.
25616 (gimple_omp_parallel_set_grid_phony): Likewise.
25617 (gimple_omp_teams_grid_phony): Likewise.
25618 (gimple_omp_teams_set_grid_phony): Likewise.
25619 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
25620 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
25621 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
25622 (BUILT_IN_GOMP_TARGET): Updated type.
25623 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
25624 (adjust_for_condition): New function.
25625 (get_omp_for_step_from_incr): Likewise.
25626 (extract_omp_for_data): Moved parts to adjust_for_condition and
25627 get_omp_for_step_from_incr.
25628 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
25629 (fixup_child_record_type): Bail out if receiver_decl is NULL.
25630 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
25631 (scan_omp_parallel): Do not create child functions for phony
25632 constructs.
25633 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
25634 (scan_omp_1_op): Checking assert we are not remapping to
25635 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
25636 (parallel_needs_hsa_kernel_p): New function.
25637 (expand_parallel_call): Register apprpriate parallel child
25638 functions as HSA kernels.
25639 (grid_launch_attributes_trees): New type.
25640 (grid_attr_trees): New variable.
25641 (grid_create_kernel_launch_attr_types): New function.
25642 (grid_insert_store_range_dim): Likewise.
25643 (grid_get_kernel_launch_attributes): Likewise.
25644 (get_target_argument_identifier_1): Likewise.
25645 (get_target_argument_identifier): Likewise.
25646 (get_target_argument_value): Likewise.
25647 (push_target_argument_according_to_value): Likewise.
25648 (get_target_arguments): Likewise.
25649 (expand_omp_target): Call get_target_arguments instead of looking
25650 up for teams and thread limit.
25651 (grid_expand_omp_for_loop): New function.
25652 (grid_arg_decl_map): New type.
25653 (grid_remap_kernel_arg_accesses): New function.
25654 (grid_expand_target_kernel_body): New function.
25655 (expand_omp): Call it.
25656 (lower_omp_for): Do not emit phony constructs.
25657 (lower_omp_taskreg): Do not emit phony constructs but create for them
25658 a temporary variable receiver_decl.
25659 (lower_omp_taskreg): Do not emit phony constructs.
25660 (lower_omp_teams): Likewise.
25661 (lower_omp_grid_body): New function.
25662 (lower_omp_1): Call it.
25663 (grid_reg_assignment_to_local_var_p): New function.
25664 (grid_seq_only_contains_local_assignments): Likewise.
25665 (grid_find_single_omp_among_assignments_1): Likewise.
25666 (grid_find_single_omp_among_assignments): Likewise.
25667 (grid_find_ungridifiable_statement): Likewise.
25668 (grid_target_follows_gridifiable_pattern): Likewise.
25669 (grid_remap_prebody_decls): Likewise.
25670 (grid_copy_leading_local_assignments): Likewise.
25671 (grid_process_kernel_body_copy): Likewise.
25672 (grid_attempt_target_gridification): Likewise.
25673 (grid_gridify_all_targets_stmt): Likewise.
25674 (grid_gridify_all_targets): Likewise.
25675 (execute_lower_omp): Call grid_gridify_all_targets.
25676 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
25677 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
25678 (tree_omp_clause): Added union field dimension.
25679 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
25680 * tree.c (omp_clause_num_ops): Added number of arguments of
25681 OMP_CLAUSE__GRIDDIM_.
25682 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
25683 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
25684 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
25685 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
25686 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
25687 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
25688 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
25689 * tree-pass.h (make_pass_gen_hsail): Declare.
25690 (make_pass_ipa_hsa): Likewise.
25691 * ipa-hsa.c: New file.
25692 * lto-section-in.c (lto_section_name): Add hsa section name.
25693 * lto-streamer.h (lto_section_type): Add hsa section.
25694 * timevar.def (TV_IPA_HSA): New.
25695 * hsa-brig-format.h: New file.
25696 * hsa-brig.c: New file.
25697 * hsa-dump.c: Likewise.
25698 * hsa-gen.c: Likewise.
25699 * hsa.c: Likewise.
25700 * hsa.h: Likewise.
25701 * toplev.c (compile_file): Call hsa_output_brig.
25702 * hsa-regalloc.c: New file.
25703
25704 2016-01-18 Jeff Law <law@redhat.com>
25705
25706 PR tree-optimization/69320
25707 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
25708 ranged object, do nothing if the RHS constant is not [0..1].
25709 (optimize_stmt): Comparing a boolean ranged object against a
25710 constant outside [0..1] results in a compile-time constant.
25711
25712 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
25713 test.
25714
25715 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
25716
25717 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25718 (Option Summary): Update to reflect new section and moved options.
25719 (C++ Dialect Options): Move -fstats to new section.
25720 (Debugging Options): Move all dump, statistics, and other GCC
25721 developer options to new section. Rewrite section introduction
25722 and re-order remaining options to put the more basic ones first.
25723 (Optimization Options): Move -fira-verbose and -flto-report* to
25724 new section.
25725 (Developer Options): New section incorporating moved options.
25726 * doc/cppopts.texi (-dM): Update cross-reference.
25727
25728 2016-01-18 Richard Henderson <rth@redhat.com>
25729
25730 PR target/69176
25731 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
25732 operands to pseudo only if CSE is expected. Split long immediate
25733 operands only after reload, and for the stack pointer.
25734 (*add<GPI>3_pluslong): Remove.
25735 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
25736 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
25737 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
25738 (*add<GPI>3 peepholes): New.
25739 (*add<GPI>3 splitters): New.
25740 * config/aarch64/constraints.md (Upl): New.
25741 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25742
25743 2016-01-18 Richard Biener <rguenther@suse.de>
25744
25745 PR tree-optimization/69297
25746 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25747 stmt at most once.
25748 (vect_bb_vectorization_profitable_p): Clear visited flag again.
25749
25750 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
25751
25752 PR middle-end/68542
25753 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25754 of mixind vector and scalar types.
25755 (fold_relational_const): Add handling of vector
25756 comparison with boolean result.
25757 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25758 comparison of vector operands with boolean result for EQ/NE only.
25759 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25760 (verify_gimple_cond): Likewise.
25761 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25762 valid type of VAL.
25763
25764 2016-01-18 Joseph Myers <joseph@codesourcery.com>
25765
25766 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25767 !TARGET_OCTEON.
25768
25769 2016-01-18 Richard Biener <rguenther@suse.de>
25770
25771 PR middle-end/69308
25772 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25773
25774 2016-01-18 Tom de Vries <tom@codesourcery.com>
25775
25776 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25777
25778 2016-01-18 Tom de Vries <tom@codesourcery.com>
25779
25780 * omp-low.c (set_oacc_fn_attrib): Make extern.
25781 * omp-low.h (set_oacc_fn_attrib): Declare.
25782 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25783 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25784 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25785 Add and handle function parameter oacc_kernels_p.
25786 (find_reduc_addr, get_omp_data_i_param): New function.
25787 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25788 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25789 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25790 Calculate dominance info. Skip loops that are not in a kernels region
25791 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
25792 (pass_parallelize_loops::execute): Call parallelize_loops with
25793 oacc_kernels_p argument.
25794 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25795 New member function.
25796 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25797 * passes.def: Add argument to pass_parallelize_loops instantation.
25798
25799 2016-01-18 Tom de Vries <tom@codesourcery.com>
25800
25801 * tree-parloops.c (pass_parallelize_loops::execute): Allow
25802 pass_parallelize_loops to be run outside the loop pipeline.
25803
25804 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25805
25806 * tree-scalar-evolution.c (follow_copies_to_constant): New.
25807 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25808
25809 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25810
25811 PR target/63679
25812 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25813 using get_ref_base_and_extent.
25814 (equal_mem_array_ref_p): New.
25815 (hashable_expr_equal_p): Add call to previous.
25816
25817 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25818
25819 PR target/63679
25820 * tree-sra.c (disqualified_constants, constant_decl_p): New.
25821 (sra_initialize): Allocate disqualified_constants.
25822 (sra_deinitialize): Free disqualified_constants.
25823 (disqualify_candidate): Update disqualified_constants when appropriate.
25824 (create_access): Scan for constant-pool entries as we go along.
25825 (scalarizable_type_p): Add check against type_contains_placeholder_p.
25826 (maybe_add_sra_candidate): Allow constant-pool entries.
25827 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25828 (initialize_constant_pool_replacements): New.
25829 (sra_modify_assign): Avoid mangling assignments created by previous,
25830 and don't generate writes into constant pool.
25831 (sra_modify_function_body): Call initialize_constant_pool_replacements.
25832
25833 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25834
25835 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25836 andnot instruction.
25837 (scalar_chain::convert_op): Likewise.
25838 * config/i386/i386.md (*andndi3_doubleword): New.
25839
25840 2016-01-18 Richard Biener <rguenther@suse.de>
25841
25842 PR tree-optimization/69170
25843 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25844 building a vector from scalar results of a pattern stmt.
25845
25846 2016-01-18 Jakub Jelinek <jakub@redhat.com>
25847
25848 * haifa-sched.c (autopref_multipass_init): Work around
25849 -Wmaybe-uninitialized warning.
25850
25851 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
25852
25853 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25854 against the constant 0.
25855
25856 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25857
25858 PR tree-optimization/68799
25859 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25860 look up phi candidates in the statement-candidate map.
25861 (phi_add_costs): Likewise.
25862 (record_phi_increments): Likewise.
25863 (phi_incr_cost): Likewise.
25864 (ncd_with_phi): Likewise.
25865 (all_phi_incrs_profitable): Likewise.
25866
25867 2016-01-17 Jakub Jelinek <jakub@redhat.com>
25868
25869 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25870 -Wmaybe-uninitialized warning.
25871
25872 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
25873
25874 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25875 (Option Summary): Update to reflect new section and moved options.
25876 (C++ Dialect Options): Move -fvtable-verify and related options.
25877 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25878 and profiling-related options.
25879 (Optimization Options): Move profile generation options and
25880 -fstack-protector and related options.
25881 (Instrumentation Options): New section incorporating moved options.
25882 (Code Generation Options): Move -finstrument-functions and
25883 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25884
25885 2016-01-16 Tom de Vries <tom@codesourcery.com>
25886
25887 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25888
25889 2016-01-16 Tom de Vries <tom@codesourcery.com>
25890
25891 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
25892
25893 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
25894
25895 * hash-table.h (hash_table::empty): Turn into an inline wrapper
25896 that checks whether the table is already empty. Rename the
25897 original implementation to...
25898 (hash_table::empty_slot): ...this new private function.
25899
25900 2016-01-15 David Malcolm <dmalcolm@redhat.com>
25901
25902 PR diagnostic/68899
25903 * diagnostic-show-locus.c (layout::print_source_line): Move x
25904 offset of line until after call to
25905 get_line_width_without_trailing_whitespace.
25906
25907 2016-01-15 Jeff Law <law@redhat.com>
25908
25909 PR tree-optimization/69270
25910 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25911 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
25912 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25913 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25914 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25915 ssa_name_has_boolean_range and constant_boolean_node.
25916
25917 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
25918
25919 PR rtl-optimization/69030
25920 * lra-spills.c (remove_pseudos): Check nrefs and make the function
25921 returning bool.
25922 (spill_pseudos): Delete debug insn for dead pseudo.
25923 (lra_spill): Initiate spill_hard_reg and slots memory separately.
25924
25925 2016-01-15 Jiong Wang <jiong.wang@arm.com>
25926
25927 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25928 New.
25929 (TYPES_UNOPUS): Likewise.
25930 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25931 builtin type, from UNOP to UNOPUS.
25932 (lbtruncuv4sf): Likewise.
25933 (lbtruncuv2df): Likewise.
25934 (lrounduv2sf): Likewise.
25935 (lrounduv4sf): Likewise.
25936 (lrounduv2df): Likewise.
25937 (lroundusf): Likewise.
25938 (lroundusf): Likewise.
25939 (lceiluv2sf): Likewise.
25940 (lceiluv4sf): Likewise.
25941 (lceiluv2df): Likewise.
25942 (lceilusf): Likewise.
25943 (lceiludf): Likewise.
25944 (lflooruv2sf): Likewise.
25945 (lflooruv4sf): Likewise.
25946 (lflooruv2df): Likewise.
25947 (lfloorusf): Likewise.
25948 (lfloorudf): Likewise.
25949 (lfrintnuv2sf): Likewise.
25950 (lfrintnuv4sf): Likewise.
25951 (lfrintnuv2df): Likewise.
25952 (lfrintnusf): Likewise.
25953 (lfrintnudf): Likewise.
25954 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25955 conversion.
25956 (vcvtq_u32_f32): Likewise.
25957 (vcvtq_u64_f64): Likewise.
25958 (vcvta_u32_f32): Likewise.
25959 (vcvtaq_u32_f32): Likewise.
25960 (vcvtaq_u64_f64): Likewise.
25961 (vcvtm_u32_f32): Likewise.
25962 (vcvtmq_u32_f32): Likewise.
25963 (vcvtmq_u64_f64): Likewise.
25964 (vcvtn_u32_f32): Likwise.
25965 (vcvtnq_u32_f32): Likewise.
25966 (vcvtnq_u64_f64): Likewise.
25967 (vcvtp_u32_f32): Likewise.
25968 (vcvtpq_u32_f32): Likewise.
25969 (vcvtpq_u64_f64): Likewise.
25970 (vcvtmd_u64_f64): Likewise.
25971 (vcvtms_u32_f32): Likewise.
25972 (vcvtad_u64_f64): Likewise.
25973 (vcvtas_u32_f32): Likewise.
25974 (vcvtnd_u64_f64): Likewise.
25975 (vcvtns_u32_f32): Likewise.
25976 (vcvtpd_u64_f64): Likewise.
25977 (vcvtps_u32_f32): Likewise.
25978
25979 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25980
25981 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
25982 CSEL of zero_extended registers.
25983
25984 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25985
25986 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25987 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
25988
25989 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25990
25991 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
25992 false when argument string is not found in the attributes table
25993 at all.
25994
25995 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
25996
25997 PR target/68609
25998 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
25999 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
26000 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
26001 precision estimate.
26002
26003 2016-01-15 Richard Biener <rguenther@suse.de>
26004
26005 PR tree-optimization/66856
26006 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
26007 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
26008 (vect_create_new_slp_node): Increment stmt reference count.
26009 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
26010 an SLP tree before swapping operands.
26011 (vect_build_slp_tree): Likewise.
26012 (destroy_bb_vec_info): Free stmt info after SLP instances.
26013 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
26014 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
26015 (STMT_VINFO_NUM_SLP_USES): New macro.
26016
26017 2016-01-15 Richard Biener <rguenther@suse.de>
26018
26019 PR debug/69137
26020 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
26021 (add_linkage_name): ... here.
26022 (gen_typedef_die): Use add_linkage_name_raw instead of
26023 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
26024 if necessary.
26025
26026 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
26027
26028 * gimplify.c (oacc_default_clause): Decode reference and pointer
26029 types for both kernels and parallel regions.
26030
26031 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
26032
26033 PR middle-end/69246
26034 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
26035
26036 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26037
26038 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
26039 (convert_scalars_to_vector): Likewise.
26040
26041 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
26042
26043 * doc/extend.texi (Type Traits): Fix grammar.
26044
26045 2016-01-15 Martin Jambor <mjambor@suse.cz>
26046
26047 * tree-inline.c (remap_decl): Use existing dclarations if
26048 remapping a type and prevent_decl_creation_for_types.
26049 (replace_locals_stmt): Do an initial remapping of non-VLA typed
26050 decls first. Do real remapping with
26051 prevent_decl_creation_for_types set.
26052 * tree-inline.h (copy_body_data): New field
26053 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
26054 padding.
26055
26056 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26057
26058 * config/s390/s390.opt (mmvcle): More verbose help text.
26059
26060 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26061
26062 * config/s390/s390.opt: Add period to -mzvector option text.
26063
26064 2016-01-15 Richard Biener <rguenther@suse.de>
26065
26066 PR tree-optimization/68961
26067 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
26068 of invariants in stores again.
26069
26070 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26071
26072 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
26073
26074 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26075
26076 * config/i386/i386.c (ix86_expand_branch): Don't split
26077 DI mode xor instruction to SI mode.
26078
26079 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26080
26081 PR ipa/68148
26082 * ipa-icf.c (sem_function::merge): Virtual functions may become
26083 reachable even if they address is not taken and there are no
26084 idrect calls.
26085
26086 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26087
26088 * lto-streamer-out.c (subtract_estimated_size): New function.
26089 (get_symbol_initial_value): Use it.
26090
26091 2016-01-15 Christian Bruel <christian.bruel@st.com>
26092
26093 PR target/65837
26094 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
26095 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
26096 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
26097 use add_builtin_function_ext_scope instead of add_builtin_function.
26098 (neon_set_p, neon_crypto_set_p): Remove.
26099 (arm_init_builtins): Always call arm_init_neon_builtins and
26100 arm_init_crypto_builtins.
26101 (arm_expand_builtin): Check that builtins are allowed for the arch.
26102 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
26103 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
26104 arm_init_neon_builtins call.
26105
26106 2016-01-15 Richard Biener <rguenther@suse.de>
26107
26108 PR tree-optimization/69117
26109 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
26110 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
26111 of the leader conservatively.
26112 (free_scc_vn): Restore original SSA name infos.
26113
26114 2016-01-14 Jeff Law <law@redhat.com>
26115
26116 PR tree-optimization/69270
26117 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
26118 single bit of precision, verify it's also unsigned.
26119 (record_edge_info): Use constant_boolean_node rather than fold_convert
26120 to convert boolean_true/boolean_false to the right type.
26121
26122 2016-01-14 Richard Henderson <rth@redhat.com>
26123
26124 PR rtl-opt/69014
26125 * loop-doloop.c (record_reg_sets): New.
26126 (doloop_optimize): Reject the transform if the sequence
26127 clobbers registers live at the end of the loop block.
26128 (doloop_optimize_loops): Enable df_live if needed.
26129
26130 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26131
26132 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
26133 * config/rs6000/rs6000.c: Likewise.
26134 * config/rs6000/rs6000.h: Likewise.
26135 * config/rs6000/rs6000.md: Likewise.
26136 * doc/extend.texi: Likewsie.
26137
26138 2016-01-14 Jeff Law <law@redhat.com>
26139
26140 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
26141 typo.
26142
26143 2016-01-14 Richard Henderson <rth@redhat.com>
26144
26145 PR c/69272
26146 PR tree-opt/68964
26147 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
26148 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
26149 instead of builtin_decl_declared_p to test for declaration.
26150
26151 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
26152
26153 * doc/loop.texi (Loop Analysis and Representation): Document
26154 loop_depth function.
26155
26156 2016-01-14 Tom de Vries <tom@codesourcery.com>
26157
26158 PR tree-optimization/68773
26159 * omp-low.c (expand_omp_target): Don't set force_output.
26160 * varpool.c (varpool_node::get_create): Same.
26161 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
26162 offload_funcs with force_output.
26163
26164 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26165
26166 PR debug/69244
26167 * lra-eliminations.c (move_plus_up): Don't change anything if either
26168 the outer or inner subreg mode is not MODE_INT.
26169 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
26170 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
26171
26172 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26173
26174 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
26175 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
26176 reduc_uplus_@var{m}): Remove.
26177 * expr.c (expand_expr_real_2): Remove expansion path for
26178 reduc_[us](min|max|plus) optabs.
26179 * optabs-tree.c (scalar_reduc_to_vector): Remove.
26180 * optabs-tree.h (scalar_reduc_to_vector): Remove.
26181 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
26182 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
26183 * tree-vect-loop.c (vectorizable_reduction): Remove test for
26184 reduc_[us](min|max|plus) optabs.
26185
26186 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26187
26188 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
26189 (reduc_plus_scal_v2sf): New.
26190 (reduc_smax_v2sf): Rename to...
26191 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
26192 (reduc_smin_v2sf): Rename to...
26193 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
26194
26195 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
26196
26197 * alias.c (compare_base_symbol_refs): New function.
26198 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
26199 it.
26200
26201 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26202
26203 PR middle-end/68146
26204 PR tree-optimization/69155
26205 * tree-complex.c: Include cfganal.h.
26206 (phis_to_revisit): New variable.
26207 (extract_component): Add phiarg_p argument. Assert that returned
26208 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
26209 (update_phi_components): Partly rewrite to use loop over real/imag
26210 components instead of code duplication. If extract_component returns
26211 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
26212 create_tmp_reg into the PHI node instead, and mention the phi triplet
26213 in phis_to_revisit.
26214 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
26215 in phis_to_revisit at the end.
26216
26217 2016-01-14 Richard Biener <rguenther@suse.de>
26218
26219 PR tree-optimization/68060
26220 * tree-vect-loop.c (vect_is_simple_reduction): Check the
26221 outer loop reduction is only used in the inner loop before
26222 detecting a double reduction.
26223
26224 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26225
26226 PR target/68269
26227 * combine.c (expand_field_assignment): Punt if compute_mode is
26228 unsupported scalar mode.
26229
26230 2016-01-14 Richard Biener <rguenther@suse.de>
26231
26232 PR tree-optimization/66856
26233 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
26234 SLP node only if it built successfully.
26235 (vect_analyze_slp_instance): Adjust.
26236
26237 2016-01-14 Jeff Law <law@redhat.com>
26238
26239 PR tree-optimization/69270
26240 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
26241 (record_edge_info): Use it. Convert boolean_{true,false}_node
26242 to the type of op0.
26243
26244 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
26245
26246 PR ipa/66487
26247 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
26248 use block_ultimate_origin
26249 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
26250
26251 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26252
26253 * doc/invoke.texi (Submodel Options): Rename section to
26254 "Machine-Dependent Options" to better reflect its content.
26255 Rewrite introductory text to remove archaic CPU names.
26256 Update references.
26257
26258 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26259
26260 * doc/invoke.texi (Code Gen Options): Move section up in file,
26261 before target-specific options. Update menu and option summary
26262 to reflect the new section ordering.
26263
26264 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26265
26266 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
26267 (C++ Dialect Options): Add cross-reference to -std option.
26268 * doc/standards.texi (C++ Language): Document C++14 support.
26269
26270 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26271
26272 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
26273 for pack/unpack functions for __ibm128.
26274 (PACK_IF): Likewise.
26275 (UNPACK_IF): Likewise.
26276
26277 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26278 support for __ibm128 pack/unpack functions.
26279 (rs6000_invalid_builtin): Likewise.
26280 (rs6000_init_builtins): Likewise.
26281 (rs6000_opt_masks): Likewise.
26282
26283 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
26284 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
26285 functions
26286 (RS6000_BTM_COMMON): Likewise.
26287
26288 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
26289 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
26290 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
26291 128-bit floating point. Add support for the double values to be
26292 in Altivec registers for TF/IF packing and unpacking, but restrict
26293 TD packing sub-fields to be FPR registers. Don't allow overlapped
26294 register support for packing. Allow pack inputs to be memory
26295 locations. Don't build generator functions for unpack<mode>_dm
26296 and unpack<mode>_nodm.
26297 (unpack<mode>_dm): Likewise.
26298 (unpack<mode>_nodm): Likewise.
26299 (pack<mode>): Likewise.
26300
26301 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
26302 built-in functions to pack/unpack explicit __ibm128 values.
26303 (__builtin_unpack_ibm128): Likewise.
26304
26305 * doc/extend.texi (PowerPC Built-in Functions): Document
26306 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
26307
26308 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
26309
26310 PR c/66208
26311 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
26312 Add new arg loc and pass it down as context.
26313 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
26314 to the location to use for the warning.
26315 (check_function_arguments): New arg loc. All callers changed. Pass
26316 it to check_function_nonnull.
26317 * c-common.h (check_function_arguments): Adjust declaration.
26318
26319 2016-01-13 Jakub Jelinek <jakub@redhat.com>
26320
26321 PR tree-optimization/69156
26322 * gimple.c (validate_type): Removed.
26323 (gimple_builtin_call_types_compatible_p): Use
26324 useless_type_conversion_p instead of validate_type.
26325 * value-prof.c (gimple_stringop_fixed_value): Fold
26326 icall_size to correct type.
26327
26328 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26329
26330 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
26331 effects.
26332
26333 2016-01-13 Richard Henderson <rth@redhat.com>
26334
26335 PR tree-opt/68964
26336 * target.def (builtin_tm_load, builtin_tm_store): Remove.
26337 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
26338 (ix86_builtin_tm_store): Remove.
26339 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26340 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26341 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26342 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26343 * doc/tm.texi: Rebuild.
26344
26345 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
26346 (BUILT_IN_TM_MEMCPY_RTWN): New.
26347 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
26348 fallback from vector to integer helpers.
26349 (build_tm_load): Handle vector types directly, instead of
26350 via target hook.
26351 (build_tm_store): Likewise.
26352 (expand_assign_tm): Prepare for register types not handled by
26353 the above. Copy them to memory and use memcpy.
26354 * tree.c (tm_define_builtin): New.
26355 (find_tm_vector_type): New.
26356 (build_tm_vector_builtins): New.
26357 (build_common_builtin_nodes): Call it.
26358
26359 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
26360
26361 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
26362 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
26363
26364 2016-01-13 Tom de Vries <tom@codesourcery.com>
26365
26366 PR tree-optimization/69169
26367 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
26368 handled_struct_type param.
26369 (create_variable_info_for, intra_create_variable_infos): Call
26370 create_variable_info_for_1 with extra arg.
26371
26372 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
26373
26374 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
26375 and "armv8.1-a+crc" entries.
26376
26377 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
26378
26379 PR target/69228
26380 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
26381 Change first operand predicate from register_or_constm1_operand
26382 to register_operand.
26383 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
26384 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
26385 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
26386 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
26387 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
26388 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
26389 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
26390 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
26391 comparison with constm1_rtx from vec_prefetch_gen part.
26392
26393 2016-01-13 Richard Biener <rguenther@suse.de>
26394
26395 PR tree-optimization/69013
26396 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
26397 Exchange assert for a test.
26398
26399 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26400
26401 PR target/69247
26402 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
26403
26404 2016-01-13 Richard Biener <rguenther@suse.de>
26405
26406 PR tree-optimization/69242
26407 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
26408 assert with a check.
26409
26410 2016-01-13 Richard Biener <rguenther@suse.de>
26411
26412 PR tree-optimization/69186
26413 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26414 Properly guard vect_update_misalignment_for_peel call.
26415
26416 2016-01-12 Jeff Law <law@redhat.com>
26417
26418 PR tree-optimization/pr67755
26419 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
26420 "need_profile_correction".
26421 (thread_block_1): Initialize new field to false by default. If we
26422 have multiple thread paths through a common joiner to different
26423 final targets, then set new field to true.
26424 (compute_path_counts): Only do count adjustment when it's really
26425 needed.
26426
26427 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26428
26429 * doc/invoke.texi (Spec Files): Move section down in file, past
26430 all command-line option descriptions.
26431
26432 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26433
26434 PR middle-end/54809
26435 * doc/gty.texi: Remove documentation of mark_hook.
26436 * gengtype.c (struct write_types_data): Remove code to support
26437 mark_hook attribute.
26438 (walk_type): Likewise.
26439 (write_func_for_structure): Likewise.
26440
26441 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26442
26443 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
26444 Directory Options, and -specs= to Overall Options.
26445 (Overall Options): Adjust similarly. Reorder to group related
26446 options together. Make -specs= cross-reference the spec file details.
26447 (Directory Options): Adjust similarly.
26448
26449 2016-01-12 Jeff Law <law@redhat.com>
26450
26451 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
26452
26453 2016-01-12 Olivier Hainque <hainque@adacore.com>
26454
26455 * gcc.c (spec_undefvar_allowed): New global.
26456 (process_command): Set to true when running for --version or --help,
26457 alone or together.
26458 (getenv_spec_function): When the variable is not defined, use the
26459 variable name as the variable value if we're allowed not to issue
26460 a fatal error.
26461
26462 2016-01-12 Bin Cheng <bin.cheng@arm.com>
26463
26464 PR tree-optimization/68911
26465 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
26466 information computed for expression "init + nit * step".
26467
26468 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26469
26470 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
26471 about name of GCC executable. Remove deleted node from menu.
26472 (Directory Options) <-B>: Remove cross-reference to deleted node.
26473 (Target Options): Delete section.
26474
26475 2016-01-12 Christian Bruel <christian.bruel@st.com>
26476
26477 PR target/69180
26478 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
26479 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
26480
26481 2016-01-12 Jakub Jelinek <jakub@redhat.com>
26482
26483 PR target/69198
26484 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
26485 aligned_mem is properly set for AVX512-VL floating point masked
26486 stores.
26487
26488 PR target/69175
26489 * ifcvt.c (cond_exec_process_if_block): When removing the last
26490 insn from then_bb, remove also any possible barriers that follow it.
26491
26492 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
26493
26494 PR target/68456
26495 PR target/69226
26496 * config/i386/iamcu.h (SIZE_TYPE): New macro.
26497 (PTRDIFF_TYPE): Likewise.
26498 (WCHAR_TYPE): Likewise.
26499 (WCHAR_TYPE_SIZE): Likewise.
26500 (STDINT_LONG32): Likewise.
26501
26502 2016-01-12 Richard Biener <rguenther@suse.de>
26503
26504 PR tree-optimization/69053
26505 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
26506 convert initial value for cond reductions.
26507
26508 2016-01-12 Richard Biener <rguenther@suse.de>
26509
26510 PR tree-optimization/69007
26511 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
26512 widen_sum after dot_prod and sad.
26513
26514 2016-01-12 Richard Biener <rguenther@suse.de>
26515
26516 PR tree-optimization/69168
26517 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
26518 pattern stmt SLP type.
26519 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
26520 end up unused so cope with that case.
26521
26522 2016-01-12 Richard Biener <rguenther@suse.de>
26523
26524 PR tree-optimization/69157
26525 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
26526 stmts def type only during analyze phase.
26527 (vectorizable_call): Likewise.
26528 (vectorizable_simd_clone_call): Likewise.
26529 (vectorizable_conversion): Likewise.
26530 (vectorizable_assignment): Likewise.
26531 (vectorizable_shift): Likewise.
26532 (vectorizable_operation): Likewise.
26533 (vectorizable_store): Likewise.
26534 (vectorizable_load): Likewise.
26535
26536 2016-01-12 Richard Biener <rguenther@suse.de>
26537
26538 PR tree-optimization/69174
26539 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
26540 space.
26541 (vectorizable_load): Properly compute the number of loads needed
26542 for permuted strided SLP loads and do not spuriously assign
26543 to SLP_TREE_VEC_STMTS.
26544
26545 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
26546
26547 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
26548 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
26549 (MD_EXEC_PREFIX): Remove.
26550 (MD_STARTFILE_PREFIX) Removee.
26551 (FILE_NAME_ABSOLUTE_P): Remove.
26552 (CPP_SPEC): Do not read macros from sys/version.h.
26553 (LINK_COMMAND_SPEC): Remove.
26554 (LOCAL_INCLUDE_DIR): Remove.
26555 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
26556 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
26557 (POST_LINK_SPEC): Define to invoke stubify after linker
26558 (LIBSTDCXX): Remove define
26559 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
26560 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
26561 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
26562 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
26563 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
26564 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
26565 (i386_djgpp_asm_named_section): Add propotype of new procedure
26566
26567 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
26568 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
26569 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
26570 in config/i386/djgpp.h).
26571 (STANDARD_STARTFILE_PREFIX_2): Define identical to
26572 STANDARD_STARTFILE_PREFIX_1.
26573 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
26574 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
26575 installation errors.
26576 (MAX_OFILE_ALIGNMENT): Define to 128.
26577 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
26578
26579 * config/i386/djgpp.c: New file. Add implementation of
26580 i386_djgpp_asm_named_section.
26581
26582 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
26583
26584 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
26585 Add rule for building djgpp.o.
26586
26587 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26588
26589 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
26590 (rtx_is_swappable_p): Reductions are swappable.
26591 (insn_is_swappable_p): V2DF reductions are swappable.
26592
26593 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
26594
26595 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
26596 reloads for other unsupported memory operands.
26597
26598 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26599 Jim Wilson <jim.wilson@linaro.org>
26600
26601 PR target/69194
26602 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
26603 copy_to_mode_reg instead of force_reg.
26604
26605 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26606
26607 PR target/69225
26608 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
26609 TARGET_80387 is true.
26610
26611 2016-01-11 Jakub Jelinek <jakub@redhat.com>
26612
26613 PR target/69071
26614 * lra-eliminations.c (move_plus_up): Only move plus up
26615 if subreg of the constant can be simplified into constant
26616 and use the simplified subreg of the constant instead of
26617 the original constant.
26618
26619 * fold-const.c (fold_convertible_p): Don't return true
26620 for conversion of VECTOR_TYPE to same sized integral type.
26621 (fold_convert_loc): Fix up formatting. Fold conversion of
26622 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
26623 instead of NOP_EXPR.
26624
26625 PR tree-optimization/69214
26626 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
26627 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26628 Formatting fix.
26629
26630 PR tree-optimization/69207
26631 * tree-vect-slp.c (vect_get_constant_vectors): For
26632 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
26633 fold_convertible_p to vector_type's element type, and always
26634 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
26635
26636 2016-01-11 Richard Biener <rguenther@suse.de>
26637
26638 PR tree-optimization/69173
26639 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
26640 fixup the cycle if all stmts are in a pattern.
26641
26642 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
26643
26644 PR middle-end/68999
26645 * alias.c (base_alias_check): Move check for addresses with
26646 alignment ANDs before the call for compare_base_decls.
26647 (memrefs_conflict_p): Return -1 for different decls
26648 that went through alignment adjustments.
26649
26650 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26651
26652 PR rtl-optimization/68796
26653 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
26654 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
26655 and QImode comparisons against zero with CC_NZmode.
26656 * config/aarch64/iterators.md (short_mask): New mode_attr.
26657
26658 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26659
26660 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
26661 (<avx512>_store<mode>_mask): Likewise.
26662
26663 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
26664 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26665
26666 PR rtl-optimization/68841
26667 * ifcvt.c (struct noce_if_info): Add orig_x field.
26668 (bbs_ok_for_cmove_arith): Add to_rename parameter.
26669 Don't record conflicts on to_rename if it's present.
26670 Allow memory destinations in sets.
26671 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
26672 blocks, passing orig_x to the checks.
26673 (noce_process_if_block): Set if_info->orig_x appropriately.
26674
26675 2016-01-11 Tom de Vries <tom@codesourcery.com>
26676
26677 PR tree-optimization/69069
26678 * tree-parloops.c (create_parallel_loop): Add missing phi args.
26679
26680 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
26681
26682 PR rtl-optimization/68920
26683 * config/i386/i386.c (ix86_option_override_internal): Restrict number
26684 of conditional moves for RTL if-conversion to 1 for
26685 TARGET_ONE_IF_CONV_INSN.
26686 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
26687 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
26688 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
26689 parameter to restirct number of conditional moves for
26690 RTL if-conversion.
26691 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
26692 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
26693 conditionl moves.
26694
26695 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
26696
26697 PR bootstrap/69123
26698 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
26699 onepart vars. Fix typo in comment. Fix reversed condition in
26700 unshare test.
26701 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
26702
26703 PR bootstrap/69123
26704 * var-tracking.c (dump_onepart_variable_differences): New.
26705 (dataflow_set_different): If a detailed dump is requested,
26706 delay early returns and dump differences between onepart
26707 variables present before and after, and added variables.
26708
26709 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26710
26711 PR target/69010
26712 * expr.c (expand_expr_real_1): For boolean vector constants
26713 with a scalar mode use const_scalar_mask_from_tree.
26714 (const_scalar_mask_from_tree): New.
26715 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
26716 assigned to a mask type to handle constants.
26717
26718 2016-01-11 Martin Jambor <mjambor@suse.cz>
26719
26720 PR ipa/69044
26721 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
26722 useless parameters if we cannot change function signature.
26723
26724 2016-01-11 Martin Jambor <mjambor@suse.cz>
26725
26726 PR ipa/66616
26727 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
26728 flag.
26729
26730 2016-01-11 Tom de Vries <tom@codesourcery.com>
26731
26732 PR tree-optimization/69109
26733 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
26734 latch with phi.
26735
26736 2016-01-11 Tom de Vries <tom@codesourcery.com>
26737
26738 PR tree-optimization/69108
26739 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26740 res is not used in a phi.
26741
26742 2016-01-11 Yury Gribov <y.gribov@samsung.com>
26743
26744 PR 67425
26745 * common.opt (frandom-seed): Fix parameter name.
26746 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26747
26748 2016-01-11 Tom de Vries <tom@codesourcery.com>
26749
26750 PR tree-optimization/69058
26751 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26752 not supported.
26753
26754 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
26755
26756 * config/arc/arc.opt (mdiv-rem): Add period to the end.
26757 (mcode-density): Likewise.
26758
26759 2016-01-10 Tom de Vries <tom@codesourcery.com>
26760
26761 PR tree-optimization/69062
26762 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26763 (parallelize_loops): Don't paralelize loop that has phi with address
26764 arg.
26765
26766 2016-01-10 Tom de Vries <tom@codesourcery.com>
26767
26768 PR tree-optimization/69039
26769 * tree-parloops.c (try_create_reduction_list): Only allow single exit
26770 phi for reduction.
26771
26772 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
26773
26774 PR middle-end/68743
26775 * match.pd: Require target has function_c99_misc before doing
26776 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26777
26778 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
26779
26780 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26781 use GMPINC.
26782 * configure: Regenerate.
26783
26784 2016-01-09 Jakub Jelinek <jakub@redhat.com>
26785
26786 PR middle-end/50865
26787 PR tree-optimization/69097
26788 * fold-const.h (expr_not_equal_to): New prototype.
26789 * fold-const.c: Include stringpool.h and tree-ssanames.h.
26790 (expr_not_equal_to): New function.
26791 * match.pd (X % -Y is the same as X % Y): Don't optimize
26792 unless X is known not to be equal to minimum or Y is known
26793 not to be equal to -1.
26794 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26795 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26796 (simplify_stmt_using_ranges): Adjust caller.
26797 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26798 substitute_and_fold.
26799
26800 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
26801
26802 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26803 w/o DECL_NAME.
26804
26805 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26806
26807 PR tree-optimization/69167
26808 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26809 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26810 ops[0] comparison.
26811 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26812
26813 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26814 Richard Biener <rguenther@suse.de>
26815
26816 PR tree-optimization/68707
26817 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26818 instances that can be handled via vect_load_lanes.
26819
26820 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
26821
26822 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26823 if we can't determine address equivalence.
26824 * alias.c (compare_base_decl): Update for changed return value of
26825 symtab_node::equal_address_to.
26826
26827 2016-01-08 Jason Merrill <jason@redhat.com>
26828
26829 PR c++/68983
26830 PR c++/67557
26831 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26832 * expr.c (store_field): Not here.
26833 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26834 call with TREE_ADDRESSABLE type.
26835 * tree-cfg.c (verify_gimple_call): Adjust.
26836
26837 2016-01-08 Olivier Hainque <hainque@adacore.com>
26838
26839 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26840 libc_internal.
26841
26842 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26843
26844 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26845 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26846 (reduc_smin_v2sf): Rename to...
26847 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26848 (reduc_splus_v2sf): Rename to...
26849 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26850
26851 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26852
26853 PR tree-optimization/69162
26854 * gimplify.c (gimplify_va_arg_expr): Encode original type of
26855 valist argument in another argument.
26856 (gimplify_modify_expr): Adjust for the above change. Cleanup.
26857 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26858 to determine the va_list type, build a MEM_REF instead of
26859 build_fold_indirect_ref.
26860
26861 PR tree-optimization/69172
26862 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26863 gimple_build.
26864
26865 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
26866
26867 PR tree-optimization/67781
26868 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26869 and cmpnop in two steps: first the ones not accessed in original
26870 gimple expression in a endian independent way and then the ones not
26871 accessed in the final result in an endian-specific way.
26872
26873 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26874
26875 PR tree-optimization/69083
26876 * tree-vect-slp.c (vect_get_constant_vectors): For
26877 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26878 element type. If op is fold_convertible_p to vector_type's element
26879 type, use NOP_EXPR instead of VCE.
26880
26881 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
26882
26883 PR rtl-optimization/67778
26884 PR rtl-optimization/68634
26885 PR rtl-optimization/68909
26886 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
26887 block from the stack until done with it. Remove a superfluous
26888 bitmap set. Remove a superfluous bitmap test.
26889
26890 2016-01-07 Martin Sebor <msebor@redhat.com>
26891
26892 PR c/68966
26893 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26894 constraint on the type of arguments.
26895
26896 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
26897
26898 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26899 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26900 unaligned_access on the gcc_options set.
26901 * config/arm/arm.c (arm_option_override_internal): Use
26902 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26903
26904 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26905
26906 PR target/69140
26907 * config/i386/i386.c (ix86_frame_pointer_required): Enable
26908 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26909
26910 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26911
26912 Revert
26913 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26914
26915 PR target/69140
26916 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26917 depending on frame_pointer_needed before remaining integer and SSE
26918 registers are saved.
26919
26920 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
26921
26922 PR 1078
26923 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26924
26925 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
26926
26927 PR target/69171
26928 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26929 Use the "xBm" constraint.
26930 (float<sseintvecmodelower><mode>2<mask_name><round_name):
26931 Likewise.
26932 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26933 (sse_cvtsi2ssq<round_name>): Likewise.
26934 (sse_cvtss2si<round_name>): Likewise.
26935 (sse_cvtss2siq<round_name>): Likewise.
26936 (sse2_cvtsi2sdq<round_name>): Likewise.
26937 (sse2_cvtsd2si<round_name>): Likewise.
26938 (sse2_cvtsd2siq<round_name>): Likewise.
26939 * config/i386/subst.md (round_nimm_scalar_predicate): New
26940 predicate.
26941
26942 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
26943
26944 PR middle-end/67639
26945 * varasm.c (make_decl_rtl): Mark invalid register vars as
26946 DECL_EXTERNAL.
26947
26948 PR rtl-optimization/66206
26949 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26950 All callers changed.
26951
26952 2016-01-07 Jakub Jelinek <jakub@redhat.com>
26953
26954 PR tree-optimization/69141
26955 * tree-ssa-pre.c: Include langhooks.h.
26956 (eliminate_dom_walker::before_dom_children): Use
26957 lang_hooks.decl_printable_name instead of
26958 cgraph_node::get ()->name ().
26959
26960 PR middle-end/68960
26961 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26962 it and DECL_ALIGN too.
26963
26964 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
26965
26966 * config/mips/mips-ftypes.def: Sort to lexicographical order.
26967
26968 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26969
26970 PR target/69140
26971 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26972 depending on frame_pointer_needed before remaining integer and SSE
26973 registers are saved.
26974
26975 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26976
26977 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
26978 mode iterator with VSX_M2.
26979 (*p9_vecstore_<mode>): Likewise.
26980 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
26981 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
26982 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
26983 (define_split for VSX_LE128 stores): Likewise.
26984 (define_peephole2 for TImode LE swaps): Likewise.
26985 (define_split for VSX_LE128 post-reload stores): Likewise.
26986
26987 2016-01-06 Marek Polacek <polacek@redhat.com>
26988
26989 PR sanitizer/69099
26990 * convert.c (convert_to_integer_1): Adjust call to
26991 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
26992 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
26993 EXPR instead of ARG.
26994 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
26995
26996 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26997
26998 PR 1078
26999 * doc/extend.texi (RL78 Variable Attributes): New section.
27000
27001 2016-01-05 Marek Polacek <polacek@redhat.com>
27002
27003 PR c/69104
27004 * builtins.c (get_memmodel): Use expansion point location rather than
27005 the input location. Call warning_at rather than warning.
27006 (expand_builtin_atomic_compare_exchange): Likewise.
27007 (expand_builtin_atomic_load): Likewise.
27008 (expand_builtin_atomic_store): Likewise.
27009 (expand_builtin_atomic_clear): Likewise.
27010
27011 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27012
27013 PR target/68991
27014 * config/i386/i386.c (ix86_expand_vector_logical_operator):
27015 Replace nonimmediate_operand with vector_operand.
27016 * config/i386/predicates.md (vector_operand): New predicate.
27017 (general_vector_operand): Replace nonimmediate_operand with
27018 vector_operand.
27019 * config/i386/sse.md: Replace nonimmediate_operand with
27020 vector_operand and m constraint with Bm constraint on SSE
27021 patterns with 16-byte memory operand.
27022 * config/i386/subst.md (round_nimm_predicate): Replace
27023 nonimmediate_operand with vector_operand.
27024 (round_saeonly_nimm_predicate): Likewise.
27025 (round_saeonly_nimm_scalar_predicate): New.
27026
27027 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27028
27029 PR target/68991
27030 * config/i386/constraints.md (Bm): New constraint.
27031 * config/i386/predicates.md (vector_memory_operand): New
27032 predicate.
27033 * config/i386/sse.md: Replace xm with xBm in plusminus and
27034 any_logic patterns.
27035
27036 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27037
27038 PR 1078
27039 * doc/extend.texi (V850 Function Attributes): New section.
27040 (V850 Variable Attributes): New section.
27041
27042 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27043
27044 PR 1078
27045 * doc/extend.texi (MicroBlaze Function Attributes): Document
27046 interrupt_handler and fast_interrupt attributes.
27047
27048 2016-01-05 Sergei Trofimovich <siarheit@google.com>
27049
27050 PR other/60465
27051 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
27052 for local symbolic operands.
27053 * config/ia64/predicates.md (local_symbolic_operand64): New
27054 predicate.
27055
27056 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27057
27058 PR rtl-optimization/68651
27059 * combine.c (combine_simplify_rtx): Canonicalize x + x into
27060 x << 1.
27061
27062 2016-01-05 Nathan Sidwell <nathan@acm.org>
27063
27064 * alias.c (compare_base_decls): Use symtab_node::get.
27065
27066 2016-01-05 Nick Clifton <nickc@redhat.com>
27067
27068 PR target/68770
27069 * ira-costs.c (copy_cost): Initialise the t_icode field of the
27070 secondary_reload_info structure.
27071
27072 PR target/66655
27073 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
27074 decls if weak support is available.
27075
27076 2016-01-04 Martin Sebor <msebor@redhat.com>
27077
27078 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
27079
27080 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
27081
27082 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
27083 OPTION_MASK_P9_DFORM.
27084
27085 * config/rs6000/constraints.md (wo constraint): New constraint for
27086 ISA 3.0 (power9).
27087
27088 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
27089 for wo constraint.
27090 (rs6000_init_hard_regno_mode_ok): Likewise.
27091
27092 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
27093 wo constraint.
27094
27095 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
27096 expanders not to have constraints. Add support for ISA 3.0 xxperm
27097 instruction. Add support for fusing xxlor with xxperm.
27098 (altivec_vperm_<mode>_internal): Likewise.
27099 (altivec_vperm_v8hiv16qi): Likewise.
27100 (altivec_vperm_<mode>v16q): Likewise.
27101 (altivec_vperm_<mode>_uns): Likewise.
27102 (vperm_v8hiv4si): Likewise.
27103 (vperm_v16qiv8hi): Likewise.
27104
27105 * doc/md.texi (RS/6000 constraints): Document wo constraint.
27106
27107 2016-01-04 Jakub Jelinek <jakub@redhat.com>
27108
27109 Update copyright years.
27110
27111 * gcc.c (process_command): Update copyright notice dates.
27112 * gcov-dump.c (print_version): Ditto.
27113 * gcov.c (print_version): Ditto.
27114 * gcov-tool.c (print_version): Ditto.
27115 * gengtype.c (create_file): Ditto.
27116 * doc/cpp.texi: Bump @copying's copyright year.
27117 * doc/cppinternals.texi: Ditto.
27118 * doc/gcc.texi: Ditto.
27119 * doc/gccint.texi: Ditto.
27120 * doc/gcov.texi: Ditto.
27121 * doc/install.texi: Ditto.
27122 * doc/invoke.texi: Ditto.
27123
27124 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27125
27126 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
27127 modes larger than TImode as TImode if NEON is not enabled.
27128
27129 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27130
27131 PR target/69100
27132 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
27133 mode for %f0-%f31 only if TARGET_FPU.
27134
27135 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27136
27137 PR target/69072
27138 * config/sparc/sparc.c (scan_record_type): Take into account subfields
27139 to compute the PACKED_P predicate.
27140 (function_arg_record_value): Minor tweaks.
27141
27142 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
27143
27144 * doc/install.texi (--with-multilib-list): Describe the meaning of the
27145 option for arm*-*-* targets.
27146
27147 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
27148
27149 * doc/extend.texi (Common Function Attributes): Move docs for
27150 MSP430-specific attributes to....
27151 (MSP430 Function Attributes): ...here. Delete the redundant
27152 entries and copy-edit the remaining text.
27153 (MSP430 Variable Attributes): Use uniform format for index
27154 entries and add a cross-reference to the corresponding function
27155 attribute docs.
27156
27157 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
27158
27159 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
27160 -finite-math typo.
27161 (x86 Options): Likewise.
27162
27163 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27164
27165 PR 1078
27166
27167 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
27168 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
27169 to corresponding attribute.
27170
27171 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27172
27173 * doc/extend.texi (Common Function Attributes) <noplt>: Move
27174 to correct alphabetization of table. Copy-edit and correct
27175 markup.
27176 <stack_protect>: Likewise.
27177 <target_clones>: Likewise.
27178 <simd>: Likewise.
27179 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
27180 Correct punctuation.
27181 (Code Gen Options) <-fno-plt>: Copy-edit.
27182
27183 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27184
27185 PR target/68917
27186 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
27187 SI values. Explicitly convert SI to DI and vice-versa.
27188
27189 2016-01-01 Jakub Jelinek <jakub@redhat.com>
27190
27191 PR tree-optimization/69070
27192 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
27193 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
27194
27195 PR sanitizer/69055
27196 * ubsan.c (ubsan_instrument_float_cast): Call
27197 initialize_sanitizer_builtins.
27198
27199 PR target/69015
27200 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
27201 \f
27202 Copyright (C) 2016 Free Software Foundation, Inc.
27203
27204 Copying and distribution of this file, with or without modification,
27205 are permitted in any medium without royalty provided the copyright
27206 notice and this notice are preserved.