1 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
3 PR tree-optimization/78024
4 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
5 don't clear BB_VISITED after processing.
7 2016-10-19 Richard Biener <rguenther@suse.de>
9 * domwalk.c (dom_walker::walk): Use RPO order.
11 2016-10-19 Richard Biener <rguenther@suse.de>
13 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
15 (evrp_dom_walker::~evrp_dom_walker): Free it.
16 (evrp_dom_walker::stmts_to_remove): Add.
17 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
18 whose output we fully propagate for removal. Propagate
19 into BB destination PHI arguments.
20 (execute_early_vrp): Remove queued stmts. Dump value ranges
23 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
25 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
26 * passes.def: Add two instances of pass_walloca.
27 * tree-pass.h (make_pass_walloca): New.
28 * gimple-ssa-warn-alloca.c: New file.
29 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
30 -Wvla-larger-than= options.
32 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
34 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
35 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
37 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
39 * config/rs6000/altivec.h (vec_xl_len): New macro.
40 (vec_xst_len): New macro.
41 (vec_cmpnez): New macro.
42 (vec_cntlz_lsbb): New macro.
43 (vec_cnttz_lsbb): New macro.
46 (vec_all_nez): New C++ predicate template.
47 (vec_any_eqz): New C++ predicate template.
48 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
49 conditional compilation.
50 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
51 conditional compilation.
52 (vec_all_nez): New macro.
53 (vec_any_eqz): New macro.
54 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
56 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
58 * config/rs6000/vector.md (VI): Moved this mode iterator
59 definition from altivec.md to vector.md.
60 (UNSPEC_NEZ_P): New value.
61 (vector_ne_<mode>_p): New expansion for implementation of
62 vec_all_ne and vec_any_eq built-in functions.
63 (vector_nez_<mode>_p): New expansion for implementation of
64 vec_all_nez and vec_any_eqz built-in functions.
65 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
66 and vec_any_eq built-in function.
67 (cr6_test_for_zero): New commentary to explain this expansion.
68 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
69 (cr6_test_for_lt): New commentary to explain this expansion.
70 (cr6_test_for_lt_reverse): New commentary to explain this
72 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
73 overloaded function prototypes for vec_all_ne, vec_all_nez,
74 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
75 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
77 (altivec_resolve_overloaded_builtin): Modify the handling of
78 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
79 the compiler is configured to support TARGET_P9_VECTOR.
80 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
81 to explain the special processing that is given to predicate
82 built-ins introduced using this macro.
83 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
84 the special processing given to predicate built-ins introduced
87 (BU_P8V_AV_P): Likewise.
88 (BU_P9V_AV_P): Likewise.
89 (BU_P9V_AV_X): New macro.
90 (BU_P9V_64BIT_AV_X): New macro.
91 (BU_P9V_VSX_3): New macro.
92 (BU_P9V_OVERLOAD_P): New macro.
93 (LXVL): New BU_P9V_64BIT_VSX_2.
94 (VEXTUBLX): New BU_P9V_AV_2.
100 (STXVL): New BU_P9V_64BIT_AV_X.
101 (VCLZLSBB): New BU_P9V_AV_1.
102 (VCTZLSBB): Likewise.
103 (CMPNEB): New BU_P9V_AV_2.
108 (VCMPNEB_P): New BU_P9V_AV_P.
109 (VCMPNEH_P): Likewise.
110 (VCMPNEW_P): Likewise.
111 (VCMPNED_P): Likewise.
112 (VCMPNEFP_P): Likewise.
113 (VCMPNEDP_P): Likewise.
114 (CMPNEZB): New BU_P9V_AV_2.
117 (VCMPNEZB_P): New BU_P9V_AV_P.
118 (VCMPNEZH_P): Likewise.
119 (VCMPNEZW_P): Likewise.
120 (LXVL): New BU_P9V_OVERLOAD_2.
121 (STXVL): New BU_P9V_OVERLOAD_3.
122 (VEXTULX): New BU_P9V_OVERLOAD_2.
125 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
126 (VCMPNE_P): Likewise.
127 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
128 (VCTZLSBB): Likewise.
129 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
130 comment to explain mode used for scratch register.
131 (altivec_expand_stxvl_builtin): New function.
132 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
133 (altivec_init_builtins): Add initialized variable
134 void_ftype_v16qi_pvoid_long and use this type to define the
135 built-in function __builtin_altivec_stxvl.
136 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
137 (UNSPEC_STXVL): New value.
138 (UNSPEC_VCLZLSBB): New value.
139 (UNSPEC_VCTZLSBB): New value.
140 (UNSPEC_VEXTUBLX): New value.
141 (UNSPEC_VEXTUHLX): New value.
142 (UNSPEC_VEXTUWLX): New value.
143 (UNSPEC_VEXTUBRX): New value.
144 (UNSPEC_VEXTUHRX): New value.
145 (UNSPEC_VEXTUWRX): New value.
146 (UNSPEC_VCMPNEB): New value.
147 (UNSPEC_VCMPNEZB): New value.
148 (UNSPEC_VCMPNEH): New value.
149 (UNSPEC_VCMPNEZH): New value.
150 (UNSPEC_VCMPNEW): New value.
151 (UNSPEC_VCMPNEZW): New value.
152 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
153 vector of integer modes.
154 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
155 vector of float or double modes.
156 (*vector_nez_<mode>_p): New insn for vector test all not equal or
158 (lxvl): New expand for load VSX vector with length.
159 (*lxvl): New insn for load VSX vector with length.
160 (stxvl): New expand for store VSX vector with length.
161 (*stxvl): New insn for store VSX vector with length.
162 (vcmpneb): New insn for vector of byte compare not equal.
163 (vcmpnezb): New insn for vector of byte compare not equal or zero.
164 (vcmpneh): New insn for vector of half word compare not equal.
165 (vcmpnezh): New insn for vector of half word compare not equal or
167 (vcmpnew): New insn for vector of word compare not equal.
168 (vcmpne<VSs>): New insn for vector of float or double compare not
170 (vcmpnezw): New insn for vector of word compare not equal or zero.
171 (vclzlsbb): New insn for vector count leading zero
172 least-significant bits byte.
173 (vctzlsbb): New insn for vector count trailing zero least
174 signficant bits byte.
175 (vextublx): New insn for vector extract unsigned byte left
177 (vextubrx): New insn for vector extract unsigned byte right
179 (vextuhlx): New insn for vector extract unsigned half word left
181 (vextuhrx): New insn for vector extract unsigned half word right
183 (vextuwlx): New insn for vector extract unsigned word left
185 (vextuwrx): New insn for vector extract unsigned word right
187 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
188 clarify intent of this constant.
189 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
190 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
191 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
192 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
193 and vec_xrx functions.
195 2016-10-18 Andrew Pinski <apinski@cavium.com>
198 * predict.c (is_exit_with_zero_arg): New function.
199 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
202 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
205 * config/i386/i386.c (legitimize_tls_address)
206 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
207 convert dest to Pmode if different than Pmode.
209 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
211 PR tree-optimization/77916
212 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
213 stopgap fix, as pointers with -1 increment are still broken.
215 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
217 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
218 mapping class decoration from here...
219 (rs6000_xcoff_encode_section): ...to here.
221 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
222 if shrink-wrapping and optimizing for speed.
224 2016-10-18 Richard Biener <rguenther@suse.de>
226 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
227 not visited but non-executable predecessors. Return taken edge.
228 Simplify conditions and refactor propagation vs. folding step.
230 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
232 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
233 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
234 (rs6000_get_separate_components): Assert we do not have those
237 2016-10-18 Richard Biener <rguenther@suse.de>
239 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
240 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
242 (substitute_and_fold_dom_walker): Adjust constructor.
243 (substitute_and_fold_dom_walker::before_dom_children): Remove
244 do_dce flag and handling (always true).
245 (substitute_and_fold): Likewise.
246 * tree-vrp.c (vrp_finalize): Adjust.
247 (execute_early_vrp): Remove final BB_VISITED clearing.
248 * tree-ssa-ccp.c (ccp_finalize): Adjust.
249 * tree-ssa-copy.c (fini_copy_prop): Likewise.
250 * ira.c (ira): Call clear_bb_flags.
252 2016-10-18 Richard Biener <rguenther@suse.de>
254 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
255 get at the operand to look at with TREE_OPERAND for generic
258 2016-10-18 David Malcolm <dmalcolm@redhat.com>
260 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
262 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
263 (write_test_expr): Use rtx_reader_ptr for calls to
265 (write_attr_value): Likewise.
266 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
267 call to print_md_ptr_loc.
268 (write_one_condition): Likewise for calls to print_c_condition.
269 * genconstants.c: Include "statistics.h" and "vec.h".
270 (main): Update for conversion to member functions.
271 * genemit.c (emit_c_code): Use rtx_reader_ptr for
272 call to print_md_ptr_loc.
273 * genenums.c: Include "statistics.h" and "vec.h".
274 (main): Update for conversion of traverse_enum_types to a method.
275 * genmddeps.c: Include "statistics.h" and "vec.h".
276 * genoutput.c (process_template): Use rtx_reader_ptr for call to
278 * genpreds.c (write_predicate_subfunction): Likewise.
279 (write_predicate_expr): Likewise for calls to print_c_condition.
280 * genrecog.c (print_test): Likewise.
281 * gensupport.c (process_rtx): Likewise for calls to
282 copy_md_ptr_loc and join_c_conditions.
283 (alter_test_for_insn): Likewise for call to join_c_conditions.
284 (process_substs_on_one_elem): Likewise.
285 (gen_mnemonic_setattr): Update for move of string_obstack to a
287 (mnemonic_htab_callback): Likewise. Fix formatting.
288 (gen_mnemonic_attr): Likewise.
289 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
290 to print_c_condition.
291 * read-md.c: Include "statistics.h" and "vec.h".
292 (string_obstack): Convert this global to field "m_string_obstack"
294 (ptr_locs): Likewise, as "m_ptr_locs".
295 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
296 (joined_conditions): Likewise, as "m_joined_conditions".
297 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
298 (md_constants): Likewise, as "m_md_constants".
299 (enum_types): Likewise, as "m_enum_types".
300 (set_md_ptr_loc): Convert to...
301 (rtx_reader::set_md_ptr_loc): ...member function.
302 (get_md_ptr_loc): Convert to...
303 (rtx_reader::get_md_ptr_loc): ...member function.
304 (copy_md_ptr_loc): Convert to...
305 (rtx_reader::copy_md_ptr_loc): ...member function.
306 (fprint_md_ptr_loc): Convert to...
307 (rtx_reader::fprint_md_ptr_loc): ...member function.
308 (print_md_ptr_loc): Convert to...
309 (rtx_reader::print_md_ptr_loc): ...member function.
310 (join_c_conditions): Convert to...
311 (rtx_reader::join_c_conditions): ...member function.
312 (fprint_c_condition): Convert to...
313 (rtx_reader::fprint_c_condition): ...member function.
314 (print_c_condition): Convert to...
315 (rtx_reader::print_c_condition): ...member function.
316 (read_name): Convert to...
317 (rtx_reader::read_name): ...member function.
318 (read_escape): Convert to...
319 (rtx_reader::read_escape): ...member function.
320 (read_quoted_string): Convert to...
321 (rtx_reader::read_quoted_string): ...member function.
322 (read_braced_string): Convert to...
323 (rtx_reader::read_braced_string): ...member function.
324 (read_string): Convert to...
325 (rtx_reader::read_string): ...member function.
326 (read_skip_construct): Convert to...
327 (rtx_reader::read_skip_construct): ...member function.
328 (handle_constants): Convert to...
329 (rtx_reader::handle_constants): ...member function.
330 (traverse_md_constants): Convert to...
331 (rtx_reader::traverse_md_constants): ...member function.
332 (handle_enum): Convert to...
333 (rtx_reader::handle_enum): ...member function.
334 (lookup_enum_type): Convert to...
335 (rtx_reader::lookup_enum_type): ...member function.
336 (traverse_enum_types): Convert to...
337 (rtx_reader::traverse_enum_types): ...member function.
338 (rtx_reader::rtx_reader): Move initializations
339 of various former global data from rtx_reader::read_md_files to
340 here, as fields, along with the call to unlock_std_streams.
341 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
343 (rtx_reader::read_md_files): Move initializations of various
344 global data from here to the ctor.
345 * read-md.h (read_name): Convert to...
346 (rtx_reader::read_name): ...member function.
347 (rtx_reader::read_escape): New method decl.
348 (read_quoted_string): Convert to...
349 (rtx_reader::read_quoted_string): ...member function.
350 (rtx_reader::read_braced_string): New method decl.
351 (read_string): Convert to...
352 (rtx_reader::read_string): ...member function.
353 (rtx_reader::read_skip_construct): New method decl.
354 (rtx_reader::set_md_ptr_loc): New method decl.
355 (rtx_reader::get_md_ptr_loc): New method decl.
356 (copy_md_ptr_loc): Convert to...
357 (rtx_reader::copy_md_ptr_loc): ...member function.
358 (fprint_md_ptr_loc): Convert to...
359 (rtx_reader::fprint_md_ptr_loc): ...member function.
360 (print_md_ptr_loc): Convert to...
361 (rtx_reader::print_md_ptr_loc): ...member function.
362 (rtx_reader::lookup_enum_type): New method decl.
363 (rtx_reader::traverse_enum_types): New method decl.
364 (rtx_reader::handle_constants): New method decl.
365 (traverse_md_constants): Convert to...
366 (rtx_reader::traverse_md_constants): ...member function.
367 (rtx_reader::handle_enum): New method decl.
368 (rtx_reader::join_c_conditions): New method decl.
369 (fprint_c_condition): Convert to...
370 (rtx_reader::fprint_c_condition): ...member function.
371 (print_c_condition): Convert to...
372 (rtx_reader::print_c_condition): ...member function.
373 (rtx_reader::apply_iterator_to_string): New method decl.
374 (rtx_reader::copy_rtx_for_iterators): New method decl.
375 (rtx_reader::read_conditions): New method decl.
376 (rtx_reader::record_potential_iterator_use): New method decl.
377 (rtx_reader::read_mapping): New method decl.
378 (rtx_reader::read_rtx): New method decl.
379 (rtx_reader::read_rtx_code): New method decl.
380 (rtx_reader::read_rtx_operand): New method decl.
381 (rtx_reader::read_nested_rtx): New method decl.
382 (rtx_reader::read_rtx_variadic): New method decl.
383 (rtx_reader::get_string_obstack): New method.
384 (rtx_reader::get_md_constants): New method.
385 (string_obstack): Convert global variable decl to...
386 (rtx_reader::m_string_obstack): ...this new field.
387 (rtx_reader::m_ptr_locs): New field.
388 (rtx_reader::m_ptr_loc_obstack): New field.
389 (rtx_reader::m_joined_conditions): New field.
390 (rtx_reader::m_joined_conditions_obstack): New field.
391 (rtx_reader::m_md_constants): New field.
392 (rtx_reader::m_enum_types): New field.
393 * read-rtl.c (apply_iterator_to_string): Convert to...
394 (rtx_reader::apply_iterator_to_string): ...member function.
395 (copy_rtx_for_iterators): Convert to...
396 (rtx_reader::copy_rtx_for_iterators): ...member function.
397 (add_condition_to_string): Use rtx_reader_ptr for
398 calls join_c_conditions.
399 (apply_iterators): Use rtx_reader_ptr for calls to
400 join_c_conditions and copy_rtx_for_iterators.
401 (read_conditions): Convert to...
402 (rtx_reader::read_conditions): ...member function.
403 (record_potential_iterator_use): Convert to...
404 (rtx_reader::record_potential_iterator_use): ...member function.
405 (read_mapping): Convert to...
406 (rtx_reader::read_mapping): ...member function.
407 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
408 (read_rtx): Convert to...
409 (rtx_reader::read_rtx): ...member function.
410 (read_rtx_code): Convert to...
411 (rtx_reader::read_rtx_code): ...member function.
412 (read_rtx_operand): Convert to...
413 (rtx_reader::read_rtx_operand): ...member function. Update for move
414 of string_obstack to a field.
415 (read_nested_rtx): Convert to..
416 (rtx_reader::read_nested_rtx): ...member function.
417 (read_rtx_variadic): Convert to..
418 (rtx_reader::read_rtx_variadic): ...member function.
420 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
422 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
424 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
426 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
427 for pointer type too.
428 (ipcp_update_vr): set_ptr_nonnull for pointer.
430 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
432 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
433 pt_solution_singleton_p.
434 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
435 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
436 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
437 pointer nonnull computed by VRP.
438 Also Conservatively set pt.null to 1.
439 (pt_solution_reset): Conservatively set pt.null to 1.
440 (pt_solution_singleton_or_null_p): Renamed from
441 pt_solution_singleton_p.
442 * tree-ssanames.h (set_ptr_nonnull): Declare.
443 (get_ptr_nonnull): Likewise.
444 * tree-ssanames.c (set_ptr_nonnull): New.
445 (get_ptr_nonnull): Likewise.
446 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
447 (evrp_dom_walker::before_dom_children): Likewise.
449 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
451 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
452 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
453 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
454 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
455 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
456 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
457 (rs6000_option_override_internal): Clear it if ABI_AIX.
458 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
459 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
461 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
463 * gimple-ssa-strength-reduction.c (record_increment): Remove
466 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
468 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
469 that the result is non-zero if it is true.
470 (maybe_expand_shift): New wrapper around expand_shift_1.
471 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
473 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
475 PR tree-optimization/77916
476 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
477 Don't allow a MINUS_EXPR for pointer arithmetic for either known
479 (record_increment): Increments of -1 for unknown strides just use
480 a multiply initializer like other negative values.
481 (analyze_increments): Remove stopgap solution for -1 increment
482 applied to pointer arithmetic.
484 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
486 * dominance.c (dom_info::dom_info): Add new constructor for region
487 which is vector of basic blocks.
488 (dom_init): New method to initialize members common for both
490 (dom_info::dom_info): Invoke dom_init for partial initialization.
491 (dom_info::get_idom): Add check to corner cases on basic blocks which
493 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
494 to detect unreachable bbs.
495 (dom_info::calc_idoms): Likewise.
496 (compute_dom_fast_query_in_region): New function.
497 (calculate_dominance_info_for_region): Likewise.
498 (free_dominance_info_for_region): Likewise.
499 * dominance.h: Add prototypes for introduced region-based functions
500 tree-if-conv.c: (build_region): New function.
501 (if_convertible_loop_p_1): Invoke local version of post-dominators
502 calculation before basic block predication with subsequent freeing
504 (tree_if_conversion): Remove free of post-dominator info
505 (pass_if_conversion::execute): Delete detection of infinite loops
506 and fake edges to exit block since post-dominator calculation is
507 performed per if-converted loop only.
509 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
512 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
514 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
517 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
519 * config/aarch64/aarch64.c: Delete inclusion of
520 cortex-a57-fma-steering.h.
521 (aarch64_override_options): Delete call
522 to aarch64_register_fma_steering.
523 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
524 * config/aarch64/cortex-a57-fma-steering.h: Delete.
525 * config/aarch64/aarch64-passes.def: New file.
526 * config/aarch64/cortex-a57-fma-steering.c
527 (aarch64_register_fma_steering): Delete definition.
528 (make_pass_fma_steering): Remove static qualifier.
529 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
530 (cortex-a57-fma-steering.o): Remove dependency on
531 cortex-a57-fma-steering.h.
533 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
535 * explow.c (validize_mem): Do not modify the argument in-place.
537 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
539 * tree-streamer.c (record_common_node): Explicitly list expected
542 2016-10-17 Richard Biener <rguenther@suse.de>
544 PR tree-optimization/77988
545 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
547 2016-10-17 Marek Polacek <polacek@redhat.com>
549 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
551 2016-10-17 Richard Biener <rguenther@suse.de>
553 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
556 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
558 PR tree-optimization/71636
559 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
561 2016-10-17 Richard Biener <rguenther@suse.de>
563 * gimplify.c (gimplify_function_tree): Do not move the outer
566 2016-10-17 Jakub Jelinek <jakub@redhat.com>
568 * langhooks.h (struct lang_hooks_for_decls): Remove
569 function_decl_explicit_p, function_decl_deleted_p and
570 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
571 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
572 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
573 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
574 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
575 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
576 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
577 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
578 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
579 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
580 * langhooks.c (lhd_decl_dwarf_attribute): New function.
581 * dwarf2out.c (gen_subprogram_die): Use
582 lang_hooks.decls.decl_dwarf_attribute instead of
583 lang_hooks.decls.function_decl_*.
585 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
589 * common.opt (-ftrampolines): New option.
590 * doc/invoke.texi (Code Gen Options): Document it.
591 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
592 * doc/tm.texi: Regenerate.
593 * builtins.def: Add init_descriptor and adjust_descriptor.
594 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
595 on platforms with descriptors.
596 (expand_builtin_init_descriptor): New function.
597 (expand_builtin_adjust_descriptor): Likewise.
598 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
599 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
600 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
601 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
602 Set STATIC_CHAIN_REG_P on the static chain register, if any.
603 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
604 (expand_call): Likewise. Move around call to prepare_call_address
605 and pass all flags to it.
606 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
607 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
608 (gimple_call_set_by_descriptor): New setter.
609 (gimple_call_by_descriptor_p): New getter.
610 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
611 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
612 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
613 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
614 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
615 * rtl.h (STATIC_CHAIN_REG_P): New macro.
616 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
617 * target.def (custom_function_descriptors): New POD hook.
618 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
619 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
620 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
621 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
622 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
623 (build_common_builtin_nodes): Initialize init_descriptor and
625 * tree-nested.c: Include target.h.
626 (struct nesting_info): Add 'any_descr_created' field.
627 (get_descriptor_type): New function.
628 (lookup_element_for_decl): New function extracted from...
629 (create_field_for_decl): Likewise.
630 (lookup_tramp_for_decl): ...here. Adjust.
631 (lookup_descr_for_decl): New function.
632 (convert_tramp_reference_op): Deal with descriptors.
633 (build_init_call_stmt): New function extracted from...
634 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
635 * defaults.h (FUNCTION_ALIGNMENT): Define.
636 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
637 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
638 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
639 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
640 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
642 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
644 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
645 constants in CONST_VECTORs.
647 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
649 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
650 register as destination of bmask.
651 (vector_init_bshuffle): Likewise.
652 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
653 (bmaskdi_vis): Enable only in 64-bit mode.
655 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
657 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
658 make LR a separately shrink-wrapped component unless savres_strategy
659 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
660 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
661 wrapping when not both {SAVE,REST}_INLINE_GPRS.
663 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
665 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
666 and keep looping on failure.
668 2016-10-14 David Malcolm <dmalcolm@redhat.com>
670 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
672 (print_rtx_function): Update example in comment for...
673 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
674 non-virtual pseudos with a '%' sigil followed by the regno, offset
675 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
676 pseudo is dumped as "%0".
678 2016-10-14 Jakub Jelinek <jakub@redhat.com>
681 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
684 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
686 * config/sparc/sparc-passes.def: New file.
687 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
688 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
689 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
691 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
693 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
694 loop peel to loops with exit test at the beginning.
696 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
698 PR rtl-optimization/68212
699 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
700 frequency when computing scale factor for peeled copies.
701 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
702 values for switch/peel blocks/edges.
704 2016-10-14 Pedro Alves <palves@redhat.com>
706 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
708 2016-10-14 Catherine Moore <clm@codesourcery.com>
710 * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
711 micromips_globals to zero.
713 2016-10-14 Richard Biener <rguenther@suse.de>
715 PR tree-optimization/77979
716 * tree-vrp.c (compare_name_with_value): Handle released SSA names
717 in the equivalency sets.
718 (compare_names): Likewise.
720 2016-10-14 Martin Liska <mliska@suse.cz>
722 * builtins.h(target_char_cst_p): Declare the function.
723 * builtins.c (fold_builtin_memchr): Remove.
724 (target_char_cst_p): Move the function from gimple-fold.c.
725 (fold_builtin_3): Do not call the function.
726 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
727 (gimple_fold_builtin): Call the function.
728 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
730 2016-10-14 Martin Liska <mliska@suse.cz>
732 * builtins.c (fold_builtin_strcmp): Remove function.
733 (fold_builtin_strncmp): Likewise.
734 (fold_builtin_2): Remove call of the function.
735 (fold_builtin_3): Likewise.
736 * fold-const-call.c (fold_const_call): Add constant folding
737 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
738 * fold-const-call.h (build_cmp_result): Declare the function.
739 * gimple-fold.c (gimple_load_first_char): New function.
740 (gimple_fold_builtin_string_compare): Likewise.
741 (gimple_fold_builtin): Call the function.
743 2016-10-14 Nathan Sidwell <nathan@acm.org>
745 * gcov-io.c (gcov_open): Deconstify 'mode'.
747 2016-10-14 Martin Liska <mliska@suse.cz>
749 * fold-const.c (c_getstr): Support of properly \0-terminated
750 string constants. New argument is added.
751 * fold-const.h: New argument is added.
753 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
755 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
757 (aarch64_print_hint_for_core): Likewise.
758 (aarch64_print_hint_for_arch): Likewise.
759 (aarch64_validate_march): Use it. Fix indentation in type signature.
760 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
761 (aarch64_validate_mtune): Likewise.
762 (aarch64_handle_attr_arch): Likewise.
763 (aarch64_handle_attr_cpu): Likewise.
764 (aarch64_handle_attr_tune): Likewise.
766 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
768 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
771 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
773 * config/m68k/m68k.c (m68k_option_override): Check
774 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
775 instead of stack_limit_rtx.
777 2016-10-13 Jakub Jelinek <jakub@redhat.com>
779 * dwarf2out.c (gen_member_die): Handle inline static data member
782 2016-10-13 Nathan Sidwell <nathan@acm.org>
784 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
785 gcov_var.mode. Remove unnecessary fstat.
787 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
790 * function.c (thread_prologue_and_epilogue_insns): Call all
791 make_*logue_seq in the same order as traditional. Call them
792 all a second time if shrink_wrapped_separate.
794 2016-10-13 Marek Polacek <polacek@redhat.com>
796 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
797 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
800 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
802 PR tree-optimization/77937
803 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
804 to infinite when we have a pointer with an increment of -1.
806 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
808 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
810 * memmodel.h: This file.
811 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
812 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
813 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
814 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
815 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
816 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
817 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
818 compare-elim.c, config/aarch64/aarch64-builtins.c,
819 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
820 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
821 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
822 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
823 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
824 config/darwin.c, config/epiphany/epiphany.c,
825 config/epiphany/mode-switch-use.c,
826 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
827 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
828 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
829 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
830 config/m68k/m68k.c, config/mcore/mcore.c,
831 config/microblaze/microblaze.c, config/mmix/mmix.c,
832 config/mn10300/mn10300.c, config/moxie/moxie.c,
833 config/msp430/msp430.c, config/nds32/nds32-cost.c,
834 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
835 config/nds32/nds32-memory-manipulation.c,
836 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
837 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
838 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
839 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
840 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
841 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
842 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
843 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
844 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
845 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
846 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
847 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
848 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
849 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
850 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
851 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
852 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
853 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
854 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
855 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
856 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
857 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
858 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
859 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
860 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
861 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
862 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
863 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
864 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
865 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
866 var-tracking.c, varasm.c: Include memmodel.h.
867 * genattrtab.c (write_header): Include memmodel.h in generated file.
868 * genautomata.c (main): Likewise.
869 * gengtype.c (open_base_files): Likewise.
870 * genopinit.c (main): Likewise.
871 * genconditions.c (write_header): Include memmodel.h earlier in
873 * genemit.c (main): Likewise.
874 * genoutput.c (output_prologue): Likewise.
875 * genpeep.c (main): Likewise.
876 * genpreds.c (write_insn_preds_c): Likewise.
877 * genrecog.c (write_header): Likewise.
878 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
880 2016-10-13 David Malcolm <dmalcolm@redhat.com>
882 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
883 for new "compact" param of print_rtx_function. Check for "cinsn"
885 * print-rtl-function.c (flag_compact): New decl.
886 (print_rtx_function): Add param "compact" and use it to set
887 flag_compact, adding a description of the effect to the leading
888 comment, and updating the example output.
889 * print-rtl.c (flag_compact): New variable.
890 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
892 (print_rtx_operand_code_i): When printing source locations, wrap
893 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
894 (print_rtx_operand_code_r): Don't print regnos for hard regs and
895 virtuals in compact mode.
896 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
897 apart from in LABEL_REFs.
898 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
899 Don't print basic block ids in compact mode.
900 (print_rtx): In compact mode, prefix the code of insns with "c",
901 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
902 * print-rtl.h (print_rtx_function): Add "compact" param.
904 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
906 * arm.h (TARGET_VFP): Delete.
907 (TARGET_VFPD32): Remove references to TARGET_VFP.
908 (TARGET_VFP3, TARGET_VFP5): Likewise.
909 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
910 (TARGET_NEON_FP16): Likewise.
911 (TARGET_FMA): Likewise.
912 (TARGET_CRYPTO): Likewise.
913 (TARGET_NEON): Likewise.
914 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
915 (FUNCTION_ARG_REGNO_P): Likewise.
916 * arm.c (arm_option_check_internal): Likewise.
917 (arm_option_override): Likewise.
918 (use_return_insn): Likewise.
919 (arm_function_value_regno_p): Likewise.
920 (arm_apply_result_size): Likewise.
921 (use_vfp_abi): Likewise.
922 (arm_legitimate_address_outer_p): Likewise.
923 (thumb2_legitimate_address_p): Likewise.
924 (arm_legitimate_index_p): Likewise.
925 (thumb2_legitimate_index_p): Likewise.
926 (arm_legitimate_address): Likewise.
927 (arm_get_vfp_saved_size): Likewise.
928 (arm_emit_vfp_multi_reg_pop): Likewise.
929 (arm_get_frame_offsets): Likewise.
930 (arm_save_coproc_regs): Likewise.
931 (arm_hard_regno_mode_ok): Likewise.
932 (arm_expand_epilogue_apcs_frame): Likewise.
933 (arm_expand_epilogue): Likewise.
934 (arm_file_start): Likewise.
935 (arm_conditional_register_usage): Likewise.
936 (arm_validize_comparison): Use vfp_compare_operand directly.
937 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
938 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
940 (arm_atomic_assign_expand_fenv): Likewise.
941 * arm.md (divsf3): Likewise.
942 (arm_negsi2): Likewise.
944 (arm_movdi): Likewise.
945 (arm_movt): Likewise.
946 (cbranchsf4): Change predicate to vfp_compare_operand.
947 (cbranchdf4): Change predicate to vfp_compare_operand.
948 (cstorehf4): Change predicate to vfp_compare_operand.
949 (cstoresf4): Change predicate to vfp_compare_operand.
950 (cstoredf4): Change predicate to vfp_compare_operand.
951 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
952 (movhi_insn_arch4, movhi_bytes): Likewise.
953 * constraints.md (Dt): Likewise.
955 * iterators.md (SDF): Likewise.
956 * predicates.md (arm_float_compare_operand): Delete.
957 (const_double_vcvt_power_of_two_reciprocal): Remove references to
959 (const_double_vcvt_power_of_two): Likewise.
960 * thumb2.md thumb2_movsi_insn): Likewise.
961 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
962 (movhf_vfp): Likewise.
963 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
964 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
965 (movsf_vfp, thumb2_movsf_vfp): Likewise.
966 (movdf_vfp, thumb2_movdf_vfp): Likewise.
967 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
968 (subsf3_vfp, divsf3_vfp): Likewise.
969 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
970 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
971 (mulsf3negsfsubsf_vfp): Likewise.
972 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
973 (floatunssisf2, sqrtsf2_vfp): Likewise.
974 (movcc_vfp): Likewise.
975 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
976 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
977 (push_multi_vfp): Likewise.
978 (set_fpscr, get_fpscr): Likewise.
979 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
981 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
983 * arm.h (TARGET_VFP): Unconditionally define to 1.
984 (arm_fpu_desc): Remove 'model' field.
985 (TARGET_FPU_MODEL): Delete.
986 * arm.c (all_fpus): Don't initialize the model field.
987 (arm_can_inline_p): Don't check the FPU model.
988 * arm-fpus.def: Remove redundant model field from all FPU
991 2016-10-13 Richard Biener <rguenther@suse.de>
994 * genmatch.c (struct capture): Add value_match member.
995 (commutate): Preserve value_match.
996 (lower_opt_convert): Likewise.
997 (lower_cond): Likewise.
998 (replace_id): Likewise.
999 (struct dt_operand): Add value_match member.
1000 (decision_tree::cmp_node): Compare it.
1001 (decision_tree::insert_operand): Honor it when finding and
1002 when appending a DT_MATCH.
1003 (dt_operand::gen_match_op): Generate a type check after
1004 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
1005 (parser::get_internal_capture_id): New helper.
1006 (parser::finish_match_operand): New function lowering @@<id>.
1007 (parser::parse_capture): Parse @@<id> as value-match.
1008 (parser::parse_expr): Use get_internal_capture_id.
1009 (parser::parse_simplify): Call finish_match_operand.
1010 (walk_captures): New helper.
1011 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
1013 ((X /[ex] A) * A -> X): Likewise.
1014 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
1015 convert[12] and value-matching.
1016 ((A | B) & (A | C) -> A | (B & C)): Likewise.
1017 ((X | Y) | Y -> X | Y): Likewise.
1018 ((X ^ Y) ^ Y -> X): Likewise.
1019 (A - (A & B) -> ~B & A): Likewise.
1020 ((T)(P + A) - (T)P -> (T) A): Likewise.
1021 ((T)P - (T)(P + A) -> -(T) A): Likewise.
1022 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
1023 * doc/match-and-simplify.texi: Amend capture section.
1025 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1027 * config/arc/arc.md (umul_600): Remove predicated variant.
1028 (umul64_600): Likewise.
1030 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
1032 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
1034 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1036 * tree-vect-loop.c (loop_niters_no_overflow): New func.
1037 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
1038 no-overflow information to vect_do_peeling_for_loop_bound and
1039 vect_gen_vector_loop_niters.
1041 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1043 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
1046 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1048 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
1049 adjust_vec automatically.
1050 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
1051 param exit_bb to guard_to.
1052 (slpeel_checking_verify_cfg_after_peeling):
1053 (set_prologue_iterations):
1054 (create_lcssa_for_virtual_phi): New func which is factored out from
1055 slpeel_tree_peel_loop_to_edge.
1056 (slpeel_tree_peel_loop_to_edge):
1057 (iv_phi_p): New func.
1058 (vect_can_advance_ivs_p): Call iv_phi_p.
1059 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
1060 new gimple stmts in basic block.
1061 (vect_do_peeling_for_loop_bound):
1062 (vect_do_peeling_for_alignment):
1063 (vect_gen_niters_for_prolog_loop): Rename to...
1064 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
1065 adjust implementation.
1066 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
1067 sizetype if necessary.
1068 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
1069 it to external function.
1070 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
1071 (vect_gen_vector_loop_niters_mult_vf): New.
1072 (slpeel_update_phi_nodes_for_loops): New.
1073 (slpeel_update_phi_nodes_for_guard1): Reimplement.
1074 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
1075 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
1076 * tree-vect-loop.c (vect_build_loop_niters): Move to file
1077 tree-vect-loop-manip.c
1078 (vect_generate_tmps_on_preheader): Delete.
1079 (vect_transform_loop): Rename vectorization_factor to vf. Call
1080 vect_do_peeling instead of vect_do_peeling-* functions.
1081 * tree-vectorizer.h (vect_do_peeling): New decl.
1082 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
1083 (vect_do_peeling_for_loop_bound): Delete.
1084 (vect_do_peeling_for_alignment): Delete.
1086 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1088 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
1089 duplicated loop after its preheader and after the original loop.
1091 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1093 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
1094 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
1096 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1098 * tree-vect-loop.c (vectorizable_live_operation): Support handling
1099 for live variable outside loop but not in lcssa form.
1101 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1103 * cfg.c (reset_original_copy_tables): New func.
1104 * cfg.h (reset_original_copy_tables): New decl.
1106 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1109 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
1111 * varasm.c (default_binds_local_p_3): Formatting fix.
1113 2016-10-13 Bin Cheng <bin.cheng@arm.com>
1115 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
1117 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1118 Remove useless code.
1120 2016-10-13 Martin Liska <mliska@suse.cz>
1122 PR tree-optimization/77943
1123 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
1124 a different EH landing pads.
1126 2016-10-13 Jakub Jelinek <jakub@redhat.com>
1129 * hooks.h (hook_tree_void_null): Declare.
1130 * hooks.c (hook_tree_void_null): New function.
1131 * langhooks.c (lhd_return_null_tree_v): Remove.
1132 * langhooks-def.h (lhd_return_null_tree_v): Remove.
1133 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
1134 set y to const0_rtx.
1135 * function.c (stack_protect_epilogue): Likewise.
1136 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
1137 if TARGET_THREAD_SSP_OFFSET is defined.
1138 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1139 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1140 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1141 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1142 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
1143 (ix86_stack_protect_guard): New function.
1145 2016-10-13 Richard Biener <rguenther@suse.de>
1147 * dwarf2out.c (tree_add_const_value_attribute): Do not try
1148 rtl_for_decl_init during early phase.
1149 (gen_variable_die): Do not create locations during early phase.
1150 (gen_label_die): Likewise.
1151 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
1154 2016-10-12 Richard Biener <rguenther@suse.de>
1156 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
1157 try_add_new_range and made to eturn new range.
1158 (evrp_dom_walker::before_dom_children): Push op1 value range before
1159 pushing op0 value range.
1161 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1163 PR tree-optimization/77937
1164 * gimple-ssa-strength-reduction.c (analyze_increments): Use
1165 POINTER_TYPE_P on the candidate type to determine whether
1166 candidates in this chain require pointer arithmetic.
1168 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
1170 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
1171 correction if the type is smaller than a word.
1172 (visium_select_cc_mode): Add ... fall through ... comment.
1174 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1176 * config/rs6000/rs6000.c (machine_function): Add new fields
1177 gpr_is_wrapped_separately and lr_is_wrapped_separately.
1178 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
1179 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
1180 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
1181 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
1182 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
1183 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
1184 (rs6000_get_separate_components): New function.
1185 (rs6000_components_for_bb): New function.
1186 (rs6000_disqualify_components): New function.
1187 (rs6000_emit_prologue_components): New function.
1188 (rs6000_emit_epilogue_components): New function.
1189 (rs6000_set_handled_components): New function.
1190 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
1191 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
1192 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
1193 (rs6000_emit_epilogue): Don't emit GPR restores if
1194 gpr_is_wrapped_separately for that register. Don't make a
1195 REG_CFA_RESTORE note for registers we did not restore, either.
1197 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1199 * function.c (thread_prologue_and_epilogue_insns): Call
1200 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
1201 if it has possibly changed. Compute the split_prologue_seq and
1202 epilogue_seq later, too.
1203 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
1204 (dump_components): New function.
1205 (struct sw): New struct.
1207 (init_separate_shrink_wrap): New function.
1208 (fini_separate_shrink_wrap): New function.
1209 (place_prologue_for_one_component): New function.
1210 (spread_components): New function.
1211 (disqualify_problematic_components): New function.
1212 (emit_common_heads_for_components): New function.
1213 (emit_common_tails_for_components): New function.
1214 (insert_prologue_epilogue_for_components): New function.
1215 (try_shrink_wrapping_separate): New function.
1216 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
1218 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1220 * regrename.c (build_def_use): Invalidate chains that have a
1221 REG_CFA_RESTORE on some instruction.
1223 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1225 * dce.c (delete_unmarked_insns): Don't delete instructions with
1226 a REG_CFA_RESTORE note.
1228 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1230 * common.opt (-fshrink-wrap-separate): New flag.
1231 * doc/invoke.texi: Document it.
1232 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
1233 * doc/tm.texi: Regenerate.
1234 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
1235 * target.def (shrink_wrap): New hook vector.
1236 (get_separate_components, components_for_bb, disqualify_components,
1237 emit_prologue_components, emit_epilogue_components,
1238 set_handled_components): New hooks.
1240 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
1242 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
1243 vector return by reference only if -Wpsabi.
1244 (rs6000_pass_by_reference): Similarly, for argument passing.
1246 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1248 * function-tests.c: Include "print-rtl.h".
1249 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
1250 function, and verify what is dumped.
1251 * print-rtl-function.c (print_edge): New function.
1252 (begin_any_block): New function.
1253 (end_any_block): New function.
1254 (can_have_basic_block_p): New function.
1255 (print_rtx_function): Track the basic blocks of insns in the
1256 chain, wrapping those that are within blocks within "(block)"
1257 directives. Remove the "(cfg)" directive.
1259 2016-10-12 David Malcolm <dmalcolm@redhat.com>
1261 * selftest.c (selftest::read_file): New function.
1262 (selftest::test_read_file): New function.
1263 (selftest::selftest_c_tests): Call test_read_file.
1264 * selftest.h (selftest::read_file): New decl.
1266 2016-10-12 Richard Biener <rguenther@suse.de>
1269 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
1272 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
1274 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
1276 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
1277 dwarf2out_assembly_start.
1279 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
1281 * Makefile.in (SELFTEST_FLAGS): New variable.
1282 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
1284 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
1287 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
1289 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
1290 dumped in RTL dumps.
1292 2016-10-12 Martin Liska <mliska@suse.cz>
1294 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
1295 (gimple_fold_builtin_memory_op): Use the function.
1296 (gimple_fold_builtin_strchr): Likewise.
1297 (gimple_fold_builtin_strcat): Likewise.
1298 (gimple_build): Likewise.
1300 2016-10-12 Nathan Sidwell <nathan@acm.org>
1302 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
1304 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1306 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
1307 equivalent 32-bit constant (modulo 2**32) when that yields
1308 smaller instructions.
1309 (size_of_int_loc_descriptor): Update accordingly.
1311 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
1313 * dwarf2out.c (dwarf2out_early_global_decl): For nested
1314 functions, call dwarf2out_decl on the parent function first.
1316 2016-10-12 Richard Biener <rguenther@suse.de>
1318 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
1321 2016-10-12 Richard Biener <rguenther@suse.de>
1323 * tree-ssa-propagate.c
1324 (substitute_and_fold_dom_walker::before_dom_children): Do not
1325 ignore ASSERT_EXPRs but only preserve them.
1326 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
1327 that have been propagated into.
1328 (vrp_finalize): Enable DCE for substitute_and_fold.
1330 2016-10-12 Richard Biener <rguenther@suse.de>
1332 PR tree-optimization/77920
1333 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
1334 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
1335 (simplify_abs_using_ranges): Likewise.
1336 (simplify_conversion_using_ranges): Likewise.
1337 (simplify_stmt_using_ranges): Adjust.
1339 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1341 PR tree-optimization/77929
1342 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
1343 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
1345 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1348 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
1349 needs a base register for arg 1.
1351 2016-10-12 Jakub Jelinek <jakub@redhat.com>
1353 * common.opt (Wimplicit-fallthrough) Turn into alias to
1354 -Wimplicit-fallthrough=3. Remove EnabledBy.
1355 (Wimplicit-fallthrough=): New option.
1356 * gimplify.c (warn_implicit_fallthrough_r): Use
1357 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
1358 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
1359 to -Wimplicit-fallthrough=3.
1360 (-Wimplicit-fallthrough=): Document.
1362 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1364 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
1365 and GEU in DImode if TARGET_SUBXC.
1366 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
1367 (seqdi<W:mode>_zero_subxc): Delete.
1368 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
1369 (neg_seqdi<W:mode>_zero_vis3): Delete.
1370 (plus_seqdi<W:mode>_zero): Likewise.
1371 (minus_seqdi<W:mode>_zero): Likewise.
1372 (plus_plus_sltu<W:mode>): Accept only register.
1373 (addx<W:mode>): Likewise.
1374 (plus_sltu<W:mode>_vis3): Likewise.
1375 (plus_plus_sltu<W:mode>_vis3): Likewise.
1376 (neg_sgeu<W:mode>_vis3): Delete.
1377 (minus_sgeu<W:mode>_vis3): Likewise.
1378 (addxc<W:mode>): Accept only registers.
1379 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1380 (minus_neg_sltu<W:mode>_subxc): Accept only register.
1381 (neg_plus_sltu<W:mode>_subxc): Likewise.
1382 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
1383 (minus_minus_sltu<W:mode>_subxc): Accept only register.
1384 (sgeu<W:mode>_insn_subxc): Delete.
1385 (plus_sgeu<W:mode>_subxc): Likewise.
1386 (subxc<W:mode>): Accept only register.
1387 (scc splitter): Split always GEU again.
1389 2016-10-11 Jeff Law <law@redhat.com>
1391 PR tree-optimization/77424
1392 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
1393 dead conditionals. Assert that all e->aux fields are NULL.
1395 2016-10-11 David Malcolm <dmalcolm@redhat.com>
1397 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
1398 operand-printing "switch" statement into...
1399 (print_rtx_operand_code_0): ...this new function, ...
1400 (print_rtx_operand_code_e): ...this new function, ...
1401 (print_rtx_operand_codes_E_and_V): ...this new function, ...
1402 (print_rtx_operand_code_i): ...this new function, ...
1403 (print_rtx_operand_code_r): ...this new function, ...
1404 (print_rtx_operand_code_u): ...this new function, ...
1405 (print_rtx_operand): ...and this new function.
1407 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
1409 * config/alpha/alpha-passes.def: New file.
1410 * config/alpha/t-alpha: New file.
1411 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
1412 (make_pass_handle_trap_shadows): New prototype.
1413 (make_pass_align_insns): Ditto.
1414 * config/alpha/alpha.c (alpha_option_override): Don't register
1416 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
1418 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1421 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
1422 distinct __ibm128 IBM extended double type if long doubles are
1423 128-bits and the default format for long double is IEEE 128-bit.
1425 2016-10-11 Richard Biener <rguenther@suse.de>
1427 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
1428 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
1429 (verify_die): New function.
1430 (dwarf2out_finish): Call it.
1431 (output_line_info): Handle case of -gsplit-dwarf without
1432 DWARF2_ASM_LINE_DEBUG_INFO.
1434 2016-10-11 Richard Biener <rguenther@suse.de>
1437 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
1438 sub-chains of BLOCK_VARS and gimple_bind_vars.
1440 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1442 * config/i386/znver1.md : Fix imov/imovx load type reservations.
1444 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1446 * config/sparc/sparc.opt (msubxc): New option.
1447 * doc/invoke.texi (SPARC options): Document it and tidy up.
1448 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
1449 * doc/tm.texi: Regenerate.
1450 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
1452 (CCX_NOOV): Rename into...
1456 * config/sparc/predicates.m (fcc_register_operand): Simplify.
1457 (fcc0_register_operand): Likewise.
1458 (icc_register_operand): New.
1459 (icc_or_fcc_register_operand): Simplify.
1460 (nz_comparison_operator): New.
1461 (c_comparison_operator): Likewise.
1462 (noov_compare_operator): Rename into...
1463 (icc_comparison_operator): ...this. Use above predicates.
1464 (noov_compare64_operator): Rename into...
1465 (v9_comparison_operator): ...this and tidy up.
1466 (fcc_comparison_operator): New.
1467 (icc_or_fcc_comparison_operator): Likewise.
1468 (v9_register_compare_operator): Rename info...
1469 (v9_register_comparison_operator): ...this.
1470 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
1471 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
1473 (sparc_fixed_condition_code_regs): New function.
1474 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
1475 renaming and add support for CCC/CCXC.
1476 (output_cbranch): Likewise.
1477 (sparc_print_operand): Likewise.
1478 (gen_v9_scc): Remove obsolete assertion.
1479 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
1480 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
1481 (output_cbcond): Remove bogus handling of CC modes.
1482 (sparc_register_move_cost): Return 100 for NO_REGS.
1483 * config/sparc/sparc.md (W): New mode iterator.
1484 (length): Adjust for noov_compare64_operator renaming.
1485 (cmpsi_sne): New instruction.
1486 (cmpdi_sne): Likewise.
1487 (seqdi_special): Delete.
1488 (seqdi_special): Likewise.
1489 (snesi<P:mode>_special): Likewise.
1490 (snedi_special): Likewise.
1491 (snedi_special_vis3): Likewise.
1492 (snesi patterns): Use W iterator.
1493 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
1494 (sltu patterns): Likewise.
1495 (sgeu patterns): Likewise.
1496 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
1497 (normal_branch): Use icc_comparison_operator predicate.
1498 (inverted_branch): Likewise.
1499 (cbcond_sp32): Use comparison_operator predicate.
1500 (cbcond_sp64): Likewise.
1501 (normal_int_branch_sp64): Adjust for renaming
1502 (inverted_int_branch_sp64): Likewise.
1503 (mov<I:mode>_cc_reg_sp64): Likewise.
1504 (movsf_cc_reg_sp6): Likewise.
1505 (movdf_cc_reg_sp64): Likewise.
1506 (movtf_cc_reg_hq_sp64): Likewise.
1507 (movtf_cc_reg_sp64): Likewise.
1508 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
1509 (movsf_cc_v9): Likewise.
1510 (movdf_cc_v9): Likewise.
1511 (movtf_cc_hq_v9): Likewise.
1512 (movtf_cc_v9): Likewise.
1513 (adddi3): Call gen_adddi3_sp32.
1514 (adddi3_insn_sp32): Rename to...
1515 (adddi3_sp32): ...this. Accept only register_operand as operand #1
1516 and use CCCmode for the carry.
1517 (addx_extend_sp32): Use CCCmode for the carry.
1518 (addx_extend_sp64): Delete.
1519 (adddi3_extend_sp32): Use CCCmode for the carry.
1520 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
1521 (subdi3): Call gen_subdi3_sp32.
1522 (subdi3_insn_sp32): Rename to...
1523 (subdi3_sp32): ...this and use CCmode for the carry.
1524 (subx_extend_sp32): Use CCCmode for the carry.
1525 (subx_extend_sp64): Delete.
1526 (subdi3_extend_sp32): Use CCmode for the carry.
1527 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
1528 (negdi3): Call gen_negdi3_sp32.
1529 (negdi3_sp32): Use CCCmode for the carry.
1530 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
1531 (cmp_nz_ashift_1): Use CCNZ mode.
1532 (cmp_nz_set_ashift_1): Likewise.
1533 (ctrapsi4): Use comparison_operator predicate.
1534 (ctrapdi4): Likewise.
1535 (trapsi_insn): Use icc_comparison_operator predicate.
1536 (trapdi_insn): Likewise.
1537 (edge8 patterns): Use CCNZmode.
1538 (edge16 patterns): Likewise.
1539 (edge32 patterns): Likewise.
1541 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1543 * config/visium/visium-modes.def (CC_NOOV): Rename into...
1545 (CC_BTST): Rename into...
1547 * config/visium/predicates.md (real_add_operand): New.
1548 (visium_btst_operator): Rename into...
1549 (visium_equality_comparison_operator): ...this.
1550 (visium_noov_operator): Rename into...
1551 (visium_nz_comparison_operator): ...this.
1552 (visium_c_comparison_operator): New.
1553 (visium_branch_operator): Adjust and deal with all CC modes.
1554 * config/visium/visium.c (visium_adjust_cost): Adjust.
1555 (visium_split_double_add): Use the *_set_carry patterns.
1556 (visium_select_cc_mode): Add support for CCC mode and adjust.
1557 (output_cbranch): Adjust and use the carry-based operators for
1558 floating-point comparisons.
1559 * config/visium/visium.md (flags_subst_arith): Adjust.
1560 (addsi3_insn_set_carry): New instruction.
1561 (subsi3_insn_set_carry): Likewise.
1562 (negsi2_insn_set_carry): Likewise.
1564 (cmp<mode>_sne): Likewise.
1565 (cbranch<mode>4): Use ordered_comparison_operator.
1566 (cbranch<mode>4_insn): Likewise.
1567 (cbranchsi4_btst_insn): Adjust.
1569 2016-10-11 Tom de Vries <tom@codesourcery.com>
1572 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1575 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
1577 * tree.h (build_complex_type): Add second parameter with default.
1578 * tree.c (build_complex_type): Add NAMED second parameter and adjust
1579 recursive call. Create a TYPE_DECL only if NAMED is true.
1580 (build_common_tree_nodes): Pass true in calls to build_complex_type.
1582 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
1584 New avr-passes.def to register AVR specific passes.
1586 * config/avr/avr-passes.def: New file.
1587 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
1588 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
1589 (make_avr_pass_recompute_note): New proto.
1590 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
1591 (avr_pass_recompute_notes): Use anonymous namespace.
1592 (avr_register_passes): Remove function...
1593 (avr_option_override): ...and its call.
1595 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
1597 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
1598 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
1599 PTF_AVOID_BRANCHLIKELY_SPEED for others.
1600 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
1602 * config/mips/mips.c (mips_option_override): Enable the branch
1603 likely depending on the tune flags and optimization level.
1604 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
1605 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
1606 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
1607 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
1609 2016-10-11 Richard Biener <rguenther@suse.de>
1611 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
1612 (output_function): Properly stream the whole block tree.
1613 * lto-streamer-in.c (input_function): Likewise.
1615 2016-10-11 Marek Polacek <polacek@redhat.com>
1617 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
1619 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1621 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
1622 (evrp_dom_walker::before_dom_children): Infer and push new value
1623 ranges for x in y < x.
1625 2016-10-10 Joseph Myers <joseph@codesourcery.com>
1628 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
1629 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
1630 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1631 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1632 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1633 (IA64_NO_LIBGCC_TFMODE): Likewise.
1635 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
1637 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1640 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
1642 * config.gcc: Add aarch64-*-freebsd* support.
1643 * config.host: Likewise.
1644 * config/aarch64/aarch64-freebsd.h: New file.
1645 * config/aarch64/t-aarch64-freebsd: Ditto.
1647 2016-10-10 Jeff Law <law@redhat.com>
1649 PR tree-optimization/71947
1650 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
1651 B with A within a single statement.
1653 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1655 PR tree-optimization/77824
1656 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
1657 zero cost for copies.
1658 (find_candidates_dom_walker::before_dom_children): Replace
1659 MODIFY_EXPR with SSA_NAME.
1660 (replace_mult_candidate): Likewise.
1661 (replace_profitable_candidates): Likewise.
1663 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1665 * config/s390/s390.h: Wrap more macros args in brackets and fix
1667 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
1669 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1671 2016-10-10 Andreas Schwab <schwab@suse.de>
1674 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
1675 pseudo is not DImode.
1677 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
1679 * common/config/arc/arc-common.c (arc_option_optimization_table):
1680 Remove compact casesi option.
1681 * config/arc/arc.c (arc_override_options): Use compact casesi
1682 option only for pre-ARCv2 cores.
1683 * doc/invoke.texi (mcompact-casesi): Update text.
1685 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1687 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
1688 Add macro to say we can efficiently handle overlapping unaligned
1690 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
1691 poor code for processors older than p8.
1693 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
1695 * gen-pass-instances.awk: Remove GNUism.
1697 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1699 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
1700 NULL of (*ipcp_transformations)][node->uid].
1702 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
1704 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1705 (MALLOC_ABI_ALIGNMENT): Define.
1707 2016-10-09 Jakub Jelinek <jakub@redhat.com>
1709 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
1710 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
1711 VAR_OR_FUNCTION_DECL_P macros.
1712 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
1713 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
1714 chkp_find_bounds_1): Likewise.
1715 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
1716 * hsa-gen.c (get_symbol_for_decl): Likewise.
1717 * cgraphunit.c (check_global_declaration, analyze_functions,
1718 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1720 * gimple-fold.c (can_refer_decl_in_current_unit_p,
1721 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1723 * tree.c (set_decl_section_name, copy_node_stat,
1724 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1725 merge_dllimport_decl_attributes, handle_dll_attribute,
1726 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1727 verify_type): Likewise.
1728 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1729 find_explicit_erroneous_behavior): Likewise.
1730 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1731 * ipa.c (process_references): Likewise.
1732 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1733 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1734 notice_global_symbol, assemble_variable, mark_decl_referenced,
1735 build_constant_desc, output_constant_def_contents, do_assemble_alias,
1736 make_decl_one_only, default_section_type_flags,
1737 categorize_decl_for_section, default_encode_section_info): Likewise.
1738 * trans-mem.c (requires_barrier): Likewise.
1739 * gimple-expr.c (mark_addressable): Likewise.
1740 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1741 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1742 expand_debug_expr): Likewise.
1743 * tree-dump.c (dequeue_and_dump): Likewise.
1744 * ubsan.c (instrument_bool_enum_load): Likewise.
1745 * tree-pretty-print.c (print_declaration): Likewise.
1746 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1747 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1748 * asan.c (asan_protect_global, instrument_derefs): Likewise.
1749 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1750 pass_build_ssa::execute): Likewise.
1751 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1752 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1754 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1756 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1757 can_be_nonlocal, remap_decls, copy_debug_stmt,
1758 initialize_inlined_parameters, add_local_variables,
1759 reset_debug_binding, replace_locals_op): Likewise.
1760 * dse.c (can_escape): Likewise.
1761 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1763 * tree-diagnostic.c (default_tree_printer): Likewise.
1764 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1765 unpack_ts_decl_with_vis_value_fields,
1766 lto_input_ts_decl_common_tree_pointers): Likewise.
1767 * builtins.c (builtin_save_expr, fold_builtin_expect,
1768 readonly_data_expr): Likewise.
1769 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1770 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1772 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1773 * gimplify.c (force_constant_size, gimplify_bind_expr,
1774 gimplify_decl_expr, gimplify_var_or_parm_decl,
1775 gimplify_compound_lval, gimplify_init_constructor,
1776 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1777 gimplify_type_sizes): Likewise.
1778 * cgraphbuild.c (record_reference, record_type_list, mark_address,
1779 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1780 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1781 remove_unused_locals): Likewise.
1782 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1783 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1784 * function.c (instantiate_expr, instantiate_decls_1,
1785 setjmp_vars_warning, add_local_decl): Likewise.
1786 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1788 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1789 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1790 optimize_va_list_gpr_fpr_size): Likewise.
1791 * tree-nrv.c (pass_nrv::execute): Likewise.
1792 * tsan.c (instrument_expr): Likewise.
1793 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1794 * vtable-verify.c (verify_bb_vtables): Likewise.
1795 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1796 get_ref_base_and_extent): Likewise.
1797 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1799 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1800 analyze_all_variable_accesses): Likewise.
1801 * tree-nested.c (get_nonlocal_debug_decl,
1802 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1803 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1804 get_local_debug_decl, convert_local_omp_clauses,
1805 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1807 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1808 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1809 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1810 dbxout_symbol, dbxout_common_check): Likewise.
1811 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1812 string_constant): Likewise.
1813 * hsa.c (hsa_get_declaration_name): Likewise.
1814 * passes.c (rest_of_decl_compilation): Likewise.
1815 * tree-ssanames.c (make_ssa_name_fn): Likewise.
1816 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1817 pack_ts_decl_with_vis_value_fields,
1818 write_ts_decl_common_tree_pointers): Likewise.
1819 * stor-layout.c (place_field): Likewise.
1820 * symtab.c (symtab_node::maybe_create_reference,
1821 symtab_node::verify_base, symtab_node::make_decl_local,
1822 symtab_node::copy_visibility_from,
1823 symtab_node::can_increase_alignment_p): Likewise.
1824 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1825 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1826 fortran_common, add_location_or_const_value_attribute,
1827 add_scalar_info, add_linkage_name, set_block_abstract_flags,
1828 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1829 optimize_one_addr_into_implicit_ptr,
1830 optimize_location_into_implicit_ptr): Likewise.
1831 * gimple-low.c (record_vars_into): Likewise.
1832 * ipa-visibility.c (update_vtable_references): Likewise.
1833 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1835 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1836 DFS::DFS_write_tree_body, write_symbol): Likewise.
1837 * langhooks.c (lhd_warn_unused_global_decl,
1838 lhd_set_decl_assembler_name): Likewise.
1839 * attribs.c (decl_attributes): Likewise.
1840 * except.c (output_ttype): Likewise.
1841 * varpool.c (varpool_node::get_create, ctor_for_folding,
1842 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1843 * fold-const.c (fold_unary_loc): Likewise.
1844 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1845 ipa_find_agg_cst_from_init): Likewise.
1846 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1847 expand_omp_target, lower_omp_regimplify_p,
1848 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1849 find_link_var_op): Likewise.
1850 * tree-chrec.c (chrec_contains_symbols): Likewise.
1851 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1852 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1853 execute_fixup_cfg): Likewise.
1855 PR tree-optimization/77901
1856 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1857 if ranges[i].exp is SSA_NAME when looking for >= and only when
1858 ranges[i].exp is NULL or SSA_NAME when looking for the other
1861 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1863 * ipa-cp.c (ipcp_alignment_lattice): Remove.
1864 (ipcp_param_lattices): Remove field alignment.
1865 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1866 (set_all_contains_variable): Remove call to
1867 ipcp_alignment_lattice::set_to_bottom.
1868 (initialize_node_lattices): Likewise.
1869 (propagate_alignment_accross_jump_function): Remove.
1870 (propagate_constants_accross_call): Remove call to
1871 propagate_alignment_accross_jump_function.
1872 (ipcp_store_alignment_results): Remove.
1873 (ipcp_driver): Remove call to ipcp_store_alignment_results.
1874 (propagate_bits_accross_jump_function): Handle ancestor jump function.
1875 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1876 pretty-printing of alignment jump function.
1877 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1878 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1879 alignments and remove computing ipa_alignment jump function.
1880 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1881 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1882 (ipa_read_jump_function): Remove reading of ipa_alignment.
1883 (write_ipcp_transformation_info): Remove streaming for alignment
1884 propagation summary.
1885 (read_ipcp_transformation_info): Remove reading of alignment
1886 propagation summary.
1887 (ipcp_update_alignments): Remove.
1888 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1890 (ipcp_transform_function): Remove call to ipcp_update_alignments()
1891 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1892 * ipa-prop.h (ipa_alignment): Remove.
1893 (ipa_jump_func): Remove field alignment.
1894 (ipcp_transformation_summary): Remove field alignments.
1895 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1896 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1897 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1899 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
1901 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1903 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1905 (visium_expand_fp_cstore): Likewise.
1907 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1909 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1910 * diagnostic.c (warning_at_rich_loc_n): New function.
1911 (diagnostic_n_impl_richloc): Likewise.
1912 (diagnostic_n_impl): Move most of the function to
1913 diagnostic_n_impl_richloc and call it.
1915 2016-10-08 Jakub Jelinek <jakub@redhat.com>
1917 * gen-pass-instances.awk: Rewritten.
1918 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1919 $(PASSES_EXTRA) after passes.def to the script.
1920 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1921 * config/i386/i386-passes.def: New file.
1922 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1923 make_pass_stv): Declare.
1924 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1926 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1928 (pass_stv::clone, pass_stv::set_pass_param): New methods.
1929 (pass_stv::timode_p): New non-static data member.
1930 (ix86_option_override): Don't register passes here.
1932 * doc/invoke.texi: Document accepting Else, fallthrough.
1934 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1937 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1938 FALLTHRU comment styles.
1940 2016-10-07 Andrew Pinski <apinski@cavium.com>
1942 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1943 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
1944 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
1946 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
1948 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
1950 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
1951 (AARCH64_ARCH): Likewise.
1952 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
1954 (AARCH64_CORE): Likewise.
1955 (AARCH64_ARCH): Likewise.
1956 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
1957 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1958 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
1959 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1960 (AARCH64_ARCH): Likewise.
1961 (AARCH64_CORE): Likewise.
1962 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1963 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
1964 (AARCH64_CORE): Likewise.
1965 (AARCH64_ARCH): Likewise.
1967 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1969 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
1970 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
1971 floating point type infrastructre, and -mfloat128 that enables the
1972 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
1973 if -mfloat128-type. Define __ibm128 to be long double by default.
1974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
1975 the IEEE 128-bit floating point type infrastructure should
1976 automatically be enabled.
1977 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
1978 instead of -mfloat128 to enable KFmode.
1979 (rs6000_option_override_internal): Split the option -mfloat128
1980 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
1981 systems, automatically set -mfloat128-type, but don't enable it on
1982 other operating systems. Move setting the long double size and
1983 IEEE quad support before the IEEE 128-bit floating point changes.
1984 (rs6000_init_builtins): Do not create a unique type for __ibm128
1985 if long double is IBM extended double, instead rely on __ibm128
1986 being defined as 'long double'. If -mfloat128-type and not
1987 -mfloat128, create the KFmode type with an undocumented __ieee128
1989 (rs6000_init_libfuncs): Use -mfloat128-type instead of
1990 -mfloat128 for tests about the types, but keep tests for
1991 -mfloat128 to enable the keyword support.
1992 (rs6000_complex_function_value): Likewise.
1993 (rs6000_scalar_mode_supported_p): Likewise.
1994 (rs6000_floatn_mode): Likewise.
1995 (rs6000_c_mode_for_suffix): Likewise.
1996 (rs6000_opt_masks): Add -mfloat128-type.
1997 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
1998 -mfloat128-type being split from -mfloat128. Add
1999 -mfloat128-hardware, which was missing.
2000 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
2001 -mfloat128 and -mfloat128-type:
2002 (-mfloat128-type): Likewise.
2003 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
2004 that 64-bit Linux systems with enable -mfloat128-type by default
2006 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
2007 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
2008 -mfloat128-type instead of -mfloat128.
2009 (FLOAT128_2REG_P): Likewise.
2010 (MASK_FLOAT128_TYPE): Likewise.
2011 (ALTIVEC_ARG_MAX_RETURN): Likewise.
2012 (RS6000_BTM_FLOAT128): Likewise.
2013 (TARGET_FLOAT128): Poison old identifiers.
2014 (OPTION_MASK_FLOAT128): Likewise.
2015 (MASK_FLOAT128): Likewise.
2016 * config/rs6000/rs6000.md (FP): Likewise.
2017 (FLOAT128): Likewise.
2018 (fix_trunc<mode>di2): Likewise.
2019 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2020 (floatdi<mode>2): Likewise.
2021 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
2022 (neg<mode>2, FLOAT128 iterator): Likewise.
2023 (abs<mode>2, FLOAT128 iterator): Likewise.
2024 (ieee_128bit_negative_zero): Likewise.
2025 (ieee_128bit_vsx_neg<mode>2): Likewise.
2026 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
2027 (ieee_128bit_vsx_abs<mode>2): Likewise.
2028 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2029 (ieee_128bit_vsx_nabs<mode>2): Likewise.
2030 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2031 (extendiftf2): Likewise.
2032 (extendifkf2): Likewise.
2033 (extendtfkf2): Likewise.
2034 (trunciftf2): Likewise.
2035 (truncifkf2): Likewise.
2036 (trunckftf2): Likewise.
2037 (trunctfif2): Likewise.
2038 (extendkftf2): Likewise.
2039 (trunctfkf2): Likewise.
2041 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2043 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
2044 before merging in bytes to pass down to real_from_target.
2046 2016-10-07 Richard Biener <rguenther@suse.de>
2048 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
2050 (substitute_and_fold_dom_walker::before_dom_children):
2051 Substitute and fold before pass specific folding to avoid
2052 feeding that with SSA names that will be later released.
2053 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
2054 introduced by folding and visited by evaluate_stmt called during
2056 (likely_value): Likewise.
2057 (evaluate_stmt): Likewise.
2058 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
2059 (simplify_div_or_mod_using_ranges): Likewise.
2060 (simplify_min_or_max_using_ranges): Likewise.
2061 (simplify_abs_using_ranges): Likewise.
2062 (simplify_conversion_using_ranges): Likewise.
2063 (simplify_float_conversion_using_ranges): Likewise.
2064 (simplify_stmt_using_ranges): Likewise.
2066 2016-10-07 Marek Polacek <polacek@redhat.com>
2068 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
2069 FALLTHROUGH_LABEL_P here...
2070 (warn_implicit_fallthrough_r): ...not here.
2072 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
2074 PR tree-optimization/77880
2075 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
2078 2016-10-07 Marek Polacek <polacek@redhat.com>
2081 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
2083 2016-10-07 Richard Biener <rguenther@suse.de>
2085 * bitmap.h: Document constraints on bitmap modification while
2088 2016-10-07 Richard Biener <rguenther@suse.de>
2090 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
2091 * bitmap.h (bmp_iter_set): When advancing to the next element
2092 check that we didn't remove the current one.
2093 (bmp_iter_and): Likewise.
2094 (bmp_iter_and_compl): Likewise.
2095 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
2096 we currently iterate on but keep a one-level queue.
2097 * sched-deps.c (remove_from_deps): Do not clear current bit
2098 but keep a one-level queue.
2100 2016-10-07 Jakub Jelinek <jakub@redhat.com>
2102 PR tree-optimization/77664
2103 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
2104 for the other ranges.
2105 (optimize_range_tests_diff): Fix up formatting.
2106 (optimize_range_tests_var_bound): New function.
2107 (optimize_range_tests): Use it.
2109 2016-10-07 Martin Liska <mliska@suse.cz>
2111 * coverage.c (build_gcov_exit_decl): Fix priority what
2112 should be really 99.
2114 2016-10-07 Richard Biener <rguenther@suse.de>
2116 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
2117 vars in gimple_bind_vars but not in BLOCK_VARS.
2119 2016-10-07 Richard Biener <rguenther@suse.de>
2121 PR tree-optimization/77879
2122 * tree-ssa-structalias.c (handle_const_call): Properly handle
2124 (handle_pure_call): Likewise.
2126 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2128 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
2129 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
2132 2016-10-06 Andrew Pinski <apinski@cavium.com>
2134 * config/aarch64/aarch64-cores.def: Add a comment before each
2137 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2139 PR tree-optimization/77862
2140 * tree-vrp.c (add_equivalence): Use get_value_range so that
2141 num_vr_values is checked before accessing vr_values.
2143 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
2145 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
2148 2016-10-05 Jeff Law <law@redhat.com>
2150 PR tree-optimization/71661
2151 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
2152 removal of a forwarder exposes a new natural loop.
2154 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
2156 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
2157 Introduce ssesuffix variable.
2158 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2159 (*<code><mode>3): Ditto.
2161 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
2163 * postreload.c (reload_cse_simplify): Skip also USE when detecting
2166 2016-10-06 Richard Biener <rguenther@suse.de>
2168 PR tree-optimization/77855
2169 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
2170 instead of removing the current item while iterating over the set
2173 2016-10-06 James Clarke <jrtc27@jrtc27.com>
2174 Eric Botcazou <ebotcazou@adacore.com>
2177 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
2178 (classify_registers): Don't set it
2179 (function_arg_slotno): Don't initialize and test it. Tidy up.
2181 2016-10-06 Richard Biener <rguenther@suse.de>
2183 PR tree-optimization/77839
2184 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
2187 2016-10-06 Martin Liska <mliska@suse.cz>
2189 * gcc.c: Set -fprofile-update=atomic when profiling is
2190 enabled and -pthread is set. Warn when one combines
2191 -pthread and -fprofile-update=single for an app using
2194 2016-10-06 Martin Liska <mliska@suse.cz>
2197 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
2198 * gimple-ssa-strength-reduction.c (slsr_process_cast):
2199 Initialize a pointer to NULL.
2200 (slsr_process_copy): Likewise.
2201 * input.c (location_get_source_line): Likewise.
2202 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2204 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
2206 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
2207 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
2208 (ix86_handle_option): Deleted handle of OPT_mpcommit.
2209 * config.gcc: Deleted pcommitintrin.h
2210 * config/i386/pcommitintrin.h: Deleted file.
2211 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
2212 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
2214 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
2216 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
2217 (PTA_PCOMMIT): Deleted define.
2218 (ix86_option_override_internal): Deleted handle of option.
2219 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
2220 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
2221 __builtin_ia32_pcommit): Deleted.
2222 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
2223 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
2224 (pcommit): Deleted instruction.
2225 * config/i386/i386.opt: Mention -mpcommit deprecation.
2226 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
2228 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
2231 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
2232 Remove wrong assert.
2233 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
2234 Use <round_constraint> as operand 1 constraint.
2236 2016-10-05 Jakub Jelinek <jakub@redhat.com>
2239 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
2240 (ubsan_instrument_float_cast): And not here.
2243 * ubsan.c (ubsan_ids): New GTY(()) array.
2244 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
2245 instead of static local counters.
2247 2016-10-05 Martin Sebor <msebor@redhat.com>
2250 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
2251 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
2252 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
2253 (default_printf_pointer_format): Define function.
2254 * targhooks.c (linux_printf_pointer_format): Define new function.
2255 * targhooks.h (linux_printf_pointer_format): Declare.
2256 (gnu_libc_printf_pointer_format): Remove declaration.
2258 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2260 * fold-const.c (native_encode_real): Fix logic for selecting offset
2261 to write to when BYTES_BIG_ENDIAN.
2263 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
2265 * builtins.c (fold_builtin_strchr): Remove function.
2266 (fold_builtin_strrchr): Likewise.
2267 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
2268 * gimple-fold.c (target_char_cst_p): New function.
2269 (gimple_fold_builtin_strchr) Add more foldings.
2270 (gimple_fold_builtin): Add index, strrchr, rindex cases.
2272 2016-10-05 Richard Biener <rguenther@suse.de>
2275 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
2276 capture ids in c-exprs.
2278 2016-10-05 Richard Biener <rguenther@suse.de>
2281 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
2282 with types_match for GIMPLE code gen to handle type mismatched
2284 (dt_operand::gen): Adjust.
2285 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
2288 2016-10-05 Richard Biener <rguenther@suse.de>
2290 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
2292 2016-10-05 Richard Biener <rguenther@suse.de>
2295 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
2297 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
2299 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
2300 version check to protect only DW_TAG_imported_module generation.
2302 2016-10-05 Richard Biener <rguenther@suse.de>
2305 * match.pd (min(a,-a) -> -abs(a)): New pattern.
2307 2016-10-04 Ian Lance Taylor <iant@golang.org>
2309 * explow.c (allocate_dynamic_stack_space): Call
2310 do_pending_stack_adjust before handling flag_split_stack.
2312 2016-10-04 David Malcolm <dmalcolm@redhat.com>
2314 * genattrtab.c (make_internal_attr): Supply dummy column number to
2317 * genoutput.c (init_insn_for_nothing): Likewise.
2318 * gensupport.c (add_define_attr): Likewise.
2319 * read-md.c (message_at_1): Print column number.
2320 (fatal_with_file_and_line): Likewise.
2321 (rtx_reader::read_char): Track column numbers.
2322 (rtx_reader::unread_char): Likewise.
2323 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
2324 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
2325 (rtx_reader::handle_file): Initialize m_read_md_colno.
2326 (rtx_reader::get_current_location): Supply column number to
2328 * read-md.h (struct file_location): Add field "colno".
2329 (file_location::file_location): Likewise.
2330 (rtx_reader::get_colno): New accessor.
2331 (rtx_reader::m_read_md_colno): New field.
2332 (rtx_reader::m_last_line_colno): New field.
2334 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2336 * doc/extend.texi (Java Exceptions): Remove.
2337 (java_interface): Remove.
2339 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
2341 PR tree-optimization/77808
2342 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
2343 and addr are different before copying points-to information.
2345 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
2347 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
2348 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
2349 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
2350 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
2352 2016-10-04 Richard Biener <rguenther@suse.de>
2354 PR tree-optimization/77399
2355 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
2356 verify the target can convert.
2358 2016-10-04 Richard Biener <rguenther@suse.de>
2361 * explow.c (plus_constant): Verify the mode of the constant
2362 pool offset before calling plus_constant.
2364 2016-10-04 Richard Biener <rguenther@suse.de>
2367 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
2368 type support, mark with :C.
2369 (X / -X -> -1): Mark with :C.
2371 2016-10-04 Jakub Jelinek <jakub@redhat.com>
2373 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
2374 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
2375 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
2376 * doc/tm.texi: Regenerated.
2377 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
2378 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
2379 * config/darwin.h (JCR_SECTION_NAME): Remove.
2380 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
2381 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
2382 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
2383 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
2384 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
2385 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
2387 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2389 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
2390 between "because" and "param" in dump message in call to fprintf.
2392 2016-10-03 Jeff Law <law@redhat.com>
2394 PR tree-optimization/71550
2395 PR tree-optimization/71403
2396 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
2397 (profitable_jump_thread_path): Also return boolean indicating if
2398 the realized path will create an irreducible loop.
2399 Remove loop depth tests from 71403.
2400 (fsm_find_control_statement_thread_paths): Remove loop depth tests
2401 from 71403. If threading will create an irreducible loop, then
2402 throw away loop iteration and related information.
2404 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
2406 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
2407 -Woverloaded-virtual checks for warning options.
2408 * configure: Regenerate.
2410 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2412 PR preprocessor/77699
2413 * input.c (maybe_grow): Don't allocate one byte extra headroom.
2414 (get_next_line): Return false on error.
2415 (read_next_line): Removed, use get_next_line instead.
2416 (read_line_num): Don't copy the line.
2417 (location_get_source_line): Don't use static data.
2418 (selftest::test_reading_source_line): Add more test cases.
2420 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2423 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2425 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2426 (noce_process_if_block): Use it.
2428 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2430 * doc/invoke.texi: Update -Wint-in-bool-context.
2432 2016-10-02 Jakub Jelinek <jakub@redhat.com>
2434 * dwarf2out.c (output_fde, output_call_frame_info,
2435 dwarf2out_do_cfi_startproc, set_indirect_string,
2436 gen_internal_sym, output_die, output_line_info): Use
2437 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
2438 ASM_GENERATE_INTERNAL_LABEL output.
2440 2016-10-01 Richard Biener <rguenther@suse.de>
2443 * genmatch.c (get_operand_type): Add operand position arg
2444 and handle COND_EXPR comparison operand with fixed boolean_type_node.
2445 (expr::gen_transform): Adjust.
2446 (dt_simplify::gen_1): Likewise.
2448 2016-10-01 Jakub Jelinek <jakub@redhat.com>
2450 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
2451 comments. Simplify asserts, remove unnecessary conditions.
2453 (*<code><mode>3): Likewise.
2455 2016-09-30 Jakub Jelinek <jakub@redhat.com>
2457 * doc/invoke.texi (-Wregister): Document.
2459 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
2461 * configure.ac: Split CHECKING_P into CHECKING_P and
2462 ENABLE_EXTRA_CHECKING.
2463 * configure: Regenerated.
2464 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
2465 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
2467 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
2470 * gcc.c (process_command): For @filename handling, output
2471 the correct name if the file does not exist.
2473 2016-09-30 Marek Polacek <polacek@redhat.com>
2475 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
2476 * config/alpha/predicates.md: Likewise.
2478 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2480 * ifcvt.c (noce_try_avoid_const_materialization): New function.
2481 (noce_process_if_block): Use it.
2483 2016-09-30 Martin Liska <mliska@suse.cz>
2485 * doc/invoke.texi: Document asan-use-after-return that
2486 it's disabled by default in runtime.
2488 2016-09-30 Richard Biener <rguenther@suse.de>
2490 * tree-vrp.c (intersect_ranges): If we failed to handle
2491 the intersection choose a constant singleton range if available.
2493 2016-09-30 Richard Biener <rguenther@suse.de>
2495 PR tree-optimization/77399
2496 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2497 float <-> int conversions.
2499 2016-09-30 Alan Modra <amodra@gmail.com>
2501 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
2503 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2505 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
2506 ext_level before calling CPUID with 0x80000008.
2507 Simplify xgetbv checks.
2509 2016-09-29 David Malcolm <dmalcolm@redhat.com>
2511 * Makefile.in (OBJS): Add print-rtl-function.o.
2512 * print-rtl-function.c: New file.
2513 * print-rtl.h (print_rtx_function): New decl.
2515 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
2518 * config/i386/cpuid.h (__get_cpuid_count): New.
2519 (__get_cpuid): Rename __level to __leaf.
2521 2016-09-29 Marek Polacek <polacek@redhat.com>
2523 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
2525 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
2527 * builtins.c (expand_builtin_memcmp): don't swap args unless
2528 result is only being compared with zero.
2530 2016-09-29 Marek Polacek <polacek@redhat.com>
2532 * dwarf2out.c (loc_descriptor): Add fall through comment.
2533 (add_const_value_attribute): Likewise.
2535 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
2537 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
2538 with "v6t2". Move "arch" attribute above "pool_range".
2539 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
2541 (*thumb2_movhi_vfp): Likewise.
2542 (*arm_movhi_fp16): Likewise.
2543 (*thumb2_movhi_fp16): Likewise.
2544 (*arm_movsi_vfp): Remove "arch" attribute.
2545 (*thumb2_movsi_vfp): Likewise.
2547 2016-09-29 Martin Liska <mliska@suse.cz>
2549 * doc/extend.texi: Remove limitation of Objective C for
2550 __attribute__((constructor)) and __attribute__((destructor)).
2552 2016-09-29 Richard Biener <rguenther@suse.de>
2554 PR tree-optimization/77768
2555 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2556 Handle stores to readonly memory when removing redundant stores.
2558 2016-09-29 Richard Biener <rguenther@suse.de>
2561 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
2562 X / -X -> -1 simplifications.
2564 2016-09-29 Richard Biener <rguenther@suse.de>
2567 * match.pd: Add max(a,-a) -> abs(a) pattern.
2568 * tree-ssa-phiopt.c (minmax_replacement): Disable for
2569 HONOR_SIGNED_ZEROS types.
2571 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2573 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
2574 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
2576 2016-09-29 Richard Biener <rguenther@suse.de>
2578 * tree-vrp.c (set_defs_to_varying): New helper avoiding
2579 writing to vr_const_varying.
2580 (vrp_initialize): Call it.
2581 (vrp_visit_stmt): Likewise.
2582 (evrp_dom_walker::before_dom_children): Likewise.
2584 2016-09-29 Richard Biener <rguenther@suse.de>
2586 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
2587 constructors with vector elements.
2589 2016-09-29 Richard Biener <rguenther@suse.de>
2591 PR tree-optimization/77768
2592 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
2593 with stores to a place we know has a constant value.
2595 2016-09-29 Alan Modra <amodra@gmail.com>
2597 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
2598 * doc/invoke.texi: Document it.
2599 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
2600 (rs6000_passes_float): Comment.
2601 (rs6000_passes_long_double): New static var.
2602 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
2603 (init_cumulative_args): Set up to emit fp .gnu_attribute for
2604 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
2605 to include fp values returned in vectors.
2606 Set rs6000_passes_long_double.
2607 (rs6000_function_arg_advance_1): Likewise for function args.
2608 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
2609 and SPE. Emit long double tag value too.
2610 (rs6000_opt_vars): Add gnu-attr.
2611 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
2612 * configure: Regenerate.
2613 * config.in: Regenerate.
2615 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2617 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
2619 (format_floating, format_string, format_directive,
2620 get_destination_size, pass_sprintf_length::handle_gimple_call):
2623 2016-09-28 Jakub Jelinek <jakub@redhat.com>
2625 * gimple-ssa-sprintf.c: Fix comment formatting.
2626 (format_integer): Use is_gimple_assign.
2627 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
2628 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
2629 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
2630 (pass_sprintf_length::execute): Use is_gimple_call.
2632 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2634 * gimple-fold.c (gimple_fold_builtin): After failing to fold
2635 strchr, also try the generic folding.
2637 2016-09-28 Martin Sebor <msebor@redhat.com>
2640 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2643 2016-09-28 Martin Sebor <msebor@redhat.com>
2646 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
2647 length modifier is not expected.
2648 (format_floating): Ignore l length modifier and fail gracefuly
2649 when it isn't one of the other expected ones.
2651 2016-09-28 Martin Sebor <msebor@redhat.com>
2654 * varasm.c (assemble_addr_to_section): Increase local buffer size.
2656 2016-09-27 Richard Biener <rguenther@suse.de>
2658 * dwarf2out.c (cu_die_list): New global.
2659 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
2660 main_comp_unit_die to cu_die_list if we created it.
2661 Move break_out_includes ...
2662 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
2665 2016-09-28 Richard Biener <rguenther@suse.de>
2667 * dwarf2out.c (struct die_struct): Add removed flag.
2668 (lookup_type_die): If the DIE is marked as removed, clear
2669 TYPE_SYMTAB_DIE and return NULL.
2670 (lookup_decl_die): If the DIE is marked as removed, remove it
2671 from the hash and return NULL.
2672 (mark_removed): New helper.
2673 (prune_unused_types_prune): Call it for removed DIEs.
2674 (gen_subprogram_die): Move the premark_used_types call to after
2675 DIEs for the functions scopes are generated.
2676 (process_scope_var): Do not re-create pruned types or type decls.
2677 Make sure to also re-parent type decls.
2678 (dwarf2out_finish): Move unused type pruning and debug_types
2680 (dwarf2out_early_finish): ... here.
2682 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2684 * config/arc/arc-c.c: New file.
2685 * config/arc/arc-c.def: Likewise.
2686 * config/arc/t-arc: Likewise.
2687 * config.gcc: Include arc-c.o as c and cpp object.
2688 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
2689 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
2690 arc_cpu_cpp_builtins.
2692 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
2694 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
2695 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
2697 2016-09-28 Nathan Sidwell <nathan@acm.org>
2699 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
2702 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2704 PR tree-optimization/61056
2705 * gimple-fold.c (gimple_fold_builtin_strchr):
2706 New function to optimize strchr (s, 0) to strlen.
2707 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
2709 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
2711 PR tree-optimization/77724
2712 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
2713 Add tree_fits_shwi_p check.
2715 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2717 * auto-inc-dec.c (try_merge): Remove break after return.
2718 * cselib.c (autoinc_split): Likewise.
2719 * explow.c (promote_mode): Likewise.
2720 * fixed-value.c (fixed_arithmetic): Likewise.
2721 * hsa.c (hsa_internal_fn::get_arity): Likewise.
2722 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2723 * trans-mem.c (get_attrs_for): Likewise.
2724 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2725 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2726 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2727 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2728 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2729 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2730 * config/cris/cris.c (cris_op_str): Likewise.
2731 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2732 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2734 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
2736 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2737 IFN_GOACC_REDUCTION_CODES): New.
2738 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2739 ifn_goacc_reduction_kind): Use them.
2740 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2741 of internal functions, when applicable.
2743 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
2745 * config/mips/constraints.md (d): Fix documentation.
2746 * doc/md.texi (Machine Constraints): Update accordingly.
2748 2016-09-27 Richard Biener <rguenther@suse.de>
2750 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2751 cur_line_info_table initialization ...
2752 (dwarf2out_assembly_start): ... here.
2754 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
2756 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2757 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2758 (*thumb2_movhi_vfp): Likewise.
2759 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2760 template. Expand predicable attribute to mark VMOV.F16 as not
2761 predicable. Add "arch" attribute.
2762 (*thumb2_movhi_fp16): Likewise.
2763 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
2764 (*thumb2_movsi_vfp): Add "arch" attribute.
2766 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
2768 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2771 2016-09-27 Marek Polacek <polacek@redhat.com>
2773 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2776 * config/c6x/c6x.h: Adjust fall through comment.
2777 * config/sh/sh.c (final_prescan_insn): Likewise.
2778 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2779 (visium_expand_fp_cstore): Likewise.
2781 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2783 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2784 expected by -Wimplicit-fallthrough.
2785 (thumb1_size_rtx_costs): Likewise.
2786 (thumb2_reorg): Likewise.
2787 (tls_mentioned_p): Add "Fall through" comment.
2788 (thumb2_reorg): Likewise.
2789 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2790 comment form expected by -Wimplicit-fallthrough.
2792 2016-09-27 Martin Liska <mliska@suse.cz>
2794 PR gcov-profile/46266
2795 * input.h (RESERVED_LOCATION_P): New macro.
2796 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2797 instread of comparison with UNKNOWN_LOCATION.
2799 2016-09-27 Richard Biener <rguenther@suse.de>
2801 PR tree-optimization/77745
2802 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2803 When removing redundant stores make sure to check compatibility
2804 of the TBAA state for downstream accesses.
2805 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2806 value-numbering virtual operands for store matches.
2808 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
2811 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2812 movrt patterns. Match them before anything else in the SET case.
2814 2016-09-27 Martin Liska <mliska@suse.cz>
2816 PR gcov-profile/7970
2817 PR gcov-profile/16855
2818 PR gcov-profile/44779
2819 * coverage.c (build_gcov_exit_decl): New function.
2820 (coverage_obj_init): Call the function and generate __gcov_exit
2822 * doc/gcov.texi: Document when __gcov_exit function is called.
2824 2016-09-27 Marek Polacek <polacek@redhat.com>
2827 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2828 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2829 -Wno-error instead of -Wno-implicit-fallthrough.
2831 2016-09-27 Martin Liska <mliska@suse.cz>
2834 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2836 2016-09-27 Jakub Jelinek <jakub@redhat.com>
2838 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2839 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2840 comments. Remove break after return.
2841 (ix86_fp_compare_code_to_integer, has_dispatch,
2842 ix86_simd_clone_usable): Remove break after return.
2844 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2846 PR rlt-optimization/77714
2847 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2850 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
2853 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2854 extract_range_from_unary_expr to convert value_range.
2855 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2856 (extract_range_from_unary_expr): This.
2857 * tree-vrp.h (extract_range_from_unary_expr): Declare.
2859 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
2861 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2863 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2865 * config/i386/i386.c (ix86_print_operand)
2866 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2867 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2868 (epilogue_renumber): Likewise.
2870 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
2873 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2874 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2876 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2878 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2879 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2880 is_mm_seq_cst, is_mm_sync): Move to ...
2881 * memmodel.h: This. New file.
2882 * builtins.c: Include memmodel.h.
2883 * optabs.c: Likewise.
2885 * config/aarch64/aarch64.c: Likewise.
2886 * config/alpha/alpha.c: Likewise.
2887 * config/arm/arm.c: Likewise.
2888 * config/i386/i386.c: Likewise.
2889 * config/ia64/ia64.c: Likewise.
2890 * config/mips/mips.c: Likewise.
2891 * config/rs6000/rs6000.c: Likewise.
2892 * config/sparc/sparc.c: Likewise.
2893 * genconditions.c: Include memmodel.h in generated file.
2894 * genemit.c: Likewise.
2895 * genoutput.c: Likewise.
2896 * genpeep.c: Likewise.
2897 * genpreds.c: Likewise.
2898 * genrecog.c: Likewise.
2900 2016-09-26 David Malcolm <dmalcolm@redhat.com>
2902 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2903 "c" instead when parsing characters. Move operand parsing into...
2904 (read_rtx_operand): ...this new function, renaming "i" to "idx",
2905 and tightening the scope of various locals.
2907 2016-09-26 Liu Hao <lh_mouse@126.com>
2909 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2911 2016-09-26 Marek Polacek <polacek@redhat.com>
2913 * system.h: Use __has_attribute to check whether the fallthrough
2914 attribute is supported.
2916 2016-09-26 Marek Polacek <polacek@redhat.com>
2918 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2919 gimple_call_internal_p.
2920 * ipa-split.c (find_return_bb): Likewise.
2921 (execute_split_functions): Likewise.
2922 * omp-low.c (dump_oacc_loop_part): Likewise.
2923 (oacc_loop_xform_head_tail): Likewise.
2924 * predict.c (predict_loops): Likewise.
2925 * sanopt.c (pass_sanopt::execute): Likewise.
2926 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2927 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2928 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2929 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2930 (expand_ifn_va_arg): Likewise.
2931 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2932 (optimize_mask_stores): Likewise.
2933 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2934 (vect_transform_stmt): Likewise.
2935 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2936 * tsan.c (instrument_memory_accesses): Likewise.
2938 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2939 Alexander Monakov <amonakov@ispras.ru>
2941 * regrename.c (rename_chains): Check
2942 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2943 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
2944 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2946 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2948 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
2949 (s390_sched_score): Likewise.
2951 2016-09-26 Martin Liska <mliska@suse.cz>
2953 * doc/gcov.texi: Update program output of gcov tool.
2955 2016-09-26 Martin Liska <mliska@suse.cz>
2957 PR gcov-profile/23332
2958 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
2959 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
2960 * value-prof.c (dump_histogram_value): Do not handle
2961 HIST_TYPE_CONST_DELTA.
2962 (stream_in_histogram_value): Likewise.
2963 (gimple_find_values_to_profile): Likewise.
2964 * value-prof.h (enum hist_type): Likewise.
2966 2016-09-26 Martin Liska <mliska@suse.cz>
2968 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
2969 from default sanitize recover values.
2970 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
2971 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
2972 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
2974 * opts.c (finish_options): Do a generic loop over options
2975 that can be recovered.
2976 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
2978 (common_handle_option): Likewise.
2979 * opts.h: Declare can_recover to sanitizer_opts_s.
2981 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
2983 * target.def(elf_flags_numeric): Change documentation to present tense.
2984 * doc/tm.texi: Regenerate.
2986 2016-09-26 Marek Polacek <polacek@redhat.com>
2989 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2990 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
2991 -Wno-switch-fallthrough.
2992 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
2993 (expand_builtin): Likewise.
2994 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
2995 * convert.c (convert_to_real_1): Likewise.
2996 (convert_to_integer_1): Likewise.
2997 * final.c (output_alternate_entry_point): Likewise.
2998 * genattrtab.c (make_canonical): Likewise.
2999 (write_test_expr): Likewise.
3000 * genpreds.c (validate_exp): Likewise.
3001 * gimple-ssa-strength-reduction.c
3002 (find_candidates_dom_walker::before_dom_children): Likewise.
3003 * godump.c (go_format_type): Likewise.
3004 * reload1.c (elimination_effects): Likewise.
3005 * resource.c (mark_referenced_resources): Likewise.
3006 (mark_set_resources): Likewise.
3007 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
3008 * varasm.c (output_addressed_constants): Likewise.
3010 2016-09-26 Marek Polacek <polacek@redhat.com>
3013 * common.opt (Wimplicit-fallthrough): New option.
3014 * doc/extend.texi: Document statement attributes and the fallthrough
3016 * doc/invoke.texi: Document -Wimplicit-fallthrough.
3017 * gimple.h (gimple_call_internal_p): New function.
3018 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
3019 (struct label_entry): New struct.
3020 (find_label_entry): New function.
3021 (case_label_p): New function.
3022 (collect_fallthrough_labels): New function.
3023 (last_stmt_in_scope): New function.
3024 (should_warn_for_implicit_fallthrough): New function.
3025 (warn_implicit_fallthrough_r): New function.
3026 (maybe_warn_implicit_fallthrough): New function.
3027 (expand_FALLTHROUGH_r): New function.
3028 (expand_FALLTHROUGH): New function.
3029 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
3030 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
3031 (gimplify_label_expr): New function.
3032 (gimplify_case_label_expr): Set location.
3033 (gimplify_expr): Call gimplify_label_expr.
3034 * internal-fn.c (expand_FALLTHROUGH): New function.
3035 * internal-fn.def (FALLTHROUGH): New internal function.
3036 * langhooks.c (lang_GNU_OBJC): New function.
3037 * langhooks.h (lang_GNU_OBJC): Declare.
3038 * system.h (gcc_fallthrough): Define.
3039 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
3040 * tree.h (FALLTHROUGH_LABEL_P): Define.
3042 2016-09-26 Richard Biener <rguenther@suse.de>
3044 * dwarf2out.c (stripattributes): Remove unused function.
3045 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
3046 Push dwarf_split_debug_info handling into init_sections_and_labels.
3047 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
3048 (DEBUG_MACRO_SECTION_FLAGS): Remove.
3049 (debug_macinfo_section_name): New global.
3050 (output_macinfo): Use debug_macinfo_section_name.
3051 (init_sections_and_labels): Split out section and label generation
3052 from dwarf2out_init. Set debug_macinfo_section_name.
3053 (dwarf2out_init): Move text section label generation and emission
3055 (dwarf2out_assembly_start): ... here.
3056 (dwarf2out_finish): Call init_sections_and_labels before DWARF
3059 2016-09-26 Richard Biener <rguenther@suse.de>
3062 * cgraphunit.c (analyze_functions): Before early removing
3063 global vars calls the late_global_decl debug handler mark
3064 the variable as readonly.
3066 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3069 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
3070 (sh_rtx_costs): Handle SET of movt and movrt patterns.
3071 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
3072 declare new overloads.
3073 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
3076 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3078 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
3079 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
3081 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
3083 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
3084 * configure: Regenerate.
3086 2016-09-24 Marek Polacek <polacek@redhat.com>
3089 * doc/invoke.texi: Document -Wbool-operation.
3091 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3093 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
3094 * config/rs6000/rs6000.c (expand_block_compare): New function used by
3095 cmpmemsi pattern to do builtin expansion of memcmp ().
3096 (compute_current_alignment): Add helper function for
3097 expand_block_compare used to compute alignment as the compare proceeds.
3098 (select_block_compare_mode): Used by expand_block_compare to select
3099 the mode used for reading the next chunk of bytes in the compare.
3100 (do_load_for_compare): Used by expand_block_compare to emit the load
3101 insns for the compare.
3102 (rs6000_emit_dot_insn): Moved this function to avoid a forward
3103 reference from expand_block_compare ().
3104 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
3105 prototype for this function.
3106 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
3107 target option for controlling how much code inline expansion of
3108 memcmp() will be allowed to generate.
3110 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3112 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
3113 hook_bool_mode_false, hook_bool_mode_true,
3114 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
3115 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
3116 hook_bool_const_rtx_insn_const_rtx_insn_true,
3117 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
3118 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
3119 hook_bool_const_tree_hwi_hwi_const_tree_false,
3120 hook_bool_const_tree_hwi_hwi_const_tree_true,
3121 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
3122 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
3123 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
3124 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
3125 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
3126 hook_bool_const_tree_true, hook_bool_tree_tree_false,
3127 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
3128 hook_bool_rtx_insn_true, hook_bool_rtx_false,
3129 hook_bool_uintp_uintp_false,
3130 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
3131 hook_rtx_tree_int_null, hook_uint_mode_0,
3132 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
3133 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
3134 hook_constcharptr_const_rtx_insn_null,
3135 hook_constcharptr_const_tree_const_tree_null,
3136 hook_constcharptr_int_const_tree_null,
3137 hook_constcharptr_int_const_tree_const_tree_null,
3138 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
3139 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
3140 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
3142 * vec.h (vNULL): Extend comment to say = vNULL initialization
3143 isn't needed for static vars.
3145 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
3146 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
3147 = vNULL initialization of file scope vec.
3148 * passes.c (pass_tab, enabled_pass_uid_range_tab,
3149 disabled_pass_uid_range_tab): Likewise.
3150 * haifa-sched.c (sched_luids, h_i_d): Likewise.
3151 * tree-chkp-opt.c (check_infos): Likewise.
3152 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
3154 * vec.h (vnull::operator vec): Add constexpr keyword for
3157 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
3159 PR tree-optimization/77654
3160 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
3161 to duplicate_ssa_name_ptr_info.
3163 2016-09-23 David Malcolm <dmalcolm@redhat.com>
3165 PR preprocessor/77672
3166 * input.c (selftest::test_lexer_string_locations_simple): Update
3167 test to expect location information of the terminator character
3168 at the location of the final closing quote.
3169 (selftest::test_lexer_string_locations_hex): Likewise.
3170 (selftest::test_lexer_string_locations_oct): Likewise.
3171 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
3172 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
3173 (selftest::test_lexer_string_locations_ucn4): Likewise.
3174 (selftest::test_lexer_string_locations_ucn8): Likewise.
3175 (selftest::test_lexer_string_locations_u8): Likewise.
3176 (selftest::test_lexer_string_locations_utf8_source): Likewise.
3177 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
3178 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
3179 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
3180 (selftest::test_lexer_string_locations_macro): Likewise.
3181 (selftest::test_lexer_string_locations_long_line): Likewise.
3183 2016-09-23 Richard Biener <rguenther@suse.de>
3185 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
3186 virtual definition to virtual use if the call devirtualizes
3187 to a const or pure function.
3188 (visit_use): Also visit calls we can devirtualize to a
3189 const or pure function.
3191 2016-09-23 Richard Biener <rguenther@suse.de>
3193 PR tree-optimization/77697
3194 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
3195 signal error if we have sth ternary or unhandled.
3197 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3199 * config/arm/arm_neon.h (vabd_f16): New.
3233 (vcvt_f16_s16): New.
3234 (vcvt_f16_u16): New.
3235 (vcvt_s16_f16): New.
3236 (vcvt_u16_f16): New.
3237 (vcvtq_f16_s16): New.
3238 (vcvtq_f16_u16): New.
3239 (vcvtq_s16_f16): New.
3240 (vcvtq_u16_f16): New.
3241 (vcvta_s16_f16): New.
3242 (vcvta_u16_f16): New.
3243 (vcvtaq_s16_f16): New.
3244 (vcvtaq_u16_f16): New.
3245 (vcvtm_s16_f16): New.
3246 (vcvtm_u16_f16): New.
3247 (vcvtmq_s16_f16): New.
3248 (vcvtmq_u16_f16): New.
3249 (vcvtn_s16_f16): New.
3250 (vcvtn_u16_f16): New.
3251 (vcvtnq_s16_f16): New.
3252 (vcvtnq_u16_f16): New.
3253 (vcvtp_s16_f16): New.
3254 (vcvtp_u16_f16): New.
3255 (vcvtpq_s16_f16): New.
3256 (vcvtpq_u16_f16): New.
3257 (vcvt_n_f16_s16): New.
3258 (vcvt_n_f16_u16): New.
3259 (vcvtq_n_f16_s16): New.
3260 (vcvtq_n_f16_u16): New.
3261 (vcvt_n_s16_f16): New.
3262 (vcvt_n_u16_f16): New.
3263 (vcvtq_n_s16_f16): New.
3264 (vcvtq_n_u16_f16): New.
3278 (vmul_lane_f16): New.
3281 (vmulq_lane_f16): New.
3303 (vrsqrteq_f16): New.
3307 (vrsqrtsq_f16): New.
3311 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3313 * config.gcc (extra_headers): Add arm_fp16.h
3314 * config/arm/arm_fp16.h: New.
3315 * config/arm/arm_neon.h: Include "arm_fp16.h".
3317 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3319 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
3321 (vmulf): New (v8hf, v4hf variants).
3322 (vfma): New (v8hf, v4hf variants).
3323 (vfms): New (v8hf, v4hf variants).
3324 (vsub): New (v8hf, v4hf variants).
3325 (vcage): New (v8hf, v4hf variants).
3326 (vcagt): New (v8hf, v4hf variants).
3327 (vcale): New (v8hf, v4hf variants).
3328 (vcalt): New (v8hf, v4hf variants).
3329 (vceq): New (v8hf, v4hf variants).
3330 (vcgt): New (v8hf, v4hf variants).
3331 (vcge): New (v8hf, v4hf variants).
3332 (vcle): New (v8hf, v4hf variants).
3333 (vclt): New (v8hf, v4hf variants).
3334 (vceqz): New (v8hf, v4hf variants).
3335 (vcgez): New (v8hf, v4hf variants).
3336 (vcgtz): New (v8hf, v4hf variants).
3337 (vcltz): New (v8hf, v4hf variants).
3338 (vclez): New (v8hf, v4hf variants).
3339 (vabd): New (v8hf, v4hf variants).
3340 (vmaxf): New (v8hf, v4hf variants).
3341 (vmaxnm): New (v8hf, v4hf variants).
3342 (vminf): New (v8hf, v4hf variants).
3343 (vminnm): New (v8hf, v4hf variants).
3344 (vpmaxf): New (v4hf variant).
3345 (vpminf): New (v4hf variant).
3346 (vpadd): New (v4hf variant).
3347 (vrecps): New (v8hf, v4hf variants).
3348 (vrsqrts): New (v8hf, v4hf variants).
3349 (vabs): New (v8hf, v4hf variants).
3350 (vneg): New (v8hf, v4hf variants).
3351 (vrecpe): New (v8hf, v4hf variants).
3352 (vrnd): New (v8hf, v4hf variants).
3353 (vrnda): New (v8hf, v4hf variants).
3354 (vrndm): New (v8hf, v4hf variants).
3355 (vrndn): New (v8hf, v4hf variants).
3356 (vrndp): New (v8hf, v4hf variants).
3357 (vrndx): New (v8hf, v4hf variants).
3358 (vrsqrte): New (v8hf, v4hf variants).
3359 (vmul_lane): Add v4hf and v8hf variants.
3360 (vmul_n): Add v4hf and v8hf variants.
3361 (vext): New (v8hf, v4hf variants).
3362 (vcvts): New (v8hi, v4hi variants).
3363 (vcvts): New (v8hf, v4hf variants).
3364 (vcvtu): New (v8hi, v4hi variants).
3365 (vcvtu): New (v8hf, v4hf variants).
3366 (vcvts_n): New (v8hf, v4hf variants).
3367 (vcvtu_n): New (v8hi, v4hi variants).
3368 (vcvts_n): New (v8hi, v4hi variants).
3369 (vcvtu_n): New (v8hf, v4hf variants).
3370 (vbsl): New (v8hf, v4hf variants).
3371 (vcvtas): New (v8hf, v4hf variants).
3372 (vcvtau): New (v8hf, v4hf variants).
3373 (vcvtms): New (v8hf, v4hf variants).
3374 (vcvtmu): New (v8hf, v4hf variants).
3375 (vcvtns): New (v8hf, v4hf variants).
3376 (vcvtnu): New (v8hf, v4hf variants).
3377 (vcvtps): New (v8hf, v4hf variants).
3378 (vcvtpu): New (v8hf, v4hf variants).
3380 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3382 * config/arm/arm-builtins.c (hf_UP): New.
3384 (vfp_builtin_data): New. Update comment.
3385 (enum arm_builtins): Include "arm_vfp_builtins.def".
3386 (ARM_BUILTIN_VFP_PATTERN_START): New.
3387 (arm_init_vfp_builtins): New.
3388 (arm_init_builtins): Add arm_init_vfp_builtins.
3389 (arm_expand_vfp_builtin): New.
3390 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
3392 * config/arm/arm_vfp_builtins.def: New file.
3393 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
3394 (arm-builtins.o): Likewise.
3396 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3399 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
3400 from constant while creating value range.
3402 2016-09-23 Renlin Li <renlin.li@arm.com>
3404 * ira.c (ira): Move ira_use_lra_p initialization code to ...
3405 (ira_init_once): Here.
3407 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
3408 Jakub Jelinek <jakub@redhat.com>
3410 * hooks.h (hook_uint_uintp_false): Rename to...
3411 (hook_bool_uint_uintp_false): ... this.
3412 * hooks.c (hook_uint_uintp_false): Rename to...
3413 (hook_bool_uint_uintp_false): ... this.
3414 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
3415 instead of hook_uint_uintp_false.
3417 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3419 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
3420 (arm_init_builtins): Move body of a loop to the standalone
3421 function arm_init_neon_builtin.
3422 (arm_expand_neon_builtin_1): New. Update comment. Function body
3423 moved from arm_neon_builtin with some white-space fixes.
3424 (arm_expand_neon_builtin): Move code into the standalone function
3425 arm_expand_neon_builtin_1.
3427 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3429 * config/arm/iterators.md (VCVTHI): New.
3430 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
3434 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
3435 (V_HALF): Add V4HF. Fix white-space.
3436 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
3437 (V_s_elem): Likewise.
3438 (V_sz_elem): Fix white-space.
3439 (V_elem_ch): Likewise.
3441 (scalar_mul_constraint): Add V8HF and V4HF.
3442 (Is_float_mode): Fix white-space.
3443 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
3444 (q): Add HF. Fix white-space.
3447 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
3448 (neon_vfm_lane_as): New.
3449 * config/arm/neon.md (add<mode>3_fp16): New.
3450 (sub<mode>3_fp16): New.
3451 (mul<mode>3add<mode>_neon): New.
3452 (fma<VH:mode>4_intrinsic): New.
3453 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
3454 (fmsub<VH:mode>4_intrinsic): New.
3455 (<absneg_str><mode>2): New.
3456 (neon_v<absneg_str><mode>): New.
3457 (neon_v<fp16_rnd_str><mode>): New.
3458 (neon_vrsqrte<mode>): New.
3459 (neon_vpaddv4hf): New.
3460 (neon_vadd<mode>): New.
3461 (neon_vsub<mode>): New.
3462 (neon_vmulf<mode>): New.
3463 (neon_vfma<VH:mode>): New.
3464 (neon_vfms<VH:mode>): New.
3465 (neon_vc<cmp_op><mode>): New.
3466 (neon_vc<cmp_op><mode>_fp16insn): New
3467 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
3468 (neon_vca<cmp_op><mode>): New.
3469 (neon_vca<cmp_op><mode>_fp16insn): New.
3470 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
3471 (neon_vc<cmp_op>z<mode>): New.
3472 (neon_vabd<mode>): New.
3473 (neon_v<maxmin>f<mode>): New.
3474 (neon_vp<maxmin>fv4hf: New.
3475 (neon_<fmaxmin_op><mode>): New.
3476 (neon_vrecps<mode>): New.
3477 (neon_vrsqrts<mode>): New.
3478 (neon_vrecpe<mode>): New (VH variant).
3479 (neon_vdup_lane<mode>_internal): New.
3480 (neon_vdup_lane<mode>): New.
3481 (neon_vcvt<sup><mode>): New (VCVTHI variant).
3482 (neon_vcvt<sup><mode>): New (VH variant).
3483 (neon_vcvt<sup>_n<mode>): New (VH variant).
3484 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
3485 (neon_vcvt<vcvth_op><sup><mode>): New.
3486 (neon_vmul_lane<mode>): New.
3487 (neon_vmul_n<mode>): New.
3488 * config/arm/unspecs.md (UNSPEC_VCALE): New
3489 (UNSPEC_VCALT): New.
3490 (UNSPEC_VFMA_LANE): New.
3491 (UNSPECS_VFMS_LANE): New.
3493 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3495 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
3496 ("*extzv<mode><clobbercc_or_nocc>"):
3497 Correct a typo in a comment.
3499 ("*insv<mode>_zEC12", "*insv<mode>_z10")
3500 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
3501 ("*insv<mode>_zEC12_appendbitsleft")
3502 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
3503 ("*insv<mode>_z10_appendbitsleft"): Ditto.
3504 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
3505 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
3506 Provide pattern with operands switched.
3507 ("*pre_z10_extv<mode>"):
3508 Use new subst patterns.
3509 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
3510 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
3511 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
3512 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
3513 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
3514 ("*<risbg_n>_sidi_ior_and_lshiftrt")
3515 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
3517 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
3518 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3519 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
3521 ("SINT"): New mode_iterator with SI, HI, QI.
3522 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
3523 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
3526 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3528 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
3529 new interface of s390_contiguous_bitmask_p.
3530 ("contiguous_bitmask_nowrap_operand"): New predicate.
3531 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
3532 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
3533 of s390_contiguous_bitmask_p.
3534 ("NxxDw"): Rename NxxDq constraint to NxxDw.
3535 ("NxxSw"): New constraint.
3536 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
3537 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
3539 (s390_contiguous_bitmask_nowrap_p): Export.
3540 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
3541 former s390_contiguous_bitmask_p.
3542 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
3543 detect contiguous bit ranges with wraparound. Change signature to
3544 return START and END position instead of POS and LENGTH.
3545 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
3546 ranges with wraparound.
3547 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
3548 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
3549 Adapt to new signature of s390_contiguous_bitmask_p.
3551 2016-09-23 Bin Cheng <bin.cheng@arm.com>
3553 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
3554 (create_intersect_range_checks): New.
3555 (vect_create_cond_for_alias_checks): Call above function.
3557 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3559 * config/arm/iterators.md (Code iterators): Fix some white-space
3563 (FCVT): Moved from vfp.md.
3564 (VCVT_HF_US_N): New.
3565 (VCVT_SI_US_N): New.
3570 (FCVTI32typename): Moved from vfp.md.
3571 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
3572 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
3573 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
3574 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
3575 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
3577 (fp16_rnd_str): New.
3578 (fp16_rnd_insn): New.
3579 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
3580 (UNSPEC_VCVT_HF_U_N): New.
3581 (UNSPEC_VCVT_SI_S_N): New.
3582 (UNSPEC_VCVT_SI_U_N): New.
3583 (UNSPEC_VCVTH_S): New.
3584 (UNSPEC_VCVTH_U): New.
3585 (UNSPEC_VCVTA_S): New.
3586 (UNSPEC_VCVTA_U): New.
3587 (UNSPEC_VCVTM_S): New.
3588 (UNSPEC_VCVTM_U): New.
3589 (UNSPEC_VCVTN_S): New.
3590 (UNSPEC_VCVTN_U): New.
3591 (UNSPEC_VCVTP_S): New.
3592 (UNSPEC_VCVTP_U): New.
3593 (UNSPEC_VCVTP_S): New.
3594 (UNSPEC_VCVTP_U): New.
3596 (UNSPEC_VRNDA): New.
3597 (UNSPEC_VRNDI): New.
3598 (UNSPEC_VRNDM): New.
3599 (UNSPEC_VRNDN): New.
3600 (UNSPEC_VRNDP): New.
3601 (UNSPEC_VRNDX): New.
3602 * config/arm/vfp.md (<absneg_str>hf2): New.
3604 (neon_v<fp16_rnd_str>hf): New.
3605 (neon_vrndihf): New.
3610 (*mulsf3neghf_vfp): New.
3611 (*negmulhf3_vfp): New.
3612 (*mulsf3addhf_vfp): New.
3613 (*mulhf3subhf_vfp): New.
3614 (*mulhf3neghfaddhf_vfp): New.
3615 (*mulhf3neghfsubhf_vfp): New.
3618 (fmsubhf4_fp16): New.
3622 (neon_vsqrthf): New.
3623 (neon_vrsqrtshf): New.
3624 (FCVT): Move to iterators.md.
3625 (FCVTI32typename): Likewise.
3626 (neon_vcvth<sup>hf): New.
3627 (neon_vcvth<sup>si): New.
3628 (neon_vcvth<sup>_nhf_unspec): New.
3629 (neon_vcvth<sup>_nhf): New.
3630 (neon_vcvth<sup>_nsi_unspec): New.
3631 (neon_vcvth<sup>_nsi): New.
3632 (neon_vcvt<vcvth_op>h<sup>si): New.
3633 (neon_<fmaxmin_op>hf): New.
3635 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3637 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
3638 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
3639 ("*insv<mode>_zEC12_appendbitsleft")
3640 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
3641 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
3643 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3645 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
3646 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
3647 construct values without normalization.
3648 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
3649 static local lhs_ops to vNULL.
3651 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3652 Jiong Wang <jiong.wang@arm.com>
3654 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
3655 available when FP16 instructions are available.
3656 (output_move_vfp): Add support for 16-bit data moves.
3657 (arm_validize_comparison): Fix some white-space. Support HFmode
3658 by conversion to SFmode.
3659 * config/arm/arm.md (truncdfhf2): Fix a comment.
3660 (extendhfdf2): Likewise.
3662 (movsicc): Fix some white-space.
3664 (movsfcc): Fix some white-space.
3666 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
3667 instructions are available.
3668 (*thumb2_movhi_vfp): Likewise.
3669 (*arm_movhi_fp16): New.
3670 (*thumb2_movhi_fp16): New.
3671 (*movhf_vfp_fp16): New.
3672 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
3673 (*movhf_vfp): Likewise.
3674 (extendhfsf2): Enable when VFP FP16 instructions are available.
3675 (truncsfhf2): Enable when VFP FP16 instructions are available.
3677 2016-09-23 Martin Liska <mliska@suse.cz>
3679 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
3681 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3683 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
3685 (arm_evpc_neon_vtrn): Likewise.
3686 (arm_evpc_neon_vrev): Likewise.
3687 (arm_evpc_neon_vext): Likewise.
3688 * config/arm/arm_neon.h (vbsl_f16): New.
3692 (vdup_lane_f16): New.
3693 (vdupq_lane_f16): New.
3706 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
3707 (vdup_lane): New (v8hf, v4hf variants).
3708 (vext): New (v8hf, v4hf variants).
3709 (vbsl): New (v8hf, v4hf variants).
3710 * config/arm/iterators.md (VDQWH): New.
3712 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
3713 (Scalar_mul_8_16): Fix white-space.
3714 (Is_d_reg): Add V4HF and V8HF.
3715 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
3716 (neon_vdup_lane<mode>): New.
3717 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
3718 (*neon_vtrn<mode>_insn): Likewise.
3719 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3720 (*neon_vzip<mode>_insn): Likewise
3721 (neon_vuzp<mode>_internal): Likewise.
3722 (*neon_vuzp<mode>_insn): Likewise
3723 * config/arm/vec-common.md (vec_perm_const<mode>): New.
3725 2016-09-23 Jiong Wang <jiong.wang@arm.com>
3726 Matthew Wahab <matthew.wahab@arm.com>
3728 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3729 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3730 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3731 available. Also fix some white-space.
3732 * config/arm/vfp.md (*arm_movhi_vfp): New.
3733 (*thumb2_movhi_vfp): New.
3735 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3737 * config/arm/arm-c.c (arm_cpu_builtins): Define
3738 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3739 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3741 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3743 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3744 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
3745 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3746 arm_v8_2a_fp16_neon_hw.
3747 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3750 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3752 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3753 arm_fp16_alternative_ok and arm_fp16_none_ok.
3755 2016-09-23 Martin Liska <mliska@suse.cz>
3757 * ipa-icf.c (sem_variable::merge): Replace adress with address.
3759 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
3761 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3763 ("armv8.2-a+fp16"): New.
3764 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3765 (FL2_FP16INST): New.
3766 (FL2_FOR_ARCH8_2A): New.
3767 * config/arm/arm-tables.opt: Regenerate.
3768 * config/arm/arm.c (arm_arch8_2): New.
3769 (arm_fp16_inst): New.
3770 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
3771 for incompatible fp16-format settings.
3772 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3773 (TARGET_NEON_FP16INST): New.
3774 (arm_arch8_2): Declare.
3775 (arm_fp16_inst): Declare.
3776 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3777 march=armv8.2-a and march=armv8.2-a+fp16.
3778 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3780 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3781 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3783 2016-09-23 Martin Liska <mliska@suse.cz>
3785 * doc/extend.texi: Remove fused-madd from i386 target options.
3787 2016-09-23 Martin Liska <mliska@suse.cz>
3789 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3792 2016-09-23 Martin Liska <mliska@suse.cz>
3794 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3797 2016-09-23 Martin Liska <mliska@suse.cz>
3800 * config/i386/i386.c (ix86_option_override_internal): Change
3801 signature and return false when there's an error related to
3803 (release_options_strings): New function.
3804 (ix86_valid_target_attribute_tree): Call the function.
3806 2016-09-23 Jakub Jelinek <jakub@redhat.com>
3808 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3809 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3810 (gen_hsa_ctor_assignment): Likewise.
3811 * print-tree.c (print_node): Likewise.
3812 * tree-dump.c (dequeue_and_dump): Likewise.
3813 * tree-sra.c (sra_modify_constructor_assign): Likewise.
3814 * expr.c (store_constructor): Likewise.
3815 * fold-const.c (operand_equal_p): Likewise.
3816 * tree-pretty-print.c (dump_generic_node): Likewise.
3817 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3818 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3820 2016-09-23 Richard Biener <rguenther@suse.de>
3822 * hooks.h (hook_uint_uintp_false): Declare.
3824 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3826 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3827 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3829 2016-09-22 Martin Sebor <msebor@redhat.com>
3832 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3833 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3834 (target_int_min): Correct computation.
3835 (format_integer): Use long long as the argument for the ll length
3837 (format_floating): Use target_int_max().
3838 (get_string_length): Same.
3839 (format_string): Avoid setting the bounded flag for strings
3841 (try_substitute_return_value): Avoid setting range info when
3842 the result isn't bounded.
3843 * varasm.c (assemble_name): Increase buffer size.
3845 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
3846 Terry Guo <terry.guo@arm.com>
3848 * target.def (elf_flags_numeric): New target hook.
3849 * targhooks.h (default_asm_elf_flags_numeric): New.
3850 * varasm.c (default_asm_elf_flags_numeric): New.
3851 (default_elf_asm_named_section): Use new target hook.
3852 * config/arm/arm.opt (mpure-code): New.
3853 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3854 * config/arm/arm.c (arm_asm_init_sections): Add section
3855 attribute to default text section if -mpure-code.
3856 (arm_option_check_internal): Diagnose use of option with
3857 non supported targets and/or options.
3858 (arm_asm_elf_flags_numeric): New.
3859 (arm_function_section): New.
3860 (arm_elf_section_type_flags): New.
3861 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3863 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3864 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3866 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
3868 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3870 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3872 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3873 * rtl.h: Adjust prototype.
3875 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3877 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3878 (prev_active_insn): Likewise.
3879 (active_insn_p): Likewise.
3880 * rtl.h: Adjust prototypes.
3881 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3882 * config/arc/arc.md: Likewise.
3883 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3884 (branch_needs_nop_p): Likewise.
3885 (use_skip_p): Likewise.
3886 * config/sh/sh.c (gen_block_redirect): Likewise.
3887 (split_branches): Likewise.
3888 * reorg.c (optimize_skip): Likewise.
3889 (fill_simple_delay_slots): Likewise.
3890 (fill_slots_from_thread): Likewise.
3891 (relax_delay_slots): Likewise.
3892 * resource.c (mark_target_live_regs): Likewise.
3894 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3896 * config/cris/cris.c (cris_asm_output_case_end): Change argument
3898 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3899 (prev_nonnote_nondebug_insn): Likewise.
3900 * config/cris/cris-protos.h: Adjust prototype.
3902 * jump.c (rtx_renumbered_equal_p): Adjust.
3904 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3906 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3907 * rtl.h: Adjust prototype.
3908 * config/sh/sh.md: Adjust.
3909 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3911 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3913 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3914 (prev_nondebug_insn): Likewise.
3915 * loop-doloop.c (doloop_condition_get): Likewise.
3916 * rtl.h: Adjust prototype.
3917 * cfgloop.h: Likewise.
3919 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3921 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3922 (prev_nonnote_insn): Likewise.
3923 * jump.c (reversed_comparison_code_parts): Likewise.
3924 (reversed_comparison): Likewise.
3925 * rtl.h: Adjust prototypes.
3926 * config/arc/arc.md: Adjust.
3927 * cse.c (find_comparison_args): Likewise.
3928 * reorg.c (redundant_insn): Change return type to rtx_insn *.
3929 (fix_reg_dead_note): Change argument type to rtx_insn *.
3930 (delete_prior_computation): Likewise.
3931 (delete_computation): Likewise.
3932 (fill_slots_from_thread): Adjust.
3933 (relax_delay_slots): Likewise.
3934 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3935 (simplify_relational_operation_1): Likewise.
3936 (simplify_ternary_operation): Likewise.
3938 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3940 * config/arc/arc-protos.h (arc_label_align): Change type of
3941 variables from rtx to rtx_insn *.
3942 * config/arc/arc.c (arc_label_align): Likewise.
3943 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
3944 * config/bfin/bfin.c (workaround_speculation): Likewise.
3945 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
3946 (find_last_same_clock): Likewise.
3947 (reorg_split_calls): Likewise.
3948 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
3949 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
3950 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
3951 (same_cmp_following_p): Likewise.
3952 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
3953 (same_cmp_following_p): Likwise.
3954 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
3955 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
3956 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
3957 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
3958 (rl78_alloc_physical_registers_cmp): Likewise.
3959 (rl78_alloc_physical_registers_umul): Likewise.
3960 (rl78_calculate_death_notes): Likewise.
3961 * config/s390/s390-protos.h (s390_label_align): Likewise.
3962 * config/s390/s390.c (s390_label_align): Likewise.
3963 * config/sh/sh.c (barrier_align): Likewise.
3964 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
3965 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
3966 (emit_cbcond_nop): Likewise.
3968 2016-09-22 Martin Liska <mliska@suse.cz>
3971 * ipa-icf.c (sem_variable::merge): Yield merge operation if
3972 alias address matters, not necessarily address of original.
3974 2016-09-22 Richard Biener <rguenther@suse.de>
3977 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3980 2016-09-22 Richard Biener <rguenther@suse.de>
3983 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
3984 from constant folding results.
3985 (gimple_resimplify2): Likewise.
3986 (gimple_resimplify3): Likewise.
3988 2016-09-22 Richard Biener <rguenther@suse.de>
3991 * expr.c (expand_expr_real_1): Guard array access against negative
3994 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3996 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
3998 (format_floating): Likewise.
4000 2016-09-22 Jakub Jelinek <jakub@redhat.com>
4003 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
4004 for all IFN_GOMP_SIMD_* internal fns, not just for
4005 IFN_GOMP_SIMD_ORDERED_*.
4007 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4010 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
4011 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
4012 instructions when you want to invert the test.
4013 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
4014 correct order for XXSEL.
4015 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
4016 for using XSCMP{EQ,GT,GE}DP.
4018 2016-09-21 David Malcolm <dmalcolm@redhat.com>
4020 * genconstants.c (main): Introduce noop_reader and convert call
4021 to read_md_files to a method call.
4022 * genenums.c (main): Likewise.
4023 * genmddeps.c (main): Likewise.
4024 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
4025 rtx_reader_ptr->get_top_level_filename ().
4026 (write_tm_preds_h): Likewise.
4027 (write_insn_preds_c): Likewise.
4028 * gensupport.c (class gen_reader): New subclass of rtx_reader.
4029 (rtx_handle_directive): Convert to...
4030 (gen_reader::handle_unknown_directive): ...this.
4031 (init_rtx_reader_args_cb): Convert return type from bool to
4032 rtx_reader *. Create a gen_reader instance, using it for the
4033 call to read_md_files. Return it if no errors occur.
4034 (init_rtx_reader_args): Convert return type from bool to
4036 * gensupport.h (init_rtx_reader_args_cb): Likewise.
4037 (init_rtx_reader_args_cb): Likewise.
4038 * read-md.c (struct file_name_list): Move to class rtx_reader.
4039 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
4040 (read_md_filename): Delete in favor of
4041 rtx_reader::m_read_md_filename.
4042 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
4043 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
4044 (base_dir): Delete in favor of rtx_reader::m_base_dir.
4045 (first_dir_md_include): Delete in favor of
4046 rtx_reader::m_first_dir_md_include.
4047 (last_dir_md_include_ptr): Delete in favor of
4048 rtx_reader::m_last_dir_md_include_ptr.
4049 (max_include_len): Delete.
4050 (rtx_reader_ptr): New.
4051 (fatal_with_file_and_line): Use get_filename and get_lineno
4052 accessors of rtx_reader_ptr.
4053 (require_char_ws): Likewise.
4054 (rtx_reader::read_char): New method, based on ::read_char.
4055 (rtx_reader::unread_char): New method, based on ::unread_char.
4056 (read_escape): Use get_filename and get_lineno accessors of
4058 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
4059 (read_string): Use get_filename and get_lineno accessors of
4061 (rtx_reader::rtx_reader): New ctor.
4062 (rtx_reader::~rtx_reader): New dtor.
4063 (handle_include): Convert from a function to...
4064 (rtx_reader::handle_include): ...this method, converting
4065 handle_directive from a callback to a virtual function.
4066 (handle_file): Likewise, converting to...
4067 (rtx_reader::handle_file): ...this method.
4068 (handle_toplevel_file): Likewise, converting to...
4069 (rtx_reader::handle_toplevel_file): ...this method.
4070 (rtx_reader::get_current_location): New method.
4071 (parse_include): Convert from a function to...
4072 (rtx_reader::add_include_path): ...this method, dropping redundant
4073 update to unused max_include_len.
4074 (read_md_files): Convert from a function to...
4075 (rtx_reader::read_md_files): ...this method, converting
4076 handle_directive from a callback to a virtual function.
4077 (noop_reader::handle_unknown_directive): New method.
4078 * read-md.h (directive_handler_t): Delete this typedef.
4080 (read_md_file): Delete.
4081 (read_md_lineno): Delete.
4082 (read_md_filename): Delete.
4083 (class rtx_reader): New class.
4084 (rtx_reader_ptr): New decl.
4085 (class noop_reader): New subclass of rtx_reader.
4086 (read_char): Reimplement in terms of rtx_reader::read_char.
4087 (unread_char): Reimplement in terms of rtx_reader::unread_char.
4088 (read_md_files): Delete.
4089 * read-rtl.c (read_rtx_code): Update for deletion of globals
4090 read_md_filename and read_md_lineno.
4092 2016-09-21 Jason Merrill <jason@redhat.com>
4094 * input.h (from_macro_definition_at): New.
4096 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4098 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
4100 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4102 PR tree-optimization/77550
4103 * tree-vect-stmts.c (create_array_ref): Change parameters.
4104 (get_group_alias_ptr_type): New function.
4105 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
4107 2016-09-21 Marek Polacek <polacek@redhat.com>
4109 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4110 Add falls through comment.
4112 2016-09-21 Richard Biener <rguenther@suse.de>
4114 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
4115 (replace_child): Likewise.
4116 (remove_child_TAG): Adjust.
4117 (move_marked_base_types): Likewise.
4118 (prune_unused_types_prune): Clear die_sib of removed children.
4120 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
4123 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
4124 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
4126 2016-09-21 Richard Biener <rguenther@suse.de>
4128 PR tree-optimization/77648
4129 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
4131 (make_transitive_closure_constraints): Adjust comment.
4132 (make_any_offset_constraints): New function.
4133 (handle_rhs_call): Make sure to first expand a pointer to all
4134 subfields before transitively closing it.
4135 (handle_const_call): Likewise. Properly expand returned
4137 (handle_pure_call): Likewise.
4139 2016-09-21 Richard Biener <rguenther@suse.de>
4140 Jakub Jelinek <jakub@redhat.com>
4142 PR tree-optimization/77621
4143 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
4144 group at non-vectorizable stmts.
4146 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4148 PR tree-optimization/72835
4149 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
4150 (make_new_ssa_for_all_defs): Likewise.
4151 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
4153 2016-09-20 Martin Sebor <msebor@redhat.com>
4156 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
4157 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
4158 * config/linux.c (gnu_libc_printf_pointer_format): New function.
4159 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
4160 * config/sol2.c (solaris_printf_pointer_format): New function.
4161 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
4163 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
4164 * doc/tm.texi: Regenerate.
4165 * gimple-fold.h (get_range_strlen): New function.
4166 (get_maxval_strlen): Declare existing function.
4167 * gimple-fold.c (get_range_strlen): Add arguments and compute both
4168 maximum and minimum.
4169 (get_range_strlen): Define overload.
4170 (get_maxval_strlen): Adjust.
4171 * gimple-ssa-sprintf.c: New file and pass.
4172 * passes.def (pass_sprintf_length): Add new pass.
4173 * targhooks.h (default_printf_pointer_format): Declare new function.
4174 (gnu_libc_printf_pointer_format): Same.
4175 (solaris_libc_printf_pointer_format): Same.
4176 * targhooks.c (default_printf_pointer_format): Define new function.
4177 * tree-pass.h (make_pass_sprintf_length): Declare new function.
4178 * print-tree.c: Increase buffer size.
4180 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4182 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
4184 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4186 * common.opt: New option -fipa-vrp.
4187 * ipa-cp.c (ipa_get_vr_lat): New.
4188 (ipcp_vr_lattice::print): Likewise.
4189 (print_all_lattices): Call ipcp_vr_lattice::print.
4190 (ipcp_vr_lattice::meet_with): New.
4191 (ipcp_vr_lattice::meet_with_1): Likewise.
4192 (ipcp_vr_lattice::top_p): Likewise.
4193 (ipcp_vr_lattice::bottom_p): Likewsie.
4194 (ipcp_vr_lattice::set_to_bottom): Likewise.
4195 (set_all_contains_variable): Call VR set_to_bottom.
4196 (initialize_node_lattices): Init VR lattices.
4197 (propagate_vr_accross_jump_function): New.
4198 (propagate_constants_accross_call): Call
4199 propagate_vr_accross_jump_function.
4200 (ipcp_store_vr_results): New.
4201 (ipcp_driver): Handle VR.
4202 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
4203 (ipa_set_jf_unknown): Likewise.
4204 (ipa_compute_jump_functions_for_edge): Likewise.
4205 (ipa_node_params_t::duplicate): Likewise.
4206 (ipa_write_jump_function): Likewise.
4207 (ipa_read_jump_function): Likewise.
4208 (write_ipcp_transformation_info): Likewise.
4209 (read_ipcp_transformation_info): Likewise.
4210 (ipcp_update_vr): New.
4211 (ipcp_transform_function): Handle VR.
4212 * ipa-prop.h (struct ipa_vr): New.
4213 * cgraph.c: Include tree-vrp.h.
4214 * cgraphunit.c: Likewise.
4215 * ipa-utils.c: Likewise.
4218 * toplev.c: Likewise.
4219 * ipa-devirt.c: Likewise.
4220 * ipa-inline-transform.c: Likewise.
4221 * ipa-inline.c: Likewise.
4222 * ipa-profile.c: Likewise.
4224 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
4226 * doc/invoke.texi: Document -fdump-tree-evrp.
4227 * passes.def: Define new pass_early_vrp.
4228 * timevar.def: Define new TV_TREE_EARLY_VRP.
4229 * tree-pass.h (make_pass_early_vrp): New.
4230 * tree-ssa-propagate.c: Make replace_uses_in non static.
4231 * tree-ssa-propagate.h: Export replace_uses_in.
4232 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
4233 (extract_range_from_assert): Factor out
4234 extract_range_for_var_from_comparison_expr.
4235 (vrp_initialize_lattice): New.
4236 (vrp_initialize): Factor out vrp_initialize_lattice.
4237 (vrp_valueize): Fix it to reject complex value ranges.
4238 (vrp_free_lattice): New.
4239 (evrp_dom_walker::before_dom_children): Likewise.
4240 (evrp_dom_walker::after_dom_children): Likewise.
4241 (evrp_dom_walker::push_value_range): Likewise.
4242 (evrp_dom_walker::pop_value_range): Likewise.
4243 (execute_early_vrp): Likewise.
4244 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
4245 (make_pass_early_vrp): New.
4247 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4249 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
4250 instead of exact_log2.
4252 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
4255 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
4256 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
4257 (ix86_add_stmt_cost): Penalize DFmode vector operations
4258 for !TARGET_VECTORIZE_DOUBLE.
4260 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
4262 * doc/invoke.texi (Warning Options): Simplify language.
4263 (Optimize Options): Complete sentence.
4265 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
4267 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
4270 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
4273 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
4274 inits on power8 and above, use the VMRGEW instruction instead of a
4277 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
4278 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
4281 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4283 * config/aarch64/arm_neon.h
4284 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
4285 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
4286 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
4288 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4290 * config/var/vax.h (ELIMINABLE_REGS): Define.
4291 (INITIAL_ELIMINATION_OFFSET): Define.
4293 2016-09-20 Jakub Jelinek <jakub@redhat.com>
4296 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
4297 cast to void * if the cast is from some other pointer type.
4299 2016-09-20 Richard Biener <rguenther@suse.de>
4301 PR tree-optimization/77646
4302 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
4305 2016-09-20 Tamar Christina <tamar.christina@arm.com>
4307 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
4308 attributes to all inlined functions and make them extern.
4310 2016-09-20 Richard Biener <rguenther@suse.de>
4312 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
4314 * debug.c (do_nothing_debug_hooks): Adjust.
4315 * dbxout.c (dbx_debug_hooks): Likewise.
4316 * sdbout.c (sdb_debug_hooks): Likewise.
4317 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
4318 (dwarf2out_finish): Move producer, filename and
4320 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
4321 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
4323 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
4326 * doc/invoke.texi: Document -Wint-in-bool-context.
4329 * dwarf2out.c (output_loc_operands): Fix an assertion.
4331 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4333 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
4334 (CR_DECIMAL_DIG): New macro.
4336 2016-09-19 Joseph Myers <joseph@codesourcery.com>
4338 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
4341 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
4343 PR rtl-optimization/77416
4344 * lra-remat.c (operand_to_remat): Process hard coded insn
4347 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4349 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
4350 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
4352 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4354 * target.def (lra_p): Wordsmithing.
4355 * doc/tm.texi: Regenerate.
4357 2016-09-19 Jakub Jelinek <jakub@redhat.com>
4358 Jan Hubicka <jh@suse.cz>
4361 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
4362 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
4363 Call ultimate_alias_target just once, not up to 4 times.
4365 2016-09-19 Richard Biener <rguenther@suse.de>
4367 * dwarf2out.c (early_dwarf_finished): New global.
4368 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
4370 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
4371 if called from LTO exit early.
4372 (dwarf2out_late_global_decl): When being during the early
4373 debug phase do not add locations but only const value attributes.
4374 Adjust the way we generate early DIEs for LTO.
4376 2016-09-19 Richard Biener <rguenther@suse.de>
4379 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
4380 proper niter to bound the loops.
4382 2016-09-19 Richard Biener <rguenther@suse.de>
4384 PR tree-optimization/77514
4385 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
4386 search for folded stmt.
4388 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
4390 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
4391 * tree-pass.h (make_pass_early_thread_jumps): Declare.
4392 * tree-ssa-threadbackward.c (fsm_find_thread_path,
4393 fsm_find_thread_path, profitable_jump_thread_path,
4394 fsm_find_control_statement_thread_paths,
4395 find_jump_threads_backwards): Add speed_p parameter.
4396 (pass_data_early_thread_jumps): New pass.
4397 (make_pass_early_thread_jumps): New function.
4399 2016-09-17 Andreas Schwab <schwab@suse.de>
4401 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
4402 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4404 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
4406 * recog.c (rest_of_handle_split_after_reload): Delete.
4407 (pass_split_after_reload::gate): New method.
4408 (pass_split_after_reload::execute): Call split_all_insns directly.
4410 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
4412 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
4413 parameters for functions taking long long arguments.
4415 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4418 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
4419 splat with truncate.
4421 2016-09-16 Jason Merrill <jason@redhat.com>
4423 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
4425 * hwint.c (exact_log2): Use pow2p_hwi.
4426 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
4427 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
4428 * builtins.c (get_object_alignment_2, get_object_alignment)
4429 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
4431 * calls.c (compute_argument_addresses, store_one_arg): Use
4433 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
4434 * combine.c (force_to_mode): Use least_bit_hwi.
4435 (contains_muldiv, find_split_point, combine_simplify_rtx)
4436 (simplify_if_then_else, simplify_set, force_to_mode)
4437 (if_then_else_cond, simplify_and_const_int_1)
4438 (simplify_compare_const): Use pow2p_hwi.
4439 * cse.c (fold_rtx): Use pow2p_hwi.
4440 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
4442 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
4443 (init_expmed_one_conv): Use pow2p_hwi.
4444 * expr.c (is_aligning_offset): Use pow2p_hwi.
4445 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
4446 (fold_binary_loc): Use pow2p_hwi.
4447 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
4448 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
4449 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
4450 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
4452 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
4453 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
4454 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
4455 * omp-low.c (oacc_loop_fixed_partitions)
4456 (oacc_loop_auto_partitions): Use least_bit_hwi.
4457 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
4458 * stor-layout.c (place_field): Use least_bit_hwi.
4459 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
4460 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
4461 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
4462 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
4463 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
4464 * tree-vect-data-refs.c (vect_analyze_group_access_1)
4465 (vect_grouped_store_supported, vect_grouped_load_supported)
4466 (vect_permute_load_chain, vect_shift_permute_load_chain)
4467 (vect_transform_grouped_load): Use pow2p_hwi.
4468 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
4469 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
4470 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
4472 * tsan.c (instrument_expr): Use least_bit_hwi.
4473 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
4475 2016-09-16 Andreas Schwab <schwab@suse.de>
4477 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
4479 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4481 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4484 * combine.c (rest_of_handle_combine): If any edges have been purged,
4485 free dominators if available.
4487 2016-09-16 Jakub Jelinek <jakub@redhat.com>
4488 Eric Botcazou <ebotcazou@adacore.com>
4491 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
4492 through into expand_addsub_overflow after expand_neg_overflow.
4494 2016-09-15 David Malcolm <dmalcolm@redhat.com>
4496 * diagnostic-show-locus.c
4497 (selftest::test_fixit_insert_containing_newline): New function.
4498 (selftest::test_fixit_replace_containing_newline): New function.
4499 (selftest::diagnostic_show_locus_c_tests): Call the above.
4501 2016-09-15 Bin Cheng <bin.cheng@arm.com>
4503 PR tree-optimization/77503
4504 * tree-vect-loop.c (vectorizable_reduction): Record reduction
4505 code for CONST_COND_REDUCTION at analysis stage and use it at
4507 * tree-vectorizer.h (struct _stmt_vec_info): New field.
4508 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
4509 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
4512 2016-09-15 Richard Biener <rguenther@suse.de>
4515 * fold-const.c (split_tree): Do not split constant ~X.
4517 2016-09-15 Jakub Jelinek <jakub@redhat.com>
4519 PR rtl-optimization/77425
4520 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
4524 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
4525 use %qs instead of %s where desirable, use argument instead of arg in
4526 the diagnostic wording, add list of supported strategies and
4528 (ix86_option_override_internal): Emit target("m...") instead of
4529 option("m...") in the diagnostic. Use %qs instead of %s in invalid
4530 -march/-mtune option diagnostic. Add list of supported arches/tunings
4531 and spellcheck hint. Remove prefix, suffix and sw variables, use
4532 main_args_p ? "..." : "..." in diagnostics to make translation
4535 2016-09-15 Richard Biener <rguenther@suse.de>
4537 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
4538 extra offset argument.
4539 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
4540 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
4541 to reflect new offset parameter.
4542 * doc/tm.texi: Regenerate.
4543 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4544 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
4546 (darwin_asm_output_dwarf_offset): Likewise.
4547 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
4549 (darwin_asm_output_dwarf_offset): Pass offset argument through.
4550 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4551 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4553 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
4556 * ipa-icf.c (set_alias_uids): New function.
4557 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
4558 all the merged variable's referring aliases.
4560 2016-09-15 Richard Biener <rguenther@suse.de>
4562 PR tree-optimization/77514
4563 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
4564 only forced_stmts sequence.
4566 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
4568 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
4569 * cfgexpand.c (update_alias_info_with_stack_vars): Use
4570 FOR_EACH_SSA_NAME to iterate over SSA variables.
4571 (pass_expand::execute): Likewise.
4572 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
4573 * tree-cfg.c (dump_function_to_file): Likewise.
4574 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
4575 (update_ssa): Likewise.
4576 * tree-ssa-alias.c (dump_alias_info): Likewise.
4577 * tree-ssa-ccp.c (ccp_finalize): Likewise.
4578 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
4579 (create_outofssa_var_map): Likewise.
4580 (coalesce_ssa_name): Likewise.
4581 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
4582 * tree-ssa-pre.c (compute_avail): Likewise.
4583 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4584 (scc_vn_restore_ssa_info): Likewise.
4585 (free_scc_vn): Likwise.
4586 (run_scc_vn): Likewise.
4587 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4588 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
4589 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4590 * tree-ssa.c (verify_ssa): Likewise.
4592 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
4594 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
4595 and mips64r2 as default 32-bit and 64-bit architectures.
4596 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
4597 as default 32-bit and 64-bit architectures.
4599 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
4601 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
4604 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4606 * target.def (lra_p): Change commentary (for the manual) for the
4608 * doc/tm.texi: Regenerate.
4610 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4612 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
4613 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
4614 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
4615 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
4617 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4619 * targhooks.c (default_lra_p): Return true instead of false.
4621 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
4623 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
4624 hook_bool_void_false.
4625 * config/avr/avr.c: Ditto.
4626 * config/bfin/bfin.c: Ditto.
4627 * config/c6x/c6x.c: Ditto.
4628 * config/cr16/cr16.c: Ditto.
4629 * config/cris/cris.c: Ditto.
4630 * config/epiphany/epiphany.c: Ditto.
4631 * config/fr30/fr30.c: Ditto.
4632 * config/frv/frv.c: Ditto.
4633 * config/h8300/h8300.c: Ditto.
4634 * config/ia64/ia64.c: Ditto.
4635 * config/iq2000/iq2000.c: Ditto.
4636 * config/lm32/lm32.c: Ditto.
4637 * config/m32c/m32c.c: Ditto.
4638 * config/m32r/m32r.c: Ditto.
4639 * config/m68k/m68k.c: Ditto.
4640 * config/mcore/mcore.c: Ditto.
4641 * config/microblaze/microblaze.c: Ditto.
4642 * config/mmix/mmix.c: Ditto.
4643 * config/mn10300/mn10300.c: Ditto.
4644 * config/moxie/moxie.c: Ditto.
4645 * config/msp430/msp430.c: Ditto.
4646 * config/nios2/nios2.c: Ditto.
4647 * config/nvptx/nvptx.c: Ditto.
4648 * config/pa/pa.c: Ditto.
4649 * config/pdp11/pdp11.c: Ditto.
4650 * config/rl78/rl78.c: Ditto.
4651 * config/sparc/sparc.c: Ditto.
4652 * config/spu/spu.c: Ditto.
4653 * config/stormy16/stormy16.c: Ditto.
4654 * config/tilegx/tilegx.c: Ditto.
4655 * config/tilepro/tilepro.c: Ditto.
4656 * config/v850/v850.c: Ditto.
4657 * config/vax/vax.c: Ditto.
4658 * config/visium/visium.c: Ditto.
4659 * config/xtensa/xtensa.c: Ditto.
4661 2016-09-14 Jakub Jelinek <jakub@redhat.com>
4664 * tsan.c: Include target.h.
4665 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
4666 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
4667 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
4668 BUILT_IN_ATOMIC_TEST_AND_SET entries.
4669 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
4671 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4672 Martin Liska <mliska@suse.cz>
4675 * predict.c (force_edge_cold): Add braces to a condition.
4677 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
4679 PR rtl-optimization/77289
4680 * lra-constraints.c (get_final_hard_regno): Removed.
4681 (get_hard_regno): Add new parameter final_p.
4682 (get_reg_class): Directly call lra_get_elimination_hard_regno.
4683 (operands_match_p): Adjust call to get_hard_regno.
4684 (uses_hard_regs_p): Likewise.
4685 (process_alt_operands): Likewise.
4687 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
4690 * config/msp430/msp430.c (msp430_start_function): Emit an error
4691 if a function is both weak and specifies an interrupt number.
4693 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4695 PR tree-optimization/77454
4696 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
4697 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
4700 2016-09-13 Tamar Christina <tamar.christina@arm.com>
4702 * config/aarch64/aarch64-builtins.c
4703 (aarch64_init_simd_builtins): Fix builtin type signature printing.
4705 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
4707 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
4708 SFmode and SCmode arguments by reference.
4710 2016-09-13 David Malcolm <dmalcolm@redhat.com>
4712 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
4714 (selftest::test_one_liner_fixit_insert_before): ...this, and update
4715 for renaming of add_fixit_insert to add_fixit_insert_before.
4716 (selftest::test_one_liner_fixit_insert_after): New function.
4717 (selftest::test_one_liner_fixit_validation_adhoc_locations):
4718 Update for renaming of add_fixit_insert to add_fixit_insert_before.
4719 (selftest::test_one_liner_many_fixits): Likewise.
4720 (selftest::test_diagnostic_show_locus_one_liner): Update for
4721 renaming, call new test function.
4722 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4723 renaming of add_fixit_insert to add_fixit_insert_before.
4724 (selftest::test_fixit_consolidation): Likewise.
4725 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4727 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4728 (selftest::test_applying_fixits_insert_before): ...this.
4729 (selftest::test_applying_fixits_insert): Update for renaming of
4730 add_fixit_insert to add_fixit_insert_before.
4731 (selftest::test_applying_fixits_insert_after): New function.
4732 (selftest::test_applying_fixits_insert_after_at_line_end): New
4734 (selftest::test_applying_fixits_insert_after_failure): New function.
4735 (selftest::test_applying_fixits_multiple): Update for renaming of
4736 add_fixit_insert to add_fixit_insert_before.
4737 (selftest::change_line): Likewise.
4738 (selftest::test_applying_fixits_unreadable_file): Likewise.
4739 (selftest::test_applying_fixits_line_out_of_range): Likewise.
4740 (selftest::test_applying_fixits_column_validation): Likewise.
4741 (selftest::test_applying_fixits_column_validation): Likewise.
4742 (selftest::edit_context_c_tests): Update for renamed test function;
4743 call new test functions.
4745 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
4747 PR tree-optimization/77536
4748 PR rtl-optimization/68212
4749 * config/rs6000/rs6000.md (div->recip splitter): Remove
4750 optimize_insn_for_speed_p condition.
4752 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
4754 * optabs.c (prepare_cmp_insn): Update documentation comment.
4756 2016-09-13 Jakub Jelinek <jakub@redhat.com>
4757 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4760 * opts.h (candidates_list_and_hint): Declare.
4761 * opts-common.c (candidates_list_and_hint): New function.
4762 (cmdline_handle_error): Use it.
4764 2016-09-12 David Malcolm <dmalcolm@redhat.com>
4766 * edit-context.c (edited_line::get_len): New accessor.
4767 (edited_file::print_diff): Split out hunk-printing into...
4768 (edited_file::print_diff_hunk): New method.
4769 (edited_file::print_diff_line): New method.
4771 2016-09-12 Andrew Pinski <apinski@cavium.com>
4773 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4775 * config/aarch64/aarch64.c (thunderx_tunings): Enable
4776 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4777 (aarch64_operands_ok_for_ldpstp): Return false if
4778 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4779 was SImode and the alignment is less than 8 byte.
4780 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4782 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
4785 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4787 2016-09-12 Marek Polacek <polacek@redhat.com>
4789 * doc/extend.texi: Use lowercase "boolean".
4790 * doc/invoke.texi: Likewise.
4791 * doc/md.texi: Likewise.
4792 * target.def: Likewise.
4793 * doc/tm.texi: Regenerated.
4795 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4798 * expmed.c (synth_mult): Delete duplicate mode check.
4800 2016-09-10 Tom de Vries <tom@codesourcery.com>
4803 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4805 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4806 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4808 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
4810 PR rtl-optimization/77289
4811 * lra-constraints.c (get_final_hard_regno): Add support for non hard
4812 register numbers. Remove support for subregs.
4813 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
4814 (get_reg_class): Delete removed get_final_hard_regno() argument.
4815 (uses_hard_regs_p): Call get_final_hard_regno().
4817 2016-09-09 Martin Sebor <msebor@redhat.com>
4821 * pretty-print.c (pp_quoted_string): New function.
4822 (pp_format): Call it for %c and %s directives.
4824 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
4826 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4827 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4828 INITIAL_ELIMINATION_OFFSET) : Update documentation.
4829 * target.def (frame_pointer_required, can_eliminate): Likewise.
4830 * doc/tm.texi: Regenerated.
4831 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4833 * df-scan.c (df_hard_reg_init): Likewise.
4834 * ira.c (ira_setup_eliminable_regset): Likewise.
4835 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4836 init_elim_table): Likewise.
4837 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4838 set_initial_elim_offsets, update_eliminables,
4839 init_elim_table): Likewise.
4840 * rtlanal.c (get_initial_register_offset): Likewise.
4841 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4842 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4843 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4844 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4845 * config/fr30/fr30.h: Fix comment.
4846 * config/frv/frv.c: Likewise.
4847 * config/frv/frv.h: Likewise.
4848 * config/ft32/ft32.h: Likewise.
4849 * config/visium/visium.h: Likewise.
4850 * config/pa/pa64-linux.h: Likewise.
4851 * config/v850/v850.h: Likewise.
4852 * config/cris/cris.c: Likewise.
4853 * config/ia64/ia64.h: Likewise.
4854 * config/moxie/moxie.h: Likewise.
4855 * config/m32r/m32r.h: Likewise.
4857 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
4860 * config.in: Regenerate.
4861 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4863 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4864 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4865 static-libmpxwrappers case.
4866 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4867 MPX_LD_AS_NEEDED_GUARD_POP.
4868 * configure: Regenerate.
4869 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4870 defined if linker support "--push-state"/"--pop-state".
4872 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4874 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4876 2016-09-09 Joseph Myers <joseph@codesourcery.com>
4878 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4879 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4880 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4881 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4882 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4883 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4884 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4886 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4887 width macros from TS 18661-1.
4888 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4890 2016-09-08 Jakub Jelinek <jakub@redhat.com>
4893 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4894 OMP_CLAUSE_SAFELEN_EXPR.
4896 2016-09-07 David Malcolm <dmalcolm@redhat.com>
4898 * Makefile.in (OBJS): Add substring-locations.o.
4899 * langhooks-def.h (class substring_loc): New forward decl.
4900 (lhd_get_substring_location): New decl.
4901 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4902 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4903 * langhooks.c (lhd_get_substring_location): New function.
4904 * langhooks.h (class substring_loc): New forward decl.
4905 (struct lang_hooks): Add field get_substring_location.
4906 * substring-locations.c: New file, taking definition of
4907 format_warning_va and format_warning_at_substring from
4908 c-family/c-format.c, making them non-static.
4909 * substring-locations.h (class substring_loc): Move class here
4910 from c-family/c-common.h. Add and rewrite comments.
4911 (format_warning_va): New decl.
4912 (format_warning_at_substring): New decl.
4913 (get_source_location_for_substring): Add comment.
4915 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
4917 * config/i386/i386.c: Add 'U' suffix to processor feature bits
4918 to avoid -Wnarrowing warning.
4919 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4920 * opts.c: Likewise for SANITIZER_OPT bitmasks.
4922 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
4924 * config/aarch64/aarch64.c (aarch64_legitimize_address):
4925 Avoid use of base_offset if offset already in range.
4927 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
4929 * config/sh/sh-protos.h (struct sh_atomic_model,
4930 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4931 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4932 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4933 * config/sh/sh.h (struct sh_atomic_model,
4934 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4935 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4936 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4937 Guard with __cplusplus.
4939 2016-09-06 Jakub Jelinek <jakub@redhat.com>
4942 * config/i386/i386.c (ix86_expand_builtin): For builtin with
4943 unsupported or unknown ISA, use expand_call.
4945 2016-09-06 Martin Liska <mliska@suse.cz>
4947 PR gcov-profile/77378
4948 PR gcov-profile/77466
4949 * tree-profile.c (tree_profiling): Detect whether target can use
4950 -fprofile-update=atomic.
4952 2016-09-06 Richard Biener <rguenther@suse.de>
4954 PR tree-optimization/77479
4955 * tree-vrp.c (update_value_range): Extend overflow handling to
4958 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4961 * config/i386/i386.md (isa): Add x64_avx512bw.
4962 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
4963 (kmov_isa): New mode attr.
4964 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
4965 (*zero_extend<mode>si2): Likewise.
4966 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
4968 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
4970 * doc/invoke.texi (SPU Options): nops -> NOPs.
4971 (x86 Options): Ditto.
4973 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4976 * toplev.c (process_options): Temporarily set input_location
4977 to UNKNOWN_LOCATION around targetm.target_option.override () call.
4979 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
4981 PR rtl-optimization/77452
4982 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
4983 inner-mode reference to a CONST_VECTOR constant in the constant pool.
4985 2016-09-05 Marek Polacek <polacek@redhat.com>
4988 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
4990 2016-09-05 Jakub Jelinek <jakub@redhat.com>
4993 * gensupport.c (alter_output_for_subst_insn): Remove redundant
4994 *insn_out == '*' test. Don't copy unnecessary to yet another
4995 memory buffer, and don't leak it.
4997 PR rtl-optimization/77425
4998 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
5000 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
5002 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
5004 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5006 * common.opt (fdiagnostics-generate-patch): New option.
5007 * diagnostic.c: Include "edit-context.h".
5008 (diagnostic_initialize): Initialize context->edit_context_ptr.
5009 (diagnostic_finish): Delete context->edit_context_ptr.
5010 (diagnostic_report_diagnostic): Add fix-it hints from the
5011 diagnostic to context->edit_context_ptr, if any.
5012 * diagnostic.h (class edit_context): Add forward decl.
5013 (struct diagnostic_context): Add field "edit_context_ptr".
5014 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
5015 -fdiagnostics-generate-patch.
5016 (-fdiagnostics-generate-patch): New item.
5017 * toplev.c: Include "edit-context.h".
5018 (process_options): Set global_dc->edit_context_ptr to a new
5019 edit_context if the options need one.
5020 (toplev::main): Handle -fdiagnostics-generate-patch by using
5021 global_dc->edit_context_ptr.
5023 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5026 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
5027 map and firstprivate clauses on target construct for _Atomic
5029 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
5030 on target construct for _Atomic qualified decls.
5031 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
5033 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
5034 _Atomic qualified arguments not mentioned in uniform clause.
5036 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5038 * Makefile.in (OBJS-libcommon): Add edit-context.o.
5039 * diagnostic-color.c (color_dict): Add "diff-filename",
5040 "diff-hunk", "diff-delete", and "diff-insert".
5041 (parse_gcc_colors): Update default value of GCC_COLORS in comment
5042 to reflect above changes.
5043 * doc/invoke.texi (-fdiagnostics-color): Update description of
5044 default GCC_COLORS, and of the supported capabilities.
5045 * edit-context.c: New file.
5046 * edit-context.h: New file.
5047 * input.c (struct fcache): Add field "missing_trailing_newline".
5048 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
5050 (add_file_to_cache_tab): Likewise.
5051 (fcache::fcache): Likewise.
5052 (get_next_line): Update c->missing_trailing_newline.
5053 (location_missing_trailing_newline): New function.
5054 * input.h (location_missing_trailing_newline): New decl.
5055 * selftest-run-tests.c (selftest::run_tests): Call
5056 edit_context_c_tests.
5057 * selftest.h (edit_context_c_tests): New decl.
5059 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5060 Richard Biener <rguenth@suse.de>
5062 PR tree-optimization/77444
5063 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
5064 as steptype, remove redundant initialization.
5066 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5069 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
5070 (sanopt_optimize_walker): Optimize away
5071 __asan_before_dynamic_init (...) followed by
5072 __asan_after_dynamic_init () without intervening memory loads/stores.
5073 * ipa-pure-const.c (special_builtin_state): Handle
5074 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
5075 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
5077 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5079 * cfg.c (free_original_copy_tables): Replace second assignment of
5080 bb_copy = NULL by bb_original = NULL.
5082 2016-09-02 Jakub Jelinek <jakub@redhat.com>
5085 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
5086 assignment added in r216794.
5088 2016-09-02 David Malcolm <dmalcolm@redhat.com>
5090 * Makefile.in (OBJS): Add typed-splay-tree.o.
5091 * selftest-run-tests.c (selftest::run_tests): Call
5092 typed_splay_tree_c_tests.
5093 * selftest.h (typed_splay_tree_c_tests): New decl.
5094 * typed-splay-tree.c: New file.
5095 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
5096 (typed_splay_tree::max): New method.
5097 (typed_splay_tree::min): New method.
5098 (typed_splay_tree::foreach): New method.
5099 (typed_splay_tree::closure): New struct.
5100 (typed_splay_tree::inner_foreach_fn): New function.
5102 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5104 * ipa-cp.c (ipcp_store_bits_results): Change option name from
5105 -fipa-cp-bit to -fipa-bit-cp.
5107 2016-09-01 Martin Sebor <msebor@redhat.com>
5109 PR tree-optimization/71831
5110 * tree-object-size.h: Return bool instead of the size and add
5111 argument for the size.
5112 * tree-object-size.c (compute_object_offset): Update signature.
5113 (addr_object_size): Same.
5114 (compute_builtin_object_size): Return bool instead of the size
5115 and add argument for the size. Handle POINTER_PLUS_EXPR when
5116 optimization is disabled.
5117 (expr_object_size): Adjust.
5118 (plus_stmt_object_size): Adjust.
5119 (pass_object_sizes::execute): Adjust.
5120 * builtins.c (fold_builtin_object_size): Adjust.
5121 * doc/extend.texi (Object Size Checking): Update.
5122 * ubsan.c (instrument_object_size): Adjust.
5124 2016-09-01 Martin Sebor <msebor@redhat.com>
5126 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
5127 it fits the output of the formatted function regardless of its
5129 * gcc/genmodes.c (parser::parse_expr): Same.
5130 * gimplify.c (gimplify_asm_expr): Same.
5131 * passes.c (pass_manager::register_one_dump_file): Same.
5132 * print-tree.c (print_node): Same.
5134 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5136 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
5138 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5140 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
5142 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5144 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
5145 * config/rs6000/vector.md: Ditto.
5146 * config/rs6000/vsx.md: Ditto.
5148 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5150 * ipa-inline-analysis.c (param_change_prob): Get to the base object
5153 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5155 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
5156 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
5157 *return_and_restore_gpregs_<mode>_r11,
5158 *return_and_restore_gpregs_<mode>_r12,
5159 *return_and_restore_gpregs_<mode>_r1,
5160 *return_and_restore_fpregs_<mode>_r11,
5161 *return_and_restore_fpregs_<mode>_r12,
5162 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
5163 directly instead of via the "l" constraint. Renumber operands.
5166 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5168 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
5169 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
5170 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
5171 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
5172 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
5173 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
5174 *call_value_nonlocal_darwin64, reload_macho_picbase,
5175 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
5176 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
5177 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
5178 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
5179 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
5180 *save_fpregs_<mode>_r1): Ditto.
5181 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
5182 *return_and_restore_gpregs_spe): Ditto.
5184 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
5186 * config/rs6000/rs6000.md
5187 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
5188 the use of the link register.
5189 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
5191 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5192 Michael Meissner <meissner@linux.vnet.ibm.com>
5195 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
5196 reg+reg addressing for TImode.
5197 (rs6000_legitimate_address_p): Only allow register indirect
5198 addressing for TImode, even without TARGET_QUAD_MEMORY.
5200 2016-09-01 Richard Biener <rguenther@suse.de>
5203 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
5204 check whether the result fits the desired result type.
5206 2016-09-01 Nathan Sidwell <nathan@acm.org>
5208 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
5210 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
5212 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
5214 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
5216 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5218 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
5219 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
5220 for comparisons of integer ZERO_EXTEND against zero.
5222 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
5224 * config/i386/i386.c (ix86_option_override_internal): Also disable the
5225 STV pass if -mstackrealign is enabled.
5227 2016-08-31 Ilya Verbin <iverbin@gmail.com>
5229 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
5232 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5234 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
5235 (layout_range::intersects_line_p): New method.
5236 (test_range_contains_point_for_single_point): Rename to...
5237 (test_layout_range_for_single_point): ...this, and add testing
5238 for layout_range::intersects_line_p.
5239 (test_range_contains_point_for_single_line): Rename to...
5240 (test_layout_range_for_single_line): ...this, and add testing
5241 for layout_range::intersects_line_p.
5242 (test_range_contains_point_for_multiple_lines): Rename to...
5243 (test_layout_range_for_multiple_lines): ...this, and add testing
5244 for layout_range::intersects_line_p.
5245 (layout::layout): Populate m_fixit_hints.
5246 (layout::get_expanded_location): Handle the case of a line-span
5248 (layout::validate_fixit_hint_p): New method.
5249 (get_line_span_for_fixit_hint): New function.
5250 (layout::calculate_line_spans): Add spans for fixit-hints.
5251 (layout::should_print_annotation_line_p): New method.
5252 (layout::print_any_fixits): Drop param "richloc", instead using
5253 validated fixits in m_fixit_hints. Add "const" to hint pointers.
5254 (diagnostic_show_locus): Avoid printing blank annotation lines.
5255 (selftest::test_diagnostic_context::test_diagnostic_context):
5256 Initialize show_column and start_span.
5257 (selftest::test_diagnostic_context::start_span_cb): New static
5259 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
5260 (selftest::diagnostic_show_locus_c_tests): Update for function
5261 renamings. Call test_diagnostic_show_locus_fixit_lines.
5263 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5265 PR tree-optimization/73714
5266 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
5268 2016-08-31 David Malcolm <dmalcolm@redhat.com>
5270 * selftest.c: Move "namespace selftest {" to top of file,
5271 removing explicit "selftest::" qualifiers throughout.
5273 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
5275 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
5277 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
5278 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
5279 Replace builtin with vector extension.
5280 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
5282 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
5283 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
5284 Replace builtin with vector extension.
5285 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
5286 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
5287 Replace builtin with vector extension.
5288 * config/i386/xmmintrin.h (__m128_u): New type.
5289 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
5290 (_mm_load_ps, _mm_store_ps): Simplify.
5292 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
5294 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
5296 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5298 * diagnostic-show-locus.c (colorizer::begin_state): Support more
5299 than 3 ranges per diagnostic by alternating between color 1 and
5301 (layout::layout): Replace use of rich_location::MAX_RANGES
5302 with richloc->get_num_locations ().
5303 (layout::calculate_line_spans): Replace use of
5304 rich_location::MAX_RANGES with m_layout_ranges.length ().
5305 (layout::print_annotation_line): Handle arbitrary numbers of
5306 ranges in caret-printing by defaulting to '^'.
5307 (selftest::test_one_liner_many_fixits): New function.
5308 (test_diagnostic_show_locus_one_liner): Call it.
5309 * diagnostic.c (diagnostic_initialize): Update for renaming
5310 of rich_location::MAX_RANGES to
5311 rich_location::STATICALLY_ALLOCATED_RANGES.
5312 * diagnostic.h (struct diagnostic_context): Likewise.
5314 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5316 * selftest.c (selftest::named_temp_file::named_temp_file): New
5318 (selftest::temp_source_file::~temp_source_file): Move to...
5319 (selftest::named_temp_file::~named_temp_file): ...here.
5320 (selftest::test_named_temp_file): New function.
5321 (selftest::selftest_c_tests): Call test_named_temp_file.
5322 * selftest.h (class named_temp_file): New class.
5323 (class temp_source_file): Convert to a subclass of named_temp_file.
5325 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
5327 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
5328 USEs of LR_REGNO in returns and sibcalls.
5329 (rs6000_output_mi_thunk): Similar.
5330 (rs6000_sibcall_aix): Similar.
5331 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
5332 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
5333 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
5334 Remove the USE of LR_REGNO from the patterns as well. Delete an
5336 (return_internal_<mode>): Delete.
5338 2016-08-30 Tamar Christina <tamar.christina@arm.com>
5340 * gcc/config/aarch64/aarch64-simd.md
5341 (aarch64_ld2<mode>_dreg_le): New.
5342 (aarch64_ld2<mode>_dreg_be): New.
5343 (aarch64_ld2<mode>_dreg): Removed.
5344 (aarch64_ld3<mode>_dreg_le): New.
5345 (aarch64_ld3<mode>_dreg_be): New.
5346 (aarch64_ld3<mode>_dreg): Removed.
5347 (aarch64_ld4<mode>_dreg_le): New.
5348 (aarch64_ld4<mode>_dreg_be): New.
5349 (aarch64_ld4<mode>_dreg): Removed.
5350 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
5352 2016-08-30 David Malcolm <dmalcolm@redhat.com>
5354 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
5355 redundant location param.
5356 (test_one_liner_fixit_remove): Likewise.
5357 (test_one_liner_fixit_replace): Likewise.
5358 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
5359 * gcc-rich-location.c
5360 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
5361 get_range_from_loc. Drop overload taking a const char *.
5362 * gcc-rich-location.h
5363 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
5366 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5368 * config/linux.c (linux_libc_has_function): Return true on musl.
5370 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5372 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
5374 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
5376 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
5377 used for abnormal egdes.
5379 2016-08-30 Jakub Jelinek <jakub@redhat.com>
5381 PR tree-optimization/72866
5382 * tree-vect-patterns.c (search_type_for_mask): Turn into
5383 a small wrapper, move all code to ...
5384 (search_type_for_mask_1): ... this new function. Add caching
5385 and adjust recursive calls.
5388 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
5389 instead of lookup_type_die (type_main_variant (type)) even for array
5393 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
5394 constant pool reference return x instead of c.
5396 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
5398 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
5401 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5404 (selftest::test_make_location_nonpure_range_endpoints): Fix
5407 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5409 * diagnostic-show-locus.c
5410 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
5412 (selftest::test_diagnostic_show_locus_one_liner): Call it.
5413 * input.c (get_pure_location): Move to libcpp/line-map.c.
5414 * input.h (get_pure_location): Convert decl to an inline function
5415 calling implementation in libcpp.
5417 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
5420 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
5421 template for intel asm dialect.
5422 (vec_set_hi_<mode><mask_name>): Ditto.
5424 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5426 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
5427 (selftest::fail_formatted): Likewise.
5429 2016-08-29 David Malcolm <dmalcolm@redhat.com>
5431 * input.c (make_location): Call get_start and get_finish
5432 on the endpoints to avoid storing packed ranges or ad-hoc
5434 (selftest::test_make_location_nonpure_range_endpoints): New function.
5435 (selftest::input_c_tests): Call it.
5436 * input.h (get_start): New inline function.
5438 2016-08-29 Tom de Vries <tom@codesourcery.com>
5441 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
5444 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
5446 * Makefile.in (gcov-iov.h): Add dummy recipe.
5448 2016-08-29 Nathan Sidwell <nathan@acm.org>
5450 * config/nvptx/nvptx.c: #include tree-vrp.h.
5452 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
5455 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
5456 HIGH+LO construct during reload.
5458 2016-08-28 Tom de Vries <tom@codesourcery.com>
5461 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
5462 'sysv_abi va_list' attribute.
5463 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
5464 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
5467 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5469 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
5470 * emit-rtl.c (unshare_all_rtl_1): Adjust.
5471 (unshare_all_rtl_again): Likewise.
5472 * function.c (assign_stack_local_1): Likewise.
5473 (assign_stack_temp_for_type): Likewise.
5475 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5477 * cfgbuild.c (make_edges): Adjust.
5478 * cfgrtl.c (can_delete_label_p): Likewise.
5479 * dwarf2cfi.c (create_trace_edges): Likewise.
5480 * except.c (sjlj_emit_dispatch_table): Likewise.
5481 * function.h (struct expr_status): make x_forced_labels a vector.
5482 * jump.c (rebuild_jump_labels_1): Adjust.
5483 * reload1.c (set_initial_label_offsets): Likewise.
5484 * stmt.c (force_label_rtx): Likewise.
5485 (expand_label): Likewise.
5487 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5489 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
5491 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
5493 PR tree-optimization/71077
5494 PR tree-optimization/68542
5495 * fold-const.c (fold_relational_const): Fix folding of
5496 VECTOR_CST comparisons that have a scalar boolean result type.
5497 (selftest::test_vector_folding): New static function.
5498 (selftest::fold_const_c_tests): Call it.
5500 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
5502 * doc/extend.texi (SPU Built-in Functions): Remove stale
5503 references to material formerly at IBM and Sony.
5505 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
5508 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
5510 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5512 * diagnostic-show-locus.c
5513 (selftest::test_fixit_consolidation): New function.
5514 (selftest::diagnostic_show_locus_c_tests): Call it.
5515 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
5516 constructor based on source_range.
5518 2016-08-26 David Malcolm <dmalcolm@redhat.com>
5520 * diagnostic-color.c (color_dict): Add "fixit-insert" and
5522 (parse_gcc_colors): Update description of default GCC_COLORS.
5523 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
5524 (colorizer::set_fixit_insert): New method.
5525 (colorizer::set_fixit_delete): New method.
5526 (colorizer::get_color_by_name): New method.
5527 (colorizer::STATE_FIXIT_INSERT): New constant.
5528 (colorizer::STATE_FIXIT_DELETE): New constant.
5529 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
5530 fields in favor of new field "m_stop_color". Add fields
5531 "m_fixit_insert" and "m_fixit_delete".
5532 (colorizer::colorizer): Update for above changes. Replace
5533 colorize_start calls with calls to get_color_by_name.
5534 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
5535 STATE_FIXIT_DELETE. Update for field renamings.
5536 (colorizer::finish_state): Simplify by using m_stop_color,
5537 rather than multiple identical "*_ce" fields.
5538 (colorizer::get_color_by_name): New method.
5539 (layout::print_any_fixits): Print insertions and replacements
5540 using the "fixit-insert" color, and deletions using the
5541 "fixit-delete" color.
5542 * doc/invoke.texi (-fdiagnostics-color): Update description of
5543 default GCC_COLORS, and of the supported capabilities.
5545 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
5547 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
5548 current_function_static_stack_size variable with the static
5549 stack frame size of the current function when
5550 flag_stack_usage_info is enabled.
5552 2016-08-26 Nathan Sidwell <nathan@acm.org>
5554 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
5555 assignment inside if condition.
5557 2016-08-26 Richard Biener <rguenther@suse.de>
5559 PR tree-optimization/69047
5560 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
5561 extracts similar to what FRE does.
5562 (non_rewritable_mem_ref_base): Likewise.
5564 2016-08-26 Joseph Myers <joseph@codesourcery.com>
5566 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
5567 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
5568 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5569 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5570 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
5572 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5573 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5574 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5575 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
5576 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5578 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5581 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
5582 reservation duration to 15 cycles.
5583 (cortex_a8_vfp_macs): Likewise.
5584 (cortex_a8_vfp_macd): Likewise.
5585 (cortex_a8_vfp_divs): Likewise.
5586 (cortex_a8_vfp_divd): Likewise.
5588 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5590 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
5591 (aarch_macro_fusion_pair_p): Use above to avoid early return.
5593 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5594 Martin Jambhor <mjambor@suse.cz>
5596 * common.opt: New option -fipa-bit-cp.
5597 * doc/invoke.texi: Document -fipa-bit-cp.
5598 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
5599 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
5600 * tree-ssa-ccp.h: New header file.
5601 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
5602 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
5603 Replace all occurences of tree parameter by two new params: signop, int.
5604 (bit_value_unop_1): Change to bit_value_unop and export it.
5605 Replace all occurences of tree parameter by two new params: signop,
5607 (bit_value_binop): Change call from bit_value_binop_1 to
5609 (bit_value_assume_aligned): Likewise.
5610 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
5611 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
5613 (ccp_finalize): Skip processing if val->mask == 0.
5614 * ipa-cp.c: Include tree-ssa-ccp.h
5615 (ipcp_bits_lattice): New class.
5616 (ipcp_param_lattice (bits_lattice): New member.
5617 (print_all_lattices): Call ipcp_bits_lattice::print.
5618 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
5619 (initialize_node_lattices): Likewise.
5620 (propagate_bits_accross_jump_function): New function.
5621 (propagate_constants_accross_call): Call
5622 propagate_bits_accross_jump_function.
5623 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
5624 (ipcp_store_bits_results): New function.
5625 (ipcp_driver): Call ipcp_store_bits_results.
5626 * ipa-prop.h (ipa_bits): New struct.
5627 (ipa_jump_func): Add new member bits of type ipa_bits.
5628 (ipa_param_descriptor): Change decl to decl_or_type.
5629 (ipa_get_param): Change decl to decl_or_type and assert on
5631 (ipa_get_type): New function.
5632 (ipcp_transformation_summary): New member bits.
5633 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
5634 (ipa_populate_param_decls): Likewise.
5635 (ipa_dump_param): Likewise.
5636 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
5638 (ipa_set_jf_unknown): Set ipa_bits::known to false.
5639 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
5641 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
5642 (ipa_write_jump_function): Add streaming for ipa_bits.
5643 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
5644 (write_ipcp_transformation_info): Add streaming for ipa_bits
5646 (read_ipcp_transfomration_info): Add support for reading streamed
5648 (ipcp_update_bits): New function.
5649 (ipcp_transform_function): Call ipcp_update_bits.
5651 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5653 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
5654 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
5656 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
5658 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
5660 2016-08-25 Richard Biener <rguenther@suse.de>
5662 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
5663 Only add locations in late dwarf.
5664 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
5665 (dwarf2out_early_finish): But do it here.
5667 2016-08-24 Michael Collison <michael.collison@linaro.org>
5668 Michael Collison <michael.collison@arm.com>
5670 * config/arm/arm-modes.def: Add new condition code mode CC_V
5671 to represent the overflow bit.
5672 * config/arm/arm.c (maybe_get_arm_condition_code):
5673 Add support for CC_Vmode.
5674 (arm_gen_unlikely_cbranch): New function to generate common
5675 rtl conditional branches for overflow patterns.
5676 * config/arm/arm-protos.h: Add prototype for
5677 arm_gen_unlikely_cbranch.
5678 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
5679 addsi3_compareV_upper): New patterns to support signed
5680 builtin overflow add operations.
5681 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
5682 New patterns to support unsigned builtin add overflow operations.
5683 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
5684 builtin overflow subtract operations,
5685 (usubv<mode>4): New patterns to support unsigned builtin subtract
5686 overflow operations.
5687 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
5688 to support builtin overflow negate operations.
5690 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5693 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5695 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5696 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5699 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5701 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
5702 MULTILIB_OPTIONS should be used. Small wording fixes.
5703 * genmultilib: Memorize set of all option combinations in
5704 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
5705 found in MULTILIB_OPTIONS by checking if option set is listed in
5706 combination_space. Output new and existing error message to stderr.
5708 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
5710 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
5711 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
5712 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
5713 (MULTILIB_REUSE): Remove reuse rules for option set including
5714 -mfpu=fp-armv8 and -mfpu=vfpv4
5716 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
5718 * config/arm/t-rtems: Add vfp multilib.
5720 2016-08-23 Ian Lance Taylor <iant@golang.org>
5722 * config/s390/s390.c (s390_asm_file_start): Call
5725 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
5727 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5728 initialization of all 0's to the 0 constant, instead of directly
5729 generating XOR. Add support for V4SImode vector initialization on
5730 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5731 initialization. Change variables used in V4SFmode vector
5732 intialization. For V4SFmode vector splat on ISA 3.0, make sure
5733 any memory addresses are in index form. Add support for using
5734 VSPLTH/VSPLTB to initialize vector short and vector char vectors
5735 with all of the same element.
5736 (regno_or_subregno): New helper function to return a register
5737 number for either REG or SUBREG.
5738 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5739 Use regno_or_subregno where possible.
5740 (rs6000_split_v4si_init_di_reg): New helper function to build up a
5741 DImode value from two SImode values in order to generate V4SImode
5742 vector initialization on 64-bit systems with direct move.
5743 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5745 (rtx_is_swappable_p): V4SImode vector initialization insn is not
5747 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5749 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5750 attributes to initialize V8HImode and V16QImode vectors with the
5752 (VSX_SPLAT_COUNT): Likewise.
5753 (VSX_SPLAT_SUFFIX): Likewise.
5754 (UNSPEC_VSX_VEC_INIT): New unspec.
5755 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5756 Allow SFmode values to come from Altivec registers.
5757 (vsx_init_v4si): New insn/split for V4SImode vector initialization
5758 on 64-bit systems with direct move.
5759 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5760 vector initializations, to allow V4SImode vector initializations
5761 on 64-bit systems with direct move.
5762 (vsx_splat_v4si): Likewise.
5763 (vsx_splat_v4si_di): Likewise.
5764 (vsx_splat_v4sf): Likewise.
5765 (vsx_splat_v4sf_internal): Likewise.
5766 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5768 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5769 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5770 initializing V8HImode and V16QImode vectors with the same
5772 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5773 optimization if -maltivec=be.
5775 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
5777 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5778 attribute for alternatives 3 and 4.
5780 2016-08-23 David Malcolm <dmalcolm@redhat.com>
5782 * selftest.c (selftest::assert_str_contains): New function.
5783 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5784 * selftest.h (selftest::assert_str_contains): New decl.
5785 (ASSERT_STR_CONTAINS): New macro.
5787 2016-08-23 Richard Biener <rguenther@suse.de>
5789 PR tree-optimization/77286
5790 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5792 (vect_transform_loop): Split exit edges of loop and scalar
5793 loop if required and at the appropriate time.
5795 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5797 * explow.c (get_dynamic_stack_size): Take known alignment of stack
5798 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5800 Correct a typo in a comment.
5802 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
5804 * config/s390/s390.md ("*andc_split"): New splitter for and with
5807 2016-08-23 Richard Biener <rguenther@suse.de>
5809 PR tree-optimization/27336
5810 * tree-vrp.c (infer_value_range): Handle stmts that can throw
5811 by looking for a non-EH edge.
5812 (process_assert_insertions_for): Likewise.
5814 2016-08-23 Richard Biener <rguenther@suse.de>
5817 * statistics.c (statistics_counter_event): Robustify against
5820 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5822 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5823 for targets amdfam10 and barcelona.
5825 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
5827 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5828 (zero_extend<mode>di2): Ditto.
5829 (*zero_extend<mode>si2): Ditto.
5830 (*zero_extendqihi2): Ditto.
5832 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5835 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5836 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5838 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
5840 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5841 identical consecutive elements.
5842 [SSA_NAME]: Print the name's def stmt on its own line. When printing
5843 the node's def stmt, avoid printing an unwanted trailing newline by
5844 replacing the call to print_gimple_stmt() with its inlined body and
5845 adjusting it to not set pp_needs_newline and to call pp_flush()
5846 instead of pp_newline_and_flush().
5848 2016-08-22 Joseph Myers <joseph@codesourcery.com>
5850 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5851 (float32_type_node, float64_type_node, float32x_type_node)
5852 (float128x_type_node): New macros.
5853 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5854 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5855 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5856 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5857 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5858 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5859 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5860 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5861 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5862 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5863 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5864 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5865 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5866 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5867 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5868 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5869 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5870 (copysign, fabs, huge_val, inf, nan, nans): Use it.
5871 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5873 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5874 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5875 * doc/extend.texi (Other Builtins): Document these built-in
5877 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5880 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
5882 * doc/install.texi (Binaries): www.opencsw.org now uses https.
5884 2016-08-22 Richard Biener <rguenther@suse.de>
5886 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5888 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
5891 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5892 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5893 non-SSE2 athlons only, otherwise prefer SSE prefetches.
5895 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5897 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5898 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5899 (vrp_visit_switch_stmt): Likewise.
5900 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5901 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5902 (vrp_visit_stmt): Use extract_range_from_stmt.
5903 (vrp_visit_phi_node): Use extract_range_from_phi_node.
5905 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5907 * Makefile.in: Add tree-vrp.h to GTFILES.
5908 * gengtype.c (open_base_files): Add tree-vrp.h.
5909 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5910 * builtins.c: Likewise.
5911 * fold-const.c: Likewise.
5912 * gimple-builder.c: Likewise.
5913 * gimple-laddress.c: Likewise.
5914 * hsa-gen.c: Likewise.
5915 * internal-fn.c: Likewise.
5917 * targhooks.c: Liewise,
5918 * tree-ssa-address.c: Likewise.
5919 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5920 * tree-vrp.c (struct value_range): Move to tree-vrp.h
5921 * tree-vrp.h: New file.
5923 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5925 PR tree-optimization/61839
5926 * tree-vrp.c (two_valued_val_range_p): New.
5927 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5928 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5929 Also Convert VAR BINOP CST where VAR is two-valued to
5930 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5932 2016-08-19 David Malcolm <dmalcolm@redhat.com>
5934 * diagnostic-show-locus.c
5935 (layout::annotation_line_showed_range_p): New method.
5936 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5937 Reimplement case fixit_hint::REPLACE to cover removals, and
5938 replacements where the range of the replacement isn't one
5939 of the ranges in the rich_location.
5940 (test_one_liner_fixit_replace): Likewise.
5941 (selftest::test_one_liner_fixit_replace_non_equal_range): New
5943 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
5945 (selftest::test_diagnostic_show_locus_one_liner): Call the new
5947 * diagnostic.c (print_parseable_fixits): Remove case
5950 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
5953 * config/i386/i386.c (ix86_option_override_internal): Remove
5954 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
5955 Enable SSE prefetch also for TARGET_PREFETCHWT1.
5956 Do not try to enable TARGET_PRFCHW ISA flag here.
5957 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
5958 Rewrite expander function body.
5959 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
5961 2016-08-19 Joseph Myers <joseph@codesourcery.com>
5964 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
5965 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
5966 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
5967 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
5968 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
5969 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
5970 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
5971 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
5972 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
5974 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
5976 (struct floatn_type_info): New structure type.
5977 (floatn_nx_types): New variable declaration.
5978 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
5979 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
5980 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
5981 * tree.c (floatn_nx_types): New variable.
5982 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
5983 corresponding complex types.
5984 * target.def (floatn_mode): New hook.
5985 * targhooks.c: Include "real.h".
5986 (default_floatn_mode): New function.
5987 * targhooks.h (default_floatn_mode): New prototype.
5988 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
5990 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
5991 effective-target and dg-add-options keywords.
5992 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
5993 Document new effective-target keywords.
5994 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
5995 * doc/tm.texi: Regenerate.
5996 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
5997 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
5998 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
6000 * real.h (struct real_format): Add field ieee_bits.
6001 * real.c (ieee_single_format, mips_single_format)
6002 (motorola_single_format, spu_single_format, ieee_double_format)
6003 (mips_double_format, motorola_double_format)
6004 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
6005 (ieee_extended_intel_128_format)
6006 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
6007 (mips_extended_format, ieee_quad_format, mips_quad_format)
6008 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
6009 (decimal_double_format, decimal_quad_format, ieee_half_format)
6010 (arm_half_format, real_internal_format: Initialize ieee_bits
6012 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
6013 float128_type_node. Set float80_type_node to float64x_type_node
6014 if appropriate and long_double_type_node not appropriate.
6015 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
6016 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
6017 Initialize ieee_bits field.
6018 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
6019 (rs6000_init_builtins): Set ieee128_float_type_node to
6021 (rs6000_floatn_mode): New function.
6023 2016-08-19 Jakub Jelinek <jakub@redhat.com>
6025 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
6026 _rdseed64_step): Uglify argument names and/or local variable names
6027 in inline functions.
6028 * config/i386/rtmintrin.h (_xabort): Likewise.
6029 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
6030 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
6031 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
6032 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
6033 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
6034 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
6035 _mm_maskz_ternarylogic_epi32): Likewise.
6036 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
6037 __lwpins32, __lwpins64): Likewise.
6038 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
6039 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
6040 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
6041 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
6042 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
6043 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
6044 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
6045 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
6046 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
6047 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
6048 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
6049 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
6050 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
6051 _mm256_mask_i64gather_epi32): Likewise.
6052 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6053 * config/i386/ia32intrin.h (__writeeflags): Likewise.
6054 * config/i386/pkuintrin.h (_wrpkru): Likewise.
6055 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
6056 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
6057 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
6058 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
6059 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
6060 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
6061 _mm512_mask_prefetch_i64scatter_ps): Likewise.
6062 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
6063 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
6064 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
6065 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
6066 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
6067 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
6068 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
6069 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
6071 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
6073 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
6074 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
6076 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
6077 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
6079 (_rdpkru_u32): Add space after function name.
6081 * config/i386/t-i386 (i386-c.o): Don't depend on
6082 i386-builtin-types.inc.
6083 (i386.o): Depend on i386-builtin-types.inc.
6085 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
6088 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
6089 Use const_vec_duplicate to check for duplicated elements.
6091 2016-08-19 Richard Biener <rguenther@suse.de>
6093 PR tree-optimization/77290
6094 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6095 Fix flag_tree_parallelize_loops check.
6097 2016-08-19 Richard Biener <rguenther@suse.de>
6099 * match.pd (x | 0 -> x): Add.
6101 2016-08-19 Richard Biener <rguenther@suse.de>
6103 PR tree-optimization/77286
6104 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6105 Deal with virtual PHIs being out-of-order.
6107 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6109 * doc/invoke.texi (fverbose-asm): Note that source code lines
6110 are emitted, and provide an example.
6111 * final.c (asm_show_source): New function.
6112 (final_scan_insn): Call asm_show_source.
6114 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6116 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
6117 param with diagnostic_kind.
6118 (class colorizer): Similarly replace field m_diagnostic with
6120 (colorizer::colorizer): Replace diagnostic
6121 param with diagnostic_kind.
6122 (colorizer::begin_state): Update for above field change.
6123 (layout::layout): Replace diagnostic param with rich_location *
6124 and diagnostic_kind.
6125 (diagnostic_show_locus): Replace diagnostic param with richloc
6126 and diagnostic_kind.
6127 (class selftest::test_diagnostic_context): New class.
6128 (selftest::test_diagnostic_show_locus_unknown_location): New
6130 (selftest::test_one_liner_simple_caret): New function.
6131 (selftest::test_one_liner_caret_and_range): New function.
6132 (selftest::test_one_liner_multiple_carets_and_ranges): New
6134 (selftest::test_one_liner_fixit_remove): New function.
6135 (selftest::test_one_liner_fixit_replace): New function.
6136 (selftest::test_diagnostic_show_locus_one_liner): New function.
6137 (selftest::diagnostic_show_locus_c_tests): Call the new test
6139 * diagnostic.c (diagnostic_initialize): Initialize
6140 colorize_source_p, show_ruler_p and parseable_fixits_p.
6141 (default_diagnostic_finalizer): Update for change to
6142 diagnostic_show_locus.
6143 (diagnostic_append_note): Likewise.
6144 * diagnostic.h (diagnostic_show_locus): Replace
6145 const diagnostic_info * param with location * and diagnostic_t.
6147 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6149 * input.c (saved_line_table): New global.
6150 (class selftest::temp_line_table): Rename to line_table_test and
6151 move declaration to selftest.h, and drop field m_old_line_table.
6152 (selftest::temp_line_table::temp_line_table): Rename ctor to...
6153 (selftest::line_table_test::line_table_test): ...this. Add a
6154 default ctor. Store current value of line_table within
6156 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
6157 (selftest::line_table_test::~line_table_test): ...this, and
6158 restore line_table from the saved_line_table, rather than
6160 (selftest::test_accessing_ordinary_linemaps): Update for above
6162 (selftest::test_lexer): Likewise.
6163 (struct selftest::lexer_test): Likewise.
6164 (selftest::lexer_test::lexer_test): Likewise.
6165 (selftest::input_c_tests): Move the looping over test cases from
6167 (selftest::for_each_line_table_case): New function.
6168 * input.h (saved_line_table): New decl.
6169 * selftest.h (struct selftest::line_table_case): New forward decl.
6170 (class selftest::line_table_test): New class, moved here from
6171 selftest::temp_line_table in input.c, and renamed.
6172 (selftest::for_each_line_table_case): New decl.
6174 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
6177 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
6179 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
6182 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
6183 enclosing parallel construct for reduction variables on OpenACC loop
6186 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
6188 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
6189 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
6191 (function_to_dwarf_procedure): Update comment.
6193 2016-08-18 David Malcolm <dmalcolm@redhat.com>
6195 * input.c (diagnostics_file_cache_forcibly_evict_file): New
6197 * input.h (diagnostics_file_cache_forcibly_evict_file): New
6199 * selftest.c (selftest::temp_source_file::~temp_source_file):
6200 Evict m_filename from the diagnostic file cache.
6202 2016-08-18 Richard Biener <rguenther@suse.de>
6204 * tree-pass.h (make_pass_materialize_all_clones): Declare.
6205 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
6206 make_pass_materialize_all_clones): New simple IPA pass encapsulating
6207 clone materialization.
6208 * passes.def (all_late_ipa_passes): Start with
6209 pass_materialize_all_clones.
6210 * cgraphunit.c (symbol_table::compile): Remove call to
6211 materialize_all_clones.
6212 * tree-into-ssa.c: Include statistics.h.
6213 (update_ssa): Count number of times we do incremental/rewrite
6216 2016-08-18 Richard Biener <rguenther@suse.de>
6218 PR tree-optimization/77282
6219 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6220 When doing auto-parallelizing also prevent use of PHIs that
6221 carry dependences across loop backedges.
6223 2016-08-18 Tamar Christina <tamar.christina@arm.com>
6224 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6226 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
6228 2016-08-18 Richard Biener <rguenther@suse.de>
6230 * ssa-iterators.h (ssa_vuse_operand): New inline.
6231 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
6232 (predicate_all_scalar_phis): Use remove_phi_node to remove
6233 phi nodes predicated. Delay removing virtual PHIs.
6234 (predicate_mem_writes): Update virtual operands.
6235 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
6236 (tree_if_conversion): Do not rewrite virtual SSA form.
6237 * tree-phinodes.c (release_phi_node): Make static.
6238 * tree-phinodes.h (release_phi_node): Remove.
6240 2016-08-18 Jakub Jelinek <jakub@redhat.com>
6242 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
6243 codes that appear in bdesc_* arrays, instead include i386-builtin.def
6244 twice to define those.
6245 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
6246 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
6247 bdesc_multi_arg): Define by including i386-builtin.def the third time.
6248 * config/i386/i386-builtin.def: New file.
6250 2016-08-17 David Malcolm <dmalcolm@redhat.com>
6252 * input.c (get_source_range_for_char): Rename to...
6253 (selftest::get_source_range_for_char): ...this, and move within
6254 the #if CHECKING_P guard.
6255 (get_num_source_ranges_for_substring): Rename to...
6256 (selftest::get_num_source_ranges_for_substring): ...this, move
6257 within the #if CHECKING_P guard, and make static.
6258 (selftest::assert_num_substring_ranges): Initialize
6261 2016-08-18 Alan Modra <amodra@gmail.com>
6263 PR rtl-optimization/72771
6264 * reload.c (find_reloads): Don't assume that a subreg mem is OK
6265 when find_reloads_toplev returns address_reloaded==-1.
6266 (alternative_allows_const_pool_ref): Update comment.
6268 2015-08-17 Alan Hayward <alan.hayward@arm.com>
6270 PR tree-optimization/71752
6271 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
6272 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
6274 2016-08-17 Jakub Jelinek <jakub@redhat.com>
6276 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
6277 instead of testing ECF_NORETURN bit in gimple_call_flags.
6278 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
6279 * predict.c (tree_bb_level_predictions): Likewise.
6280 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
6283 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
6284 turning a call into __builtin_unreachable-like noreturn call, adjust
6285 gimple_call_set_fntype.
6286 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
6287 gimple_call_fntype has void return type.
6289 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
6291 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
6292 maybe_lookup_decl, to handle nested acc loop directives.
6294 2016-08-17 Richard Biener <rguenther@suse.de>
6296 PR tree-optimization/76490
6297 * tree-vrp.c (update_value_range): Preserve overflow infinities
6298 when intersecting with ranges from get_range_info.
6299 (operand_less_p): Handle overflow infinities correctly.
6300 (value_range_constant_singleton): Use vrp_operand_equal_p
6301 to handle overflow max/min correctly.
6302 (vrp_valueize): Likewise.
6303 (union_ranges): Likewise.
6304 (intersect_ranges): Likewise.
6305 (vrp_visit_phi_node): Improve iteration limitation to only
6306 apply when we'll possibly re-visit the PHI via a changed argument
6309 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
6311 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
6312 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
6313 rather than those that should not be built.
6315 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
6318 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
6320 2016-08-17 Richard Biener <rguenther@suse.de>
6322 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
6323 (verify_vssa): New function verifying virtual SSA form.
6324 (verify_ssa): Call it.
6325 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
6326 Do not apply loop-closed SSA handling to virtuals.
6327 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
6328 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
6329 when rewriting their symbol.
6330 (prepare_def_site_for): Likewise.
6331 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
6332 operands of moved stmts.
6334 2016-08-17 Richard Biener <rguenther@suse.de>
6336 PR tree-optimization/23855
6337 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
6338 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
6339 find guards to hoist. Do not update SSA form but rewrite virtuals
6340 into loop closed SSA.
6341 (find_loop_guard): Adjust to skip already hoisted guards. Do
6342 not mark virtuals for renaming or update SSA form.
6344 2016-08-17 Martin Liska <mliska@suse.cz>
6346 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
6347 a LONG_LONG_TYPE_SIZE comparison.
6348 * gcov-io.h: Remove macro definitions.
6349 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
6350 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
6353 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6355 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
6356 that builtins not mentioned in bdesc_* arrays come first, then
6357 the ones mentioned in bdesc_* arrays in the order they appear in
6358 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
6359 IX86_BUILTIN__BDESC_*_LAST enumerator.
6360 (bdesc_mpx): Fix up a comment typo.
6361 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
6362 __builtin_ia32_vpcomneu[bwdq] builtins.
6363 (BDESC_VERIFY, BDESC_VERIFYS): Define.
6364 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
6365 enum ix86_builtins ordering.
6366 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
6367 for direct bdesc_* array member access instead of searching all the
6368 arrays until an fcode match is found.
6370 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
6372 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
6373 pattern as define_insn_and_split. Split insn before reload to
6375 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
6376 <shift_insn><mode>3_1.
6377 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
6378 <rotate_insn><mode>3_1.
6380 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6383 * input.c (get_source_range_for_substring): Rename to...
6384 (get_source_location_for_substring): ...this, adding param
6385 "caret_idx", and converting output param from source_range * to
6387 (get_source_range_for_char): New function.
6388 (get_num_source_ranges_for_substring): Update comment to reflect
6390 (assert_char_at_range): Update to use get_source_range_for_char
6391 rather than get_source_range_for_substring.
6392 (test_lexer_string_locations_concatenation_2): Likewise.
6393 * substring-locations.h (get_source_range_for_substring): Rename
6395 (get_source_location_for_substring): ...this, and adding param
6396 "caret_idx", and converting output param from source_range * to
6399 2016-08-16 David Malcolm <dmalcolm@redhat.com>
6401 * input.c (class selftest::temp_source_file): Move to
6403 (selftest::temp_source_file::temp_source_file): Move to
6405 (selftest::temp_source_file::~temp_source_file): Likewise.
6406 * selftest.c (selftest::temp_source_file::temp_source_file): Move
6408 (selftest::temp_source_file::~temp_source_file): Likewise.
6409 * selftest.h (class selftest::temp_source_file): Move here from
6412 2016-08-16 Jakub Jelinek <jakub@redhat.com>
6415 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
6416 inlining, add cgraph edge for the added __builtin_unreachable call.
6419 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
6420 only cast it to SHWI for the final comparison.
6422 2016-08-16 Martin Liska <mliska@suse.cz>
6424 PR gcov-profile/36412
6425 * doc/gcov.texi: Document --hash-filenames(-x).
6426 * gcov.c (print_usage): Add the option.
6427 (process_args): Process the option, sort options alphabetically.
6428 (md5sum_to_hex): New function.
6429 (make_gcov_file_name): Do the md5sum and append it to a
6432 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6434 PR tree-optimization/69848
6435 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
6436 and swtich operands to avoid additional NOT instruction.
6437 (vcond<v_cmp_mixed><mode>): Ditto.
6438 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6440 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
6442 * doc/install.texi (*-*-solaris2*): Adjust latest change.
6444 2016-08-16 Richard Biener <rguenther@suse.de>
6446 PR tree-optimization/76783
6447 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
6448 BB visited flags at start.
6450 2016-08-16 Bin Cheng <bin.cheng@arm.com>
6452 PR tree-optimization/72817
6453 PR tree-optimization/73450
6454 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
6455 multiple_of_p for adjusted IV.base.
6457 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
6460 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
6461 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
6462 for !flag_finite_math_only or flag_signed_zeros.
6463 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
6464 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
6465 depend on flag_finite_math_only.
6466 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
6468 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
6469 (*ieee_smin<mode>3): Ditto.
6470 (*ieee_smax<mode>3): Ditto.
6471 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
6472 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
6474 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
6475 depend on flag_finite_math_only.
6476 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
6477 (*mmx_<code>v2sf3): Remove.
6478 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
6479 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
6480 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
6482 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
6484 PR rtl-optimization/73650
6485 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
6486 it is not a simple move.
6488 2016-08-15 Martin Liska <mliska@suse.cz>
6491 * gcc.c (do_spec_1): Call save_string with the right size.
6492 (save_string): Do an assert about string we copy.
6494 2016-08-15 Richard Biener <rguenther@suse.de>
6496 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
6497 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
6499 (pass_data_stv): Likewise.
6501 2016-08-15 Richard Biener <rguenther@suse.de>
6503 PR tree-optimization/73434
6504 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
6505 TBAA info on the base when forwarding a non-invariant address.
6507 2016-08-15 Jakub Jelinek <jakub@redhat.com>
6509 * dwarf2out.c (struct checksum_attributes): Add
6510 at_string_length_bit_size and at_string_length_byte_size fields.
6511 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
6512 and DW_AT_string_length_byte_size.
6513 (die_checksum_ordered): Handle at_string_length_bit_size and
6514 at_string_length_byte_size.
6515 (gen_array_type_die): For dwarf_version >= 5 emit
6516 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6517 (adjust_string_types): For dwarf_version >= 5 remove
6518 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6519 (resolve_addr): Likewise.
6522 * dwarf2out.c (string_types): New variable.
6523 (gen_array_type_die): Change early_dwarf handling of
6524 DW_AT_string_length, create DW_OP_call4 referencing the
6525 length var temporarily. Handle parameters that are pointers
6527 (adjust_string_types): New function.
6528 (gen_subprogram_die): Temporarily set string_types to local var,
6529 call adjust_string_types if needed.
6530 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
6532 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
6534 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
6536 * doc/install.texi (*-*-solaris2*): Fix version number and document
6537 requirement on GNU make for building libjava with the Solaris linker.
6539 2016-08-15 Martin Liska <mliska@suse.cz>
6540 Jakub Jelinek <jakub@redhat.com>
6542 PR tree-optimization/72824
6543 * tree-loop-distribution.c (const_with_all_bytes_same)
6544 <case VECTOR_CST>: Fix a typo.
6546 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
6549 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
6550 Renamed from _mm512_undefined_si512.
6551 (_mm_undefined_si512): New definition.
6553 2016-08-13 Richard Biener <rguenther@suse.de>
6555 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
6556 into PHIs and update the lattice for its def.
6558 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6561 * ubsan.c (instrument_si_overflow): Pass true instead of false
6563 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
6564 of bbs. Return TODO_cleanup_cfg if any returned true.
6566 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6568 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
6569 ISA 3.0 MTVSRDD instruction.
6570 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
6573 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
6575 PR tree-optimization/71083
6576 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
6577 bitfield access when possible.
6579 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
6582 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
6583 sign-changing cast from a shorter unsigned type to a wider
6586 2016-08-12 Jakub Jelinek <jakub@redhat.com>
6588 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
6589 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
6590 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
6592 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6594 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6595 Correct costs for vec_construct.
6597 2016-08-12 Bin Cheng <bin.cheng@arm.com>
6599 PR tree-optimization/69848
6600 * tree-vectorizer.h (enum vect_def_type): New condition reduction
6601 type CONST_COND_REDUCTION.
6602 * tree-vect-loop.c (vectorizable_reduction): Support new condition
6603 reudction type CONST_COND_REDUCTION.
6605 2016-08-12 Richard Biener <rguenther@suse.de>
6607 PR tree-optimization/57326
6608 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
6609 returning an SSA name.
6610 (phi_translate_1): When fully_constant_expression returns a NAME
6611 make sure we have a leader for it.
6613 2016-08-12 Martin Liska <mliska@suse.cz>
6614 Adam Fineman <afineman@afineman.com>
6616 * gcov.c (process_file): Create .gcov file when .gcda
6619 2016-08-12 Marek Polacek <polacek@redhat.com>
6622 * alias.c (find_base_value): Adjust fall through comment.
6623 * cfgexpand.c (expand_debug_expr): Likewise.
6624 * combine.c (find_split_point): Likewise.
6625 (expand_compound_operation): Likewise. Add FALLTHRU.
6626 (make_compound_operation): Adjust fall through comment.
6627 (canon_reg_for_combine): Add FALLTHRU.
6628 (force_to_mode): Adjust fall through comment.
6629 (simplify_shift_const_1): Likewise.
6630 (simplify_comparison): Likewise.
6631 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
6633 * config/aarch64/predicates.md: Likewise.
6634 * config/i386/i386.c (function_arg_advance_32): Likewise.
6635 (ix86_gimplify_va_arg): Likewise.
6636 (print_reg): Likewise.
6637 (ix86_print_operand): Likewise.
6638 (ix86_build_const_vector): Likewise.
6639 (ix86_expand_branch): Likewise.
6640 (ix86_sched_init_global): Adjust fall through comment.
6641 (ix86_expand_args_builtin): Add FALLTHRU.
6642 (ix86_expand_builtin): Likewise.
6643 (ix86_expand_vector_init_one_var): Likewise.
6644 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6645 (rs6000_adjust_cost): Likewise.
6646 (insn_must_be_first_in_group): Likewise.
6647 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
6648 * dbxout.c (dbxout_symbol): Adjust fall through comment.
6649 * df-scan.c (df_uses_record): Likewise.
6650 * dojump.c (do_jump): Add FALLTHRU.
6651 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
6653 (resolve_args_picking_1): Adjust fall through comment.
6654 (loc_list_from_tree_1): Likewise.
6655 * expmed.c (make_tree): Likewise.
6656 * expr.c (expand_expr_real_2): Add FALLTHRU.
6657 (expand_expr_real_1): Likewise. Adjust fall through comment.
6658 * fold-const.c (const_binop): Adjust fall through comment.
6659 (fold_truth_not_expr): Likewise.
6660 (fold_cond_expr_with_comparison): Add FALLTHRU.
6661 (fold_binary_loc): Likewise.
6662 (contains_label_1): Adjust fall through comment.
6663 (multiple_of_p): Likewise.
6664 * gcov-tool.c (process_args): Add FALLTHRU.
6665 * genattrtab.c (check_attr_test): Likewise.
6666 (write_test_expr): Likewise.
6667 * genconfig.c (walk_insn_part): Likewise.
6668 * genpreds.c (validate_exp): Adjust fall through comment.
6669 (needs_variable): Likewise.
6670 * gensupport.c (get_alternatives_number): Add FALLTHRU.
6671 (subst_dup): Likewise.
6672 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
6673 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
6674 (gimplify_scan_omp_clauses): Add FALLTHRU.
6675 (goa_stabilize_expr): Likewise.
6676 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
6678 * hsa-gen.c (get_address_from_value): Likewise.
6679 * ipa-icf.c (sem_function::hash_stmt): Likewise.
6680 * ira.c (ira_setup_alts): Add FALLTHRU.
6681 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
6683 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
6684 * opts.c (common_handle_option): Likewise.
6685 * read-rtl.c (read_rtx_code): Likewise.
6686 * real.c (round_for_format): Likewise.
6687 * recog.c (asm_operand_ok): Likewise.
6688 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
6689 * reload1.c (set_label_offsets): Likewise.
6690 (eliminate_regs_1): Likewise.
6691 (reload_reg_reaches_end_p): Likewise.
6692 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
6693 (rtx_cost): Likewise.
6694 * sched-rgn.c (is_exception_free): Likewise.
6695 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
6696 * stor-layout.c (int_mode_for_mode): Likewise.
6697 * toplev.c (print_to_asm_out_file): Likewise.
6698 (print_to_stderr): Likewise.
6699 * tree-cfg.c (gimple_verify_flow_info): Likewise.
6700 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
6701 (chrec_fold_multiply): Likewise.
6702 (evolution_function_is_invariant_rec_p): Likewise.
6703 (for_each_scev_op): Likewise.
6704 * tree-data-ref.c (siv_subscript_p): Likewise.
6705 (get_references_in_stmt): Likewise.
6706 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
6707 (substitute_in_expr): Likewise.
6708 (type_cache_hasher::equal): Likewise.
6709 (walk_type_fields): Likewise.
6710 * var-tracking.c (adjust_mems): Add FALLTHRU.
6711 (set_dv_changed): Adjust fall through comment.
6712 * varasm.c (default_function_section): Add FALLTHRU.
6714 2016-08-12 Marek Polacek <polacek@redhat.com>
6717 * tree-complex.c (expand_complex_division): Add missing break.
6719 2016-08-12 Richard Biener <rguenther@suse.de>
6721 * passes.c (execute_todo): Do not push/pop TV_TODO.
6722 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6723 (execute_one_pass): Likewise.
6724 * common.opt (ftime-report-details): New switch.
6725 * doc/invoke.texi (ftime-report-details): Document.
6726 * timevar.h (timer::print_row): Adjust signature.
6727 (timer::all_zero): New static helper.
6728 (timer::child_map_t): New typedef.
6729 (timer::time_var_def): Add children field.
6730 * timevar.c (timer::named_items::print): Adjust.
6731 (timer::~timer): Free timevar recorded children.
6732 (timer::pop_internal): When -ftime-report-details record
6733 time spent in sub-timevars.
6734 (timer::print_row): Adjust.
6735 (timer::print): Print sub-timevar stats, use all_zero.
6736 * timevar.def (TV_TODO): Remove.
6738 2016-08-12 Richard Biener <rguenther@suse.de>
6740 PR tree-optimization/72851
6741 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
6742 worklists to use bitmaps indexed in execution order.
6743 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6744 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6745 (cfg_blocks): Make a bitmap.
6746 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6748 (cfg_blocks_empty_p): Adjust.
6749 (cfg_blocks_add): Likewise.
6750 (cfg_blocks_get): Likewise.
6751 (add_ssa_edge): Likewise.
6752 (add_control_edge): Likewise.
6753 (simulate_stmt): Likewise.
6754 (process_ssa_edge_worklist): Likewise.
6755 (simulate_block): Likewise.
6756 (ssa_prop_init): Compute PRE order and stmt UIDs.
6757 (ssa_prop_fini): Adjust.
6758 (ssa_propagate): Adjust.
6760 2016-08-12 Richard Biener <rguenther@suse.de>
6762 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6763 the currently executable edges have fixed ranges. Always
6764 go through update_value_range.
6766 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
6770 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6771 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6772 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6773 (LANG_HOOKS_DECLS): Add it.
6774 * langhooks.h (struct lang_hooks_for_decls): Add
6775 function_decl_defaulted. Const_tree-ify
6776 function_decl_explicit_p and function_decl_deleted_p.
6777 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6778 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6779 also at strict DWARF v5.
6782 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6783 TYPE_QUAL_CONST in reference-typed decls.
6786 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6787 in DW_OP_pieces, just enough to handle pointers to member
6789 (gen_remaining_tmpl_value_param_die_attribute): Use a location
6790 expression on DWARFv5 if a constant value doesn't work.
6792 2016-08-11 David Malcolm <dmalcolm@redhat.com>
6794 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6795 * selftest.c (selftest::test_assertions): New function.
6796 (selftest::selftest_c_tests): New function.
6797 * selftest.h (selftest::selftest_c_tests): New declaration.
6799 2016-08-11 Richard Biener <rguenther@suse.de>
6800 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6802 PR rtl-optimization/72855
6803 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6805 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6808 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6809 (vsx_store_<mode>): Likewise.
6811 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6813 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6814 TImode CONST_WIDE_INT store.
6815 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6817 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
6819 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6820 mode if unaligned SSE load and store are optimal.
6822 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6824 PR tree-optimization/71083
6825 * tree-predcom.c (ref_at_iteration): Correctly align the
6828 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6830 * config/s390/s390-builtin-types.def: Add INT128 types.
6831 * config/s390/s390-builtins.def: Add INT128 variants for the add
6832 sub low-level builtins dealing with TImode.
6833 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6834 via subreg when expanding a builtin.
6835 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6836 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6838 * config/s390/vecintrin.h: Adjust builtin names accordingly.
6839 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6840 ("vec_addc<mode>", "vec_addc_u128"): Merge to
6841 "vacc<bhfgq>_<mode>".
6842 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6843 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6844 ("vec_subc<mode>", "vec_subc_u128"): Merge to
6845 "vscbi<bhfgq>_<mode>".
6846 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6847 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6849 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6851 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6853 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6855 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6857 (vcond<v_cmp_mixed><mode>): Ditto.
6858 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6860 2016-08-11 Bin Cheng <bin.cheng@arm.com>
6862 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6863 variable explicitly, also assert on it before use.
6865 2016-08-11 Richard Biener <rguenther@suse.de>
6867 PR tree-optimization/72772
6868 * cfgloopmanip.c (create_preheader): Use split_edge if there
6869 is a single loop entry, avoiding degenerate PHIs.
6871 2016-08-11 Richard Biener <rguenther@suse.de>
6873 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6874 unconditional TODO_cleanup_cfg.
6875 (pass_thread_jumps::execute): Initialize loops, perform a CFG
6876 cleanup only if we threaded a jump.
6878 2016-08-11 Alan Modra <amodra@gmail.com>
6881 * lra-constraints.c (simplify_operand_subreg): Allow subreg
6882 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6883 slow. Emit two reloads for slow mem case, first loading in
6884 fast innermode, then converting to required mode.
6886 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
6888 * config/rs6000/altivec.h (vec_extract_exp): New macro.
6889 (vec_extract_sig): New macro.
6890 (vec_insert_exp): New macro.
6891 (vec_test_data_class): New macro.
6892 (scalar_extract_exp): New macro.
6893 (scalar_extract_sig): New macro.
6894 (scalar_insert_exp): New macro.
6895 (scalar_test_data_class): New macro.
6896 (scalar_test_neg): New macro.
6897 (scalar_cmp_exp_gt): New macro.
6898 (scalar_cmp_exp_lt): New macro.
6899 (scalar_cmp_exp_eq): New macro.
6900 (scalar_cmp_exp_unordered): New macro.
6901 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6902 to enforce constraint that operand is a 7-bit unsigned literal.
6903 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6904 for power9 built-ins.
6905 (BU_P9V_VSX_2): Likewise.
6906 (BU_P9V_64BIT_VSX_2): Likewise.
6907 (VSEEDP): Add scalar extract exponent support.
6908 (VSEESP): Add scalar extract signature support.
6909 (VSTDCNDP): Add scalar test negative support.
6910 (VSTDCNSP): Likewise.
6911 (VSIEDP): Add scalar insert exponent support.
6912 (VSCEDPGT): Add scalar compare exponent greater than support.
6913 (VSCEDPLT): Add scalar compare exponent less than support.
6914 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6915 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6916 (VSTDCDP): Add scalar test data class support.
6917 (VSTDCSP): Likewise.
6918 (VSEEDP): Add overload support for scalar extract exponent
6920 (VSESDP): Add overload support for scalar extract signature
6922 (VSTDCN): Add overload support for scalar test negative
6924 (VSTDCNDP): Add overload support for scalar test negative
6926 (VSTDCNSP): Add overload support for scalar test negative
6928 (VSIEDP): Add overload support for scalar insert exponent
6930 (VSTDC): Add overload support for scalar test data class
6932 (VSTDCDP): Add overload support for scalar test data class
6934 (VSTDCSP): Add overload support for scalar test data class
6936 (VSCEDPGT): Add overload support for scalar compare exponent
6937 greater than operation.
6938 (VSCEDPLT): Add overload support for scalar compare exponent
6939 less than operation.
6940 (VSCEDPEQ): Add overload support for scalar compare exponent
6941 test-for-equality operation.
6942 (VSCEDPUO): Add overload support for scalar compare exponent
6943 test-for-unordered operation.
6944 (VEEDP): Add vector extract exponent support.
6946 (VESDP): Add vector extract significand support.
6948 (VIEDP): Add vector insert exponent support.
6950 (VTDCDP): Add vector test data class support.
6952 (VES): Add overload support for vector extract significand operation.
6955 (VEE): Add overload support for vector extract exponent operation.
6958 (VTDC): Add overload support for vector test data class operation.
6961 (VIE): Add overload support for vector insert exponent operation.
6964 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6965 overloaded binary floating point functions.
6966 (altivec_resolve_overloaded_builtin): Improve error messages to
6967 distinguish between functions not supported in the current
6968 compiler configuration and functions that were invoked with an
6969 invalid parameter combination, and include the built-in function
6970 name in both error messages.
6971 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
6973 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
6975 (rs6000_expand_binop_builtin): Add check to enforce that argument
6976 2 of the test data class operations is a 7-bit unsigned literal.
6977 (rs6000_invalid_builtin): Add code to issue an error message if a
6978 built-in function that requires the power9_vector and -m32
6979 command-line options is compiled without these options.
6980 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
6981 (UNSPEC_VSX_SXSIGDP): New value.
6982 (UNSPEC_VSX_SXSIGPDP): New value.
6983 (UNSPEC_VSX_SIEXPDP): New value.
6984 (UNSPEC_VSX_SCMPEXPDP): New value.
6985 (UNSPEC_VSX_STSTDC): New value.
6986 (UNSPEC_VSX_VXEXP): New value.
6987 (UNSPEC_VSX_VXSIG): New value.
6988 (UNSPEC_VSX_VIEXP): New value.
6989 (UNSPEC_VSX_VTSTDC): New value.
6990 (xsxexpdp): New insn for scalar extract exponent.
6991 (xsxsigdp): New insn for scalar extract significand.
6992 (xsiexpdp): New insn for scalar insert exponent.
6993 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
6994 (*xscmpexpdp): New insn for scalar compare exponents.
6995 (xststdc<Fvsx): New expansion for both single- and
6996 double-precision scalar test data class operations.
6997 (xststdcneg<Fvsx>): New expansion for both single- and
6998 double-precision scalar test for negative value operations.
6999 (*xststdc<Fvsx>): New insn for scalar test data class
7001 (xvxexp<VSs>): New insn for single- and double-precision
7002 vector extract exponent operation.
7003 (xvxsig<VSs>): New insn for single- and double-precision
7004 vector extract significand operation.
7005 (xviexp<VSs>): New insn for single- and double-precision
7006 vector insert exponent operation.
7007 (xvtstdc<VSs>): New insn for single- and double-precision
7008 vector test data class operation.
7009 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7010 built-in functions to represent the Power9 binary floating-point
7011 support instructions.
7013 2016-08-10 bin cheng <bin.cheng@arm.com>
7015 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
7017 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7018 Renlin Li <renlin.li@arm.com>
7019 Bin Cheng <bin.cheng@arm.com>
7021 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
7022 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
7023 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
7024 (aarch64_vcond_internal<mode><mode>): Delete pattern.
7025 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
7026 (vcond<v_cmp_result><mode>): Ditto.
7027 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
7028 (vcondu<mode><mode>): Ditto.
7029 (vcond<v_cmp_mixed><mode>): New pattern.
7030 (vcondu<mode><v_cmp_mixed>): New pattern.
7031 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
7032 of aarch64_vcond_internal.
7034 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
7035 Renlin Li <renlin.li@arm.com>
7036 Bin Cheng <bin.cheng@arm.com>
7038 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
7039 (vec_cmp<mode><v_cmp_result>): New pattern.
7040 (vec_cmpu<mode><mode>): New pattern.
7041 (vcond_mask_<mode><v_cmp_result>): New pattern.
7043 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
7045 PR tree-optimization/71734
7046 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
7047 REF_LOOP, invoke ref_indep_loop_p_1.
7048 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
7049 to ref_indep_loop_p.
7050 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
7051 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
7052 is inside LOOP, do not cache dpendence value for loops with
7054 (ref_indep_loop_p_2): Delete function.
7055 (can_sm_ref_p): Pass LOOP as additional argument to
7058 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7061 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
7062 being an offsettable address.
7064 2016-08-10 Martin Liska <mliska@suse.cz>
7066 PR gcov-profile/58306
7067 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
7068 atomic variants of profile update functions.
7070 2016-08-10 Martin Liska <mliska@suse.cz>
7072 Cherry picked (and modified) from google-4_7 branch
7073 2012-12-26 Rong Xu <xur@google.com>
7074 * common.opt (fprofile-update): Add new flag.
7075 * coretypes.h: Define enum profile_update.
7076 * doc/invoke.texi: Document -fprofile-update.
7077 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
7078 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
7079 * tree-profile.c (gimple_init_edge_profiler): Generate
7080 also atomic profiler update.
7081 (gimple_gen_edge_profiler): Likewise.
7083 2016-08-10 David Malcolm <dmalcolm@redhat.com>
7085 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
7086 stack_usage_file to NULL after fclose calls.
7088 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7091 * reload.c (push_reload): Compute subreg_in_class for
7092 subregs of constants and plus expressions. Remove special
7093 handling of SYMBOL_REFs.
7095 2016-08-10 Alan Modra <amodra@gmail.com>
7098 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
7099 SImode for TARGET_E500_DOUBLE when given SImode.
7101 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
7103 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
7104 unused variable __O.
7106 2016-08-09 Martin Liska <mliska@suse.cz>
7108 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
7109 _gcov_reset to __gcov_reset.
7110 * doc/gcov-tool.texi: Fix typo.
7112 2016-08-09 Martin Liska <mliska@suse.cz>
7114 * value-prof.c (gimple_divmod_values_to_profile): Do not
7115 instrument MOD histogram if a value is not a SSA name.
7117 2016-08-09 Martin Liska <mliska@suse.cz>
7119 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
7122 2016-08-09 Renlin Li <renlin.li@arm.com>
7125 * calls.c (prepare_call_address): Convert funexp to Pmode when
7127 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
7128 (sibcall_value): Likewise.
7130 2016-08-09 Marek Polacek <polacek@redhat.com>
7133 * cselib.c (cselib_expand_value_rtx_1): Add return.
7134 * gengtype.c (dbgprint_count_type_at): Likewise.
7135 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
7136 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
7138 2016-08-09 Martin Jambor <mjambor@suse.cz>
7141 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
7142 if instance is a MEM_REF.
7144 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
7147 * config/i386/i386.md (*movtf_internal): Use
7148 lra_in_progress || reload_completed instead of !can_create_pseudo_p
7149 in the insn constraint.
7150 (*movxf_internal): Ditto.
7151 (*movdf_internal): Ditto.
7152 (*movsf_internal): Ditto.
7154 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7156 PR tree-optimization/72772
7157 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
7160 2016-08-09 Bin Cheng <bin.cheng@arm.com>
7162 PR tree-optimization/72772
7163 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
7165 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
7166 parameter STOP and update calls. Move expand_simple_operations
7167 function call from here...
7168 (simplify_using_initial_conditions): ...to here. Delete parameter
7170 (tree_simplify_using_condition): Delete parameter STOP.
7171 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
7172 simplify_using_initial_conditions.
7174 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
7177 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
7178 Use create_tmp_var_raw instead of create_tmp_var.
7180 2016-08-09 Richard Biener <rguenther@suse.de>
7182 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
7183 Treat same SSA names related.
7185 2016-08-09 Jakub Jelinek <jakub@redhat.com>
7187 PR tree-optimization/72824
7188 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
7189 real_zerop is not negative.
7191 2016-08-09 Richard Biener <rguenther@suse.de>
7193 PR tree-optimization/71802
7194 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
7195 all merge opportunities with the predecessor.
7197 2016-08-09 Richard Biener <rguenther@suse.de>
7200 * ipa-prop.c (ipa_modify_formal_parameters): Build
7201 parameter types with natural alignment also for the
7204 2016-08-08 Andi Kleen <ak@linux.intel.com>
7206 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
7208 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7211 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
7212 do-nothing langhook.
7213 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
7214 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
7215 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
7216 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
7218 2016-08-08 David Malcolm <dmalcolm@redhat.com>
7221 * input.c: Ensure that HAVE_ICONV is defined.
7223 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7226 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
7227 private vars for lastprivate and for linear iterator.
7230 * omp-simd-clone.c: Include varasm.h.
7231 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
7232 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
7233 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
7234 update function name.
7236 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7238 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
7239 (avr_diagnose_devicespecs_error): Remove.
7240 (avr_devicespecs_file): Remove composing absolute path for specfile
7241 and its verbose info. Remove conditions to check specs-file,
7243 2016-08-08 Jakub Jelinek <jakub@redhat.com>
7245 PR rtl-optimization/72821
7246 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
7247 just return false for them.
7249 2016-08-08 Alan Modra <amodra@gmail.com>
7252 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
7253 toc refs created during reload. Update function comment.
7255 2016-08-08 Alan Modra <amodra@gmail.com>
7258 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
7259 alternatives. Put loads first, then stores, and reg/reg moves
7260 within same class later. Delete attr length.
7262 2016-08-08 Alan Modra <amodra@gmail.com>
7265 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
7266 (mem_operand_ds_form): New predicate.
7267 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
7268 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
7269 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
7270 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
7271 (extendsfdf2_fpr): Replace o constraint with wY.
7273 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
7275 * tree-ssa-threadbackward.c: Include tree-inline.h
7276 (profitable_jump_thread_path): Use estimate_num_insns to estimate
7277 size of copied block; for cold paths reduce duplication.
7278 (find_jump_threads_backwards): Remove redundant tests.
7279 (pass_thread_jumps::gate): Enable for -Os.
7281 2016-08-07 Jakub Jelinek <jakub@redhat.com>
7284 * stor-layout.c (layout_decl): Fix up formatting.
7285 (relayout_decl): Allow DECL to be FIELD_DECL.
7287 2016-08-07 Alan Modra <amodra@gmail.com>
7289 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
7291 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7293 * data-streamer-in.c (streamer_read_wide_int): New.
7294 (streamer_read_widest_int): Renamed function.
7295 * data-streamer-out.c (streamer_write_wide_int): New
7296 (streamer_write_widest_int): Renamed function.
7297 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
7299 (input_cfg): Call renamed function.
7300 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
7302 (output_cfg): Call renamed function.
7303 * data-streamer.h: Add declarations.
7305 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7307 * tree-ssa-ccp.c (extend_mask): New param sgn.
7308 Remove ORing with wi::mask.
7309 (get_default_value): Adjust call to extend_mask to pass sign.
7310 (evaluate_stmt): Likewise.
7312 2016-08-06 Jakub Jelinek <jakub@redhat.com>
7314 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
7317 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7319 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
7320 transform if operand's type is pointer to function or method.
7322 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7324 PR tree-optimization/18046
7325 * tree-ssa-threadedge.c: Include cfganal.h.
7326 (simplify_control_statement_condition): If simplifying a
7327 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
7328 with the dominating ASSERT_EXPR before handing it off to VRP.
7329 Mention that a CASE_LABEL_EXPR may be returned.
7330 (thread_around_empty_blocks): Adjust to handle
7331 simplify_control_statement_condition() returning a
7333 (thread_through_normal_block): Likewise.
7334 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
7335 a switch statement by trying to determine which case label
7338 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
7340 PR rtl-optimization/69847
7341 * lra-constraints.c (process_invariant_for_inheritance): Save
7342 pattern instead of src.
7343 (remove_inheritance_pseudos): Use the pattern. Add assert.
7345 2016-08-05 David Malcolm <dmalcolm@redhat.com>
7347 * input.c (string_concat::string_concat): New constructor.
7348 (string_concat_db::string_concat_db): New constructor.
7349 (string_concat_db::record_string_concatenation): New method.
7350 (string_concat_db::get_string_concatenation): New method.
7351 (string_concat_db::get_key_loc): New method.
7352 (class auto_cpp_string_vec): New class.
7353 (get_substring_ranges_for_loc): New function.
7354 (get_source_range_for_substring): New function.
7355 (get_num_source_ranges_for_substring): New function.
7356 (class selftest::lexer_test_options): New class.
7357 (struct selftest::lexer_test): New struct.
7358 (class selftest::ebcdic_execution_charset): New class.
7359 (selftest::ebcdic_execution_charset::s_singleton): New variable.
7360 (selftest::lexer_test::lexer_test): New constructor.
7361 (selftest::lexer_test::~lexer_test): New destructor.
7362 (selftest::lexer_test::get_token): New method.
7363 (selftest::assert_char_at_range): New function.
7364 (ASSERT_CHAR_AT_RANGE): New macro.
7365 (selftest::assert_num_substring_ranges): New function.
7366 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
7367 (selftest::assert_has_no_substring_ranges): New function.
7368 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
7369 (selftest::test_lexer_string_locations_simple): New function.
7370 (selftest::test_lexer_string_locations_ebcdic): New function.
7371 (selftest::test_lexer_string_locations_hex): New function.
7372 (selftest::test_lexer_string_locations_oct): New function.
7373 (selftest::test_lexer_string_locations_letter_escape_1): New function.
7374 (selftest::test_lexer_string_locations_letter_escape_2): New function.
7375 (selftest::test_lexer_string_locations_ucn4): New function.
7376 (selftest::test_lexer_string_locations_ucn8): New function.
7377 (selftest::uint32_from_big_endian): New function.
7378 (selftest::test_lexer_string_locations_wide_string): New function.
7379 (selftest::uint16_from_big_endian): New function.
7380 (selftest::test_lexer_string_locations_string16): New function.
7381 (selftest::test_lexer_string_locations_string32): New function.
7382 (selftest::test_lexer_string_locations_u8): New function.
7383 (selftest::test_lexer_string_locations_utf8_source): New function.
7384 (selftest::test_lexer_string_locations_concatenation_1): New
7386 (selftest::test_lexer_string_locations_concatenation_2): New
7388 (selftest::test_lexer_string_locations_concatenation_3): New
7390 (selftest::test_lexer_string_locations_macro): New function.
7391 (selftest::test_lexer_string_locations_stringified_macro_argument):
7393 (selftest::test_lexer_string_locations_non_string): New function.
7394 (selftest::test_lexer_string_locations_long_line): New function.
7395 (selftest::test_lexer_char_constants): New function.
7396 (selftest::input_c_tests): Call the new test functions once per
7397 case within the line_table test matrix.
7398 * input.h (struct string_concat): New struct.
7399 (struct location_hash): New struct.
7400 (class string_concat_db): New class.
7401 * substring-locations.h: New header.
7403 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
7405 PR tree-optimization/72810
7406 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
7407 the type of the case labels when truncating.
7409 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7412 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
7413 (aarch64_fp16_ptr_type_node): Likewise.
7414 * config/aarch64/aarch64-simd-builtins.c
7415 (aarch64_fp16_ptr_type_node): Define.
7416 (aarch64_init_fp16_types): New, refactored out of...
7417 (aarch64_init_builtins): ...here, update to call
7418 aarch64_init_fp16_types.
7419 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
7421 (aapcs_vfp_sub_candidate): Likewise.
7423 2016-08-05 Martin Liska <mliska@suse.cz>
7424 Joshua Cranmer <Pidgeot18@gmail.com>
7426 * gcov.c (line_t::has_block): New function.
7427 (enum loop_type): New enum.
7428 (handle_cycle): New function.
7429 (unblock): Likewise.
7430 (circuit): Likewise.
7431 (get_cycles_count): Likewise.
7432 (accumulate_line_counts): Use new loop detection algorithm.
7434 2016-08-05 Martin Liska <mliska@suse.cz>
7436 * gcov.c (output_intermediate_file): Rename
7437 function_info::line_next to next_file_fn.
7438 (process_file): Likewise.
7439 (read_graph_file): Likewise.
7440 (accumulate_line_counts): Likewise.
7441 (output_lines): Likewise.
7443 2016-08-05 Richard Biener <rguenther@suse.de>
7445 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
7446 restriction on threading to a loop header.
7448 2016-08-05 Richard Biener <rguenther@suse.de>
7450 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
7451 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
7452 adjust loop info accordingly.
7454 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
7456 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
7457 before folding call to __builtin_constant_p with parameters to false.
7459 2016-08-05 Alan Modra <amodra@gmail.com>
7461 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
7462 code accidentally committed 2016-05-02 providing class when given
7465 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7467 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
7468 the case label ranges that partially overlap with OP's value
7471 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
7474 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
7475 Cast builtin function result to __mmask16 instead of __mmask8.
7476 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7477 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
7478 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
7480 2016-08-04 David Malcolm <dmalcolm@redhat.com>
7482 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
7483 (ASSERT_TRUE_AT): New macro.
7484 (ASSERT_FALSE): Reimplement in terms of...
7485 (ASSERT_FALSE_AT): New macro.
7486 (ASSERT_STREQ_AT): Fix typo in comment.
7488 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
7490 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
7491 labels are exhaustive, designate the label with the widest
7492 range to be the default label.
7494 2016-08-04 Andrew Pinski <apinski@cavium.com>
7496 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
7497 (thunderx_tunings): Use thunderx_vector_cost instead of
7498 generic_vector_cost.
7500 2016-08-04 Martin Liska <mliska@suse.cz>
7502 * gcov.c (main): Fix GNU coding style.
7503 (output_intermediate_file): Likewise.
7504 (process_file): Likewise.
7505 (generate_results): Likewise.
7506 (release_structures): Likewise.
7507 (create_file_names): Likewise.
7508 (find_source): Likewise.
7509 (read_graph_file): Likewise.
7510 (find_exception_blocks): Likewise.
7511 (canonicalize_name): Likewise.
7512 (make_gcov_file_name): Likewise.
7513 (mangle_name): Likewise.
7514 (accumulate_line_counts): Likewise.
7515 (output_branch_count): Likewise.
7516 (read_line): Likewise.
7518 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7520 PR rtl-optimization/71779
7521 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
7522 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
7523 or if it was truncated.
7525 PR rtl-optimization/70903
7526 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
7528 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7530 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
7531 accessing SSA_NAME_PTR_INFO.
7533 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7536 * common/config/avr/avr-common.c (avr_option_optimization_table)
7537 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
7539 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
7542 * config/avr/avr.md: New pattern to work around do_store_flag
7543 generating shift instructions for bit extractions.
7545 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
7547 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
7549 (add_equivalence): Likewise.
7550 (get_value_range): Allocate value range with vrp_value_range_pool.
7551 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
7552 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
7554 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
7556 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
7557 the default for the rs6000 port.
7559 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7562 * calls.c (special_function_p): Remove special handling of
7563 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
7564 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
7565 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
7567 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
7570 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
7571 Don't stop on regular insns.
7573 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
7575 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
7576 size to DImode boundary.
7577 (nvptx_propagate): Likewise.
7579 2016-08-03 Alan Modra <amodra@gmail.com>
7581 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
7582 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
7583 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
7584 from -mefficient-unaligned-vector. Note that this affects fp too.
7586 2016-08-03 Alan Modra <amodra@gmail.com>
7588 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
7591 2016-08-03 Alan Modra <amodra@gmail.com>
7593 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
7594 to a reg. Localize vars.
7596 2016-08-03 Alan Modra <amodra@gmail.com>
7598 * config/rs6000/rs6000.opt: Remove negatives from help strings
7601 2016-08-03 Alan Modra <amodra@gmail.com>
7603 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
7604 Delete duplicated code.
7606 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7609 * lra-spills.c (regno_in_use_p): New.
7610 (lra_final_code_change): Use it.
7612 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
7614 PR rtl-optimization/69847
7615 * lra-int.h (struct lra-reg): Use restore_rtx instead of
7617 (lra_rtx_hash): New.
7618 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
7620 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
7621 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
7622 * lra-spills.c (lra_final_code_change): Don't delete insn when the
7623 next insn is USE with the same reg as the current insn source.
7624 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
7626 (lra_constraints_init): Call initiate_invariants.
7627 (lra_constraints_finish): Call finish_invariants.
7628 (struct invariant, invariant_t, invariant_ptr_t): New.
7629 (const_invariant_ptr_t, invariants, invariants_pool): New.
7630 (invariant_table, invariant_hash, invariant_eq_p): New.
7631 (insert_invariant, initiate_invariants, finish_invariants): New.
7632 (clear_invariants, invalid_invariant_regs): New.
7633 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
7634 instead of restore_regno.
7635 (invariant_p, process_invariant_for_inheritance): New.
7636 (inherit_in_ebb): Implement invariant inheritance.
7637 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
7638 (remove_inheritance_pseudos): Implement undoing invariant
7640 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
7641 instead of restore_regno.
7642 * lra-assigns.c (regno_live_length): New.
7643 (reload_pseudo_compare_func): Use regno_live_length.
7644 (assign_by_spills): Use restore_rtx instead of restore_regno.
7645 (lra_assign): Ditto. Initiate regno_live_length.
7647 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
7649 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
7650 __builtin_aarch64_fmindf.
7652 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7654 PR tree-optimization/34114
7655 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
7656 information for more control IVs.
7658 2016-08-02 Bin Cheng <bin.cheng@arm.com>
7660 PR tree-optimization/34114
7661 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
7662 PLUS_EXPR case. Handle SSA_NAME case.
7664 2016-08-02 Tamar Christina <tamar.christina@arm.com>
7666 * config/aarch64/aarch64-simd-builtins.def
7667 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
7668 (__builtin_aarch64_fmaxdf): Likewise.
7669 (__builtin_aarch64_smin_nandf): Likewise.
7670 (__builtin_aarch64_smax_nandf): Likewise.
7671 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
7672 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
7673 (<fmaxmin><mode>3): ...this.
7674 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
7675 (vminnm_f64): Likewise.
7676 (vmin_f64): Likewise.
7677 (vmax_f64): Likewise.
7678 * config/aarch64/iterators.md (FMAXMIN): Merge with...
7679 (FMAXMIN_UNS): ...this.
7680 (fmaxmin): Merged with
7681 (fmaxmin_op): ...this...
7682 (maxmin_uns_op): ...in to this.
7684 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7686 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7687 Add support for vec_extract on vector float, vector int, vector
7688 short, and vector char vector types.
7689 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7690 vector float, vector int, vector short, and vector char
7691 optimizations on 64-bit ISA 2.07 systems for both constant and
7692 variable element numbers.
7693 (rs6000_split_vec_extract_var): Likewise.
7694 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
7695 Altivec registers on ISA 2.07 and above.
7696 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
7697 which never was matched due to the split occuring before register
7698 allocation (and the code would not have worked on little endian
7699 systems if it did match). Allow extracts to go to the Altivec
7700 registers if ISA 2.07 (power8). Change from using "" around the
7701 C++ code to using {}'s.
7702 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
7703 vec_extracts when the vector is in memory.
7704 (vsx_extract_v4sf_var): New insn to optimize vector float
7705 vec_extracts when the element number is variable on 64-bit ISA
7707 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
7708 for 64-bit ISA 2.07 as well as ISA 3.0.
7709 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
7710 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
7711 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
7712 optimize vector int, vector short, and vector char vec_extracts
7713 when the vector is in memory.
7714 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
7715 optimize vector int, vector short, and vector char vec_extracts
7716 when the element number is variable.
7718 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7721 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7722 does not overlap with other symbol flags.
7724 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
7726 * config/aarch64/aarch64.h (aarch64_frame):
7727 Remove padding0 and hardfp_offset. Add locals_offset,
7728 initial_adjust, callee_adjust, callee_offset and final_adjust.
7729 * config/aarch64/aarch64.c (aarch64_layout_frame):
7730 Remove unused padding0 and hardfp_offset initializations.
7731 Choose frame layout and set frame variables accordingly.
7732 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7733 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7734 (aarch64_pop_regs): Likewise.
7735 (aarch64_expand_prologue): Remove all decision code, just emit
7736 prolog according to frame variables.
7737 (aarch64_expand_epilogue): Remove all decision code, just emit
7738 epilog according to frame variables.
7739 (aarch64_initial_elimination_offset): Use offset to local/arg area.
7741 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
7744 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7745 fix_debug_reg_uses after changing source register mode to
7746 V1TImode if source register is undefined.
7748 2015-08-01 Alan Hayward <alan.hayward@arm.com>
7750 PR tree-optimization/71818
7751 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7752 with non invariant evolutions
7754 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7757 * config/avr/avr.md (length) [branch]: Correct insn length
7758 attribute for forward branches.
7760 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
7762 * doc/extend.texi (AVR Built-in Functions): Document
7764 * config/avr/builtins.def (NOPS): New.
7765 * config/avr/avr.c (avr_expand_nops): New static function.
7766 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7768 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7770 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7771 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7774 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
7776 * config/aarch64/aarch64.c (vulcan_tunings): Update
7777 vulcan L1 cache_line_size.
7779 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7781 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7782 function that takes a vector memory address, a hard register, an
7783 element number and a temporary base register, and recreates an
7784 address that points to the appropriate element within the vector.
7785 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7786 (rs6000_split_vec_extract_var): Add support for the target of a
7787 vec_extract with variable element number being a scalar memory
7789 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7791 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7792 vsx_extract_<mode>_load insn with a new insn that optimizes
7793 storing either element to a memory location, using scratch
7794 registers to pick apart the vector and reconstruct the address.
7795 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7796 (vsx_extract_<mode>_store): Rework alternatives to more correctly
7797 support Altivec registers. Add support for ISA 3.0 Altivec d-form
7799 (vsx_extract_<mode>_var): Add support for extracting a variable
7800 element number from memory.
7802 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7804 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7805 when testing for compares against constants of the form 0xabab.
7807 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7809 PR tree-optimization/57558
7810 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7812 (vect_loop_versioning): Support versioning with niter assumptions.
7813 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7814 (vect_get_loop_niters): New parameter. Reimplement to support
7815 assumptions in loop niter info.
7816 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7817 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7818 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7819 Support loop versioning for niters.
7820 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7821 (vect_free_loop_info_assumptions): New function.
7822 (vectorize_loops): Free loop niter info for loops with flag
7823 LOOP_F_ASSUMPTIONS set if vectorization failed.
7824 * tree-vectorizer.h (struct _loop_vec_info): New field
7825 num_iters_assumptions.
7826 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7827 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7828 (LOOP_REQUIRES_VERSIONING): New macro.
7829 (vect_free_loop_info_assumptions): New decl.
7831 2016-07-29 Bin Cheng <bin.cheng@arm.com>
7833 * cfgloop.h (struct loop): New field constraints.
7834 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7835 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7837 * cfgloop.c (alloc_loop): Initialize new field.
7838 * cfgloopmanip.c (copy_loop_info): Copy constraints.
7839 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7840 Adjust niter analysis wrto loop constraints.
7841 * doc/loop.texi (@node Number of iterations): Add description for loop
7844 2016-07-29 Marek Polacek <polacek@redhat.com>
7847 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7848 (ix86_expand_round_builtin): Likewise.
7850 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
7851 Georg-Johann Lay <avr@gjlay.de>
7853 PR rtl-optimization/71976
7854 * combine.c (get_last_value): Return 0 if the argument for which
7855 the function is called has a wider mode than the recorded value.
7857 2016-07-29 Marek Polacek <polacek@redhat.com>
7860 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7861 (altivec_expand_st_builtin): Likewise.
7863 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
7865 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7866 introduced in r238381.
7868 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
7871 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7872 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7874 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
7876 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7878 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7879 Add support for vec_extract of vector double or vector long having
7880 a variable element number on 64-bit ISA 2.07 systems or newer.
7881 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7883 (rs6000_split_vec_extract_var): New function to split a
7884 vec_extract built-in function with variable element number.
7885 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7887 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7888 (UNSPEC_VSX_EXTRACT): Likewise.
7889 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7890 direct move instructions to be generated on 64-bit ISA 2.07
7891 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7893 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7894 arguments for vec_extract variable element.
7895 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7896 vec_extract with variable element on V2DFmode and V2DImode
7898 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7899 -mupper-regs-df requirement, since it isn't needed.
7900 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7901 do direct moves on 64-bit systems, which allows optimization of
7902 vec_extract on 64-bit ISA 2.07 systems and newer.
7904 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7905 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7907 * config/aarch64/aarch64.md
7908 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7910 (<optab>qihi2_aarch64): Likewise, and split into two.
7911 (extendqihi2_aarch64): New.
7912 (zero_extendqihi2_aarch64): New.
7913 * config/aarch64/iterators.md (ldrxt): Remove.
7914 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7917 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
7919 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7921 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
7923 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7924 (aarch64_push_reg): New function to push 1 or 2 registers.
7925 (aarch64_pop_reg): New function to pop 1 or 2 registers.
7926 (aarch64_expand_prologue): Use aarch64_push_regs.
7927 (aarch64_expand_epilogue): Use aarch64_pop_regs.
7929 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
7931 PR tree-optimization/71734
7932 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7933 attribute instead of REF_LOOP and use it.
7934 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7935 set it for Loops having non-zero safelen attribute.
7936 (ref_indep_loop_p): Pass zero as initial value for safelen.
7938 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
7942 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7943 call using chkp_gimple_call_builtin_p.
7944 (chkp_copy_bounds_for_assign): Likewise.
7946 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7948 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
7949 * config/arm/arm-protos.h (struct tune_params): Likewise.
7950 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
7951 (cortex_a9_sched_adjust_cost): Likewise.
7952 (fa726te_sched_adjust_cost): Likewise.
7953 (arm_adjust_cost): Likewise.
7954 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
7955 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
7956 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
7957 * config/i386/i386.c (ix86_adjust_cost): Likewise.
7958 * config/ia64/ia64.c: Likewise.
7959 * config/m68k/m68k.c: Likewise.
7960 * config/mep/mep.c (mep_adjust_cost): Likewise.
7961 * config/microblaze/microblaze.c (microblaze_adjust_cost):
7963 * config/mips/mips.c (mips_adjust_cost): Likewise.
7964 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
7966 * config/pa/pa.c (pa_adjust_cost): Likewise.
7967 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
7968 (rs6000_debug_adjust_cost): Likewise.
7969 * config/sh/sh.c (sh_adjust_cost): Likewise.
7970 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
7971 (hypersparc_adjust_cost): Likewise.
7972 (sparc_adjust_cost): Likewise.
7973 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
7974 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
7975 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
7977 * config/visium/visium.c (visium_adjust_cost): Likewise.
7978 * doc/tm.texi: Regenerate.
7979 * haifa-sched.c (dep_cost_1): Adjust.
7980 * target.def: Merge adjust_cost and adjust_cost_2.
7982 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7984 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
7986 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7988 * store-motion.c (struct st_expr): Make pattern_regs a vector.
7989 (extract_mentioned_regs): Append to a vector instead of
7990 returning a rtx_expr_list.
7991 (st_expr_entry): Adjust.
7992 (free_st_expr_entry): Likewise.
7993 (store_ops_ok): Likewise.
7994 (store_killed_in_insn): Likewise.
7995 (find_moveable_store): Likewise.
7997 2016-07-28 Martin Liska <mliska@suse.cz>
7999 PR gcov-profile/68025
8000 * tree-profile.c (tree_profiling): Respect
8001 no_profile_instrument_function attribute.
8002 * doc/extend.texi: Document no_profile_instrument_function
8005 2016-07-28 Martin Liska <mliska@suse.cz>
8007 PR rtl-optimization/70944
8008 * combine.c (make_compound_operation):
8009 Do not allow make_compound_operation for vector mode
8011 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
8014 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
8015 before calling get_ops.
8017 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
8019 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
8020 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
8021 (BITS_PER_UNIT_LOG): Remove.
8022 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
8023 * expr.c (expand_assignment): Likewise.
8024 * stor-layout.c (initialize_sizetypes): Likewise.
8026 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
8028 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
8029 signature of rs6000_expand_vector_extract so that the element
8030 number is a RTX instead of a constant integer.
8031 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
8033 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
8034 (altivec_expand_vec_ext_builtin): Likewise.
8035 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
8036 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
8037 MFVSRLD instruction.
8039 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8041 * input.c (get_pure_location): Move here from tree.c.
8042 (make_location): Likewise. Add header comment.
8043 (selftest::test_accessing_ordinary_linemaps): Verify
8044 pure_location_p, make_location, get_location_from_adhoc_loc and
8046 * input.h (get_pure_location): Move declaration here from tree.h.
8047 (get_finish): Likewise for inline function.
8048 (make_location): Likewise for declaration.
8049 * tree.c (get_pure_location): Move to input.c.
8050 (make_location): Likewise.
8051 * tree.h (get_pure_location): Move declaration to tree.h.
8052 (get_finish): Likewise for inline function.
8053 (make_location): Likewise for declaration.
8055 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8058 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
8060 2016-07-27 David Malcolm <dmalcolm@redhat.com>
8062 * system.h (STATIC_ASSERT): Use static_assert if building
8065 2016-07-27 Richard Biener <rguenther@suse.de>
8067 PR tree-optimization/72517
8068 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8069 Revert change to not compute read-read dependences.
8071 2016-07-27 Richard Biener <rguenther@suse.de>
8073 * predict.c (set_even_probabilities): Make nedges unsigned.
8075 2016-07-27 Martin Liska <mliska@suse.cz>
8077 * predict.c (set_even_probabilities): Handle unlikely edges.
8078 (combine_predictions_for_bb): Likewise.
8080 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8083 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
8084 __float128 support when we don't have hardware support, so that
8085 the IEEE built-in functions like isgreater, first call __unordkf3
8086 to make sure neither operand is a NaN, and if both operands are
8087 ordered, do the normal comparison.
8089 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8091 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
8093 (extract_code_and_val_from_cond_with_ops): Verify that name is
8094 either cond_op0 or cond_op1.
8096 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
8098 PR tree-optimization/18046
8099 * genmodes.c (emit_mode_size_inline): Emit an assert that
8100 verifies that mode is a valid array index.
8101 (emit_mode_nuinits_inline): Likewise.
8102 (emit_mode_inner_inline): Likewise.
8103 (emit_mode_unit_size_inline): Likewise.
8104 (emit_mode_unit_precision_inline): Likewise.
8105 * tree-vrp.c: Include params.h.
8106 (find_switch_asserts): Register edge assertions for the default
8107 label which correspond to the anti-ranges of each case label.
8108 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
8109 * doc/invoke.texi: Document it.
8111 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8113 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
8114 and unnecessary call to gimple_bb.
8116 2016-07-26 Richard Biener <rguenther@suse.de>
8118 PR rtl-optimization/71984
8119 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
8122 2016-07-26 Richard Biener <rguenther@suse.de>
8125 * expmed.c (extract_bit_field_1): Constrain the vector mode
8126 with element size matching the extraction mode size when
8127 choosing a better vector mode to do the extraction from.
8129 2016-07-26 Richard Biener <rguenther@suse.de>
8130 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8133 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
8136 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8138 * tree-ssa-structalias.c (struct scc_info): Change types of
8139 members to auto_sbitmap and auto_vec.
8140 (scc_info::scc_info): New constructor.
8141 (scc_info::~scc_info): New destructor.
8142 (init_scc_info): Remove.
8143 (free_scc_info): Remove.
8144 (find_indirect_cycles): Adjust.
8145 (perform_var_substitution): Likewise.
8146 (free_var_substitution_info): Likewise.
8148 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8150 * tree-outof-ssa.c (struct elim_graph): Change type of members
8151 to auto_vec and auto_sbitmap.
8152 (elim_graph::elim_graph): New constructor.
8153 (delete_elim_graph): Remove.
8154 (expand_phi_nodes): Adjust.
8156 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8158 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
8159 (new_elim_graph): Adjust.
8160 (clear_elim_graph): Likewise.
8161 (delete_elim_graph): Likewise.
8162 (elim_graph_size): Likewise.
8163 (elim_graph_add_node): Likewise.
8164 (elim_graph_add_edge): Likewise.
8165 (elim_graph_remove_succ_edge): Likewise.
8166 (eliminate_name): Likewise.
8167 (eliminate_build): Likewise.
8168 (elim_forward): Likewise.
8169 (elim_unvisited_predecessor): Likewise.
8170 (elim_backward): Likewise.
8171 (elim_create): Likewise.
8172 (eliminate_phi): Likewise.
8173 (expand_phi_nodes): Likewise.
8175 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8177 * bt-load.c (compute_out): Use auto_sbitmap class.
8178 (link_btr_uses): Likewise.
8179 * cfganal.c (mark_dfs_back_edges): Likewise.
8180 (post_order_compute): Likewise.
8181 (inverted_post_order_compute): Likewise.
8182 (pre_and_rev_post_order_compute_fn): Likewise.
8183 (single_pred_before_succ_order): Likewise.
8184 * cfgexpand.c (pass_expand::execute): Likewise.
8185 * cfgloop.c (verify_loop_structure): Likewise.
8186 * cfgloopmanip.c (fix_bb_placements): Likewise.
8187 (remove_path): Likewise.
8188 (update_dominators_in_loop): Likewise.
8189 * cfgrtl.c (break_superblocks): Likewise.
8190 * ddg.c (check_sccs): Likewise.
8191 (create_ddg_all_sccs): Likewise.
8192 * df-core.c (df_worklist_dataflow): Likewise.
8193 * dse.c (dse_step3): Likewise.
8194 * except.c (eh_region_outermost): Likewise.
8195 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8196 * gcse.c (prune_expressions): Likewise.
8197 (prune_insertions_deletions): Likewise.
8198 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
8199 * graph.c (draw_cfg_nodes_no_loops): Likewise.
8200 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
8201 * lcm.c (compute_earliest): Likewise.
8202 (compute_farthest): Likewise.
8203 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
8204 (unroll_loop_runtime_iterations): Likewise.
8205 (unroll_loop_stupid): Likewise.
8206 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8207 * lra-lives.c: Likewise.
8208 * lra.c (lra): Likewise.
8209 * modulo-sched.c (schedule_reg_moves): Likewise.
8210 (optimize_sc): Likewise.
8211 (get_sched_window): Likewise.
8212 (sms_schedule_by_order): Likewise.
8213 (check_nodes_order): Likewise.
8214 (order_nodes_of_sccs): Likewise.
8215 (order_nodes_in_scc): Likewise.
8216 * recog.c (split_all_insns): Likewise.
8217 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
8218 * reload1.c (reload): Likewise.
8219 * sched-rgn.c (haifa_find_rgns): Likewise.
8220 (split_edges): Likewise.
8221 (compute_trg_info): Likewise.
8222 * sel-sched.c (init_seqno): Likewise.
8223 * store-motion.c (remove_reachable_equiv_notes): Likewise.
8224 * tree-into-ssa.c (update_ssa): Likewise.
8225 * tree-ssa-live.c (live_worklist): Likewise.
8226 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
8227 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8229 (try_peel_loop): Likewise.
8230 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
8232 * tree-ssa-pre.c (compute_antic): Likewise.
8233 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8234 * tree-stdarg.c (reachable_at_most_once): Likewise.
8235 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
8236 * var-tracking.c (vt_find_locations): Likewise.
8238 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8240 * sbitmap.h (auto_sbitmap): New class.
8242 2016-07-26 Alan Modra <amodra@gmail.com>
8245 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
8248 2016-07-25 David Malcolm <dmalcolm@redhat.com>
8250 * input.c (selftest::temp_source_file::temp_source_file): Fix
8251 missing "%s" in fprintf.
8253 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
8256 * cselib.c (cselib_process_insn): Invalidate argument slots for
8259 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8261 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
8262 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
8263 vmulxh_lane_f16, vmulxh_laneq_f16): New.
8265 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8267 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8268 * config/aarch64/aarch64.md (fma, fnma): Support HF.
8269 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
8271 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8273 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8274 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
8276 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
8277 (add<mode>3): Likewise.
8278 (sub<mode>3): Likewise.
8279 (mul<mode>3): Likewise.
8280 (div<mode>3): Likewise.
8281 (*div<mode>3): Likewise.
8282 (<fmaxmin><mode>3): Extend to HF.
8283 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
8284 (fabd<mode>3): Likewise.
8285 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
8286 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
8287 (aarch64_fmulx<mode>): Likewise.
8288 (aarch64_fac<optab><mode>): Likewise.
8289 (aarch64_frecps<mode>): Likewise.
8290 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
8291 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
8292 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
8293 (VSDQ_HSDI): Support HI.
8294 (fcvt_target, FCVT_TARGET): Likewise.
8295 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
8296 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
8297 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
8298 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
8299 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
8300 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
8301 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
8304 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8306 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
8307 * config/aarch64/aarch64-builtins.c (hi_UP): New.
8308 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8309 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
8311 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
8312 (aarch64_cm<optab><mode>): Likewise.
8313 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
8314 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
8315 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
8316 (sqrt<mode>2): Likewise.
8317 (*sqrt<mode>2): Likewise.
8318 (abs<mode>2): Likewise.
8319 (<optab><mode>hf2): New pattern for HF mode.
8320 (<optab>hihf2): Likewise.
8321 * config/aarch64/arm_neon.h: Include arm_fp16.h.
8322 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
8323 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
8325 * config/aarch64/arm_fp16.h: New file.
8326 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
8327 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
8328 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
8329 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
8330 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
8331 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
8332 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
8333 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
8334 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
8335 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
8336 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
8337 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
8340 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8342 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
8343 reduc_smin_scal_): Use VDQIF_F16.
8344 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
8345 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
8347 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
8348 * config/aarch64/iterators.md (VDQIF_F16): New.
8349 (vp): Support HF modes.
8350 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
8351 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
8353 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8355 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
8356 "*aarch64_mulx_elt_from_dup<mode>".
8357 (*aarch64_mul3_elt<mode>): Update schedule type.
8358 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
8359 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
8360 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
8361 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
8362 (f, fp): Support HF modes.
8363 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
8364 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
8365 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
8366 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
8367 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
8368 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
8370 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8372 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8373 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
8375 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
8378 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8380 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8381 * config/aarch64/aarch64-simd.md
8382 (aarch64_rsqrts<mode>): Extend to HF modes.
8383 (fabd<mode>3): Likewise.
8384 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
8385 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
8386 (aarch64_<maxmin_uns>p<mode>): Likewise.
8387 (<su><maxmin><mode>3): Likewise.
8388 (<maxmin_uns><mode>3): Likewise.
8389 (<fmaxmin><mode>3): Likewise.
8390 (aarch64_faddp<mode>): Likewise.
8391 (aarch64_fmulx<mode>): Likewise.
8392 (aarch64_frecps<mode>): Likewise.
8393 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
8394 (add<mode>3): Extend to HF modes.
8395 (sub<mode>3): Likewise.
8396 (mul<mode>3): Likewise.
8397 (div<mode>3): Likewise.
8398 (*div<mode>3): Likewise.
8399 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
8401 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
8402 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
8403 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
8404 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
8405 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
8406 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
8407 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
8408 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
8409 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
8410 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
8411 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
8412 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
8413 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
8414 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
8416 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8418 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
8419 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
8420 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
8421 (neg<mode>2): Likewise.
8422 (abs<mode>2): Likewise.
8423 (<frint_pattern><mode>2): Likewise.
8424 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
8425 (<optab><VDQF:mode><fcvt_target>2): Likewise.
8426 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
8427 (ftrunc<VDQF:mode>2): Likewise.
8428 (<optab><fcvt_target><VDQF:mode>2): Likewise.
8429 (sqrt<mode>2): Likewise.
8430 (*sqrt<mode>2): Likewise.
8431 (aarch64_frecpe<mode>): Likewise.
8432 (aarch64_cm<optab><mode>): Likewise.
8433 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
8435 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
8436 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
8438 * config/aarch64/arm_neon.h (vdup_n_f16): New.
8439 (vdupq_n_f16): Likewise.
8440 (vld1_dup_f16): Use vdup_n_f16.
8441 (vld1q_dup_f16): Use vdupq_n_f16.
8442 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
8443 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
8444 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
8445 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
8446 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
8447 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
8448 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
8449 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
8450 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
8451 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
8452 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
8453 vsqrt_f16, vsqrtq_f16): New.
8455 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8457 * config/aarch64/aarch64-simd.md
8458 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
8459 (aarch64_ext<mode>): Likewise.
8460 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
8461 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
8462 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
8464 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
8466 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
8467 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
8468 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
8469 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
8470 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
8471 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
8472 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
8474 (vmov_n_f16): Reimplement using vdup_n_f16.
8475 (vmovq_n_f16): Reimplement using vdupq_n_f16..
8477 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8479 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
8480 "frame_related_p". Generate CFA annotation when it's necessary.
8481 (aarch64_expand_prologue): Use aarch64_add_constant.
8482 (aarch64_expand_epilogue): Likewise.
8483 (aarch64_output_mi_thunk): Pass "false" when calling
8484 aarch64_add_constant.
8486 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8488 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
8491 2016-07-25 Jiong Wang <jiong.wang@arm.com>
8493 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
8494 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
8495 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
8496 (aarch64_build_constant): Delete.
8498 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
8501 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8503 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8504 flag_toplevel_reorder.
8506 2016-07-25 Richard Biener <rguenther@suse.de>
8508 * cgraph.c (cgraph_node::verify_node): Compare against builtin
8509 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
8510 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
8511 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
8512 (streamer_get_builtin_tree): Likewise.
8513 (streamer_write_builtin): Likewise.
8514 * lto-streamer.h (LTO_builtin_decl): Remove.
8515 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
8516 (lto_input_scc): Remove LTO_builtin_decl handling.
8517 (lto_input_tree_1): Liekwise.
8518 * lto-streamer-out.c (lto_output_tree_1): Remove special
8519 handling of builtins.
8520 (DFS::DFS): Likewise.
8521 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
8522 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
8524 (streamer_write_builtin): Remove.
8526 2016-07-25 Martin Liska <mliska@suse.cz>
8528 * lto-cgraph.c (input_symtab): Don't call get_working_sets
8529 if flag_auto_profile is set to true.
8531 2016-07-25 Martin Liska <mliska@suse.cz>
8533 PR gcov-profile/71868
8534 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
8535 have a function with multiple latches, count them all.
8537 2016-07-25 Martin Liska <mliska@suse.cz>
8539 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
8541 2016-07-25 Martin Liska <mliska@suse.cz>
8543 PR tree-optimization/71987
8544 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
8545 just for SSA_NAMEs. Fix GNU coding style.
8547 2016-07-25 Martin Liska <mliska@suse.cz>
8549 PR gcov-profile/64874
8550 * gcov-io.h: Update command about file format.
8551 * gcov-iov.c (main): Adapt the numbering scheme.
8553 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
8556 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
8557 whose result is used in PHI.
8558 (final_range_test_p): Likewise.
8559 (maybe_optimize_range_tests): Likewise.
8561 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8563 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8564 Reformat two multi-line strings.
8566 2016-07-22 Martin Sebor <msebor@redhat.com>
8568 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
8570 2016-07-22 Martin Sebor <msebor@redhat.com>
8573 * doc/extend.texi (Compound Literals): Correct and clarify.
8574 (Cast to Union): Same.
8576 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
8578 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8579 comments to explain why certain error messages make mention of
8580 undocumented options.
8581 (rs6000_invalid_builtin): Change error messages to replace mention
8582 of undocumented options with mention of the -mcpu=power9 option
8583 that enables those undocumented options.
8584 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
8585 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
8586 definition of this macro to correct an existing error.
8587 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
8588 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
8589 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
8590 descriptions of built-in functions so that they depend on
8591 -mcpu=power9 instead of on the corresponding undocumented flags.
8592 * doc/invoke.texi (Option Summary): Remove all mention of newly
8594 (IBM RS/6000 and PowerPC Options): Likewise.
8595 * doc/md.texi (Constraints for Particuliar Machines): Remove all
8596 mention of newly undocumented flags.
8598 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
8600 * ipa-cp.c (determine_versionability): Do not create constprop clones,
8601 when target_clones attribute is set.
8603 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8605 * common.opt (funsafe-loop-optimizations): Mark ignore.
8606 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
8607 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
8609 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
8610 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
8612 2016-07-22 Bin Cheng <bin.cheng@arm.com>
8614 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8616 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8618 (number_of_iterations_exit): Warn missed loop optimization for
8619 possible infinite loops.
8621 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
8624 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
8625 when to emit a ".machine" pseudo-op.
8627 2016-07-22 Martin Liska <mliska@suse.cz>
8629 PR gcov-profile/69028
8630 PR gcov-profile/62047
8631 * coverage.c (coverage_compute_lineno_checksum): Do not
8632 calculate checksum for fns w/o xloc.file.
8633 (coverage_compute_profile_id): Likewise.
8635 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
8637 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
8638 (avr_secondary_reload): ...and implementation.
8639 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
8640 * config/avr/avr.md (reload_in<mode>): Remove insns.
8641 (adjust_len) [lpm]: Remove insn attribute value.
8642 * config/avr/predicates.md (flash_operand): Remove insn predicate.
8644 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8647 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
8649 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
8650 * calls.c (special_function_p): Remove the special handling of the
8651 "__builtin_" prefix.
8653 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8656 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
8657 if STMT may be an alloca call.
8658 (gimple_alloca_call_p, alloca_call_p): Return only true for the
8659 builtin alloca call.
8660 * calls.h (gimple_maybe_alloca_call_p): New function.
8661 * tree-inline.c (inline_forbidden_p_stmt): Use
8662 gimple_maybe_alloca_call_p here.
8664 2016-07-21 David Malcolm <dmalcolm@redhat.com>
8666 * spellcheck-tree.c (best_macro_match::best_macro_match):
8667 Explictly specify the template arguments when invoking the base
8668 class constructor, to help older C++ compilers.
8670 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8673 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
8674 before builtin_decl_implicit.
8676 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8678 * optabs.c (emit_condiitonal_move): Short circuit for identical
8681 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8683 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
8684 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
8685 (noce_conversion_profitable_p): New.
8686 (noce_try_store_flag_constants): Use it.
8687 (noce_try_addcc): Likewise.
8688 (noce_try_store_flag_mask): Likewise.
8689 (noce_try_cmove): Likewise.
8690 (noce_try_cmove_arith): Likewise.
8691 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
8693 (noce_convert_multiple_sets): Move cost model to here, from...
8694 (bb_ok_for_noce_convert_multiple_sets) ...here.
8695 (noce_process_if_block): Update calls for above changes.
8696 (noce_find_if_block): Record new noce_if_info parameters.
8698 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
8700 * target.def (max_noce_ifcvt_seq_cost): New.
8701 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
8702 * doc/tm.texi: Regenerate.
8703 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
8704 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
8705 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
8706 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
8707 * doc/invoke.texi: Document new params.
8709 2016-07-21 Richard Biener <rguenther@suse.de>
8711 PR tree-optimization/71947
8712 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
8713 ranges have useful limit_vr information.
8715 2016-07-21 Richard Biener <rguenther@suse.de>
8717 * function-tests.c (build_trivial_generic_function): Set
8718 BLOCK_SUPERCONTEXT of DECL_INITIAL.
8719 * omp-low.c (create_omp_child_function): Likewise.
8720 (grid_expand_target_grid_body): Likewise.
8721 * cgraphunit.c (init_lowered_empty_function): Likewise.
8722 (cgraph_node::expand_thunk): Likewise.
8723 * tree-parloops.c (create_loop_fn): Likewise.
8724 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8726 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8728 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8731 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
8733 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8734 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8735 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8736 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8737 values for insn attribute.
8738 * config/avr/avr.c (avr_out_insert_notbit): New function.
8739 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8740 ADJUST_LEN_INSV_NOTBIT_0/_7.
8741 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8743 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8745 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
8746 (chrec_convert_1, chrec_convert): Ditto.
8747 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8748 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8749 * tree-vrp.c (adjust_range_with_scev): Ditto.
8750 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8751 (scev_var_range_cant_overflow): New function.
8752 (scev_probably_wraps_p): New parameter. Call above function.
8753 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8755 2016-07-21 Bin Cheng <bin.cheng@arm.com>
8757 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8758 by removing computation of may_be_zero.
8760 2016-07-21 Jakub Jelinek <jakub@redhat.com>
8762 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8764 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
8766 Improving concepts performance and diagnostics.
8767 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8768 for constraint satisfaction and subsumption.
8769 * timevar.h (auto_timevar): New constructor that matches the push/pop
8770 pattern of usage in pt.c.
8772 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8774 * hwint.h (HOST_WIDE_INT_0): New define.
8775 (HOST_WIDE_INT_0U): Ditto.
8776 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8777 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8778 * simplify-rtx.c: Ditto.
8779 * tree-object-size.c: Ditto.
8781 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8783 * config/s390/s390.c (s390_encode_section_info): Remove mode size
8786 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
8788 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8789 * combine.c: Use HOST_WIDE_INT_M1U instead of
8790 ~(unsigned HOST_WIDE_INT) 0.
8791 * double-int.h: Ditto.
8793 * dwarf2asm.c:Ditto.
8795 * genmodes.c: Ditto.
8797 * read-rtl.c: Ditto.
8798 * tree-ssa-loop-ivopts.c: Ditto.
8799 * tree-ssa-loop-prefetch.c: Ditto.
8800 * tree-vect-generic.c: Ditto.
8801 * tree-vect-patterns.c: Ditto.
8804 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8806 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8807 constant addresses outside [0,0xc0] into a register.
8808 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
8809 cases where the base address register is unused after.
8810 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8811 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8812 (avr_out_store_psi_reg_disp_tiny): Same.
8814 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8816 Implement attribute progmem on reduced Tiny cores by adding
8817 flash offset 0x4000 to respective symbols.
8820 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8821 documentation how it works on reduced Tiny cores.
8822 (AVR Named Address Spaces): No support for reduced Tiny.
8823 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8824 (avr_address_tiny_pm_p): New static function.
8825 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8826 if the address is in progmem.
8827 (avr_assemble_integer): Same.
8828 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8829 for symbol_ref in progmem.
8830 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8831 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8832 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8834 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
8836 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
8837 * configure: Regenerate.
8838 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8839 (USE_THIN_ARCHIVES): New variable.
8840 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8841 this archive as a thin archive.
8843 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8845 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8846 same location as last time, don't skip if we have fix-it hints.
8847 Clarify the skipping logic by converting it from one "if" clause
8848 to repeated "if" clauses.
8849 * spellcheck-tree.c: Include "cpplib.h".
8850 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8851 (best_macro_match::best_macro_match): New constructor.
8852 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8853 Move here from c/c-decl.c.
8854 (class best_macro_match): Move here from c/c-decl.c, converting
8855 from a typedef to a subclass, gaining a ctor.
8857 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8859 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8860 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8862 (avr_addr_space_diagnose_usage): ...and implementation.
8863 (avr_addr_space_supported_p): New function.
8864 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8865 report bad address space usage if that space is supported.
8866 (avr_insert_attributes): Same. No more complain about unsupported
8868 * config/avr/avr-c.c (tm_p.h): Include it.
8869 (avr_cpu_cpp_builtins): Only define addr-space related built-in
8870 macro if avr_addr_space_supported_p.
8872 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
8874 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8875 flag_toplevel_reorder.
8877 2016-07-20 David Malcolm <dmalcolm@redhat.com>
8879 * gcc-rich-location.c
8880 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8882 * gcc-rich-location.h
8883 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8885 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
8887 * target.def (addr_space): Add new diagnose_usage to hook vector.
8888 * targhooks.c (default_addr_space_diagnose_usage): Add default
8889 implementation and...
8890 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8891 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8892 is some address space, call targetm.addr_space.diagnose_usage.
8893 * doc/tm.texi.in (Named Address Spaces): Add anchor for
8894 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8895 * doc/tm.texi: Regenerate.
8897 2016-07-20 Martin Liska <mliska@suse.cz>
8900 * graphite-isl-ast-to-gimple.c (later_of_the_two):
8901 Properly handly PHI stmts.
8903 2016-07-20 Bin Cheng <bin.cheng@arm.com>
8905 PR tree-optimization/71503
8906 PR tree-optimization/71683
8907 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8910 2016-07-20 Martin Liska <mliska@suse.cz>
8912 * doc/invoke.texi (-fipa-ra): Document when the option is
8913 disabled. Fix a typo.
8915 2016-07-20 Martin Liska <mliska@suse.cz>
8917 * Makefile.in: Include fibonacci_heap.c
8918 * fibonacci_heap.c: New file.
8919 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8920 (fibonacci_heap::union_with): Fix deletion of the second heap.
8921 * selftest-run-tests.c (selftest::run_tests): Incorporate
8922 fibonacci heap tests.
8923 * selftest.h: Declare fibonacci_heap_c_tests.
8925 2016-07-20 Martin Liska <mliska@suse.cz>
8927 * selftest-run-tests.c (selftest::run_tests): New function.
8928 * selftest.h (sreal_c_tests): Declare.
8929 * sreal.c (sreal_verify_basics): New function.
8930 (verify_aritmetics): Likewise.
8931 (sreal_verify_arithmetics): Likewise.
8932 (verify_shifting): Likewise.
8933 (sreal_verify_shifting): Likewise.
8934 (void sreal_c_tests): Likewise.
8936 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8938 PR rtl-optimization/71916
8939 * cfgrtl.c (contains_no_active_insn_p): Return false also for
8940 bb which have a single succ fake edge.
8942 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
8945 * dwarf2out.c (gen_subprogram_die): Only call
8946 gen_unspecified_parameters_die while dumping early dwarf.
8948 2016-07-19 Jakub Jelinek <jakub@redhat.com>
8951 * gimple-fold.c (fold_builtin_memory_op): Use
8952 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8954 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
8956 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
8957 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
8958 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
8959 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
8963 * double-int.c: Ditto.
8965 * dwarf2out.c: Ditto.
8968 * fold-const.c: Ditto.
8969 * function.c: Ditto.
8971 * genmodes.c: Ditto.
8975 * loop-doloop.c: Ditto.
8976 * loop-invariant.c: Ditto.
8983 * simplify-rtx.c: Ditto.
8984 * stor-layout.c: Ditto.
8986 * tree-ssa-loop-ivopts.c: Ditto.
8987 * tree-vect-generic.c: Ditto.
8988 * tree-vect-patterns.c: Ditto.
8993 * wide-int-print.cc: Ditto.
8994 * wide-int.cc: Ditto.
8995 * wide-int.h: Ditto.
8997 2016-07-19 David Malcolm <dmalcolm@redhat.com>
8999 * selftest.c (selftest::assert_streq): Handle NULL values of
9000 val_actual and val_expected.
9002 2016-07-19 Martin Jambor <mjambor@suse.cz>
9005 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
9006 rather than cgraph_create_node to get a call graph node.
9008 2016-07-19 Richard Biener <rguenther@suse.de>
9010 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
9011 handle all tcc_constant bases and valueize SSA names.
9012 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
9015 2016-07-19 David Malcolm <dmalcolm@redhat.com>
9017 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
9018 the flags of the exit block and bb2, not just the entry block.
9020 2016-07-19 Richard Biener <rguenther@suse.de>
9022 PR tree-optimization/71901
9023 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9024 align member, group stuff with the bitfield.
9025 (vn_ref_op_align_unit): New inline.
9026 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
9027 record element alignment and operand 3 unchanged.
9028 (ao_ref_init_from_vn_reference): Adjust.
9029 (valueize_refs_1): Likewise.
9030 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9032 2016-07-19 Richard Biener <rguenther@suse.de>
9034 PR tree-optimization/71908
9035 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
9036 symbolic constants in a more reliable way.
9038 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
9040 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
9042 (vect_update_inits_of_drs): Likewise.
9043 (vect_create_cond_for_alias_checks): Likewise.
9044 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
9046 2016-07-19 Richard Biener <rguenther@suse.de>
9049 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
9050 with an abstract origin that is not an inlined function outer
9051 scope add a self-reference as abstract origin.
9052 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
9054 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
9057 * config/rs6000/rs6000.c (rs6000_function_value): Fix
9058 unintentional System V.4 structure return breakage for structures
9059 with a single floating point element.
9061 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
9063 PR tree-optimization/71734
9064 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
9065 contains REF, use it to check safelen, assume that safelen value
9066 must be greater 1, fix style.
9067 (ref_indep_loop_p_2): Add REF_LOOP argument.
9068 (ref_indep_loop_p): Pass LOOP as additional argument to
9071 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
9073 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
9074 allocation in the prologue.
9075 * explow.c (get_dynamic_stack_base): New function to return an address
9076 expression for the dynamic stack base.
9077 (get_dynamic_stack_size): New function to do the required dynamic stack
9078 space size calculations.
9079 (allocate_dynamic_stack_space): Use new functions.
9080 (align_dynamic_address): Move some code from
9081 allocate_dynamic_stack_space to new function.
9082 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
9084 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9086 * config/s390/s390.c (s390_encode_section_info): Always set
9087 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
9090 2016-07-18 Richard Biener <rguenther@suse.de>
9092 PR tree-optimization/71893
9093 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
9094 for sizetype cast added by array_ref_element_size.
9095 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9097 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
9099 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
9100 register parameters. Remove code to initialize argument pointer
9101 on TARGET_64BIT. Optimize call to _mcount when it can be reached
9102 using a pc-relative branch. Cleanup conditional code.
9103 * config/pa/pa.md (call_mcount): New expander.
9104 (call_mcount_nonpic): New insn.
9105 (call_mcount_pic): New insn and split.
9106 (call_mcount_pic_post_reload): New insn.
9107 (call_mcount_64bit): New insn and split.
9108 (call_mcount_64bit_post_reload): New insn.
9110 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
9112 * config/avr/predicates.md (const_m255_to_m1_operand): New.
9113 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
9114 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
9115 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
9116 (*usum_widenqihi3, *udiff_widenqihi3)
9117 (*addhi3_zero_extend.const): New combiner insns.
9118 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
9119 just 1 bit is affected.
9120 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
9121 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
9123 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
9125 * omp-low.c (lower_omp_target): Mark data clauses with
9126 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
9127 zero-length subarrays.
9129 2016-07-15 Richard Biener <rguenther@suse.de>
9131 PR tree-optimization/71881
9132 * tree-loop-distribution.c (destroy_loop): Remove blocks in
9133 reverse DOM order to make debug temp generation happy.
9135 2016-07-15 Richard Biener <rguenther@suse.de>
9137 PR tree-optimization/71887
9138 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
9139 verify it is not zero for division / modulo handling.
9140 (value_replacement): Adjust.
9142 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
9143 Julian Brown <julian@codesourcery.com>
9145 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
9146 * config/aarch64/aarch64-cost-tables.h
9147 (vulcan_extra_costs): New variable.
9148 * config/aarch64/aarch64.c
9149 (vulcan_addrcost_table): Likewise.
9150 (vulcan_regmove_cost): Likewise.
9151 (vulcan_vector_cost): Likewise.
9152 (vulcan_branch_cost): Likewise.
9153 (vulcan_tunings): Likewise.
9155 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
9157 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
9158 (output_in_order): Loop over undefined variables too. Output them
9159 via assemble_undefined_decl. Skip variables that correspond to hard
9160 registers or have value-exprs.
9161 * varpool.c (symbol_table::output_variables): Handle undefined
9162 variables together with defined ones.
9164 2016-07-15 Richard Biener <rguenther@suse.de>
9166 * tree-ssa-pre.c (get_representative_for): Make sure to return
9167 the value number of SSA names.
9168 (phi_translate_1): get_representative_for cannot return NULL.
9169 (do_pre_regular_insertion): Remove redundant call to
9170 fully_constant_expression.
9171 (do_pre_partial_partial_insertion): Likewise.
9173 2016-07-15 Bin Cheng <bin.cheng@arm.com>
9175 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
9176 (derive_simple_iv_with_niters): New function.
9177 (simple_iv): Rewrite using simple_iv_with_niters.
9178 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
9179 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9181 (number_of_iterations_exit): Rewrite using above function.
9182 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9185 2016-07-15 Richard Biener <rguenther@suse.de>
9187 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
9190 2016-07-14 Jakub Jelinek <jakub@redhat.com>
9192 PR tree-optimization/71872
9193 * tree-data-ref.c (get_references_in_stmt): Ignore references
9194 with is_gimple_constant get_base_address.
9196 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9198 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
9199 (TARGET_HAVE_LDACQD): New macro.
9200 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
9201 than TARGET_HAVE_LDACQ.
9202 (arm_load_acquire_exclusivedi): Likewise.
9203 (arm_store_release_exclusivedi): Likewise.
9205 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
9207 PR rtl-optimization/71878
9208 * lra-constraints.c (match_reload): Pass information about other
9209 output operands. Create new unique register value if matching input
9210 operand shares same register value as output operand being considered.
9211 (curr_insn_transform): Record output operands already processed.
9213 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9216 PR tree-optimization/70923
9217 * tree-vect-patterns.c: Include mult-synthesis.h.
9218 (target_supports_mult_synth_alg): New function.
9219 (synth_lshift_by_additions): Likewise.
9220 (apply_binop_and_append_stmt): Likewise.
9221 (vect_synth_mult_by_constant): Likewise.
9222 (target_has_vecop_for_code): Likewise.
9223 (vect_recog_mult_pattern): Use above functions to synthesize vector
9224 multiplication by integer constants.
9226 2016-07-14 Alan Modra <amodra@gmail.com>
9228 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
9229 gpr alternatives. Correct '*' placement on Y,r alternative.
9230 Add '*' on operand 1 of r,r alternative.
9232 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9234 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
9235 * expmed.h: ... Here.
9237 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
9239 * gimple.h (stmt_can_terminate_bb_p): New function.
9240 * tree-cfg.c (need_fake_edge_p): Rename to ...
9241 (stmt_can_terminate_bb_p): ... this; return true if stmt can
9242 throw external; handle const and pure calls.
9243 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
9245 2016-07-14 Richard Biener <rguenther@suse.de>
9247 PR tree-optimization/71866
9248 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
9249 (do_hoist_insertion): Avoid endless recursion when we
9250 didn't insert anything because we managed to simplify
9251 things down to a constant or SSA name.
9252 (fully_constant_expression): Re-write in terms of ...
9253 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
9254 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
9255 vn_nary_build_or_lookup_1.
9256 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
9257 (vn_nary_build_or_lookup): ... this which now wraps it.
9259 2016-07-14 Alan Modra <amodra@gmail.com>
9262 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
9263 with p9_vector override before power9-dform override.
9265 2016-07-13 Andi Kleen <ak@linux.intel.com>
9267 * value-prof.c (gimple_value_profile_transformations): Don't run
9268 when auto_profile is on.
9270 2016-07-13 Andi Kleen <ak@linux.intel.com>
9272 * auto-profile.c (update_inlined_ind_target,
9273 afdo_indirect_call): Print information to dump file.
9275 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
9277 * genrecog.c (special_predicate_operand_p): New function.
9278 (predicate_name): Move function.
9279 (validate_pattern): Don't warn about missing mode for all
9280 define_special_predicate predicates.
9282 2016-07-13 Bin Cheng <bin.cheng@arm.com>
9284 * tree-vect-data-refs.c (vect_no_alias_p): New function.
9285 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
9286 resolve alias checks which are known at compilation time.
9287 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
9288 alias checks are resolved. Move dump info for too many runtime
9289 alias checks to here...
9290 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
9292 2016-07-13 Richard Biener <rguenther@suse.de>
9294 PR tree-optimization/24574
9295 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
9296 position and add shift, rotate, divison and modulo support
9298 (value_replacement): Pass in argument position to absorbing_element_p.
9300 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
9303 * ipa-inline-transform.c (inline_call): Support
9304 instrumented thunks.
9306 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9308 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
9309 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
9311 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
9312 Baseline. Make initial alternative TARGET_32BIT only.
9313 (udivsi3): Likewise.
9314 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
9315 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
9318 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
9320 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
9321 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
9322 availability with TARGET_HAVE_MOVT.
9323 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
9324 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
9325 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
9327 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
9328 extra instruction if MOVW is available. Use a cost variable
9329 incremented by COSTS_N_INSNS (1) when the condition match rather than
9330 returning an arithmetic expression based on COSTS_N_INSNS. Make
9331 constant with bottom half word zero cost 2 instruction if MOVW is
9333 * config/arm/arm.md (define_attr "arch"): Add v8mb.
9334 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
9335 target is ARMv8-M Baseline.
9336 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
9337 (arm_movtas_ze): Likewise.
9338 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
9339 alternative for constants satisfying j constraint.
9340 (thumb1_movsi_insn): Likewise.
9341 (movsi splitter for K alternative): Tighten condition to not trigger
9342 if movt is available and j constraint is satisfied.
9343 (Pe immediate splitter): Likewise.
9344 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
9345 constant fitting in an halfword to use MOVW.
9346 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
9349 2016-07-13 Richard Biener <rguenther@suse.de>
9352 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
9353 gimplifying the LHS. Make sure to gimplify a returning twice
9354 call LHS without using SSA names.
9356 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9358 * tree-data-ref.c (find_data_references_in_stmt): Remove
9359 unnecessary call to vec::release.
9360 (graphite_find_data_references_in_stmt): Likewise.
9361 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
9362 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9364 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9366 * cfgexpand.c (expand_used_vars): Make the type of a local
9368 * genmatch.c (lower_for): Likewise.
9369 * haifa-sched.c (haifa_sched_init): Likewise.
9370 (add_to_speculative_block): Likewise.
9371 (create_check_block_twin): Likewise.
9372 * predict.c (handle_missing_profiles): Likewise.
9373 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
9374 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
9375 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
9377 (maybe_lower_iteration_bound): Likewise.
9378 * tree-ssa-sccvn.c (DFS): Likewise.
9379 * tree-stdarg.c (reachable_at_most_once): Likewise.
9380 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
9381 (vectorizable_store): Likewise.
9383 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9385 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
9386 (sccvn_dom_walker): make cond_stack an auto_vec.
9388 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9390 * ree.c (struct ext_state): Make type of members auto_vec.
9391 (find_and_remove_re): Adjust.
9393 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9395 * cfgexpand.c (struct stack_vars_data): Make type of fields
9397 (expand_used_vars): Adjust.
9399 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9401 * ipa.c (record_cdtor_fn): Adjust.
9402 (build_cdtor_fns): Likewise.
9403 (ipa_cdtor_merge): Make static_ctors and static_dtors local
9406 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9408 * genextract.c (struct accum_extract): Add constructor and make
9412 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9414 * tree.c (struct free_lang_data_d): Add constructor and change
9415 types of members to ones that automatically manage resources.
9416 (fld_worklist_push): Adjust.
9417 (find_decls_types): Likewise.
9418 (find_decls_types_in_eh_region): Likewise.
9419 (free_lang_data_in_cgraph): Stop manually creating and
9420 destroying members of free_lang_data_d.
9422 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
9424 PR rtl-optimization/68961
9425 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
9426 peephole variant. Use sse_reg_operand predicates.
9428 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
9430 * config/i386/predicates.md (x86_64_immediate_operand)
9431 <case CONST_INT>: Remove unneeded truncation to DImode.
9432 <case CONST>: Ditto.
9433 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9435 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9438 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
9439 The xxperm and xxpermr instructions require that the 2nd input
9440 operand overlap with the output operand, and not the 1st.
9441 (altivec_vperm_v8hiv16qi): Likewise.
9442 (altivec_vperm_<mode>_uns_internal): Likewise.
9443 (altivec_vpermr_<mode>_internal): Likewise.
9444 (vperm_v8hiv4si): Likewise.
9445 (vperm_v16qiv8hi): Likewise.
9447 2016-07-12 Nathan Sidwell <nathan@acm.org>
9449 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
9450 when -mno-pic-data-is-text-relative is in effect, by default.
9451 * doc/invoke.texi (mpic-data-is-text-relative): Document new
9452 behavior and clarify.
9454 2016-07-12 Martin Liska <mliska@suse.cz>
9456 * params.def: Add avg-loop niter.
9457 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
9458 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
9459 * doc/invoke.texi: Document the new parameter.
9461 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9464 * expr.c (store_constructor): Mask sign-extended bits when widening
9465 sub-word constructor element at the start of a word.
9467 2016-07-12 Martin Liska <mliska@suse.cz>
9469 * Makefile.in: Append rule for params-options.h.
9470 * params-options.h: New file.
9472 2016-07-12 Martin Liska <mliska@suse.cz>
9474 * ira-build.c (mark_loops_for_removal): Properly iterate
9477 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
9478 Richard Biener <rguenther@suse.de>
9480 PR tree-optimization/23286
9481 PR tree-optimization/70159
9482 * doc/invoke.texi: Document -fcode-hoisting.
9483 * common.opt (fcode-hoisting): New flag.
9484 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
9485 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
9486 (do_regular_insertion): Rename to ...
9487 (do_pre_regular_insertion): ... this and amend general comments
9488 on insertion strathegy.
9489 (do_partial_partial_insertion): Rename to ...
9490 (do_pre_partial_partial_insertion): ... this.
9491 (do_hoist_insertion): New function.
9492 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
9493 and call do_hoist_insertion properly.
9495 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
9496 (pass_pre::execute): Register hoist_insert stats.
9498 2016-07-12 Jakub Jelinek <jakub@redhat.com>
9501 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
9502 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
9503 is different from mode's bitsize. Small cleanup.
9505 2016-07-12 Richard Biener <rguenther@suse.de>
9507 PR rtl-optimization/68961
9508 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
9509 to simplify to a non-constant.
9511 2016-07-11 Jakub Jelinek <jakub@redhat.com>
9514 * omp-low.c (expand_omp_target): Gimplify device.
9516 PR tree-optimization/71823
9517 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
9518 to get vec_oprnds2 from op2.
9520 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
9522 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
9523 Hoist common subexpressions.
9524 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9526 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
9529 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
9530 prevent generation of 'stxsiwx' on pre Power8 hardware.
9532 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9534 * input.c: Include cpplib.h.
9535 (selftest::temp_source_file): New class.
9536 (selftest::temp_source_file::temp_source_file): New ctor.
9537 (selftest::temp_source_file::~temp_source_file): New dtor.
9538 (selftest::should_have_column_data_p): New function.
9539 (selftest::test_should_have_column_data_p): New function.
9540 (selftest::temp_line_table): New class.
9541 (selftest::temp_line_table::temp_line_table): New ctor.
9542 (selftest::temp_line_table::~temp_line_table): New dtor.
9543 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
9544 it to create a temp_line_table.
9545 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
9546 locations that are known to have column data.
9547 (selftest::line_table_case): New struct.
9548 (selftest::test_reading_source_line): Move tempfile handling
9549 to class temp_source_file.
9550 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
9551 (selftest::assert_token_loc_eq): New function.
9552 (ASSERT_TOKEN_LOC_EQ): New macro.
9553 (selftest::test_lexer): New function.
9554 (selftest::boundary_locations): New array.
9555 (selftest::input_c_tests): Call test_should_have_column_data_p.
9556 Loop over a test matrix of interesting values of location and
9557 default_range_bits, calling test_lexer on each case in the matrix.
9558 Move call to test_accessing_ordinary_linemaps into the matrix.
9559 * selftest.h (ASSERT_EQ): Reimplement in terms of...
9560 (ASSERT_EQ_AT): New macro.
9562 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
9565 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9566 Don't convert TImode in debug insn.
9568 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9570 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
9571 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
9572 (tree_type_common::lang_flag_7): New.
9573 (tree_type_common::spare): Reduce size.
9574 * tree.h (TYPE_ALIGN_OK): Remove.
9575 (TYPE_LANG_FLAG_7): New.
9576 (get_inner_reference): Adjust header.
9577 * print-tree.c (print_node): Adjust.
9578 * expr.c (get_inner_reference): Remove parameter keep_aligning.
9579 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
9580 calls to get_inner_reference.
9581 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
9582 handling of TYPE_ALIGN_OK.
9583 * builtins.c (get_object_alignment_2): Adjust call to
9584 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
9585 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
9587 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
9588 * cfgexpand.c (expand_debug_expr): Likewise.
9589 * dbxout.c (dbxout_expand_expr): Likewise.
9590 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
9591 loc_list_from_tree, fortran_common): Likewise.
9592 * fold-const.c (optimize_bit_field_compare,
9593 decode_field_reference, fold_unary_loc, fold_comparison,
9594 split_address_to_core_and_offset): Likewise.
9595 * gimple-laddress.c (execute): Likewise.
9596 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
9597 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
9598 * hsa-gen.c (gen_hsa_addr): Likewise.
9599 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
9600 * tsan.c (instrument_expr): Likewise.
9601 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
9602 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
9603 * tree-affine.c (tree_to_aff_combination,
9604 get_inner_reference_aff): Adjust calls to get_inner_reference.
9605 * tree-data-ref.c (split_constant_offset_1,
9606 dr_analyze_innermost): Likewise.
9607 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
9608 * tree-sra.c (ipa_sra_check_caller): Likewise.
9609 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
9610 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
9611 bswap_replace): Likewise.
9612 * tree-vect-data-refs.c (vect_check_gather,
9613 vect_analyze_data_refs): Likewise.
9614 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
9615 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
9618 2016-07-11 David Malcolm <dmalcolm@redhat.com>
9620 * Makefile.in (selftest-valgrind): New phony target.
9621 * function-tests.c (selftest::build_cfg): Delete pass instances
9622 created by the test.
9623 (selftest::convert_to_ssa): Likewise.
9624 (selftest::test_expansion_to_rtl): Likewise.
9625 * tree-cfg.c (selftest::test_linear_chain): Release dominator
9627 (selftest::test_diamond): Likewise.
9629 2016-07-11 Richard Biener <rguenther@suse.de>
9631 PR tree-optimization/71816
9632 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
9633 than replacing all of its operands.
9635 2016-07-11 Alan Modra <amodra@gmail.com>
9637 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
9638 (ctr<mode>): Add unspec.
9639 (ctr<mode>_internal*): Likewise.
9641 2016-07-08 James Bowman <james.bowman@ftdichip.com>
9643 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
9644 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
9646 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
9648 PR rtl-optimization/71621
9649 * lra-constraints.c (process_alt_operands): Check combination of
9652 2016-07-08 Jason Merrill <jason@redhat.com>
9653 Richard Biener <rguenther@suse.de>
9655 P0145: Refining Expression Order for C++.
9656 * gimplify.c (initial_rhs_predicate_for): New.
9657 (gimplfy_modify_expr): Gimplify RHS before LHS.
9659 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9662 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9663 Allow standard error handling to take over when a wrong number
9664 of arguments is presented to __builtin_vec_ld () or
9665 __builtin_vec_st ().
9667 2016-07-08 Jiong Wang <jiong.wang@arm.com>
9669 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
9674 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
9675 __builtin_aarch64_fmaxv2sf.
9676 (vmaxnmq_f32): Likewise.
9677 (vmaxnmq_f64): Likewise.
9678 (vminnm_f32): Likewise.
9679 (vminnmq_f32): Likewise.
9680 (vminnmq_f64): Likewise.
9682 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9685 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
9686 enable -mfloat128-hardware by default.
9687 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
9688 that IEEE 128-bit hardware support needs.
9689 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9690 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
9691 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
9692 floating point requires.
9693 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9694 -mfloat128 and -mfloat128-hardware changes.
9696 2016-07-08 Alan Hayward <alan.hayward@arm.com>
9698 PR tree-optimization/71667
9699 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
9701 2016-07-08 Martin Liska <mliska@suse.cz>
9704 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
9705 folding produces SAVE_EXPRs, thus return false for the type.
9707 2016-07-07 Martin Liska <mliska@suse.cz>
9709 * file-find.c (remove_prefix): New function.
9710 * file-find.h (remove_prefix): Declare the function.
9711 * gcc-ar.c (main): Skip a folder of the wrapper if
9712 a wrapped binary would point to the same file.
9714 2016-07-07 Jan Hubicka <jh@suse.cz>
9716 * tree-scalar-evolution.c (iv_can_overflow_p): export.
9717 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
9718 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9720 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
9723 * ipa-inline-analysis.c (compute_inline_parameters): Set
9724 local.can_change_signature to false for intrumentation
9727 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9729 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9730 with TARGET_HAVE_MOVT.
9731 (TARGET_HAVE_MOVT): Define.
9732 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9733 availability with TARGET_HAVE_MOVT.
9734 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9736 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9738 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9739 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9740 * config/arm/constraints.md (define_constraint "j"): Use
9741 TARGET_HAVE_MOVT to check MOVT availability.
9743 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9745 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9747 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9749 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9750 (armv8-m.main): Likewise.
9751 (armv8-m.main+dsp): Likewise.
9752 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9753 (FL_FOR_ARCH8M_MAIN): Likewise.
9754 * config/arm/arm-tables.opt: Regenerate.
9755 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9756 armv8-m.main+dsp to BE8_LINK_SPEC.
9757 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9758 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9759 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9760 Baseline and Mainline.
9761 (arm_option_override_internal): Also disable arm_restrict_it when
9762 !arm_arch_notm. Update comment for -munaligned-access to also cover
9764 (arm_file_start): Increase buffer size for printing architecture name.
9765 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9766 and armv8-m.main+dsp.
9767 (mno-unaligned-access): Clarify that this is disabled by default for
9768 ARMv8-M Baseline architectures as well.
9770 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
9772 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9773 decide whether to prevent some libgcc routines being included for some
9774 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9775 link between this condition and the one in
9776 libgcc/config/arm/lib1func.S.
9778 2016-07-07 Richard Biener <rguenther@suse.de>
9780 * tree-ssa-pre.c: Include alias.h.
9781 (compute_avail): If we have multiple VN_REFERENCEs with the
9782 same hashtable entry adjust that to make it a valid replacement
9783 for all of them with respect to alignment and aliasing
9784 when doing insertion.
9785 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9786 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9788 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
9792 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9793 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9796 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9798 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9799 (adjust_mems): Adjust.
9800 (adjust_insn): Likewise.
9801 (prepare_call_arguments): Likewise.
9803 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9805 * gcse.c (struct ls_expr): Make stores field a vector.
9806 (ldst_entry): Adjust.
9807 (free_ldst_entry): Likewise.
9808 (print_ldst_list): Likewise.
9809 (compute_ld_motion_mems): Likewise.
9810 (update_ld_motion_stores): Likewise.
9812 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9814 * gcse.c (struct ls_expr): Remove loads field.
9815 (ldst_entry): Adjust.
9816 (free_ldst_entry): Likewise.
9817 (print_ldst_list): Likewise.
9818 (compute_ld_motion_mems): Likewise.
9820 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9822 * store-motion.c (struct st_expr): Make antic_stores a vector.
9823 (st_expr_entry): Adjust.
9824 (free_st_expr_entry): Likewise.
9825 (print_store_motion_mems): Likewise.
9826 (find_moveable_store): Likewise.
9827 (compute_store_table): Likewise.
9828 (remove_reachable_equiv_notes): Likewise.
9829 (replace_store_insn): Likewise.
9830 (build_store_vectors): Likewise.
9832 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9834 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9835 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9837 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
9839 PR tree-optimization/71518
9840 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9841 misalign also for outer loops with negative step.
9843 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
9845 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9846 (cortex_a53_shift): Add mov_shift.
9847 (cortex_a53_shift_reg): Add new reservation for register shifts.
9848 (cortex_a53_alu): Remove bfm.
9849 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9850 (cortex_a53_alu_extr): Add new reservation for EXTR.
9851 (bypasses): Improve bypass modelling.
9853 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9856 * config/avr/avr.c (avr_asm_select_section): Strip off
9857 SECTION_DECLARED from flags when calling get_section.
9859 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9861 * tree-vectorizer.h (vect_memory_access_type): Add
9862 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9863 * tree-vect-stmts.c (compare_step_with_zero): New function.
9864 (perm_mask_for_reverse): Move further up file.
9865 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9867 (get_negative_load_store_type): New function.
9868 (get_load_store_type): Call it. Add an ncopies argument.
9869 (vectorizable_mask_load_store): Update call accordingly and
9870 remove tests for negative steps.
9871 (vectorizable_store, vectorizable_load): Likewise. Handle new
9872 memory_access_types.
9874 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9876 * tree-vectorizer.h (vect_memory_access_type): New enum.
9877 (_stmt_vec_info): Add a memory_access_type field.
9878 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9879 (vect_model_store_cost): Take an access type instead of a boolean.
9880 (vect_model_load_cost): Likewise.
9881 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9882 vect_model_store_cost and vect_model_load_cost.
9883 * tree-vect-stmts.c (vec_load_store_type): New enum.
9884 (vect_model_store_cost): Take an access type instead of a
9885 store_lanes_p boolean. Simplify tests.
9886 (vect_model_load_cost): Likewise, but for load_lanes_p.
9887 (get_group_load_store_type, get_load_store_type): New functions.
9888 (vectorizable_store): Use get_load_store_type. Record the access
9889 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9890 (vectorizable_load): Likewise.
9891 (vectorizable_mask_load_store): Likewise. Replace is_store
9892 variable with vls_type.
9894 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9896 * tree-vectorizer.h (vect_grouped_load_supported): Add a
9897 single_element_p parameter.
9898 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9899 Check the PR65518 case here rather than in vectorizable_load.
9900 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9901 * tree-vect-stmts.c (vectorizable_load): Likewise.
9903 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9905 * tree-vectorizer.h (gather_scatter_info): New structure.
9906 (vect_check_gather_scatter): Return a bool rather than a decl.
9907 Replace return-by-pointer arguments with a single
9908 gather_scatter_info *.
9909 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9910 (vect_analyze_data_refs): Update call accordingly.
9911 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9912 (vectorizable_mask_load_store): Likewise. Also record the
9913 offset dt and vectype in the gather_scatter_info.
9914 (vectorizable_store): Likewise.
9915 (vectorizable_load): Likewise.
9917 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9919 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9920 strided groups, use the cost of N scalar accesses instead
9921 of ncopies vector accesses.
9922 (vect_model_load_cost): Likewise.
9924 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9926 * tree-vect-stmts.c (vect_cost_group_size): Delete.
9927 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
9928 variable to indicate when once-per-group costs are being used.
9929 (vect_model_load_cost): Likewise. Fix comment and misindented code.
9931 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
9933 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9934 peeling-for-gaps condition.
9936 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9938 * config/s390/s390.c (s390_expand_vec_init): Force initializer
9939 element to register if it doesn't match general_operand.
9941 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
9942 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9944 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
9946 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
9947 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
9948 (SIGNBIT): New mode iterator.
9949 (Fsignbit): New mode attribute.
9950 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
9951 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
9952 when direct moves are available.
9953 (signbit<mode>2_dm): New define_insn_and_split).
9954 (signbit<mode>2_dm2): New define_insn.
9956 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9958 PR rtl-optimization/71594
9959 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
9960 into subregs of appropriate mode before trying to emit a conditional
9963 2016-07-05 Jan Hubicka <jh@suse.cz>
9965 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
9966 (simple_iv): Use it.
9968 2016-07-05 Jan Hubicka <jh@suse.cz>
9970 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
9972 2016-07-05 Jiong Wang <jiong.wang@arm.com>
9974 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
9977 2016-07-05 Jan Hubicka <jh@suse.cz>
9979 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
9982 2016-07-05 Richard Biener <rguenther@suse.de>
9984 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
9985 Handle empty else block.
9986 (is_feasible_trace): Likewise.
9987 (split_paths): Likewise.
9989 2016-07-05 Richard Biener <rguenther@suse.de>
9991 * tree-loop-distribution.c (distribute_loop): Fix issue with
9992 the cost model loop.
9994 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
9996 * config/arm/neon-testgen.ml: Delete.
9997 * config/arm/neon.ml: Delete.
9999 2016-07-04 Jakub Jelinek <jakub@redhat.com>
10002 * tree.c (attribute_value_equal): Use get_attribute_name instead of
10003 directly using TREE_PURPOSE.
10005 2016-07-04 Jiong Wang <jiong.wang@arm.com>
10007 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
10008 * config/aarch64/aarch64_neon.h: Likewise.
10009 * config/aarch64/arm_neon.h: Likewise.
10010 * config/aarch64/atomics.md: Likewise.
10011 * config/aarch64/aarch64-simd-builtins.def: Likewise.
10012 * doc/invoke.texi: Likewise.
10014 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10016 * config/s390/s390.md: Add "z13" cpu_facility.
10017 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
10018 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
10019 condition" type instructions.
10021 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
10022 Jeff Law <law@redhat.com>
10024 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
10025 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
10027 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
10029 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
10030 permutation for TARGET_AVX512F.
10031 (ix86_expand_vec_one_operand_perm_avx512): New function.
10032 (expand_vec_perm_1): Invoke introduced function.
10033 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10034 it may be not valid after vectorization.
10036 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10039 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
10040 typo in comment. Only force to memory if it is a weak
10041 external reference.
10043 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
10044 Jiong Wang <jiong.wang@arm.com>
10046 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
10047 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
10048 (AARCH64_FL_F16): New.
10049 (AARCH64_FL_FOR_ARCH8_2): New.
10050 (AARCH64_ISA_8_2): New.
10051 (AARCH64_ISA_F16): New.
10052 (TARGET_FP_F16INST): New.
10053 (TARGET_SIMD_F16INST): New.
10054 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
10055 ("fp"): Disabling "fp" also disables "fp16".
10056 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
10057 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
10058 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
10059 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
10061 2016-07-04 Jan Beulich <jbeulich@suse.com>
10063 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
10065 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10068 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
10069 the insns, use an insn form that does not adjust the offset on
10070 little endian systems.
10072 2016-07-01 Jan Beulich <jbeulich@suse.com>
10074 * varasm.c (get_variable_section): Validate initializer in
10075 named .bss-like sections.
10077 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10079 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
10080 Exchange the order of the second and third operands in the vpermr
10081 instruction tmeplate.
10083 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
10086 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
10087 Disallow TDmode values.
10089 2016-07-01 Alan Modra <amodra@gmail.com>
10091 PR rtl-optimization/71709
10092 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
10093 being set, not referenced.
10095 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10097 PR tree-optimization/70729
10098 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
10099 of loop since it can be not valid after transformation.
10101 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10103 * config/arm/arm.c (thumb_reload_in_hi): Delete.
10104 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
10106 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
10108 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
10111 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
10114 * config/rs6000/constraints.md (wY constraint): New constraint to
10115 match the requirements for the LXSD and STXSD instructions.
10116 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
10117 predicate to match the requirements for the LXSD and STXSD
10119 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
10120 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
10121 to make sure that the bottom 2 bits of offset are 0, the address
10122 form is offsettable, and no updating is done in the address mode.
10123 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
10124 (movdi_internal32): Likewise
10125 (movdi_internal64): Likewise.
10127 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10129 PR tree-optimization/71707
10130 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
10131 strinfo even for ADDR_EXPR ptr.
10133 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
10135 * config/rs6000/altivec.md (darn_32): Change the condition to
10136 TARGET_P9_MISC instead of TARGET_MODULO.
10137 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
10138 condition expression.
10139 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
10140 condition expression.
10141 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
10142 (DFP_TEST): New code iterator.
10143 (dfptstsfi_<code>_mode>): New define_expand.
10144 (*dfp_sgnfcnc_<mode>): New define_insn.
10145 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
10146 definition next to BU_P9_MISC_1 definition and change the MASK
10147 value to RS6000_BTM_P9_MISC.
10148 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
10149 (BU_P9_64BIT_MISC_0): Likewise.
10150 (BU_P9_DFP_MISC_0): New macro definition.
10151 (BU_P9_DFP_MISC_1): New macro definition.
10152 (BU_P9_DFP_MISC_2): New macro definition.
10153 (BU_P9_DFP_OVERLOAD_1): New macro definition.
10154 (BU_P9_DFP_OVERLOAD_2): New macro definition.
10155 (BU_P9_DFP_OVERLOAD_3): New macro definition.
10156 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
10157 (TSTSFI_LT_TD): Likewise.
10158 (TSTSFI_EQ_DD): Likewise.
10159 (TSTSFI_EQ_TD): Likewise.
10160 (TSTSFI_GT_DD): Likewise.
10161 (TSTSFI_GT_TD): Likewise.
10162 (TSTSFI_OV_DD): Likewise.
10163 (TSTSFI_OV_TD): Likewise.
10164 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
10165 (TSTSFI_LT_DD): Likewise.
10166 (TSTSFI_LT_TD): Likewise.
10167 (TSTSFI_EQ): Likewise.
10168 (TSTSFI_EQ_DD): Likewise.
10169 (TSTSFI_EQ_TD): Likewise.
10170 (TSTSFI_GT): Likewise.
10171 (TSTSFI_GT_DD): Likewise.
10172 (TSTSFI_GT_TD): Likewise.
10173 (TSTSFI_OV): Likewise.
10174 (TSTSFI_OV_DD): Likewise.
10175 (TSTSFI_OV_TD): Likewise.
10176 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10177 overloaded test significance functions.
10178 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10179 OPTION_MASK_P9_MISC into the representation of this mask.
10180 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
10182 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
10183 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
10185 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
10186 argument is a 6-bit unsigned literal value if the icode argument
10187 represents a DFP test significance built-in call.
10188 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
10189 flag used independently and in combination with the
10190 RS6000_BTM_64BIT flag.
10191 (rs6000_opt_masks): Add entry for power9-misc command-line option.
10192 (rs6000_builtin_mask_names): Add entry for power9-misc
10193 command-line option.
10194 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
10195 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
10196 RS6000_BTM_P9_MISC macros.
10197 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
10198 option and change the description of the -mpower9-vector option to
10199 enable only vector instructions, removing its erroneously claimed
10200 support for scalar instructions.
10201 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10202 the ISA 3.0 digital floating point test significance built-in
10205 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
10207 * config/aarch64/aarch64.c (cortexa35_tunings):
10208 Enable AES fusion. Use cortexa57_branch_cost.
10209 (cortexa53_tunings): Use cortexa57_branch_cost.
10210 (cortexa72_tunings): Use cortexa57_branch_cost.
10211 Use AUTOPREFETCHER_WEAK.
10212 (cortexa73_tunings): Use cortexa57_branch_cost.
10214 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10215 James Greenhalgh <james.greenhalgh@arm.com>
10217 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
10218 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
10219 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
10220 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
10221 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
10222 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
10223 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
10224 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
10225 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
10226 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
10227 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
10228 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
10229 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
10232 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
10233 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10235 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
10237 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
10239 2016-06-30 David Malcolm <dmalcolm@redhat.com>
10242 * gcc.c (driver::build_option_suggestions): Pass "option" to
10243 add_misspelling_candidates.
10244 * opts-common.c (add_misspelling_candidates): Add "option" param;
10245 use it to avoid adding negated forms for options marked with
10247 * opts.h (add_misspelling_candidates): Add "option" param.
10249 2016-06-30 Jakub Jelinek <jakub@redhat.com>
10251 PR middle-end/71693
10252 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
10253 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
10254 first when permuting bitwise operation with rotate. Cast
10255 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
10257 2016-06-29 David Malcolm <dmalcolm@redhat.com>
10259 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
10260 for misspelled param names.
10261 * params.c: Include spellcheck.h.
10262 (find_param_fuzzy): New function.
10263 * params.h (find_param_fuzzy): New prototype.
10264 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
10265 * spellcheck.h (struct edit_distance_traits<const char *>):
10268 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
10270 * config/rs6000/predicates.md (const_0_to_7_operand): New
10271 predicate, recognize 0..7.
10272 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10273 support for doing extracts from V16QImode, V8HImode, V4SImode
10275 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
10276 vector extract support.
10277 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
10278 for ISA 3.0 vector extract.
10279 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
10280 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
10281 extracts of a constant element number from small integer vectors
10282 on 64-bit ISA 3.0 systems.
10283 (vsx_extract_<mode>_di): Likewise.
10284 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
10285 say when we can do ISA 3.0 vector extracts.
10286 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
10287 registers, using the stxsiwx instruction.
10289 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
10291 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
10292 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
10293 qdf24xx_regmove_cost, qdf24xx_tunings): New.
10294 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
10295 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
10296 * config/arm/arm.c (arm_qdf24xx_tune): New.
10298 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
10300 * config/aarch64/aarch64.c (cortexa53_tunings):
10301 Increase loop alignment to 8. Set function alignment to 16.
10302 (cortexa35_tunings): Likewise.
10303 (cortexa57_tunings): Increase loop alignment to 8.
10304 (cortexa72_tunings): Likewise.
10305 (cortexa73_tunings): Likewise.
10307 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
10309 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
10310 for arm_fp16_ok and arm_fp16_hw.
10311 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
10312 arm_fp16_alternative.
10314 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
10316 PR tree-optimization/71655
10317 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
10318 types when swapping operands.
10320 2016-06-29 Martin Liska <mliska@suse.cz>
10322 PR middle-end/71585
10323 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
10324 * ipa-inline-transform.c (inline_call): Remove unnecessary call
10325 of build_optimization_node.
10327 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
10329 PR tree-optimization/70729
10330 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
10331 independent in loops having positive safelen value.
10332 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
10333 it may be not valid after vectorization.
10335 2016-06-29 Jakub Jelinek <jakub@redhat.com>
10337 PR tree-optimization/71625
10338 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
10339 is sorted by ascending list->offset. If PTR is non-NULL and there is
10340 previous strinfo, call get_stridx_plus_constant.
10341 (get_stridx): Pass exp as second argument to get_addr_stridx.
10342 (addr_stridxptr): Add missing list = list->next, so that there can be
10343 more than one entries in the list. Bump limit from 16 to 32. Ensure
10344 the list is sorted by ascending list->offset.
10345 (get_stridx_plus_constant): Adjust so that it can be also called with
10346 ADDR_EXPR instead of SSA_NAME as PTR.
10347 (handle_char_store): Pass NULL_TREE as second argument to
10350 2016-06-29 Richard Biener <rguenther@suse.de>
10352 PR rtl-optimization/68961
10353 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
10355 2016-06-29 Richard Biener <rguenther@suse.de>
10357 PR middle-end/71002
10358 * alias.c (component_uses_parent_alias_set_from): Handle
10359 type punning through union accesses by using the union alias set.
10360 * gimple.c (gimple_get_alias_set): Remove union type punning case.
10362 2016-07-29 Richard Biener <rguenther@suse.de>
10364 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
10365 precision not matching mode precision.
10367 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
10369 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
10370 pa_output_arg_descriptor.
10371 (call_val_symref_64bit_post_reload): Likewise.
10372 (call_val_powf_64bit_post_reload): Likewise.
10373 (sibcall_internal_symref_64bit): Likewise.
10374 (sibcall_value_internal_symref_64bit): Likewise.
10376 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10378 PR middle-end/71626
10379 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
10380 a constant, force its SUBREG_REG into memory or register instead
10383 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10386 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
10387 * doc/invoke.texi (AVR Options): Document it.
10389 2016-06-28 Walter Lee <walt@tilera.com>
10391 * config/tilegx/linux.h: Do not include arch/icache.h
10392 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10393 * config/tilepro/linux.h: Do not include arch/icache.h
10394 (CLEAR_INSN_CACHE): Provide inlined definition directly.
10396 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
10398 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
10399 for big-endian BIT_FIELD_REF.
10401 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
10403 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
10404 ('size' attribute): Add '128'.
10406 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
10407 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
10408 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
10409 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
10410 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
10411 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
10412 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
10413 *trunc<mode>df2_odd): Set size attribute to '128'.
10414 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
10415 * config/rs6000/power6.md (power6-fp): Include dfp type.
10416 * config/rs6000/power7.md (power7-fp): Likewise.
10417 * config/rs6000/power8.md (power8-fp): Likewise.
10418 * config/rs6000/power9.md: New file.
10419 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
10420 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
10421 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
10423 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
10424 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
10425 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
10426 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
10427 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
10428 dfp_dscri_<mode>): Change type attribute to dfp.
10429 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
10430 attribute to vecsimple.
10431 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
10432 and prefetch streams.
10433 (rs6000_option_override_internal): Remove temporary code setting
10434 tuning to power8. Don't set rs6000_sched_groups for power9.
10435 (last_scheduled_insn): Change to rtx_insn *.
10436 (divide_cnt, vec_load_pendulum): New variables.
10437 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
10438 (rs6000_issue_rate): Set issue rate for Power9.
10439 (is_power9_pairable_vec_type): New.
10440 (power9_sched_reorder2): New.
10441 (rs6000_sched_reorder2): Call new function for Power9 specific
10443 (insn_must_be_first_in_group): Remove Power9.
10444 (insn_must_be_last_in_group): Likewise.
10445 (force_new_group): Likewise.
10446 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
10447 Initialize divide_cnt/vec_load_pendulum.
10448 (_rs6000_sched_context, rs6000_init_sched_context,
10449 rs6000_set_sched_context): Handle context save/restore of new
10452 2016-06-28 Richard Biener <rguenther@suse.de>
10454 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10455 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
10456 COMPONENT_REF operand.
10457 (nonoverlapping_component_refs_p): Likewise.
10458 * stor-layout.c (start_bitfield_representative): Mark
10459 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
10461 2016-06-28 Jakub Jelinek <jakub@redhat.com>
10463 * Makefile.in: Don't cat ../stage_current if it does not exist.
10465 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
10466 last argument is a bit-field.
10468 PR rtl-optimization/71673
10469 * internal-fn.c (expand_arith_overflow_result_store): Use
10470 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
10471 expand_simple_binop.
10473 PR middle-end/66867
10474 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
10475 expand_ifn_atomic_compare_exchange): New functions.
10476 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
10477 * tree.h (build_call_expr_internal_loc): Rename to ...
10478 (build_call_expr_internal_loc_array): ... this. Fix up type of
10480 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
10481 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
10482 ATOMIC_COMPARE_EXCHANGE result.
10483 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
10484 * gimple-fold.h (optimize_atomic_compare_exchange_p,
10485 fold_builtin_atomic_compare_exchange): New prototypes.
10486 * gimple-fold.c (optimize_atomic_compare_exchange_p,
10487 fold_builtin_atomic_compare_exchange): New functions..
10488 * tree-ssa.c (execute_update_addresses_taken): If
10489 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
10490 of call when finding addressable vars, and if such var becomes
10491 non-addressable, call fold_builtin_atomic_compare_exchange.
10493 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
10496 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
10497 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
10499 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
10501 * config/rs6000/rs6000.md ('type' attribute): Add
10502 veclogical,veccmpfx,vecexts,vecmove insn types.
10503 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
10504 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
10505 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
10506 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
10507 *nabs<mode>2_hw): Change type to vecmove.
10508 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
10509 *boolcc<mode>3_internal, *eqv<mode>3_internal,
10510 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
10511 *ieee_128bit_vsx_abs<mode>2_internal,
10512 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
10513 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
10514 *ieee128_mtvsrd_32bit): Change type to veclogical.
10515 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10516 *movdi_internal32, *movdi_internal64): Update insn types.
10517 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
10518 vsx_extract_<mode>): Change type to veclogical.
10519 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
10520 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
10521 *vsx_sign_extend_si_v2di): Change type to vecexts.
10522 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
10523 type to veclogical.
10524 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
10525 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
10526 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
10527 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
10528 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
10529 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
10530 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
10531 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
10532 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
10533 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
10534 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
10535 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
10536 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
10537 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
10538 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
10539 (ppc7450-vecsimple): Add veclogical, vecmove.
10540 (ppc7450-veccmp): Add veccmpfx.
10541 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
10543 (ppc8540_vector_compare): Add veccmpfx.
10544 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
10545 * config/rs6000/cell.md (cell-fp): Add fpsimple.
10546 (cell-vecsimple): Add veclogical, vecmove.
10547 (cell-veccmp): Add veccmpfx.
10548 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
10549 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
10551 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
10552 * config/rs6000/power4.md (power4-fp): Add fpsimple.
10553 (power4-vecsimple): Add veclogical, vecmove.
10554 (power4-veccmp): Add veccmpfx.
10555 * config/rs6000/power5.md (power5-fp): Add fpsimple.
10556 * config/rs6000/power6.md (power6-fp): Add fpsimple.
10557 (power6-vecsimple): Add veclogical, vecmove.
10558 (power6-veccmp): Add veccmpfx.
10559 * config/rs6000/power7.md (power7-fp): Add fpsimple.
10560 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
10561 * config/rs6000/power8.md (power8-fp): Add fpsimple.
10562 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
10563 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
10564 * config/rs6000/titan.md (titan_fp): Add fpsimple.
10565 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
10567 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
10569 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
10572 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10573 OPTION_MASK_P9_DFORM_VECTOR.
10574 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10575 disable -mpower9-dform-vector when using reload.
10576 (quad_address_p): Remove 'gpr_p' argument and all associated code.
10577 New 'strict' argument. Update all callers. Add strict addressing
10579 (rs6000_legitimate_offset_address_p): Remove call to
10580 virtual_stack_registers_memory_p.
10581 (rs6000_legitimize_reload_address): Add quad address support.
10582 (rs6000_legitimate_address_p): Move call to quad_address_p above
10583 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
10584 to account for new strict usage.
10585 (rs6000_output_move_128bit): Adjust quad_address_p args to account
10586 for new strict usage.
10587 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
10589 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
10596 * config/i386/i386.c (ix86_spill_class): Disable condition to
10597 always return NO_REGS.
10599 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
10601 * predict.c: Include gimple-pretty-print.h
10602 (predicted_by_loop_heuristics_p): Check also
10603 PRED_LOOP_EXIT_WITH_RECURSION
10604 (predict_loops): Find self recursive calls and use special purpose
10605 predictors for them; dump log about decisions.
10606 (pass_profile::execute): Dump info about #of iterations.
10607 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10608 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
10610 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
10612 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
10613 output_asm_insn calls and shorten long lines. Output .CALL
10614 argument descriptor using pa_output_arg_descriptor. Add various
10615 inline $$dyncall and other optimizations.
10616 (pa_attr_length_indirect_call): Adjust ordering and lengths.
10618 2016-06-25 Jakub Jelinek <jakub@redhat.com>
10620 PR tree-optimization/71643
10621 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
10624 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
10625 leak a bitmap if dep_bb is NULL.
10627 PR tree-optimization/71631
10628 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
10629 to rewrite_expr_tree even if negate_result, move new_lhs var
10630 declaration and initialization earlier, for powi_result set afterwards
10631 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
10632 if new_lhs != lhs, and don't shadow gsi var.
10634 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10636 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
10637 Add in_loop parameter.
10638 (predict_loops): Add loop guard heuristics.
10639 * predict.def (PRED_LOOP_GUARD): New heuristics.
10641 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
10643 * predict.c: Include ipa-utils.h
10644 (tree_bb_level_prediction): Predict recursive calls.
10645 (tree_estimate_probability_bb): Skip inexpensive calls for call
10647 * predict.def (PRED_RECURSIVE_CALL): New.
10649 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10651 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
10652 (BU_FLOAT128_1): Likewise.
10654 (COPYSIGNQ): Likewise.
10655 (RS6000_BUILTIN_NANQ): Likewise.
10656 (RS6000_BUILTIN_NANSQ): Likewise.
10657 (RS6000_BUILTIN_INFQ): Likewise.
10658 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
10659 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
10660 (TARGET_FOLD_BUILTIN): New #define.
10661 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
10662 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
10663 (rs6000_fold_builtin): New target hook implementation, handling
10664 folding of 128-bit NaNs and infinities.
10665 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
10666 entries are filled in to avoid problems during bootstrap
10667 self-test; define builtins for 128-bit NaNs and infinities.
10668 (rs6000_opt_mask): Add entry for float128.
10669 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
10670 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
10671 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
10672 (const_str_type_node): New #define.
10673 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
10674 to a define_expand that dispatches to either copysign<mode>3_soft
10675 or copysign<mode>3_hard.
10676 (copysign<mode>3_hard): Rename from copysign<mode>3.
10677 (copysign<mode>3_soft): New define_insn.
10678 * doc/extend.texi: Document new builtins.
10680 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10682 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
10683 PRIu64 instead of lu.
10685 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
10688 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
10689 copy the type name.
10691 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10693 PR tree-optimization/71647
10694 * omp-low.c (lower_rec_input_clauses): Convert
10695 omp_clause_aligned_alignment (c) to size_type_node for the
10696 last argument of __builtin_assume_aligned.
10698 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
10700 * configure.ac (calling ___tls_get_addr via GOT): New
10701 assembler/linker check.
10702 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
10703 assembler and linker supports calling ___tls_get_addr via GOT.
10704 Otherise, defined to 0.
10705 * config.in: Regenerated.
10706 * configure: Likewise.
10707 * config/i386/constraints.md (Yb): New constraint.
10708 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
10709 (REG_CLASS_NAMES): Likewise.
10710 (REG_CLASS_CONTENTS): Likewise.
10711 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
10712 the b constraint with the Yb constraint. Call ___tls_get_addr
10713 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
10715 (*tls_local_dynamic_base_32_gnu): Likewise.
10716 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
10717 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
10718 (*tls_local_dynamic_base_64_<mode>): Likewise.
10720 2016-06-24 Martin Liska <mliska@suse.cz>
10722 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10723 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10725 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10726 argument to true if the expected number of iterations is
10729 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
10731 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10732 assemble for 32bit target.
10733 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10734 and $ld_ix86_gld_32_opt to link for 32bit target.
10735 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10736 * configure: Regenerate.
10738 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10740 * config/arm/arm.c (int_log2): Delete definition and prototype.
10741 (shift_op): Use exact_log2 instead of int_log2.
10742 (vfp3_const_double_for_fract_bits): Likewise.
10744 2016-06-24 Jakub Jelinek <jakub@redhat.com>
10746 * internal-fn.c (expand_arith_set_overflow): New function.
10747 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10749 (expand_arith_overflow_result_store): Likewise. Handle precision
10750 smaller than mode precision.
10751 * tree-vrp.c (extract_range_basic): For imag part, handle
10752 properly signed 1-bit precision result.
10753 * doc/extend.texi (__builtin_add_overflow): Document that last
10754 argument can't be pointer to enumerated or boolean type.
10755 (__builtin_add_overflow_p): Document that last argument can't
10756 have enumerated or boolean type.
10758 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10759 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10761 * config/rs6000/predicates.md (splat_input_operand): Rework.
10762 Don't allow constants, since the insns that use this predicate
10763 don't support constants. Constants are handled by other insns
10764 that are created via combine. During and after register
10765 allocation, only allow indexed or indirect addresses, and not
10766 general addresses. Only allow modes supported by the hardware.
10767 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10768 comment. Move check for using VSPLTIS<x> to a common location,
10769 instead of doing it in two different places.
10771 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
10773 * config/i386/driver-i386.c (host_detect_local_cpu): Set
10774 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10775 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10776 signature_CENTAUR_ebx.
10778 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
10782 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10783 (as_ix86_gas_32_opt): This.
10784 (ld_ix86_tls_ldm_opt): Renamed to ...
10785 (ld_ix86_gld_32_opt): This.
10786 (R_386_TLS_LDM reloc): Updated.
10787 (R_386_GOT32X reloc): New assembler/linker check.
10788 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
10789 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
10791 * config.in: Regenerated.
10792 * configure: Likewise.
10793 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10794 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10795 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10796 if ix86_force_load_from_GOT_p returns true.
10797 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10798 ix86_force_load_from_GOT_p returns true.
10799 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10800 the external function address via the GOT slot.
10801 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10802 HAVE_AS_IX86_GOT32X before returning false.
10803 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10804 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10806 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
10808 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10810 2016-06-23 Andi Kleen <ak@linux.intel.com>
10812 * Makefile.in: Regenerate.
10813 * doc/install.texi: Document autoprofiledbootstrap.
10815 2016-06-23 Andi Kleen <ak@linux.intel.com>
10817 * config/i386/gcc-auto-profile: New file.
10819 2016-06-23 Martin Liska <mliska@suse.cz>
10821 PR middle-end/71619
10822 * predict.c (predict_loops): Revert the hunk that was removed
10825 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
10827 * config.gcc: Add support for arm*-*-phoenix* targets.
10828 * config/arm/t-phoenix: New.
10829 * config/phoenix.h: New.
10831 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
10832 H.J. Lu <hongjiu.lu@intel.com>
10835 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10836 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10837 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10838 ix86_force_load_from_GOT_p returns true.
10839 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10840 ix86_force_load_from_GOT_p returns true.
10841 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10842 ix86_force_load_from_GOT_p returns true.
10843 (ix86_expand_move): Load the external function address via the
10844 GOT slot if ix86_force_load_from_GOT_p returns true.
10845 * config/i386/predicates.md (x86_64_immediate_operand): Return
10846 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10847 (x86_64_zext_immediate_operand): Ditto.
10849 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
10851 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10853 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10856 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10857 * diagnostic.c (pedwarn_at_rich_loc): New function.
10858 * spellcheck.h (best_match::best_match): Add a
10859 "best_distance_so_far" optional parameter.
10860 (best_match::set_best_so_far): New method.
10861 (best_match::get_best_distance): New accessor.
10862 (best_match::get_best_candidate_length): New accessor.
10864 2016-06-22 Nick Clifton <nickc@redhat.com>
10866 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10867 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10868 modes are accepted as well.
10869 (ucompare_loc_descriptor): Likewise.
10870 (minmax_loc_descriptor): Likewise.
10871 (clz_loc_descriptor): Likewise.
10872 (popcount_loc_descriptor): Likewise.
10873 (bswap_loc_descriptor): Likewise.
10874 (rotate_loc_descriptor): Likewise.
10875 (mem_loc_descriptor): Likewise.
10876 (loc_descriptor): Likewise.
10878 2016-06-22 David Malcolm <dmalcolm@redhat.com>
10880 * common.opt (fdiagnostics-parseable-fixits): New option.
10881 * diagnostic.c: Include "selftest.h".
10882 (print_escaped_string): New function.
10883 (print_parseable_fixits): New function.
10884 (diagnostic_report_diagnostic): Call print_parseable_fixits.
10885 (selftest::assert_print_escaped_string): New function.
10886 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10887 (selftest::test_print_escaped_string): New function.
10888 (selftest::test_print_parseable_fixits_none): New function.
10889 (selftest::test_print_parseable_fixits_insert): New function.
10890 (selftest::test_print_parseable_fixits_remove): New function.
10891 (selftest::test_print_parseable_fixits_replace): New function.
10892 (selftest::diagnostic_c_tests): New function.
10893 * diagnostic.h (struct diagnostic_context): Add field
10894 "parseable_fixits_p".
10895 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10896 -fdiagnostics-parseable-fixits.
10897 (-fdiagnostics-parseable-fixits): New option.
10898 * opts.c (common_handle_option): Handle
10899 -fdiagnostics-parseable-fixits.
10900 * selftest-run-tests.c (selftest::run_tests): Call
10901 selftest::diagnostic_c_tests.
10902 * selftest.h (selftest::diagnostic_c_tests): New prototype.
10904 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
10906 PR tree-optimization/71488
10907 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10908 comparison of boolean vectors.
10909 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10910 of boolean vectors using bitwise operations.
10912 2016-06-22 Andreas Schwab <schwab@suse.de>
10914 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10915 Remove declaration.
10917 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
10919 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10921 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
10923 * config/i386/i386.c (print_reg): Emit an error message on attempt to
10926 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10928 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10929 * config/arm/arm-cores.def (cortex-a73): New entry.
10930 (cortex-a73.cortex-a35): Likewise.
10931 (cortex-a73.cortex-a53): Likewise.
10932 * config/arm/arm-tables.opt: Regenerate.
10933 * config/arm/arm-tune.md: Likewise.
10934 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10935 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10936 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10937 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10938 * doc/invoke.texi (ARM Options): Document cortex-a73,
10939 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10941 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10943 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
10944 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
10945 (cortex-a73.cortex-a35): Likewise.
10946 (cortex-a73.cortex-a53): Likewise.
10947 * config/aarch64/aarch64-tune.md: Regenerate.
10948 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
10949 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
10952 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10954 * configure.ac (gcc_cv_as_compress_debug): Remove
10955 --compress-debug-sections as extra as switch.
10956 Handle gas --compress-debug-sections=type.
10957 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
10958 Handle gld --compress-debug-sections=type.
10959 * configure: Regenerate.
10961 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
10963 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
10965 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
10967 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
10968 (do_rewrite): likewise.
10970 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10972 * common/config/mep/mep-common.c: Remove.
10973 * config.gcc: Remove mep-* support.
10974 * config/mep/constraints.md: Remove.
10975 * config/mep/default.h: Remove.
10976 * config/mep/intrinsics.h: Remove.
10977 * config/mep/intrinsics.md: Remove.
10978 * config/mep/ivc2-template.h: Remove.
10979 * config/mep/mep-c5.cpu: Remove.
10980 * config/mep/mep-core.cpu: Remove.
10981 * config/mep/mep-default.cpu: Remove.
10982 * config/mep/mep-ext-cop.cpu: Remove.
10983 * config/mep/mep-intrin.h: Remove.
10984 * config/mep/mep-ivc2.cpu: Remove.
10985 * config/mep/mep-pragma.c: Remove.
10986 * config/mep/mep-protos.h: Remove.
10987 * config/mep/mep.c: Remove.
10988 * config/mep/mep.cpu: Remove.
10989 * config/mep/mep.h: Remove.
10990 * config/mep/mep.md: Remove.
10991 * config/mep/mep.opt: Remove.
10992 * config/mep/predicates.md: Remove.
10993 * config/mep/t-mep: Remove.
10994 * doc/install.texi: Remove mep-* documentation.
10995 * doc/md.texi: Likewise.
10997 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10999 * config.gcc: Remove support for avr-rtems.
11000 * config/avr/gen-avr-mmcu-specs.c: Likewise.
11001 * config/avr/rtems.h: Remove.
11002 * config/avr/t-rtems: Remove.
11004 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11006 * config.gcc: Remove m32r-rtems support.
11007 * config/m32r/rtems.h: Remove.
11009 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11011 * config.gcc: Remove h8300-rtems support.
11012 * config/h8300/rtems.h: Remove.
11013 * config/h8300/t-rtems: Remove.
11015 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11017 * config.gcc: Remove support for knetbsd.
11018 * configure.ac: Likewise.
11019 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
11020 * config/knetbsd-gnu.h: Remove.
11021 * configure: Regenerate.
11023 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11025 * config.gcc: Remove support for openbsd 2 and 3.
11026 * config/openbsd-oldgas.h: Remove.
11028 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11030 * config.gcc: Remove interix support.
11031 * config/i386/i386-interix.h: Remove.
11032 * config/i386/interix.opt: Remove.
11033 * config/i386/t-interix: Remove.
11034 * configure: Regenerate.
11035 * configure.ac: Remove interix support.
11036 * doc/install.texi: Remove interix documentation.
11038 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
11040 * config/rs6000/rs6000.h: Add conditional preprocessing directives
11041 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
11044 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11046 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
11047 they are both PLACEHOLDER_EXPRs.
11049 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11051 * stor-layout.c (layout_type): Move setting complex MODE to
11052 layout_type, instead of setting it ahead of time by the caller.
11053 * tree.c (build_complex_type): Likewise.
11055 2016-06-21 Martin Liska <mliska@suse.cz>
11057 * predict.c (force_edge_cold): Replace imposisble with
11060 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11062 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
11063 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
11065 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
11067 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
11069 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
11070 Ilya Enkovich <ilya.enkovich@intel.com>
11073 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
11074 New member function to convert V1TImode register to SUBREG
11075 TImode in debug insn.
11076 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
11077 after changing register mode to V1TImode.
11079 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
11081 * config/aarch64/aarch64-cores.def (vulcan): New core.
11082 * config/aarch64/aarch64-tune.md: Regenerate.
11083 * doc/invoke.texi: Document vulcan as an available option.
11085 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
11087 * cse.c (canon_asm_operands): New function extracted from...
11088 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
11089 either standalone or member of a PARALLEL.
11091 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11094 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
11095 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
11096 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
11098 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
11101 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
11102 constant addresses if can_create_pseudo_p.
11104 2016-06-21 Jakub Jelinek <jakub@redhat.com>
11106 PR tree-optimization/71588
11107 * tree-ssa-strlen.c (valid_builtin_call): New function.
11108 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
11111 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11113 PR middle-end/71581
11114 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
11115 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
11116 for conversion of scalar user var to complex type and use the
11117 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
11120 PR rtl-optimization/71591
11121 * toplev.c (toplev::run_self_tests): If no_backend, complain and
11122 don't run any tests.
11124 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
11127 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
11128 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
11129 space for PIC with non-v32 and the common non-PIC "jump".
11131 2016-06-20 Jakub Jelinek <jakub@redhat.com>
11134 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
11135 returned values and add UN*/LTGT/*ORDERED cases with values matching
11136 D operand modifier on vcmp for AVX.
11138 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11140 * config/aarch64/aarch64.opt
11141 (mpc-relative-literal-loads): Rename internal option name.
11142 * config/aarch64/aarch64.c
11143 (aarch64_nopcrelative_literal_loads): Rename to
11144 aarch64_pcrelative_literal_loads.
11145 (aarch64_expand_mov_immediate): Likewise.
11146 (aarch64_secondary_reload): Likewise.
11147 (aarch64_can_use_per_function_literal_pools_p): Likewise.
11148 (aarch64_override_options_after_change_1): Rename and simplify logic.
11149 (aarch64_classify_symbol): Merge large model checks into switch,
11150 remove pc-relative load check.
11152 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11154 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
11155 costs relative to the cost of a register move.
11157 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11159 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
11160 (vcvt_n_f64_u64): Likewise.
11161 (vcvt_n_s64_f64): Likewise.
11162 (vcvt_n_u64_f64): Likewise.
11163 (vcvt_f64_s64): Likewise.
11164 (vrecpe_f64): Likewise.
11165 (vcvt_f64_u64): Likewise.
11166 (vrecps_f64): Likewise.
11168 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11170 * config/aarch64/aarch64.md
11171 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
11173 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
11175 * config/aarch64/aarch64-builtins.c
11176 (aarch64_types_binop_uss_qualifiers): Delete.
11177 (TYPES_BINOP_USS): Likewise.
11178 (aarch64_types_binop_sus_qualifiers): Likewise.
11179 (TYPES_BINOP_SUS): Likewise.
11180 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
11181 (TYPES_FCVTIMM_SUS): Likewise.
11182 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
11184 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
11185 (fcvtzs): Use SHIFTIMM rather than BINOP.
11186 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
11188 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
11190 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
11191 costs relative to the cost of a register move.
11193 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11195 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
11196 Allow scalar/single vector modes to be tieable.
11198 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
11200 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
11202 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11204 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
11206 * tree.h (TYPE_ALIGN): Likewise.
11208 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11211 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
11213 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
11215 * config/avr/avr.c (avr_print_operand): Fix "format not a string
11216 literal" build warnings.
11217 (avr_print_operand_address): Dito.
11219 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
11222 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
11223 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
11225 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
11227 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
11229 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
11232 * reload1.c (reload): Pass 0 to finish_spills when called because
11233 update_eliminables_and_spill returns true and remove did_spill.
11234 (finish_spills): Adjust comment and document GLOBAL parameter.
11236 2016-06-17 DJ Delorie <dj@redhat.com>
11239 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
11240 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
11241 (umulqihi3_virt): Likewise.
11242 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
11243 (umulqihi3_real): Likewise.
11245 2016-06-17 Martin Liska <mliska@suse.cz>
11247 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
11249 2016-06-17 Martin Liska <mliska@suse.cz>
11251 * predict.def: PRED_LOOP_EXIT from 92 to 85.
11253 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
11255 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
11257 (vaddq_f32): Likewise.
11258 (vmul_f32): Likewise.
11259 (vmulq_f32): Likewise.
11260 (vsub_f32): Likewise.
11261 (vsubq_f32): Likewise.
11263 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11265 PR tree-optimization/71347
11266 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
11267 cost for all uses in group.
11269 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11271 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
11272 insert gimple seq if it's not empty.
11274 2016-06-17 Bin Cheng <bin.cheng@arm.com>
11276 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
11278 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
11279 rather than OFFSET.
11280 (comp_dr_with_seg_len_pair): Ditto.
11281 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
11282 struct dr_with_seg_len_pair against DR_OFFSET.
11283 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
11284 DR_OFFSET directly.
11286 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
11288 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
11290 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
11292 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
11293 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
11294 (pa_output_millicode_call): Likewise.
11295 (pa_output_call): Likewise.
11296 (pa_output_indirect_call): Likewise.
11297 (pa_asm_output_mi_thunk): Likewise.
11299 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11301 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
11303 2016-06-16 Martin Liska <mliska@suse.cz>
11305 * predict.c (combine_predictions_for_insn): When we find a first
11306 match predictor, we should consider just predictors with
11307 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
11308 DS theory predictor.
11309 (combine_predictions_for_bb): Likewise.
11311 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11313 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
11314 with base of reference to struct.
11316 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11318 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
11320 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11323 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
11324 progmem_swtable_section.
11325 (progmem_swtable_section): Remove.
11326 (avr_asm_function_rodata_section): Remove.
11327 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
11328 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
11330 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
11332 * config/i386/driver-i386.c (host_detect_local_cpu): Set
11333 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
11334 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
11335 signature_CENTAUR_ebx.
11336 * config/i386/i386.c (ix86_option_override_internal): Add
11337 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
11338 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
11339 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
11341 2016-06-16 Martin Liska <mliska@suse.cz>
11343 * predict.def: Add fortran loop preheader predictor.
11344 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
11345 fold IFN_BUILTIN_EXPECT with a known constant argument.
11347 2016-06-16 Martin Liska <mliska@suse.cz>
11349 * predict.def: Add 'Fortran' to display text of all
11350 PRED_FORTRAN_* predictors.
11352 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
11355 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
11356 [IA64_BUILTIN_NANSQ]: Ditto.
11357 (ia64_fold_builtin): New function.
11358 (TARGET_FOLD_BUILTIN): New define.
11359 (ia64_init_builtins) Declare const_string_type node.
11360 Add __builtin_nanq and __builtin_nansq builtin functions.
11361 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
11363 2016-06-16 Nick Clifton <nickc@redhat.com>
11365 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
11366 MSP430_HWMULT_ prefix to enum values.
11367 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
11368 * config/msp430/msp430.c: Update use of enum values.
11369 * config/msp430/msp430.md: Likewise.
11370 * config/msp430/msp430.opt: Likewise.
11372 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
11374 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
11375 of comparsions in the last iteration.
11377 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11378 Joern Rennecke <joern.rennecke@embecosm.com>
11380 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
11382 (arc_needs_pcl_p): Add GOTOFFPC.
11383 (arc_legitimate_pic_addr_p): Likewise.
11384 (arc_output_pic_addr_const): Likewise.
11385 (arc_legitimize_pic_address): Generate a pc-relative address using
11387 (arc_output_libcall): Use @pcl syntax.
11388 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
11389 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
11390 (*movsi_insn): Use @pcl syntax.
11391 (doloop_begin_i): Likewise.
11393 2016-06-16 Martin Liska <mliska@suse.cz>
11395 * predict.def: Define a new predictor.
11397 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
11399 * config/arc/arc.opt (mtp-regno): Update text.
11401 2016-06-16 Renlin Li <renlin.li@arm.com>
11403 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
11405 2016-06-16 Jakub Jelinek <jakub@redhat.com>
11408 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
11409 (setcc + and peephole2): Likewise.
11411 PR rtl-optimization/71532
11412 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
11415 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11417 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
11418 DImode constants with XXSPLTIB in vector registers.
11419 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
11420 vsx_extract_<mode>_internal{1,2} into a single insn that handles
11421 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
11422 extraction of the element at the top of the register as a scalar
11424 (vsx_extract_<mode>_internal1): Likewise.
11425 (vsx_extract_<mode>_internal2): Likewise.
11426 * config/rs6000/constraints.md (wi constraint): Remove a comment
11427 about DImode not being allowed in Altivec registers.
11428 (wB constraint): New constraint for constants that can be
11429 generated in Altivec registers with VSPLTISW/VUPKHSW.
11430 * config/rs6000/predicates.md (xxspltib_constant_split): Update
11432 (xxspltib_constant_nosplit): Likewise.
11433 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
11434 support for -mupper-regs-di to enable DImode to go into Altivec
11436 (POWERPC_MASKS): Likewise.
11437 (power7 cpu): Likewise.
11438 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
11439 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
11440 for DImode being allowed in Altivec registers. Update wi/wj
11441 constraints. Set scalar_in_vmx_p flag.
11442 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
11443 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
11444 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
11445 (rs6000_opt_masks): Add -mupper-regs-di.
11446 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
11447 direct move to use wi and not wj.
11448 (lfiwzx): Likewise.
11449 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
11451 (floatunssi<mode>2_lfiwzx_mem): Likewise.
11452 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
11453 any VSX register, instead of just Altivec registers, to allow
11454 either operand to be an Altivec register or both.
11455 (fixuns_trunc<mode>di2_fctiduz): Likewise.
11456 (movdi_internal32): Add support for -mupper-regs-di. Add support
11457 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
11458 the alternatives and attributes to be lined up to be easier to
11460 (movdi_internal64): Likewise.
11461 (64-bit DImode splitters): Change predicates to only split loading
11462 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
11463 load constants in ISA 3.0 or ISA 2.07 respectively.
11464 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11465 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
11466 mention -mcpu=power9 sets these options.
11467 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
11470 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11473 * config/avr/avr.c (avr_set_current_function): Warn misspelled
11474 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
11475 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
11476 by default to warn misspelled interrupt/ signal handler.
11477 * doc/invoke.texi (AVR Options): Document it. Update description
11478 for -nodevicelib option.
11480 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11482 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
11483 up parentheses. Use GET_MODE_UNIT_BITSIZE.
11484 (aarch64_<sur>shll2_n<mode>): Likewise.
11486 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
11488 PR middle-end/71529
11489 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
11490 DECL_CONTEXT for copied arguments.
11492 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11494 PR tree-optimization/71483
11495 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
11498 2016-06-15 Martin Liska <mliska@suse.cz>
11500 * predict.c (tree_predict_by_opcode): Call predict_edge_def
11501 instead of predict_edge w/o a probability.
11503 2016-06-15 Alan Hayward <alan.hayward@arm.com>
11505 PR tree-optimization/71439
11506 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
11509 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11511 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
11512 register subregs in SET_SRC.
11514 2016-06-15 Richard Biener <rguenther@suse.de>
11516 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
11517 store restrictions.
11519 2016-06-15 Richard Biener <rguenther@suse.de>
11521 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
11522 not consider dependences between accesses that belong to the
11524 (vect_analyze_data_ref_dependences): Do not analyze read-read
11525 or self-dependences.
11527 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11529 * spellcheck-tree.c: Include spellcheck-tree.h rather than
11531 (find_closest_identifier): Reimplement in terms of
11532 best_match<tree,tree>.
11533 * spellcheck-tree.h: New file.
11534 * spellcheck.c (struct edit_distance_traits<const char *>): New
11536 (find_closest_string): Reimplement in terms of
11537 best_match<const char *, const char *>.
11538 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
11539 overload to spellcheck-tree.h.
11540 (find_closest_identifier): Likewise.
11541 (struct edit_distance_traits<T>): New template.
11542 (class best_match): New class.
11544 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11546 * selftest-run-tests.c (selftest::run_tests): Call
11547 selftest::spellcheck_tree_c_tests.
11548 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
11549 * spellcheck-tree.c: Include selftest.h and stringpool.h.
11550 (selftest::test_find_closest_identifier): New function.
11551 (selftest::spellcheck_tree_c_tests): New function.
11552 * spellcheck.c (selftest::test_find_closest_string): Verify that
11553 the order of the vec does not affect the results for this case.
11554 (selftest::test_data): New array.
11555 (selftest::test_metric_conditions): New function.
11556 (selftest::spellcheck_c_tests): Add a test of case-comparison.
11557 Call selftest::test_metric_conditions.
11559 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11561 * config/rs6000/rs6000-builtin.def (commentary): Typo.
11562 (BU_P9_MISC_1): Likewise.
11563 (BU_P9_64BIT_MISC_0): Likewise.
11564 (BU_P9_MISC_0): Likewise.
11566 2016-06-14 David Malcolm <dmalcolm@redhat.com>
11568 * gcc-rich-location.c
11569 (gcc_rich_location::add_fixit_misspelled_id): New method.
11570 * gcc-rich-location.h
11571 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
11573 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
11575 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
11576 FreeBSD 11 and above.
11578 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
11580 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
11582 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11584 * expmed.h: Close parenthesis in "at your option" in copyright
11586 * lower-subreg.h: Likewise.
11588 2016-06-14 Richard Biener <rguenther@suse.de>
11590 PR middle-end/71526
11591 * genmatch.c (expr::gen_transform): Use in_type for comparisons
11594 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11596 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
11598 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
11599 mask+shift version.
11600 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
11602 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
11603 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
11605 2016-06-14 Richard Biener <rguenther@suse.de>
11607 PR tree-optimization/71522
11608 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
11609 copying into float copying.
11611 2016-06-14 Jakub Jelinek <jakub@redhat.com>
11613 PR tree-optimization/71520
11614 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
11615 (replace_block_by): Move user labels from bb1 to bb2.
11617 2016-06-14 Richard Biener <rguenther@suse.de>
11619 PR middle-end/71310
11621 * expr.h (get_bit_range): Declare.
11622 * expr.c (get_bit_range): Export.
11623 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
11624 word_mode again to constrain the bitfield access.
11626 2016-06-14 Richard Biener <rguenther@suse.de>
11628 PR tree-optimization/71521
11629 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
11630 division int_const_binop against zero divisor.
11632 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11634 * config/i386/i386.md (signbittf2): New expander.
11635 * config/i386/sse.md (ptesttf2): New insn pattern.
11637 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11640 * input.c (selftest::test_reading_source_line): Avoid reading from
11641 __FILE__ by creating a tempfile with known content and reading
11644 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11646 * pretty-print.c (assert_pp_format_colored): Skip the test if
11648 (test_pp_format): Remove comment about GCC_COLORS.
11650 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11652 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
11653 * pretty-print.c (assert_pp_format_va): Add location param and use
11654 it with ASSERT_STREQ_AT.
11655 (assert_pp_format): Add location param and pass it to
11656 assert_pp_format_va.
11657 (assert_pp_format_colored): Likewise.
11658 (ASSERT_PP_FORMAT_1): New.
11659 (ASSERT_PP_FORMAT_2): New.
11660 (ASSERT_PP_FORMAT_3): New.
11661 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
11662 explicitly, or implicitly via the above macros.
11663 * selftest.c (selftest::pass): Use a selftest::location rather
11664 than file and line.
11665 (selftest::fail): Likewise. Print the function name.
11666 (selftest::fail_formatted): Likewise.
11667 (selftest::assert_streq): Use a selftest::location rather than
11669 * selftest.h (selftest::location): New struct.
11670 (SELFTEST_LOCATION): New macro.
11671 (selftest::pass): Accept a const location & rather than file
11673 (selftest::fail): Likewise.
11674 (selftest::fail_formatted): Likewise.
11675 (selftest::assert_streq): Likewise.
11676 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
11677 (ASSERT_FALSE): Likewise.
11678 (ASSERT_EQ): Likewise.
11679 (ASSERT_NE): Likewise.
11680 (ASSERT_STREQ): Likewise.
11681 (ASSERT_PRED1): Likewise.
11682 (ASSERT_STREQ_AT): New macro.
11684 2016-06-13 David Malcolm <dmalcolm@redhat.com>
11686 * selftest.c (selftest::fail_formatted): New function.
11687 (selftest::assert_streq): New function.
11688 * selftest.h (selftests::fail_formatted): New decl.
11689 (selftest::assert_streq): New decl.
11690 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
11692 2016-06-13 Jeff Law <law@redhat.com>
11694 PR tree-optimization/71403
11695 * tree-ssa-threadbackward.c
11696 (convert_and_register_jump_thread_path): No longer accept reference
11697 to path. Do not pop items off the path anymore.
11698 (fsm_find_control_statement_thread_paths): Do not allow threading
11699 to a deeper loop nest. Pop the last item off the path here rather
11700 than in convert_and_register_jump_thread_path.
11702 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11703 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
11705 [AArch64] Emit division using the Newton series
11707 * config/aarch64/aarch64-protos.h
11708 (cpu_approx_modes): Add new member "division".
11709 (aarch64_emit_approx_div): Declare new function.
11710 * config/aarch64/aarch64.c
11711 (generic_approx_modes): New member "division".
11712 (exynosm1_approx_modes): Likewise.
11713 (xgene1_approx_modes): Likewise.
11714 (aarch64_emit_approx_div): Define new function.
11715 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
11716 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
11717 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
11718 * doc/invoke.texi (-mlow-precision-div): Describe new option.
11720 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11721 Wilco Dijkstra <wilco.dijkstra@arm.com>
11723 [AArch64] Emit square root using the Newton series
11725 * config/aarch64/aarch64-protos.h
11726 (aarch64_emit_approx_rsqrt): Replace with new function
11727 "aarch64_emit_approx_sqrt".
11728 (cpu_approx_modes): New member "sqrt".
11729 * config/aarch64/aarch64.c
11730 (generic_approx_modes): New member "sqrt".
11731 (exynosm1_approx_modes): Likewise.
11732 (xgene1_approx_modes): Likewise.
11733 (aarch64_emit_approx_rsqrt): Replace with new function
11734 "aarch64_emit_approx_sqrt".
11735 (aarch64_override_options_after_change_1): Handle new option.
11736 * config/aarch64/aarch64-simd.md
11737 (rsqrt<mode>2): Use new function instead.
11738 (sqrt<mode>2): New expansion and insn definitions.
11739 * config/aarch64/aarch64.md: Likewise.
11740 * config/aarch64/aarch64.opt
11741 (mlow-precision-sqrt): Add new option description.
11742 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11744 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
11746 [AArch64] Add more choices for the reciprocal square root approximation
11748 Allow a target to prefer such operation depending on the operation mode.
11750 * config/aarch64/aarch64-protos.h
11751 (AARCH64_APPROX_MODE): New macro.
11752 (AARCH64_APPROX_{NONE,ALL}): Likewise.
11753 (cpu_approx_modes): New structure.
11754 (tune_params): New member "approx_modes".
11755 * config/aarch64/aarch64-tuning-flags.def
11756 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11757 * config/aarch64/aarch64.c
11758 (generic_approx_modes): New core "cpu_approx_modes" structure.
11759 (exynosm1_approx_modes): Likewise.
11760 (xgene1_approx_modes): Likewise.
11761 (generic_tunings): New member "approx_modes".
11762 (cortexa35_tunings): Likewise.
11763 (cortexa53_tunings): Likewise.
11764 (cortexa57_tunings): Likewise.
11765 (cortexa72_tunings): Likewise.
11766 (exynosm1_tunings): Likewise.
11767 (thunderx_tunings): Likewise.
11768 (xgene1_tunings): Likewise.
11769 (use_rsqrt_p): New argument for the mode and use new member from
11771 (aarch64_builtin_reciprocal): Devise mode from builtin.
11772 (aarch64_optab_supported_p): New argument for the mode.
11773 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11775 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11777 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11778 RS6000_BTM_MODULO flag into the set of flags that are considered
11779 to be part of the common configuration.
11781 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11783 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11784 difference unsigned.
11785 (vec_absdb): New macro for vector absolute difference unsigned
11787 (vec_absdh): New macro for vector absolute difference unsigned
11789 (vec_absdw): New macro for vector absolute difference unsigned word.
11790 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11791 (vadu<mode>3): New insn.
11792 (*p9_vadu<mode>3): New insn.
11793 * config/rs6000/rs6000-builtin.def (vadub): New built-in
11795 (vaduh): New built-in definition.
11796 (vaduw): New built-in definition.
11797 (vadu): New overloaded built-in definition.
11798 (vadub): New overloaded built-in definition.
11799 (vaduh): New overloaded built-in definition.
11800 (vaduw): New overloaded built-in definition.
11801 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11802 overloaded vector absolute difference unsigned functions.
11803 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11804 the ISA 3.0 vector absolute difference unsigned built-in functions.
11806 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
11808 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11809 update shared_lookup_references only once after changing operands.
11811 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
11813 PR middle-end/71373
11814 * tree-nested.c (convert_nonlocal_omp_clauses)
11815 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11817 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11818 * tree.def (CASE_LABEL_EXPR): Likewise.
11820 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11823 * input.c (test_builtins): Fix an assertion.
11825 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11827 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11828 (paritysi2): Ditto.
11830 (isinf<mode>2): Ditto.
11832 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
11834 * ggc-tests.c (test_finalization): Only test need_finalization_p
11835 for GCC_VERSION >= 4003.
11837 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11839 * config/s390/vecintrin.h: Fix file description in comment.
11841 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11843 * config/s390/s390-builtin-types.def: Change builtin type naming
11844 scheme to match builtin-types.def.
11846 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
11848 * fold-const.c (optimize_minmax_comparison): Remove.
11849 (fold_comparison): Remove call to the above.
11850 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11851 New transformations.
11853 2016-06-13 Alan Hayward <alan.hayward@arm.com>
11855 PR tree-optimization/71416
11856 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11859 2016-06-13 Martin Liska <mliska@suse.cz>
11861 * predict.c (enum predictor_reason): Prefix enum with REASON_.
11862 (combine_predictions_for_insn): Likewise.
11863 (prune_predictions_for_bb): Likewise.
11864 (combine_predictions_for_bb): Likewise.
11866 2016-06-13 Richard Biener <rguenther@suse.de>
11868 PR tree-optimization/71505
11869 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11870 assert match comment.
11872 2016-06-13 Marek Polacek <polacek@redhat.com>
11874 PR middle-end/71476
11875 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11876 gimplify_switch_expr.
11877 (warn_switch_unreachable_r): New function.
11879 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11882 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11885 2016-06-13 Richard Biener <rguenther@suse.de>
11887 PR middle-end/64516
11888 * fold-const.c (fold_unary_loc): Preserve alignment when
11889 folding a VIEW_CONVERT_EXPR into a MEM_REF.
11891 2016-06-13 Martin Liska <mliska@suse.cz>
11894 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11895 w/ -fsanitize=bounds.
11897 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11899 * config/i386/i386.c (ix86_init_builtins): Calculate
11900 FLOAT128_FTYPE_CONST_STRING function type only once.
11901 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11902 built-in functions are available for x86-32 and x86-64 targets.
11904 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
11907 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11908 New primitive type.
11909 (FLOAT128_FTYPE_CONST_STRING): New function type.
11910 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11911 [IX86_BUILTIN_NANSQ]: Ditto.
11912 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11913 (ix86_init_builtin_types): Declare const_string_type_node.
11914 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11916 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11917 * doc/extend.texi (x86 Built-in Functions): Document
11918 __builtin_nanq and __builtin_nansq.
11920 2016-06-11 Jiong Wang <jiong.wang@arm.com>
11923 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11924 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11925 length for pop patterns.
11926 (arm_attr_length_push_multi): Update comments.
11927 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11929 (*pop_multiple_with_writeback_and_return): Likewise.
11930 (*pop_multiple_with_return): Likewise.
11932 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
11934 PR middle-end/71310
11935 * fold-const.c (optimize_bit_field_compare): Don't try to use
11936 word_mode unconditionally for reading the bit field, look at
11937 DECL_BIT_FIELD_REPRESENTATIVE instead.
11939 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
11941 PR middle-end/71478
11942 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11943 vector integer type.
11945 2016-06-10 Jakub Jelinek <jakub@redhat.com>
11947 PR middle-end/71494
11948 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
11949 without LABEL_DECL, set *handled_ops_p to false instead of true.
11951 2016-06-10 Martin Sebor <msebor@redhat.com>
11954 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
11955 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
11956 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
11958 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
11959 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
11960 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
11961 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
11962 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
11963 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
11964 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
11965 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
11967 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
11969 * config/arm/arm.h (pool_vector_label,
11970 return_used_this_function): Remove.
11972 2016-06-10 Jeff Law <law@redhat.com>
11974 PR tree-optimization/71335
11975 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
11976 zero length paths here.
11977 (convert_and_register_jump_thread_path): Remove hacks related to
11978 duplicated blocks in the jump thread path.
11979 (fsm_find_control_statement_thread_paths): Avoid putting the same
11980 block on the thread path twice, but ensure the thread path is
11981 unchanged from the caller's point of view.
11983 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
11985 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
11986 * predict.def (PRED_LOOP_BRANCH): Remove.
11988 2016-06-10 David Malcolm <dmalcolm@redhat.com>
11990 * Makefile.in (OBJS): Add ggc-tests.o.
11991 (GTFILES): Add ggc-tests.c.
11992 * ggc-tests.c: New file.
11993 * selftest-run-tests.c (selftest::run_tests): Call
11994 selftest::ggc_tests_c_tests.
11995 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
11997 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
11999 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
12001 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
12004 * varasm.c (place_block_symbol): Adjust alignment for asan protected
12005 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
12007 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
12009 * profile.c: Include cfgloop.h.
12010 (branch_prob): Compute estimated number of iterations.
12011 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
12012 recompute estimate number of iterations from profile.
12014 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12016 PR inline-asm/68843
12017 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
12018 must be grouped on top of stack. Don't force early clobber
12019 on ordinary reg outputs.
12021 2016-06-10 Richard Biener <rguenther@suse.de>
12023 * targhooks.c (default_builtin_vectorization_cost): Adjust
12024 vec_construct cost.
12026 2016-06-10 Richard Biener <rguenther@suse.de>
12028 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
12029 to fold the RHS to a constant if possible.
12031 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
12033 PR middle-end/71373
12034 * tree-nested.c (convert_nonlocal_omp_clauses)
12035 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
12036 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
12037 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
12039 * gimplify.c (gimplify_adjust_omp_clauses): Discard
12041 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
12043 * omp-low.c (scan_sharing_clauses): Don't expect
12044 OMP_CLAUSE__CACHE_.
12046 2016-06-10 Alan Hayward <alan.hayward@arm.com>
12048 PR tree-optimization/71407
12049 PR tree-optimization/71416
12050 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
12051 BIT_FIELD_REF type.
12053 2016-06-10 Richard Biener <rguenther@suse.de>
12055 PR middle-end/71477
12056 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
12058 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
12060 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
12062 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
12063 Jiong Wang <jiong.wang@arm.com>
12065 PR rtl-optimization/70751
12066 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
12067 spilled into memory.
12069 2016-06-09 Jonathan Yong <10walls@gmail.com>
12072 2015-09-21 Jonathan Yong <10walls@gmail.com>
12074 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
12075 sysroot/usr/lib/32api for additional win32 libraries,
12076 fixes failing Cygwin bootstrapping.
12078 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
12080 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
12083 2016-06-09 David Malcolm <dmalcolm@redhat.com>
12086 * pretty-print.c (pp_indent): Specify that %p is printed in a
12087 host-dependent manner.
12088 (test_pp_format): Remove the test for %p.
12090 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
12092 * config/mips/mips.c (mips_output_jump): Fix formatting.
12094 2016-06-09 Richard Biener <rguenther@suse.de>
12096 PR tree-optimization/71462
12097 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
12100 2016-06-09 Martin Liska <mliska@suse.cz>
12102 * predict.c (dump_prediction): Add new argument.
12103 (enum predictor_reason): New enum.
12104 (struct predictor_hash): New struct.
12105 (predictor_hash::hash): New function.
12106 (predictor_hash::equal): Likewise.
12107 (not_removed_prediction_p): New function.
12108 (prune_predictions_for_bb): Likewise.
12109 (combine_predictions_for_bb): Prune predictions.
12111 2016-06-09 Martin Liska <mliska@suse.cz>
12113 * predict.c (filter_predictions): New function.
12114 (remove_predictions_associated_with_edge): Use the filter
12116 (equal_edge_p): New function.
12118 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
12120 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
12121 Correct usage of @samp vs @option, add @samp where appropriate.
12122 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
12123 Add armv6s-m and document it, as it is no official ARM name.
12125 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12127 * ifcvt.c (struct noce_if_info): Add transform_name field.
12128 (noce_try_move): Set if_info->transform_name to the function name.
12129 (noce_try_ifelse_collapse): Likewise.
12130 (noce_try_store_flag): Likewise.
12131 (noce_try_inverse_constants): Likewise.
12132 (noce_try_store_flag_constants): Likewise.
12133 (noce_try_addcc): Likewise.
12134 (noce_try_store_flag_mask): Likewise.
12135 (noce_try_cmove): Likewise.
12136 (noce_try_cmove_arith): Likewise.
12137 (noce_try_minmax): Likewise.
12138 (noce_try_abs): Likewise.
12139 (noce_try_sign_mask): Likewise.
12140 (noce_try_bitop): Likewise.
12141 (noce_convert_multiple_sets): Likewise.
12142 (noce_process_if_block): Print if_info->transform_name to
12143 dump_file if transformation succeeded.
12145 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12147 * config/arm/cortex-a57.md (cortex_a57_alu):
12150 2016-06-08 Martin Sebor <msebor@redhat.com>
12151 Jakub Jelinek <jakub@redhat.com>
12155 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
12156 BUILT_IN_MUL_OVERFLOW_P): New builtins.
12157 * builtins.c: Include gimple-fold.h.
12158 (fold_builtin_arith_overflow): Handle
12159 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
12160 (fold_builtin_3): Likewise.
12161 * doc/extend.texi (Integer Overflow Builtins): Document
12162 __builtin_{add,sub,mul}_overflow_p.
12164 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
12166 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
12167 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
12169 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
12171 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
12172 Rewrite, looking one level down for records and arrays.
12174 2016-06-08 David Malcolm <dmalcolm@redhat.com>
12176 * pretty-print.c: Include "selftest.h".
12177 (pp_format): Fix comment.
12178 (identifier_to_locale): Likewise.
12179 (selftest::test_basic_printing): New function.
12180 (selftest::assert_pp_format): New function.
12181 (selftest::test_pp_format): New function.
12182 (selftest::pretty_print_c_tests): New function.
12183 * selftest-run-tests.c (selftest::run_tests): Call
12184 selftest::pretty_print_c_tests.
12185 * selftest.h (pretty_print_c_tests): New declaration.
12187 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12189 * invoke.texi (max-loop-headers-insns): Document.
12190 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
12191 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
12192 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
12194 2016-06-08 Richard Biener <rguenther@suse.de>
12196 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
12197 on strided SLP loads and fall back to scalar loads in case
12198 we can't chunk them.
12200 2016-06-08 Richard Biener <rguenther@suse.de>
12202 PR tree-optimization/71452
12203 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
12204 type used for the SSA rewrite has enough precision to cover
12205 the dynamic type of the location.
12207 2016-06-08 Jakub Jelinek <jakub@redhat.com>
12208 Richard Biener <rguenther@suse.de>
12211 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
12212 the same as DECL_P (base0) for indirect_base0. Use equality_code
12213 in one further place.
12215 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
12217 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
12218 to one word if the field is known to overlap other words.
12219 (extract_bit_field_1): Likewise.
12220 (store_split_bit_field): Remove compensating code.
12221 (extract_split_bit_field): Likewise.
12223 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
12227 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
12229 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12231 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
12233 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
12234 (arch64_addpv4sf): Delete.
12235 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
12236 "gen_aarch64_addpv4sf".
12237 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
12239 (vpadds_f32): Likewise.
12240 (vpaddq_f32): Likewise.
12241 (vpaddq_f64): Likewise.
12243 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12245 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
12247 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
12248 to VALLF. Rename to "fabd<mode>3".
12249 "*fabd_scalar<mode>3): Delete.
12250 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
12252 (vabdd_f64): Likewise.
12253 (vabd_f32): Likewise.
12254 (vabd_f64): Likewise.
12255 (vabdq_f32): Likewise.
12256 (vabdq_f64): Likewise.
12258 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12260 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
12262 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
12263 "aarch64_rsqrts<mode>".
12264 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
12265 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
12267 (vrsqrtsd_f64): Likewise.
12268 (vrsqrts_f32): Likewise.
12269 (vrsqrts_f64): Likewise.
12270 (vrsqrtsq_f32): Likewise.
12271 (vrsqrtsq_f64): Likewise.
12273 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12275 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
12277 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
12278 "aarch64_rsqrte<mode>".
12279 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
12280 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
12282 (vrsqrted_f64): Likewise.
12283 (vrsqrte_f32): Likewise.
12284 (vrsqrte_f64): Likewise.
12285 (vrsqrteq_f32): Likewise.
12286 (vrsqrteq_f64): Likewise.
12288 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12290 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
12292 (fcvtzs): Likewise.
12293 (fcvtzu): Likewise.
12294 * config/aarch64/aarch64-simd.md
12295 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
12296 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
12297 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
12299 (vcvt_n_f32_u32): Likewise.
12300 (vcvt_n_s32_f32): Likewise.
12301 (vcvt_n_u32_f32): Likewise.
12302 (vcvtq_n_f32_s32): Likewise.
12303 (vcvtq_n_f32_u32): Likewise.
12304 (vcvtq_n_f64_s64): Likewise.
12305 (vcvtq_n_f64_u64): Likewise.
12306 (vcvtq_n_s32_f32): Likewise.
12307 (vcvtq_n_s64_f64): Likewise.
12308 (vcvtq_n_u32_f32): Likewise.
12309 (vcvtq_n_u64_f64): Likewise.
12310 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
12311 (VSDQ_SDI): Likewise.
12312 (fcvt_target): Support V4DI, V4SI and V2SI.
12313 (FCVT_TARGET): Likewise.
12315 2016-06-08 Jiong Wang <jiong.wang@arm.com>
12317 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
12318 (TYPES_BINOP_SUS): Likewise.
12319 (aarch64_simd_builtin_data): Update include file name.
12320 (aarch64_builtins): Likewise.
12321 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
12322 for conversion between scalar float-point and fixed-point.
12324 (fcvtzs): Likewise.
12325 (fcvtzu): Likewise.
12326 * config/aarch64/aarch64.md
12327 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
12328 pattern for conversion between scalar float to fixed-pointer.
12329 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
12330 (UNSPEC_FCVTZS): New UNSPEC enumeration.
12331 (UNSPEC_FCVTZU): Likewise.
12332 (UNSPEC_SCVTF): Likewise.
12333 (UNSPEC_UCVTF): Likewise.
12334 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
12336 (vcvtd_n_f64_u64): Likewise.
12337 (vcvtd_n_s64_f64): Likewise.
12338 (vcvtd_n_u64_f64): Likewise.
12339 (vcvtd_n_f32_s32): Likewise.
12340 (vcvts_n_f32_u32): Likewise.
12341 (vcvtd_n_s32_f32): Likewise.
12342 (vcvts_n_u32_f32): Likewise.
12343 * config/aarch64/iterators.md (fcvt_target): Support integer to float
12345 (FCVT_TARGET): Likewise.
12346 (FCVT_FIXED2F): New iterator.
12347 (FCVT_F2FIXED): Likewise.
12348 (fcvt_fixed_insn): New define_int_attr.
12350 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12352 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
12353 some statements was removed.
12355 2016-06-08 Alan Hayward <alan.hayward@arm.com>
12357 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
12358 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
12359 (vect_can_advance_ivs_p): likewise.
12360 (vect_update_ivs_after_vectorizer): likewise.
12361 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
12362 (vect_analyze_scalar_cycles_1): likewise.
12363 (vect_analyze_loop_operations): likewise.
12364 (report_vect_op): likewise.
12365 (vect_is_slp_reduction): likewise.
12366 (vect_is_simple_reduction): likewise.
12367 (get_initial_def_for_induction): likewise.
12368 (vect_transform_loop): likewise.
12369 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
12370 (vect_recog_sad_pattern): likewise.
12371 (vect_recog_widen_sum_pattern): likewise.
12372 (vect_recog_widening_pattern): likewise.
12373 (vect_recog_divmod_pattern): likewise.
12374 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
12375 (vect_analyze_slp_instance): likewise.
12376 (vect_transform_slp_perm_load): likewise.
12377 (vect_schedule_slp_instance): likewise.
12379 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12381 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
12382 (return_prediction): PRED_CONST_RETURN predict return as not taken.
12383 * predict.def (PRED_CONTINUE): Change hitrate 50->67
12384 (PRED_LOOP_BRANCH): Document predictor as broken.
12385 (PRED_LOOP_EXIT): Change hitrate 91->92.
12386 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
12387 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
12388 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
12389 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
12390 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
12391 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
12392 (PRED_CALL): Chane hitrate 71->67.
12393 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
12394 (PRED_GOTO): Document as unused right now.
12395 (PRED_CONST_RETURN): Change hitrate 67->69
12396 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
12397 (PRED_NULL_RETURN): Change hitrate 91->90.
12398 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
12399 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
12400 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
12402 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
12404 * config/rs6000/altivec.h: Add __builtin_vec_mul.
12405 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
12406 special case Altivec builtin.
12407 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
12408 VSX_BUILTIN_VEC_MUL (replaced with special case code).
12409 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12410 code for ALTIVEC_BUILTIN_VEC_MUL.
12411 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12412 for __builtin_vec_mul.
12414 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
12416 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
12419 2016-06-07 David Malcolm <dmalcolm@redhat.com>
12421 * spellcheck.c (selftest::test_find_closest_string): New function.
12422 (spellcheck_c_tests): Call the above.
12424 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12426 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
12428 2016-06-07 Jakub Jelinek <jakub@redhat.com>
12430 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
12431 Yv=Yv,C alternatives.
12433 2016-06-07 Richard Biener <rguenther@suse.de>
12436 * common.opt (ffast-math): Make Optimization.
12438 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
12439 Prachi Godbole <prachi.godbole@imgtec.com>
12441 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
12442 `fabs' and `fneg' type attributes.
12443 (p5600_fpu_fabs): Add `fmove' to the comment.
12445 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
12447 * gimple.c: Include builtins.h
12448 (gimple_inexpensive_call_p): New function.
12449 * gimple.h (gimple_inexpensive_call_p): Declare.
12450 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
12451 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
12454 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
12456 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
12457 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
12458 warning_at_rich_loc, warning_n, pedwarn, permerror,
12459 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
12460 sorry, fatal_error, internal_error, internal_error_no_backtrace):
12463 2016-06-07 Richard Biener <rguenther@suse.de>
12465 PR tree-optimization/71428
12466 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
12467 BIT_FIELD_REF op vs. load.
12469 2016-06-07 Richard Biener <rguenther@suse.de>
12471 PR middle-end/71423
12472 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
12475 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12477 * config/pa/pa.md (call): Generate indirect long calls to non-local
12478 functions on TARGET_64BIT.
12479 (call_value): Likewise.
12481 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
12483 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
12484 pattern and subsequent splitters.
12485 (call_val_reg_64bit_post_reload): Likewise.
12487 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12489 PR middle-end/71408
12490 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
12491 propagate_op_to_single_use.
12493 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12495 PR middle-end/71281
12496 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
12498 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
12500 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
12501 (enum x86_dirflag_state): New enum.
12502 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
12503 (machine_function): Remove needs_cld.
12504 (ix86_current_function_needs_cld): Remove.
12505 * config/i386/i386.c (ix86_set_func_type): Set
12506 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
12507 (ix86_expand_prologue): Do not emit CLD here.
12508 (ix86_dirflag_mode_needed): New function.
12509 (ix86_dirflag_mode_entry): Ditto.
12510 (ix86_mode_needed): Handle X86_DIRFLAG entity.
12511 (ix86_mode_after): Ditto.
12512 (ix86_mode_entry): Ditto.
12513 (ix86_mode_exit): Ditto.
12514 (ix86_emit_mode_set): Ditto.
12515 * config/i386/i386.md (strmov_singleop): Set
12516 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
12517 Do not set ix86_current_function_needs_cld.
12519 (strset_singleop): Ditto.
12521 (cmpstrnqi_nz_1): Ditto.
12522 (cmpstrnqi_1): Ditto.
12523 (strlenqi_1): Ditto.
12525 2016-06-06 Jakub Jelinek <jakub@redhat.com>
12527 PR tree-optimization/71259
12528 * tree-vect-slp.c (vect_get_constant_vectors): For
12529 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
12530 one for constant op, and use COND_EXPR for non-constant.
12532 2016-06-06 David Malcolm <dmalcolm@redhat.com>
12534 * Makefile.in (OBJS): Add function-tests.o,
12535 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
12536 selftest-run-tests.o.
12537 (OBJS-libcommon): Add selftest.o.
12538 (OBJS-libcommon-target): Add selftest.o.
12539 (all.internal): Add "selftest".
12540 (all.cross): Likewise.
12541 (selftest): New phony target.
12542 (s-selftest): New target.
12543 (selftest-gdb): New phony target.
12544 (COLLECT2_OBJS): Add selftest.o.
12545 * bitmap.c: Include "selftest.h".
12546 (selftest::test_gc_alloc): New function.
12547 (selftest::test_set_range): New function.
12548 (selftest::test_clear_bit_in_middle): New function.
12549 (selftest::test_copying): New function.
12550 (selftest::test_bitmap_single_bit_set_p): New function.
12551 (selftest::bitmap_c_tests): New function.
12552 * common.opt (fself-test): New.
12553 * diagnostic-show-locus.c: Include "selftest.h".
12554 (make_range): New function.
12555 (test_range_contains_point_for_single_point): New function.
12556 (test_range_contains_point_for_single_line): New function.
12557 (test_range_contains_point_for_multiple_lines): New function.
12558 (assert_eq): New function.
12559 (test_get_line_width_without_trailing_whitespace): New function.
12560 (selftest::diagnostic_show_locus_c_tests): New function.
12561 * et-forest.c: Include "selftest.h".
12562 (selftest::test_single_node): New function.
12563 (selftest::test_simple_tree): New function.
12564 (selftest::test_disconnected_nodes): New function.
12565 (selftest::et_forest_c_tests): New function.
12566 * fold-const.c: Include "selftest.h".
12567 (selftest::assert_binop_folds_to_const): New function.
12568 (selftest::assert_binop_folds_to_nonlvalue): New function.
12569 (selftest::test_arithmetic_folding): New function.
12570 (selftest::fold_const_c_tests): New function.
12571 * function-tests.c: New file.
12572 * gimple.c: Include "selftest.h".
12573 Include "gimple-pretty-print.h".
12574 (selftest::verify_gimple_pp): New function.
12575 (selftest::test_assign_single): New function.
12576 (selftest::test_assign_binop): New function.
12577 (selftest::test_nop_stmt): New function.
12578 (selftest::test_return_stmt): New function.
12579 (selftest::test_return_without_value): New function.
12580 (selftest::gimple_c_tests): New function.
12581 * hash-map-tests.c: New file.
12582 * hash-set-tests.c: New file.
12583 * input.c: Include "selftest.h".
12584 (selftest::assert_loceq): New function.
12585 (selftest::test_accessing_ordinary_linemaps): New function.
12586 (selftest::test_unknown_location): New function.
12587 (selftest::test_builtins): New function.
12588 (selftest::test_reading_source_line): New function.
12589 (selftest::input_c_tests): New function.
12590 * rtl-tests.c: New file.
12591 * selftest-run-tests.c: New file.
12592 * selftest.c: New file.
12593 * selftest.h: New file.
12594 * spellcheck.c: Include "selftest.h".
12595 (selftest::levenshtein_distance_unit_test_oneway): New function,
12596 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
12597 (selftest::levenshtein_distance_unit_test): Likewise.
12598 (selftest::spellcheck_c_tests): Likewise.
12599 * toplev.c: Include selftest.h.
12600 (toplev::run_self_tests): New.
12601 (toplev::main): Handle -fself-test.
12602 * toplev.h (toplev::run_self_tests): New.
12603 * tree.c: Include "selftest.h".
12604 (selftest::test_integer_constants): New function.
12605 (selftest::test_identifiers): New function.
12606 (selftest::test_labels): New function.
12607 (selftest::tree_c_tests): New function.
12608 * tree-cfg.c: Include "selftest.h".
12609 (selftest::push_fndecl): New function.
12610 (selftest::test_linear_chain): New function.
12611 (selftest::test_diamond): New function.
12612 (selftest::test_fully_connected): New function.
12613 (selftest::tree_cfg_c_tests): New function.
12614 * vec.c: Include "selftest.h".
12615 (selftest::safe_push_range): New function.
12616 (selftest::test_quick_push): New function.
12617 (selftest::test_safe_push): New function.
12618 (selftest::test_truncate): New function.
12619 (selftest::test_safe_grow_cleared): New function.
12620 (selftest::test_pop): New function.
12621 (selftest::test_safe_insert): New function.
12622 (selftest::test_ordered_remove): New function.
12623 (selftest::test_unordered_remove): New function.
12624 (selftest::test_block_remove): New function.
12625 (selftest::reverse_cmp): New function.
12626 (selftest::test_qsort): New function.
12627 (selftest::vec_c_tests): New function.c.
12628 * wide-int.cc: Include selftest.h and wide-int-print.h.
12629 (selftest::from_int <wide_int>): New function.
12630 (selftest::from_int <offset_int>): New function.
12631 (selftest::from_int <widest_int>): New function.
12632 (selftest::assert_deceq): New function.
12633 (selftest::assert_hexeq): New function.
12634 (selftest::test_printing <VALUE_TYPE>): New function template.
12635 (selftest::test_ops <VALUE_TYPE>): New function template.
12636 (selftest::test_comparisons <VALUE_TYPE>): New function template.
12637 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
12639 (selftest::wide_int_cc_tests): New function.
12641 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12643 PR middle-end/37780
12644 * ifcvt.c (noce_try_ifelse_collapse): New function.
12646 (noce_process_if_block): Call noce_try_ifelse_collapse.
12647 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
12648 (simplify_ternary_operation): Use the above to simplify
12649 conditional CLZ/CTZ expressions.
12651 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12653 PR middle-end/37780
12654 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
12655 define_insn_and_split.
12657 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12659 PR middle-end/37780
12660 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
12662 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
12665 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
12666 Implicitly clobber memory for basic asm with non-empty assembler
12667 string. Use targetm.md_asm_adjust also here.
12668 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
12669 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
12670 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
12671 non-empty assembler string.
12672 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
12673 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
12674 (decode_asm_operands): Handle basic asm in PARALLEL block.
12675 (extract_insn): Handle basic asm in PARALLEL block.
12676 * doc/extend.texi: Mention new behavior of basic asm.
12677 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
12678 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
12679 branch_needs_nop_p): Use asm_noperands.
12681 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
12683 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
12684 Include the M7 SPARC DFA scheduler.
12685 New attribute v3pipe.
12686 Annotate insns with v3pipe where appropriate.
12687 Define cpu_feature vis4.
12688 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
12689 Add (V8QI "8") to vbits.
12690 Add insns {add,sub}v8qi3
12691 Add insns ss{add,sub}v8qi3
12692 Add insns us{add,sub}{v8qi,v4hi}3
12693 Add insns {min,max}{v8qi,v4hi,v2si}3
12694 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
12695 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
12696 * config/sparc/niagara4.md: Add a comment explaining the
12697 discrepancy between the documented latenty numbers and the
12699 * config/sparc/niagara7.md: New file.
12700 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
12701 supports SPARC5 and VIS 4.0 instructions.
12702 * configure: Regenerate.
12703 * config.in: Likewise.
12704 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
12705 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
12706 TARGET_CPU_niagara7.
12707 (ASM_CPU64_DEFAULT_SPEC): Likewise.
12708 (CPP_CPU_SPEC): Handle niagara7.
12709 (ASM_CPU_SPEC): Likewise.
12710 * config/sparc/sparc-opts.h (processor_type): Add
12711 PROCESSOR_NIAGARA7.
12712 (mvis4): New option.
12713 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
12714 (AS_NIAGARA7_FLAG): Define.
12715 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
12716 (CPP_CPU64_DEFAULT_SPEC): Likewise.
12717 (CPP_CPU_SPEC): Handle niagara7.
12718 (ASM_CPU_SPEC): Likewise.
12719 * config/sparc/sparc.c (niagara7_costs): Define.
12720 (sparc_option_override): Handle niagara7 and adjust cache-related
12721 parameters with better values for niagara cpus. Also support VIS4.
12722 (sparc32_initialize_trampoline): Likewise.
12723 (sparc_use_sched_lookahead): Likewise.
12724 (sparc_issue_rate): Likewise.
12725 (sparc_register_move_cost): Likewise.
12726 (dump_target_flag_bits): Support VIS4.
12727 (sparc_vis_init_builtins): Likewise.
12728 (sparc_builtins): Likewise.
12729 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12731 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12733 * config/sparc/sparc.opt (sparc_processor_type): New value
12735 * config/sparc/visintrin.h (__attribute__): Prototypes for the
12737 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12739 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12742 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
12744 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12746 2016-06-06 Richard Biener <rguenther@suse.de>
12748 PR tree-optimization/71398
12749 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12752 2016-06-05 James Bowman <james.bowman@ftdichip.com>
12754 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12755 ft32_expand_prolog, ft32_expand_epilogue):
12756 Handle pretend_args.
12757 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12758 * config/ft32/ft32.md: Add pretend_returner.
12760 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
12763 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12764 Copy op1 RTX to avoid invalid sharing.
12765 (ix86_expand_vector_move_misalign): Ditto.
12767 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
12769 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12772 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12774 * predict.c (predicted_by_loop_heuristics_p): New function.
12775 (predict_iv_comparison): Use it.
12776 (predict_loops): Walk from innermost loops; do not predict edges
12777 leaving multiple loops multiple times; implement
12778 PRED_LOOP_ITERATIONS_MAX heuristics.
12779 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12781 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
12783 * cfg.c (check_bb_profile): Do not report mismatched profiles when
12784 only edges out of BB are EH edges.
12786 2016-06-04 Martin Sebor <msebor@redhat.com>
12787 Marcin Baczyński <marbacz@gmail.com>
12790 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12791 a void expression in a void function.
12793 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12795 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12796 aux; dump reasons of decisions.
12797 (should_duplicate_loop_header_p): Likewise.
12798 (do_while_loop_p): Likewise.
12799 (ch_base::copy_headers): Dump asi num insns duplicated.
12801 2016-06-04 Jakub Jelinek <jakub@redhat.com>
12803 PR tree-optimization/71405
12804 * tree-ssa.c (execute_update_addresses_taken): For clobber with
12805 incompatible type, build a new clobber with the right type instead
12806 of building a VIEW_CONVERT_EXPR around it.
12808 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12810 PR tree-optimization/52171
12811 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12812 by_pieces_ninsns instead of move_by_pieces_ninsns.
12814 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
12816 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12817 for reg+reg addressing mode.
12819 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12821 * rs6000-c.c (c/c-tree.h): Add #include.
12822 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12823 in C++ when found in the base position of vec_ld or vec_st.
12825 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
12827 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12828 use of profile unless profile status is PROFILE_READ.
12829 * profile.c (compute_branch_probabilities): Set profile status
12830 only after reporting predictor hitrates.
12832 2016-06-03 Joseph Myers <joseph@codesourcery.com>
12836 * common.opt (ffp-int-builtin-inexact): New option.
12837 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12838 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12839 (ceil@var{m}2): Document dependence on this option.
12840 * ipa-inline-transform.c (inline_call): Handle
12841 flag_fp_int_builtin_inexact.
12842 * ipa-inline.c (can_inline_edge_p): Likewise.
12843 * config/i386/i386.md (rintxf2): Do not test
12844 flag_unsafe_math_optimizations.
12845 (rint<mode>2_frndint): New define_insn.
12846 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12847 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
12848 for 387 instead of extending and truncating.
12849 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12850 !flag_trapping_math instead of flag_unsafe_math_optimizations.
12851 Change to frndint<mode>2_<rounding>.
12852 (frndintxf2_<rounding>_i387): Likewise. Change to
12853 frndint<mode>2_<rounding>_i387.
12854 (<rounding_insn>xf2): Likewise.
12855 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12856 !flag_trapping_math instead of flag_unsafe_math_optimizations for
12857 x87. Test TARGET_ROUND || !flag_trapping_math ||
12858 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12859 SSE. Use ROUND_NO_EXC in constant operand of
12860 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
12861 for 387 instead of extending and truncating.
12863 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
12864 Julia Koval <julia.koval@intel.com>
12876 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12877 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12878 all registers, except for function return registers if there are
12879 no caller-saved registers.
12880 (ix86_set_func_type): New function.
12881 (ix86_set_current_function): Call ix86_set_func_type to set
12882 no_caller_saved_registers and func_type. Call reinit_regs if
12883 caller-saved registers are changed. Don't allow MPX, SSE, MMX
12884 nor x87 instructions in interrupt handler nor function with
12885 no_caller_saved_registers attribute.
12886 (ix86_function_ok_for_sibcall): Return false if there are no
12887 caller-saved registers.
12888 (type_natural_mode): Don't warn ABI change for MMX in interrupt
12890 (ix86_function_arg_advance): Skip for callee in interrupt handler.
12891 (ix86_function_arg): Return special arguments in interrupt handler.
12892 (ix86_promote_function_mode): Promote pointer to word_mode only
12893 for normal functions.
12894 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12896 (ix86_epilogue_uses): New function.
12897 (ix86_hard_regno_scratch_ok): Likewise.
12898 (ix86_save_reg): Preserve all registers in interrupt handler
12899 after reload. Preserve all registers, except for function return
12900 registers, if there are no caller-saved registers after reload.
12901 (find_drap_reg): Always use callee-saved register if there are
12902 no caller-saved registers.
12903 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12904 for interrupt handler.
12905 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12906 Emit cld instruction if stringops are used in interrupt handler
12907 or interrupt handler isn't a leaf function.
12908 (ix86_expand_epilogue): Generate interrupt return for interrupt
12909 handler and pop the 'ERROR_CODE' off the stack before interrupt
12910 return in exception handler.
12911 (ix86_expand_call): Disallow calling interrupt handler directly.
12912 If there are no caller-saved registers, mark all registers that
12913 are clobbered by the call which returns as clobbered.
12914 (ix86_handle_no_caller_saved_registers_attribute): New function.
12915 (ix86_handle_interrupt_attribute): Likewise.
12916 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12918 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12919 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12920 accumulation in interrupt function if stack may be realigned to
12922 (EPILOGUE_USES): New.
12923 (function_type): New enum.
12924 (machine_function): Add func_type and no_caller_saved_registers.
12925 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12926 (interrupt_return): New pattern.
12927 * doc/extend.texi: Document x86 interrupt and
12928 no_caller_saved_registers attributes.
12930 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
12932 PR tree-optimization/52171
12933 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12934 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
12935 Look for constant strings. Move some code to emit_block_cmp_hints
12937 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12938 * defaults.h (COMPARE_MAX_PIECES): New macro.
12939 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12940 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12941 (clear_by_pieces_1): Don't declare. Move definition before use.
12942 (can_do_by_pieces): New static function.
12943 (can_move_by_pieces): Use it. Return bool.
12944 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
12945 OP. All callers changed. Handle COMPARE_BY_PIECES.
12946 (class pieces_addr); New.
12947 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
12948 pieces_addr::adjust, pieces_addr::increment_address,
12949 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
12951 (class op_by_pieces_d): New.
12952 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
12954 (class move_by_pieces_d, class compare_by_pieces_d,
12955 class store_by_pieces_d): New subclasses of op_by_pieces_d.
12956 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
12957 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
12958 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
12959 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
12960 compare_by_pieces_d::finish_mode): New member functions.
12961 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
12963 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
12964 (emit_block_cmp_hints): New function.
12965 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
12966 use the newly defined classes.
12967 * expr.h (by_pieces_constfn): New typedef.
12968 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
12969 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
12970 (move_by_pieces_ninsns): Don't declare.
12971 (can_move_by_pieces): Change return value to bool.
12972 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
12973 (compare_by_pieces_branch_ratio): New hook.
12974 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
12975 (by_pieces_ninsns): Declare.
12976 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
12978 (default_compare_by_pieces_branch_ratio): New function.
12979 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
12980 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
12981 * doc/tm.texi: Regenerate.
12982 * tree-ssa-strlen.c: Include "builtins.h".
12983 (handle_builtin_memcmp): New static function.
12984 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
12985 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
12987 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12989 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
12990 relevant stmts which are simple and invariant.
12991 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
12992 instead of simple and invariant
12994 2016-06-03 Alan Hayward <alan.hayward@arm.com>
12996 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
12997 (vectorizable_reduction): Check for new relevant state.
12998 (vectorizable_live_operation): vectorize live stmts using
12999 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
13000 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
13001 (vect_stmt_relevant_p): Check for stmts which are only used live.
13002 (process_use): Use of a stmt does not inherit it's live value.
13003 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
13004 (vect_analyze_stmt): Check for new relevant state.
13005 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
13006 outside the loop, but not inside it.
13008 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13010 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
13011 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
13012 (vect_get_vec_def_for_operand): Split out code.
13014 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
13016 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
13018 2016-06-03 Alan Hayward <alan.hayward@arm.com>
13020 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
13022 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13024 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
13026 2016-06-03 Jakub Jelinek <jakub@redhat.com>
13028 PR middle-end/71387
13029 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
13030 to noreturn e->callee->decl that has void return type and void
13031 arguments, adjust gimple_call_fntype and remove lhs even if it had
13032 previously addressable type.
13034 2016-06-02 Jeff Law <law@redhat.com>
13036 PR tree-optimization/71328
13037 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
13038 error when checking for a jump back onto the copied path.
13040 2016-06-02 David Malcolm <dmalcolm@redhat.com>
13042 * config/microblaze/microblaze.c (get_branch_target): Add return
13043 NULL_RTX for the non-CALL_P case.
13044 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
13045 (insert_wic): Remove unused local "j".
13047 2016-06-02 Martin Liska <mliska@suse.cz>
13049 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
13051 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
13052 Julia Koval <julia.koval@intel.com>
13054 * function.c (assign_parm_setup_stack): Force source into a
13055 register if needed.
13056 * target.def (function_incoming_arg): Update documentation to
13057 allow arbitrary address computation based on hard register.
13058 * doc/tm.texi: Regenerated.
13060 2016-06-02 Martin Liska <mliska@suse.cz>
13062 * predict.c (combine_predictions_for_bb): Fix first match in
13063 cases where a first predictor contains more than one occurence
13064 in list of predictors. Take the best value in such case.
13066 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13068 PR rtl-optimization/71295
13069 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
13070 offset would go over the size of the inner mode reject it.
13072 2016-06-02 Jakub Jelinek <jakub@redhat.com>
13074 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
13075 x=x,x and v=v,m instead of x=x,m.
13077 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
13078 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
13079 alternative to v=rm,C.
13081 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
13082 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
13083 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
13084 instead of vex for the last two above mentioned alternatives.
13086 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13089 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
13091 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
13093 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
13095 2016-06-01 David Malcolm <dmalcolm@redhat.com>
13097 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
13098 from int to unsigned.
13100 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13102 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
13103 alternatives, eliminating preferred register class. Add support
13104 for the MTVSRDD instruction in ISA 3.0.
13105 (vsx_splat_v4si_internal): Use splat_input_operand instead of
13106 reg_or_indexed_operand.
13107 (vsx_splat_v4sf_internal): Likewise.
13109 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
13112 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
13113 for loading up all 0's or all 1's.
13115 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
13117 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
13119 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
13121 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
13123 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
13124 * gcc.c (set_source_date_epoch_envvar): New function, sets
13125 the SOURCE_DATE_EPOCH environment variable to the current time.
13127 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13129 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
13130 the factor for live Phi nodes.
13132 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13134 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
13135 * tree-parloops.c (parallelize_loops): likewise.
13136 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
13137 tree_unswitch_outer_loop): likewise.
13139 2016-06-01 Jakub Jelinek <jakub@redhat.com>
13141 PR middle-end/71371
13142 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
13143 around creation of the temporary.
13145 2016-06-01 Richard Biener <rguenther@suse.de>
13147 PR tree-optimization/71366
13148 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
13149 (unloop_loops): Move removing edges here ...
13150 (try_unroll_loop_completely): ... from here.
13151 (try_peel_loop): ... and here.
13152 (tree_unroll_loops_completely_1): Track parent loops via
13153 bitmap of header BBs.
13154 (tree_unroll_loops_completely): Adjust for that.
13156 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
13158 * config/rs6000/altivec.h (vec_slv): New macro.
13159 (vec_srv): New macro.
13160 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
13161 (UNSPEC_VSRV): New value.
13164 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
13165 (vsrv): New builtin definition.
13166 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
13167 define argument types for new builtin.
13168 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
13170 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
13173 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
13174 Jocelyn Mayer <l_indien@magic.fr>
13177 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
13178 detect processor family for signature_CENTAUR_ebx.
13179 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
13180 signature_CENTAUR_ebx.
13181 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
13182 <default>: Pass x86-64 for has_longmode.
13184 2016-06-01 Nathan Sidwell <nathan@acm.org>
13186 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
13189 2016-06-01 Richard Biener <rguenther@suse.de>
13191 PR tree-optimization/71261
13192 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
13193 of stmts successfully put in the bool pattern. Remove
13194 single-use restriction.
13195 (adjust_bool_pattern_cast): Add cast at the use site via the
13196 pattern def sequence.
13197 (adjust_bool_pattern): Remove recursion, maintain a hash-map
13198 of patterned defs. Use the pattern def seqence instead of
13199 multiple independent patterns.
13200 (sort_after_uid): New qsort compare function.
13201 (adjust_bool_stmts): New function to process stmts in the bool
13202 pattern in IL order.
13203 (vect_recog_bool_pattern): Adjust.
13204 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
13205 (ifcvt_walk_pattern_tree): Likewise.
13206 (stmt_is_root_of_bool_pattern): Likewise.
13207 (ifcvt_repair_bool_pattern): Likewise.
13208 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
13210 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
13212 * loop-unroll.c (decide_unroll_constant_iterations,
13213 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
13214 likely upper bounds.
13215 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
13217 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
13219 * tree-core.h (enum omp_clause_code): Remove
13220 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
13222 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13224 * config/arm/sync.md (arm_store_exclusive<mode>):
13225 Use 'H' output modifier on operands[2] rather than creating a new
13226 entry in out-of-bounds memory of the operands array.
13227 (arm_store_release_exclusivedi): Likewise.
13229 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13231 * config/arm/arm.c (arm_fusion_enabled_p): New function.
13232 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
13233 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
13234 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13236 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
13238 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
13239 into account live statements for mask producers.
13241 2016-06-01 Richard Biener <rguenther@suse.de>
13243 PR tree-optimization/71311
13244 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
13245 restrict to non-INTEGER_CST @0.
13247 2016-06-01 Richard Biener <rguenther@suse.de>
13249 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
13250 (relational patterns): Use :c to avoid pattern duplications.
13252 2016-06-01 Richard Biener <rguenther@suse.de>
13254 * genmatch.c (comparison_code_p): New predicate.
13255 (swap_tree_comparison): New function.
13256 (commutate): Add for_vec parameter to append new for entries.
13257 Support commutating relational operators by swapping it alongside
13259 (lower_commutative): Adjust.
13260 (dt_simplify::gen): Do not pass artificial operators to gen
13262 (decision_tree::gen): Do not add artificial operators as parameters.
13263 (parser::parse_expr): Verify operator commutativity when :c is
13264 applied. Allow :C to override this.
13265 * match.pd: Adjust patterns to use :C instead of :c where required.
13267 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
13269 PR tree-optimization/71077
13270 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
13271 the combining step, use boolean_false_node and boolean_true_node
13272 as the designated false/true return values.
13274 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13276 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
13277 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
13278 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
13281 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13283 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
13284 of flags impliying the register renaming.
13285 * toplev.c (process_options): Do not imply flag_rename_registers with
13288 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13290 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
13291 default implementation.
13293 2016-05-31 Nathan Sidwell <nathan@acm.org>
13295 * dwarf2out.c (cur_line_info_table): Add GTY marker.
13297 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13299 * config/sh/constraints.md (b): Remove constraint.
13300 * config/sh/predicates.md (arith_reg_operand): Remove
13302 * config/sh/sh-modes.def (PDI): Remove.
13303 * config/sh/sh.c (sh_target_reg_class,
13304 sh_optimize_target_register_callee_saved): Remove functions.
13305 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
13306 (sh_expand_epilogue): Update comment.
13307 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
13308 sh_secondary_reload): Remove TARGET_REGS related code.
13309 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
13310 TARGET_REGISTER_P): Remove macros.
13311 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
13312 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
13313 TR1_REG, TR2_REG): Remove constants.
13314 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
13316 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13318 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
13319 define_expand patterns.
13320 (adddi3_compact): Rename to adddi3.
13321 (subdi3_compact): Rename to subdi3.
13322 (*negdi2): Rename to negdi2.
13323 (*abs<mode>2): Rename to abs<mode>2.
13325 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
13327 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
13328 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
13329 (atomic_sub_fetchsi): ... this new pattern.
13330 (mvtc): Add CC_REG clobber.
13332 2016-05-31 Marek Polacek <polacek@redhat.com>
13334 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
13336 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13338 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
13339 aarch64_fusion_enabled_p to check for fusion capabilities.
13341 2016-05-31 Richard Biener <rguenther@suse.de>
13343 PR tree-optimization/71352
13344 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
13345 minus one and a negate.
13347 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13349 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
13350 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
13352 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
13353 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
13354 Remove use of aarch64_simd_attr_length_move, set length attribute
13356 (*aarch64_be_movoi): Likewise.
13357 (*aarch64_be_movci): Likewise.
13358 (*aarch64_be_movxi): Likewise.
13360 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
13362 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
13363 It no longer does that.
13364 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
13366 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
13368 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
13369 attribute __unused__.
13371 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
13373 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
13374 * config/arm/arm.c (arm_arch_thumb1): Define.
13375 (arm_option_override): Initialize arm_arch_thumb1.
13376 * config/arm/arm.h (arm_arch_thumb1): Declare.
13377 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
13378 support Thumb-1 ISA.
13380 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
13383 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
13384 `Yv' for scalar operand.
13386 2016-05-31 Tom de Vries <tom@codesourcery.com>
13388 PR tree-optimization/69068
13389 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
13390 phis with more than two args.
13392 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
13394 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
13395 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
13398 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
13400 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
13402 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
13404 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
13405 cpu_32, cpu_64, tune_32 and tune_64.
13406 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
13408 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
13410 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
13412 2016-05-30 Andi Kleen <ak@linux.intel.com>
13414 * auto-profile.c (read_profile): Replace asserts with errors
13415 when file does not exist.
13416 * gcov-io.c (gcov_read_words): Dito.
13418 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13420 * tree-cfg.c (print_loop): Print likely upper bounds.
13422 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13424 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
13425 * opts.c (default_options): Enable peel loops at -O3.
13426 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
13427 (try_peel_loop): Do not re-peel already peeled loops;
13428 use likely upper bounds; fix profile updating.
13429 (pass_complete_unroll::execute): Initialize peeled_loops.
13431 2016-05-30 Martin Liska <mliska@suse.cz>
13433 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
13434 computed costs by frequency of BB they belong to.
13435 (get_scaled_computation_cost_at): New function.
13437 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
13438 Marc Glisse <marc.glisse@inria.fr>
13440 PR tree-optimization/71289
13441 * match.pd (-1 / B < A, A > -1 / B): New transformations.
13443 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13445 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
13447 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13449 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
13450 for peeled copies; avoid underflow when updating estimates; correctly
13451 scale loop profile.
13453 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13455 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
13456 r236875. Corrected oe3 to oe2 as obvious.
13458 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13460 PR middle-end/71269
13461 PR middle-end/71252
13462 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
13463 that inserted stmt will not dominate stmts that defines its operand.
13464 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
13465 (rewrite_expr_tree_parallel): Likewise.
13467 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
13469 PR middle-end/71252
13470 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
13471 all fields including stmt_to_insert are swapped.
13473 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13475 * predict.h (force_edge_cold): Declare.
13476 * predict.c (force_edge_cold): New function.
13477 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
13479 (canonicalize_loop_induction_variables): Fix formating.
13481 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
13483 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
13484 (visium_expand_copysign): Use gen_int_mode directly.
13485 (visium_compute_frame_size): Minor tweaks.
13487 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
13489 * tree-vect-loop.c (vect_analyze_loop_2): Use
13490 likely_max_stmt_executions_int.
13492 2016-05-30 Tom de Vries <tom@codesourcery.com>
13494 PR tree-optimization/69067
13495 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
13497 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
13500 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
13501 New peepholes to remove unneeded fild/fistp pairs.
13502 (define_peephole2 atomic_loaddi_fpu): Ditto.
13504 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13506 * predict.c (maybe_hot_frequency_p): Avoid division.
13508 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
13510 * doc/install.texi: Use https for shop.fsf.org.
13512 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13514 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
13515 likely_max_stmt_executions_int.
13517 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13519 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
13520 likely_max_stmt_executions_int.
13522 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13524 * profile.c (compute_branch_probabilities): Do not report hitrates
13526 (branch_prob): Report hitrates here.
13527 * predict.c (gimple_predict_edge): Do not assert profile status;
13528 fix formatting issues.
13530 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13532 * predict.c (edge_predicted_by_p): New function.
13533 (predict_paths_for_bb): Do not put multiple predictions of the same type
13536 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13538 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
13541 2016-05-28 Alan Modra <amodra@gmail.com>
13543 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
13545 2016-05-28 Alan Modra <amodra@gmail.com>
13547 PR rtl-optimization/71275
13548 * ira.c (ira): Free dominance info.
13550 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
13552 * doc/sourcebuild.texi: New address for upstream Go repository.
13554 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
13556 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
13557 (TARGET_ARM_V7M): Likewise.
13559 2016-05-26 Jeff Law <law@redhat.com>
13561 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
13562 (thread_across_edge): Remove calls to find_jump_threads_backwards.
13563 * passes.def: Add jump threading passes before DOM/VRP.
13564 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
13565 argument to a basic block from an edge. Remove tests which are
13567 (pass_data_thread_jumps, class pass_thread_jumps): New.
13568 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
13569 (make_pass_thread_jumps): Likewise.
13570 * tree-pass.h (make_pass_thread_jumps): Declare.
13572 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
13574 * config/visium/visium-protos.h (split_double_move): Rename into...
13575 (visium_split_double_move): ...this.
13576 (visium_split_double_add): Declare.
13577 * config/visium/visium.c (split_double_move): Rename into...
13578 (visium_split_double_move): ...this.
13579 (visium_split_double_add): New function.
13580 (visium_expand_copysign): Renumber operands for consistency.
13581 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
13582 (DFmode move splitter): Likewise.
13583 (*addi3_insn): Split by means of visium_split_double_add.
13584 (*adddi3_insn_flags): Delete.
13585 (*plus_plus_sltu<subst_arith>): New insn.
13586 (*subdi3_insn): Split by means of visium_split_double_add.
13587 (subdi3_insn_flags): Delete.
13588 (*minus_minus_sltu<subst_arith>): New insn.
13589 (*negdi2_insn): Split by means of visium_split_double_add.
13590 (*negdi2_insn_flags): Delete.
13592 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
13594 * configure.ac: Treat a --with-headers option without argument
13595 the same as the default (i.e. consult sys-include directory).
13596 * configure: Regenerate.
13598 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13600 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
13601 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
13603 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
13604 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
13606 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13609 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
13610 tree-stdarg analysis results.
13611 (aarch64_setup_incoming_varargs): Likewise.
13613 2016-05-27 Jiong Wang <jiong.wang@arm.com>
13615 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
13616 va_list_gpr_counter_field and va_list_fpr_counter_field.
13618 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
13621 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
13622 * config/aarch64/aarch64.c
13623 (aarch64_cannot_change_mode_class): Remove function.
13624 * config/aarch64/aarch64-protos.h
13625 (aarch64_cannot_change_mode_class): Remove.
13627 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
13629 * cfgloop.c (record_niter_bound): Record likely upper bounds.
13630 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
13631 get_likely_max_loop_iterations_int): New.
13632 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
13633 any_likely_upper_bound.
13634 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
13636 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
13637 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
13639 (unroll_loop_constant_iterations): Likewise.
13640 (unroll_loop_runtime_iterations): Likewise.
13641 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
13642 * lto-streamer-out.c (output_cfg): Likewise.
13643 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
13645 (canonicalize_loop_induction_variables): Dump likely upper bounds.
13646 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
13647 (likely_max_loop_iterations): New.
13648 (likely_max_loop_iterations_int): New.
13649 (likely_max_stmt_executions): New.
13650 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
13651 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
13652 likely_max_stmt_executions): Declare.
13654 2016-05-27 Marek Polacek <polacek@redhat.com>
13656 PR middle-end/71308
13657 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
13659 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13661 * config/s390/s390.md (2x risbg splitters): Use
13662 reg_overlap_mentioned_p instead of rtx_equal_p.
13664 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
13666 * combine.c (make_compound_operation): Take known zero bits into
13667 account when checking for possible zero_extend.
13669 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13671 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
13672 Use const_int_operand for operand 2 predicate. Simplify expand code
13675 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
13677 PR middle-end/71279
13678 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
13681 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13683 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
13684 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
13685 that returns CC_SESWPmode and CC_ZESWPmode.
13686 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
13688 (aarch64_rtx_costs): Likewise.
13690 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13692 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
13693 for ISA 3.0 min/max support.
13694 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
13695 conditional move support.
13696 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
13697 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
13699 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
13700 conditional moves where the comparison type is different from move
13702 (fp_minmax): New code iterator for smin/smax.
13703 (minmax): New code attributes for min/max.
13704 (SMINMAX): Likewise.
13705 (smax<mode>3): Combine min, max insns into one insn using the
13706 fp_minmax code iterator. Add support for ISA 3.0 min/max
13707 instructions that don't need -ffast-math.
13708 (s<minmax><mode>3): Likewise.
13709 (smax<mode>3_vsx): Likewise.
13710 (smin<mode>3): Likewise.
13711 (s<minmax><mode>3_vsx): Likewise.
13712 (smin<mode>3_vsx): Likewise.
13713 (pre-VSX min/max splitters): Likewise.
13714 (s<minmax><mode>3_fpr): Likewise.
13715 (movsfcc): Rewrite floating point conditional moves to combine
13716 SFmode/DFmode into a single insn.
13717 (mov<mode>cc): Likewise.
13718 (movdfcc): Likewise.
13719 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13720 SFDF2 iterators to handle all combinations.
13721 (fseldfsf4): Likewise.
13722 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13723 (fseldfdf4): Likewise.
13724 (fselsfdf4): Likewise.
13725 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13726 comparison instructions that set a 0/-1 mask, and use it for
13727 floating point conditional move via XXSEL.
13728 (fpmask<mode>): Likewise.
13729 (xxsel<mode>): Likewise.
13730 * config/rs6000/predicates.md (min_max_operator): Delete, no
13732 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13733 instructions that generate a 0/-1 mask for use with XXSEL.
13734 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13735 say whether floating point min/max is available, either through
13736 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13737 (TARGET_MINMAX_DF): Likewise.
13739 2016-05-27 Alan Modra <amodra@gmail.com>
13741 PR rtl-optimization/71275
13742 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13743 for update_equiv_regs and combine_and_move_insns.
13745 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
13747 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13748 if_then_else or cond RTXes to calculate attribute value.
13749 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13750 <attr "length_immediate>: Ditto.
13751 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13752 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13753 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13754 <attr "type">: Ditto.
13755 <attr "prefix_data16">: Ditto.
13756 <attr "prefix_extra">: Ditto.
13757 <attr "length_immediate">: Ditto.
13758 <attr "prefix">: Ditto.
13759 (vec_set<mode>_0) <attr "isa">: Ditto.
13760 <attr "prefix_extra">: Ditto.
13761 <attr "length_immediate">: Ditto.
13762 <attr "prefix">: Ditto.
13763 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13764 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13765 (sse2_storelpd) <attr "prefix_data16">: Ditto.
13766 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13767 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13768 <attr "length_immediate">: Ditto.
13769 <attr "prefix">: Ditto.
13770 (sse2_movsd) <attr "length_immediate">: Ditto.
13771 <attr "prefix">: Ditto.
13772 (vec_concatv2df) <attr "isa">: Ditto.
13773 <attr "prefix">: Ditto.
13774 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13775 (*vec_extractv2di_1) <attr "isa">: Ditto.
13776 <attr "type">: Ditto.
13777 <attr "length_immediate">: Ditto.
13778 <attr "prefix_rex">: Ditto.
13779 <attr "prefix_extra">: Ditto.
13780 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13781 <attr "prefix_extra">: Ditto.
13782 <attr "length_immediate">: Ditto.
13783 (vec_concatv2di) <attr "isa">: Ditto.
13784 <attr "prefix_extra">: Ditto.
13785 <attr "length_immediate">: Ditto.
13786 <attr "prefix">: Ditto.
13788 2016-05-26 Martin Liska <mliska@suse.cz>
13790 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13792 (operator+): Likewise.
13793 (operator-): Likewise.
13794 (comp_cost::operator+=): Likewise.
13795 (comp_cost::operator-=): Likewise.
13796 (comp_cost::operator/=): Likewise.
13797 (comp_cost::operator*=): Likewise.
13798 (operator<): Likewise.
13799 (operator==): Likewise.
13800 (operator<=): Likewise.
13801 (new_cost): Remove.
13802 (infinite_cost_p): Likewise.
13803 (add_costs): Likewise.
13804 (sub_costs): Likewise.
13805 (compare_costs): Likewise.
13806 (set_group_iv_cost): Use the newly introduced functions.
13807 (get_address_cost): Likewise.
13808 (get_shiftadd_cost): Likewise.
13809 (force_expr_to_var_cost): Likewise.
13810 (split_address_cost): Likewise.
13811 (ptr_difference_cost): Likewise.
13812 (difference_cost): Likewise.
13813 (get_computation_cost_at): Likewise.
13814 (determine_group_iv_cost_generic): Likewise.
13815 (determine_group_iv_cost_address): Likewise.
13816 (determine_group_iv_cost_cond): Likewise.
13817 (autoinc_possible_for_pair): Likewise.
13818 (determine_group_iv_costs): Likewise.
13819 (cheaper_cost_pair): Likewise.
13820 (iv_ca_recount_cost): Likewise.
13821 (iv_ca_set_no_cp): Likewise.
13822 (iv_ca_set_cp): Likewise.
13823 (iv_ca_cost): Likewise.
13824 (iv_ca_new): Likewise.
13825 (iv_ca_dump): Likewise.
13826 (iv_ca_narrow): Likewise.
13827 (iv_ca_prune): Likewise.
13828 (iv_ca_replace): Likewise.
13829 (try_add_cand_for): Likewise.
13830 (try_improve_iv_set): Likewise.
13831 (find_optimal_iv_set): Likewise.
13833 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
13835 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13836 that internal functions will clobber all caller-saved registers.
13838 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13840 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13841 Return a better case_values_threshold when optimizing.
13843 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
13845 * config/aarch64/aarch64-simd.md (aarch64_combinez):
13846 Add ? to integer variant.
13847 (aarch64_combinez_be): Likewise.
13849 2016-05-26 Jakub Jelinek <jakub@redhat.com>
13851 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13852 instead of x constraint.
13853 (vcvtps2ph256<mask_name>): Likewise.
13855 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13856 alternative. Formatting fix.
13858 * config/i386/sse.md
13859 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13861 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13862 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
13863 maybe_evex prefix instead of vex.
13864 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
13865 EXT_REX_SSE_REG_P (op0) case in the splitter.
13867 2016-05-25 Jeff Law <law@redhat.com>
13869 PR tree-optimization/71272
13870 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13871 Update comments. Add test for empty path.
13873 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
13875 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13876 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13877 special case builtin.
13878 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13879 code for ALTIVEC_BUILTIN_VEC_CMPNE.
13880 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13881 for __builtin_vec_cmpne.
13883 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
13885 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13886 redundant test and bail out if the type of the new operand is not
13887 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13889 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13891 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13892 (x_ix86_target_flags_explicit): Remove.
13893 * config/i386/i386.c (ix86_function_specific_save): Do not copy
13894 x_ix86_target_flags_explicit.
13895 (ix86_function_specific_restore): Ditto.
13897 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
13898 H.J. Lu <hongjiu.lu@intel.com>
13901 * common/config/i386/i386-common.c
13902 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13903 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13904 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13905 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13906 (-mgeneral-regs-only): Add new option.
13907 * config/i386/i386.c (ix86_option_override_internal): Don't enable
13908 x87 instructions if only general registers are allowed.
13909 (ix86_target_string): Add ix86_flags argument. Handle additional
13910 flags options through ix86_flags argument. Update all callers.
13911 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13913 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13915 PR rtl-optimization/66940
13916 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13917 decrementing desired_val will not overflow before performing these
13920 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
13922 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13923 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13924 * config/i386/i386.c (enum ix86_builtins): Add
13925 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13926 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13927 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13928 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13929 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13930 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13931 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13932 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13933 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13934 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13935 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13936 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13937 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13938 __builtin_ia32_cvtps2dq512_mask.
13939 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13940 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13941 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13942 * config/i386/sse.md
13943 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
13945 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
13946 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
13948 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
13949 (avx512f_vec_pack_sfix_v8df): New define_expand.
13950 (avx512f_roundpd512): Rename to ...
13951 (avx512f_round<castmode>512): ... this. Change iterator.
13952 (avx512f_roundps512_sfix): New define_expand.
13953 (round<mode>2_sfix): Change iterator.
13955 2016-05-25 Nick Clifton <nickc@redhat.com>
13957 * config/msp430/msp430.c (msp430_attr): Produce an error if a
13958 static interrupt handler is detected.
13959 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
13960 default linker script.
13961 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
13962 the low part of a symbolic pointer.
13964 2016-05-25 Richard Biener <rguenther@suse.de>
13966 PR tree-optimization/71261
13967 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
13968 interesting stmt instead of immediate uses when looking
13969 for the use operand to replace.
13971 2016-05-25 Martin Liska <mliska@suse.cz>
13973 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
13975 2016-05-25 Richard Biener <rguenther@suse.de>
13977 PR tree-optimization/71264
13978 * tree-vect-stmts.c (vect_init_vector): Properly deal with
13981 2016-05-25 Martin Liska <mliska@suse.cz>
13983 PR tree-optimization/71239
13984 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
13985 if DECL_SIZE is NULL.
13987 2016-05-25 Richard Biener <rguenther@suse.de>
13989 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
13990 * tree-if-conv.c (pass_data_if_conversion): Use it.
13992 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
13994 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
13995 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
13996 * varpool.c (varpool_node::get_availability): Likewise.
13998 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14000 * config/rs6000/altivec.md (VNEG iterator): New iterator for
14001 VNEGW/VNEGD instructions.
14002 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
14003 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
14004 support for ISA 3.0 VNEGW/VNEGD instructions.
14006 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
14008 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
14009 pointers inside OACC_DATA regions.
14010 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
14011 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
14012 (gimplify_adjust_omp_clauses): Fix typo in comment.
14014 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14016 * config/rs6000/altivec.md (VParity): New mode iterator for vector
14017 parity built-in functions.
14018 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
14020 (p9v_parity<mode>2): Likewise.
14021 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
14023 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
14024 (parity<mode>2): ISA 3.0 expander for vector parity.
14025 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
14027 (BU_P9_64BIT_MISC_0): Likewise.
14028 (BU_P9_MISC_0): Likewise.
14029 (BU_P9V_AV_1): Likewise.
14030 (BU_P9V_AV_2): Likewise.
14031 (BU_P9V_AV_3): Likewise.
14032 (BU_P9V_AV_P): Likewise.
14033 (BU_P9V_VSX_1): Likewise.
14034 (BU_P9V_OVERLOAD_1): Likewise.
14035 (BU_P9V_OVERLOAD_2): Likewise.
14036 (BU_P9V_OVERLOAD_3): Likewise.
14037 (VCTZB): Add vector count trailing zeros support.
14041 (VPRTYBD): Add vector parity support.
14042 (VPRTYBQ): Likewise.
14043 (VPRTYBW): Likewise.
14044 (VCTZ): Add overloaded vector count trailing zeros support.
14045 (VPRTYB): Add overloaded vector parity support.
14046 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14047 overloaded vector count trailing zeros and parity instructions.
14048 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
14049 vector parity support.
14050 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
14051 trailing zeros support.
14052 (vec_cntlz): Likewise.
14053 (vec_vctzb): Likewise.
14054 (vec_vctzd): Likewise.
14055 (vec_vctzh): Likewise.
14056 (vec_vctzw): Likewise.
14057 (vec_vprtyb): Add ISA 3.0 vector parity support.
14058 (vec_vprtybd): Likewise.
14059 (vec_vprtybw): Likewise.
14060 (vec_vprtybq): Likewise.
14061 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14062 the ISA 3.0 vector count trailing zeros and vector parity built-in
14065 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14067 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
14068 when there is stmt_to_insert.
14070 2016-05-24 Martin Sebor <msebor@redhat.com>
14073 * tree.h (complete_or_array_type_p): New inline function.
14075 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14077 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
14078 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
14079 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
14081 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
14082 Limit 1st alternative to noavx isa, split 2nd alternative into one
14083 noavx and one avx alternative, use *x and Bm in the former and
14084 x and m in the latter.
14086 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
14087 of sse4 for the first alternative, drop %v from the template
14088 and d operand modifier. Split second alternative into one sse4_noavx
14089 and one avx alternative, use *x instead of *v in the former and v
14090 instead of *v in the latter.
14091 (*sse4_1_extractps): Use noavx isa instead of * for the first
14092 alternative, drop %v from the template. Split second alternative into
14093 one noavx and one avx alternative, use *x instead of *v in the
14094 former and v instead of *v in the latter.
14095 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
14096 with noavx and the last one with avx.
14097 (sse4_1_phminposuw): Guard first alternative with noavx isa,
14098 split the second one into one noavx and one avx alternative,
14099 use *x and Bm in the former and x and m in the latter one.
14100 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
14103 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
14104 first two alternatives to noavx, use *x instead of *v in the second
14105 one, add avx alternative without *.
14106 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
14107 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
14108 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
14110 2016-05-24 Jeff Law <law@redhat.com>
14112 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
14113 New function, extracted from...
14114 (fsm_find_control_statement_thread_paths): Here. Use the new function.
14115 Allow simple copies and constant initializations in the SSA chain.
14117 2016-05-24 Marek Polacek <polacek@redhat.com>
14120 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
14123 2016-05-24 Jakub Jelinek <jakub@redhat.com>
14126 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
14127 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
14128 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
14129 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
14130 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
14132 2016-05-24 Richard Biener <rguenther@suse.de>
14134 PR tree-optimization/71240
14135 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
14138 2016-05-24 Richard Biener <rguenther@suse.de>
14140 PR tree-optimization/71230
14141 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
14143 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14145 * tree-vectorizer.h (vectorizable_comparison): Delete.
14146 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
14147 PURE_SLP_STMT check.
14148 * tree-vect-stmts.c (vectorizable_call): Likewise.
14149 (vectorizable_simd_clone_call): Likewise.
14150 (vectorizable_conversion): Likewise.
14151 (vectorizable_assignment): Likewise.
14152 (vectorizable_shift): Likewise.
14153 (vectorizable_operation): Likewise.
14154 (vectorizable_load): Likewise.
14155 (vectorizable_condition): Likewise.
14156 (vectorizable_store): Likewise. Assert that we don't have
14158 (vectorizable_comparison): Make static. Remove redundant
14159 PURE_SLP_STMT check.
14160 (vect_transform_stmt): Assert that we always have an slp_node
14163 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14165 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
14166 operands[2] against 1 with comparison against CONST1_RTX.
14167 (<shift>di3_neon): Likewise.
14168 * config/arm/predicates.md (const0_operand): Replace with comparison
14169 against CONST0_RTX.
14171 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14173 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
14174 operands[2] against 1 with comparison against CONST1_RTX.
14175 (ashrdi3): Likewise.
14176 (lshrdi3): Likewise.
14177 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
14179 (ashrsi3): Likewise.
14180 (lshrsi3): Likewise.
14181 (rotrsi3): Likewise.
14182 (define_split above *compareqi_eq0): Likewise.
14183 (define_split above "prologue"): Likewise.
14184 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
14185 * config/arm/predicates.md (shift_operator): Likewise.
14186 (shift_nomul_operator): Likewise.
14187 (sat_shift_operator): Likewise.
14188 (thumb1_cmp_operand): Likewise.
14189 (const_neon_scalar_shift_amount_operand): Replace manual range
14190 check with IN_RANGE.
14191 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
14192 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
14194 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14196 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
14197 with HOST_WIDE_INT_1.
14199 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
14200 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
14201 (arm_canonicalize_comparison): Likewise.
14202 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
14204 (thumb1_size_rtx_costs): Likewise.
14205 (vfp_const_double_index): Replace cast of 1 to unsigned
14206 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14207 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
14209 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
14210 HOST_WIDE_INT with HOST_WIDE_INT_1U.
14211 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
14212 HOST_WIDE_INT with HOST_WIDE_INT_1.
14214 2016-05-24 Marek Polacek <polacek@redhat.com>
14216 * tree-cfg.h (should_remove_lhs_p): New predicate.
14217 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
14218 * gimplify.c (gimplify_modify_expr): Likewise.
14219 * tree-cfg.c (verify_gimple_call): Likewise.
14220 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
14221 * gimple-fold.c: Include "tree-cfg.h".
14222 (gimple_fold_call): Use should_remove_lhs_p.
14224 2016-05-24 Richard Biener <rguenther@suse.de>
14226 PR tree-optimization/71253
14227 * cfganal.h (control_dependences): Make robust against edge
14229 (control_dependences::control_dependences): Remove edge_list argument.
14230 (control_dependences::get_edge): Remove.
14231 (control_dependences::get_edge_src): Add.
14232 (control_dependences::get_edge_dest): Likewise.
14233 (control_dependences::m_el): Make a vector of edge src/dest index.
14234 * cfganal.c (control_dependences::find_control_dependence): Adjust.
14235 (control_dependences::control_dependences): Likewise.
14236 (control_dependences::~control_dependence): Likewise.
14237 (control_dependences::get_edge): Remove.
14238 (control_dependences::get_edge_src): Add.
14239 (control_dependences::get_edge_dest): Likewise.
14240 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
14242 (perform_tree_ssa_dce): Adjust.
14243 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
14245 (pass_loop_distribution::execute): Adjust. Do loop destroying
14246 conditional on changed.
14248 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14251 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
14252 return. Reindent transformation comment and mention the ARM state
14255 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14257 PR middle-end/71252
14258 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
14259 after build_and_add_sum creates new use stmt.
14261 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14263 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
14264 load_lanes/grouped_load classification comes first. Don't check
14265 whether the vectorization factor is a multiple of the group size
14268 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
14270 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
14271 GROUP_GAP for single-element interleaving.
14272 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
14275 2016-05-24 Richard Biener <rguenther@suse.de>
14277 PR middle-end/70434
14279 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
14280 bases which are accessed with non-invariant indices.
14281 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
14282 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
14284 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
14286 PR middle-end/71170
14287 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
14288 (add_to_ops_vec): Add stmt_to_insert.
14289 (add_repeat_to_ops_vec): Init stmt_to_insert.
14290 (insert_stmt_before_use): New.
14291 (transform_add_to_multiply): Remove mult_stmt insertion and add it
14293 (get_ops): Init stmt_to_insert.
14294 (maybe_optimize_range_tests): Likewise.
14295 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
14296 (rewrite_expr_tree_parallel): Likewise.
14297 (reassociate_bb): Likewise.
14299 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14302 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
14303 ISA 3.0 xxperm fusion alternative.
14304 (altivec_vperm_v8hiv16qi): Likewise.
14305 (altivec_vperm_<mode>_uns_internal): Likewise.
14306 (vperm_v8hiv4si): Likewise.
14307 (vperm_v16qiv8hi): Likewise.
14309 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
14310 Kelvin Nilsen <kelvin@gcc.gnu.org>
14312 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
14313 vpermr/xxpermr on ISA 3.0.
14314 (altivec_expand_vec_perm_le): Likewise.
14315 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
14316 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
14319 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
14321 * config/i386/i386.h (IS_STACK_MODE): Enable for
14322 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
14323 SSE_FLOAT_MODE_P macros.
14324 * config/i386/i386.c (ix86_preferred_reload_class): Use
14325 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
14326 Cleanup regclass processing for CONST_DOUBLE_P.
14327 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
14328 (ix86_rtx_costs): Remove redundant TARGET_80387 check
14329 with IS_STACK_MODE macro.
14330 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
14332 (*movdf_internal): Use IS_STACK_MODE macro.
14333 (*movsf_internal): Ditto.
14335 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
14337 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
14338 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
14340 2016-05-23 Jeff Law <law@redhat.com>
14342 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
14344 (fsm_find_control_statement_thread_paths): Call it.
14346 2016-05-23 Martin Jambor <mjambor@suse.cz>
14349 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
14350 from_global_constant if t is not NULL.
14352 2016-05-23 Marek Polacek <polacek@redhat.com>
14355 * common.opt (Wswitch-unreachable): New option.
14356 * doc/invoke.texi: Document -Wswitch-unreachable.
14357 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
14360 2016-05-23 Bin Cheng <bin.cheng@arm.com>
14362 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
14363 TMR_INDEX is non-NULL.
14365 2016-05-23 Richard Biener <rguenther@suse.de>
14367 PR tree-optimization/71230
14368 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
14369 (try_special_add_to_ops): ... here. Always test for single-use.
14371 2016-05-23 Martin Jambor <mjambor@suse.cz>
14373 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
14374 default block if a PHI node in the original one would be resized.
14376 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14378 PR tree-optimization/58135
14379 * tree-vect-slp.c: When group size is not multiple
14380 of vector size, allow splitting of store group at
14383 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
14385 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
14387 2016-05-22 Jakub Jelinek <jakub@redhat.com>
14389 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
14390 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
14391 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
14394 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
14395 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
14396 v constraint instead of x and vinserti32x4 insn.
14398 * config/i386/sse.md (i128vldq): New mode iterator.
14399 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
14400 avx512dq and avx512vl alternatives.
14402 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
14403 constraint, use maybe_evex prefix instead of vex.
14404 (vec_dupv4sf): Use v constraint instead of x for output
14405 operand except for noavx alternative, use Yv constraint
14406 instead of x for input. Use maybe_evex prefix instead of vex.
14407 (*vec_dupv4si): Likewise.
14408 (*vec_dupv2di): Likewise.
14410 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
14412 PR middle-end/40921
14413 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
14414 (linearize_expr_tree): Call try_special_add_to_ops.
14415 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
14417 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14419 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
14420 to computed stack_usage.
14422 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14425 * config/avr/avr.md (define_expand "mov<mode>"): If the source
14426 operand is subreg (symbol_ref) then move the symbol ref to register.
14428 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
14430 * tree.c (array_at_struct_end_p): Look through MEM_REF.
14432 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
14434 PR middle-end/71179
14435 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
14438 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14440 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
14441 ranges by calling get_single_symbol and tidy up. Look more closely
14442 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
14444 2016-05-20 Jeff Law <law@redhat.com>
14446 * bitmap.c (bitmap_find_bit): Remove useless test.
14448 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
14450 * function.c (thread_prologue_and_epilogue_insns): Commit the
14451 insertion of the epilogue.
14453 2016-05-20 Martin Jambor <mjambor@suse.cz>
14455 PR tree-optimization/70884
14456 * tree-sra.c (initialize_constant_pool_replacements): Do not check
14457 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
14458 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
14459 of constant pool data as a reason for scalarization.
14461 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
14463 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
14464 for naked functions.
14465 (thumb1_expand_prologue): Likewise.
14467 2016-05-20 Nathan Sidwell <nathan@acm.org>
14469 * config/nvptx/nptx.c (nvptx_option_override): Only set
14470 flag_toplevel_reorder, if not explicitly specified. Set
14471 flag_no_common, unless explicitly specified.
14473 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14475 * calls.c (can_implement_as_sibling_call_p): Mark param
14476 reg_parm_stack_space with ATTRIBUTE_UNUSED.
14478 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
14480 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
14481 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
14482 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
14484 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
14485 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
14486 and CASE_CONST_ANY.
14488 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
14490 * config/nvptx/nvptx.md (sincossf3): New pattern.
14492 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14494 * calls.c (maybe_complain_about_tail_call): New function.
14495 (initialize_argument_information): Call
14496 maybe_complain_about_tail_call when clearing *may_tailcall.
14497 (can_implement_as_sibling_call_p): Call
14498 maybe_complain_about_tail_call when returning false.
14499 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
14500 ensure try_tail_call is set. Call maybe_complain_about_tail_call
14501 if tail-call optimization fails.
14502 * cfgexpand.c (expand_call_stmt): Initialize
14503 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
14504 * gimple-pretty-print.c (dump_gimple_call): Dump
14505 gimple_call_must_tail_p.
14506 * gimple.c (gimple_build_call_from_tree): Call
14507 gimple_call_set_must_tail with the value of
14508 CALL_EXPR_MUST_TAIL_CALL.
14509 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
14510 (gimple_call_set_must_tail): New function.
14511 (gimple_call_must_tail_p): New function.
14512 * print-tree.c (print_node): Update printing of TREE_STATIC
14513 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
14514 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
14515 trailing comment listing applicable flags.
14516 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
14518 2016-05-20 David Malcolm <dmalcolm@redhat.com>
14520 * calls.c (expand_call): Move "Rest of purposes for tail call
14521 optimizations to fail" to...
14522 (can_implement_as_sibling_call_p): ...this new function, and
14523 split into multiple "if" statements.
14525 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14527 * cfgloop.h (expected_loop_iterations_unbounded,
14528 expected_loop_iterations): Unconstify.
14529 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
14530 profile with known upper bound; return 3 when profile is absent.
14531 (expected_loop_iterations): Update.
14533 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14535 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
14536 and get_max_loop_iterations_int.
14538 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
14540 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
14541 realistic upper bounds here.
14543 2016-05-20 Jakub Jelinek <jakub@redhat.com>
14546 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
14547 calls if the LHS is variable length or has addressable type.
14548 If targets[0]->decl is a noreturn call with void return type and
14549 zero arguments, adjust fntype and remove lhs in that case.
14551 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
14553 PR tree-optimization/71079
14554 PR tree-optimization/71206
14555 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
14557 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14559 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
14560 (get_vec_alignment_for_array_decl): Likewise.
14561 (get_vec_alignment_for_record_decl): Likewise.
14562 (increase_alignment::execute): Move code to find alignment to
14563 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
14564 (type_align_map): New hash_map.
14566 2016-05-20 Richard Guenther <rguenther@suse.de>
14568 PR tree-optimization/29756
14569 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
14570 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
14571 * fold-const.c (operand_equal_p): Likewise.
14572 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
14573 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
14574 * tree-inline.c (estimate_operator_cost): Likewise.
14575 * tree-pretty-print.c (dump_generic_node): Likewise.
14576 * tree-ssa-operands.c (get_expr_operands): Likewise.
14577 * cfgexpand.c (expand_debug_expr): Likewise.
14578 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14579 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
14580 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
14581 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
14582 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
14583 (execute_update_addresses_taken): Do it.
14585 2016-05-20 Richard Biener <rguenther@suse.de>
14587 PR tree-optimization/71185
14588 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
14589 register operations.
14591 2016-05-20 Richard Biener <rguenther@suse.de>
14593 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
14594 gimple_seq_add_seq_without_update.
14595 (release_bb_predicate): Assert we have no operands to free.
14596 (if_convertible_loop_p_1): Calculate post dominators later.
14597 Do not free BB predicates here.
14598 (combine_blocks): Do not recompute BB predicates.
14599 (version_loop_for_if_conversion): Save BB predicates around
14602 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14604 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
14605 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
14606 code. Ignore sibcalls on EDGE_IGNORE edges.
14607 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
14608 on edges for sibcalls that run without prologue. The rest of the
14609 function is combined from...
14610 (fix_fake_fallthrough_edge): ... this, and ...
14611 (try_shrink_wrapping): ... a part of this. Remove the bb_with
14612 function argument, make it a local variable.
14614 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
14616 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
14617 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
14618 for 32-bit mode and SEH for 64-bit.
14619 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
14620 TARGET_64BIT_DEFAULT.
14622 2016-05-19 Ryan Burn <contact@rnburn.com>
14624 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
14625 * gengtype.c (open_base_files): Add cilk.h to ifiles.
14627 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
14629 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
14630 force pending loads from memory.
14632 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
14634 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
14635 (UNSPEC_DARN_32): New unspec constant.
14636 (UNSPEC_DARN_RAW): New unspec constant.
14637 (darn_32): New instruction.
14638 (darn_raw): New instruction.
14639 (darn): New instruction.
14640 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
14641 support and documentation for this macro.
14642 (BU_P9_MISC_1): New macro definition.
14643 (BU_P9_64BIT_MISC_0): New macro definition.
14644 (BU_P9_MISC_0): New macro definition.
14645 (darn_32): New builtin definition.
14646 (darn_raw): New builtin definition.
14647 (darn): New builtin definition.
14648 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
14649 RS6000_BUILTIN_0 directives to surround each occurrence of
14650 #include "rs6000-builtin.def".
14651 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
14652 RS6000_BTM_64BIT flags to the returned mask, depending on
14654 (def_builtin): Correct an error in the assignments made to the
14655 debugging variable attr_string.
14656 (rs6000_expand_builtin): Add support for no-operand built-in
14658 (builtin_function_type): Remove fatal_error assertion that is no
14660 (rs6000_common_init_builtins): Add support for no-operand built-in
14662 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
14664 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
14666 (RS6000_BTM_64BIT): New macro definition.
14667 * doc/extend.texi: Document __builtin_darn (void),
14668 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
14671 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
14673 * tree-vect-loop.c (vect_analyze_loop_2): Use also
14674 max_loop_iterations_int.
14676 2016-05-19 Marek Polacek <polacek@redhat.com>
14678 PR tree-optimization/71031
14679 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
14680 condition and adjust the code a bit.
14682 2016-05-19 Martin Liska <mliska@suse.cz>
14684 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
14685 auto_vec instead of vec.
14687 2016-05-19 Martin Liska <mliska@suse.cz>
14689 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
14691 2016-05-19 Martin Liska <mliska@suse.cz>
14693 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
14695 2016-05-19 Martin Liska <mliska@suse.cz>
14697 * ipa-pure-const.c (set_function_state): Remove an existing
14699 (remove_node_data): Do not free it as it's released
14700 in set_function_state.
14702 2016-05-19 Martin Liska <mliska@suse.cz>
14704 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
14707 2016-05-19 Martin Liska <mliska@suse.cz>
14709 * omp-simd-clone.c (simd_clone_adjust): Release vector.
14711 2016-05-19 Martin Liska <mliska@suse.cz>
14713 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
14714 an auto_vec instead of re-creating it.
14716 2016-05-19 Martin Liska <mliska@suse.cz>
14718 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14719 auto_vec instead of vec.
14721 2016-05-19 Martin Liska <mliska@suse.cz>
14723 * lto-section-in.c (lto_get_section_data): Call
14724 lto_check_version with additional argument.
14725 * lto-streamer.c (lto_check_version): Add new argument.
14726 * lto-streamer.h (lto_check_version): Likewise.
14728 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14730 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14731 Don't add cost of inner memory when handling sign-extended loads.
14733 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
14735 PR rtl-optimization/71148
14736 * cse.c (cse_main): Free dominance info.
14737 (rest_of_handle_cse): Don't free dominance info.
14738 (rest_of_handle_cse2): Likewise.
14739 (rest_of_handle_cse_after_global_opts): Likewise.
14741 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14744 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14745 NULL_TREE early if NEON is not available. Remove now redundant check
14746 in ARM_CHECK_BUILTIN_MODE.
14748 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
14751 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14752 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14753 * doc/cpp.texi: Document new macros.
14755 2016-05-19 Bin Cheng <bin.cheng@arm.com>
14757 PR tree-optimization/69848
14758 * tree-vect-loop.c (vectorizable_reduction): Don't factor
14759 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14761 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
14763 * function.c (thread_prologue_and_epilogue_insn): Move the
14764 "goto epilogue_done" one block later.
14766 2016-05-19 Richard Biener <rguenther@suse.de>
14768 PR tree-optimization/70729
14769 * passes.def: Move LIM pass before PRE. Remove no longer
14770 required copyprop and move first DCE out of the loop pipeline.
14772 2016-05-18 David Malcolm <dmalcolm@redhat.com>
14775 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14776 (OBJS-libcommon-target): ...here.
14777 * opts-common.c: Include spellcheck.h.
14778 (cmdline_handle_error): Build a vec of valid options and use it
14779 to suggest provide hints for misspelled arguments.
14781 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14784 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14785 lhs if it has TREE_ADDRESSABLE type.
14787 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
14790 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14791 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14793 2016-05-18 Martin Jambor <mjambor@suse.cz>
14796 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14797 input for NOP_EXPR pass-through functions.
14798 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14799 aggregate global constant VAR_DECLs in constant jump functions.
14801 2016-05-18 Martin Jambor <mjambor@suse.cz>
14804 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14805 from TREE_READONLY parameters.
14807 2016-05-18 Martin Jambor <mjambor@suse.cz>
14810 * cgraph.h (cgraph_indirect_call_info): New field
14811 guaranteed_unmodified.
14812 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14813 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14815 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14816 pass the parameter value to ipa_find_agg_cst_for_param.
14817 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14818 guaranteed_unmodified, store AA results there instead of bailing out
14820 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14821 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14822 (find_constructor_constant_at_offset): New function.
14823 (ipa_find_agg_cst_from_init): Likewise.
14824 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14825 static initializers of contants, report back through a new paameter
14826 from_global_constant if that was the case.
14827 (try_make_edge_direct_simple_call): Also pass parameter value to
14828 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14830 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14831 (ipa_read_indirect_edge_info): Likewise.
14832 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14833 (ipa_load_from_parm_agg): Likewise.
14835 2016-05-18 Jiong Wang <jiong.wang@arm.com>
14837 PR rtl-optimization/71150
14838 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14841 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
14844 * config/rs6000/constraints.md (wE constraint): New constraint
14845 for a vector constant that can be loaded with XXSPLTIB.
14846 (wM constraint): New constraint for a vector constant of a 1's.
14847 (wS constraint): New constraint for a vector constant that can be
14848 loaded with XXSPLTIB and a vector sign extend instruction.
14849 * config/rs6000/predicates.md (xxspltib_constant_split): New
14850 predicates for wE/wS constraints.
14851 (xxspltib_constant_nosplit): Likewise.
14852 (easy_vector_constant): Add support for constants that can be
14853 loaded via XXSPLTIB.
14854 (all_ones_constant): New predicate for vector constant with all
14856 (splat_input_operand): Add support for ISA 3.0 word splat operations.
14857 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14858 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14859 instruction and possibly with a sign extension.
14860 (output_vec_const_move): Add support for XXSPLTIB. If we are
14861 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14862 instead of XXLXOR/XXLORC.
14863 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14865 (rs6000_legitimize_reload_address): Likewise.
14866 (rs6000_output_move_128bit): Use output_vec_const_move to emit
14868 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14869 combine VSX_M and VSX_M2 into one iterator.
14870 (VSX_M2): Likewise.
14871 (VSINT_84): New iterators for loading constants with XXSPLTIB.
14872 (VSINT_842): Likewise.
14873 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14874 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14875 XXSPLTIB instruction.
14876 (xxspltib_<mode>_nosplit): Likewise.
14877 (xxspltib_<mode>_split): New insn to load up constants with
14878 XXSPLTIB and a sign extend instruction.
14879 (vsx_mov<mode>): Replace single move that handled all vector types
14880 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
14881 moves (when -mvsx-timode is in effect) into the main vector
14882 moves. Eliminate separate moves for <VSr> <VSa>, where the
14883 preferred register class (<VSr>) is listed first, and the
14884 secondary register class (<VSa>) is listed second with a '?' to
14885 discourage use. Prefer loading 0/-1 in any VSX register for ISA
14886 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14887 that if the register was involved in a slow operation, the
14888 clear/set operation does not wait for the slow operation to
14889 finish. Adjust the length attributes for 32-bit mode. Use
14890 rs6000_output_move_128bit and drop the use of the string
14891 instructions for 32-bit movti when -mvsx-timode is in effect. Use
14892 spacing so that the alternatives and attributes don't generate
14893 long lines, and put things in columns, so that it is easier to
14894 match up the operands and attributes with the insn alternatives.
14895 (vsx_mov<mode>_64bit): Likewise.
14896 (vsx_mov<mode>_32bit): Likewise.
14897 (vsx_movti_64bit): Fold movti into normal vector moves.
14898 (vsx_movti_32bit): Likewise.
14899 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14900 splat instructions.
14901 (vsx_splat_v4si_internal): Likewise.
14902 (vsx_splat_v4sf_internal): Likewise.
14903 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14904 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14905 extend vector elements.
14906 (vsx_sign_extend_hi_<mode>): Likewise.
14907 (vsx_sign_extend_si_v2di): Likewise.
14908 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14910 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14911 constraints. Add trailing period to wL documentation.
14913 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
14915 PR middle-end/71020
14916 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14917 * tree-dfa.c (replace_abnormal_ssa_names): New function.
14918 * tree-call-cdce.c: Include tree-dfa.h.
14919 (can_guard_call_p): New function, extracted from...
14920 (can_use_internal_fn): ...here.
14921 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14923 (shrink_wrap_one_built_in_call): Likewise.
14924 (use_internal_fn): Likewise.
14925 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14926 and return void. Call replace_abnormal_ssa_names.
14927 (pass_call_cdce::execute): Check can_guard_call_p during the
14928 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
14929 will always change something.
14931 2016-05-18 Martin Jambor <mjambor@suse.cz>
14934 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14935 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14937 2016-05-18 Martin Jambor <mjambor@suse.cz>
14940 * ipa-inline.h (condition): New field size.
14941 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14942 for comaprison and store it into the new condition.
14943 (evaluate_conditions_for_known_args): Use condition size to check
14944 access sizes for all but CHANGED conditions.
14945 (unmodified_parm_1): New parameter size_p, store access size into it.
14946 (unmodified_parm): Likewise.
14947 (unmodified_parm_or_parm_agg_item): Likewise.
14948 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
14949 (set_cond_stmt_execution_predicate): Extract access sizes and store
14950 them to conditions.
14951 (set_switch_stmt_execution_predicate): Likewise.
14952 (will_be_nonconstant_expr_predicate): Likewise.
14953 (will_be_nonconstant_predicate): Likewise.
14954 (inline_read_section): Stream condition size.
14955 (inline_write_summary): Likewise.
14957 2016-05-18 Richard Biener <rguenther@suse.de>
14959 * tree-ssa-loop-im.c (determine_max_movement): Properly add
14960 condition cost to PHI cost instead of total_cost.
14962 2016-05-18 Martin Liska <mliska@suse.cz>
14965 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
14968 2016-05-18 Richard Biener <rguenther@suse.de>
14970 * lto-streamer.h (LTO_major_version): Bump to 6.
14972 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14974 * function.c (make_split_prologue_seq, make_prologue_seq,
14975 make_epilogue_seq): New functions, factored out from...
14976 (thread_prologue_and_epilogue_insns): Here.
14978 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
14980 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14981 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
14982 of before. Add a comment.
14984 2016-05-18 Bin Cheng <bin.cheng@arm.com>
14986 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
14987 expression pointer, not pointer to the pointer.
14989 2016-05-18 Jakub Jelinek <jakub@redhat.com>
14991 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
14992 (avx2_pbroadcast<mode>): Add another alternative with v instead
14993 of x constraints in it, using <pbroadcast_evex_isa> isa.
14994 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
14996 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
14997 constraint x instead of v in second alternative, add avx512bw
15000 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
15001 constraint x instead of v in second alternative, add avx512bw
15004 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
15005 constraint x instead of v in second alternative, add avx512bw
15008 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
15009 avx512bw alternative.
15011 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15013 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
15014 array to 128 chars.
15015 (define_insn "*andnottf3"): Ditto.
15016 (define_insn "*<code><mode>3"/any_logic): Ditto.
15017 (define_insn "*<code>tf3"/any_logic): Ditto.
15018 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
15019 operand to block AVX-512VL insn variant emit when it is not enabled.
15021 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
15023 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
15024 constraint fot SF mode.
15026 2016-05-18 Petr Murzin <petr.murzin@intel.com>
15027 Kirill Yukhin <kirill.yukhin@intel.com>
15029 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
15031 (define_insn "rsqrt14<mode>"): Ditto.
15032 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
15033 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
15034 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
15035 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
15036 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
15038 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
15039 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
15040 * config/i386/i386.c (ix86_print_operand): Expand check for size
15041 override codes for Intel syntax.
15043 2016-05-18 Richard Biener <rguenther@suse.de>
15045 PR tree-optimization/71168
15046 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
15047 initialization earlier.
15049 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
15051 * config/aarch64/aarch64-simd.md
15052 (aarch64_reduc_plus_internal<mode>): Rename to...
15053 (reduc_plus_scal): ...This, and remove previous implementation.
15055 2016-05-18 Richard Biener <rguenther@suse.de>
15057 * passes.def: Put late dse and cd_dce in canonical order.
15059 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
15061 * ipa-inline-transform.c (preserve_function_body_p): Look for
15062 first non-thunk clone.
15063 (save_function_body): Save into first non-thunk.
15064 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
15066 (lto_output_node): Inline thunks don't need body in every
15068 * lto-streamer-in.c: Do not fixup thunk clones.
15069 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
15071 * tree-inline.c (copy_bb): Be prepared for target node to be new after
15074 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15076 PR middle-end/63586
15077 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
15078 (reassociate_bb): Call transform_add_to_multiply.
15080 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15082 * config/aarch64/aarch64.c (all_extensions): Removed unused
15085 2016-05-17 Nathan Sidwell <nathan@acm.org>
15087 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
15088 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
15090 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
15092 PR tree-optimization/54579
15093 PR middle-end/55299
15094 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
15096 2016-05-17 Marek Polacek <polacek@redhat.com>
15099 * tree-inline.c (expand_call_inline): Call
15100 maybe_remove_unused_call_args.
15102 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
15104 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
15105 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
15106 * doc/md.texi (fmin@var{m}3): Likewise.
15108 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15110 * match.pd (X & C): New transformation.
15112 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15114 * match.pd (~X & Y): New transformation.
15116 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
15118 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
15119 information for new SSA_NAME.
15120 (simplify_conversion_using_ranges): Get range through get_range_info
15121 instead of get_value_range.
15123 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15125 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
15126 Remove inline assembly.
15127 (vmvn_s16): Likewise.
15128 (vmvn_s32): Likewise.
15129 (vmvn_u8): Likewise.
15130 (vmvn_u16): Likewise.
15131 (vmvn_u32): Likewise.
15132 (vmvnq_s8): Likewise.
15133 (vmvnq_s16): Likewise.
15134 (vmvnq_s32): Likewise.
15135 (vmvnq_u8): Likewise.
15136 (vmvnq_u16): Likewise.
15137 (vmvnq_u32): Likewise.
15138 (vmvn_p8): Likewise.
15139 (vmvnq_p16): Likewise.
15141 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15143 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
15145 (vmul_n_s16): Likewise.
15146 (vmul_n_s32): Likewise.
15147 (vmul_n_u16): Likewise.
15148 (vmul_n_u32): Likewise.
15149 (vmulq_n_f32): Likewise.
15150 (vmulq_n_f64): Likewise.
15151 (vmulq_n_s16): Likewise.
15152 (vmulq_n_s32): Likewise.
15153 (vmulq_n_u16): Likewise.
15154 (vmulq_n_u32): Likewise.
15156 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15158 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
15159 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
15161 2016-05-17 Jiong Wang <jiong.wang@arm.com>
15163 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
15164 to *aarch64_fma4_elt_from_dup<mode>.
15165 (*aarch64_fnma4_elt_to_128df): Rename to
15166 *aarch64_fnma4_elt_from_dup<mode>.
15167 * config/aarch64/arm_neon.h (vfma_n_f64): New.
15168 (vfms_n_f32): Likewise.
15169 (vfms_n_f64): Likewise.
15170 (vfmsq_n_f32): Likewise.
15171 (vfmsq_n_f64): Likewise.
15173 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
15175 * wide-int.h: Change fixed_wide_int_storage from class to struct.
15177 2016-05-17 Richard Biener <rguenther@suse.de>
15179 PR tree-optimization/71132
15180 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
15181 Only add control dependences for blocks in the loop.
15182 (build_rdg): Adjust.
15183 (generate_code_for_partition): Return whether loop should
15184 be destroyed and delay that.
15185 (distribute_loop): Likewise.
15186 (pass_loop_distribution::execute): Record loops to be destroyed
15187 and perform delayed destroying of loops.
15189 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15192 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
15194 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15196 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
15198 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
15201 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
15202 insertion point for instructions generated by validize_mem.
15204 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15206 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
15209 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
15211 * config/aarch64/aarch64.c
15212 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
15213 rather than a macro.
15215 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15217 * doc/invoke.texi (AArch64 Options): Various updates.
15219 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15221 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
15222 into instrumentation thunks.
15223 * cif-code.def (CIF_CHKP): New.
15225 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
15227 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
15229 2016-05-16 Martin Jambor <mjambor@suse.cz>
15231 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
15232 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
15234 2016-05-16 Marek Polacek <polacek@redhat.com>
15236 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
15239 2016-05-16 Martin Jambor <mjambor@suse.cz>
15242 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
15243 the outlined kernel function.
15245 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
15247 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
15248 (ISA_HAS_DLSA): Ditto.
15250 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15252 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
15254 2016-05-16 Nathan Sidwell <nathan@acm.org>
15256 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
15257 (nvptx_name_replacement): Restore. Add comment.
15258 (write_fn_proto, write_fn_proto_from_insn,
15259 nvptx_output_call_insn): Restore
15260 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
15262 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15264 * config/aarch64/aarch64.md
15265 (add<mode>3_compareC_cconly_imm): Remove use of %w.
15266 (add<mode>3_compareC_imm): Likewise.
15267 (<optab>si3_uxtw): Split into register and immediate variants.
15268 (andsi3_compare0_uxtw): Likewise.
15269 (and<mode>3_compare0): Likewise.
15270 (and<mode>3nr_compare0): Likewise.
15271 (stack_protect_test_<mode>): Don't use %x for memory operands.
15273 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
15275 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
15277 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
15279 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15280 Split integer shifts into shift_reg and bfm.
15281 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
15282 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15283 (ror<mode>3_insn): Likewise.
15284 (<optab>si3_insn_uxtw): Likewise.
15285 (<optab><mode>3_insn): Change to rotate_imm.
15286 (extr<mode>5_insn_alt): Likewise.
15287 (extrsi5_insn_uxtw): Likewise.
15288 (extrsi5_insn_uxtw_alt): Likewise.
15290 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15292 * doc/tm.texi: Regenerate.
15293 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
15294 (TARGET_INVALID_RETURN_TYPE): Remove.
15295 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
15296 TARGET_INVALID_RETURN_TYPE.
15297 * target.def (invalid_parameter_type): Remove.
15298 (invalid_return_type): Remove.
15300 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15302 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
15303 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
15305 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
15307 (preserve_function_body_p): No need to preserve function body
15308 * cif-codes.def (CIF_THUNK): Remove.
15309 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
15311 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15313 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
15315 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15317 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
15320 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15322 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
15323 (inline_small_functions): Do not look for function symbol when
15326 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
15328 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
15331 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15332 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15333 Jiong Wang <jiong.wang@arm.com>
15335 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
15336 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
15337 Define __ARM_FP16_ARGS when appropriate.
15338 * config/arm/arm.c (arm_invalid_parameter_type): Remove
15340 (arm_invalid_return_type): Likewise.
15341 (TARGET_INVALID_PARAMETER_TYPE): Remove.
15342 (TARGET_INVALID_RETURN_TYPE): Remove.
15343 (aapcs_vfp_sub_candidate): Allow HFmode.
15344 (aapcs_vfp_allocate): Add comment. Support HFmode.
15345 (aapcs_vfp_allocate_return_reg): Likewise.
15346 (struct aapcs_cp_arg_layout): Slightly reword comments for
15347 is_return_candidate and allocate_return_reg.
15348 (output_mov_vfp): Update assert.
15349 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
15351 (arm_invalid_parameter_type): Remove.
15352 (amr_invalid_return_type): Remove.
15353 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
15354 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
15355 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
15357 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
15359 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15360 * config/aarch64/arch64-protos.h
15361 (aarch64_legitimize_reload_address): Remove.
15362 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
15365 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
15367 * configure.ac: Add ACX_NONCANONICAL_HOST.
15368 * configure: Regenerate.
15369 * Makefile.in: Set host_noncanonical.
15371 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
15374 * config/i386/i386.md (*movtf_internal): Before register allocation,
15375 do not allow FP constants for CM_MEDIUM memory model, allow only
15376 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
15377 (*movxf_internal): Ditto.
15378 (*movdf_internal): Ditto.
15379 (*movsf_internal): Ditto.
15381 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
15383 PR rtl-optimization/67483
15384 * combine.c (make_compound_operation): Don't call extract_left_shift
15385 with negative shift amounts.
15387 2016-05-13 Jakub Jelinek <jakub@redhat.com>
15390 * fold-const.c (fold_checksum_tree): Allow modification
15391 of TYPE_ALIAS_SET during folding.
15393 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
15394 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
15395 (ix86_split_to_parts): Likewise. Fix up formatting.
15397 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
15399 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
15400 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
15403 2016-05-13 Nathan Sidwell <nathan@acm.org>
15405 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
15406 (nvptx_name_replacement): Delete.
15407 (write_fn_proto, write_fn_proto_from_insn,
15408 nvptx_output_call_insn): Remove nvptx_name_replacement call.
15409 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
15410 * langhooks.c (add_builtin_funcction_common): Call
15411 targetm.mangle_decl_assembler_name.
15413 * config/nvptx/nvptx.c (write_fn_proto): Handle
15414 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
15416 2016-05-13 Martin Liska <mliska@suse.cz>
15418 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
15419 and PRIu64 in printf format.
15421 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15423 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
15426 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15428 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15429 Change --param max-completely-peeled-times to
15430 --param max-completely-peel-times in dump file printing.
15432 2016-05-13 Richard Biener <rguenther@suse.de>
15434 PR tree-optimization/42587
15435 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
15436 (find_bswap_or_nop_1): Likewise.
15437 (bswap_replace): Likewise.
15439 2016-05-13 Martin Liska <mliska@suse.cz>
15441 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
15442 Initialize a variable with default value.
15444 2016-05-13 Martin Liska <mliska@suse.cz>
15446 * doc/invoke.texi: Enhance explanation of error recovery
15449 2016-05-13 Martin Liska <mliska@suse.cz>
15451 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
15452 (struct cost_pair): Change inv_expr_id (int) to inv_expr
15453 (iv_inv_expr_ent *).
15454 (struct iv_inv_expr_ent): Comment struct fields.
15455 (sort_iv_inv_expr_ent): New function.
15456 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
15457 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
15458 a hash_map between iv_inv_expr_ent and number of usages.
15459 (niter_for_exit): Fix coding style.
15460 (tree_ssa_iv_optimize_init): Use renamed variable.
15461 (determine_base_object): Fix coding style.
15462 (alloc_iv): Likewise.
15463 (find_interesting_uses_outside): Likewise.
15464 (add_candidate_1): Likewise.
15465 (add_standard_iv_candidates): Likewise.
15466 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
15467 (prepare_decl_rtl): Fix coding style.
15468 (get_address_cost): Likewise.
15469 (get_shiftadd_cost): Likewise.
15470 (force_expr_to_var_cost): Likewise.
15471 (compare_aff_trees): Likewise.
15472 (get_expr_id): Restructure the function.
15473 (get_loop_invariant_expr_id): Renamed to
15474 get_loop_invariant_expr.
15475 (get_computation_cost_at): Replace usage of inv_expr_id with
15477 (get_computation_cost): Likewise.
15478 (determine_group_iv_cost_generic): Likewise.
15479 (determine_group_iv_cost_address): Likewise.
15480 (iv_period): Fix coding style.
15481 (iv_elimination_compare_lt): Likewise.
15482 (may_eliminate_iv): Likewise.
15483 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
15485 (determine_group_iv_costs): Dump invariant expressions.
15486 (iv_ca_recount_cost): Use the newly added hash_map.
15487 (iv_ca_set_remove_invariants): Fix coding style.
15488 (iv_ca_set_add_invariants): Fix coding style.
15489 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
15491 (iv_ca_set_cp): Likewise.
15492 (iv_ca_new): Initialize the newly added hash_map and remove
15493 initialization of fields.
15494 (iv_ca_free): Delete the hash_map.
15495 (iv_ca_dump): Dump invariant expressions.
15496 (iv_ca_extend): Fix coding style.
15497 (try_add_cand_for): Likewise.
15498 (create_new_ivs): Dump information about # of avg iterations and
15499 # of used invariant expressions.
15500 (rewrite_use_compare): Fix coding style.
15501 (free_loop_data): Set default value for max_inv_expr_id.
15503 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
15505 * cse.c (rest_of_handle_cse): Use cleanup_cfg
15506 returned value cse_cfg_altered computation.
15507 (rest_of_handle_cse2): Likewise.
15508 (rest_of_handle_cse_after_global_opts): Likewise.
15510 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15513 * config/arm/arm.c (arm32_output_mi_thunk): New.
15514 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
15515 to split Thumb1 vs TARGET_32BIT functionality.
15516 (arm_thumb1_mi_thunk): New.
15518 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15520 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
15523 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15526 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
15528 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
15530 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
15531 (expand_builtin_trap): Emit a regular call.
15532 (set_builtin_user_assembler_name): Remove obsolete cases.
15533 * dse.c (scan_insn): Adjust.
15534 * except.c: Include calls.h.
15535 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
15536 emit a regular call to setjmp.
15537 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
15538 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
15539 (emit_block_move_via_libcall): Delete.
15540 (block_move_fn): Delete.
15541 (init_block_move_fn): Likewise.
15542 (emit_block_move_libcall_fn): Likewise.
15543 (emit_block_op_via_libcall): New function.
15544 (set_storage_via_libcall): Tidy up and use memset builtin.
15545 (block_clear_fn): Delete.
15546 (init_block_clear_fn): Likewise.
15547 (clear_storage_libcall_fn): Likewise.
15548 (expand_assignment): Call emit_block_move_via_libcall.
15549 Do not include gt-expr.h.
15550 * expr.h (emit_block_op_via_libcall): Declare.
15551 (emit_block_copy_via_libcall): New inline function.
15552 (emit_block_move_via_libcall): Likewise.
15553 (emit_block_comp_via_libcall): Likewise.
15554 (block_clear_fn): Delete.
15555 (init_block_move_fn): Likewise.
15556 (init_block_clear_fn): Likewise.
15557 (emit_block_move_via_libcall): Likewise.
15558 (set_storage_via_libcall): Add default parameter value.
15559 * libfuncs.h (enum libfunc_index): Remove obsolete values.
15560 (abort_libfunc): Delete.
15561 (memcpy_libfunc): Likewise.
15562 (memmove_libfunc): Likewise.
15563 (memcmp_libfunc): Likewise.
15564 (memset_libfunc): Likewise.
15565 (setbits_libfunc): Likewise.
15566 (setjmp_libfunc): Likewise.
15567 (longjmp_libfunc): Likewise.
15568 (profile_function_entry_libfunc): Likewise.
15569 (profile_function_exit_libfunc): Likewise.
15570 (gcov_flush_libfunc): Likewise.
15571 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
15572 and DECL_VISIBILITY on the declaration.
15573 (init_optabs): Do not initialize obsolete libfuncs.
15574 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
15575 * tree-core.h (ECF_RET1): Define.
15576 (ECF_TM_PURE): Adjust.
15577 (ECF_TM_BUILTIN): Likewise.
15578 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
15579 (build_common_builtin_nodes): Initialize abort builtin.
15580 Add ECF_RET1 on memcpy, memmove and memset builtins.
15581 Pass final flags for alloca and alloca_with_align builtins.
15582 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
15584 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
15585 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
15586 set_storage_via_libcall and call emit_block_copy_via_libcall.
15588 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
15590 * config/i386/i386.md (*call_got_x32): Change operand 0 to
15591 DImode before it is passed to ix86_output_call_operand.
15592 (*call_value_got_x32): Ditto for operand 1.
15594 2016-05-12 Jiong Wang <jiong.wang@arm.com>
15596 PR rtl-optimization/70904
15597 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
15598 reload for wide mode.
15600 2016-05-12 Marek Polacek <polacek@redhat.com>
15603 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
15604 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
15605 * langhooks.h (incomplete_type_error): Likewise.
15606 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
15607 parameter, pass it down to incomplete_type_error.
15608 * tree.h (size_in_bytes): New inline overload.
15609 (size_in_bytes_loc): Renamed from size_in_bytes.
15611 2016-05-12 Richard Biener <rguenther@suse.de>
15613 PR tree-optimization/71059
15614 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
15615 nary before looking up or entering the expression into the VN
15617 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
15618 Make sure to re-use NARYs without result as inserted by
15621 2016-05-12 Richard Biener <rguenther@suse.de>
15623 PR tree-optimization/71062
15624 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15626 * tree-ssa-structalias.c (set_uids_in_ptset): Set
15627 vars_contains_restrict if the var is a restrict tag.
15628 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
15629 do not disambiguate pointers against it.
15630 (dump_points_to_solution): Re-structure and adjust for new
15631 vars_contains_restrict flag.
15632 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
15634 2016-05-12 Martin Liska <mliska@suse.cz>
15636 * doc/invoke.texi: Explain connection between
15637 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
15639 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
15641 PR tree-optimization/71006
15642 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15643 consider COND_EXPR as a mask producer.
15645 2016-05-12 Marek Polacek <polacek@redhat.com>
15648 * opts.c (common_handle_option): Detect missing argument for --help^.
15650 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15653 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
15654 when popping the PC and within an interrupt handler routine.
15655 Add missing tab to output of "ldmfd".
15656 (output_return_instruction): Output LDMFD with SP update rather
15657 than POP when returning from interrupt handler.
15659 2016-05-12 Jakub Jelinek <jakub@redhat.com>
15661 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
15662 TARGET_64BIT && TARGET_AVX512DQ.
15663 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
15664 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
15665 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
15666 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
15667 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
15668 (*vec_extractv4si_zext): Add avx512dq alternative.
15669 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
15670 use v instead of x constraint in other alternatives where possible.
15672 * config/i386/sse.md (sse2_loadld): Use v instead of x
15673 constraint in alternatives 0,1,4.
15675 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
15676 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
15677 v constraints instead of x and <pinsr_evex_isa> isa attribute.
15680 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
15681 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
15682 is not emitted unless TARGET_AVX512BW.
15683 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
15684 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
15685 for the result operand.
15687 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
15688 constraint instead of x in avx alternatives. Use maybe_evex instead
15691 * config/i386/constraints.md (Yv): New constraint.
15692 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
15693 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
15694 * config/i386/i386.md (avx512fvecmode): New mode attr.
15695 (*pushtf): Use v constraint instead of x.
15696 (*movtf_internal): Likewise. For TARGET_AVX512VL and
15697 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
15698 (*absneg<mode>2): Use Yv constraint instead of x constraint.
15699 (*absnegtf2_sse): Likewise.
15700 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
15701 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
15702 avx512f alternatives.
15703 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
15705 2016-05-12 Richard Biener <rguenther@suse.de>
15707 PR tree-optimization/71060
15708 * tree-data-ref.c (initialize_data_dependence_relation): Do not
15709 require exact match of DR_BASE_OBJECT but only matching address and
15712 2016-05-12 Richard Biener <rguenther@suse.de>
15714 PR tree-optimization/70986
15715 * cfganal.c: Include cfgloop.h.
15716 (dfs_find_deadend): Prefer to take edges exiting loops.
15718 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15720 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15721 compile and run time.
15723 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
15726 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15728 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
15730 * config/i386/i386.c (legitimize_pic_address): Use
15731 copy_to_suggested_reg instead of gen_movsi.
15733 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15735 * config/rs6000/predicates.md (quad_memory_operand): Move most of
15736 the code into quad_address_p and call it to share code with
15737 vsx_quad_dform_memory_operand.
15738 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15740 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15741 bit instead of being a separate word. Split -mpower9-dform into
15742 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15743 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15744 for the register class supporting 128-bit quad word memory offsets.
15745 (mode_supports_vsx_dform_quad): Helper function to return if the
15746 register class uses quad word memory offsets.
15747 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15748 (rs6000_debug_reg_global): Always print if we are using LRA or not.
15749 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15750 instructions are enabled, set up the appropriate addr_masks for
15752 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15753 -mpower9-dform-scalar, instead of -mpower9-dform.
15754 (rs6000_option_override_internal): Split -mpower9-dform into two
15755 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
15756 -mpower9-dform switch sets or clears both. If we are not using
15757 the LRA register allocator, do not enable -mpower9-dform-vector by
15758 default. If we are using LRA, enable -mpower9-dform-vector and
15759 -mvsx-timode if it is appropriate. Issue a warning if either
15760 -mpower9-dform-vector or -mvsx-timode are explicitly used without
15762 (quad_address_offset_p): New helper function to return if the
15763 offset is legal for quad word memory instructions.
15764 (quad_address_p): New function to determin if GPR or vector
15765 register quad word memory addresses are legal.
15766 (mem_operand_gpr): Validate quad word address offsets.
15767 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15768 d-form (register + offset) instructions.
15769 (offsettable_ok_by_alignment): Likewise.
15770 (rs6000_legitimate_offset_address_p): Likewise.
15771 (legitimate_lo_sum_address_p): Likewise.
15772 (rs6000_legitimize_address): Likewise.
15773 (rs6000_legitimize_reload_address): Add more debug statements for
15775 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15776 d-form instructions.
15777 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15778 d-form instructions. Distinguish different cases in debug
15779 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15780 d-form instructions.
15781 (rs6000_preferred_reload_class): Likewise.
15782 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15783 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
15784 of the ISA 2.06 indexed memory instructions.
15785 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15786 use them to save/restore the saved vector registers instead of
15787 using Altivec instructions.
15788 (rs6000_emit_epilogue): Likewise.
15789 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15790 (rs6000_opt_masks): Split -mpower9-dform into
15791 -mpower9-dform-scalar and -mpower9-dform-vector.
15792 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15794 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15795 ISA 3.0 vector indexed memory instructions, and fold the code into
15796 the normal mov<mode> patterns.
15797 (p9_vecstore_<mode>): Likewise.
15798 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15800 (vsx_movti_64bit): Likewise.
15801 (vsx_movti_32bit): Likewise.
15802 * config/rs6000/constraints.md (wO constraint): New constraint for
15803 ISA 3.0 vector d-form support.
15804 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15805 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
15806 include -mpower9-dform-vector until we switch over to LRA.
15807 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15808 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15809 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15810 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15811 for -mpower9-dform and -mlra.
15812 * doc/md.texi (wO constraint): Document wO constraint.
15814 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
15816 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15817 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15818 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15819 Move handling of non-insn arguments inline into the sole user:
15820 (output_trans_func): ...here.
15821 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15822 in emitted function prototype.
15823 (output_internal_insn_latency_func): Ditto. Simplify.
15824 (output_internal_maximal_insn_latency_func): Ditto. Delete
15825 always-unused argument.
15826 (output_insn_latency_func): Ditto.
15827 (output_maximal_insn_latency_func): Ditto.
15829 2016-05-11 Richard Biener <rguenther@suse.de>
15831 PR tree-optimization/71055
15832 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15833 sth with precision not equal to access size verify we don't chop
15836 2016-05-11 Richard Biener <rguenther@suse.de>
15839 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15840 (dwarf2out_finish): Move retry_incomplete_types call ...
15841 (dwarf2out_early_finish): ... here.
15843 2016-05-11 Richard Biener <rguenther@suse.de>
15845 PR middle-end/71002
15846 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15847 if the langhook insists on it.
15848 * fold-const.c (make_bit_field_ref): Add arg for the original
15849 reference and preserve its alias-set.
15850 (decode_field_reference): Take exp by reference and adjust it
15851 to the original memory reference.
15852 (optimize_bit_field_compare): Adjust callers.
15853 (fold_truth_andor_1): Likewise.
15854 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15856 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
15858 PR middle-end/70807
15859 * cfgrtl.h (delete_insn_and_edges): Now return bool.
15860 * cfgrtl.c (delete_insn_and_edges): Likewise.
15861 * config/i386/i386.c (convert_scalars_to_vector): Remove
15863 * cse.c (cse_insn): Compute cse_cfg_altered.
15864 (delete_trivially_dead_insns): Likewise.
15865 (cse_cc_succs): Likewise.
15866 (rest_of_handle_cse): Free dominance info if required.
15867 (rest_of_handle_cse2): Likewise.
15868 (rest_of_handle_cse_after_global_opts): Likewise.
15870 2016-05-11 Alan Modra <amodra@gmail.com>
15872 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15873 abi_v4_pass_in_fpr): New functions.
15874 (rs6000_function_arg_boundary): Exclude complex IBM long double
15875 from 64-bit alignment when ABI_V4.
15876 (rs6000_function_arg, rs6000_function_arg_advance_1,
15877 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15879 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
15881 PR rtl-optimization/71028
15882 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15883 jump with just a return in the fallthrough block if the branch
15884 block contains just a return as well.
15886 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
15888 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15889 * match.pd ((X & Y) ^ Y): ... this.
15890 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15891 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15893 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15895 * read-md.c (require_char_ws): New function.
15896 (read_string): Simplify using require_char_ws.
15897 (handle_constants): Likewise.
15898 (handle_enum): Likewise.
15899 (handle_file): Likewise.
15900 * read-md.h (require_char_ws): New declaration.
15901 * read-rtl.c (read_conditions): Simplify using require_char_ws.
15902 (read_mapping): Likewise.
15903 (read_rtx_code): Likewise.
15904 (read_nested_rtx): Likewise.
15906 2016-05-10 James Norris <jnorris@codesourcery.com>
15908 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15909 if offloading is enabled and -fopenacc or -fopenmp is specified.
15910 (CRTOFFLOADEND): Likewise.
15911 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15912 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15914 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
15916 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15917 gotoff_operand code paths. Use copy_to_suggested_regs and
15918 expand_simple_binop where appropriate. Cleanup.
15920 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15923 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15925 (dimode_scalar_chain::vector_const_cost): New.
15926 (dimode_scalar_chain::compute_convert_gain): Handle constants.
15927 (dimode_scalar_chain::convert_op): Likewise.
15928 (dimode_scalar_chain::convert_insn): Likewise.
15930 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
15932 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15933 unary operation, not a binary one.
15935 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15937 PR middle-end/70877
15938 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15939 calls with type casted fndecl.
15941 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
15943 PR tree-optimization/70786
15944 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
15945 * calls.c (initialize_argument_information): Bind bounds
15946 with corresponding args passed by reference.
15948 2016-05-10 Jakub Jelinek <jakub@redhat.com>
15951 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
15952 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
15953 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
15956 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15959 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
15960 code for a zero scale factor.
15961 (vsx_xvcvdpuxds_scale): Likewise.
15963 2016-05-10 David Malcolm <dmalcolm@redhat.com>
15965 * diagnostic-show-locus.c (layout::layout): Call show_ruler
15966 if show_ruler_p was set on the context.
15967 (layout::show_ruler): New method.
15968 * diagnostic.h (struct diagnostic_context): Add field
15971 2016-05-10 Richard Biener <rguenther@suse.de>
15973 PR tree-optimization/71039
15974 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
15975 (chk_uses): New function.
15976 (propagate_with_phi): Verify we can safely replicate the lhs of an
15977 aggregate assignment on all incoming edges.
15979 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
15981 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
15983 (rx_atomic_sequence): New class.
15984 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
15985 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
15987 (rx_atomic_sequence::rx_atomic_sequence,
15988 rx_atomic_sequence::~rx_atomic_sequence): New functions.
15989 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
15990 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
15991 CTRLREG_INTB): New constants.
15992 (FETCHOP): New code iterator.
15993 (fethcop_name, fetchop_name2): New iterator code attributes.
15994 (QIHI): New mode iterator.
15995 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
15996 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
15997 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
15999 2016-05-10 Martin Liska <mliska@suse.cz>
16001 * tree-inline.c (remap_dependence_clique): Do not remap
16002 debugging statements.
16004 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16006 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
16007 ("*fixuns_truncdfdi2_z13")
16008 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
16009 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
16010 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
16012 2016-05-10 Richard Biener <rguenther@suse.de>
16014 PR tree-optimization/70497
16015 PR tree-optimization/28367
16016 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
16018 (visit_reference_op_load): ... here.
16019 (vn_reference_lookup_3): Use it to handle subreg-like accesses
16020 with simplified BIT_FIELD_REFs.
16021 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
16022 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
16025 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
16027 * dwarf2out.c (add_abstract_origin_attribute): Adjust
16028 documentation comment. For BLOCK nodes, add a
16029 DW_AT_abstract_origin attribute that points to the DIE generated
16030 for the origin BLOCK.
16031 (gen_lexical_block_die): Call add_abstract_origin_attribute for
16032 blocks from inlined functions.
16034 2016-05-10 Alan Modra <amodra@gmail.com>
16037 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
16038 regrename modifying insns saving lr before __morestack call.
16039 * config/rs6000/rs6000.md (split_stack_return): Similarly for
16040 insns restoring lr after __morestack call.
16042 2016-05-09 Jakub Jelinek <jakub@redhat.com>
16044 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
16045 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
16047 * config/i386/sse.md (vec_interleave_high<mode>,
16048 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
16049 <avx512>_vpermt2var<mode>3_maskz): Likewise.
16051 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16053 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
16054 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
16055 parallel reassociation for power8 and forward.
16057 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
16059 * config/i386/i386.md (absneg splitters with general regs): Use
16060 general_reg_operand predicate.
16061 (btsq peephole2): Use x86_64_immediate_operand to check if new
16062 value is suitable for immediate operand. Generate emitted insn
16063 using RTL expressions.
16064 (btcq peephole2): Ditto.
16065 (btrq peephole2): Ditto. Generate correct immediate operand
16068 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16070 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
16073 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
16075 * tree-affine.c (wide_int_constant_multiple_p): Add missing
16076 pointer dereference.
16078 2016-05-09 Richard Biener <rguenther@suse.de>
16080 PR tree-optimization/70985
16081 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
16082 op0 isn't a gimple register.
16084 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
16086 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
16087 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
16088 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
16089 (i6400_fpu_mult): New cpu units.
16090 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
16091 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
16092 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
16093 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
16094 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
16095 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
16096 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
16097 (i6400_msa_long_float4, i6400_msa_long_float5)
16098 (i6400_msa_long_float8, i6400_msa_fdiv_df)
16099 (i6400_msa_fdiv_sf): New reservations.
16100 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
16101 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
16102 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
16103 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
16104 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
16105 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
16106 (msa_short_cmp, msa_short_float2, msa_short_logic3)
16107 (msa_short_store4, msa_long_load, msa_short_store)
16108 (msa_long_logic, msa_long_float2, msa_long_float4)
16109 (msa_long_float5, msa_long_float8, msa_long_mult)
16110 (msa_long_fdiv, msa_long_div): New reservations.
16112 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
16113 Sameera Deshpande <sameera.deshpande@imgtec.com>
16114 Matthew Fortune <matthew.fortune@imgtec.com>
16115 Graham Stott <graham.stott@imgtec.com>
16116 Chao-ying Fu <chao-ying.fu@imgtec.com>
16118 * config.gcc: Add MSA header file for mips*-*-* target.
16119 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
16120 (Ubv8i, Urv8): New constraints.
16121 * config/mips/mips-ftypes.def: Add function types for MSA
16123 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
16124 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
16125 * config/mips/mips-msa.md: New file.
16126 * config/mips/mips-protos.h
16127 (mips_split_128bit_const_insns): New prototype.
16128 (mips_msa_idiv_insns): Likewise.
16129 (mips_split_128bit_move): Likewise.
16130 (mips_split_128bit_move_p): Likewise.
16131 (mips_split_msa_copy_d): Likewise.
16132 (mips_split_msa_insert_d): Likewise.
16133 (mips_split_msa_fill_d): Likewise.
16134 (mips_expand_msa_branch): Likewise.
16135 (mips_const_vector_same_val_p): Likewise.
16136 (mips_const_vector_same_bytes_p): Likewise.
16137 (mips_const_vector_same_int_p): Likewise.
16138 (mips_const_vector_shuffle_set_p): Likewise.
16139 (mips_const_vector_bitimm_set_p): Likewise.
16140 (mips_const_vector_bitimm_clr_p): Likewise.
16141 (mips_msa_vec_parallel_const_half): Likewise.
16142 (mips_msa_output_division): Likewise.
16143 (mips_ldst_scaled_shift): Likewise.
16144 (mips_expand_vec_cond_expr): Likewise.
16145 * config/mips/mips.c (enum mips_builtin_type): Add
16146 MIPS_BUILTIN_MSA_TEST_BRANCH.
16147 (mips_gen_const_int_vector_shuffle): New prototype.
16148 (mips_const_vector_bitimm_set_p): New function.
16149 (mips_const_vector_bitimm_clr_p): Likewise.
16150 (mips_const_vector_same_val_p): Likewise.
16151 (mips_const_vector_same_bytes_p): Likewise.
16152 (mips_const_vector_same_int_p): Likewise.
16153 (mips_const_vector_shuffle_set_p): Likewise.
16154 (mips_symbol_insns): Forbid loading symbols via immediate for
16156 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
16158 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
16160 (mips_lx_address_p): Add support load indexed address for MSA.
16161 (mips_address_insns): Add calculation of instructions needed for
16162 stores and loads for MSA.
16163 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
16164 CONST_VECTOR for MSA and let it fall through.
16165 (mips_ldst_scaled_shift): New function.
16166 (mips_subword_at_byte): Likewise.
16167 (mips_msa_idiv_insns): Likewise.
16168 (mips_legitimize_move): Validate MSA moves.
16169 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
16170 calculation of costs for MSA division.
16171 (mips_split_move_p): Check if MSA moves need splitting.
16172 (mips_split_move): Split MSA moves if necessary.
16173 (mips_split_128bit_move_p): New function.
16174 (mips_split_128bit_move): Likewise.
16175 (mips_split_msa_copy_d): Likewise.
16176 (mips_split_msa_insert_d): Likewise.
16177 (mips_split_msa_fill_d): Likewise.
16178 (mips_output_move): Handle MSA moves.
16179 (mips_expand_msa_branch): New function.
16180 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
16181 Reinstate 'y' modifier.
16182 (mips_file_start): Add MSA .gnu_attribute.
16183 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
16185 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
16186 (mips_class_max_nregs): Add register size for MSA supported mode.
16187 (mips_cannot_change_mode_class): Allow conversion between MSA
16188 vector modes and TImode.
16189 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
16191 (mips_secondary_reload_class): Force MSA loads/stores via memory.
16192 (mips_preferred_simd_mode): Add preffered modes for MSA.
16193 (mips_vector_mode_supported_p): Add MSA supported modes.
16194 (mips_autovectorize_vector_sizes): New function.
16195 (mips_msa_output_division): Likewise.
16196 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
16197 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
16198 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
16199 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
16200 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
16201 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
16202 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
16203 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
16204 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
16205 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
16206 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
16207 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
16208 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
16209 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
16210 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
16211 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
16212 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
16213 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
16214 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
16215 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
16216 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
16217 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
16218 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
16219 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
16220 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
16221 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
16222 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
16223 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
16224 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
16225 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
16226 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
16227 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
16228 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
16229 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
16230 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
16231 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
16232 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
16233 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
16234 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
16235 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
16236 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
16237 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
16238 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
16239 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
16240 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16241 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16242 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16243 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16244 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
16245 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
16246 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
16247 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
16248 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
16249 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
16250 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
16251 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
16252 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
16253 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
16254 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
16255 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
16256 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
16257 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
16258 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
16259 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
16260 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
16261 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
16262 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
16263 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
16264 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
16265 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
16266 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
16267 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
16268 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
16269 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
16270 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
16271 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
16272 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
16273 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
16274 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
16275 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
16276 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
16277 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
16278 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
16279 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
16280 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
16281 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
16282 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
16283 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
16284 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
16285 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
16286 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
16287 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
16288 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
16289 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
16290 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
16291 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
16292 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
16293 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
16294 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
16295 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
16296 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
16297 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
16298 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
16299 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
16300 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
16301 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
16302 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
16303 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
16304 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
16305 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
16306 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
16307 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
16308 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
16309 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
16310 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
16311 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
16312 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
16313 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
16314 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
16315 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
16316 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
16317 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
16318 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
16319 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
16320 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
16321 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
16322 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
16323 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
16324 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
16325 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
16326 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
16327 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
16328 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
16329 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
16330 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
16331 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
16332 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
16333 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
16334 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
16335 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
16336 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
16337 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
16338 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
16339 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
16340 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
16341 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
16342 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
16343 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
16344 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
16345 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
16346 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
16348 (mips_get_builtin_decl_index): New array.
16349 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
16350 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
16351 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
16352 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
16353 (mips_init_builtins): Initialize mips_get_builtin_decl_index
16355 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
16357 (mips_expand_builtin_insn): Prepare operands for
16358 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
16359 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
16360 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
16361 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
16362 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
16363 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
16364 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
16365 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
16366 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
16367 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
16368 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
16369 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
16370 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
16371 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
16372 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
16373 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
16374 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
16375 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
16376 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
16377 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
16378 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
16379 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
16380 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
16381 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
16382 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
16383 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
16384 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
16385 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
16386 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
16387 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
16388 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
16389 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
16390 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
16391 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
16392 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
16393 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
16394 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
16395 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
16396 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
16397 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
16398 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
16399 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
16400 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
16401 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
16402 These are set implicitly and an error is reported if overridden.
16403 (mips_expand_builtin_msa_test_branch): New function.
16404 (mips_expand_msa_shuffle): Likewise.
16405 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
16406 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
16407 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
16408 (mips_expand_vec_unpack): Add support for MSA.
16409 (mips_expand_vector_init): Likewise.
16410 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
16411 instead of const0_rtx.
16412 (mips_msa_vec_parallel_const_half): New function.
16413 (mips_gen_const_int_vector): Likewise.
16414 (mips_gen_const_int_vector_shuffle): Likewise.
16415 (mips_expand_msa_cmp): Likewise.
16416 (mips_expand_vec_cond_expr): Likewise.
16417 * config/mips/mips.h
16418 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
16419 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
16421 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
16422 (ISA_HAS_MSA): New macro.
16423 (UNITS_PER_MSA_REG): Likewise.
16424 (BITS_PER_MSA_REG): Likewise.
16425 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
16426 (MSA_REG_FIRST): New macro.
16427 (MSA_REG_LAST): Likewise.
16428 (MSA_REG_NUM): Likewise.
16429 (MSA_REG_P): Likewise.
16430 (MSA_REG_RTX_P): Likewise.
16431 (MSA_SUPPORTED_MODE_P): Likewise.
16432 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
16433 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
16434 * config/mips/mips.md: Include mips-msa.md.
16435 (alu_type): Add simd_add.
16436 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
16437 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
16438 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
16439 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
16440 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
16441 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
16442 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
16443 simd_move, simd_load, simd_store. Choose "multi" for moves
16445 (qword_mode): New attribute.
16446 (insn_count): Add instruction count for quad moves.
16447 Increase the count for MIPS SIMD division.
16448 (UNITMODE): Add UNITMODEs for vector types.
16449 (addsub): New code iterator.
16450 * config/mips/mips.opt (mmsa): New option.
16451 * config/mips/msa.h: New file.
16452 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
16454 * config/mips/mti-linux.h: Likewise.
16455 * config/mips/predicates.md
16456 (const_msa_branch_operand): New constraint.
16457 (const_uimm3_operand): Likewise.
16458 (const_uimm4_operand): Likewise.
16459 (const_uimm5_operand): Likewise.
16460 (const_uimm8_operand): Likewise.
16461 (const_imm5_operand): Likewise.
16462 (aq10b_operand): Likewise.
16463 (aq10h_operand): Likewise.
16464 (aq10w_operand): Likewise.
16465 (aq10d_operand): Likewise.
16466 (const_m1_operand): Likewise.
16467 (reg_or_m1_operand): Likewise.
16468 (const_exp_2_operand): Likewise.
16469 (const_exp_4_operand): Likewise.
16470 (const_exp_8_operand): Likewise.
16471 (const_exp_16_operand): Likewise.
16472 (const_vector_same_val_operand): Likewise.
16473 (const_vector_same_simm5_operand): Likewise.
16474 (const_vector_same_uimm5_operand): Likewise.
16475 (const_vector_same_uimm6_operand): Likewise.
16476 (const_vector_same_uimm8_operand): Likewise.
16477 (par_const_vector_shf_set_operand): Likewise.
16478 (reg_or_vector_same_val_operand): Likewise.
16479 (reg_or_vector_same_simm5_operand): Likewise.
16480 (reg_or_vector_same_uimm6_operand): Likewise.
16481 * doc/extend.texi (MIPS SIMD Architecture Functions): New
16483 * doc/invoke.texi (-mmsa): Document new option.
16485 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16487 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
16488 * configure: Regenerate.
16489 * config.in: Regenerate.
16490 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
16491 on -fvtable-verify.
16492 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
16493 (ENDFILE_VTV_SPEC): Define.
16495 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
16497 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
16498 registers in all interrupt handlers if necessary.
16499 (rl78_option_override): Add warning.
16500 (MUST_SAVE_MDUC_REGISTERS): New macro.
16501 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
16502 * config/rl78/rl78.c (check_mduc_usage): New function.
16503 (mduc_regs): New structure to hold MDUC register data.
16504 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
16505 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
16506 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
16507 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
16508 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
16509 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
16511 2016-05-09 Bin Cheng <bin.cheng@arm.com>
16513 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
16514 (tree-ssa-loop-niter.h): Ditto.
16515 (idx_within_array_bound, ref_within_array_bound): New functions.
16516 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
16517 Factor out check on writable base object to ...
16518 (base_object_writable): ... here.
16520 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16522 * config/arm/arm.md (probe_stack): Add modes to set source
16525 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
16527 * regrename.c (base_reg_class_for_rename): New static function.
16528 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
16530 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
16532 * cgraph.c (thunk_adjust): Export.
16533 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
16534 * cgraphunit.c (thunk_adjust): Export.
16535 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
16537 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
16539 * tree-inline.c (expand_call_inline): Expand thunks inline.
16541 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
16544 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
16545 (*sse2_vd_cvtss2sd): Ditto.
16546 * config/i386/i386.md
16547 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
16548 Generate *sse2_vd_cvtsd2ss pattern.
16549 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
16550 Generate *sse2_vd_cvtss2sd pattern.
16552 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16554 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
16555 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
16558 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
16560 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
16561 * config/sh/sh.c: Define and declare variables on first use throughout
16563 (current_function_interrupt): Change to bool type.
16564 (frame_insn): Rename to emit_frame_insn and update users.
16565 (push_regs): Use bool for 'interrupt_handler' argument.
16566 (save_schedule_s): Remove.
16567 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
16568 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
16569 targetm.asm_out.unaligned_op.di.
16570 (gen_far_branch): Remove redundant forward declaration.
16571 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
16572 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
16573 (sh_set_return_address, sh_function_ok_for_sibcall,
16574 scavenge_reg): Update comments.
16575 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
16576 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
16577 (sh_attr_renesas_p): Remove unnecessary parentheses.
16578 (branch_dest): Simplify.
16579 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
16580 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
16581 (CUMULATIVE_ARGS): Change macro to typedef.
16582 (current_function_interrupt): Change to bool type.
16583 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
16584 Surround with __cplusplus ifdef.
16585 (sh_compare_op0, sh_compare_op1): Remove.
16586 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
16588 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
16590 * config/arm/arm.md: (arch): Add neon.
16591 (arch_enabled): Return yes for arch neon when TARGET_NEON.
16592 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
16593 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
16594 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
16595 attributes for alt renumbering. Mark alt 3 as non-predicable.
16596 (thumb2_movdf_vfp): Likewise.
16598 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
16600 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
16601 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
16602 (*andqi_1): Add preferred_for_speed attribute to disparage
16603 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
16604 (*<code>qi_1): Ditto.
16605 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
16606 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
16607 (*ashlqi3_1): Ditto.
16608 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
16609 Add preferred_for_size attribute to disparage alternative 0 and
16610 preferred_for_speed attribute to disparage alternative 1 for
16611 TARGET_PARTIAL_REG_STALL targets.
16613 2016-05-07 Tom de Vries <tom@codesourcery.com>
16615 PR tree-optimization/70956
16616 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
16619 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16621 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
16622 * config/sh/sh.c (sh_cbranch_distance): Implement it.
16623 * config/sh/sh.md (branch_zero): Remove define_attr.
16624 (define_delay): Disable delay slot if branch distance is one insn.
16626 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16628 * config/i386/i386.md (LEAMODE): New mode attribute.
16629 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
16630 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
16631 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
16632 operand 2 predicate.
16633 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
16634 (*lea<mode>_general_3): Ditto.
16635 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
16637 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16639 * genmddump.c (main): Convert argv from char ** to const char **.
16641 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16643 * coretypes.h (OVERRIDE): New macro.
16644 (FINAL): New macro.
16646 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
16648 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
16649 allow coalescing if the types are compatible.
16651 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16653 * pass_manager.h (pass_manager::register_pass_name): New method.
16654 (pass_manager::get_pass_by_name): New method.
16655 (pass_manager::create_pass_tab): New method.
16656 (pass_manager::m_name_to_pass_map): New field.
16657 * passes.c (name_to_pass_map): Delete global in favor of field
16658 "m_name_to_pass_map" of pass_manager.
16659 (register_pass_name): Rename from a function to...
16660 (pass_manager::register_pass_name): ...this method, updating
16661 for renaming of global "name_to_pass_map" to field
16662 "m_name_to_pass_map".
16663 (create_pass_tab): Rename from a function to...
16664 (pass_manager::create_pass_tab): ...this method, updating
16665 for renaming of global "name_to_pass_map" to field.
16666 (get_pass_by_name): Rename from a function to...
16667 (pass_manager::get_pass_by_name): ...this method.
16668 (enable_disable_pass): Convert use of get_pass_by_name to
16669 a method call, locating the pass_manager singleton.
16671 2016-05-06 David Malcolm <dmalcolm@redhat.com>
16673 * genattr-common.c (main): Convert argv from char ** to const char **.
16674 * genattr.c (main): Likewise.
16675 * genattrtab.c (main): Likewise.
16676 * genautomata.c (initiate_automaton_gen): Likewise.
16678 * gencodes.c (main): Likewise.
16679 * genconditions.c (main): Likewise.
16680 * genconfig.c (main): Likewise.
16681 * genconstants.c (main): Likewise.
16682 * genemit.c (main): Likewise.
16683 * genenums.c (main): Likewise.
16684 * genextract.c (main): Likewise.
16685 * genflags.c (main): Likewise.
16686 * genmddeps.c (main): Likewise.
16687 * genopinit.c (main): Likewise.
16688 * genoutput.c (main): Likewise.
16689 * genpeep.c (main): Likewise.
16690 * genpreds.c (main): Likewise.
16691 * genrecog.c (main): Likewise.
16692 * gensupport.c (init_rtx_reader_args_cb): Likewise.
16693 (init_rtx_reader_args): Likewise.
16694 * gensupport.h (init_rtx_reader_args_cb): Likewise.
16695 (init_rtx_reader_args): Likewise.
16696 * gentarget-def.c (main): Likewise.
16697 * read-md.c (read_md_files): Likewise.
16698 * read-md.h (read_md_files): Likewise.
16700 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16702 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
16703 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
16704 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
16705 Remove unused predicate.
16706 (register_and_not_fp_reg_operand): Ditto.
16708 2016-05-06 Martin Liska <mliska@suse.cz>
16710 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
16711 instead of vec as the vector is local to the function.
16713 2016-05-06 Jakub Jelinek <jakub@redhat.com>
16715 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
16716 avx512bw alternative.
16718 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16719 before the ashr<mode>3 pattern.
16721 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16722 v instead of x in vex or maybe_vex alternatives, use
16723 maybe_evex instead of vex in prefix.
16725 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16726 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16727 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16728 in vex or maybe_vex alternatives, use maybe_evex instead of vex
16731 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16732 v instead of x in vex or maybe_vex alternatives, use
16733 maybe_evex instead of vex in prefix.
16735 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16736 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16737 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16738 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16739 alternatives, use maybe_evex instead of vex in prefix.
16741 * config/i386/sse.md (vec_interleave_lowv4sf,
16742 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16743 v instead of x in vex or maybe_vex alternatives, use
16744 maybe_evex instead of vex in prefix.
16746 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16747 v instead of x in vex or maybe_vex alternatives, use
16748 maybe_evex instead of vex in prefix.
16750 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16751 v constraint instead of x.
16753 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
16755 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16756 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16759 2016-05-06 Richard Biener <rguenther@suse.de>
16761 PR tree-optimization/70948
16762 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16763 Properly clobber all fields of va_list for __builtin_va_start.
16765 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
16768 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16769 loop latch destination.
16771 2016-05-06 Martin Liska <mliska@suse.cz>
16773 * tree-ssa-uninit.c: Apply manual changes
16774 to the GNU coding style.
16775 (prune_uninit_phi_opnds): Rename from
16776 prune_uninit_phi_opnds_in_unrealizable_paths.
16778 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16780 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16781 mspace): Remove deprecated options.
16782 * doc/invoke.texi (SH options): Remove -mspace.
16784 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16786 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16788 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16790 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16791 corresponding combine split pattern.
16793 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16796 * config/sh/predicates.md (long_displacement_mem_operand): New.
16797 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16798 Add movi20, movi20s alternatives. Adjust length attribute for
16800 (movsi_ie): Allow for any FPU. Adjust length attribute for
16802 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
16803 attribute for alternatives.
16804 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16805 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16806 length attribute for alternatives.
16808 2016-05-06 Richard Biener <rguenther@suse.de>
16810 PR tree-optimization/70960
16811 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16813 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16816 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16817 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16819 2016-05-06 Marek Polacek <polacek@redhat.com>
16822 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16824 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
16827 * config/sh/sh.md (*rotcr): Add another variant.
16829 2016-05-06 Richard Biener <rguenther@suse.de>
16831 PR middle-end/70931
16832 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16834 2016-05-06 Richard Biener <rguenther@suse.de>
16836 PR middle-end/70941
16837 * fold-const.c (split_tree): Always convert to the original type
16840 2016-05-06 Richard Biener <rguenther@suse.de>
16842 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16843 (fwprop_addr): Likewise.
16845 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
16848 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16850 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16851 * config/i386/i386.md (push mem splitter): Use find_constant_src in
16852 the splitter condition.
16853 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16854 the splitter condition.
16855 (FP float_extend load splitter): Ditto.
16857 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
16859 * config/i386/i386.md (peehole2 patterns): Change true_regnum
16860 to REGNO in all peephole2 patterns.
16861 (post-reload splitters): Change true_regnum to REGNO in
16862 post-reload splitters.
16863 (zero_extend splitters): Use general_reg_operand and
16864 nonimmediate_gr_operand predicates.
16866 2016-05-05 Jakub Jelinek <jakub@redhat.com>
16868 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16869 v constraint instead of x.
16871 2016-05-05 Alan Modra <amodra@gmail.com>
16874 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16875 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
16876 TARGET_NO_FP_IN_TOC for -mrelocatable.
16877 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16878 TARGET_RELOCATABLE test.
16879 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16880 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16881 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16882 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16883 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16884 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16885 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16886 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16887 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16888 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16890 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16891 (rs6000_stack_info): Likewise.
16892 (rs6000_elf_asm_out_constructor): Likewise.
16893 (rs6000_elf_asm_out_destructor): Likewise.
16894 (rs6000_elf_declare_function_name): Likewise.
16895 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16896 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16899 2016-05-05 Alan Modra <amodra@gmail.com>
16901 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16903 2016-05-05 Alan Modra <amodra@gmail.com>
16905 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16906 out-of-line gpr restore for one or two regs if that would add
16909 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
16912 * config/i386/i386.md
16913 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16914 Change to post-epilogue_completed late splitter. Use sse_reg_operand
16915 as operand 0 predicate.
16916 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16918 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16919 Ditto. Emit the pattern using RTX.
16921 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16922 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
16923 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
16924 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16926 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16927 sse_reg_operand as operand 0 predicate.
16929 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16930 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
16931 instead of gen_rtx_REG.
16932 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16935 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16937 * function.c (emit_use_return_register_into_block): Delete.
16938 (gen_return_pattern): Delete.
16939 (emit_return_into_block): Delete.
16940 (active_insn_between): Delete.
16941 (convert_jumps_to_returns): Delete.
16942 (emit_return_for_exit): Delete.
16943 (thread_prologue_and_epilogue_insns): Delete all code dealing with
16944 simple_return for shrink-wrapped blocks.
16945 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
16946 end of blocks that need one.
16947 (get_unconverted_simple_return): Delete.
16948 (convert_to_simple_return): Delete.
16949 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
16950 (convert_to_simple_return): Ditto.
16952 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16954 * cfgcleanup.c (bb_is_just_return): New function.
16955 (try_optimize_cfg): Simplify jumps to return, branches to return,
16956 and branches around return.
16958 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
16960 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
16961 branch to a return.
16963 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16967 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
16968 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
16969 assert flags & OEP_HASH_CHECK, instead of asserting it
16970 never happens. Handle TARGET_EXPR.
16971 * fold-const.c (operand_equal_p): For hash verification,
16972 or in OEP_HASH_CHECK into flags.
16974 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
16976 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
16978 (compute_samebase_partition_bases): Fix typo.
16980 2016-05-04 Jakub Jelinek <jakub@redhat.com>
16982 * config/i386/sse.md (vec_interleave_highv8sf,
16983 vec_interleave_lowv8sf, vec_interleave_highv4df,
16984 vec_interleave_lowv4df): Remove constraints from expanders.
16986 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
16988 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16990 * tree-inline.c (expand_call_inline): Fix path dealing with
16991 making lhs of call statement undefined.
16993 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
16995 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
16996 Check availability on NODE, too.
16997 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
16998 (cgraph_node::call_for_symbol_and_aliases): Likewise.
16999 (varpool_node::call_for_symbol_and_aliase): Likewise.
17000 * ipa-pure-const.c (add_new_function): Analyze all bodies.
17001 (propagate_pure_const): Propagate across interposable functions, too.
17002 (skip_function_for_local_pure_const): Do not skip interposable bodies
17004 (pass_local_pure_const::execute): Update.
17006 2016-05-04 Marek Polacek <polacek@redhat.com>
17008 * doc/invoke.texi: Document -Wdangling-else.
17010 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17012 * config.gcc: Error out when conflicting multilib is detected. Do not
17013 loop over multilibs since no combination is legal.
17015 2016-05-04 Alan Modra <amodra@gmail.com>
17017 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
17018 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
17019 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
17022 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
17024 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
17025 Clean up p5600 comments.
17027 2016-05-04 Richard Biener <rguenther@suse.de>
17029 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
17030 constructor simplifications.
17031 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
17033 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
17035 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
17036 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
17037 result.set_rtx is null instead of aborting.
17038 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
17040 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
17041 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
17042 *mov<mode>_store_postinc): New patterns.
17044 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
17046 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
17047 as commutative. Check both conversions are NOP.
17048 ((A & B) OP (C & B)): Remove.
17050 2016-05-04 Alan Modra <amodra@gmail.com>
17052 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
17054 2016-05-04 Alan Modra <amodra@gmail.com>
17057 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
17058 when cr2,3,4 are all fixed regs.
17060 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
17062 PR rtl-optimization/57193
17063 * opts.c (default_options_table): Revert OPT_frename_registers change.
17064 * doc/invoke.texi (-frename-registers, -O2): Likewise.
17066 2016-05-03 Martin Sebor <msebor@redhat.com>
17069 * builtins.c (fold_builtin_FILE): New function.
17070 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
17071 (fold_builtin_0): Call them.
17072 * gimplify.c (gimplify_call_expr): Remove the handling of
17073 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
17076 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
17077 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
17081 * doc/extend.texi (Function Names as Strings): Update __func__,
17082 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
17085 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17086 Richard Biener <rguenther@suse.de>
17088 PR tree-optimization/70916
17089 * tree-if-conv.c: Include cfganal.h.
17090 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
17091 and remove_fake_exit_edges around the optimization pass.
17093 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
17095 * cgraph.c (symbol_table::create_edge): Set inline_failed.
17096 (cgraph_edge::make_direct): Likewise.
17097 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
17098 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
17099 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
17100 (CIF_THUNK): New code.
17101 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
17102 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
17103 (compute_inline_parameters): Set inline_failed for thunks.
17104 (inline_analyze_function): Cleanup.
17105 * ipa-inline.c (can_inline_edge_p): Do not deal with
17106 call_stmt_cannot_inline_p.
17107 (can_early_inline_edge_p): Likewise.
17108 (early_inliner): Initialize inline_failed.
17109 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
17111 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
17113 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
17114 from nonimm_ssenomem_operand.
17115 (nonimm_ssenomem_operand): New predicate.
17116 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
17117 as operand 0 predicate.
17118 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
17119 Disable unsupported alternatives using "enabled" attribute.
17120 Use register_ssemem_operand as operand 0 predicate.
17121 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
17123 2016-05-03 Marek Polacek <polacek@redhat.com>
17126 * input.c (expansion_point_location): New function.
17127 * input.h (expansion_point_location): Declare.
17129 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
17131 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
17132 occurence with frame_offset_ ones.
17134 2016-05-03 Alan Modra <amodra@gmail.com>
17136 PR rtl-optimization/70890
17137 * ira.c (combine_and_move_insns): When moving def_insn, remove
17138 equivs on use_insn.
17140 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
17142 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
17143 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
17144 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
17145 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
17147 2016-05-03 Alan Modra <amodra@gmail.com>
17149 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
17150 for SAVE_MULTIPLE/STORE_MULTIPLE.
17152 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17154 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
17155 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
17157 2016-05-03 Richard Biener <rguenther@suse.de>
17159 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
17161 (gimplify_arg): Likewise.
17162 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
17163 re-writing the result to a decl if required.
17164 (internal_get_tmp_var): Add allow_ssa parameter
17165 and override into_ssa with it.
17166 (get_formal_tmp_var): Adjust.
17167 (get_initialized_tmp_var): Add allow_ssa parameter.
17168 (gimplify_arg): Add allow_ssa parameter and avoid generating
17169 SSA names for the result false.
17170 (gimplify_call_expr): If the call may return twice do not
17171 gimplify parameters into SSA.
17172 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
17173 (gimplify_modify_expr): Adjust assert. For noreturn calls
17174 with a SSA name LHS adjust its def.
17175 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
17176 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
17177 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
17178 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
17179 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
17180 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
17181 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
17182 (optimize_target_teams): Do not allow SSA names for clause operands.
17183 (gimplify_expr): Likewise for where we mark the result addressable.
17184 * passes.def (pass_init_datastructures): Remove.
17185 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
17186 (rewrite_stmt): Likewise.
17187 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
17188 (replace_locals_op): Replace SSA names.
17189 (copy_gimple_seq_and_replace_locals): Init src_cfun.
17190 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
17191 * cgraph.c (release_function_body): Free CFG annotations only
17192 when we have a CFG. Simplify.
17193 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
17194 force_gimple_operand instead of get_initialized_tmp_var.
17195 * tree-pass.h (make_pass_init_datastructures): Remove.
17196 * tree-ssa.c (execute_init_datastructures): Remove.
17197 (pass_data_init_datastructures): Likewise.
17198 (class pass_init_datastructures): Likewise.
17199 (make_pass_init_datastructures): Likewise.
17200 * omp-low.c (create_omp_child_function): Init SSA data structures.
17201 (grid_expand_target_grid_body): Likewise.
17202 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
17203 name before adding it to names_to_release.
17204 (remove_bb): Always release SSA defs.
17205 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
17206 before dereferencing it.
17207 * cgraphunit.c (init_lowered_empty_function): Always
17208 int SSA data structures.
17209 * tree-ssanames.c (release_defs): Remove assert that we are in
17211 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
17213 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17214 Uros Bizjak <ubizjak@gmail.com>
17216 PR rtl-optimization/70467
17217 * config/i386/predicates.md (x86_64_hilo_int_operand,
17218 x86_64_hilo_general_operand): New predicates.
17219 * config/i386/constraints.md (Wd): New constraint.
17220 * config/i386/i386.md (mode attr di): Use Wd instead of e.
17221 (general_hilo_operand): New mode attr.
17222 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
17223 instead of <general_operand>.
17224 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
17225 x86_64_hilo_general_operand instead of <general_operand>.
17227 2016-05-03 Jakub Jelinek <jakub@redhat.com>
17229 PR tree-optimization/70916
17230 * tree-if-conv.c (constant_or_ssa_name): Removed.
17231 (fold_build_cond_expr): Use is_gimple_val instead of
17232 constant_or_ssa_name.
17234 PR tree-optimization/70916
17235 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
17236 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
17239 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
17240 (optimize_atomic_bit_test_and): New function.
17241 (pass_fold_builtins::execute): Use it.
17242 * optabs.def (atomic_bit_test_and_set_optab,
17243 atomic_bit_test_and_complement_optab,
17244 atomic_bit_test_and_reset_optab): New optabs.
17245 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
17246 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
17247 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
17248 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
17249 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
17250 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
17251 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
17252 * doc/md.texi (atomic_bit_test_and_set@var{mode},
17253 atomic_bit_test_and_complement@var{mode},
17254 atomic_bit_test_and_reset@var{mode}): Document.
17255 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
17256 atomic_bit_test_and_complement<mode>,
17257 atomic_bit_test_and_reset<mode>): New expanders.
17258 (atomic_bit_test_and_set<mode>_1,
17259 atomic_bit_test_and_complement<mode>_1,
17260 atomic_bit_test_and_reset<mode>_1): New insns.
17262 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
17264 PR rtl-optimization/70687
17265 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
17266 instead of unsigned HOST_WIDE_INT.
17268 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
17270 PR rtl-optimization/44281
17271 * hard-reg-set.h (struct target_hard_regs): New field
17272 x_fixed_nonglobal_reg_set.
17273 (fixed_nonglobal_reg_set): New macro.
17274 * reginfo.c (init_reg_sets_1): Initialize it.
17275 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
17277 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
17279 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17281 PR tree-optimization/56541
17282 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
17283 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
17284 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
17285 (any_complicated_phi): new static variable.
17286 (aggressive_if_conv): delete.
17287 (if_convertible_phi_p): support phis with more than two arguments.
17288 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
17289 critical pred edges.
17290 (ifcvt_split_critical_edges): support phis with more than two
17291 arguments by checking new parameter. only split critical edges
17293 (tree_if_conversion): handle simd pragma marked loop using new
17294 local variable aggressive_if_conv. check any_complicated_phi.
17296 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17298 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
17301 2016-05-03 Bin Cheng <bin.cheng@arm.com>
17303 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
17306 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17308 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
17309 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
17310 define_insn_and_split.
17311 (mulsi3_i): New define_insn_and_split.
17312 (mulsi3_call): Convert to define_insn.
17313 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
17314 Remove constraints.
17316 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17318 * machmode.h (mode_complex): Add support to give the complex mode
17320 (GET_MODE_COMPLEX_MODE): Likewise.
17321 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
17322 stored by build_complex_type and gfc_build_complex_type instead of
17323 trying to figure out the appropriate mode based on the size. Raise
17324 an assertion error, if the type was not set.
17325 * genmodes.c (struct mode_data): Add field for the complex type of
17327 (blank_mode): Likewise.
17328 (make_complex_modes): Remember the complex mode created in the
17330 (emit_mode_complex): Write out the mode_complex array to map a
17331 type mode to the complex version.
17332 (emit_insn_modes_c): Likewise.
17333 * tree.c (build_complex_type): Set the complex type to use before
17334 calling layout_type.
17335 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
17336 support for __float128 complex datatypes.
17337 (rs6000_hard_regno_mode_ok): Likewise.
17338 (rs6000_setup_reg_addr_masks): Likewise.
17339 (rs6000_complex_function_value): Likewise.
17340 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
17341 __float128 and __ibm128 complex.
17342 (FLOAT128_IBM_P): Likewise.
17343 (ALTIVEC_ARG_MAX_RETURN): Likewise.
17344 * doc/extend.texi (Additional Floating Types): Document that
17345 -mfloat128 must be used to enable __float128. Document complex
17346 __float128 and __ibm128 support.
17348 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17351 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
17352 char/short arguments promoted to int because of promote_prototypes.
17354 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17356 * config/i386/predicates.md (register_ssemem_operand): New predicate.
17357 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
17358 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
17359 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
17360 alternatives using "enabled" attribute. Use register_ssemem_operand
17361 as operand 1 predicate.
17362 (*cmpi<unord>xf_i387): Split XFmode pattern from
17363 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
17364 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
17365 *absneg<mode>2_i387. Disable unsupported alternatives using
17366 "enabled" attribute.
17367 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
17369 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17371 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
17373 (oacc_loop_process): Check mask for loop termination.
17375 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17377 * cif-code.def (CIF_THUNK): Add.
17378 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
17381 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
17383 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
17384 (dump_inline_summary): Dump it.
17385 (fp_expression_p): New predicate.
17386 (estimate_function_body_sizes): Use it.
17387 (inline_merge_summary): Merge fp_expressions.
17388 (inline_read_section): Read fp_expressions.
17389 (inline_write_summary): Write fp_expressions.
17390 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
17391 codegen boundary if either caller or callee is !fp_expressions.
17392 * ipa-inline.h (inline_summary): Add fp_expressions.
17393 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
17394 to fp_expressions be sure the fp generation flags are updated.
17396 2016-05-02 Jakub Jelinek <jakub@redhat.com>
17398 PR rtl-optimization/70467
17399 * cse.c (cse_insn): Handle no-op MEM moves after folding.
17401 PR rtl-optimization/70467
17402 * ipa-pure-const.c (check_call): Handle internal calls even in
17403 ipa mode like in local mode.
17405 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17407 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
17409 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17411 * match.pd (X u< X, X u> X): New transformations.
17413 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
17415 * flag-types.h (enum warn_strict_overflow_code): Move ...
17416 * coretypes.h: ... here.
17417 * fold-const.h (fold_overflow_warning): Declare.
17418 * fold-const.c (fold_overflow_warning): Make non-static.
17419 (fold_comparison): Move the transformation of X +- C1 CMP C2
17420 into X CMP C2 -+ C1 ...
17421 * match.pd: ... here.
17422 * gimple-fold.c (fold_stmt_1): Protect with
17423 fold_defer_overflow_warnings.
17425 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
17427 * omp-low.c (struct oacc_loop): Add 'inner' field.
17428 (new_oacc_loop_raw): Initialize it to zero.
17429 (oacc_loop_fixed_partitions): Initialize it.
17430 (oacc_loop_auto_partitions): Partition outermost loop to outermost
17431 available partitioning.
17433 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17435 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
17437 (umulsidi3): Likewise.
17438 (indirect_jump): Fix jump instruction assembly patterns.
17440 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
17443 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
17444 (nvptx_function_value): Assert non-NULL cfun.
17446 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
17448 PR rtl-optimization/70886
17449 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
17451 * cselib.h (rtx_equal_for_cselib_1): Declare.
17452 (rtx_equal_for_cselib_p: New inline function.
17453 * cselib.c (rtx_equal_for_cselib_p): Delete.
17454 (rtx_equal_for_cselib_1): Make public.
17456 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
17458 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
17459 (register_mixssei387nonimm_operand): Remove predicate.
17460 * config/i386/i386.md (*fop_<mode>_comm): Merge from
17461 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
17462 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
17463 for TARGET_MIX_SSE_I387 alternatives.
17464 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
17465 Disable unsupported alternatives using "enabled" attribute. Use
17466 nonimm_ssenomem_operand as operand 1 predicate. Also check
17467 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
17469 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17471 * tree.c (cst_and_fits_in_hwi): Simplify.
17473 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17475 * tree.h (wi::to_wide): New function.
17476 * expr.c (expand_expr_real_1): Use wi::to_wide.
17477 * fold-const.c (int_const_binop_1): Likewise.
17478 (extract_muldiv_1): Likewise.
17480 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17482 * wide-int.h: Update offset_int and widest_int documentation.
17483 (WI_SIGNED_SHIFT_RESULT): New macro.
17484 (wi::binary_shift): Define signed_shift_result_type for
17485 shifts on offset_int- and widest_int-like types.
17486 (generic_wide_int): Support <<= and >>= if << and >> are supported.
17487 * tree.h (int_bit_position): Use shift operators instead of wi::
17489 * alias.c (adjust_offset_for_component_ref): Likewise.
17490 * expr.c (get_inner_reference): Likewise.
17491 * fold-const.c (fold_comparison): Likewise.
17492 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
17493 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
17494 * tree-dfa.c (get_ref_base_and_extent): Likewise.
17495 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17496 (stmt_kills_ref_p): Likewise.
17497 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
17498 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
17499 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17500 (ao_ref_init_from_vn_reference): Likewise.
17502 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
17504 * wide-int.h: Update offset_int and widest_int documentation.
17505 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
17506 (wi::binary_traits): Allow ordered comparisons between offset_int and
17507 offset_int, between widest_int and widest_int, and between either
17508 of these types and basic C types.
17509 (operator <, <=, >, >=): Define for the same combinations.
17510 * tree.h (tree_int_cst_lt): Use comparison operators instead
17511 of wi:: comparisons.
17512 (tree_int_cst_le): Likewise.
17513 * gimple-fold.c (fold_array_ctor_reference): Likewise.
17514 (fold_nonarray_ctor_reference): Likewise.
17515 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
17516 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
17517 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
17518 * tree-sra.c (completely_scalarize): Likewise.
17519 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
17520 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
17521 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
17522 (check_for_binary_op_overflow): Likewise.
17523 (search_for_addr_array): Likewise.
17524 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
17526 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17528 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
17529 (arc_save_restore): Likewise.
17530 (arc_dwarf_register_span): Likewise.
17531 (arc_output_pic_addr_const): Initialize suffix variable.
17533 2016-05-02 Martin Liska <mliska@suse.cz>
17535 * symbol-summary.h (function_summary::function_summary):
17536 Remove checking assert for all cgraph nodes.
17537 (function_summary::get): Check summary_uid.
17538 (symtab_insertion): Check summary_uid.
17540 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
17542 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
17543 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
17544 bmaskn instruction.
17545 (arc_dwarf_register_span): Remove enum keyword.
17546 (compact_memory_operand_p): New function.
17547 * config/arc/arc.h (reg_class): Add code density register classes.
17548 (REG_CLASS_NAMES): Likewise.
17549 (REG_CLASS_CONTENTS): Likewise.
17550 * config/arc/arc.md (*movqi_insn): Add code density instructions.
17551 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
17552 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
17553 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
17554 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
17556 (h, Rcd, Rsd, Rzd): New register constraints.
17557 (T): Use compact_memory_operand_p function.
17558 * config/arc/predicates.md (compact_load_memory_operand): Remove.
17560 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17562 * config/sh/sh.md (*negnegt, *movtt): Remove.
17564 2016-05-02 Marek Polacek <polacek@redhat.com>
17565 Tom de Vries <tom@codesourcery.com>
17567 PR tree-optimization/70700
17568 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
17569 bigger than FIRST_REF_NODE.
17571 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
17574 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
17576 (prepare_cbranch_operands): Don't use scratch register. Assume that
17577 function is used when pseudos can be created.
17578 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
17579 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
17580 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
17581 define_expand. Allow it only when pseudos can be created.
17582 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
17584 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
17586 * config/i386/constraints.md (BC): Only allow -1 operands.
17587 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
17588 Add "enabled" attribute. Update XI mode attribute calculation.
17589 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
17590 (*movoi_internal_avx): Update XI mode attribute calculation.
17591 (*movti_internal): Ditto.
17593 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17595 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
17596 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
17598 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
17600 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
17601 statement on instruction code. Remove trailing spaces.
17602 (altivec_expand_stv_builtin): Likewise.
17604 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17606 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
17607 (TARGET_FPU_DOUBLE): Simplify.
17608 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
17609 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
17610 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
17611 with 'TARGET_FPU_DOUBLE'.
17612 * config/sh/sh.md: Likewise.
17614 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
17616 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
17617 SH_DIV_STR_FOR_SIZE): Remove.
17618 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
17619 SH_DIV_STR_FOR_SIZE): Remove.
17621 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
17623 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
17624 logical_reg_operand): Delete.
17625 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
17626 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
17627 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
17628 match_operand and match_test.
17629 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
17630 variables on their first use. Return bool values.
17631 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
17632 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
17633 arith_reg_operand for input operand. Remove empty constraints.
17635 (*xorsi3_compact): Rename to xorsi3.
17636 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
17637 (*zero_extend<mode>si2_disp_mem): Update comment.
17640 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17642 * config/sh/t-sh: Remove SH5 support.
17643 * config.gcc: Likewise.
17644 * configure: Likewise.
17646 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17648 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
17650 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
17652 * config/sh/sh.c (register_sh_passes, sh_option_override,
17653 sh_print_operand, prepare_move_operands,
17654 sh_can_follow_jump): Remove TARGET_SH1 checks.
17655 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
17656 PROMOTE_MODE): Likewise.
17657 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
17660 2016-04-30 Alan Modra <amodra@gmail.com>
17662 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
17663 restoring when fixed_reg_p, but allow out-of-line or stmw save.
17664 Check for user regs later to avoid unnecessary looping over regs.
17665 Merge user reg check with non-saved reg check. Don't force
17666 inline VR restore when static chain used.
17667 (rs6000_frame_related): Omit eh_frame info for user regs when
17669 (fixed_regs_p): Delete.
17671 2016-04-30 Alan Modra <amodra@gmail.com>
17673 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
17674 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
17677 2016-04-30 Alan Modra <amodra@gmail.com>
17680 * config/rs6000/rs6000.c (fixed_reg_p): New function.
17681 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
17684 2016-04-30 Alan Modra <amodra@gmail.com>
17686 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17687 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
17688 flag_pic test for Darwin.
17690 2016-04-30 Alan Modra <amodra@gmail.com>
17692 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
17693 throw_calls_crossed.
17694 (REG_FREQ_CALLS_CROSSED): Delete.
17695 (REG_N_THROWING_CALLS_CROSSED): Delete.
17696 * regstat.c (regstat_bb_compute_ri): Don't calculate
17697 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
17698 (dump_reg_info): Don't print call cross frequency.
17699 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
17700 and REG_N_THROWING_CALLS_CROSSED.
17702 2016-04-30 Alan Modra <amodra@gmail.com>
17704 * regs.h (struct reg_info_t): Delete live_length.
17705 (REG_LIVE_LENGTH): Delete macro.
17706 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
17707 local_live, local_processed and local_live_last_luid params.
17708 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
17710 (regstat_compute_ri): Adjust for above. Don't set
17712 (dump_reg_info): Don't print live length.
17713 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
17714 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
17715 Localize loop_depth var.
17717 2016-04-30 Alan Modra <amodra@gmail.com>
17719 * ira.c (enum valid_equiv): New.
17720 (validate_equiv_mem): Return enum.
17721 (update_equiv_mem): Create replacement in more cases.
17722 (add_store_equivs): Update validate_equiv_mem call.
17724 2016-04-30 Alan Modra <amodra@gmail.com>
17726 * ira.c (combine_and_move_insns): Rather than scanning insns,
17727 use DF infrastucture to find use and def insns.
17729 2016-04-30 Alan Modra <amodra@gmail.com>
17731 ira.c (combine_and_move_insns): Move invariant conditions..
17732 (ira.c): ..to here. Call combine_and_move_insns before
17733 add_store_equivs. Call grow_reg_equivs later. Allocate
17734 req_equiv later using max_reg_num() rather than global max_regno.
17735 (contains_replace_regs): Delete.
17736 (add_store_equivs): Remove contains_replace_regs test.
17738 2016-04-30 Alan Modra <amodra@gmail.com>
17740 * ira.c (struct equiv_mem_data): New.
17741 (equiv_mem, equiv_mem_modified): Delete static vars.
17742 (validate_equiv_mem_from_store): Use "data" param to communicate..
17743 (validate_equiv_mem): ..from here.
17745 2016-04-30 Alan Modra <amodra@gmail.com>
17747 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17749 (update_reg_equivs): ..here. Move allocation and freeing of
17750 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17751 end_alias_analysis to..
17754 2016-04-30 Alan Modra <amodra@gmail.com>
17756 * ira.c (pdx_subregs): Delete.
17757 (struct equivalence): Add pdx_subregs field.
17758 (set_paradoxical_subreg): Remove pdx_subregs param. Update
17759 pdx_subregs access.
17760 (update_equiv_regs): Don't create or free pdx_subregs. Update
17761 pdx_subregs access.
17763 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17765 * config/rs6000/altivec.h: Change definitions of vec_xl and
17767 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17768 (LD_ELEMREV_V2DI): New.
17769 (LD_ELEMREV_V4SF): New.
17770 (LD_ELEMREV_V4SI): New.
17771 (LD_ELEMREV_V8HI): New.
17772 (LD_ELEMREV_V16QI): New.
17773 (ST_ELEMREV_V2DF): New.
17774 (ST_ELEMREV_V2DI): New.
17775 (ST_ELEMREV_V4SF): New.
17776 (ST_ELEMREV_V4SI): New.
17777 (ST_ELEMREV_V8HI): New.
17778 (ST_ELEMREV_V16QI): New.
17781 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17782 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17783 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17784 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17785 (altivec_expand_builtin): Add handling for
17786 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17787 (rs6000_invalid_builtin): Add error-checking for
17788 RS6000_BTM_P9_VECTOR.
17789 (altivec_init_builtins): Define builtins used to implement vec_xl
17791 (rs6000_builtin_mask_names): Define power9-vector.
17792 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17793 (RS6000_BTM_P9_VECTOR): Define.
17794 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17795 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17796 (vsx_ld_elemrev_v2df): Likewise.
17797 (vsx_ld_elemrev_v4sf): Likewise.
17798 (vsx_ld_elemrev_v4si): Likewise.
17799 (vsx_ld_elemrev_v8hi): Likewise.
17800 (vsx_ld_elemrev_v16qi): Likewise.
17801 (vsx_st_elemrev_v2df): Likewise.
17802 (vsx_st_elemrev_v2di): Likewise.
17803 (vsx_st_elemrev_v4sf): Likewise.
17804 (vsx_st_elemrev_v4si): Likewise.
17805 (vsx_st_elemrev_v8hi): Likewise.
17806 (vsx_st_elemrev_v16qi): Likewise.
17807 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
17810 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
17812 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17814 (simplify_control_stmt_condition_1): ... here. Recurse into
17815 BIT_AND_EXPRs and BIT_IOR_EXPRs.
17817 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
17820 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17821 (zero_extendqi<mode>2_dot): Revert earlier conversion from
17822 define_insn_and_split to define_insn.
17823 (zero_extendqi<mode>2_dot2): Same.
17824 (extendqi<mode>2_dot): Same.
17825 (extendqi<mode>2_dot2): Same.
17827 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17829 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17830 (probe_stack): New expander.
17831 (probe_stack_<mode>): New insn pattern.
17833 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17835 * config/i386/i386.md
17836 (operations with memory inputs setting flags peephole2):
17837 Remove uneeded REG_P checks. Cleanup pattern generation.
17839 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
17841 * tree-vect-loop.c (vect_transform_loop): Fix
17842 nb_iterations_upper_bound computation for vectorized loop.
17844 2016-04-29 Marek Polacek <polacek@redhat.com>
17845 Jakub Jelinek <jakub@redhat.com>
17848 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17849 TARGET_EXPR_SLOT as a base.
17851 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
17853 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17854 with 'rCm2' constraints to limit possible immediate size.
17855 (*load_zeroextendqisi_update): Likewise.
17856 (*load_signextendqisi_update): Likewise.
17857 (*loadhi_update): Likewise.
17858 (*load_zeroextendhisi_update): Likewise.
17859 (*load_signextendhisi_update): Likewise.
17860 (*loadsi_update): Likewise.
17861 (*loadsf_update): Likewise.
17863 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17865 * config/i386/predicates.md (constm1_operand): Fix comparison.
17867 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17869 * testsuite/gcc.target/arc/ieee_eq.c: New test.
17871 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
17873 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17874 remaining SH5 related settings.
17875 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17876 shmedia_prepare_call_address): Delete.
17877 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17878 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17879 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17880 UNSUPPORTED_SH2A): Remove m5 checks.
17881 (sh_divide_strategy_e): Remove SH5 division strategies.
17882 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17883 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17885 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
17887 * config/s390/s390.c (s390_rtx_costs): Update documentation.
17889 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17891 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17892 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17893 Change lder to ldr.
17894 * config/s390/vector.md ("mov<mode>"): Likewise.
17896 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
17898 * config/s390/constraints.md ("U", "W"): Invoke
17899 s390_mem_constraint with "ZR" and "ZT".
17900 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17901 addresses when using LRA. Accept also short displacements for S
17902 and T constraints. Do not check for long displacement target for
17903 S and T constraints.
17904 (s390_mem_constraint): Remove handling of U and W constraints.
17905 * config/s390/s390.md (various patterns): Remove the short
17906 displacement constraints (Q and R) if a long displacement
17907 constraint is present. Add longdisp as required CPU capability.
17908 * config/s390/vector.md: Likewise.
17909 * config/s390/vx-builtins.md: Likewise.
17911 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17914 * reload1.c (reload): Call finish_spills before
17915 restarting reload loop. Skip select_reload_regs
17916 if update_eliminables_and_spill returns true.
17918 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
17920 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17921 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17922 (umulhisi3_imm): Update predicates and constraint letters.
17923 (umulhisi3_reg): Declare instruction as commutative.
17924 * config/arc/constraints.md (J12, J16): New constraints.
17925 * config/arc/predicates.md (short_unsigned_const_operand): New
17927 (arc_short_operand): Likewise.
17928 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17930 2016-04-29 Richard Biener <rguenther@suse.de>
17932 PR tree-optimization/13962
17933 PR tree-optimization/65686
17934 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17935 * tree-ssa-alias.c (ptrs_compare_unequal): New function
17936 using PTA to compare pointers.
17937 * match.pd: Add pattern for pointer equality compare simplification
17938 using ptrs_compare_unequal.
17940 2016-04-29 Richard Biener <rguenther@suse.de>
17942 * stor-layout.c (layout_type): Do not build a pointer-to-element
17945 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
17947 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
17948 Use SWI mode iterator. Use general_reg_operand predicate.
17949 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
17950 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
17953 2016-04-29 Jakub Jelinek <jakub@redhat.com>
17955 PR middle-end/70843
17956 * fold-const.c (operand_equal_p): Don't verify hash value equality
17958 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
17961 2016-04-28 Jakub Jelinek <jakub@redhat.com>
17964 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
17965 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
17966 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
17967 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
17968 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
17970 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
17972 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
17973 to info. Don't initialize separate fields to 0. Clean up
17976 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
17978 * config/i386/i386.md (peephole2s for operations with memory inputs):
17979 Use SWI mode iterator.
17980 (peephole2s for operations with memory outputs): Ditto.
17981 Do not check for stack checking probe.
17983 (probe_stack): Remove expander.
17985 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17986 Andrew Burgess <andrew.burgess@embecosm.com>
17988 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
17989 operands as 32-bits.
17991 2016-04-28 Jason Merrill <jason@redhat.com>
17993 * gdbinit.in: Skip line-map.h.
17995 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
17996 Andrew Burgess <andrew.burgess@embecosm.com>
17998 * config/arc/arc.c (arc_conditional_register_usage): Take
17999 TARGET_RRQ_CLASS into account.
18000 (arc_print_operand): Support printing 'p' and 's' operands.
18001 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
18003 (TARGET_RRQ_CLASS): Define.
18004 (IS_POWEROF2_OR_0_P): Define.
18005 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
18007 (*tst_movb): New define_insn.
18008 (*tst): Avoid recognition if it could prevent '*tst_movb'
18009 combination; replace c/CnL with c/Chs alternative.
18010 (*tst_bitfield_tst): New define_insn.
18011 (*tst_bitfield_asr): New define_insn.
18012 (*tst_bitfield): New define_insn.
18013 (andsi3_i): Add Rrq variant.
18014 (extzv): New define_expand.
18015 (insv): New define_expand.
18016 (*insv_i): New define_insn.
18017 (*movb): New define_insn.
18018 (*movb_signed): New define_insn.
18019 (*movb_high): New define_insn.
18020 (*movb_high_signed): New define_insn.
18021 (*movb_high_signed + 1): New define_split pattern.
18022 (*mrgb): New define_insn.
18023 (*mrgb + 1): New define_peephole2 pattern.
18024 (*mrgb + 2): New define_peephole2 pattern.
18025 * config/arc/arc.opt (mbitops): New option for nps400, uses
18026 TARGET_NPS_BITOPS_DEFAULT.
18027 * config/arc/constraints.md (q): Make register class conditional.
18028 (Rrq): New register constraint.
18029 (Chs): New constraint.
18030 (Clo): New constraint.
18031 (Chi): New constraint.
18032 (Cbf): New constraint.
18033 (Cbn): New constraint.
18034 (C18): New constraint.
18035 (Cbi): New constraint.
18037 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18039 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
18041 (bitmap_intersection_of_preds): Ditto.
18042 (bitmap_union_of_succs): Ditto.
18043 (bitmap_union_of_preds): Ditto.
18044 * sbitmap.c (do_popcount): Delete.
18045 (BITMAP_DEBUGGING): Delete.
18046 (sbitmap_verify_popcount): Delete.
18047 (sbitmap_alloc): Don't initialize the popcount field.
18048 (sbitmap_alloc_with_popcount): Delete.
18049 (sbitmap_resize): Don't resize the popcount array.
18050 (sbitmap_vector_alloc): Don't initialize the popcount field.
18051 (bitmap_copy): Don't copy the popcount array.
18052 (bitmap_clear): Don't clear the popcount array.
18053 (bitmap_clear): Delete the popcount array handling.
18054 (bitmap_ior_and_compl): Delete the popcount assert.
18055 (bitmap_not): Ditto.
18056 (bitmap_and_compl): Ditto.
18057 (bitmap_and): Delete the popcount array handling.
18058 (bitmap_xor): Ditto.
18059 (bitmap_ior): Ditto.
18060 (bitmap_or_and): Delete the popcount assert.
18061 (bitmap_and_or): Ditto.
18062 (popcount_table): Delete.
18063 (sbitmap_elt_popcount): Delete.
18064 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
18065 (bitmap_set_bit): Delete the popcount assert.
18066 (bitmap_clear_bit): Ditto.
18067 (sbitmap_free): Don't free the popcount array.
18068 (sbitmap_alloc_with_popcount): Delete declaration.
18069 (sbitmap_popcount): Ditto.
18071 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18072 Andrew Burgess <andrew.burgess@embecosm.com>
18074 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
18075 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
18076 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
18077 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
18078 * config/arc/arc.opt (mcmem): New option.
18079 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
18080 supply length for r/m alternative.
18081 (*extendqisi2_ac): Likewise.
18082 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
18084 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
18085 (movhi_insn): Likewise.
18086 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
18087 (*zero_extendqihi2_i): Add r/Ucm alternative.
18088 (*zero_extendqisi2_ac): Likewise.
18089 (*zero_extendhisi2_i): Likewise.
18090 * config/arc/constraints.md (Uex): New memory constraint.
18091 (Ucm): New define_constraint.
18092 * config/arc/predicates.md (long_immediate_loadstore_operand):
18093 Return 0 for MEM with cmem_address address.
18094 (cmem_address_0): New predicates.
18095 (cmem_address_1): Likewise.
18096 (cmem_address_2): Likewise.
18097 (cmem_address): Likewise.
18099 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18101 * config/rs6000/rs6000.c (machine_function): Rename
18102 insn_chain_scanned_p to spe_insn_chain_scanned_p.
18103 (rs6000_stack_info): Adjust.
18105 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
18106 Andrew Burgess <andrew.burgess@embecosm.com>
18108 * config/arc/constraints.md (Usd): Convert to define_constraint.
18112 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18115 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
18116 Add new peephole2 where the first insn is *mov<mode>_or instead of
18117 *mov<mode>_internal.
18119 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
18121 * tracer.c (bb_seen): Make static.
18123 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
18125 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
18126 support, setup defaults.
18127 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
18128 * config/arc/arc.c (arc_init): Add NPS400 support.
18129 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
18130 (TARGET_ARC700): NPS400 is also an ARC700.
18131 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
18133 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
18136 * config/nds32/nds32.md (casesi): Don't access the operands array
18139 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18141 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
18142 (or $-1,reg peephole2): Ditto.
18143 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
18145 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
18147 * doc/extend.texi (Common Function Attributes) [optimize]:
18148 Discourage use of the optimize attribute.
18150 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
18152 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
18153 special case builtin.
18154 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
18155 ALTIVEC_BUILTIN_VEC_ADDE.
18156 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
18157 support for ALTIVEC_BUILTIN_VEC_ADDE.
18158 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
18159 for __builtin_vec_adde.
18161 2016-04-28 Jakub Jelinek <jakub@redhat.com>
18163 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
18164 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
18166 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18169 * doc/sourcebuild.texi (Effective-Target Keywords, Other
18170 attributes): Document cilkplus_runtime.
18172 2016-04-28 Martin Jambor <mjambor@suse.cz>
18174 * tree-cfg.c (verify_expr): Verify that local declarations belong to
18175 this function. Call verify_expr on MEM_REFs and bases of other
18176 handled_components.
18178 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18180 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
18181 for WORD_REGISTER_OPERATIONS to runtime check.
18183 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18185 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
18187 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18189 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
18190 big-endian compilation.
18191 * config/arc/arc.md (addf3): Likewise.
18192 (subdf3): Likewise.
18193 (muldf3): Likewise.
18195 2016-04-28 Richard Biener <rguenther@suse.de>
18197 PR tree-optimization/70840
18198 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
18199 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
18200 Mark x * pow(x,c) -> pow(x,c+1) commutative.
18201 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
18203 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18205 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
18206 and explain why in a comment.
18208 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18210 * config/arc/arc.md (cpu_facility): Add fpx variant.
18211 (subdf3): Prohibit use reverse sub when assist operations option
18213 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
18214 instructions only when FPX is enabled.
18215 * testsuite/gcc.target/arc/trsub.c: New test.
18217 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18219 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
18220 mult_operator when calculating "type" attribute.
18221 (*fop_<mode>_1_i387): Ditto.
18222 (*fop_xf_1_i387): Ditto.
18223 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
18224 Use std::swap to swap operands. Use RTL expressions to generate
18227 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18228 Joern Rennecke <joern.rennecke@embecosm.com>
18230 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
18232 (emit_pic_move): Remove.
18233 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
18234 * config/arc/arc.c (emit_pic_move): Removed.
18235 (TARGET_HAVE_TLS): Define.
18236 (arc_conditional_register_usage): Test for arc_tp_regno.
18237 (arc_print_operand, arc_print_operand_address): Handle TLS
18239 (arc_needs_pcl_p): New function.
18240 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
18241 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
18242 (arc_raw_symbolic_reference_mentioned_p): Likewise.
18243 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
18244 (arc_legitimize_tls_address): Likewise.
18245 (DTPOFF_ZERO_SYM): Define.
18246 (arc_legitimize_pic_address): Make it static, handle TLS cases.
18247 (arc_output_pic_addr_const): Print TLS unspecs.
18248 (prepare_pic_move): New function, replaces emit_pic_move.
18249 (arc_legitimate_constant_p): Handle TLS unspecs.
18250 (arc_legitimate_address_p): Likewise.
18251 (arc_rewrite_small_data_p): Use assert for TLS constants.
18252 (prepare_move_operands): Use prepare_pic_move.
18253 (arc_legitimize_address): Legitimize tls addresses.
18254 (arc_epilogue_uses): Check for arc_tp_regno.
18255 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
18256 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
18258 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
18260 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
18261 %(arc_tls_extra_start_spec).
18262 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
18263 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
18265 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
18266 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
18267 (UNSPEC_TLS_OFF): Add.
18269 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
18270 (get_thread_pointersi): New patterns.
18271 * config/arc/arc.opt (mtp-regno): New option.
18272 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
18273 (move_dest_operand): Likewise.
18274 * configure: Regenerate.
18275 * configure.ac: Add arc*-*-* case to test for tls.
18276 * doc/invoke.texi (ARC options): Document mtp-regno.
18278 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
18280 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
18281 the new ARC HS SIMD instructions.
18282 (arc_preferred_simd_mode): New function.
18283 (arc_autovectorize_vector_sizes): Likewise.
18284 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
18285 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18286 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
18287 (arc_init_builtins): Add new SIMD builtin types.
18288 (arc_split_move): Handle 64 bit vector moves.
18289 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
18290 (TARGET_PLUS_QMACW): Define.
18291 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
18292 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
18293 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
18294 (VSUBADD4H): New builtins.
18295 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
18296 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
18298 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
18299 Matthias Klose <doko@debian.org>
18301 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
18303 2016-04-28 Richard Biener <rguenther@suse.de>
18305 PR middle-end/70777
18306 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
18309 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
18311 * common/config/sh/sh-common.c: Remove SH5 support.
18312 * config/sh/constraints.md: Likewise.
18313 * config/sh/config/sh/elf.h: Likewise.
18314 * config/sh/linux.h: Likewise.
18315 * config/sh/netbsd-elf.h: Likewise.
18316 * config/sh/predicates.md: Likewise.
18317 * config/sh/sh-c.c: Likewise.
18318 * config/sh/sh-protos.h: Likewise.
18319 * config/sh/sh.c: Likewise.
18320 * config/sh/sh.h: Likewise.
18321 * config/sh/sh.md: Likewise.
18322 * config/sh/sh.opt: Likewise.
18323 * config/sh/sync.md: Likewise.
18324 * config/sh/sh64.h: Delete.
18325 * config/sh/shmedia.h: Likewise.
18326 * config/sh/shmedia.md: Likewise.
18327 * config/sh/sshmedia.h: Likewise.
18328 * config/sh/t-netbsd-sh5-64: Likewise.
18329 * config/sh/t-sh64: Likewise.
18330 * config/sh/ushmedia.h: Likewise.
18332 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
18334 * config/i386/i386.md (sign_extend to memory peephole2s): Use
18335 general_reg_operand instead of register_operand predicate.
18337 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18339 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
18341 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
18343 * match.pd (A - B > A, A + B < A): New transformations.
18345 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
18347 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
18348 which defaults to true. Emit an outer pair of parentheses only if
18349 EMIT_PARENS. When continuing a chain of && or || (or & or |),
18350 don't emit parentheses for the right-hand operand.
18352 2016-04-27 Jeff Law <law@redhat.com>
18354 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
18356 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18358 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
18359 (altivec_lvx_<mode>_internal): Document.
18360 (altivec_lvx_<mode>_2op): New define_insn.
18361 (altivec_lvx_<mode>_1op): Likewise.
18362 (altivec_lvx_<mode>_2op_si): Likewise.
18363 (altivec_lvx_<mode>_1op_si): Likewise.
18364 (altivec_stvx_<mode>): Remove.
18365 (altivec_stvx_<mode>_internal): Document.
18366 (altivec_stvx_<mode>_2op): New define_insn.
18367 (altivec_stvx_<mode>_1op): Likewise.
18368 (altivec_stvx_<mode>_2op_si): Likewise.
18369 (altivec_stvx_<mode>_1op_si): Likewise.
18370 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18371 Expand vec_ld and vec_st during parsing.
18372 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
18374 (altivec_expand_stvx_be): Likewise.
18375 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
18376 address-masking behavior in RTL.
18377 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
18378 address-masking behavior in RTL.
18379 (altivec_expand_builtin): Change builtin code arguments for calls
18380 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
18381 (insn_is_swappable_p): Avoid incorrect swap optimization in the
18382 presence of lvx/stvx patterns.
18383 (alignment_with_canonical_addr): New function.
18384 (alignment_mask): Likewise.
18385 (find_alignment_op): Likewise.
18386 (recombine_lvx_pattern): Likewise.
18387 (recombine_stvx_pattern): Likewise.
18388 (recombine_lvx_stvx_patterns): Likewise.
18389 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
18390 stvx patterns from expand.
18391 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
18393 (vector_altivec_store_<mode>): Likewise.
18395 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
18397 * config/aarch64/aarch64.md
18398 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
18399 remove the "fp" attributes.
18400 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
18401 add the "simd" attributes.
18402 (*movdf_aarch64): Likewise.
18403 (*movtf_aarch64): Remove the "fp" attributes.
18404 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
18405 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
18407 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18409 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
18410 rtx to rtx_code_label *.
18411 * rtl.h (maybe_set_first_label_num): Likewise.
18413 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18415 * df-core.c (df_add_problem): Make the problem param be const.
18416 (df_remove_problem): Make local "problem" be const.
18417 * df-problems.c (problem_RD): Make const.
18418 (problem_LR): Likewise.
18419 (problem_LIVE): Likewise.
18420 (problem_MIR): Likewise.
18421 (problem_CHAIN): Likewise.
18422 (problem_WORD_LR): Likewise.
18423 (problem_NOTE): Likewise.
18424 (problem_MD): Likewise.
18425 * df-scan.c (problem_SCAN): Likewise.
18426 * df.h (struct df_problem): Make field "dependent_problem" be
18428 (struct dataflow): Likewise for field "problem".
18429 (df_add_problem): Make param const.
18431 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18433 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
18434 inter-unit moves to/from vector registers are enabled. Do not disable
18437 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18439 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
18440 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
18442 (enum df_problem_id): ...this new enum.
18443 (struct df_problem): Convert field "id" from "int" to
18444 enum df_problem_id.
18446 2016-04-27 David Malcolm <dmalcolm@redhat.com>
18448 * rtl.def: Update comment for "things in the instruction chain" to
18449 reflect the removal of the leading "i" field for INSN_UID in
18450 r210360. Fix bogus apostrophe.
18452 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
18454 * config/i386/i386.md
18455 (lea arith with mem operand + setcc peephole2): Set operator mode.
18457 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
18460 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
18461 (dimode_scalar_to_vector_candidate_p): This.
18462 (timode_scalar_to_vector_candidate_p): New function.
18463 (scalar_to_vector_candidate_p): Likewise.
18464 (timode_check_non_convertible_regs): Likewise.
18465 (timode_remove_non_convertible_regs): Likewise.
18466 (remove_non_convertible_regs): Likewise.
18467 (remove_non_convertible_regs): Renamed to ...
18468 (dimode_remove_non_convertible_regs): This.
18469 (scalar_chain::~scalar_chain): Make it virtual.
18470 (scalar_chain::compute_convert_gain): Make it pure virtual.
18471 (scalar_chain::mark_dual_mode_def): Likewise.
18472 (scalar_chain::convert_insn): Likewise.
18473 (scalar_chain::convert_registers): Likewise.
18474 (scalar_chain::add_to_queue): Make it protected.
18475 (scalar_chain::emit_conversion_insns): Likewise.
18476 (scalar_chain::replace_with_subreg): Likewise.
18477 (scalar_chain::replace_with_subreg_in_insn): Likewise.
18478 (scalar_chain::convert_op): Likewise.
18479 (scalar_chain::convert_reg): Likewise.
18480 (scalar_chain::make_vector_copies): Likewise.
18481 (scalar_chain::convert_registers): New pure virtual function.
18482 (class dimode_scalar_chain): New class.
18483 (class timode_scalar_chain): Likewise.
18484 (scalar_chain::mark_dual_mode_def): Renamed to ...
18485 (dimode_scalar_chain::mark_dual_mode_def): This.
18486 (timode_scalar_chain::mark_dual_mode_def): New function.
18487 (timode_scalar_chain::convert_insn): Likewise.
18488 (dimode_scalar_chain::convert_registers): Likewise.
18489 (scalar_chain::compute_convert_gain): Renamed to ...
18490 (dimode_scalar_chain::compute_convert_gain): This.
18491 (scalar_chain::replace_with_subreg): Renamed to ...
18492 (dimode_scalar_chain::replace_with_subreg): This.
18493 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
18494 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
18495 (scalar_chain::make_vector_copies): Renamed to ...
18496 (dimode_scalar_chain::make_vector_copies): This.
18497 (scalar_chain::convert_reg): Renamed to ...
18498 (dimode_scalar_chain::convert_reg ): This.
18499 (scalar_chain::convert_op): Renamed to ...
18500 (dimode_scalar_chain::convert_op): This.
18501 (scalar_chain::convert_insn): Renamed to ...
18502 (dimode_scalar_chain::convert_insn): This.
18503 (scalar_chain::convert): Call convert_registers.
18504 (convert_scalars_to_vector): Change to scalar_chain pointer to
18505 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
18506 in 32-bit mode. Delete scalar_chain pointer. Call
18507 free_dominance_info in 64-bit mode.
18508 (pass_stv::gate): Remove TARGET_64BIT check.
18509 (ix86_option_override): Put the 64-bit STV pass before the CSE
18512 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
18514 * dwarf2out.h (struct dw_loc_descr_node): Remove the
18515 dw_loc_frame_offset field.
18516 * dwarf2out.c (new_loc_descr): Likewise.
18517 (resolve_args_picking_1): Turn the VISITED hash set into a
18518 FRAME_OFFSET hash map. Use it to associate a frame offset to
18519 visited nodes. Remove uses of the CHECKING_P macro.
18520 (resolve_args_picking): Update call to resolve_args_picking_1.
18522 2016-04-27 Martin Liska <mliska@suse.cz>
18524 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
18525 (free_loop_data): Release vuses of groups.
18527 2016-04-27 Bin Cheng <bin.cheng@arm.com>
18529 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
18530 instead of redundant use_id and boolean have_use_for.
18531 (struct iv_use): Change sub_id into group_id. Remove field next.
18532 Move fields: related_cands, n_map_members, cost_map and selected
18534 (struct iv_group): ... here. New structure.
18535 (struct iv_common_cand): Use structure declaration directly.
18536 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
18537 (MAX_CONSIDERED_USES): Rename macro to ...
18538 (MAX_CONSIDERED_GROUPS): ... here.
18539 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
18540 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
18541 (dump_uses): Rename to ...
18542 (dump_groups): ... here. Update all uses.
18543 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
18544 (find_induction_variables): Refactor format of dump information.
18545 (record_sub_use): Delete.
18546 (record_use): Update all uses.
18547 (record_group): New function.
18548 (record_group_use, find_interesting_uses_op): Call above functions.
18550 (find_interesting_uses_cond): Ditto.
18551 (group_compare_offset): New function.
18552 (split_all_small_groups): Rename to ...
18553 (split_small_address_groups_p): ... here. Update all uses.
18554 (split_address_groups): Update all uses.
18555 (find_interesting_uses): Refactor format of dump information.
18556 (add_candidate_1): Update all uses. Remove redundant check on iv,
18558 (add_candidate, record_common_cand): Remove redundant assert.
18559 (add_iv_candidate_for_biv): Update use.
18560 (add_iv_candidate_derived_from_uses): Update all uses.
18561 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
18562 (alloc_use_cost_map): Ditto.
18563 (set_use_iv_cost, get_use_iv_cost): Rename to ...
18564 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
18565 (determine_use_iv_cost_generic): Ditto.
18566 (determine_group_iv_cost_generic): Ditto.
18567 (determine_use_iv_cost_address): Ditto.
18568 (determine_group_iv_cost_address): Ditto.
18569 (determine_use_iv_cost_condition): Ditto.
18570 (determine_group_iv_cost_cond): Ditto.
18571 (determine_use_iv_cost): Ditto.
18572 (determine_group_iv_cost): Ditto.
18573 (set_autoinc_for_original_candidates): Update all uses.
18574 (find_iv_candidates): Update all uses. Refactor dump information.
18575 (determine_use_iv_costs): Ditto.
18576 (determine_iv_costs): Ditto.
18577 (iv_ca_cand_for_use): Rename to ...
18578 (iv_ca_cand_for_group): ... here. Update all uses.
18579 (iv_ca_add_use, iv_ca_add_group): Ditto.
18580 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
18581 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
18582 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
18583 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
18584 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
18585 (create_new_iv, adjust_iv_update_pos): Ditto.
18586 (rewrite_use_address): Delete.
18587 (rewrite_use_address_1): Rename to ...
18588 (rewrite_use_address): ... here.
18589 (rewrite_use_compare): Update all uses.
18590 (rewrite_use): Delete.
18591 (rewrite_uses): Rename to ...
18592 (rewrite_groups): ... here. Update all uses.
18593 (remove_unused_ivs, free_loop_data): Update all uses.
18594 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
18596 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18598 * rtlanal.c (nonzero_bits1): Convert preprocessor check
18599 for WORD_REGISTER_OPERATIONS to runtime check.
18601 2016-04-27 Richard Biener <rguenther@suse.de>
18604 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
18605 aggregate_value_p to determine if a function result is
18606 returned by reference.
18607 (ipa_pta_execute): Functions having their address taken are
18608 not automatically nonlocal.
18610 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18613 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
18614 * fold-const.c (operand_equal_p): If flag_checking and
18615 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
18616 and if it returns non-zero, assert iterative_hash_expr on both
18619 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18621 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
18623 2016-04-27 Nick Clifton <nickc@redhat.com>
18625 PR middle-end/49889
18626 * varasm.c (merge_weak): Generate an error if an attempt is made
18627 to convert a non-weak static function into a weak, public function.
18629 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18631 * params.def (MAX_PARTITION_SIZE): New param.
18632 * doc/invoke.texi: Document lto-max-partition.
18634 2016-04-27 Richard Biener <rguenther@suse.de>
18637 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
18638 function cummulating used_from_other_partition, externally_visible
18639 and force_output from aliases.
18640 (refered_from_nonlocal_var): Likewise.
18641 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
18642 node flags properly.
18644 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
18646 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
18647 (-Wmemset-elt-size): New item.
18649 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
18652 * stor-layout.h (internal_reference_types): Delete.
18653 * stor-layout.c (reference_types_internal): Likewise.
18654 (internal_reference_types): Likewise.
18655 (layout_type) <REFERENCE_TYPE>: Adjust.
18657 2016-04-27 Jakub Jelinek <jakub@redhat.com>
18660 * tree.h (inchash::add_expr): Add FLAGS argument.
18661 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
18662 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
18663 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
18664 Formatting fix. Adjust recursive calls. For tcc_comparison,
18665 if swap_tree_comparison (code) is smaller than code, hash that
18666 and arguments in the other order. Hash CONVERT_EXPR the same
18667 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
18668 of ADDR_EXPR of decl as the decl itself. Add or remove
18669 OEP_ADDRESS_OF from recursive flags as needed. For
18670 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
18671 operands commutatively and only the third one normally.
18672 For internal CALL_EXPR hash in CALL_EXPR_IFN.
18674 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
18676 * config/rtems.h (LIB_SPEC): Add -latomic.
18678 2016-04-27 Joel Sherrill <joel@rtems.org>
18680 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
18681 xilink.ld and flags not relevant to RTEMS.
18683 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
18685 * toplev.c (backend_init_target): Avoid calling init_reload when using
18688 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18690 * reorg.c (try_merge_delay_insns): Declare i and j inside the
18691 for loops rather than one for the whole function.
18693 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18695 * match.pd (X + CST CMP X): New transformation.
18697 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
18699 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
18700 * fold-const.c (fold_binary_loc): Remove 2 transformations
18701 superseded by match.pd.
18702 * match.pd (x+x -> x*2): Generalize to integers.
18704 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
18706 * config/i386/i386.md (operation on memory peephole): Duplicate an
18707 existing peephole and adapt it to match lea rather than an operation
18710 PR rtl-optimization/57193
18711 * opts.c (default_options_table): Add OPT_frename_registers at -O2
18713 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
18715 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18717 * tree-if-conv.c (any_pred_load_store): New static variable.
18718 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
18719 any_pred_load_store instead of and_mask_load_store.
18720 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18721 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18722 (combine_blocks, tree_if_conversion): Ditto.
18724 2016-04-26 Bin Cheng <bin.cheng@arm.com>
18726 PR tree-optimization/70771
18727 PR tree-optimization/70775
18728 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18729 virtual PHI nodes. Delete parameter.
18730 (if_convertible_loop_p_1): Delete argument to above function.
18731 (predicate_all_scalar_phis): Delete code handling single-argument
18733 (tree_if_conversion): Mark and update virtual SSA.
18735 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18738 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18739 (x86_elf_aligned_common): Rename to ...
18740 (x86_elf_aligned_decl_common): ... this.
18741 Add decl arg. Switch to .lbss for largecomm object. Use
18742 LARGECOMM_SECTION_ASM_OP.
18743 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18745 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18746 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18748 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18749 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18751 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18754 * config/i386/i386.c (SECTION_LARGE): Define.
18755 (x86_64_elf_select_section): Set it for large data/bss sections.
18756 Only clear SECTION_WRITE for .lrodata.
18757 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18759 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18760 * varasm.c (default_elf_asm_named_section): Grow flagchars.
18761 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18763 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18764 * doc/tm.texi: Regenerate.
18766 2016-04-26 Jakub Jelinek <jakub@redhat.com>
18769 * configure.ac (--enable-checking): Document extra flag, for
18770 non-release builds default to --enable-checking=yes,extra.
18771 If misc checking and extra checking, define CHECKING_P to 2 instead
18773 * common.opt (fchecking=): Add.
18774 * doc/invoke.texi (-fchecking=): Document.
18775 * doc/install.texi: Document --enable-checking changes.
18776 * configure: Regenerated.
18777 * config.in: Regenerated.
18779 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18781 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18782 attribute instead of which_alternative.
18783 * config/i386/sse.md (*mov<mode>_internal): Ditto.
18784 Use EXT_REX_SSE_REG_P where appropriate.
18786 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18788 * config/i386/predicates.md (const0_operand): Do not match
18789 const_wide_int code.
18790 (const1_operand): Ditto.
18792 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18794 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18795 for SSE constm1 operands and TARGET_AVX512VL.
18796 (*movti_internal): Ditto.
18797 (*mov<mode>_or): Use constm1_operand predicate.
18798 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18799 for SSE vector_all_ones operands and TARGET_AVX512VL.
18800 * config/i386/predicates.md (constm1_operand): New predicate.
18801 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18802 emission of constant -1 load.
18804 2016-04-25 Jason Merrill <jason@redhat.com>
18806 * gdbinit.in: Skip is-a.h.
18808 * attribs.c (register_scoped_attributes): Fix logic.
18809 * attribs.h: Declare register_scoped_attributes.
18811 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18813 * config/rs6000/rs6000-builtin.def: Correct pasto error for
18814 stxvd2x and stxvw4x built-in functions.
18816 2016-04-25 DJ Delorie <dj@redhat.com>
18818 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18819 (ashrhi3): Likewise.
18820 (lshrhi3): Likewise.
18822 2016-04-25 Richard Biener <rguenther@suse.de>
18824 PR tree-optimization/70780
18825 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18826 wasn't visited yet.
18827 (compute_antic): Mark blocks with abnormal preds as visited as
18828 they have a final empty antic-in solution already.
18830 2016-04-25 Michael Collison <michael.collison@linaro.org>
18832 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18834 2016-04-25 Michael Collison <michael.collison@linaro.org>
18836 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18837 mode is VQI to improve mixed mode vectorization.
18838 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18839 define_insn to match low half of signed vaddw.
18840 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18841 define_insn to match high half of signed vaddw.
18842 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18843 define_insn to match low half of unsigned vaddw.
18844 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18845 define_insn to match high half of unsigned vaddw.
18846 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18847 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18848 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18850 (arm_simd_check_vect_par_cnst_half_p): Likewise.
18851 * config/arm/predicates.md (vect_par_constant_high): Support
18852 big endian and simplify by calling
18853 arm_simd_check_vect_par_cnst_half
18854 (vect_par_constant_low): Likewise.
18856 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
18858 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18859 predicate for operand 2.
18861 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
18862 H.J. Lu <hongjiu.lu@intel.com>
18864 * config/i386/i386-protos.h (standard_sse_constant_p): Add
18865 machine_mode argument.
18866 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18867 constm1_rtx operands. For VOIDmode constants, get mode from
18868 pred_mode. Check mode size if the mode is supported by ABI.
18869 (standard_sse_constant_opcode): Do not use standard_constant_p.
18870 Strictly check ABI support for all-ones operands.
18871 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18872 immediates. Update calls to standard_sse_constant_p.
18873 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18874 (ix86_rtx_costs): Ditto.
18875 * config/i386/i386.md (*movxi_internal_avx512f): Use
18876 nonimmediate_or_sse_const_operand instead of vector_move_operand.
18877 Use (v,BC) alternative instead of (v,C). Use register_operand
18878 checks instead of MEM_P.
18879 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18880 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
18881 isa attribute. Use register_operand checks instead of MEM_P.
18882 (*movti_internal): Use nonimmediate_or_sse_const_operand for
18883 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
18884 alternative and corresponding sse2 isa attribute.
18885 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18886 to standard_sse_constant_p.
18887 (FP constant splitters): Ditto.
18888 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18890 * config/i386/predicates.md (constm1_operand): Remove.
18891 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18892 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18893 vector_all_ones_operand instead of constm1_operand.
18895 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18897 * print-rtl.c (print_rtx_insn_vec): New function.
18898 * print-rtl.h: New prototype.
18899 * store-motion.c (struct st_expr): Make avail_stores a vector.
18900 (st_expr_entry): Adjust.
18901 (free_st_expr_entry): Likewise.
18902 (print_store_motion_mems): Likewise.
18903 (find_moveable_store): Likewise.
18904 (compute_store_table): Likewise.
18905 (delete_store): Likewise.
18906 (build_store_vectors): Likewise.
18908 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18910 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18912 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18914 * vec.h (vec_safe_contains): New function.
18915 (vec::contains): Likewise.
18916 (vec::begin): Likewise.
18917 (vec::end): Likewise.
18919 2016-04-23 Jakub Jelinek <jakub@redhat.com>
18922 * cfgexpand.c (expand_stack_vars): Fix typo.
18924 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18926 * system.h (list, map, set, vector): Include conditionally.
18927 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18928 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18929 * ipa-icf.c (INCLUDE_LIST): Define.
18930 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18931 * config/sh/sh.c (INCLUDE_VECTOR): Define.
18932 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18933 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18934 * cp/logic.cc (INCLUDE_LIST): Define.
18935 * fortran/trans-common.c (INCLUDE_MAP): Define.
18937 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
18939 * auto-profile.c: Remove <string.h> include.
18940 * ipa-icf-gimple.c: Remove <list> include.
18941 * diagnostic.c: Remove <new> include.
18942 * genmatch.c: Likewise.
18943 * pretty-print.c: Likewise.
18944 * toplev.c: Likewise
18945 * c/c-objc-common.c: Likewise.
18946 * cp/error.c: Likewise.
18947 * fortran/error.c: Likewise.
18949 2016-04-22 Richard Biener <rguenther@suse.de>
18951 * lto-streamer-in.c (input_ssa_names): Do not allocate
18952 GIMPLE_NOP for all SSA names.
18953 * lto-streamer-out.c (output_ssa_names): Do not output
18954 SSA names that should have been released.
18956 2016-04-22 Richard Biener <rguenther@suse.de>
18958 PR tree-optimization/70740
18959 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
18962 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
18965 * config/i386/predicates.md (call_insn_operand): Replace
18966 sibcall_memory_operand with memory_operand.
18968 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
18970 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
18971 has_single_use() tests.
18972 (register_edge_assert_for_1): Likewise.
18973 (find_assert_locations_1): Check the liveness bitmap instead of
18974 checking has_single_use().
18976 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
18979 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
18980 Extract AVX-512BW constraint from AVX.
18982 2016-04-21 Richard Biener <rguenther@suse.de>
18984 PR tree-optimization/70725
18985 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
18986 for phi_convertible_by_degenerating_args.
18987 (predicate_all_scalar_phis): Handle single-argument PHIs.
18989 2016-04-21 Richard Biener <rguenther@suse.de>
18991 PR middle-end/70747
18992 * fold-const.c (fold_comparison): Return properly typed
18995 2016-04-21 Bin Cheng <bin.cheng@arm.com>
18997 PR tree-optimization/70715
18998 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
18999 after expanding BASE using expand_simple_operations.
19001 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19003 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
19004 New transformations.
19006 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
19008 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
19010 2016-04-20 Jan Hubicka <jh@suse.cz>
19012 * ipa-inline.c (can_inline_edge_p): Pass caller info to
19013 ultiimate_alias_target.
19014 (update_callee_keys): Likewise.
19015 (lookup_recursive_calls): Likewise.
19016 (speculation_useful_p): Likewise.
19018 2016-04-20 Jan Hubicka <jh@suse.cz>
19021 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
19022 (set_nothrow_flag_1): ... this; handle interposition correctly;
19023 recurse on aliases and thunks.
19024 (cgraph_node::set_nothrow_flag): New.
19025 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
19026 functions compiled with non-call exceptions that binds to current
19028 (propagate_nothrow): Be safe WRT interposition.
19029 * cgraph.h (set_nothrow_flag): Update prototype.
19031 2016-04-18 Jan Hubicka <jh@suse.cz>
19033 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19034 max_loop_iterations_int.
19035 (tree_unswitch_outer_loop): Likewise.
19037 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19039 PR tree-optimization/69489
19040 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
19041 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
19042 Revise dump message.
19043 (if_convertible_bb_p): Remove check on edge count of basic block's
19046 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19048 PR tree-optimization/56625
19049 PR tree-optimization/69489
19050 * tree-data-ref.h (DR_INNERMOST): New macro.
19051 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
19052 hashing struct innermost_loop_behavior.
19053 (ref_DR_map): Remove.
19054 (innermost_DR_map): New map.
19055 (baseref_DR_map): Revise comment.
19056 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
19057 to innermost_DR_map accroding to its innermost loop behavior.
19058 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
19059 to its innermost loop behavior.
19060 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
19061 Add initialization for innermost_DR_map. Record memory reference
19062 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
19063 have innermost loop behavior.
19064 (if_convertible_loop_p): Remove release for ref_DR_map. Release
19067 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
19069 * config/i386/i386.md (*lea<mode>_general_1): Rename from
19070 *lea_general_1. Use explicit SWI12 mode interator.
19071 (*lea<mode>_general_2): Rename from *lea_general_2.
19072 Use explicit SWI12 mode interator.
19073 (*lea<mode>_general_3): Rename from *lea_general_3.
19074 Use explicit SWI12 mode interator.
19075 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
19076 Use explicit SWI12 mode interator.
19077 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
19078 Use explicit SWI48 mode interator.
19080 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19082 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
19083 Short-cut unaligned load and store cases. Handle all integer
19085 (ix86_expand_vector_move_misalign): Short-cut unaligned load
19086 and store cases. Call ix86_avx256_split_vector_move_misalign
19087 directly without checking mode class.
19089 2016-04-20 Andrew Pinski <apinski@cavium.com>
19090 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19093 * config/aarch64/aarch64.md (sibcall): Force call
19094 address to be DImode for ILP32.
19095 (sibcall_value): Likewise.
19097 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
19099 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
19101 2016-04-20 Richard Biener <rguenther@suse.de>
19103 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
19104 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
19105 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
19106 (maybe_push_res_to_seq): Adjust.
19107 * gimple-fold.c (maybe_build_generic_op): Likewise.
19109 2016-04-20 Marek Polacek <polacek@redhat.com>
19111 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
19114 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
19116 * config/i386/sse.md (vec_unpacks_lo_hi): Always
19117 use kmovw to support AVX512F target.
19119 2016-04-20 Bin Cheng <bin.cheng@arm.com>
19121 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
19123 2016-04-20 Marek Polacek <polacek@redhat.com>
19125 PR tree-optimization/70725
19126 * tree-if-conv.c (is_false_predicate): New function.
19127 (predicate_mem_writes): Use it.
19129 2016-04-20 Richard Biener <rguenther@suse.de>
19131 PR tree-optimization/70726
19132 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
19133 shift amounts from a pattern stmt operand.
19135 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19138 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
19139 stack_restore_from_fpr pattern when restoring r15.
19140 (s390_optimize_prologue): Strip away the memory barrier in the
19141 parallel when trying to get rid of restore insns.
19142 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
19143 definition for loading the stack pointer from an FPR. Compared to
19144 the normal move insn this pattern includes a full memory barrier.
19146 2016-04-19 Jakub Jelinek <jakub@redhat.com>
19148 PR middle-end/70680
19149 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
19150 implicitly linear or lastprivate iterator on the outer context.
19152 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19154 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
19156 * config/i386/i386.md (ssememalign): Removed.
19157 * config/i386/sse.md: Remove ssememalign attribute from patterns.
19159 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
19162 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
19163 const short * to __builtin_ia32_loaddquhi512_mask.
19164 (_mm512_maskz_loadu_epi16): Likewise.
19165 (_mm512_mask_storeu_epi16): Pass short * to
19166 __builtin_ia32_storedquhi512_mask.
19167 (_mm512_mask_loadu_epi8): Pass const char * to
19168 __builtin_ia32_loaddquqi512_mask.
19169 (_mm512_maskz_loadu_epi8): Likewise.
19170 (_mm512_mask_storeu_epi8): Pass char * to
19171 __builtin_ia32_storedquqi512_mask.
19172 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
19173 const double * to __builtin_ia32_loadupd512_mask.
19174 (_mm512_mask_loadu_pd): Likewise.
19175 (_mm512_maskz_loadu_pd): Likewise.
19176 (_mm512_storeu_pd): Pass double * to
19177 __builtin_ia32_storeupd512_mask.
19178 (_mm512_mask_storeu_pd): Likewise.
19179 (_mm512_loadu_ps): Pass const float * to
19180 __builtin_ia32_loadups512_mask.
19181 (_mm512_mask_loadu_ps): Likewise.
19182 (_mm512_maskz_loadu_ps): Likewise.
19183 (_mm512_storeu_ps): Pass float * to
19184 __builtin_ia32_storeups512_mask.
19185 (_mm512_mask_storeu_ps): Likewise.
19186 (_mm512_mask_loadu_epi64): Pass const long long * to
19187 __builtin_ia32_loaddqudi512_mask.
19188 (_mm512_maskz_loadu_epi64): Likewise.
19189 (_mm512_mask_storeu_epi64): Pass long long *
19190 to __builtin_ia32_storedqudi512_mask.
19191 (_mm512_loadu_si512): Pass const int * to
19192 __builtin_ia32_loaddqusi512_mask.
19193 (_mm512_mask_loadu_epi32): Likewise.
19194 (_mm512_maskz_loadu_epi32): Likewise.
19195 (_mm512_storeu_si512): Pass int * to
19196 __builtin_ia32_storedqusi512_mask.
19197 (_mm512_mask_storeu_epi32): Likewise.
19198 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
19199 char * to __builtin_ia32_storedquqi256_mask.
19200 (_mm_mask_storeu_epi8): Likewise.
19201 (_mm256_mask_loadu_epi16): Pass const short * to
19202 __builtin_ia32_loaddquhi256_mask.
19203 (_mm256_maskz_loadu_epi16): Likewise.
19204 (_mm_mask_loadu_epi16): Pass const short * to
19205 __builtin_ia32_loaddquhi128_mask.
19206 (_mm_maskz_loadu_epi16): Likewise.
19207 (_mm256_mask_loadu_epi8): Pass const char * to
19208 __builtin_ia32_loaddquqi256_mask.
19209 (_mm256_maskz_loadu_epi8): Likewise.
19210 (_mm_mask_loadu_epi8): Pass const char * to
19211 __builtin_ia32_loaddquqi128_mask.
19212 (_mm_maskz_loadu_epi8): Likewise.
19213 (_mm256_mask_storeu_epi16): Pass short * to.
19214 __builtin_ia32_storedquhi256_mask.
19215 (_mm_mask_storeu_epi16): Pass short * to.
19216 __builtin_ia32_storedquhi128_mask.
19217 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
19218 const double * to __builtin_ia32_loadupd256_mask.
19219 (_mm256_maskz_loadu_pd): Likewise.
19220 (_mm_mask_loadu_pd): Pass onst double * to
19221 __builtin_ia32_loadupd128_mask.
19222 (_mm_maskz_loadu_pd): Likewise.
19223 (_mm256_mask_storeu_pd): Pass double * to
19224 __builtin_ia32_storeupd256_mask.
19225 (_mm_mask_storeu_pd): Pass double * to
19226 __builtin_ia32_storeupd128_mask.
19227 (_mm256_mask_loadu_ps): Pass const float * to
19228 __builtin_ia32_loadups256_mask.
19229 (_mm256_maskz_loadu_ps): Likewise.
19230 (_mm_mask_loadu_ps): Pass const float * to
19231 __builtin_ia32_loadups128_mask.
19232 (_mm_maskz_loadu_ps): Likewise.
19233 (_mm256_mask_storeu_ps): Pass float * to
19234 __builtin_ia32_storeups256_mask.
19235 (_mm_mask_storeu_ps): ass float * to
19236 __builtin_ia32_storeups128_mask.
19237 (_mm256_mask_loadu_epi64): Pass const long long * to
19238 __builtin_ia32_loaddqudi256_mask.
19239 (_mm256_maskz_loadu_epi64): Likewise.
19240 (_mm_mask_loadu_epi64): Pass const long long * to
19241 __builtin_ia32_loaddqudi128_mask.
19242 (_mm_maskz_loadu_epi64): Likewise.
19243 (_mm256_mask_storeu_epi64): Pass long long * to
19244 __builtin_ia32_storedqudi256_mask.
19245 (_mm_mask_storeu_epi64): Pass long long * to
19246 __builtin_ia32_storedqudi128_mask.
19247 (_mm256_mask_loadu_epi32): Pass const int * to
19248 __builtin_ia32_loaddqusi256_mask.
19249 (_mm256_maskz_loadu_epi32): Likewise.
19250 (_mm_mask_loadu_epi32): Pass const int * to
19251 __builtin_ia32_loaddqusi128_mask.
19252 (_mm_maskz_loadu_epi32): Likewise.
19253 (_mm256_mask_storeu_epi32): Pass int * to
19254 __builtin_ia32_storedqusi256_mask.
19255 (_mm_mask_storeu_epi32): Pass int * to
19256 __builtin_ia32_storedqusi128_mask.
19257 * config/i386/i386-builtin-types.def (PCSHORT): New.
19258 (PINT64): Likewise.
19259 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
19260 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
19261 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
19262 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
19263 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
19264 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
19265 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
19266 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
19267 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
19268 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
19269 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
19270 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
19271 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
19272 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
19273 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
19274 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
19275 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
19276 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
19277 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
19278 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
19279 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
19280 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
19281 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
19282 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
19283 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
19284 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
19285 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
19286 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
19287 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
19288 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
19289 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
19290 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
19291 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
19292 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
19293 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
19294 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
19295 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
19296 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
19297 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
19298 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
19299 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
19300 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
19301 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
19302 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
19303 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
19304 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
19305 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
19306 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
19307 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
19309 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
19310 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
19312 (ix86_expand_vector_move_misalign): Likewise.
19313 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
19314 to scalar function prototype for unaligned load/store builtins.
19315 (ix86_expand_special_args_builtin): Updated.
19316 * config/i386/sse.md (UNSPEC_LOADU): Removed.
19317 (UNSPEC_STOREU): Likewise.
19318 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
19319 (VI_ULOADSTORE_F_AVX512VL): Likewise.
19320 (ssescalarsize): Handle V4TI, V2TI and V1TI.
19321 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19322 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
19323 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
19324 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
19325 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
19326 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
19327 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
19328 (<avx512>_storedqu<mode>_mask): Likewise.
19329 (*sse4_2_pcmpestr_unaligned): Likewise.
19330 (*sse4_2_pcmpistr_unaligned): Likewise.
19331 (*mov<mode>_internal): Renamed to ...
19332 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
19333 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
19334 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
19335 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
19337 2016-04-19 Richard Biener <rguenther@suse.de>
19339 PR tree-optimization/70171
19340 * tree-ssa-phiprop.c: Include stor-layout.h.
19341 (phiprop_insert_phi): Handle the aggregate copy case.
19342 (propagate_with_phi): Likewise.
19344 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
19346 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
19347 instead of simplify_gen_subreg (... , 0).
19348 (ix86_delegitimize_address): Ditto.
19349 (ix86_split_divmod): Ditto.
19350 (ix86_split_copysign_const): Ditto.
19351 (ix86_split_copysign_var): Ditto.
19352 (ix86_expand_args_builtin): Ditto.
19353 (ix86_expand_round_builtin): Ditto.
19354 (ix86_expand_special_args_builtin): Ditto.
19355 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
19356 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
19357 (udivmodqi4): Ditto.
19358 (absneg splitters): Ditto.
19359 (*jcc_bt<mode>_1): Ditto.
19361 2016-04-19 Richard Biener <rguenther@suse.de>
19363 PR tree-optimization/70724
19364 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
19365 restoring out from ...
19366 (free_scc_vn): ... here.
19367 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
19368 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
19370 (pass_fre::execute): Restore SSA info.
19372 2016-04-19 Richard Biener <rguenther@suse.de>
19374 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
19375 * gimple-walk.c (walk_gimple_op): Initialize it.
19376 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
19377 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
19378 remapping SSA names of defs.
19379 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
19382 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
19384 PR middle-end/70689
19385 * lra-constraints.c (equiv_substition_p): New.
19386 (process_alt_operands): Use it.
19387 (swap_operands): Swap it.
19388 (curr_insn_transform): Update it.
19390 2016-04-18 Michael Matz <matz@suse.de>
19392 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
19393 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
19394 * tree-core.h (tree_type_common.align): Use bit-field.
19395 (tree_type_common.spare): New.
19396 (tree_decl_common.off_align): Make smaller.
19397 (tree_decl_common.align): Use bit-field.
19399 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
19400 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
19401 (scan_sharing_clauses): Ditto.
19402 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19403 (omp_finish_file): Ditto.
19404 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
19405 (layout_decl): Ditto.
19406 (relayout_decl): Ditto.
19407 (finalize_record_size): Use SET_TYPE_ALIGN.
19408 (finalize_type_size): Ditto.
19409 (finish_builtin_struct): Ditto.
19410 (layout_type): Ditto.
19411 (initialize_sizetypes): Ditto.
19412 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
19413 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
19414 (lookup_field_for_decl): Use SET_DECL_ALIGN.
19415 (get_chain_field): Ditto.
19416 (get_trampoline_type): Ditto.
19417 (get_nl_goto_field): Ditto.
19418 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
19420 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
19421 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
19422 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
19423 (build_qualified_type): Use SET_TYPE_ALIGN.
19424 (build_aligned_type, build_range_type_1): Ditto.
19425 (build_atomic_base): Ditto.
19426 (build_common_tree_nodes): Ditto.
19427 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
19428 (expand_one_stack_var_at): Ditto.
19429 * coverage.c (build_var): Use SET_DECL_ALIGN.
19430 * except.c (init_eh): Ditto.
19431 * function.c (assign_parm_setup_block): Ditto.
19432 * symtab.c (increase_alignment_1): Ditto.
19433 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
19434 * tree-vect-stmts.c (ensure_base_align): Ditto.
19435 * varasm.c (align_variable): Ditto.
19436 (assemble_variable): Ditto.
19437 (build_constant_desc): Ditto.
19438 (output_constant_def_contents): Ditto.
19440 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
19441 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
19442 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
19443 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
19444 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
19446 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
19449 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
19450 replace %vmovsd with "%vmovq".
19451 (vec_concatv2df): Likewise.
19453 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
19455 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
19456 (*vec_extractv2si_0): Ditto.
19457 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
19458 (zero_extended_scalar_load_operand splitters): Ditto.
19459 (vec_extract splitters): Ditto.
19460 (*vec_extractv4si_0_zext): Ditto.
19461 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
19462 and lowpart_subreg.
19463 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
19464 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
19465 (*sse4_1_extractps): Use lowpart_subreg.
19466 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
19468 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19470 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
19472 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
19473 Mention Solaris 11 packaging changes.
19474 Update gas and gld requirements.
19475 Remove reference to pre-Solaris 10 bug.
19476 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
19478 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
19481 2016-04-17 Jan Hubicka <jh@suse.cz>
19483 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
19484 max_loop_iterations_int.
19486 2016-04-18 Richard Biener <rguenther@suse.de>
19488 PR tree-optimization/43434
19489 * tree-ssa-structalias.c (struct vls_data): New.
19490 (visit_loadstore): Handle all pointer-based accesses.
19491 (compute_dependence_clique): Compute a bitmap of restrict tags
19492 assigned bases and pass it to visit_loadstore.
19494 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
19497 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
19498 armv8.1-a and armv8.1-a+crc.
19500 2016-04-18 Richard Biener <rguenther@suse.de>
19502 PR tree-optimization/70701
19503 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
19504 references after translating through a memcpy.
19506 2016-04-18 Richard Biener <rguenther@suse.de>
19508 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
19509 (compute_antic): ... here. For partial antic use regular
19510 postorder and scrap iteration.
19511 (compute_partial_antic_aux): Remove unused return value.
19512 (init_pre): Do not allocate postorder.
19513 (fini_pre): Do not free postorder.
19515 2016-04-18 Richard Biener <rguenther@suse.de>
19517 PR middle-end/37870
19518 * expmed.c (extract_bit_field_1): Remove broken case
19519 using a wider MODE_INT mode.
19521 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
19523 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
19524 unless compiling with at least GCC-4.8.
19526 2016-04-17 Jan Hubicka <jh@suse.cz>
19529 * graphite.c (graphite_finalize): Update call to
19530 tree_estimate_probability.
19531 * predict.h (tree_estimate_probability): Update prototype.
19533 2016-04-17 Jan Hubicka <jh@suse.cz>
19535 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
19536 (tree_estimate_probability): Likewise.
19537 (pass_profile::execute): Update.
19538 (report_predictor_hitrates): New function.
19539 * profile.c (compute_branch_probabilities): Use it.
19540 * predict.h (report_predictor_hitrates): Declare.
19542 2016-04-17 Jan Hubicka <jh@suse.cz>
19545 * cgraph.h (cgraph_node::set_const_flag,
19546 cgraph_node::set_pure_flag): Update prototype to return bool;
19548 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
19549 of interposable symbol are interposable, too.
19550 (cgraph_set_const_flag_1): Rename to ...
19551 (set_const_flag_1): ... this one; change to self recursive function
19552 instead of call_for_symbol_thunks_and_aliases. Handle correctly
19553 clearnig the flag in all variants and also virtual thunks of const
19554 functions are pure; track if any change was done.
19555 (cgraph_node::set_const_flag): Update.
19556 (struct set_pure_flag_info): New struct.
19557 (cgraph_set_pure_flag_1): Rename to ...
19558 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
19559 rather than pointer encoded flags; track if any changes was done;
19560 handle correctly clearning flag and setting flag of aliases already
19562 (cgraph_node::set_pure_flag): Update.
19563 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
19565 2016-04-17 Tom de Vries <tom@codesourcery.com>
19568 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
19569 backslash in label.
19571 2016-04-17 Tom de Vries <tom@codesourcery.com>
19573 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
19574 '{}<> ' as escape-for-record.
19576 2016-04-17 Tom de Vries <tom@codesourcery.com>
19578 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
19581 2016-04-17 Tom de Vries <tom@codesourcery.com>
19584 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
19585 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
19586 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
19587 * passes.c (finish_optimization_passes): Only call
19588 finish_graph_dump_file if dfi->graph_dump_initialized.
19589 (execute_function_dump, pass_init_dump_file): Use
19590 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
19592 2016-04-17 Tom de Vries <tom@codesourcery.com>
19594 PR tree-optimization/70256
19595 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
19596 (debug_varmap): New function.
19598 2016-04-17 Tom de Vries <tom@codesourcery.com>
19601 * passes.c (pass_manager::register_pass): Propagate pflags.
19603 2016-04-17 Tom de Vries <tom@codesourcery.com>
19606 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
19607 * passes.c (pass_manager::pass_manager): Declare and init p_start in
19608 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
19609 check if it's equal to p_start.
19610 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
19612 2016-04-15 Jan Hubicka <jh@suse.cz>
19615 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
19616 function does not bind to current def.
19617 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
19618 handle conservatively calls to functions that does not need to bind
19620 (check_call): Update call of worse_state.
19621 (ignore_edge_for_nothrow): Update.
19622 (ignore_edge_for_pure_const): Likewise.
19623 (propagate_pure_const): Update calls to worse_state.
19624 (skip_function_for_local_pure_const): Reformat comments.
19626 2016-04-15 Jan Hubicka <jh@suse.cz>
19629 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
19630 (cgraph_node::function_symbol): Likewise.
19631 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19632 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
19633 (symtab_node::ultimate_alias_target): Add REF parameter.
19634 (symtab_node::binds_to_current_def_p): Declare.
19635 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
19636 (cgraph_node::function_symbol): Likewise.
19637 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19638 (cgraph_node::get_availability): Likewise.
19639 (cgraph_edge::binds_to_current_def_p): New inline function.
19640 (varpool_node::get_availability): Add REF parameter.
19641 (varpool_node::ultimate_alias_target): Likewise.
19642 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
19643 (symtab_node::binds_to_current_def_p): Likewise.
19644 * varpool.c (varpool_node::get_availability): Likewise.
19646 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19649 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
19650 Fix mode size check.
19652 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19654 * BASE-VER: Set to 7.0.0.
19656 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
19658 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
19660 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19662 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
19663 architecture revisions.
19665 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
19667 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
19668 * config/i386/i386.c (ix86_using_red_zone): No longer static.
19669 * config/i386/i386.md (stack decrement to push peepholes): Guard
19670 with !x86_using_red_zone ().
19672 2016-04-15 Jakub Jelinek <jakub@redhat.com>
19675 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
19676 to dump_generic_node.
19677 (NIY): Pass also flags to do_niy.
19679 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
19681 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
19682 (simd_clone_vector_of_formal_parm_types)
19683 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
19684 (simd_clone_mangle, simd_clone_create)
19685 (simd_clone_adjust_return_type, create_tmp_simd_array)
19686 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
19687 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
19688 (ipa_simd_modify_function_body, simd_clone_linear_addend)
19689 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
19690 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
19691 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
19692 * omp-simd-clone.c: ... this new file.
19693 (simd_clone_vector_of_formal_parm_types): Make it static.
19694 * Makefile.in (OBJS): Add omp-simd-clone.o.
19696 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
19699 * config/i386/sse.md: Use proper memory operand modifiers.
19702 2016-04-15 Richard Biener <rguenther@suse.de>
19703 Alan Modra <amodra@gmail.com>
19705 PR tree-optimization/70130
19706 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
19707 when alignment stays not the same and no not use the realign
19710 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
19713 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19714 direct move handlers for KFmode. Change TFmode handlers test from
19715 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
19717 2016-04-14 Jakub Jelinek <jakub@redhat.com>
19720 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19721 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19722 (inlined_polymorphic_ctor_dtor_block_p): Use it.
19723 * tree-ssa-live.c (remove_unused_scope_block_p): When
19724 in_ctor_dtor_block, avoid discarding not just BLOCKs with
19725 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19726 block_ultimate_origin is FUNCTION_DECL.
19727 (remove_unused_locals): If current_function_decl is
19728 polymorphic_ctor_dtor_p, pass initial true to
19729 remove_unused_scope_block_p' is_ctor_dtor_block.
19731 2016-04-14 Martin Sebor <msebor@redhat.com>
19736 * doc/extend.texi (Variable Length): Revert.
19738 2016-04-14 Marek Polacek <polacek@redhat.com>
19739 Jan Hubicka <hubicka@ucw.cz>
19742 * tree.c (verify_type): Disable the canonical type of main variant
19745 2016-04-14 Jason Merrill <jason@redhat.com>
19747 * cfgexpand.c, expr.c: Revert previous change.
19749 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
19751 PR middle-end/70643
19752 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19753 when building a mem ref for the incoming reduction variable.
19755 2016-04-14 Richard Biener <rguenther@suse.de>
19757 PR tree-optimization/70614
19758 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19759 loop if the evolution dropped to chrec_dont_know.
19760 (interpret_condition_phi): Likewise.
19762 2016-04-14 Richard Biener <rguenther@suse.de>
19764 PR tree-optimization/70623
19765 * tree-ssa-pre.c (changed_blocks): Make global ...
19766 (compute_antic): ... local here. Move and fix worklist
19767 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19768 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
19769 worklist handling, dump when ANTIC_IN changed.
19770 (compute_partial_antic_aux): Remove worklist handling.
19771 (init_pre): Do not compute post dominators. Add a comment about
19772 the CFG order chosen.
19773 (fini_pre): Do not free post dominators.
19775 2016-04-13 Martin Sebor <msebor@redhat.com>
19780 * doc/extend.texi (Variable Length): Document C++ specifics.
19782 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19785 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19786 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
19787 eh edges have been purged.
19790 * tree-sra.c (create_access_replacement,
19791 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19793 * tree-pretty-print.c (dump_fancy_name): New function.
19794 (dump_decl_name, dump_generic_node): Use it.
19796 2016-04-13 Jason Merrill <jason@redhat.com>
19798 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19799 * expr.c (expand_expr_real_1): Likewise.
19801 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
19803 * config/i386/i386.md (kunpckhi): Swap operands.
19804 (kunpcksi): Likewise.
19805 (kunpckdi): Likewise.
19806 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19807 (vec_pack_trunc_<mode>): Likewise.
19809 2016-04-13 Jakub Jelinek <jakub@redhat.com>
19812 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19814 PR middle-end/70633
19815 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19816 gimplification turns some element into non-constant.
19819 * rtl.h (convert_memory_address_addr_space_1): New prototype.
19820 * explow.c (convert_memory_address_addr_space_1): No longer static,
19821 add NO_EMIT argument and don't call convert_modes if true, pass
19822 it down recursively, remove break after return.
19823 (convert_memory_address_addr_space): Adjust caller.
19824 * simplify-rtx.c (simplify_unary_operation_1): Call
19825 convert_memory_address_addr_space_1 instead of convert_memory_address,
19826 if it returns NULL, don't simplify.
19828 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
19831 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19833 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19835 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19836 Bump the upper SIMDLEN limits, so that if the return type or
19837 characteristic type if the return type is void can be passed in
19838 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19841 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19844 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19845 Do not use "=" constraint on an input constraint.
19846 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19847 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19848 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19849 generates (neg (abs ...)) instead of (abs ...).
19851 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19853 PR rtl-optimization/70596
19854 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19855 just invalidate LRA data and reset them. Adjust dump wording.
19857 2016-04-12 Martin Liska <mliska@suse.cz>
19860 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
19862 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19864 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19865 max_loop_iterations_int.
19866 (tree_unswitch_outer_loop): Likewise.
19867 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19868 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19870 2016-04-12 Tom de Vries <tom@codesourcery.com>
19872 PR tree-optimization/68756
19873 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19874 instead of new_name.
19876 2016-04-12 Jakub Jelinek <jakub@redhat.com>
19878 PR tree-optimization/70602
19879 * tree-sra.c (generate_subtree_copies): Don't write anything into
19880 constant pool decls.
19882 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19883 regardless whether there are depend clauses or not.
19885 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19888 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19889 target attribute and pragma from changing the -mfloat128
19890 and -mfloat128-hardware options.
19892 * doc/extend.texi (Additional Floating Types): Document PowerPC
19893 __float128 restrictions.
19895 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19898 * config/aarch64/driver-aarch64.c
19899 (aarch64_get_extension_string_for_isa_flags): New.
19900 (arch_extension): Rename to...
19901 (aarch64_arch_extension): ...This.
19902 (ext_to_feat_string): Rename to...
19903 (aarch64_extensions): ...This.
19904 (aarch64_core_data): Keep track of architecture extension flags.
19905 (cpu_data): Rename to...
19906 (aarch64_cpu_data): ...This.
19907 (aarch64_arch_driver_info): Keep track of architecture extension
19909 (get_arch_name_from_id): Rename to...
19910 (get_arch_from_id): ...This, change return type.
19911 (host_detect_local_cpu): Update and reformat for renames, handle
19912 extensions through common infrastructure.
19914 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19917 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19918 track of a canonical flag name.
19919 (all_extensions): Likewise.
19920 (arch_to_arch_name): Also track extension flags enabled by the arch.
19921 (all_architectures): Likewise.
19922 (aarch64_parse_extension): Move to here.
19923 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19925 (aarch64_rewrite_selected_cpu): Update for above change.
19926 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19927 are handled, such that the single explicit value enabled by an
19928 extension is kept seperate from the implicit values it also enables.
19929 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19931 (aarch64_parse_extension): New.
19932 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19933 here to config/aarch64/aarch64-protos.h.
19934 (aarch64_parse_extension): Move from here to
19935 common/config/aarch64/aarch64-common.c.
19936 (aarch64_option_print): Update.
19937 (aarch64_declare_function_name): Likewise.
19938 (aarch64_start_file): Likewise.
19939 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19940 the canonical flag for extensions.
19941 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19944 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
19946 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
19949 2016-04-09 Tom de Vries <tom@codesourcery.com>
19951 PR tree-optimization/68953
19952 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
19953 first to last subscript.
19955 2016-04-09 Jakub Jelinek <jakub@redhat.com>
19957 PR tree-optimization/70586
19958 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
19961 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
19965 PR tree-optimization/70373
19966 PR middle-end/70533
19967 PR middle-end/70534
19968 PR middle-end/70535
19969 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
19970 clauses for acc parallel reductions as necessary. Error on those
19972 * omp-low.c (scan_sharing_clauses): Don't install variables which
19973 are used in acc parallel reductions.
19974 (lower_rec_input_clauses): Remove dead code.
19975 (lower_oacc_reductions): Add support for reference reductions.
19976 (lower_reduction_clauses): Remove dead code.
19977 (lower_omp_target): Don't remap variables appearing in acc parallel
19979 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
19981 2016-04-08 Jakub Jelinek <jakub@redhat.com>
19983 PR middle-end/70593
19984 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
19985 with multiple SSA_NAME defs, force the outputs other than first
19986 to be live before calling live_track_process_def on each output.
19988 PR rtl-optimization/70574
19989 * fwprop.c (forward_propagate_and_simplify): Don't add
19990 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
19991 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
19992 paradoxical subregs within *loc.
19994 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
19996 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
19997 -ftree-parallelize-loops={0,1}.
19998 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
19999 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
20000 * config/ia64/hpux.h (LIB_SPEC): Likewise.
20001 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
20002 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
20004 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
20007 * asan.c (instrument_derefs): If we get unknown location, extract it
20008 with EXPR_LOCATION.
20009 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
20011 2016-04-08 Tom de Vries <tom@codesourcery.com>
20013 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
20014 implicit firstprivate clause.
20016 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20019 * config/arm/thumb2.md (tst + branch-> lsls + branch
20020 peephole below *orsi_not_shiftsi_si): Require that condition
20021 register is dead after the peephole.
20022 (second peephole after the above): Likewise.
20024 2016-04-08 Alan Modra <amodra@gmail.com>
20027 * builtins.c (fold_builtin_classify): For IBM extended precision,
20028 look at just the high-order double to test for NaN.
20029 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
20030 test just the high double for Inf but both doubles for subnormal
20033 2016-04-07 Jakub Jelinek <jakub@redhat.com>
20035 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
20036 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
20037 node->simdclone->mask_mode != VOIDmode masks.
20038 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
20039 earlier, use it instead of node->simdclone.
20040 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20041 Set clonei->mask_mode.
20043 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20046 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
20047 Pass it through to cp_parser_already_scoped_statement.
20048 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
20049 it through to cp_parser_statement.
20050 (cp_parser_statement): Pass IF_P through to
20051 cp_parser_iteration_statement.
20052 (cp_parser_pragma): Adjust call to
20053 cp_parser_iteration_statement.
20055 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
20058 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
20059 resolve a future -Wparentheses warning.
20060 * omp-low.c (scan_sharing_clauses): Likewise.
20061 * tree-parloops.c (eliminate_local_variables): Likewise.
20063 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
20065 PR rtl-optimization/70398
20066 * lra-constraints.c (process_address_1): Check zero scale and code
20067 for reloading with zero scale.
20069 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
20071 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
20072 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
20074 2016-04-06 Jakub Jelinek <jakub@redhat.com>
20076 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
20077 Add support for AVX512F clones, include them by default for
20078 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
20079 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
20082 PR middle-end/70550
20083 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
20084 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
20085 firstprivate clauses.
20086 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
20087 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
20088 (lower_omp_target): Set TREE_NO_WARNING for
20089 non-addressable possibly uninitialized vars which are copied into
20090 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
20092 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
20094 * config/pa/predicates.md (integer_store_memory_operand): Accept
20095 REG+D operands with a large offset when reload_in_progress is true.
20096 (floating_point_store_memory_operand): Likewise.
20098 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20101 * match.pd (nested int casts): Limit to GIMPLE.
20103 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
20106 * ipa-devirt.c (maybe_record_node): Fix comment; use
20107 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
20109 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20111 PR rtl-optimization/70542
20112 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
20113 if there are any uses other than insn or debug insns.
20115 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
20116 Jakub Jelinek <jakub@redhat.com>
20118 PR tree-optimization/70509
20119 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
20120 Shift HOST_WIDE_INT_1U instead of 1.
20122 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
20124 PR tree-optimization/70509
20125 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
20126 of the vector base type for index.
20128 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
20131 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
20133 2016-04-05 Richard Biener <rguenther@suse.de>
20135 PR tree-optimization/70526
20136 * tree-sra.c (build_ref_for_offset): Use prev_base to
20137 extract the alias pointer type.
20139 2016-04-05 Richard Biener <rguenther@suse.de>
20141 * dse.c (struct store_info): Remove alias_set member.
20142 (struct read_info_type): Likewise.
20143 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
20144 spill_deleted, clear_alias_set_lookup): Remove.
20145 (get_group_info): Remove dead base == NULL_RTX case.
20146 (dse_step0): Remove initialization of removed variables.
20147 (delete_dead_store_insn): Reomve alias set dumping.
20148 (free_read_records): Remove alias_set handling.
20149 (canon_address): Remove alias_set_out parameter.
20150 (record_store): Remove spill_alias_set, it's always zero.
20151 (check_mem_read_rtx): Likewise.
20152 (dse_step2): Rename from ...
20153 (dse_step2_nospill): ... this. Adjust.
20154 (scan_stores): Rename from ...
20155 (scan_stores_nospill): ... this.
20156 (scan_reads): Rename from ...
20157 (scan_reads_nospill): ... this.
20158 (scan_stores_spill, scan_reads_spill): Remove.
20159 (dse_step3_scan): Remove for_spills argument which is always false.
20160 (dse_step3): Likewise.
20161 (dse_step5): Rename from ...
20162 (dse_step5_nospill): ... this. Remove alias_set handling.
20163 (rest_of_handle_dse): Adjust.
20165 2016-04-05 Jakub Jelinek <jakub@redhat.com>
20168 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
20169 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
20170 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
20171 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
20173 2016-04-05 Richard Biener <rguenther@suse.de>
20175 PR middle-end/70499
20176 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
20177 non-register type temporaries into SSA.
20179 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
20182 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
20183 calls when sanitizing.
20184 (possible_polymorphic_call_target_p): Fix formatting.
20186 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20187 Jakub Jelinek <jakub@redhat.com>
20189 PR middle-end/70457
20190 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
20191 to ensure a call statement is compatible with a built-in's
20193 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
20196 2016-04-04 Richard Biener <rguenther@suse.de>
20198 PR rtl-optimization/70484
20199 * rtl.h (canon_output_dependence): Declare.
20200 * alias.c (canon_output_dependence): New function.
20201 * dse.c (record_store): Use canon_output_dependence rather
20202 than canon_true_dependence.
20204 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20207 * cgraph.h (symtab_node::copy_visibility_from): New function.
20208 * symtab.c (symtab_node::copy_visibility_from): New function.
20209 * ipa-visibility.c (optimize_weakref): New function.
20210 (function_and_variable_visibility): Use it.
20212 2016-04-04 Martin Liska <mliska@suse.cz>
20215 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
20216 value that is really in range handled by SBR instruction.
20217 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
20218 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
20219 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
20221 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
20225 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
20226 set, but not for SP_REG operands.
20228 2016-04-02 Martin Sebor <msebor@redhat.com>
20231 * fold-const.c (maybe_nonzero_address): New function.
20232 (fold_comparison): Call it. Fold equality and relational
20233 expressions involving null pointers.
20234 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
20236 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
20238 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
20239 the "Y" constraint (scalar FP 0.0 immediate).
20241 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
20242 Add the "const_double" to the list of operand constraints.
20244 2016-04-01 Jakub Jelinek <jakub@redhat.com>
20246 PR rtl-optimization/70467
20247 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
20248 If low word of the last operand is 0, just emit addition/subtraction
20251 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20254 * config/s390/s390.c (s390_expand_insv): Check for everything
20255 constant instead of just VOIDmode stuff.
20257 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20260 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
20262 2016-04-01 Nathan Sidwell <nathan@acm.org>
20264 * tree.def (TRY_CATCH_EXPR): Correct documentation.
20266 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
20268 PR rtl-optimization/70461
20269 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
20272 2016-03-31 Martin Liska <mliska@suse.cz>
20275 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
20276 a tree value or an immediate integer value to a buffer
20277 that is eventually copied to a BRIG section.
20278 (emit_immediate_operand): Call the function here.
20279 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
20280 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
20281 of class' fields that are removed.
20282 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
20283 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
20284 m_brig_repr_size fields.
20286 2016-03-31 Martin Liska <mliska@suse.cz>
20289 * hsa-gen.c (hsa_function_representation::update_dominance): New
20291 (convert_addr_to_flat_segment): Likewise.
20292 (gen_hsa_memory_set): New alignment argument.
20293 (gen_hsa_ctor_assignment): Likewise.
20294 (gen_hsa_insns_for_single_assignment): Provide alignment
20295 to gen_hsa_ctor_assignment.
20296 (gen_hsa_insns_for_direct_call): Add new argument.
20297 (expand_lhs_of_string_op): New function.
20298 (expand_string_operation_builtin): Likewise.
20299 (expand_memory_copy): New function.
20300 (expand_memory_set): New function.
20301 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
20302 (convert_switch_statements): Change signature.
20303 (generate_hsa): Use a return value of the function.
20304 (pass_gen_hsail::execute): Do not call
20305 convert_switch_statements here.
20306 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
20307 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
20308 (hsa_function_representation::update_dominance): New function.
20310 2016-03-31 Martin Liska <mliska@suse.cz>
20313 * hsa-brig.c (emit_directive_variable): Emit alignment
20314 according to hsa_symbol::m_align.
20315 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
20316 (dump_hsa_symbol): Dump alignment of HSA symbols.
20317 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
20318 (gen_hsa_addr_with_align): New function.
20319 (hsa_bitmemref_alignment): Use newly added function.
20320 (gen_hsa_insns_for_load): Likewise.
20321 (gen_hsa_insns_for_store): Likewise.
20322 (gen_hsa_memory_copy): New argument added.
20323 (gen_hsa_insns_for_single_assignment): Respect
20324 alignment for assignments processed via gen_hsa_memory_copy.
20325 (gen_hsa_insns_for_direct_call): Likewise.
20326 (gen_hsa_insns_for_return): Likewise.
20327 (gen_function_def_parameters): Set default alignment.
20328 * hsa.c (hsa_object_alignment): New function.
20329 (hsa_byte_alignment): Pasted function.
20330 * hsa.h (hsa_symbol::m_align): New field.
20332 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20334 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
20335 scratch field for goto case.
20337 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
20339 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
20341 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
20344 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
20345 (scalar_chain::convert_insn): Call convert_op for reg
20346 moves to handle undefined registers.
20348 2016-03-31 Nathan Sidwell <nathan@acm.org>
20351 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
20352 Assert we don't want to move backwards.
20354 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
20357 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
20359 2016-03-31 Jakub Jelinek <jakub@redhat.com>
20361 PR rtl-optimization/70460
20362 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
20363 with operand from REG_LABEL_OPERAND, instead substitute
20364 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
20365 Don't do anything for REG_NON_LOCAL_GOTO jumps.
20367 2016-03-31 Martin Liska <mliska@suse.cz>
20369 * passes.c (execute_one_pass): Do not call
20370 todo_after for a discarded function.
20372 2016-03-31 Bin Cheng <bin.cheng@arm.com>
20374 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
20375 (no_cost, infinite_cost): Initialize the new field.
20376 (get_computation_cost_at): Record setup cost.
20377 (determine_use_iv_cost_address): Skip cost computation for sub
20378 uses if we can estimate it without losing accuracy.
20380 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
20382 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
20384 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20385 max_loop_iterations_int.
20386 (tree_unswitch_outer_loop): Likewise.
20387 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
20388 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
20390 2016-03-30 Richard Biener <rguenther@suse.de>
20392 PR middle-end/70450
20393 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
20395 2016-03-30 Jakub Jelinek <jakub@redhat.com>
20398 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
20399 in gen_blendm expander.
20401 2016-03-30 Nick Clifton <nickc@redhat.com>
20404 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
20405 case where we are already provided with an SImode SUBREG.
20407 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
20410 * config/i386/i386.c (ix86_expand_epilogue): Properly check
20411 conflict between DRAP register and __builtin_eh_return.
20413 2016-03-30 Michael Matz <matz@suse.de>
20414 Richard Biener <rguenther@suse.de>
20417 * ipa-polymorphic-call.c (struct type_change_info): Change
20418 speculative to an unsigned allowing to limit the work we do.
20419 (csftc_abort_walking_p): New inline function..
20420 (check_stmt_for_type_change): Limit the number of may-defs
20421 skipped for speculative devirtualization to
20422 max-speculative-devirt-maydefs.
20423 * params.def (max-speculative-devirt-maydefs): New param.
20424 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
20426 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
20429 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
20432 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
20434 PR tree-optimization/59124
20435 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
20436 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
20438 2016-03-29 Jeff Law <law@redhat.com>
20440 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
20442 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20444 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
20447 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
20449 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
20450 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
20451 gcrt0.o if linking dynamically.
20453 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
20456 * ipa-devirt.c (methods_equal_p): New function.
20457 (compare_virtual_tables): Use it.
20458 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
20459 * cgraphclones.c (clone_function_name_1): Use
20460 symbol_table::symbol_suffix_separator.
20461 * coverage.c (build_var): Likewise.
20462 * symtab.c (symbol_table::symbol_suffix_separator): New.
20464 2016-03-29 Jakub Jelinek <jakub@redhat.com>
20466 PR rtl-optimization/70429
20467 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
20468 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
20469 mode != result_mode.
20472 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
20474 PR tree-optimization/70405
20475 * ssa-iterators.h (num_imm_uses): Add missing braces.
20477 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
20479 PR rtl-optimization/68695
20480 * ira-color.c (allocno_copy_cost_saving): New.
20481 (improve_allocation): Use it.
20483 2016-03-29 Richard Henderson <rth@redhat.com>
20485 PR middle-end/70355
20486 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
20488 2016-03-29 Richard Biener <rguenther@suse.de>
20490 PR middle-end/70424
20491 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
20492 use alignment returned by get_pointer_alignment_1 if it is
20493 bigger than BITS_PER_UNIT.
20494 * builtins.c (get_pointer_alignment_1): Do not return true
20495 for alignment extracted from SSA info.
20497 2016-03-28 James Bowman <james.bowman@ftdichip.com>
20499 * config/ft32/ft32.opt (mnodiv): New.
20500 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
20501 * doc/invoke.texi (FT32 Options -mnodiv): New.
20503 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
20506 * config/i386/i386.md (define_split, andn): Fix modes.
20508 2016-03-26 Richard Biener <rguenther@suse.de>
20509 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20512 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
20514 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
20515 as 2nd argument to cl_optimization_restore().
20517 2016-03-25 Richard Henderson <rth@redhat.com>
20520 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
20521 * config/aarch64/aarch64-protos.h: Declare it.
20522 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
20524 2016-03-25 Alan Modra <amodra@gmail.com>
20527 * config/rs6000/constraints.md (j): Simplify.
20528 * config/rs6000/predicates.md (easy_fp_constant): Exclude
20530 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
20531 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
20532 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
20533 in all constraint alternatives.
20534 (movtd_64bit_nodm): Delete "j" constraint alternative.
20536 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20538 * tree-ssa-propagate.c: Enhance docs for
20539 SSA_PROP_NOT_INTERESTING.
20541 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
20543 * doc/extend.texi: Fix typo in documentation to pure attribute.
20545 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
20548 * config/pa/pa.md (bswapdi2): Use a scratch register.
20550 2016-03-24 Richard Henderson <rth@redhat.com>
20552 PR middle-end/69845
20553 * fold-const.c (extract_muldiv_1): Correct test for multiplication
20556 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
20558 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
20559 using ix86_expand_binary_operator instead of gen_andsi3.
20561 2016-03-24 Richard Biener <rguenther@suse.de>
20563 PR tree-optimization/70396
20564 * tree-vect-stmts.c (vectorizable_comparison): Use
20565 get_vectype_for_scalar_type.
20567 2016-03-24 Richard Biener <rguenther@suse.de>
20569 PR middle-end/70370
20570 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
20571 with register bases.
20573 2016-03-24 Richard Biener <rguenther@suse.de>
20575 PR tree-optimization/70372
20576 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
20577 build_all_ones_cst to also handle vector types correctly.
20579 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
20582 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
20585 2016-03-23 Marek Polacek <polacek@redhat.com>
20588 * doc/invoke.texi: Document -Wignored-attributes.
20590 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20592 PR tree-optimization/69042
20593 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
20594 parameter from 30 to 40.
20596 2016-03-23 Bin Cheng <bin.cheng@arm.com>
20598 PR tree-optimization/69042
20599 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
20600 for use with constant offset stripped in base.
20602 2016-03-23 Richard Biener <rguenther@suse.de>
20604 PR middle-end/70251
20605 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
20606 mode compatibility check.
20607 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20609 2016-03-23 Jeff Law <law@redhat.com>
20611 PR tree-optimization/64058
20612 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
20614 (struct ssa_conflicts): Move up earlier in the file.
20615 (conflicts_, var_map_): New static variables.
20616 (initialize_conflict_count): New function to initialize the
20617 CONFLICT_COUNT field for each conflict pair.
20618 (compare_pairs): Lazily initialize the conflict count and use it
20619 as the first tie-breaker.
20620 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
20621 and wipe conflicts_ and map_ around the call to qsort. Remove
20622 special case for 2 coalesce pairs.
20623 * bitmap.c (bitmap_count_unique_bits): New function.
20624 (bitmap_count_bits_in_word): New function, extracted from
20626 (bitmap_count_bits): Use bitmap_count_bits_in_word.
20627 * bitmap.h (bitmap_count_unique_bits): Declare it.
20629 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
20632 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
20633 transparent alias chain for decl assembler name.
20634 * config/sol2.c (solaris_assemble_visibility): Likewise.
20636 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20638 * config/arm/arm1020e.md (1020call_op): Reduce reservation
20640 (v10_fdivs): Likewise.
20641 (v10_fdivd): Likewise.
20643 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20646 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
20647 to not call fclose twice on file.
20649 2016-03-23 Jakub Jelinek <jakub@redhat.com>
20651 PR tree-optimization/70354
20652 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20653 oprnd0 is wider than oprnd1 and there is a cast from the wider
20654 type to oprnd1, mask it with the mask of the narrower type.
20657 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
20658 Optimize TARGET_STV splitters, if high or low word of last argument
20661 2016-03-22 Jeff Law <law@redhat.com>
20664 tree-ssa-threadbackward.c
20665 (fsm_find_control_statement_thread_paths): Correctly distinguish
20666 between old style jump threads vs FSM jump threads.
20668 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20671 * config/i386/i386.c (scalar_chain::convert_op): Support
20672 uninitialized register usage case.
20674 2016-03-22 Richard Biener <rguenther@suse.de>
20676 PR middle-end/70251
20677 * genmatch.c (gen_transform): Adjust last parameter to a three-state
20679 (capture::gen_transform): ... to change behavior when substituting
20680 a condition into cond or not-cond expr context.
20681 (dt_simplify::gen_1): Adjust.
20682 * gimple-match-head.c: Include gimplify.h for unshare_expr.
20683 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
20684 last change and instead change to
20685 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
20686 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20688 2016-03-22 Anthony Green <green@moxielogic.com>
20690 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
20691 issue for moxiebox targets.
20692 (CC1PLUS_SPEC): Ditto.
20694 2016-03-22 Richard Biener <rguenther@suse.de>
20696 PR middle-end/70333
20697 * fold-const.c (extract_muldiv_1): Properly perform multiplication
20700 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20702 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
20704 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
20707 * config/i386/i386.c (def_builtin): Handle
20708 OPTION_MASK_ISA_AVX512VL to be and-ed with other
20710 (const struct builtin_description bdesc_special_args[]):
20711 Remove duplicate ISA bits.
20713 2016-03-22 Jakub Jelinek <jakub@redhat.com>
20716 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
20717 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
20718 in a way that works also for AVX512BW.
20721 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20722 instead of source if operands[1] is xmm16 and above and
20723 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
20724 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20727 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20728 on assign if (*from_p) is a comparison, set it to
20729 TREE_NO_WARNING (*from_p).
20731 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20733 PR middle-end/70326
20734 * lra.c (restore_scratches): Ignore deleted insns.
20736 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
20737 Jakub Jelinek <jakub@redhat.com>
20739 PR tree-optimization/70317
20740 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20743 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
20746 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20747 of ix86_expand_move.
20749 (movti): Use general_operand for operand 1 predicate.
20751 2016-03-21 Martin Liska <mliska@suse.cz>
20753 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20755 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20757 2016-03-21 Martin Liska <mliska@suse.cz>
20760 * ipa-icf.c (sem_function::parse): Skip static
20761 constructors and destructors.
20763 2016-03-21 Jakub Jelinek <jakub@redhat.com>
20766 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20767 function-like macro, peek following token(s) if it is followed
20768 by CPP_OPEN_PAREN token with optional padding in between, and
20769 if not, don't treat it like a macro.
20771 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
20772 Alexander Monakov <amonakov@ispras.ru>
20774 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20775 for the stabs debug format.
20777 2016-03-21 Richard Biener <rguenther@suse.de>
20779 PR tree-optimization/70310
20780 * tree-vect-generic.c (expand_vector_condition): Fold the built
20783 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
20786 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20787 Block third alternative for AVX-512VL target,
20789 2016-03-21 Martin Liska <mliska@suse.cz>
20792 * hsa-brig.c (emit_function_directives): Mark unemitted
20793 global variables for emission.
20794 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20795 (get_symbol_for_decl): Likewise.
20796 * hsa.h (struct hsa_symbol): New flag.
20798 2016-03-21 Richard Biener <rguenther@suse.de>
20800 PR tree-optimization/70288
20801 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20802 we do not estimate unsimplified all-constant conditionals or
20803 switches as optimized away.
20805 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
20807 PR rtl-optimization/69102
20808 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20809 when we have a readonly dependency context.
20811 2016-03-18 Jeff Law <law@redhat.com>
20813 PR rtl-optimization/70263
20814 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20815 (update_equiv_regs): When trying to move a store to after the insn
20816 that sets the source of the store, make sure the store occurs after
20817 the insn that sets the source of the store. When successful note
20818 the REG_EQUIV note created in the dump file.
20820 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
20821 Bernd Schmidt <bschmidt@redhat.com>
20823 * doc/extend.texi: Document more potential problems with basic asms.
20825 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
20827 PR rtl-optimization/70278
20828 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20831 2016-03-18 Jason Merrill <jason@redhat.com>
20833 * calls.c (load_register_parameters): Fix zero size sibcall logic.
20835 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
20837 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20838 values to 128b regs.
20840 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20842 PR tree-optimization/70252
20843 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20844 boolean vector has a proper number of elements.
20845 (supportable_narrowing_operation): Likewise.
20847 2016-03-18 Tom de Vries <tom@codesourcery.com>
20850 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20852 2016-03-18 Jakub Jelinek <jakub@redhat.com>
20854 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20855 instead of replace_rtx for DEBUG_INSNs.
20857 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20859 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20860 load type reservations.
20862 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
20865 * config/pa/constraints.md: Revert 2015-02-13 change. Use
20866 define_constraint for "Q" and "T" constraints.
20868 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
20870 Tweak the pipeline model for Exynos M1
20872 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
20875 2016-03-17 David Malcolm <dmalcolm@redhat.com>
20878 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20879 where one or both locations aren't within a line_map.
20881 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
20884 * opts.c (finish_options): Don't set flag_pie to the default if
20885 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
20888 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
20890 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20891 true as ALL_REGS argument to replace_rtx.
20893 2016-03-17 Richard Biener <rguenther@suse.de>
20896 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20899 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20902 * rtl.h (replace_rtx): Add ALL_REGS argument.
20903 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
20904 equality and assert mode is the same, instead of just rtx pointer
20906 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20907 true as ALL_REGS argument to replace_rtx.
20909 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
20911 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20912 for boolean vector with vector mode only.
20913 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20915 2016-03-17 Nick Clifton <nickc@redhat.com>
20918 * config/rx/rx.c (rx_print_integer): Print negative constants in
20921 2016-03-17 Jakub Jelinek <jakub@redhat.com>
20924 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20926 2016-03-16 Richard Henderson <rth@redhat.com>
20927 Richard Biener <rguenth@suse.de>
20929 PR middle-end/70240
20930 PR middle-end/68215
20932 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20933 first operand as is_gimple_condexpr.
20935 PR middle-end/70240
20936 PR middle-end/68215
20938 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
20939 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20940 Do not gimplify the result.
20941 (do_unop): Adjust call to tree_vec_extract.
20942 (do_binop): Likewise.
20943 (do_compare): Likewise.
20944 (do_plus_minus): Likewise.
20945 (do_negate): Likewise.
20946 (expand_vector_condition): Likewise.
20947 (do_cond): Likewise.
20949 2016-03-16 Richard Henderson <rth@redhat.com>
20952 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
20953 (aarch64_classify_address): Use it.
20954 (aarch64_legitimize_address): Force all subexpressions of PLUS
20955 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
20957 2016-03-16 Jakub Jelinek <jakub@redhat.com>
20958 Richard Biener <rguenth@suse.de>
20961 * rtlanal.c (replace_rtx): For REG, if from is a REG,
20962 return to even if only REGNO is equal, and assert
20965 2016-03-11 Jeff Law <law@redhat.com>
20967 PR rtl-optimization/70224
20968 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
20970 2016-03-16 Richard Henderson <rth@redhat.com>
20972 PR middle-end/70199
20973 * function.h (struct function): Add has_forced_label_in_static.
20974 * gimplify.c (force_labels_r): Set it.
20975 * lto-streamer-in.c (input_struct_function_base): Read it.
20976 * lto-streamer-out.c (output_struct_function_base): Write it.
20977 * tree-inline.c (has_label_address_in_static_1): Remove.
20978 (copy_forbidden): Remove fndecl parameter; test
20979 has_forced_label_in_static.
20980 (inline_forbidden_p): Update call to copy_forbidden.
20981 (tree_versionable_function_p): Likewise.
20982 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
20983 (chkp_versioning): Likewise.
20984 * tree-inline.h (copy_forbidden): Update decl.
20986 2016-03-16 Marek Polacek <polacek@redhat.com>
20989 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
20990 function being thunked if the result type doesn't have fixed size.
20991 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
20992 doesn't have fixed size.
20994 2016-03-16 Bin Cheng <bin.cheng@arm.com>
20996 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
20997 reporting malformed loop nest.
20999 2016-03-16 Tom de Vries <tom@codesourcery.com>
21002 * ipa-devirt.c (possible_polymorphic_call_targets): Move
21003 nodes.length () == 1 test to before first nodes[0] access.
21005 2016-03-16 Tom de Vries <tom@codesourcery.com>
21007 PR tree-optimization/68715
21008 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
21009 single_pred_p test.
21011 2016-03-16 Tom de Vries <tom@codesourcery.com>
21013 PR tree-optimization/68809
21014 * graphite-scop-detection.c (same_close_phi_node): Test if result types
21017 2016-03-16 Carlos O'Donell <carlos@redhat.com>
21018 Sandra Loosemore <sandra@codesourcery.com>
21020 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
21021 on leaf attribute. Mention ELF interposition problems.
21023 2016-03-16 Alan Modra <amodra@gmail.com>
21025 PR rtl-optimization/69195
21026 PR rtl-optimization/47992
21027 * ira.c (indirect_jump_optimize): Ignore artificial defs.
21030 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
21033 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
21035 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21037 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
21039 2016-03-15 Jakub Jelinek <jakub@redhat.com>
21041 PR rtl-optimization/70222
21042 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
21043 optimization if mode is different from result_mode, queue up masking
21044 of the result in outer_op. Formatting fix.
21046 PR middle-end/70239
21047 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
21050 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21052 PR rtl-optimization/69032
21053 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
21054 looping backwards over basic block insns.
21056 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21059 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
21060 to non-speculative when propagating trap bits.
21062 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21064 PR rtl-optimization/63384
21065 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
21066 DEBUG_INSN_P insns.
21068 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
21071 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
21072 factored out from ...
21073 (sched_analyze_insn): ... here.
21074 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
21075 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
21076 get_implicit_reg_pending_clobbers in it.
21077 (setup_id_reg_sets): Use setup_id_implicit_regs.
21078 (deps_init_id): Ditto.
21080 2016-03-15 Tom de Vries <tom@codesourcery.com>
21083 * cgraph.c (cgraph_node::get_body): Save, reset and restore
21085 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
21086 execute_function_dump.
21087 (execute_one_pass): Don't dump function if it will be dumped after ipa
21090 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
21092 * genrecog.c (match_pattern_2): If pred is NULL don't call
21093 safe_predicate_mode on it.
21095 2016-03-14 Jakub Jelinek <jakub@redhat.com>
21097 PR middle-end/70219
21098 * lra-constraints.c (delete_move_and_clobber): Change assertion
21099 to also allow dregno == 0.
21101 2016-03-14 Richard Henderson <rth@redhat.com>
21104 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
21105 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
21106 (reassociate_bb): Use optimize_vec_cond_expr; avoid
21107 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
21110 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
21113 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
21115 (lra_create_live_ranges_1): initialize hard register biggest_mode to
21117 * lra-constraints.c (split_reg): For hard regs, try to find the
21118 biggest single-register mode used in the function.
21120 2016-03-14 Richard Biener <rguenther@suse.de>
21122 PR tree-optimization/56365
21123 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
21124 constants to compare against.
21126 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
21129 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
21130 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
21131 (define_split for the GPR case): Use int_reg_operand instead of
21132 gpc_reg_operand for the output.
21134 2016-03-14 Tom de Vries <tom@codesourcery.com>
21136 PR tree-optimization/70045
21137 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
21138 create_empty_if_region_on_edge argument.
21140 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
21142 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
21143 (STACK_CHECK_PROTECT): Likewise.
21144 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21145 (STACK_CHECK_PROTECT): Likewise.
21146 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
21147 (STACK_CHECK_PROTECT): Likewise.
21148 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
21149 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21150 (STACK_CHECK_PROTECT): Likewise.
21152 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
21154 PR rtl-optimization/69307
21155 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
21156 registers in modes that span more than one register.
21158 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
21161 * lra-constraints.c (delete_move_and_clobber): New.
21162 (remove_inheritance_pseudos): Use it.
21164 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
21167 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
21168 the libcall is LCT_THROW.
21169 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
21170 for the checking routine.
21172 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21175 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
21176 optimization if we have direct move.
21177 (roundu32<mode>2_fprs): Likewise.
21179 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
21182 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
21184 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
21185 Arguments swapped. All callers changed. Take reg_renumber into
21186 account, and Calculate and compare register ranges for hard regs.
21188 2016-03-11 Jeff Law <law@redhat.com>
21190 PR tree-optimization/70190
21191 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21192 Handle cases where we can not extract the taken edge, even though we
21193 found a constant value.
21195 PR tree-optimization/64058
21196 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
21197 (num_coalesce_pairs): Move up earlier in file.
21198 (find_coalesce_pair): Initialize the INDEX field for each pair
21200 (compare_pairs): No longer sort on the elements in each pair.
21201 Instead break ties with the index of the coalesce pair.
21203 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21206 * config/aarch64/aarch64-protos.h
21207 (aarch64_save_restore_target_globals): New prototype.
21208 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
21209 Call the above when popping pragma.
21210 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
21212 (aarch64_set_current_function): Rewrite using the above.
21214 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21216 PR tree-optimization/70177
21217 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
21218 (extract_ops_from_tree): ... this. In the 2 argument
21219 overload remove _1 suffix.
21220 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
21221 (extract_ops_from_tree): ... this.
21222 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
21224 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
21225 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
21226 extract_ops_from_tree instead of 2 operand one.
21228 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
21230 PR tree-optimization/70013
21231 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
21232 for constant-pool entries.
21234 2016-03-11 Jakub Jelinek <jakub@redhat.com>
21236 PR rtl-optimization/70174
21237 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
21238 followed by gen_lowpart on force_reg instead of just gen_lowpart.
21240 PR tree-optimization/70169
21241 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
21242 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
21245 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
21246 Jakub Jelinek <jakub@redhat.com>
21249 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
21250 of uninitialized values.
21252 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21254 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
21256 ("*trunctddd2"): New pattern definition.
21257 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
21260 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21262 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
21263 definitions for BFP and DFP rounding modes.
21264 ("fixuns_truncdddi2", "fixuns_trunctddi2")
21265 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
21266 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
21267 ("fix_trunctf<mode>2"): Use the new constants instead of magic
21270 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21272 * config/s390/constraints.md: Adjust comment.
21273 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
21274 s390_decompose_addrstyle_without_index.
21275 * config/s390/predicates.md (shift_count_or_setmem_operand):
21276 Rename to setmem_operand.
21277 * config/s390/s390-protos.h
21278 (s390_decompose_shift_count): Rename to
21279 s390_decompose_addrstyle_without_index.
21280 * config/s390/s390.c (s390_decompose_shift_count)
21281 (s390_mem_constraint, print_shift_count_operand)
21282 (print_operand_address, print_operand): Rename
21283 s390_decompose_shift_count to
21284 s390_decompose_addrstyle_without_index and rename
21285 print_shift_count_operand to print_addrstyle_operand troughout the
21287 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
21288 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
21289 Rename shift_count_or_setmem_operand to setmem_operand.
21290 * config/s390/vx-builtins.md ("vec_insert<mode>")
21291 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
21294 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21297 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21298 Handle overlapping retval and newval.
21300 2016-03-10 Nick Clifton <nickc@redhat.com>
21303 * config/aarch64/aarch64.c
21304 (aarch64_override_options_after_change_1): When forcing
21305 flag_omit_frame_pointer to be true, use a special value that can
21306 be detected if this function is called again, thus preventing
21307 flag_omit_leaf_frame_pointer from being forced to be false.
21309 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21311 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
21312 Set x_flag_omit_leaf_frame_pointer when handling
21313 -momit-leaf-frame-pointer.
21315 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21318 * cgraph.c (cgraph_node::dump): Dump split_part and
21319 indirect_call_target.
21320 * cgraph.h (cgraph_node): Add indirect_call_target flag.
21321 * ipa.c (has_addr_references_p): Cleanup.
21322 (is_indirect_call_target_p): New.
21323 (walk_polymorphic_call_targets): Do not mark virtuals that may be
21324 called indirectly as local.
21325 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
21327 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21330 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21331 on cxa_pure_virtual.
21333 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21336 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
21338 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
21341 * tree.c (need_assembler_name_p): Only record main variant type names.
21343 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21346 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
21347 Always define to 0 or 1.
21348 (TARGET_FIX_ERR_A53_843419): New macro.
21349 * config/aarch64/aarch64-elf-raw.h
21350 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
21351 * config/aarch64/aarch64-linux.h: Likewise.
21352 * config/aarch64/aarch64.c
21353 (aarch64_override_options_after_change_1): Do not default
21354 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
21356 (aarch64_attributes): Handle fix-cortex-a53-843419.
21357 (aarch64_can_inline_p): Likewise.
21358 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
21360 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
21361 Jakub Jelinek <jakub@redhat.com>
21363 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
21364 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
21365 DECL_COMMONS if flag_unconstrained_commons is set.
21366 * tree-dfa.c (get_ref_base_and_extent): Likewise.
21367 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
21368 (funconstrained-commons): Document.
21370 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
21372 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
21373 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
21375 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
21377 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
21378 has a proper number of elements.
21380 2016-03-10 Alan Modra <amodra@gmail.com>
21382 PR rtl-optimization/69195
21383 PR rtl-optimization/47992
21384 * ira.c (recorded_label_ref): Delete.
21385 (update_equiv_regs): Return void.
21386 (indirect_jump_optimize): New function.
21387 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
21388 before regstat_compute_ri. Don't rebuild_jump_labels here.
21389 Delete update_regstat.
21391 2016-03-10 Richard Biener <rguenther@suse.de>
21393 PR tree-optimization/70128
21394 * tree-ssa-structalias.c (set_uids_in_ptset): Set
21395 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
21397 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21399 PR tree-optimization/70152
21400 * tree-sra.c (replace_removed_params_ssa_names): Copy over
21401 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
21404 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
21405 instead of gen_sse2_loadlpd.
21406 * config/i386/sse.md (*vec_concatv2df): Rename to...
21407 (vec_concatv2df): ... this.
21409 PR tree-optimization/70127
21410 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
21412 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21416 * diagnostic-show-locus.c (compatible_locations_p): New function.
21417 (layout::layout): Sanitize ranges using compatible_locations_p.
21419 2016-03-09 David Malcolm <dmalcolm@redhat.com>
21423 * diagnostic-show-locus.c (layout_range::layout_range): Replace
21424 location_range param with three const expanded_locations * and a
21426 (layout::layout): Replace call to
21427 rich_location::lazily_expand_location with get_expanded_location.
21428 Extract the range and perform location expansion here, passing
21429 the results to the layout_range ctor.
21430 * diagnostic.c (source_range::debug): Delete.
21431 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
21432 of rich_location::get_expanded_location.
21433 * gcc-rich-location.c (get_range_for_expr): Delete.
21434 (gcc_rich_location::add_expr): Reimplement to avoid the
21435 rich_location::add_range overload that took a location_range,
21436 passing a location_t instead.
21438 2016-03-09 Richard Biener <rguenther@suse.de>
21439 Jakub Jelinek <jakub@redhat.com>
21441 PR tree-optimization/70138
21442 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21443 Also skip vect_double_reduction_def.
21445 2016-03-09 Jakub Jelinek <jakub@redhat.com>
21448 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
21449 if the operand is "m".
21451 2016-03-09 Nathan Sidwell <nathan@acm.org>
21453 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
21455 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21457 * config/i386/i386.c (processor_target_table): Fix cost table
21458 intialization order for znver1.
21460 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21462 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
21463 - becuase -> because.
21464 * ipa-reference.c (ignore_module_statics): Likewise.
21465 * cgraph.c (cgraph_node::get_body): Likewise.
21466 * ipa-inline.c (early_inliner): Likewise.
21467 * ipa-devirt.c (types_same_for_odr): Likewise.
21468 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
21469 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
21471 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21473 * tree-ssa-math-opts.c: Fix typo in comment.
21475 2016-03-08 Jakub Jelinek <jakub@redhat.com>
21478 * config/i386/i386.c (scalar_chain::make_vector_copies,
21479 scalar_chain::convert_reg): Call end_sequence in between
21480 get_insns and emit_conversion_insns rather than after both
21483 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
21486 * config/i386/i386.h (machine_function): Add
21487 pc_thunk_call_expanded flag.
21488 (ix86_pc_thunk_call_expanded): New define.
21489 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
21490 (*set_got): Rename insn pattern from set_got.
21491 (*set_got_labelled): Rename inst pattern from set_got_labelled.
21492 * config/i386/i386.c (ix86_compute_frame_layout): Use
21493 ix86_pc_thunk_call_expanded to prevent red-zone.
21495 2016-03-07 Martin Jambor <mjambor@suse.cz>
21497 * hsa.h (hsa_get_ctor_statements): Declare.
21498 (hsa_get_dtor_statements): Likewise.
21499 (hsa_get_kernel_dispatch_type): Likewise.
21500 * hsa.c (hsa_get_ctor_statements): New function.
21501 (hsa_get_dtor_statements): Likewise.
21502 (hsa_get_kernel_dispatch_type): Likewise.
21503 * hsa-brig.c (hsa_cdtor_statements): Removed.
21504 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
21505 hsa_get_dtor_statements.
21506 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
21507 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
21509 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
21511 * config/arm/arm-cores.def (cortex-r8): New.
21512 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
21513 * config/arm/arm-tune.md: Likewise.
21514 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
21516 2016-03-07 Martin Sebor <msebor@redhat.com>
21518 PR rtl-optimization/19705
21519 * doc/invoke.texi (Options That Control Optimization): Clarify
21520 -fno-branch-count-reg.
21522 2016-02-26 Richard Biener <rguenther@suse.de>
21523 Jeff Law <law@redhat.com>
21525 PR tree-optimization/69740
21526 * cfghooks.c (remove_edge): Request loop fixups if we delete
21527 an edge that might turn an irreducible loop into a natural
21529 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
21530 Move after definition of loops_state_clear.
21532 2016-03-07 Bin Cheng <bin.cheng@arm.com>
21534 PR rtl-optimization/69052
21535 * rtlanal.c (commutative_operand_precedence): Set higher precedence
21538 2016-03-07 Tom de Vries <tom@codesourcery.com>
21540 PR tree-optimization/70116
21541 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
21542 is_tm_ending stmts and ubsan/asan internal functions.
21543 (find_duplicate): Use it. Don't test is_tm_ending here.
21545 2016-03-07 Richard Biener <rguenther@suse.de>
21547 PR tree-optimization/70115
21548 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
21549 (propagate_constants_for_unrolling): Use replace_uses_by.
21551 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
21553 PR middle-end/69916
21554 * omp-low.c (struct oacc_loop): Add ifns.
21555 (new_oacc_loop_raw): Initialize it.
21556 (finish_oacc_loop): Clear mask & flags if no ifns.
21557 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
21558 (oacc_loop_xform_loop): Add ifns arg & adjust.
21559 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
21561 2016-03-07 Richard Henderson <rth@redhat.com>
21564 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
21565 (insert_value_copy_on_edge): Likewise.
21567 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21569 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
21571 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21574 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
21576 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21578 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
21580 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
21582 Fix sseimul type attribute.
21583 * config/i386/znver1.md
21584 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
21585 znver1_sseimul_avx256_load) : Fix the type attribute.
21586 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
21587 pipe usage and latency.
21589 2016-03-05 Jakub Jelinek <jakub@redhat.com>
21592 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
21593 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
21596 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21599 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
21601 PR rtl-optimization/69941
21602 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
21603 the reg share its mode.
21605 2016-03-04 Jeff Law <law@redhat.com>
21607 PR tree-optimization/69196
21608 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21609 If the both SSA_NAMEs are anonymous, then consider them unassociated
21610 and include the PHI in the statement count.
21612 2016-03-05 Tom de Vries <tom@codesourcery.com>
21614 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
21615 construct in oacc routine. Check for oacc region in oacc routine.
21617 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21620 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
21621 2016-02-22 changes, instead don't recurse if RECUR is already true.
21622 Don't change *dynamic_check if RECUR. Adjust recursive caller
21623 to pass true to the new argument.
21624 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
21627 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21628 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
21630 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
21632 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
21634 PR rtl-optimization/57676
21635 * lra-assigns.c (lra_assign): Guard test for maximum iterations
21636 with flag_checking.
21638 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
21640 * tree-vect-patterns.c (search_type_for_mask): Handle
21641 comparison of booleans.
21643 2016-03-04 Jakub Jelinek <jakub@redhat.com>
21645 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
21649 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
21650 all other ops that have dw_val_class_die_ref operands,
21651 and DW_OP_GNU_entry_value.
21653 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21655 PR rtl-optimization/69904
21656 * config/arm/arm.c (arm_cannot_copy_insn_p):
21657 Return true for load-exclusive instructions.
21659 2016-03-03 Jakub Jelinek <jakub@redhat.com>
21662 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
21663 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
21664 the pattern no matter if it is used just by non-pattern, pattern
21666 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
21667 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21668 oprnd1 def_stmt is in pattern, don't look through it.
21670 2016-03-03 Marek Polacek <polacek@redhat.com>
21672 PR middle-end/70050
21673 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
21675 2016-03-03 Martin Liska <mliska@suse.cz>
21677 PR tree-optimization/70043
21678 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
21679 previous statement if we see a debug statement.
21681 2016-03-03 Richard Biener <rguenther@suse.de>
21683 PR tree-optimization/55936
21684 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
21685 parameter and guard unsafe equivalence use.
21686 (vrp_evaluate_conditional_warnv_with_ops): Always use
21687 safe equivalences but not via the quadratic compare_names
21690 2016-03-03 Michael Collison <michael.collison@linaro.org>
21693 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
21694 for operand 1 to s_register_operand. Change predicate for operand
21695 2 to arm_not_immediate_operand.
21697 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
21699 * doc/tm.texi: Regenerated.
21701 2016-03-02 Richard Henderson <rth@redhat.com>
21704 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
21705 simplification when all args are positive non-fixed registers.
21707 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21709 * target.def (lra_p): Specify that new ports should use LRA.
21711 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21714 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
21715 gimplify_type_sizes the type they refer to.
21716 (omp_notice_variable): Handle reference vars to VLAs.
21717 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
21718 reference to VLA decls in the second pass instead of first pass.
21720 2016-03-02 Tom de Vries <tom@codesourcery.com>
21722 PR tree-optimization/68659
21723 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21724 new_expr == NULL_TREE.
21725 (get_new_name): Handle ADDR_EXPR.
21727 2016-03-02 Bin Cheng <bin.cheng@arm.com>
21729 PR rtl-optimization/69052
21730 * loop-invariant.c (canonicalize_address): New function.
21731 (inv_can_prop_to_addr_use): Check validity of address expression
21732 which is canonicalized by above function.
21734 2016-03-02 Alan Modra <amodra@gmail.com>
21737 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21740 2016-03-02 Jakub Jelinek <jakub@redhat.com>
21743 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21744 (*movhi_internal): Put mask moves from and to memory separately
21745 from moves from/to GPRs.
21747 2016-03-02 Richard Biener <rguenther@suse.de>
21749 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21750 GENERIC expressions in GIMPLE.
21752 2016-03-02 Richard Biener <rguenther@suse.de>
21754 * config/i386/i386.c (type_natural_mode): Fix typo.
21756 2016-03-02 Nick Clifton <nickc@redhat.com>
21758 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21760 2016-03-02 Richard Biener <rguenther@suse.de>
21761 Uros Bizjak <ubizjak@gmail.com>
21764 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21766 2016-03-02 Richard Biener <rguenther@suse.de>
21768 PR middle-end/67278
21769 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21771 2016-03-02 Marek Polacek <polacek@redhat.com>
21774 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21775 "is promoted to" warning.
21777 2016-03-01 DJ Delorie <dj@redhat.com>
21779 * config.gcc: Deprecate mep-*.
21781 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
21783 PR middle-end/70025
21784 * lra-constraints.c (regno_val_use_in): New.
21785 (match_reload): Use it instead of regno_use_in.
21787 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21789 PR rtl-optimization/70007
21790 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21791 references present in REG_EQUAL notes attached to non-SET patterns.
21793 2016-03-01 Jeff Law <law@redhat.com>
21795 PR tree-optimization/69196
21796 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21797 Appropriately clamp the number of statements to copy when the
21798 thread path does not traverse a loop backedge.
21800 PR tree-optimization/69196
21801 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21802 Do count some PHIs in the thread path against the insn count. Decrease
21803 final statement count by one as the control statement in the last
21804 block will get removed. Remove special cased code for handling PHIs
21807 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
21810 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21811 asm dialect alternatives to explicit GOTPCREL calls.
21813 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
21816 * ira.c (do_reload): Issue warning for generic stack checking here...
21817 * reload1.c (reload): ...instead of here and streamline it.
21819 2016-03-01 Nick Clifton <nickc@redhat.com>
21821 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21823 2016-03-01 Richard Biener <rguenther@suse.de>
21825 PR tree-optimization/69983
21826 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21827 types and fall back to operand_equal_p.
21829 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21832 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21834 * config/s390/constraints.md ("jm8"): New constraint.
21835 * config/s390/predicates.md ("const_int_8bitset_operand"): New
21837 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21839 ("*setmem_long<setmem_and>"): New pattern.
21840 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21842 ("*setmem_long_31z<setmem_and>"): New pattern.
21843 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21844 New substitution rules with the required attributes.
21847 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21850 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21852 * gensupport.c (process_substs_on_one_elem): Split loop to
21853 complete mark_operands_used_in_match_dup on all expressions in the
21855 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21856 and remove function.
21858 2016-03-01 Richard Biener <rguenther@suse.de>
21860 PR middle-end/70022
21861 * fold-const.c (fold_indirect_ref_1): Fix range checking for
21862 vector BIT_FIELD_REF extract.
21864 2016-03-01 Richard Biener <rguenther@suse.de>
21866 PR tree-optimization/69994
21867 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21869 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
21871 PR tree-optimization/69956
21872 * tree-vect-stmts.c (supportable_widening_operation): Support
21873 multi-step conversion of boolean vectors.
21874 (supportable_narrowing_operation): Likewise.
21876 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21878 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21881 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21883 * config/s390/subst.md (DSI_VI): New mode iterator.
21884 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21885 * config/s390/vector.md ("vec_set<mode>"): Move expander before
21886 the insn definition.
21887 ("*vec_set<mode>"): Change predicate and add alternative to
21888 support only either register or const_int operands as element
21890 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21892 ("vec_extract<mode>"): New expander.
21893 ("*vec_extract<mode>"): New insn definition supporting reg and
21894 const_int element selectors.
21895 ("*vec_extract<mode>_plus"): New insn definition supporting
21896 reg+const_int element selectors.
21897 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21898 following expander+insn definition.
21899 ("<vec_shifts_name><mode>3"): New expander.
21900 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21902 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21904 * config/s390/s390.md ("*tabort_1"): Change predicate to
21905 nonmemory_operand. Add a second alternative to cover
21906 register as well as const int operands.
21907 ("*tabort_1_plus"): New pattern definition.
21909 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21911 * config/s390/s390.md ("*ashrdi3_cc_31")
21912 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21913 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21914 Merge insn definitions into ...
21915 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21916 New pattern definition.
21917 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21918 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21919 ("*ashr<mode>3_and"): Merge insn definitions into ...
21920 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21921 New pattern definition.
21922 * config/s390/subst.md ("addr_style_op_cc_subst")
21923 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21924 substitutions patterns plus attributes.
21925 Add ashiftrt to SUBST iterator.
21927 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21929 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21930 op2 to nonmemory_operand.
21931 ("*<shift>di3_31", "*<shift>di3_31_and"):
21932 Merge into single pattern definition ...
21933 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21934 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21935 pattern definition ...
21936 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21937 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21940 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21942 * config/s390/predicates.md (const_int_6bitset_operand): New
21944 * config/s390/s390.md: Include subst.md.
21945 ("rotl<mode>3"): New expander.
21946 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
21948 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
21949 * config/s390/subst.md: New file.
21951 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21953 * config/s390/s390.md ("op_type", "atype", "length" attributes):
21954 Remove RRR type. It doesn't really exist.
21955 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
21957 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
21958 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
21959 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21960 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
21961 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
21962 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
21963 `enabled' attribute.
21965 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21967 * gensupport.c (process_substs_on_one_elem): Split loop to
21968 complete mark_operands_used_in_match_dup on all expressions in the
21970 (adjust_operands_numbers): Inline into process_substs_on_one_elem
21971 and remove function.
21973 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
21976 * config/sparc/sparc.c (NWORDS_UP): Rename to...
21977 (CEIL_NWORDS): ...this. Use CEIL macro.
21978 (compute_fp_layout): Adjust to above renaming.
21979 (function_arg_union_value): Likewise.
21980 (sparc_arg_partial_bytes): Likewise.
21981 (sparc_function_arg_advance): Likewise.
21983 2016-02-29 Jeff Law <law@redhat.com>
21985 PR tree-optimization/70005
21986 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
21987 where an object with a boolean range is compared against a value
21990 PR tree-optimization/69999
21991 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
21992 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
21995 2016-02-29 Richard Biener <rguenther@suse.de>
21997 PR tree-optimization/69994
21998 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
21999 (get_unary_op): Look through nop conversions.
22000 (ops_equal_values_p): New function, look for equality diregarding
22002 (eliminate_plus_minus_pair): Use ops_equal_values_p
22003 (repropagate_negates): Do not use get_unary_op here.
22005 2016-02-29 Martin Liska <mliska@suse.cz>
22007 * system.h: Poison ENABLE_CHECKING macro.
22009 2016-02-29 Martin Liska <mliska@suse.cz>
22011 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
22012 is presented in dump flags.
22013 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22014 (hsa_regalloc): Likewise.
22016 2016-02-19 Richard Biener <rguenther@suse.de>
22018 PR tree-optimization/69980
22019 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
22020 permutation of those we need to keep.
22022 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
22025 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
22026 (NWORDS_UP): ...this
22027 (init_cumulative_args): Minor tweaks.
22028 (sparc_promote_function_mode): Likewise.
22029 (scan_record_type): Delete.
22030 (traverse_record_type): New function template.
22031 (classify_data_t): New structure type.
22032 (classify_registers): New inline function.
22033 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
22034 exhausted. Instantiate traverse_record_type on classify_registers and
22035 deal with the case of a structure passed in slot #15 with no FP field
22037 (assign_data_t): New structure type.
22038 (compute_int_layout): New static function.
22039 (compute_fp_layout): Likewise.
22040 (count_registers): New inline function.
22041 (assign_int_registers): New static function.
22042 (assign_fp_registers): Likewise.
22043 (assign_registers): New inline function.
22044 (function_arg_record_value_1): Delete.
22045 (function_arg_record_value_2): Likewise.
22046 (function_arg_record_value_3): Likewise.
22047 (function_arg_record_value): Adjust to above changes. Instantiate
22048 traverse_record_type on count_registers to first count the number of
22049 registers to be used and then on assign_registers to assign them.
22050 (function_arg_union_value): Adjust to above renaming.
22051 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
22052 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
22053 case of a structure passed in slot #15
22054 (sparc_function_arg_advance): Likewise.
22055 (function_arg_padding): Minor tweak.
22057 2016-02-29 Richard Biener <rguenther@suse.de>
22059 PR tree-optimization/69720
22060 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
22061 the adjustment_def path for possibly vectorized defs.
22062 (vect_create_epilog_for_reduction): Handle vectorized initial
22065 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
22067 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
22069 2016-02-27 Jeff Law <law@redhat.com>
22072 2016-02-26 Richard Biener <rguenther@suse.de>
22073 Jeff Law <law@redhat.com>
22075 PR tree-optimization/69740
22076 * cfghooks.c (remove_edge): Request loop fixups if we delete
22077 an edge that might turn an irreducible loop into a natural
22080 2016-02-27 Jakub Jelinek <jakub@redhat.com>
22082 PR rtl-optimization/69896
22083 * tree-vect-generic.c (get_compute_type): Avoid single element
22086 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
22088 Rename the AArch64 tuning option and related functions to enable the
22089 Newton series for the reciprocal square root to reflect its
22090 approximative characteristic.
22092 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
22093 function to "aarch64_emit_approx_rsqrt".
22094 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
22095 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
22096 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
22097 (xgene1_tunings): Likewise.
22098 (use_rsqrt_p): Likewise.
22099 (aarch64_emit_swrsqrt): Use new function name.
22100 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
22101 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
22102 text explaining this option.
22103 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
22105 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22108 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22109 complain about -mallow-movmisalign without -mvsx if
22110 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
22112 2016-02-26 Joel Sherrill <joel@rtems.org>
22114 * config.gcc: Add x86_64-*-rtems*.
22115 * config/i386/rtems-64.h: New file.
22117 2016-02-26 Joel Sherrill <joel@rtems.org>
22119 * config.gcc: Add aarch64-*-rtems*.
22120 * config/aarch64/rtems.h: New file.
22122 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
22125 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
22126 shift amount using %h. Add comment.
22128 2016-02-26 Richard Biener <rguenther@suse.de>
22129 Jeff Law <law@redhat.com>
22131 PR tree-optimization/69740
22132 * cfghooks.c (remove_edge): Request loop fixups if we delete
22133 an edge that might turn an irreducible loop into a natural
22136 2016-02-26 Martin Jambor <mjambor@suse.cz>
22138 PR middle-end/69920
22139 * tree-sra.c (sra_modify_assign): Do not remove loads of
22140 uninitialized aggregates to SSA_NAMEs.
22142 2016-02-26 Richard Henderson <rth@redhat.com>
22145 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
22146 pseudo in case the target rtx matches the source of the left
22149 2016-02-26 Martin Jambor <mjambor@suse.cz>
22152 * hsa.h (hsa_type_packed_p): Declare.
22153 * hsa.c (hsa_type_packed_p): New function.
22154 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
22156 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
22157 * hsa-brig.c (emit_basic_insn): Likewise.
22159 2016-02-26 Martin Jambor <mjambor@suse.cz>
22162 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
22164 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
22166 2016-02-26 Martin Jambor <mjambor@suse.cz>
22168 * hsa.h (is_a_helper): New overload for hsa_op_immed for
22169 hsa_op_with_type operands.
22170 (hsa_unsigned_type_for_type): Declare.
22171 * hsa.c (hsa_unsigned_type_for_type): New function.
22172 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
22173 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
22174 the finalizer. Do not emit extra move.
22176 2016-02-26 Martin Jambor <mjambor@suse.cz>
22178 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
22179 atomic operations in private segment.
22181 2016-02-26 Martin Jambor <mjambor@suse.cz>
22183 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
22184 statements to wi->info. Also disallow omp simd constructs.
22185 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
22186 for not gridifying. Dump special string for omp_for.
22188 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22191 * config/aarch64/aarch64.c (aarch64_set_current_function):
22192 Save/restore target globals when switching to
22193 target_option_default_node.
22195 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22198 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
22199 Return 0 if !SHIFT_COUNT_TRUNCATED.
22201 2016-02-26 Jakub Jelinek <jakub@redhat.com>
22202 Eric Botcazou <ebotcazou@adacore.com>
22204 PR rtl-optimization/69891
22205 * dse.c (scan_insn): If we can't figure out memset arguments
22206 or they are non-constant, call clear_rhs_from_active_local_stores.
22208 2016-02-26 Martin Liska <mliska@suse.cz>
22210 * doc/extend.texi: Mention clog10, clog10f an clog10l
22211 in Builtins section.
22213 2016-02-26 Martin Liska <mliska@suse.cz>
22215 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
22217 (resolve_args_picking_1): Likewise.
22218 * dwarf2out.h (struct GTY): Likewise.
22220 2016-02-26 Martin Liska <mliska@suse.cz>
22222 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
22223 with flag_checking.
22224 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
22226 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22227 Martin Liska <mliska@suse.cz>
22229 * doc/install.texi: Mention --enable-valgrind-annotations.
22231 2016-02-26 Richard Biener <rguenther@suse.de>
22233 PR tree-optimization/69551
22234 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
22235 looking through aliases adjust DECL_PT_UID to refer to the
22236 ultimate alias target.
22238 2016-02-25 Martin Liska <mliska@suse.cz>
22240 PR middle-end/69919
22241 * alloc-pool.c (after_memory_report): New variable.
22242 * alloc-pool.h (base_pool_allocator ::release): Do not use
22243 the infrastructure if after_memory_report.
22244 * toplev.c (toplev::main): Mark after memory report.
22246 2016-02-25 Richard Biener <rguenther@suse.de>
22248 PR tree-optimization/48795
22249 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
22251 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
22254 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
22255 offloading is enabled and -fopenacc or -fopenmp is specified.
22256 (CRTOFFLOADEND): Likewise.
22257 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
22258 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
22259 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
22260 (offload_objects_file_name): New static var.
22261 (tool_cleanup): Remove offload_objects_file_name file.
22262 (find_offloadbeginend): Replace with ...
22263 (find_crtoffloadtable): ... this.
22264 (run_gcc): Remove offload_argc and offload_argv.
22265 Get offload_objects_file_name from -foffload-objects=... option.
22266 Read names of object files with offload from this file, pass them to
22267 compile_images_for_offload_targets. Don't call find_offloadbeginend and
22268 don't pass offloadbegin and offloadend to the linker. Don't pass
22269 offload non-LTO files to the linker, because now they're not claimed.
22271 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
22274 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
22275 on builtin_unreachable.
22277 2016-02-25 Jakub Jelinek <jakub@redhat.com>
22279 PR rtl-optimization/69896
22280 * regcprop.c: Include cfgrtl.h.
22281 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
22282 than remembered mode, either delete it (if noop_move_p), or
22283 treat like copy_p but not noop_p instruction.
22285 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22288 * dwarf2out.c (gen_variable_die): Work around buggy LTO
22289 - allow NULL decl for Fortran DW_TAG_common_block variables.
22291 2016-02-24 Jason Merrill <jason@redhat.com>
22293 * common.opt (flifetime-dse): Add -flifetime-dse=1.
22295 2016-02-24 Richard Biener <rguenther@suse.de>
22296 Jakub Jelinek <jakub@redhat.com>
22298 PR middle-end/69760
22299 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
22300 conditionally executed ops to well-defined overflow behavior.
22302 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22304 PR middle-end/69915
22305 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
22308 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22310 PR rtl-optimization/69886
22311 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
22312 argument. Use it when checking validity of set instructions.
22313 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
22314 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
22316 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
22317 * store-motion.c (find_moveable_store): Update
22318 can_assign_to_reg_without_clobbers_p callsite.
22320 2016-02-24 Richard Biener <rguenther@suse.de>
22322 PR middle-end/68963
22323 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
22325 (record_nonwrapping_iv): Do not fall back to the low/high bound
22326 for non-constant IV bases if the stmt is not always executed.
22328 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22330 * config/arm/arm-cores.def (cortex-a32): New entry.
22331 * config/arm/arm-tables.opt: Regenerate.
22332 * config/arm/arm-tune.md: Regenerate.
22333 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
22334 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
22335 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
22336 for -mcpu and -mtune.
22338 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22341 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
22342 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
22343 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
22344 (atomic_loaddi_1): Delete.
22345 (atomic_loaddi): Rewrite expander using the above changes.
22347 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22350 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
22353 2016-02-24 Jakub Jelinek <jakub@redhat.com>
22354 Richard Biener <rguenth@suse.de>
22356 PR middle-end/69909
22357 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
22358 set_mem_attributes if tem is SSA_NAME which got expanded
22361 2016-02-24 Richard Biener <rguenther@suse.de>
22363 PR tree-optimization/69907
22364 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
22365 end of permutations for BB vectorization.
22367 2016-02-24 Christian Bruel <christian.bruel@st.com>
22369 * config/arm/arm-c.c (arm_option_override): Initialize
22370 target_option_current_node.
22371 * config/arm/arm.c (arm_pragma_target_parse): Replace
22372 build_target_option_node call by target_option_current_node.
22373 Set target_option_current_node.
22376 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
22379 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
22380 define_insn_and_split to define_insn.
22381 (zero_extendqi<mode>2_dot2): Same.
22382 (extendqi<mode>2_dot): Same.
22383 (extendqi<mode>2_dot2): Same.
22385 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22387 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
22388 and add bypass for AES{D,E} and AESMC pairs.
22389 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
22392 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
22394 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
22395 series for reciprocal square root in Exynos M1.
22397 2016-02-23 Martin Sebor <msebor@redhat.com>
22400 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
22401 __builtin_alloca_with_align.
22403 2016-02-23 Richard Henderson <rth@redhat.com>
22405 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
22406 (ix86_register_pragmas): Remove __seg_tls.
22407 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
22408 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
22409 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
22410 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
22411 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
22412 * doc/extend.texi (__seg_tls): Remove item.
22414 2016-02-23 Richard Biener <rguenther@suse.de>
22416 * alloc-pool.h (struct allocation_object): Make id member
22417 conditional on CHECKING_P again.
22418 (get_instance): Adjust.
22419 (base_pool_allocator): Likewise.
22421 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
22423 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
22424 (parallelize_loops): In OpenACC kernels mode, set n_threads to
22426 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
22428 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
22430 2016-02-23 Richard Biener <rguenther@suse.de>
22432 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
22433 * bitmap.h (struct bitmap_usage): Likewise.
22434 (bitmap_move): Declare.
22435 * bitmap.c (register_overhead): Take size_t argument.
22436 (bitmap_move): New function.
22437 * df-problems.c (df_rd_transfer_function): Use bitmap_move
22438 to properly account overhead.
22439 * tree.c (free_node): Use tree_size.
22441 2016-02-23 Jakub Jelinek <jakub@redhat.com>
22444 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
22445 when inverting comparison.
22448 * common.opt (Wunreachable-code): Add Warning flag.
22450 2016-02-23 Mark Wielaard <mjw@redhat.com>
22451 Jakub Jelinek <jakub@redhat.com>
22454 * cgraphunit.c (check_global_declaration): Check main_input_filename
22455 and DECL_SOURCE_FILE are not NULL.
22457 2016-02-23 Martin Jambor <mjambor@suse.cz>
22459 PR tree-optimization/69666
22460 * tree-sra.c (sra_modify_assign): Do not attempt to create
22461 default_def replacements for unscalarizable regions.
22463 2016-02-20 Mark Wielaard <mjw@redhat.com>
22466 * cgraphunit.c (check_global_declaration): Check level of
22467 warn_unused_const_variable and main_input_filename.
22468 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
22469 (-Wunused-variable): For C implies -Wunused-const-variable=1.
22470 (-Wunused-const-variable): Explain levels 1 and 2.
22472 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22475 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
22476 identical arguments. Formatting and spelling fixes.
22479 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
22484 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
22485 and m68k-devices.def.
22486 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
22487 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
22489 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
22491 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
22492 and HImode registers.
22494 2016-02-22 Richard Biener <rguenther@suse.de>
22496 PR tree-optimization/69882
22497 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
22498 preserve permutations present because of gaps.
22499 (vect_supported_load_permutation_p): Always continue checking
22500 permutations after vect_attempt_slp_rearrange_stmts.
22502 2016-02-22 Bin Cheng <bin.cheng@arm.com>
22504 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
22505 min_profitable_estimate, rather than min_profitable_iters.
22507 2016-02-22 Jakub Jelinek <jakub@redhat.com>
22510 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
22511 SImode for last match_operand.
22513 2016-02-22 Martin Liska <mliska@suse.cz>
22515 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
22516 return bitsize - 1 as the return value.
22518 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
22522 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
22523 Handle negative shift counts.
22524 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
22525 force_reg on the shift constant.
22526 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
22527 (lshrsi3_d): Handle negative shift counts.
22529 2016-02-22 Richard Biener <rguenther@suse.de>
22530 Tom de Vries <tom@codesourcery.com>
22532 * graph.c: Include dumpfile.h.
22533 (print_graph_cfg): Split into three overloads.
22534 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
22536 2016-02-22 Tom de Vries <tom@codesourcery.com>
22538 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
22541 2016-02-22 Richard Biener <rguenther@suse.de>
22544 * ipa-inline-transform.c (inline_call): When not updating
22545 overall summaries adjust self size by the growth estimate.
22546 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
22547 hash-set, do not update overall summaries here. Renamed from ...
22548 (inline_to_all_callers): ... this which is now wrapping the
22549 above and performing delayed overall summary update.
22550 (early_inline_small_functions): Delay updating of the overall
22553 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
22555 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
22558 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22561 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
22562 :%* in %:gt() argument.
22563 (greater_than_spec_func): Adjust for expecting only numbers,
22564 if there are more than two numbers, compare the last two.
22566 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
22568 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
22569 -Wnarrowing with -std.
22571 2016-02-19 Jakub Jelinek <jakub@redhat.com>
22574 * expr.c (store_field): Don't use bit-field path if exp is
22575 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
22576 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
22577 and the assignment can be performed by bitwise copy. Formatting
22580 PR middle-end/69838
22581 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
22582 call copy_reg_eh_region_note_forward on before and/or after sequences
22583 and remove note from insn if it no longer can throw.
22586 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
22587 if TARGET_AVX512BW.
22589 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22591 * config/s390/vector.md: Add missing commutative operand markers
22592 to the patterns which qualify for one.
22593 * config/s390/vx-builtins.md: Likewise.
22595 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22597 * config/s390/vector.md (VI, VI_QHS): Add single element vector
22598 types to mode iterators.
22599 (vec_double): ... and mode attribute.
22600 * config/s390/vx-builtins.md (non_vec_int): Likewise.
22602 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22604 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
22605 Change the predicate of op2 from nonimmediate to general and let
22606 reload fix it if necessary.
22608 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22610 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
22612 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22614 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
22617 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22619 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
22620 * config/s390/s390.c (s390_expand_vec_movstr): New function.
22621 * config/s390/s390.md ("movstr<P:mode>"): Call
22622 s390_expand_vec_movstr.
22624 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22626 * config/s390/s390.md: Add missing output modifier for operand 1
22627 to print it as address properly.
22629 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22631 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
22632 * config/s390/2964.md: New file.
22633 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
22634 of insn grouping attributes depending on the CPU level.
22635 (s390_get_unit_mask): New function.
22636 (s390_sched_score): Remove the OOO from the scheduling macros.
22637 Add loop to calculate a score for the instruction mix.
22638 (s390_sched_reorder): Likewise plus improve debug output.
22639 (s390_sched_variable_issue): Rename macros as above. Calculate
22640 the unit distances after actually scheduling an insn. Improve
22642 (s390_sched_init): Clear last_scheduled_unit_distance array.
22643 * config/s390/s390.md: Include 2964.md.
22645 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22648 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
22649 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
22650 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
22651 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
22652 *avx512f_<code>v8div16qi2_mask_1): New insns.
22654 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22657 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
22660 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
22661 earlyclobber from target. Use wF constraint for fused memory
22663 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
22665 2016-02-18 Jakub Jelinek <jakub@redhat.com>
22666 Martin Liska <mliska@suse.cz>
22669 * cfgexpand.c (asan_sanitize_stack_p): New function.
22670 (partition_stack_vars): Use the function.
22671 (expand_stack_vars): Likewise.
22672 (defer_stack_allocation): Likewise.
22673 (expand_used_vars): Likewise.
22675 2016-02-18 Richard Biener <rguenther@suse.de>
22677 PR middle-end/69553
22678 * fold-const.c (operand_equal_p): Properly compare offsets for
22679 IMAGPART_EXPR and ARRAY_REF.
22681 2016-02-18 Nick Clifton <nickc@redhat.com>
22685 * config/arm/arm.c (arm_option_override_internal): Disable
22686 interworking if the target does not support thumb instructions.
22687 (arm_reload_in_hi): Handle the case where a register to register
22688 move needs reloading because there is no simple pattern to handle
22690 (arm_reload_out_hi): Likewise.
22692 2016-02-18 Richard Biener <rguenther@suse.de>
22694 PR middle-end/69854
22695 * match.pd: Don't use fold_binary or fold_unary for folding
22698 2016-02-17 Jakub Jelinek <jakub@redhat.com>
22701 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
22702 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
22703 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
22704 warn on gimple_no_warning_p statements.
22706 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
22708 * doc/extend.texi (C++ Attributes): Correct description of
22709 warn_unused type attribute.
22711 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22713 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
22714 correct instruction.
22716 2016-02-17 Richard Biener <rguenther@suse.de>
22718 PR rtl-optimization/69609
22719 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22720 (find_traces_1_round): When ending a trace update cached priority
22722 (bb_to_key): Use cached priority when available.
22723 (copy_bb): Initialize cached priority.
22724 (reorder_basic_blocks_software_trace_cache): Likewise.
22726 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22729 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22731 (aarch64_comparison_operator): Break overly long line into two.
22732 (aarch64_comparison_operation): Likewise.
22733 * config/aarch64/aarch64.md (cstorecc4): Use
22734 aarch64_comparison_operator_mode instead of
22735 aarch64_comparison_operator.
22736 (cstore<mode>4): Likewise.
22737 (aarch64_cstore<mode>): Likewise.
22738 (*cstoresi_insn_uxtw): Likewise.
22739 (cstore<mode>_neg): Likewise.
22740 (*cstoresi_neg_uxtw): Likewise.
22742 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22745 * config/arm/predicates.md (arm_comparison_operator_mode):
22747 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22748 instead of arm_comparison_operator.
22749 (*mov_negscc): Likewise.
22750 (*mov_notscc): Likewise.
22751 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22752 (*thumb2_mov_negscc): Likewise.
22753 (*thumb2_mov_negscc_strict_it): Likewise.
22754 (*thumb2_mov_notscc): Likewise.
22755 (*thumb2_mov_notscc_strict_it): Likewise.
22757 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
22759 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22760 Add missing return.
22762 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
22764 * config/visium/visium.c (machine_libfunc_index): New enum.
22765 (machine_libfuncs): New structure.
22766 (visium_libfuncs): New static variable.
22767 (TARGET_INIT_LIBFUNCS): Define to...
22768 (visium_init_libfuncs): ...this. New function.
22769 (expand_block_move_4): Use the appropriate libfunc.
22770 (expand_block_move_2): Likewise.
22771 (expand_block_move_1): Likewise.
22772 (expand_block_set_4): Likewise.
22773 (expand_block_set_2): Likewise.
22774 (expand_block_set_1): Likewise.
22775 (visium_trampoline_init): Likewise.
22777 2016-02-17 Nick Clifton <nickc@redhat.com>
22779 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22780 TI's devices.csv file as of March 2016.
22782 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
22785 * opts-global.c (handle_common_deferred_options): Introduce and
22786 initialize two global variables to remember command-line options
22787 specifying a stack-limiting register.
22788 * opts.h: Add extern declarations of the two new global variables.
22789 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22790 variable based on the values of the two new global variables.
22792 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22795 * common.opt (Wnonnull-compare): New warning.
22796 * doc/invoke.texi (-Wnonnull): Remove text about comparison
22797 of arguments against NULL.
22798 (-Wnonnull-compare): Document.
22799 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22800 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22801 * passes.def (pass_warn_nonnull_compare): Add.
22802 * gimple-ssa-nonnull-compare.c: New file.
22804 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22806 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22807 AARCH64_EXTRA_TUNE_RECIP_SQRT.
22809 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22811 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22812 reciprocal sqrt for -mlow-precision-recip-sqrt.
22814 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22815 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22817 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22818 always use lane loads to construct non-constant vectors.
22820 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
22822 * config/aarch64/aarch64.md
22823 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22824 constraints for operand 3.
22825 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22827 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22828 Richard Biener <rguenther@suse.de>
22830 PR tree-optimization/69820
22831 * tree-vect-patterns.c (type_conversion_p): Return false if
22832 *orig_type is unsigned single precision or boolean.
22833 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22836 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22838 PR rtl-optimization/69764
22839 PR rtl-optimization/69771
22840 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22841 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22843 2016-02-16 Richard Biener <rguenther@suse.de>
22845 PR tree-optimization/69776
22846 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22848 (indirect_refs_may_alias_p): Likewise.
22849 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22850 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22851 according to tbaa_p.
22852 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22853 (optimize_stmt): For redundant store discovery do not allow tbaa.
22855 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
22857 PR tree-optimization/69714
22858 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22859 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22861 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
22863 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22864 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22865 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22866 * config/arc/arc.c (arc_init): Check FPU options.
22867 (get_arc_condition_code): Handle new CC_FPU* modes.
22868 (arc_select_cc_mode): Likewise.
22869 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22870 register pair only. Allow access for ARCv2 accumulator.
22871 (gen_compare_reg): Whenever we have FPU support use FPU compare
22873 (arc_reorg): Don't generate brcc insns when FPU compare
22874 instructions are involved.
22875 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22876 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22877 floating point emulation.
22878 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22879 (REVERSE_CONDITION): Add new CC_FPU* modes.
22880 (TARGET_FP_SP_BASE): Define.
22881 (TARGET_FP_DP_BASE): Likewise.
22882 (TARGET_FP_SP_FUSED): Likewise.
22883 (TARGET_FP_DP_FUSED): Likewise.
22884 (TARGET_FP_SP_CONV): Likewise.
22885 (TARGET_FP_DP_CONV): Likewise.
22886 (TARGET_FP_SP_SQRT): Likewise.
22887 (TARGET_FP_DP_SQRT): Likewise.
22888 (TARGET_FP_DP_AX): Likewise.
22889 * config/arc/arc.md (ARCV2_ACC): New constant.
22890 (type): New fpu type attribute.
22891 (SDF): Conditional iterator.
22892 (cstore<mode>, cbranch<mode>): Change expand condition.
22893 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22894 handles FPU/FPX cases as well.
22895 * config/arc/arc.opt (mfpu): New option.
22896 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22898 (adddf3, muldf3, subdf3): Removed.
22899 * config/arc/predicates.md (proper_comparison_operator): Recognize
22901 * config/arc/fpu.md: New file.
22902 * doc/invoke.texi (ARC Options): Document mfpu option.
22904 2016-02-16 Richard Biener <rguenther@suse.de>
22906 PR rtl-optimization/69291
22907 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22908 noce_operand_ok check.
22910 2016-02-16 Tom de Vries <tom@codesourcery.com>
22913 * omp-low.c (simd_clone_create): Remove call to
22914 symtab->call_cgraph_insertion_hooks.
22916 2016-02-16 Jakub Jelinek <jakub@redhat.com>
22918 PR tree-optimization/69802
22919 * tree-ssa-reassoc.c (update_range_test): If op is
22920 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22921 op == 1 test of precision 1 integral op, otherwise handle
22922 that case as op itself. Fix up formatting.
22923 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22926 2016-02-16 Richard Biener <rguenther@suse.de>
22928 PR tree-optimization/69586
22929 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22930 types for conversion sources.
22932 2016-02-16 Richard Biener <rguenther@suse.de>
22934 PR middle-end/69801
22935 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22936 mask OEP_ADDRESS_OF.
22938 2016-02-16 Alan Modra <amodra@gmail.com>
22941 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22942 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22943 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
22945 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
22946 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
22947 (p8_fmrgow_<mode>): Likewise.
22948 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
22950 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
22951 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
22952 to use movdi_internal64. Remove op0_di.
22953 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
22955 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
22957 Add support for the FCCMP insn types
22959 * config/aarch64/aarch64.md (fccmp): Change insn type.
22960 (fccmpe): Likewise.
22961 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
22962 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
22963 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
22964 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
22965 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
22966 * config/arm/types.md (fccmps): Add new insn type.
22967 (fccmpd): Likewise.
22969 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
22971 * alias.c (get_alias_set): Fix a typo in comment.
22973 2016-02-15 Richard Biener <rguenther@suse.de>
22975 PR tree-optimization/69595
22976 * match.pd: Complete range test simplification to true.
22978 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
22980 PR rtl-optimization/69648
22981 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
22982 pic_offset_table_rtx.
22984 PR rtl-optimization/69752
22985 * ira.c (update_equiv_regs): When looking for more than a single SET,
22986 also take other side effects into account.
22988 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22990 * config/s390/s390.c (s390_function_profiler): Add a new sequence
22991 for z900+ CPUs in 31-bit mode.
22993 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
22995 * common/config/s390/s390-common.c (s390_supports_split_stack):
22997 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
22998 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
22999 * config/s390/s390.c (struct machine_function): New field
23000 split_stack_varargs_pointer.
23001 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
23002 in s390_emit_prologue.
23003 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
23005 (morestack_ref): New global.
23006 (SPLIT_STACK_AVAILABLE): New macro.
23007 (s390_expand_split_stack_prologue): New function.
23008 (s390_live_on_entry): New function.
23009 (s390_va_start): Use split-stack vararg pointer if appropriate.
23010 (s390_asm_file_end): Emit the split-stack note sections.
23011 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
23012 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
23013 (UNSPECV_SPLIT_STACK_CALL): New unspec.
23014 (UNSPECV_SPLIT_STACK_DATA): New unspec.
23015 (split_stack_prologue): New expand.
23016 (split_stack_space_check): New expand.
23017 (split_stack_data): New insn.
23018 (split_stack_call): New expand.
23019 (split_stack_call_*): New insn.
23020 (split_stack_cond_call): New expand.
23021 (split_stack_cond_call_*): New insn.
23023 2016-02-15 Richard Biener <rguenther@suse.de>
23025 PR tree-optimization/69783
23026 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23027 Add trivially correct cases.
23029 2016-02-15 Tom de Vries <tom@codesourcery.com>
23032 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
23034 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
23036 2016-02-15 Richard Biener <rguenther@suse.de>
23038 PR tree-optimization/69776
23039 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
23040 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
23041 indicate whether we can use TBAA to disambiguate against stores.
23042 Use alias-set zero if not.
23043 (visit_reference_op_store): Do not use TBAA when looking up
23045 * tree-ssa-pre.c (compute_avail): Use TBAA here.
23046 (eliminate_dom_walker::before_dom_children): But not when looking
23047 up redundant stores.
23049 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
23051 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
23053 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23055 * config/i386/znver1.md
23056 (znver1_pop, znver1_pop_mem,
23057 znver1_load_imov_double_store,
23058 znver1_load_imov_direct_store,
23059 znver1_load_imov_direct_load,
23060 znver1_load_imov_double_load): Add new.
23061 (znver1_insn, znver1_insn_load): Add icmov type.
23062 (znver1_sseavx_fma,
23063 znver1_sseavx_fma_load,
23065 znver1_avx256_fma_load): Fix pipe usage.
23067 2016-02-14 Alan Modra <amodra@gmail.com>
23070 * reload.c (find_reloads_address_1): For pre/post-inc/dec
23071 with an invalid hard reg, reload just the reg not the entire
23072 pre/post-inc/dec address expression.
23074 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23077 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
23078 fixed R1_REG scratch reg.
23079 (sibcall_value_pcrel_fdpic): Likewise.
23081 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
23085 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
23087 2016-02-12 Walter Lee <walt@tilera.com>
23089 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
23090 * config/tilegx/t-tilegx: Likewise.
23092 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23095 * diagnostic-show-locus.c (struct line_span): New struct.
23096 (layout::get_first_line): Delete.
23097 (layout::get_last_line): Delete.
23098 (layout::get_num_line_spans): New member function.
23099 (layout::get_line_span): Likewise.
23100 (layout::print_heading_for_line_span_index_p): Likewise.
23101 (layout::get_expanded_location): Likewise.
23102 (layout::calculate_line_spans): Likewise.
23103 (layout::m_first_line): Delete.
23104 (layout::m_last_line): Delete.
23105 (layout::m_line_spans): New field.
23106 (layout::layout): Update comment. Replace m_first_line and
23107 m_last_line with m_line_spans, replacing their initialization
23108 with a call to calculate_line_spans.
23109 (diagnostic_show_locus): When printing source lines and
23110 annotations, rather than looping over a single span
23111 of lines, instead loop over each line_span within
23112 the layout, with an inner loop over the lines within them.
23113 Call the context's start_span callback when changing line spans.
23114 * diagnostic.c (diagnostic_initialize): Initialize start_span.
23115 (diagnostic_build_prefix): Break out the building of the location
23116 part of the string into...
23117 (diagnostic_get_location_text): ...this new function, rewriting
23118 it from nested ternary expressions to a sequence of "if"
23120 (default_diagnostic_start_span_fn): New function.
23121 * diagnostic.h (diagnostic_start_span_fn): New typedef.
23122 (diagnostic_context::start_span): New field.
23123 (default_diagnostic_start_span_fn): New prototype.
23125 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23128 * gcc.c (driver::finalize): Fix cleanup of "specs".
23130 2016-02-12 David Malcolm <dmalcolm@redhat.com>
23134 * gcc.c (driver::driver): Initialize m_option_suggestions.
23135 (driver::~driver): Clean up m_option_suggestions.
23136 (suggest_option): Convert to...
23137 (driver::suggest_option): ...this, and split out into
23138 driver::build_option_suggestions and find_closest_string.
23139 (driver::build_option_suggestions): New function, from
23140 first half of suggest_option. Special-case
23141 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
23142 the sanitizer_opts array. For options of enum types, add the
23143 various enum values to the candidate strings.
23144 (driver::handle_unrecognized_options): Remove "const".
23145 * gcc.h (driver::handle_unrecognized_options): Likewise.
23146 (driver::build_option_suggestions): New decl.
23147 (driver::suggest_option): New decl.
23148 (driver::m_option_suggestions): New field.
23149 * opts-common.c (add_misspelling_candidates): New function.
23150 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
23151 and make non-static.
23152 * opts.h (sanitizer_opts): New array decl.
23153 (add_misspelling_candidates): New function decl.
23154 * spellcheck.c (find_closest_string): New function.
23155 * spellcheck.h (find_closest_string): New function decl.
23157 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23159 PR rtl-optimization/69764
23160 PR rtl-optimization/69771
23161 * optabs.c (expand_binop_directly): For shift_optab_p, force
23162 convert_modes with VOIDmode if xop1 has VOIDmode.
23164 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
23167 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
23168 to correctly determine instrumentation thunks.
23170 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23173 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
23174 type by reference, force lhs on the call.
23177 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
23178 Compute retval and retbnd early in all cases if split_part_return_p
23179 and return_bb is not EXIT. Remove all clobber stmts and reset
23180 all debug stmts that refer to SSA_NAMEs defined in split part,
23181 except if it is retval, in that case replace the old retval with the
23182 lhs of the call to the split part.
23184 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23187 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23189 PR middle-end/66726
23190 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23191 whose result is used in PHI.
23192 (maybe_optimize_range_tests): Likewise.
23193 (final_range_test_p): Likweise.
23195 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23197 PR middle-end/66726
23198 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
23199 whose result is used in PHI.
23200 (maybe_optimize_range_tests): Likewise.
23201 (final_range_test_p): Likweise.
23203 2016-02-12 Jakub Jelinek <jakub@redhat.com>
23205 * cgraph.c: Spelling fixes - behaviour -> behavior and
23206 neighbour -> neighbor.
23207 * target.def: Likewise.
23208 * sel-sched.c: Likewise.
23209 * config/mips/mips.c: Likewise.
23210 * config/arc/arc.md: Likewise.
23211 * config/arm/cortex-a57.md: Likewise.
23212 * config/arm/arm.c: Likewise.
23213 * config/arm/neon.md: Likewise.
23214 * config/arm/arm-c.c: Likewise.
23215 * config/vms/vms-c.c: Likewise.
23216 * config/s390/s390.c: Likewise.
23217 * config/i386/znver1.md: Likewise.
23218 * config/i386/i386.c: Likewise.
23219 * config/ia64/hpux-unix2003.h: Likewise.
23220 * config/msp430/msp430.md: Likewise.
23221 * config/rx/rx.c: Likewise.
23222 * config/rx/rx.md: Likewise.
23223 * config/aarch64/aarch64-simd.md: Likewise.
23224 * config/aarch64/aarch64.c: Likewise.
23225 * config/nvptx/nvptx.c: Likewise.
23226 * config/bfin/bfin.c: Likewise.
23227 * config/cris/cris.opt: Likewise.
23228 * config/rs6000/rs6000.c: Likewise.
23229 * target.h: Likewise.
23230 * spellcheck.c: Likewise.
23231 * ira-build.c: Likewise.
23232 * tree-inline.c: Likewise.
23233 * builtins.c: Likewise.
23234 * lra-constraints.c: Likewise.
23235 * explow.c: Likewise.
23236 * hwint.h: Likewise.
23237 * targhooks.c: Likewise.
23238 * tree-vect-data-refs.c: Likewise.
23239 * expr.c: Likewise.
23240 * doc/tm.texi: Likewise.
23241 * doc/extend.texi: Likewise.
23242 * doc/install.texi: Likewise.
23243 * doc/md.texi: Likewise.
23244 * tree-ssa-tail-merge.c: Likewise.
23245 * sched-int.h: Likewise.
23246 * match.pd: Likewise.
23247 * sched-ebb.c: Likewise.
23248 * target.def (omit_struct_return_reg): Likewise.
23249 * gimple-ssa-isolate-paths.c: Likewise.
23250 (find_implicit_erroneous_behaviour): Renamed to...
23251 (find_implicit_erroneous_behavior): ... this.
23252 (find_explicit_erroneous_behaviour): Renamed to...
23253 (find_explicit_erroneous_behavior): ... this.
23254 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
23256 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
23258 PR rtl-optimization/64682
23259 PR rtl-optimization/69567
23260 PR rtl-optimization/69737
23261 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
23262 in I2 as well, just lose it.
23264 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23266 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
23268 (aarch64_last_printed_tune_string): Likewise.
23269 (aarch64_declare_function_name): Only output .arch assembler
23270 directive if it will be different from the previously output
23271 directive. Same for .tune comment but only if -dA is set.
23272 (aarch64_start_file): New function.
23273 (TARGET_ASM_FILE_START): Define.
23275 2016-02-11 David Malcolm <dmalcolm@redhat.com>
23278 * Makefile.in (PLUGIN_HEADERS): Add params.list.
23280 2016-02-11 Jakub Jelinek <jakub@redhat.com>
23283 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
23284 -Wmaybe-uninitialized warning.
23286 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
23289 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
23291 2016-02-11 Richard Biener <rguenther@suse.de>
23293 PR rtl-optimization/69291
23294 * ifcvt.c (noce_try_store_flag_constants): Do not allow
23295 subexpressions affected by changing the result.
23297 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
23300 * lra-constraints.c (curr_insn_transform): Find in/out operands
23301 for secondary memory moves. Update dups.
23303 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
23305 PR tree-optimization/69652
23306 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
23307 to nested loop, did source re-formatting, skip debug statements,
23308 add check on statement with volatile operand, remove dead scalar
23311 2016-02-10 Jakub Jelinek <jakub@redhat.com>
23312 Patrick Palka <ppalka@gcc.gnu.org>
23316 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
23317 calls if the return type is TREE_ADDRESSABLE.
23318 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
23319 * ipa-split.c (split_function): Fix doubled "we" in comment.
23320 Use void return type for the split part even if
23321 !split_point->split_part_set_retval.
23323 2016-02-10 Bin Cheng <bin.cheng@arm.com>
23325 PR tree-optimization/68021
23326 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
23327 when computing the value of biv cand by itself.
23329 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23331 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
23332 (cortexa57_tunings): Likewise.
23333 (cortexa72_tunings): Likewise.
23334 (arch_macro_fusion_pair_p): Add support for AES fusion.
23335 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
23336 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
23337 Allow virtual registers before reload so early scheduling works.
23338 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
23339 correct latency and pipeline.
23340 (cortex_a57_crypto_complex): Likewise.
23341 (cortex_a57_crypto_xor): Likewise.
23342 (define_bypass): Add AES bypass.
23344 2016-02-10 Richard Biener <rguenther@suse.de>
23346 PR tree-optimization/69726
23347 * passes.def: Add DCE pass before late uninit.
23348 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
23349 really fixup if-conversions job.
23351 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
23353 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
23354 (arm_cortex_a57_tune): Likewise.
23355 (aarch_macro_fusion_pair_p): Add support for AES fusion.
23356 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
23358 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
23360 * timevar.def (TV_PHASE_DBGINFO): Delete.
23361 (TV_PHASE_CHECK_DBGINFO): Likewise.
23362 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
23364 2016-02-10 Richard Biener <rguenther@suse.de>
23366 PR tree-optimization/69719
23367 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23368 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
23370 2016-02-09 Andrew Pinski <apinski@cavium.com>
23373 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
23374 get_vcond_mask_icode returns false.
23376 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23379 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
23380 an ADDIS that adds a pointer to a large constant that sets the
23381 upper16 bits with a load operation.
23383 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23386 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
23388 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
23390 (vzipq_s16): Likewise.
23391 (vzipq_s32): Likewise.
23392 (vzipq_f32): Likewise.
23393 (vzipq_u8): Likewise.
23394 (vzipq_u16): Likewise.
23395 (vzipq_u32): Likewise.
23396 (vzipq_p8): Likewise.
23397 (vzipq_p16): Likewise.
23399 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
23402 * config/arm/arm.c (neon_endian_lane_map): New function.
23403 (neon_vector_pair_endian_lane_map): New function.
23404 (arm_evpc_neon_vuzp): Allow for big endian lane order.
23405 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
23407 (vuzpq_s16): Likewise.
23408 (vuzpq_s32): Likewise.
23409 (vuzpq_f32): Likewise.
23410 (vuzpq_u8): Likewise.
23411 (vuzpq_u16): Likewise.
23412 (vuzpq_u32): Likewise.
23413 (vuzpq_p8): Likewise.
23414 (vuzpq_p16): Likewise.
23416 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
23419 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
23422 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
23424 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
23425 truncate const_int operand 1 to QImode.
23427 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
23429 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
23430 corresponding to an abnormal edge.
23432 2016-02-09 Tom de Vries <tom@codesourcery.com>
23434 PR tree-optimization/69599
23435 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
23437 (find_func_aliases_for_builtin_call, find_func_clobbers)
23438 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
23441 2016-02-09 Richard Biener <rguenther@suse.de>
23443 PR tree-optimization/69715
23444 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
23445 LHS on calls as non-rewritable.
23447 2016-02-09 Tom de Vries <tom@codesourcery.com>
23450 * lto-wrapper.c (append_diag_options): New function.
23451 (compile_offload_image): Call append_diag_options.
23453 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
23456 * doc/extend.texi (Flag Output Operands): Correct sectioning.
23457 Minor copy-edit to fix verb tenses.
23459 2016-02-08 Jakub Jelinek <jakub@redhat.com>
23461 PR tree-optimization/69209
23462 * ipa-split.c (split_function): If split part is not
23463 returning retval, retval has gimple type but is not
23464 gimple value, force it into a SSA_NAME first.
23466 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
23468 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
23471 2016-02-08 Jason Merrill <jason@redhat.com>
23474 * convert.c (convert_to_integer_1): Check dofold on truncation
23476 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
23477 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
23478 Rename from *_nofold.
23479 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
23480 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
23482 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
23485 * tree.c (build_common_tree_nodes): Remove short_double argument.
23486 All callers changed.
23487 * tree.h (build_common_tree_nodes): Adjust declaration.
23488 * doc/invoke.texi (-fshort-double): Remove documentation.
23489 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23490 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
23491 * lto-wrapper.c (merge_and_complain, append_compiler_options)
23492 (append_linker_options): Don't handle OPT_fshort_double.
23494 PR rtl-optimization/68730
23495 * lra-remat.c (insn_to_cand_activation): New static variable.
23496 (lra_remat): Allocate and free it.
23497 (create_cand): New arg activation. Initialize a field in
23498 insn_to_cand_activation if it is nonnull.
23499 (create_cands): Pass the activation insn to create_cand when making
23500 a candidate involving an output reload. Reorganize code a little.
23501 (do_remat): Keep track of active status of candidates in a separate
23504 2016-02-08 Richard Biener <rguenther@suse.de>
23506 PR tree-optimization/69719
23507 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23508 Properly use absolute of the difference of the two offsets to
23509 compare or adjust the segment length.
23511 2016-02-08 Richard Biener <rguenther@suse.de>
23512 Jeff Law <law@redhat.com>
23515 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
23516 types for anonymous SSA names.
23518 2016-02-08 Richard Biener <rguenther@suse.de>
23520 PR rtl-optimization/69274
23521 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
23523 2016-02-08 Jeff Law <law@redhat.com>
23525 PR tree-optimization/65917
23526 * tree-ssa-dom.c (record_temporary_equivalences): Record both
23527 equivalences from if (x == y) style conditionals.
23528 (loop_depth_of_name): Remove.
23529 (record_equality): Remove loop depth check.
23530 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
23531 (const_and_copies::record_const_or_copy_raw): New member function.
23532 * tree-ssa-scopedtables.c
23533 (const_and_copies::record_const_or_copy_raw): New, factored out of
23534 (const_and_copies::record_const_or_copy): Call new member function.
23536 2016-02-05 Jeff Law <law@redhat.com>
23538 PR tree-optimization/68541
23539 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
23540 (count_stmts_in_block): New function.
23541 (poor_ifcvt_candidate_code): Likewise.
23542 (is_feasible_trace): Add some heuristics to determine when path
23543 splitting is profitable.
23544 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
23545 is a diamond with a single exit.
23547 2016-02-05 Martin Sebor <msebor@redhat.com>
23550 * doc/invoke.texi: Update -Wplacement-new to take an optional
23553 2016-02-06 Richard Henderson <rth@redhat.com>
23556 * tree.c (tree_nop_conversion_p): Do not strip casts into or
23557 out of non-standard address spaces.
23559 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23561 PR rtl-optimization/69691
23562 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
23564 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
23566 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
23567 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
23568 (*ieee128_mfvsrd_64bit): Likewise.
23569 (*ieee128_mfvsrd_32bit): Likewise.
23571 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
23575 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
23577 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23578 instrumented_version.
23580 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
23582 * doc/invoke.texi (Optimize Options): In table of --param options
23583 rename second occurrence of tracer-min-branch-ratio to
23584 tracer-min-branch-probability, rename
23585 tracer-min-branch-ratio-feedback to
23586 tracer-min-branch-probability-feedback and clarify description,
23587 rename sched-spec-state-edge-prob-cutoff to
23588 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
23589 to selsched-insns-to-rename, rename lto-minpartition to
23590 lto-min-partition, delete reorder-blocks-duplicate and
23591 reorder-blocks-duplicate-feedback.
23593 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23595 * config/s390/s390.c (s390_register_info_set_ranges): Remove
23598 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
23600 * doc/extend.texi: S/390: Correct some typos.
23602 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23604 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
23606 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23609 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
23610 (s390_register_info_gprtofpr): Use new macros above.
23611 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
23613 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
23614 its name. Adjust restore and save gpr ranges.
23615 (s390_register_info_set_ranges): New function.
23616 (s390_register_info): Use new macros above. Call
23617 s390_register_info_set_ranges.
23618 (s390_optimize_register_info): Likewise.
23619 (s390_hard_regno_rename_ok): Use new macros.
23620 (s390_hard_regno_scratch_ok): Likewise.
23621 (s390_emit_epilogue): Likewise.
23622 (s390_can_use_return_insn): Likewise.
23623 (s390_optimize_prologue): Likewise.
23624 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
23626 2016-02-05 Jakub Jelinek <jakub@redhat.com>
23629 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
23631 (ix86_option_override_internal): Disable TARGET_STV even for
23632 -m{incoming,preferred}-stack-boundary=3.
23634 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23636 * config.gcc: Mark deprecated rtems targets as obsolete.
23638 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
23640 PR rtl-optimization/64682
23641 PR rtl-optimization/69567
23642 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
23643 before I2 only if the register is both used and set in I2.
23645 2016-02-04 DJ Delorie <dj@redhat.com>
23647 * config/msp430/msp430.c (msp430_start_function): Add function type.
23649 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23652 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
23654 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
23656 PR rtl-optimization/69577
23658 2015-10-29 Richard Henderson <rth@redhat.com>
23662 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
23663 sse check to the exact conditions of PR 67609.
23665 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
23668 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
23669 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
23670 not allowed into the traditional Altivec registers.
23671 (movtd_64bit_nodm): Likewise.
23672 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
23674 2016-02-04 David Malcolm <dmalcolm@redhat.com>
23676 * config/aarch64/cortex-a57-fma-steering.c
23677 (aarch64_register_fma_steering): Remove "static" from arguments
23680 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
23683 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
23684 twice when complex.
23686 2016-02-04 Mike Frysinger <vapier@gentoo.org>
23688 * doc/invoke.texi: Delete -mno-fma4.
23690 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
23692 PR rtl-optimization/69577
23693 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
23694 (find_subregs_of_mode): Update accordingly. Iterate over partial
23697 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
23699 * config/arm/arm-protos.h (neon_reinterpret): Remove.
23700 * config/arm/arm.c (neon_reinterpret): Remove.
23701 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
23702 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
23703 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
23704 vreinterpretti): Remove.
23705 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
23706 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
23707 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
23708 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
23709 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
23710 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
23711 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
23712 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
23713 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
23714 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
23715 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
23716 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
23717 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
23718 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23719 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23720 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23721 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23722 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23723 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23724 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23725 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23726 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23727 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23728 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23729 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23730 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23731 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23732 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23733 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23734 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23735 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23736 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23737 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23738 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23739 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23740 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23741 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23742 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23743 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23744 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23745 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23746 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23747 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23748 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23749 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23750 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23751 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23752 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23753 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23754 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23755 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23756 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23757 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23758 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23759 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23760 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23761 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23762 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23763 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23764 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23765 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23766 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23767 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23768 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23769 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23770 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23771 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23772 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23773 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23774 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23775 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23776 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23777 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23778 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23779 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23780 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23781 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23782 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23783 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23784 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23785 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23786 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23787 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23788 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23789 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23790 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23791 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23792 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23793 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23794 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23795 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23796 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23797 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23798 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23799 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23800 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23801 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23802 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23803 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23804 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23805 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23806 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23807 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23809 2016-02-04 Martin Liska <mliska@suse.cz>
23812 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23813 that are gimple_store_p.
23814 (maybe_instrument_call): Likewise.
23816 2016-02-04 Bin Cheng <bin.cheng@arm.com>
23818 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23819 register scaling out of memory reference and comment why.
23821 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23825 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23826 folding the source of a SET.
23828 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23832 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23833 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23835 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
23839 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23842 2016-02-04 Christian Bruel <christian.bruel@st.com>
23844 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23845 * config/arm/arm.c (arm_set_current_function): Likewise.
23847 2016-02-04 Jakub Jelinek <jakub@redhat.com>
23848 Ilya Enkovich <enkovich.gnu@gmail.com>
23849 H.J. Lu <hongjiu.lu@intel.com>
23852 * config/i386/i386.c (convert_scalars_to_vector): Remove
23853 stack alignment fixes.
23854 (ix86_option_override_internal): Disable TARGET_STV if stack
23855 might not be aligned enough.
23856 (ix86_minimum_alignment): Assert that TARGET_STV is false.
23858 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
23860 * config/i386/x86-tune.def: Disable default prefetching
23863 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23864 Vladimir Makarov <vmakarov@redhat.com>
23867 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23868 in validating fused toc addresses.
23870 2016-02-03 Jakub Jelinek <jakub@redhat.com>
23873 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23874 range->m_caret fields if range->m_show_caret_p is false.
23877 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23878 Force oldval into register if it does not satisfy reg_or_short_operand
23879 predicate. Fix up formatting.
23881 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
23882 Alexandre Oliva <aoliva@redhat.com>
23885 * lra-constraints.c (simplify_operand_subreg): Check additionally
23886 address validity after potential reloading.
23887 (process_address_1): Check insns validity. In case of failure do
23890 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
23893 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23896 2016-02-02 Jakub Jelinek <jakub@redhat.com>
23898 * wide-int.cc (canonize_uhwi): New function.
23899 (wi::divmod_internal): Use it.
23901 2016-02-02 James Norris <jnorris@codesourcery.com>
23903 * gimplify.c (omp_notice_variable): Add usage check.
23905 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
23907 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23908 like LE, GE, LT, GT when emitting relational operator.
23910 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23912 * ira-costs.c (find_costs_and_classes): Add extra argument.
23913 * target.def (ira_change_pseudo_allocno_class): Add parameter.
23914 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23915 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23916 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23917 Add best_class parameter, and return it if not ALL_REGS.
23918 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23920 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23921 Update target hook.
23923 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
23925 * config/aarch64/aarch64.c
23926 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23927 (aarch64_ira_change_pseudo_allocno_class): New function.
23929 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
23932 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23934 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23936 * config/avr/avr.c (avr_option_override): Set
23937 PARAM_ALLOW_STORE_DATA_RACES to 1.
23939 2016-02-02 Richard Biener <rguenther@suse.de>
23941 PR tree-optimization/69595
23942 * match.pd: Add range test simplifications to true/false.
23944 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
23946 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
23947 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
23950 2016-02-02 Richard Biener <rguenther@suse.de>
23952 PR tree-optimization/69606
23953 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
23954 info on the result before moving a stmt.
23956 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
23958 PR middle-end/68542
23959 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
23960 branch with vector comparison.
23961 * config/i386/sse.md (VI48_AVX): New mode iterator.
23962 (define_expand "cbranch<mode>4): Add support for conditional branch
23963 with vector comparison.
23964 * tree-vect-loop.c (optimize_mask_stores): New function.
23965 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23966 has_mask_store field of vect_info.
23967 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
23968 vectorized loops having masked stores after vec_info destroy.
23969 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
23970 correspondent macros.
23971 (optimize_mask_stores): Add prototype.
23973 2016-02-02 Alan Modra <amodra@gmail.com>
23976 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
23979 2016-02-02 Alan Modra <amodra@gmail.com>
23982 * config/rs6000/rs6000.c (need_toc_init): New var, set it
23983 whenever toc_label_name used.
23984 (rs6000_file_start): Don't set up toc section here,
23985 (rs6000_output_function_epilogue): do so here instead,
23986 (rs6000_xcoff_file_start): and here.
23987 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
23988 (load_toc_aix_di): Likewise.
23990 2016-02-01 Jakub Jelinek <jakub@redhat.com>
23992 PR rtl-optimization/69592
23993 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
23994 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
23995 (num_sign_bit_copies_binary_arith_p): New inline function.
23996 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
23998 2016-02-01 Jeff Law <law@redhat.com>
24000 PR tree-optimization/69580
24001 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
24002 * tree-ssa-threadbackward.c
24003 (fsm_find_control_statement_thread_paths): Do not try to walk
24004 through large PHI nodes.
24006 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24008 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
24009 when count is incremented above limit, don't analyze further
24012 * omp-low.c (oacc_parse_default_dims): Avoid
24013 -Wsign-compare warning, make sure value fits into int
24014 rather than just unsigned int.
24016 2016-02-01 Bin Cheng <bin.cheng@arm.com>
24018 PR tree-optimization/67921
24019 * fold-const.c (split_tree): New parameters. Convert pointer
24020 type variable part to proper type before negating.
24021 (fold_binary_loc): Pass new arguments to split_tree.
24023 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
24025 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
24026 (nvptx_goacc_validate_dims): Extend to handle global defaults.
24027 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
24028 * doc/tm.texti: Rebuilt.
24029 * doc/invoke.texi (fopenacc-dim): Document.
24030 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
24031 (append_compiler_options): Likewise.
24032 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
24033 (oacc_parse_default_dims): New.
24034 (oacc_validate_dims): Add USED arg. Select non-unity default when
24036 (oacc_loop_fixed_partitions): Return mask of used partitions.
24037 (oacc_loop_auto_partitions): Emit dump info.
24038 (oacc_loop_partition): Return mask of used partitions.
24039 (execute_oacc_device_lower): Parse default dimension arg. Adjust
24040 loop partitioning and validation calls.
24042 2016-02-01 Richard Biener <rguenther@suse.de>
24044 PR middle-end/69556
24045 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
24047 2016-02-01 Richard Biener <rguenther@suse.de>
24049 PR tree-optimization/69574
24050 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
24051 of asserting return chrec_dont_know.
24053 2016-02-01 Martin Liska <mliska@suse.cz>
24055 * mem-stats-traits.h: Add copyright header.
24056 * mem-stats.h: Likewise.
24058 2016-02-01 Richard Biener <rguenther@suse.de>
24060 PR tree-optimization/69579
24061 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
24062 Do not propagate through abnormal PHI results.
24064 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
24066 * postreload.c (reload_cse_simplify): Remove dead code.
24068 2016-02-01 Jakub Jelinek <jakub@redhat.com>
24070 PR rtl-optimization/69570
24071 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
24072 if there is more than one set, not if there is a single set.
24074 2016-02-01 Richard Henderson <rth@redhat.com>
24077 * combine.c (make_compound_operation): When looking through a
24078 subreg, make sure to re-extend to the width of the outer mode.
24080 2016-01-30 Jakub Jelinek <jakub@redhat.com>
24082 PR tree-optimization/69546
24083 * wide-int.cc (wi::divmod_internal): For unsigned division
24084 where both operands fit into uhwi, if o1 is 1 and o0 has
24085 msb set, if divident_prec is larger than bits per hwi,
24086 clear another quotient word and return 2 instead of 1.
24087 Similarly for remainder with msb in HWI set, if dividend_prec
24088 is larger than bits per hwi.
24090 2016-01-29 Martin Jambor <mjambor@suse.cz>
24092 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
24093 Use short lowercase names.
24094 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
24095 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
24096 acq_rel one. Protect warning agains segfaults if
24097 get_memory_order_name returns NULL.
24098 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
24099 with release semantics. Do not warn if get_memory_order already did.
24100 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
24101 semantics. Fix check for relaxed or acquire semantics. Do not warn
24102 if get_memory_order already did.
24104 2016-01-29 Sebastian Pop <s.pop@samsung.com>
24106 * doc/install.texi: Document that isl-0.16 is supported.
24108 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
24111 * config/i386/constraints.md (Bm): Describe as special memory
24113 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
24114 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24115 * genpreds.c (struct constraint_data): Add is_special_memory.
24116 (have_special_memory_constraints, special_memory_start): New
24118 (special_memory_end): Ditto.
24119 (add_constraint): Add new arg is_special_memory. Add code to
24120 process its true value. Update have_special_memory_constraints.
24121 (process_define_constraint): Pass the new arg.
24122 (process_define_register_constraint): Ditto.
24123 (choose_enum_order): Process special memory.
24124 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
24125 function insn_extra_special_memory_constraint.
24126 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24127 * gensupport.c (process_rtx): Process
24128 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
24129 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
24130 * ira-lives.c (single_reg_class): Use
24131 insn_extra_special_memory_constraint.
24132 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
24133 * lra-constraints.c (process_alt_operands): Ditto.
24134 (curr_insn_transform): Use insn_extra_special_memory_constraint.
24135 * recog.c (asm_operand_ok, preprocess_constraints): Process
24137 * reload.c (find_reloads): Ditto.
24138 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
24139 * stmt.c (parse_input_constraint): Use
24140 insn_extra_special_memory_constraint.
24142 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24145 * lra-splill.c (lra_final_code_change): Revert r229087 by
24146 removing all sub-registers.
24148 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
24151 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
24153 2016-01-29 Jakub Jelinek <jakub@redhat.com>
24156 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
24157 SSE1, copy target into the temporary reg first before recursing
24160 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
24162 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
24165 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24167 * ginclude/stdarg.h: Test __cplusplus instead of
24168 __GXX_EXPERIMENTAL_CXX0X__.
24170 2016-01-29 Richard Biener <rguenther@suse.de>
24172 PR tree-optimization/69547
24173 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
24174 Do not mark clobbers necessary.
24175 (mark_all_reaching_defs_necessary_1): Likewise.
24177 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24179 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
24180 declaration name with %qs and print it in both error messages.
24181 Also fix indentation.
24183 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24186 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
24187 trailing blank line from error message.
24189 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
24192 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
24195 2016-01-29 Richard Biener <rguenther@suse.de>
24197 PR middle-end/69537
24198 * match.pd: Allow all integral types when simplifying a
24199 widening or sign-changing conversion.
24201 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24203 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
24204 back to setting codegen_error to fail codegen.
24206 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
24209 * config/i386/constraints.md (C): Only accept constant zero operand.
24210 (BC): New constraint.
24211 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
24212 instead of C constraint.
24213 * doc/md.texi (Machine Constraints): Update description
24216 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
24219 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
24221 2016-01-28 Jakub Jelinek <jakub@redhat.com>
24223 PR middle-end/69542
24224 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
24227 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
24229 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
24230 branches if using guessed profile.
24232 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
24234 * graphite-optimize-isl.c (optimize_isl): Fix dump.
24236 2016-01-28 Richard Henderson <rth@redhat.com>
24239 * config/aarch64/aarch64-modes.def (CC_Cmode): New
24240 * config/aarch64/aarch64-protos.h: Update.
24241 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
24242 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
24243 (aarch64_get_condition_code_1): Handle CC_Cmode.
24244 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
24245 (*add<mode>3_compareC_cconly_imm): New.
24246 (*add<mode>3_compareC_cconly): New.
24247 (*add<mode>3_compareC_imm): New.
24248 (add<mode>3_compareC): New.
24249 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
24250 to be first. Use aarch64_carry_operation.
24251 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
24252 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
24253 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
24254 (subti3): Use subdi3_compare1.
24255 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
24256 (sub<mode>3_compare1): New.
24257 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
24258 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
24259 (*subsi3_carryin_uxtw): Likewise.
24260 (*ngc<mode>, *ngcsi_uxtw): Likewise.
24261 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
24262 * config/aarch64/iterators.md (DWI): New.
24263 * config/aarch64/predicates.md (aarch64_carry_operation): New.
24264 (aarch64_borrow_operation): New.
24266 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24268 * graphite-optimize-isl.c (optimize_isl): Print a different debug
24269 message when isl does not return a valid schedule.
24271 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24273 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
24274 Remove comments from class declarations: they are already in the code
24277 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24279 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
24281 (ternary_op_to_tree): Same.
24282 (unary_op_to_tree): Same.
24283 (nary_op_to_tree): Same.
24284 (gcc_expression_from_isl_expr_op): Same.
24285 (gcc_expression_from_isl_expression): Same.
24286 (graphite_create_new_loop): Same.
24287 (graphite_create_new_loop_guard): Same.
24288 (build_iv_mapping): Same.
24289 (graphite_create_new_guard): Same.
24290 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
24291 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
24293 2016-01-28 Sebastian Pop <s.pop@samsung.com>
24295 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
24296 instead of setting codegen_error to fail codegen.
24298 2016-01-28 Jason Merrill <jason@redhat.com>
24300 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
24302 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24304 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24305 Remove CONST_INT_P check in CCMP cost calculation.
24307 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24309 * config/aarch64/aarch64.c (generic_vector_cost):
24310 Set vec_permute_cost.
24311 (cortexa57_vector_cost): Likewise.
24312 (exynosm1_vector_cost): Likewise.
24313 (xgene1_vector_cost): Likewise.
24314 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
24315 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
24316 Add vec_permute_cost entry.
24318 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
24320 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
24322 (add<mode>3_compare0): Likewise.
24323 (addsi3_compare0_uxtw): Likewise.
24324 (add<mode>3nr_compare0): Likewise.
24325 (compare_neg<mode>): Likewise.
24326 (<optab><mode>3): Likewise.
24328 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
24330 * tree-vect-stmts.c (vectorizable_comparison): Add
24331 NULL check for vectype.
24333 2016-01-28 Richard Biener <rguenther@suse.de>
24335 PR tree-optimization/69466
24336 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
24337 Account for PHIs we couldn't duplicate.
24339 2016-01-28 Martin Liska <mliska@suse.cz>
24342 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
24343 instead of ENABLE_VALGRIND_CHECKING.
24345 2016-01-27 Richard Henderson <rth@redhat.com>
24348 * lra-remat.c (subreg_regs): New.
24349 (dump_candidates_and_remat_bb_data): Dump it.
24350 (operand_to_remat): Reject if operand in subreg_regs.
24351 (set_bb_regs): Collect subreg_regs.
24352 (lra_remat): Init and free subreg_regs. Compute
24353 calculate_local_reg_remat_bb_data before create_cands.
24355 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
24358 * config/i386/i386.c (ix86_update_stack_boundary): Don't
24359 change stack_alignment_needed for __tls_get_addr call.
24361 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
24363 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
24365 2016-01-27 Jeff Law <law@redhat.com>
24367 PR tree-optimization/68398
24368 PR tree-optimization/69196
24369 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
24370 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
24371 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24372 Only count PHIs in the last block in the path. The others will
24373 const/copy propagate away. Add heuristic to allow more irreducible
24374 subloops to be created when it is likely profitable to do so.
24376 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
24377 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
24378 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
24380 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24383 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
24384 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
24385 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
24386 * tree-streamer-in.c: Include asan.h.
24387 (streamer_get_builtin_tree): For builtins in sanitizer
24388 range call initialize_sanitizer_builtins and retry.
24390 2016-01-27 Ian Lance Taylor <iant@google.com>
24392 * common.opt (fkeep-gc-roots-live): New undocumented option.
24393 * tree-ssa-loop-ivopts.c (add_candidate_1): If
24394 -fkeep-gc-roots-live, skip pointers.
24395 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
24398 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
24401 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
24402 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
24404 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
24407 * configure.ac: NetBSD provides SSP in its C library.
24408 * configure: Updated.
24410 2016-01-27 Richard Biener <rguenther@suse.de>
24412 PR tree-optimization/69166
24413 * tree-vect-loop.c (vect_is_simple_reduction): Always check
24414 reduction code for commutativity / associativity.
24416 2016-01-27 Martin Jambor <mjambor@suse.cz>
24418 PR tree-optimization/69355
24419 * tree-sra.c (analyze_access_subtree): Correct hole detection when
24420 total_scalarization fails.
24422 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
24424 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
24427 2016-01-27 Christian Bruel <christian.bruel@st.com>
24430 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
24431 Move arm_reset_previous_fndecl and set_target_option_current_node in
24432 the conditional part. Call save_restore_target_globals.
24433 * config/arm/arm.c (arm_set_current_function):
24434 Refactor to better support #pragma target and attribute mix.
24435 Call save_restore_target_globals.
24436 * config/arm/arm-protos.h (save_restore_target_globals): New function.
24438 2016-01-27 Martin Liska <mliska@suse.cz>
24440 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
24441 reference for an HSA kernel and its host function.
24443 2016-01-27 Jakub Jelinek <jakub@redhat.com>
24445 PR tree-optimization/69399
24446 * wide-int.h (wi::lrshift): For larger precisions, only
24447 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
24449 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
24451 * config/arc/predicates.md (proper_comparison_operator): Reject
24452 constant-constant comparison.
24454 2016-01-26 Tom de Vries <tom@codesourcery.com>
24456 PR tree-optimization/69110
24457 * tree-data-ref.c (initialize_data_dependence_relation): Handle
24458 DR_NUM_DIMENSIONS == 0.
24460 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
24461 Sebastian Pop <s.pop@samsung.com>
24463 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
24464 isl_ast_op_cond and isl_ast_op_select.
24465 (gcc_expression_from_isl_expr_op): Same.
24467 2016-01-26 Jason Merrill <jason@redhat.com>
24470 * tree.c (recompute_constructor_flags): Split out from
24472 (verify_constructor_flags): New.
24473 * tree.h: Declare them.
24475 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
24477 PR rtl-optimization/69217
24478 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
24479 are no TYPE_FIELDS set for the record type.
24481 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24484 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
24485 toc_label_name unconditionally.
24486 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
24487 SYMBOL_REF string. Use toc_label_name instead of constructing
24489 (rs6000_elf_declare_function_name): Use toc_label_name instead of
24490 constructing LCTOC1.
24492 2016-01-26 Martin Sebor <msebor@redhat.com>
24495 * doc/extend.texi (Common Type Attributes): Move text that talks about
24496 attribute packed from attribute aligned to the section discussing
24497 the former attribute for clarity.
24499 2016-01-26 Richard Henderson <rth@redhat.com>
24501 PR middle-end/60908
24502 * trans-mem.c (tm_region_init): Mark entry block as visited.
24504 2016-01-26 David Malcolm <dmalcolm@redhat.com>
24507 * diagnostic-show-locus.c (layout::print_source_line): Replace
24508 call to pp_newline with call to layout::print_newline.
24509 (layout::print_annotation_line): Likewise.
24510 (layout::move_to_column): Likewise.
24511 (layout::print_any_fixits): After printing any fixits, print a
24512 trailing newline, if necessary.
24513 (layout::print_newline): New method, resetting any colorization
24515 (diagnostic_show_locus): Move the pp_newline to before the
24516 early bailout. Remove dummy block enclosing the layout instance.
24517 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
24518 of pp_newline_and_flush with pp_flush.
24519 (diagnostic_append_note): Delete use of pp_newline.
24520 (diagnostic_append_note_at_rich_loc): Delete.
24521 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
24522 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
24523 when newline characters are added to the buffer.
24525 2016-01-26 Michael Matz <matz@suse.de>
24527 * configure.ac (ac_cv_std_swap_in_utility): New test.
24528 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
24529 * configure: Regenerate.
24530 * config.in: Regenerate.
24532 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
24534 * config/arc/arc.md (cstoresi4): Force operand into register.
24535 (arcset<code>): Fix predicate.
24536 (arcsetltu): Likewise.
24537 (arcsetgeu): Likewise.
24538 (arcsethi): Likewise.
24539 (arcsetls): Likewise.
24541 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24543 PR tree-optimization/69483
24544 * gimple-fold.c (canonicalize_constructor_val): Return NULL
24545 if base has error_mark_node type.
24547 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
24550 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
24551 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
24553 (vget_lane_f16): Handle big-endian.
24554 (vgetq_lane_f16): Likewise.
24555 (vset_lane_f16): Likewise.
24556 (vsetq_lane_f16): Likewise.
24557 * config/arm/iterators.md (VQXMOV): Add V8HF.
24558 (VDQ): Add V4HF and V8HF.
24559 (V_reg): Handle V4HF and V8HF.
24560 (Is_float_mode): Likewise.
24561 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
24562 neon_vdup_nv8hf): New patterns.
24563 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
24564 Use VD_LANE iterator.
24565 (neon_vld1_dup<mode>): Use VQ2 iterator.
24567 2016-01-26 Nathan Sidwell <nathan@acm.org>
24569 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
24570 (set_oacc_fn_attrib): Add IS_KERNEL arg.
24571 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
24572 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
24573 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
24574 (oacc_validate_dims): Add LEVEL arg, don't return level.
24575 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
24576 oacc_validate_dims.
24577 (execute_oacc_device_lower): Adjust, add more dump output.
24578 * tree-ssa-loop.c (gate_oacc_kernels): Use
24579 oacc_fn_attrib_kernels_p.
24580 * tree-parloops.c (create_parallel_loop): Adjust
24581 set_oacc_fn_attrib call.
24583 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24586 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
24587 (append_compiler_options): Handle -fcilkplus.
24588 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
24590 2016-01-26 Nick Clifton <nickc@redhat.com>
24593 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
24594 been marked as DECL_ONE_ONLY but we do not the means to make it
24595 so, then do not allow it to bind locally.
24597 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24600 * opts.h (parse_sanitizer_options): New prototype.
24601 * opts.c (sanitizer_opts): New array.
24602 (parse_sanitizer_options): New function.
24603 (common_handle_option): Use parse_sanitizer_options.
24605 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
24608 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
24609 alignment adjustment to ...
24610 (ix86_update_stack_boundary): Here. Don't over-align stack for
24612 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
24613 if __tls_get_addr is called.
24615 2016-01-26 Christian Bruel <christian.bruel@st.com>
24617 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
24619 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
24621 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
24623 2016-01-26 Richard Biener <rguenther@suse.de>
24625 PR middle-end/69467
24626 * match.pd: Guard X * CST CMP 0 pattern with single_use.
24628 2016-01-26 Richard Biener <rguenther@suse.de>
24630 PR tree-optimization/69452
24631 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
24632 (move_computations_dom_walker::before_dom_children): Rename
24634 (move_computations_worker): This.
24635 (move_computations): Perform an RPO rather than a DOM walk.
24637 2016-01-26 Jakub Jelinek <jakub@redhat.com>
24640 * combine.c (combine_instructions): For REG_EQUAL note with
24641 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
24642 to the underlying register.
24643 * doc/rtl.texi (REG_EQUAL): Document the behavior of
24644 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
24646 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
24649 * config/aarch64/aarch64-builtins.c
24650 (aarch64_init_simd_builtin_types): Do not set structural
24651 equality to __Poly{8,16,64,128}_t types.
24653 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
24655 PR tree-optimization/69400
24656 * wide-int.cc (wi_pack): Take the precision as argument and
24657 perform canonicalization here rather than in the callers.
24658 Use the main loop to handle all full-width HWIs. Add a
24659 zero HWI if in_len isn't a full result.
24660 (wi::divmod_internal): Update accordingly.
24661 (wi::mul_internal): Likewise. Simplify.
24663 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24664 Sebastian Pop <s.pop@samsung.com>
24666 * graphite-poly.c (apply_poly_transforms): Simplify.
24667 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
24668 (print_isl_map): Same.
24669 (print_isl_union_map): Same.
24670 (print_isl_schedule): New.
24671 (debug_isl_schedule): New.
24672 * graphite-dependences.c (scop_get_reads): Do not call
24673 isl_union_map_add_map that is undocumented isl functionality.
24674 (scop_get_must_writes): Same.
24675 (scop_get_may_writes): Same.
24676 (scop_get_original_schedule): Remove.
24677 (scop_get_dependences): Do not call isl_union_map_compute_flow that
24678 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
24679 (compute_deps): Remove.
24680 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
24681 (debug_schedule_ast): New.
24682 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
24683 set_separate_option.
24684 (graphite_regenerate_ast_isl): Add dump.
24685 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
24686 from scop->transformed_schedule.
24687 (graphite_regenerate_ast_isl): Add more dump.
24688 * graphite-optimize-isl.c (optimize_isl): Set
24689 scop->transformed_schedule. Check whether schedules are equal.
24690 (apply_poly_transforms): Move here.
24691 * graphite-poly.c (apply_poly_transforms): ... from here.
24692 (free_poly_bb): Static.
24693 (free_scop): Static.
24694 (pbb_number_of_iterations_at_time): Remove.
24695 (print_isl_ast): New.
24696 (debug_isl_ast): New.
24697 (debug_scop_pbb): New.
24698 * graphite-scop-detection.c (print_edge): Move.
24699 (print_sese): Move.
24700 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
24701 (build_scop_scattering): Remove.
24702 (create_pw_aff_from_tree): Assert instead of bailing out.
24703 (add_condition_to_pbb): Remove unused code, do not fail.
24704 (add_conditions_to_domain): Same.
24705 (add_conditions_to_constraints): Remove.
24706 (build_scop_context): New.
24707 (add_iter_domain_dimension): New.
24708 (build_iteration_domains): Initialize pbb->iterators.
24709 Call add_conditions_to_domain.
24712 (index_outermost_in_loop): New.
24713 (index_pbb_in_loop): New.
24714 (outermost_pbb_in): New.
24715 (add_in_sequence): New.
24716 (add_outer_projection): New.
24717 (outer_projection_mupa): New.
24718 (add_loop_schedule): New.
24719 (build_schedule_pbb): New.
24720 (build_schedule_loop): New.
24721 (embed_in_surrounding_loops): New.
24722 (build_schedule_loop_nest): New.
24723 (build_original_schedule): New.
24724 (build_poly_scop): Call build_original_schedule.
24725 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24726 (free_poly_dr): Remove.
24727 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
24728 (free_poly_bb): Remove.
24729 (debug_loop_vec): Remove.
24730 (print_isl_ast): Declare.
24731 (debug_isl_ast): Declare.
24732 (scop_do_interchange): Remove.
24733 (scop_do_strip_mine): Remove.
24734 (scop_do_block): Remove.
24735 (flatten_all_loops): Remove.
24736 (optimize_isl): Remove.
24737 (pbb_number_of_iterations_at_time): Remove.
24738 (debug_scop_pbb): Declare.
24739 (print_schedule_ast): Declare.
24740 (debug_schedule_ast): Declare.
24741 (struct scop): Remove schedule. Add original_schedule,
24742 transformed_schedule.
24743 (free_gimple_poly_bb): Remove.
24744 (print_generated_program): Remove.
24745 (debug_generated_program): Remove.
24746 (unify_scattering_dimensions): Remove.
24747 * sese.c (print_edge): ... here.
24748 (print_sese): ... here.
24749 (debug_edge): ... here.
24750 (debug_sese): ... here.
24751 * sese.h (print_edge): Declare.
24752 (print_sese): Declare.
24753 (dump_edge): Declare.
24754 (dump_sese): Declare.
24756 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
24757 Sebastian Pop <s.pop@samsung.com>
24759 * Makefile.in: Set ISLVER in site.exp.
24761 2016-01-25 Jakub Jelinek <jakub@redhat.com>
24763 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24764 DECL_VALUE_EXPR of new_var even for the non-array case. Look
24765 through DECL_VALUE_EXPR for expansion.
24767 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
24769 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24770 the frame info after reload completed.
24772 2016-01-25 Jeff Law <law@redhat.com>
24774 PR tree-optimization/69196
24775 PR tree-optimization/68398
24776 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24777 tree-ssa-threadupdate.c.
24778 (determine_bb_domination_status): Prototype
24779 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24780 (determine_bb_domination_status): No longer static.
24781 (valid_jump_thread_path): Remove code to detect characteristics
24782 of the jump thread path not associated with correctness.
24783 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24784 Correct test for thread path length. Count PHIs for real operands as
24785 statements that need to be copied. Do not count ASSERT_EXPRs.
24786 Look at all the blocks in the thread path. Compute and selectively
24787 filter thread paths based on threading through the latch, threading
24788 a multiway branch or crossing a multiway branch.
24790 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24792 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
24793 decl with __attribute__ ((unused)) annotation.
24795 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
24798 * tree-vect-stmts.c (vectorizable_condition): Check vectype
24799 of operands is compatible with a statement vectype.
24801 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
24803 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24804 improve wording for mixed storage order support.
24806 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
24808 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24809 (vcvt_u64_f64): Likewise.
24810 (vcvta_s64_f64): Likewise.
24811 (vcvta_u64_f64): Likewise.
24812 (vcvtm_s64_f64): Likewise.
24813 (vcvtm_u64_f64): Likewise.
24814 (vcvtn_s64_f64): Likewise.
24815 (vcvtn_u64_f64): Likewise.
24816 (vcvtp_s64_f64): Likewise.
24817 (vcvtp_u64_f64): Likewise.
24819 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
24821 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24822 (arc_init): Check validity mll64 option.
24823 (arc_save_restore): Use double load/store instruction.
24824 (arc_expand_movmem): Likewise.
24825 (arc_split_move): Don't split if we have double load/store
24826 instructions. Returns a boolean.
24827 (arc_process_double_reg_moves): Change function to return boolean
24828 instead of a sequence of instructions.
24829 (arc_dwarf_register_span): New function.
24830 * config/arc/arc-protos.h (arc_split_move): Change prototype.
24831 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24832 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24833 (*movdf_insn): Likewise.
24834 * config/arc/arc.opt (mll64): New option.
24835 * config/arc/predicates.md (even_register_operand): New predicate.
24836 * doc/invoke.texi (ARC Options): Add mll64 documentation.
24838 2016-01-25 Richard Biener <rguenther@suse.de>
24841 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24842 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24844 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24846 2016-01-25 Richard Biener <rguenther@suse.de>
24848 PR tree-optimization/69376
24849 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24851 (VN_INFO_ANTI_RANGE_P): New inline.
24852 (VN_INFO_RANGE_TYPE): Likewise.
24853 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24854 SSA_NAME_ANTI_RANGE_P.
24855 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24856 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24857 Properly query VN_INFO_RANGE_TYPE.
24859 2016-01-25 Nick Clifton <nickc@redhat.com>
24862 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24864 2016-01-23 Tom de Vries <tom@codesourcery.com>
24866 PR tree-optimization/69426
24867 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24870 2016-01-23 Jakub Jelinek <jakub@redhat.com>
24872 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24873 "the the" with "the" in the comments.
24874 * ipa-devirt.c (build_type_inheritance_graph,
24875 update_type_inheritance_graph): Likewise.
24876 * tree.c (build_function_type_list_1): Likewise.
24877 * cfgloopmanip.c (scale_loop_profile): Likewise.
24878 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24879 * gimple-ssa-split-paths.c
24880 (find_block_to_duplicate_for_splitting_paths): Likewise.
24881 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24882 * expr.c (convert_move): Likewise.
24883 * var-tracking.c (vt_stack_adjustments): Likewise.
24884 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24885 * tree-vrp.c (test_for_singularity): Likewise.
24887 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24888 directly instead of building a temporary tree.
24891 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24892 remove <algorithm> include.
24894 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24897 * config/i386/i386.c: Include dojump.h.
24898 (expand_small_movmem_or_setmem,
24899 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24901 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24902 if dynamic_check != -1.
24904 2016-01-21 Jeff Law <law@redhat.com>
24906 PR middle-end/69347
24907 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24908 record_temporary_equivalences. Rewritten to avoid unnecessary calls
24909 into dominated_by_p.
24910 (cprop_into_successor_phis): Avoid unnecessary tests.
24912 2016-01-22 Richard Henderson <rth@redhat.com>
24915 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24916 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24918 2016-01-22 Michael Matz <matz@suse.de>
24920 * system.h (string, algorithm): Include only conditionally.
24921 (new): Include always under C++.
24922 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24923 * final.c (toplevel): Ditto.
24924 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24925 * genconditions.c (write_header): Make gencondmd.c define
24927 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24929 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24930 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24932 2016-01-22 Christian Bruel <christian.bruel@st.com>
24935 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24937 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24940 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24941 define_insn_and_split. Ensure operands[1] and operands[0] do not
24942 get assigned the same register.
24944 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24946 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
24948 2016-01-22 Christian Bruel <christian.bruel@st.com>
24950 * config/arm/arm-c.c (arm_pragma_target_parse):
24951 Remove warn_builtin_macro_redefined overwrite.
24953 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24955 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
24956 flag_non_call_exceptions compatibility.
24958 2016-01-22 Jakub Jelinek <jakub@redhat.com>
24961 * dwarf2out.c (add_child_die_after): New function.
24962 (dwarf_qual_info_t): New type.
24963 (dwarf_qual_info): New variable.
24964 (qualified_die_p): New function.
24965 (modified_type_die): For -fdebug-types-section, ensure
24966 canonical order of qualifiers. Put qualified DIEs adjacent
24967 to the corresponding non-qualified type DIE and search there
24968 for existing qualified DIEs.
24970 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
24972 * doc/extend.texi (scalar_storage_order type attribute): Document
24973 restriction on type punning and aliasing, and remove future tense.
24975 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
24978 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
24981 2016-01-21 Jeff Law <law@redhat.com>
24983 PR middle-end/69347
24984 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
24985 useless call to record_temporary_equivalences.
24986 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
24987 allocate 10 slots in the bb_path vector and let it grow as needed.
24988 (fsm_find_control_statement_thread_paths): Similarly for the next_path
24991 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
24993 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
24995 * configure: Regenerate.
24997 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
24999 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
25000 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
25002 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
25004 PR middle-end/66178
25005 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
25006 drop EXPAND_INITIALIZER.
25007 * rtl.h (contains_symbolic_reference_p): Declare.
25008 * rtlanal.c (contains_symbolic_reference_p): New function.
25009 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
25010 a subtraction into a NOT if symbolic constants are involved.
25012 2016-01-21 Anton Blanchard <anton@samba.org>
25013 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25016 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
25018 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
25021 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25023 * config/microblaze/microblaze.c
25024 (get_branch_target): New.
25025 (insert_wic_for_ilb_runout): New.
25027 (microblaze_machine_dependent_reorg): New.
25028 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
25029 * config/microblaze/microblaze.md
25030 (UNSPEC_IPREFETCH): Define.
25031 (iprefetch): New pattern
25032 * config/microblaze/microblaze.opt
25033 (mxl-prefetch): New flag.
25035 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
25037 * config/microblaze/microblaze.h
25038 (FIXED_REGISTERS): Update in macro.
25039 (CALL_USED_REGISTERS): Update in macro.
25041 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
25043 PR rtl-optimization/68920
25044 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
25047 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
25049 PR rtl-optimization/68990
25050 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
25051 pseudo instead of inheritance ones.
25053 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
25054 Nick Clifton <nickc@redhat.com>
25058 * config/mips/mips.c (mips_compute_frame_info): Initialise
25059 args_size and hard_frame_pointer_offset fields of the frame
25060 structure before calling mips_global_pointer.
25062 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
25064 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
25066 * configure: Regenerate.
25068 2016-01-21 Richard Biener <rguenther@suse.de>
25070 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
25072 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25074 * config/s390/s390.c (s390_asm_declare_function_size): Add code
25075 to actually emit the .size directive.
25077 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
25078 Jakub Jelinek <jakub@redhat.com>
25082 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
25083 args array size by one to avoid buffer overflow.
25085 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
25087 * config/s390/s390.md (pool_section_start): Use switch_to_section
25088 to select proper read-only data section instead of hardcoding
25090 (pool_section_end): Use switch_to_section to match the above.
25092 2016-01-21 Richard Biener <rguenther@suse.de>
25094 PR tree-optimization/69378
25095 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
25096 (set_ssa_val_to): Use it for dominance checks taking into
25097 account not executable edges.
25099 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25102 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
25103 for bitsize instead of GET_MODE_PRECISION (mode).
25105 2016-01-20 Martin Sebor <msebor@redhat.com>
25108 * extend.texi (__sync Builtins): Clarify the semantics of
25109 __sync_fetch_and_OP built-ins on pointers.
25110 (__atomic Builtins): Same.
25112 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25113 Sebastian Pop <s.pop@samsung.com>
25115 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
25116 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
25117 (is_valid_rename): Same.
25118 (translate_isl_ast_to_gimple::get_rename): Same.
25119 (translate_isl_ast_to_gimple::rename_all_uses): Same.
25120 (translate_isl_ast_to_gimple::rename_uses): Same.
25121 (get_new_name): Check for close_phi nodes.
25122 (copy_loop_phi_args): Use phi_node_kind.
25123 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
25124 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
25126 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25127 Sebastian Pop <s.pop@samsung.com>
25129 Revert commit r229783.
25130 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
25131 Remove use of parameter_rename_map.
25132 (copy_def): Remove.
25133 (copy_internal_parameters): Remove.
25134 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
25135 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
25136 (free_sese_info): Do not free parameter_rename_map.
25137 (set_rename): Do not use parameter_rename_map.
25138 (rename_uses): Update call to set_rename.
25139 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
25140 * sese.h (parameter_rename_map_t): Remove.
25141 (struct sese_info_t): Remove field parameter_rename_map.
25143 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25144 Sebastian Pop <s.pop@samsung.com>
25146 * graphite-isl-ast-to-gimple.c: Fix comment.
25147 * graphite-scop-detection.c (defined_in_loop_p): New.
25148 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
25149 names defined in loop.
25151 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25152 Sebastian Pop <s.pop@samsung.com>
25154 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
25155 Discard unstructured if-then-else regions.
25157 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25158 Sebastian Pop <s.pop@samsung.com>
25160 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
25161 (cleanup_loop_iter_dom): Remove.
25162 (build_loop_iteration_domains): Remove.
25163 (build_scop_context): Remove.
25164 (build_scop_iteration_domain): Remove.
25165 (add_loop_constraints): New.
25166 (build_iteration_domains): New.
25167 (build_poly_scop): Call build_iteration_domains.
25169 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25170 Sebastian Pop <s.pop@samsung.com>
25172 * graphite-scop-detection.c
25173 (scop_detection::harmful_loop_in_region): Free dom and loops.
25174 (scop_detection::loop_body_is_valid_scop): Free bbs.
25176 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25177 Sebastian Pop <s.pop@samsung.com>
25179 * graphite-scop-detection.c (record_loop_in_sese): New.
25180 (gather_bbs::before_dom_children): Call record_loop_in_sese.
25181 (build_scops): Remove call to build_sese_loop_nests.
25182 * sese.c (sese_record_loop): Remove.
25183 (build_sese_loop_nests): Remove.
25184 (new_sese_info): Remove region->loops.
25185 (free_sese_info): Same.
25186 * sese.h (sese_contains_loop): Same.
25187 (build_sese_loop_nests): Remove.
25188 (sese_contains_loop): Remove.
25190 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25191 Sebastian Pop <s.pop@samsung.com>
25193 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
25194 loop_is_valid_in_scop.
25195 (scop_detection::harmful_stmt_in_region): Renamed
25196 harmful_loop_in_region.
25197 Call loop_is_valid_in_scop.
25199 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25200 Sebastian Pop <s.pop@samsung.com>
25202 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
25205 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25206 Sebastian Pop <s.pop@samsung.com>
25208 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
25209 * graphite.h (struct poly_bb): Remove field is_reduction.
25210 (PBB_IS_REDUCTION): Remove.
25212 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
25213 Sebastian Pop <s.pop@samsung.com>
25215 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
25216 (add_pdr_constraints): Same.
25217 (scop_get_reads): Same.
25218 (scop_get_must_writes): Same.
25219 (scop_get_may_writes): Same.
25220 (scop_get_original_schedule): Same.
25221 (extend_schedule): Same.
25222 (apply_schedule_on_deps): Same.
25223 (carries_deps): Same.
25224 (compute_deps): Same.
25225 (scop_get_dependences): Same.
25226 * graphite-isl-ast-to-gimple.c
25227 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
25228 * graphite-optimize-isl.c (get_schedule_for_band): Same.
25229 (get_schedule_for_band_list): Same.
25230 (get_schedule_map): Same.
25231 (apply_schedule_map_to_scop): Same.
25232 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25233 (build_loop_iteration_domains): Same.
25234 (add_condition_to_pbb): Same.
25235 (add_param_constraints): Same.
25236 (pdr_add_memory_accesses): Same.
25237 (pdr_add_data_dimensions): Same.
25239 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25241 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
25244 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
25246 * common.opt (feliminate-dwarf2-dups): Replace references to
25247 "DWARF 2" with just "DWARF".
25248 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
25249 * doc/extend.texi: Likewise.
25250 * doc/cpp.texi: Likewise.
25251 * doc/invoke.texi: Likewise.
25252 (Option Summary): Add -gdwarf to list of Debugging Options.
25253 (Debugging Options): Document -gdwarf.
25254 * doc/contrib.texi: Spell "DWARF" like that.
25256 2016-01-21 Jakub Jelinek <jakub@redhat.com>
25258 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
25259 warning. Fix up formatting.
25261 PR middle-end/67653
25262 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
25263 attempt to mark memory input operand addressable and
25264 call prepare_gimple_addressable in that case. Don't adjust
25265 input_location for diagnostics, use error_at instead.
25267 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
25269 * config/rs6000/ppc-auxv.h: New file.
25270 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
25271 (cpu_is): Likewise.
25272 (cpu_supports): Likewise.
25273 * config/rs6000/rs6000.c: include "ppc-auxv.h".
25274 (cpu_is_info): New variable.
25275 (cpu_supports_info): Likewise.
25276 (tcb_verification_symbol): Likewise.
25277 (cpu_builtin_p): Likewise.
25278 (cpu_expand_builtin): New function.
25279 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
25280 (rs6000_init_builtins): Likewise.
25281 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
25282 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
25283 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
25284 * configure: Regenerate.
25285 * config.in: Likewise.
25286 * doc/extend.texi (PowerPC Built-in Functions): Document
25287 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
25289 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
25292 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
25294 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
25297 2016-01-20 Richard Henderson <rth@redhat.com>
25303 * tree.c (tm_define_builtin): New.
25304 (find_tm_vector_type): New.
25305 (build_tm_vector_builtins): New.
25306 (build_common_builtin_nodes): Call it.
25308 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
25310 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
25311 (arm_fp_ok): Likewise.
25312 (arm_fp): Likewise.
25313 (arm_crypto): Likewise.
25315 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
25316 Richard Biener <rguenther@suse.de>
25318 PR tree-optimization/69328
25319 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
25320 vectors have same number of elements.
25321 (vectorizable_condition): Fix masked version recognition.
25323 2016-01-20 Richard Biener <rguenther@suse.de>
25325 PR tree-optimization/69345
25326 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
25327 (VN_INFO_PTR_INFO): Likewise.
25328 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
25329 info when it is equal between non-dominating SSA names.
25330 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
25331 Make sure to look at original SSA infos.
25333 2016-01-20 Jeff Law <law@redhat.com>
25336 * config/m68k/predicates.md (pow2_m1_operand): New predicate
25338 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
25339 (pc_or_label_operand): New predicate.
25340 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
25341 tests for small integers that are 2^n - 1.
25343 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
25345 * doc/invoke.texi (Options Summary): Add '.' after @xref.
25347 2016-01-19 Jeff Law <law@redhat.com>
25349 PR middle-end/69347
25350 * tree-ssa-threadbackwards.c
25351 (fsm_find_control_statement_thread_paths): Do not try to lookup
25352 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
25354 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
25356 * doc/lto.texi: Remove text that says only Gold has linker plugin
25359 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
25361 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
25362 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
25363 the DIE accordingly.
25364 (modified_type_die): Add REVERSE parameter and pass it recursively,
25365 as well as to base_type_die. Adjust presence check accordingly.
25366 (base_type_for_mode): Adjust call to modified_type_die.
25367 (add_type_attribute): Add REVERSE parameter and pass it to
25369 (generic_parameter_die): Adjust call to add_type_attribute.
25370 (add_scalar_info): Likewise.
25371 (add_subscript_info): Likewise.
25372 (gen_array_type_die): Likewise.
25373 (gen_descr_array_type_die): Likewise.
25374 (gen_entry_point_die): Likewise.
25375 (gen_enumeration_type_die): Likewise.
25376 (gen_formal_parameter_die): Likewise.
25377 (gen_subprogram_die): Likewise.
25378 (gen_variable_die ): Likewise.
25379 (gen_const_die): Likewise.
25380 (gen_field_die): Likewise.
25381 (gen_pointer_type_die): Likewise.
25382 (gen_reference_type_die): Likewise.
25383 (gen_ptr_to_mbr_type_die): Likewise.
25384 (gen_inheritance_die): Likewise.
25385 (gen_subroutine_type_die): Likewise.
25386 (gen_typedef_die): Likewise.
25387 (force_type_die): Adjust call to modified_type_die.
25389 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
25391 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
25392 flow throughout the file. Fix broken link to Objective-C 2.0
25394 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
25397 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25399 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
25401 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25404 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
25405 (maybe_record_node): Record cxa_pure_virtual as the only possible
25406 target if there are not ohter candidates.
25407 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
25409 2016-01-19 Richard Biener <rguenther@suse.de>
25411 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
25412 (get_memory_order): Likewise.
25414 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
25416 * tree-vect-stmts.c (vectorizable_store): Check
25419 2016-01-19 David Malcolm <dmalcolm@redhat.com>
25422 * gcc.c (driver::decode_argv): Add call to
25423 init_opts_obstack before init_options_struct.
25424 * opts.c (init_opts_obstack): Remove idempotency.
25425 (init_options_struct): Replace call to init_opts_obstack
25426 with a gcc_assert to verify that it has already been called.
25427 * toplev.c (toplev::main): Add call to init_opts_obstack before
25428 calls to init_options_struct.
25429 (toplev::finalize): Move cleanup of opts_obstack next to
25430 cleanup of save_decoded_options, clearing the latter, and
25431 save_decoded_options_count.
25433 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25436 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
25437 attribute to unconditional. Remove %? from output template.
25439 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25440 Jiong Wang <jiong.wang@arm.com>
25442 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
25443 generated from different expand order.
25445 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25447 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
25448 Add support for CCMP costing.
25450 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25452 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
25453 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
25454 (fccmpe<mode>): Likewise.
25455 (fcmp): Rename to fcmp and globalize pattern.
25457 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
25458 (aarch64_gen_ccmp_next): Add FP support.
25460 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
25462 * target.def (gen_ccmp_first): Update documentation.
25463 (gen_ccmp_next): Likewise.
25464 * doc/tm.texi (gen_ccmp_first): Update documentation.
25465 (gen_ccmp_next): Likewise.
25466 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
25467 expand_ccmp_expr_1. Improve comments.
25468 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
25469 (ccmp_ior<mode>): Remove pattern.
25470 (cmp<mode>): Remove expand.
25471 (cmp): Globalize pattern.
25472 (cstorecc4): Use cc_register.
25473 (mov<mode>cc): Remove ccmp_cc_register check.
25474 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
25475 Simplify after removal of CC_DNE/* modes.
25476 (aarch64_ccmp_mode_to_code): Remove.
25477 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
25478 In 'k' case use integer as condition.
25479 (aarch64_nzcv_codes): Remove inverted cases.
25480 (aarch64_code_to_ccmode): Remove.
25481 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
25482 comparison with CC register to be used in folowing CCMP/branch/CSEL.
25483 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
25484 pattern. Return the comparison with CC register. Invert conditions
25485 when bitcode is OR.
25486 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
25487 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
25489 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25491 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
25492 instrumented_version.
25494 2016-01-19 Richard Biener <rguenther@suse.de>
25496 PR tree-optimization/69336
25497 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
25498 handled components with get_ref_base_and_extent.
25499 (equal_mem_array_ref_p): Adjust.
25501 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25504 * shrink-wrap.c: Include valtrack.h.
25505 (move_insn_for_shrink_wrap): Add DEBUG argument. If
25506 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
25507 in between insn and where it will be moved to. Call
25508 dead_debug_insert_temp.
25509 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
25510 first and dead_debug_local_finish at the end.
25511 For uses and defs bitmap, handle all regs in between REGNO and
25512 END_REGNO, not just the first one.
25514 2016-01-19 Richard Biener <rguenther@suse.de>
25516 PR tree-optimization/69352
25517 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
25518 (equal_mem_array_ref_p): Constrain size and max size properly.
25519 Compare the reverse flag.
25521 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
25523 * ira.c (ira): Update regstat data if we deleted insns.
25525 2016-01-19 Jakub Jelinek <jakub@redhat.com>
25527 PR rtl-optimization/68955
25528 PR rtl-optimization/64557
25529 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
25530 here. Fix up formatting.
25531 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
25533 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25536 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
25537 assume that the node has body.
25538 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
25541 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25543 * lto-streamer-out.c (lto_output): Do not stream instrumentation
25546 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
25548 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
25549 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
25551 2016-01-19 Martin Jambor <mjambor@suse.cz>
25552 Martin Liska <mliska@suse.cz>
25553 Michael Matz <matz@suse.de>
25555 * Makefile.in (OBJS): Add new source files.
25556 (GTFILES): Add hsa.c.
25557 * common.opt (disable_hsa): New variable.
25558 (-Whsa): New warning.
25559 * config.in (ENABLE_HSA): New.
25560 * configure.ac: Treat hsa differently from other accelerators.
25561 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
25562 $enable_offloading.
25563 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
25564 * doc/install.texi (Configuration): Document --with-hsa-runtime,
25565 --with-hsa-runtime-include, --with-hsa-runtime-lib and
25566 --with-hsa-kmt-lib.
25567 * doc/invoke.texi (-Whsa): Document.
25568 (hsa-gen-debug-stores): Likewise.
25569 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
25570 to invoke offload compiler for hsa acclerator.
25571 * opts.c (common_handle_option): Determine whether HSA offloading
25572 should be performed.
25573 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
25574 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
25575 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
25576 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
25577 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
25578 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
25579 GF_OMP_FOR_KIND_GRID_LOOP.
25580 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
25581 (pp_gimple_stmt_1): Likewise.
25582 * gimple-walk.c (walk_gimple_stmt): Likewise.
25583 * gimple.c (gimple_build_omp_grid_body): New function.
25584 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
25585 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
25586 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
25587 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
25588 GF_OMP_TEAMS_GRID_PHONY.
25589 (gimple_statement_omp_single_layout): Updated comments.
25590 (gimple_build_omp_grid_body): New function.
25591 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
25592 (gimple_omp_for_grid_phony): New function.
25593 (gimple_omp_for_set_grid_phony): Likewise.
25594 (gimple_omp_parallel_grid_phony): Likewise.
25595 (gimple_omp_parallel_set_grid_phony): Likewise.
25596 (gimple_omp_teams_grid_phony): Likewise.
25597 (gimple_omp_teams_set_grid_phony): Likewise.
25598 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
25599 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
25600 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
25601 (BUILT_IN_GOMP_TARGET): Updated type.
25602 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
25603 (adjust_for_condition): New function.
25604 (get_omp_for_step_from_incr): Likewise.
25605 (extract_omp_for_data): Moved parts to adjust_for_condition and
25606 get_omp_for_step_from_incr.
25607 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
25608 (fixup_child_record_type): Bail out if receiver_decl is NULL.
25609 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
25610 (scan_omp_parallel): Do not create child functions for phony
25612 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
25613 (scan_omp_1_op): Checking assert we are not remapping to
25614 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
25615 (parallel_needs_hsa_kernel_p): New function.
25616 (expand_parallel_call): Register apprpriate parallel child
25617 functions as HSA kernels.
25618 (grid_launch_attributes_trees): New type.
25619 (grid_attr_trees): New variable.
25620 (grid_create_kernel_launch_attr_types): New function.
25621 (grid_insert_store_range_dim): Likewise.
25622 (grid_get_kernel_launch_attributes): Likewise.
25623 (get_target_argument_identifier_1): Likewise.
25624 (get_target_argument_identifier): Likewise.
25625 (get_target_argument_value): Likewise.
25626 (push_target_argument_according_to_value): Likewise.
25627 (get_target_arguments): Likewise.
25628 (expand_omp_target): Call get_target_arguments instead of looking
25629 up for teams and thread limit.
25630 (grid_expand_omp_for_loop): New function.
25631 (grid_arg_decl_map): New type.
25632 (grid_remap_kernel_arg_accesses): New function.
25633 (grid_expand_target_kernel_body): New function.
25634 (expand_omp): Call it.
25635 (lower_omp_for): Do not emit phony constructs.
25636 (lower_omp_taskreg): Do not emit phony constructs but create for them
25637 a temporary variable receiver_decl.
25638 (lower_omp_taskreg): Do not emit phony constructs.
25639 (lower_omp_teams): Likewise.
25640 (lower_omp_grid_body): New function.
25641 (lower_omp_1): Call it.
25642 (grid_reg_assignment_to_local_var_p): New function.
25643 (grid_seq_only_contains_local_assignments): Likewise.
25644 (grid_find_single_omp_among_assignments_1): Likewise.
25645 (grid_find_single_omp_among_assignments): Likewise.
25646 (grid_find_ungridifiable_statement): Likewise.
25647 (grid_target_follows_gridifiable_pattern): Likewise.
25648 (grid_remap_prebody_decls): Likewise.
25649 (grid_copy_leading_local_assignments): Likewise.
25650 (grid_process_kernel_body_copy): Likewise.
25651 (grid_attempt_target_gridification): Likewise.
25652 (grid_gridify_all_targets_stmt): Likewise.
25653 (grid_gridify_all_targets): Likewise.
25654 (execute_lower_omp): Call grid_gridify_all_targets.
25655 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
25656 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
25657 (tree_omp_clause): Added union field dimension.
25658 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
25659 * tree.c (omp_clause_num_ops): Added number of arguments of
25660 OMP_CLAUSE__GRIDDIM_.
25661 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
25662 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
25663 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
25664 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
25665 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
25666 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
25667 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
25668 * tree-pass.h (make_pass_gen_hsail): Declare.
25669 (make_pass_ipa_hsa): Likewise.
25670 * ipa-hsa.c: New file.
25671 * lto-section-in.c (lto_section_name): Add hsa section name.
25672 * lto-streamer.h (lto_section_type): Add hsa section.
25673 * timevar.def (TV_IPA_HSA): New.
25674 * hsa-brig-format.h: New file.
25675 * hsa-brig.c: New file.
25676 * hsa-dump.c: Likewise.
25677 * hsa-gen.c: Likewise.
25680 * toplev.c (compile_file): Call hsa_output_brig.
25681 * hsa-regalloc.c: New file.
25683 2016-01-18 Jeff Law <law@redhat.com>
25685 PR tree-optimization/69320
25686 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
25687 ranged object, do nothing if the RHS constant is not [0..1].
25688 (optimize_stmt): Comparing a boolean ranged object against a
25689 constant outside [0..1] results in a compile-time constant.
25691 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
25694 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
25696 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25697 (Option Summary): Update to reflect new section and moved options.
25698 (C++ Dialect Options): Move -fstats to new section.
25699 (Debugging Options): Move all dump, statistics, and other GCC
25700 developer options to new section. Rewrite section introduction
25701 and re-order remaining options to put the more basic ones first.
25702 (Optimization Options): Move -fira-verbose and -flto-report* to
25704 (Developer Options): New section incorporating moved options.
25705 * doc/cppopts.texi (-dM): Update cross-reference.
25707 2016-01-18 Richard Henderson <rth@redhat.com>
25710 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
25711 operands to pseudo only if CSE is expected. Split long immediate
25712 operands only after reload, and for the stack pointer.
25713 (*add<GPI>3_pluslong): Remove.
25714 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
25715 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
25716 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
25717 (*add<GPI>3 peepholes): New.
25718 (*add<GPI>3 splitters): New.
25719 * config/aarch64/constraints.md (Upl): New.
25720 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25722 2016-01-18 Richard Biener <rguenther@suse.de>
25724 PR tree-optimization/69297
25725 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25727 (vect_bb_vectorization_profitable_p): Clear visited flag again.
25729 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
25731 PR middle-end/68542
25732 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25733 of mixind vector and scalar types.
25734 (fold_relational_const): Add handling of vector
25735 comparison with boolean result.
25736 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25737 comparison of vector operands with boolean result for EQ/NE only.
25738 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25739 (verify_gimple_cond): Likewise.
25740 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25743 2016-01-18 Joseph Myers <joseph@codesourcery.com>
25745 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25748 2016-01-18 Richard Biener <rguenther@suse.de>
25750 PR middle-end/69308
25751 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25753 2016-01-18 Tom de Vries <tom@codesourcery.com>
25755 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25757 2016-01-18 Tom de Vries <tom@codesourcery.com>
25759 * omp-low.c (set_oacc_fn_attrib): Make extern.
25760 * omp-low.h (set_oacc_fn_attrib): Declare.
25761 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25762 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25763 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25764 Add and handle function parameter oacc_kernels_p.
25765 (find_reduc_addr, get_omp_data_i_param): New function.
25766 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25767 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25768 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25769 Calculate dominance info. Skip loops that are not in a kernels region
25770 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
25771 (pass_parallelize_loops::execute): Call parallelize_loops with
25772 oacc_kernels_p argument.
25773 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25774 New member function.
25775 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25776 * passes.def: Add argument to pass_parallelize_loops instantation.
25778 2016-01-18 Tom de Vries <tom@codesourcery.com>
25780 * tree-parloops.c (pass_parallelize_loops::execute): Allow
25781 pass_parallelize_loops to be run outside the loop pipeline.
25783 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25785 * tree-scalar-evolution.c (follow_copies_to_constant): New.
25786 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25788 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25791 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25792 using get_ref_base_and_extent.
25793 (equal_mem_array_ref_p): New.
25794 (hashable_expr_equal_p): Add call to previous.
25796 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
25799 * tree-sra.c (disqualified_constants, constant_decl_p): New.
25800 (sra_initialize): Allocate disqualified_constants.
25801 (sra_deinitialize): Free disqualified_constants.
25802 (disqualify_candidate): Update disqualified_constants when appropriate.
25803 (create_access): Scan for constant-pool entries as we go along.
25804 (scalarizable_type_p): Add check against type_contains_placeholder_p.
25805 (maybe_add_sra_candidate): Allow constant-pool entries.
25806 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25807 (initialize_constant_pool_replacements): New.
25808 (sra_modify_assign): Avoid mangling assignments created by previous,
25809 and don't generate writes into constant pool.
25810 (sra_modify_function_body): Call initialize_constant_pool_replacements.
25812 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25814 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25815 andnot instruction.
25816 (scalar_chain::convert_op): Likewise.
25817 * config/i386/i386.md (*andndi3_doubleword): New.
25819 2016-01-18 Richard Biener <rguenther@suse.de>
25821 PR tree-optimization/69170
25822 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25823 building a vector from scalar results of a pattern stmt.
25825 2016-01-18 Jakub Jelinek <jakub@redhat.com>
25827 * haifa-sched.c (autopref_multipass_init): Work around
25828 -Wmaybe-uninitialized warning.
25830 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
25832 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25833 against the constant 0.
25835 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25837 PR tree-optimization/68799
25838 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25839 look up phi candidates in the statement-candidate map.
25840 (phi_add_costs): Likewise.
25841 (record_phi_increments): Likewise.
25842 (phi_incr_cost): Likewise.
25843 (ncd_with_phi): Likewise.
25844 (all_phi_incrs_profitable): Likewise.
25846 2016-01-17 Jakub Jelinek <jakub@redhat.com>
25848 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25849 -Wmaybe-uninitialized warning.
25851 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
25853 * doc/invoke.texi (Invoking GCC): Add new section to menu.
25854 (Option Summary): Update to reflect new section and moved options.
25855 (C++ Dialect Options): Move -fvtable-verify and related options.
25856 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25857 and profiling-related options.
25858 (Optimization Options): Move profile generation options and
25859 -fstack-protector and related options.
25860 (Instrumentation Options): New section incorporating moved options.
25861 (Code Generation Options): Move -finstrument-functions and
25862 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25864 2016-01-16 Tom de Vries <tom@codesourcery.com>
25866 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25868 2016-01-16 Tom de Vries <tom@codesourcery.com>
25870 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
25872 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
25874 * hash-table.h (hash_table::empty): Turn into an inline wrapper
25875 that checks whether the table is already empty. Rename the
25876 original implementation to...
25877 (hash_table::empty_slot): ...this new private function.
25879 2016-01-15 David Malcolm <dmalcolm@redhat.com>
25881 PR diagnostic/68899
25882 * diagnostic-show-locus.c (layout::print_source_line): Move x
25883 offset of line until after call to
25884 get_line_width_without_trailing_whitespace.
25886 2016-01-15 Jeff Law <law@redhat.com>
25888 PR tree-optimization/69270
25889 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25890 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
25891 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25892 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25893 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25894 ssa_name_has_boolean_range and constant_boolean_node.
25896 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
25898 PR rtl-optimization/69030
25899 * lra-spills.c (remove_pseudos): Check nrefs and make the function
25901 (spill_pseudos): Delete debug insn for dead pseudo.
25902 (lra_spill): Initiate spill_hard_reg and slots memory separately.
25904 2016-01-15 Jiong Wang <jiong.wang@arm.com>
25906 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25908 (TYPES_UNOPUS): Likewise.
25909 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25910 builtin type, from UNOP to UNOPUS.
25911 (lbtruncuv4sf): Likewise.
25912 (lbtruncuv2df): Likewise.
25913 (lrounduv2sf): Likewise.
25914 (lrounduv4sf): Likewise.
25915 (lrounduv2df): Likewise.
25916 (lroundusf): Likewise.
25917 (lroundusf): Likewise.
25918 (lceiluv2sf): Likewise.
25919 (lceiluv4sf): Likewise.
25920 (lceiluv2df): Likewise.
25921 (lceilusf): Likewise.
25922 (lceiludf): Likewise.
25923 (lflooruv2sf): Likewise.
25924 (lflooruv4sf): Likewise.
25925 (lflooruv2df): Likewise.
25926 (lfloorusf): Likewise.
25927 (lfloorudf): Likewise.
25928 (lfrintnuv2sf): Likewise.
25929 (lfrintnuv4sf): Likewise.
25930 (lfrintnuv2df): Likewise.
25931 (lfrintnusf): Likewise.
25932 (lfrintnudf): Likewise.
25933 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25935 (vcvtq_u32_f32): Likewise.
25936 (vcvtq_u64_f64): Likewise.
25937 (vcvta_u32_f32): Likewise.
25938 (vcvtaq_u32_f32): Likewise.
25939 (vcvtaq_u64_f64): Likewise.
25940 (vcvtm_u32_f32): Likewise.
25941 (vcvtmq_u32_f32): Likewise.
25942 (vcvtmq_u64_f64): Likewise.
25943 (vcvtn_u32_f32): Likwise.
25944 (vcvtnq_u32_f32): Likewise.
25945 (vcvtnq_u64_f64): Likewise.
25946 (vcvtp_u32_f32): Likewise.
25947 (vcvtpq_u32_f32): Likewise.
25948 (vcvtpq_u64_f64): Likewise.
25949 (vcvtmd_u64_f64): Likewise.
25950 (vcvtms_u32_f32): Likewise.
25951 (vcvtad_u64_f64): Likewise.
25952 (vcvtas_u32_f32): Likewise.
25953 (vcvtnd_u64_f64): Likewise.
25954 (vcvtns_u32_f32): Likewise.
25955 (vcvtpd_u64_f64): Likewise.
25956 (vcvtps_u32_f32): Likewise.
25958 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25960 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
25961 CSEL of zero_extended registers.
25963 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25965 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25966 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
25968 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25970 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
25971 false when argument string is not found in the attributes table
25974 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
25977 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
25978 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
25979 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
25980 precision estimate.
25982 2016-01-15 Richard Biener <rguenther@suse.de>
25984 PR tree-optimization/66856
25985 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
25986 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
25987 (vect_create_new_slp_node): Increment stmt reference count.
25988 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
25989 an SLP tree before swapping operands.
25990 (vect_build_slp_tree): Likewise.
25991 (destroy_bb_vec_info): Free stmt info after SLP instances.
25992 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
25993 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
25994 (STMT_VINFO_NUM_SLP_USES): New macro.
25996 2016-01-15 Richard Biener <rguenther@suse.de>
25999 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
26000 (add_linkage_name): ... here.
26001 (gen_typedef_die): Use add_linkage_name_raw instead of
26002 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
26005 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
26007 * gimplify.c (oacc_default_clause): Decode reference and pointer
26008 types for both kernels and parallel regions.
26010 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
26012 PR middle-end/69246
26013 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
26015 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26017 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
26018 (convert_scalars_to_vector): Likewise.
26020 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
26022 * doc/extend.texi (Type Traits): Fix grammar.
26024 2016-01-15 Martin Jambor <mjambor@suse.cz>
26026 * tree-inline.c (remap_decl): Use existing dclarations if
26027 remapping a type and prevent_decl_creation_for_types.
26028 (replace_locals_stmt): Do an initial remapping of non-VLA typed
26029 decls first. Do real remapping with
26030 prevent_decl_creation_for_types set.
26031 * tree-inline.h (copy_body_data): New field
26032 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
26035 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26037 * config/s390/s390.opt (mmvcle): More verbose help text.
26039 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
26041 * config/s390/s390.opt: Add period to -mzvector option text.
26043 2016-01-15 Richard Biener <rguenther@suse.de>
26045 PR tree-optimization/68961
26046 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
26047 of invariants in stores again.
26049 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26051 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
26053 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26055 * config/i386/i386.c (ix86_expand_branch): Don't split
26056 DI mode xor instruction to SI mode.
26058 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26061 * ipa-icf.c (sem_function::merge): Virtual functions may become
26062 reachable even if they address is not taken and there are no
26065 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
26067 * lto-streamer-out.c (subtract_estimated_size): New function.
26068 (get_symbol_initial_value): Use it.
26070 2016-01-15 Christian Bruel <christian.bruel@st.com>
26073 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
26074 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
26075 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
26076 use add_builtin_function_ext_scope instead of add_builtin_function.
26077 (neon_set_p, neon_crypto_set_p): Remove.
26078 (arm_init_builtins): Always call arm_init_neon_builtins and
26079 arm_init_crypto_builtins.
26080 (arm_expand_builtin): Check that builtins are allowed for the arch.
26081 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
26082 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
26083 arm_init_neon_builtins call.
26085 2016-01-15 Richard Biener <rguenther@suse.de>
26087 PR tree-optimization/69117
26088 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
26089 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
26090 of the leader conservatively.
26091 (free_scc_vn): Restore original SSA name infos.
26093 2016-01-14 Jeff Law <law@redhat.com>
26095 PR tree-optimization/69270
26096 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
26097 single bit of precision, verify it's also unsigned.
26098 (record_edge_info): Use constant_boolean_node rather than fold_convert
26099 to convert boolean_true/boolean_false to the right type.
26101 2016-01-14 Richard Henderson <rth@redhat.com>
26104 * loop-doloop.c (record_reg_sets): New.
26105 (doloop_optimize): Reject the transform if the sequence
26106 clobbers registers live at the end of the loop block.
26107 (doloop_optimize_loops): Enable df_live if needed.
26109 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26111 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
26112 * config/rs6000/rs6000.c: Likewise.
26113 * config/rs6000/rs6000.h: Likewise.
26114 * config/rs6000/rs6000.md: Likewise.
26115 * doc/extend.texi: Likewsie.
26117 2016-01-14 Jeff Law <law@redhat.com>
26119 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
26122 2016-01-14 Richard Henderson <rth@redhat.com>
26126 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
26127 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
26128 instead of builtin_decl_declared_p to test for declaration.
26130 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
26132 * doc/loop.texi (Loop Analysis and Representation): Document
26133 loop_depth function.
26135 2016-01-14 Tom de Vries <tom@codesourcery.com>
26137 PR tree-optimization/68773
26138 * omp-low.c (expand_omp_target): Don't set force_output.
26139 * varpool.c (varpool_node::get_create): Same.
26140 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
26141 offload_funcs with force_output.
26143 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26146 * lra-eliminations.c (move_plus_up): Don't change anything if either
26147 the outer or inner subreg mode is not MODE_INT.
26148 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
26149 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
26151 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26153 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
26154 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
26155 reduc_uplus_@var{m}): Remove.
26156 * expr.c (expand_expr_real_2): Remove expansion path for
26157 reduc_[us](min|max|plus) optabs.
26158 * optabs-tree.c (scalar_reduc_to_vector): Remove.
26159 * optabs-tree.h (scalar_reduc_to_vector): Remove.
26160 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
26161 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
26162 * tree-vect-loop.c (vectorizable_reduction): Remove test for
26163 reduc_[us](min|max|plus) optabs.
26165 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
26167 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
26168 (reduc_plus_scal_v2sf): New.
26169 (reduc_smax_v2sf): Rename to...
26170 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
26171 (reduc_smin_v2sf): Rename to...
26172 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
26174 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
26176 * alias.c (compare_base_symbol_refs): New function.
26177 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
26180 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26182 PR middle-end/68146
26183 PR tree-optimization/69155
26184 * tree-complex.c: Include cfganal.h.
26185 (phis_to_revisit): New variable.
26186 (extract_component): Add phiarg_p argument. Assert that returned
26187 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
26188 (update_phi_components): Partly rewrite to use loop over real/imag
26189 components instead of code duplication. If extract_component returns
26190 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
26191 create_tmp_reg into the PHI node instead, and mention the phi triplet
26192 in phis_to_revisit.
26193 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
26194 in phis_to_revisit at the end.
26196 2016-01-14 Richard Biener <rguenther@suse.de>
26198 PR tree-optimization/68060
26199 * tree-vect-loop.c (vect_is_simple_reduction): Check the
26200 outer loop reduction is only used in the inner loop before
26201 detecting a double reduction.
26203 2016-01-14 Jakub Jelinek <jakub@redhat.com>
26206 * combine.c (expand_field_assignment): Punt if compute_mode is
26207 unsupported scalar mode.
26209 2016-01-14 Richard Biener <rguenther@suse.de>
26211 PR tree-optimization/66856
26212 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
26213 SLP node only if it built successfully.
26214 (vect_analyze_slp_instance): Adjust.
26216 2016-01-14 Jeff Law <law@redhat.com>
26218 PR tree-optimization/69270
26219 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
26220 (record_edge_info): Use it. Convert boolean_{true,false}_node
26221 to the type of op0.
26223 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
26226 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
26227 use block_ultimate_origin
26228 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
26230 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26232 * doc/invoke.texi (Submodel Options): Rename section to
26233 "Machine-Dependent Options" to better reflect its content.
26234 Rewrite introductory text to remove archaic CPU names.
26237 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
26239 * doc/invoke.texi (Code Gen Options): Move section up in file,
26240 before target-specific options. Update menu and option summary
26241 to reflect the new section ordering.
26243 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26245 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
26246 (C++ Dialect Options): Add cross-reference to -std option.
26247 * doc/standards.texi (C++ Language): Document C++14 support.
26249 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
26251 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
26252 for pack/unpack functions for __ibm128.
26253 (PACK_IF): Likewise.
26254 (UNPACK_IF): Likewise.
26256 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
26257 support for __ibm128 pack/unpack functions.
26258 (rs6000_invalid_builtin): Likewise.
26259 (rs6000_init_builtins): Likewise.
26260 (rs6000_opt_masks): Likewise.
26262 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
26263 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
26265 (RS6000_BTM_COMMON): Likewise.
26267 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
26268 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
26269 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
26270 128-bit floating point. Add support for the double values to be
26271 in Altivec registers for TF/IF packing and unpacking, but restrict
26272 TD packing sub-fields to be FPR registers. Don't allow overlapped
26273 register support for packing. Allow pack inputs to be memory
26274 locations. Don't build generator functions for unpack<mode>_dm
26275 and unpack<mode>_nodm.
26276 (unpack<mode>_dm): Likewise.
26277 (unpack<mode>_nodm): Likewise.
26278 (pack<mode>): Likewise.
26280 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
26281 built-in functions to pack/unpack explicit __ibm128 values.
26282 (__builtin_unpack_ibm128): Likewise.
26284 * doc/extend.texi (PowerPC Built-in Functions): Document
26285 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
26287 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
26290 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
26291 Add new arg loc and pass it down as context.
26292 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
26293 to the location to use for the warning.
26294 (check_function_arguments): New arg loc. All callers changed. Pass
26295 it to check_function_nonnull.
26296 * c-common.h (check_function_arguments): Adjust declaration.
26298 2016-01-13 Jakub Jelinek <jakub@redhat.com>
26300 PR tree-optimization/69156
26301 * gimple.c (validate_type): Removed.
26302 (gimple_builtin_call_types_compatible_p): Use
26303 useless_type_conversion_p instead of validate_type.
26304 * value-prof.c (gimple_stringop_fixed_value): Fold
26305 icall_size to correct type.
26307 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
26309 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
26312 2016-01-13 Richard Henderson <rth@redhat.com>
26315 * target.def (builtin_tm_load, builtin_tm_store): Remove.
26316 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
26317 (ix86_builtin_tm_store): Remove.
26318 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26319 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26320 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
26321 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
26322 * doc/tm.texi: Rebuild.
26324 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
26325 (BUILT_IN_TM_MEMCPY_RTWN): New.
26326 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
26327 fallback from vector to integer helpers.
26328 (build_tm_load): Handle vector types directly, instead of
26330 (build_tm_store): Likewise.
26331 (expand_assign_tm): Prepare for register types not handled by
26332 the above. Copy them to memory and use memcpy.
26333 * tree.c (tm_define_builtin): New.
26334 (find_tm_vector_type): New.
26335 (build_tm_vector_builtins): New.
26336 (build_common_builtin_nodes): Call it.
26338 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
26340 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
26341 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
26343 2016-01-13 Tom de Vries <tom@codesourcery.com>
26345 PR tree-optimization/69169
26346 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
26347 handled_struct_type param.
26348 (create_variable_info_for, intra_create_variable_infos): Call
26349 create_variable_info_for_1 with extra arg.
26351 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
26353 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
26354 and "armv8.1-a+crc" entries.
26356 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
26359 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
26360 Change first operand predicate from register_or_constm1_operand
26361 to register_operand.
26362 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
26363 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
26364 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
26365 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
26366 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
26367 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
26368 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
26369 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
26370 comparison with constm1_rtx from vec_prefetch_gen part.
26372 2016-01-13 Richard Biener <rguenther@suse.de>
26374 PR tree-optimization/69013
26375 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
26376 Exchange assert for a test.
26378 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26381 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
26383 2016-01-13 Richard Biener <rguenther@suse.de>
26385 PR tree-optimization/69242
26386 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
26387 assert with a check.
26389 2016-01-13 Richard Biener <rguenther@suse.de>
26391 PR tree-optimization/69186
26392 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
26393 Properly guard vect_update_misalignment_for_peel call.
26395 2016-01-12 Jeff Law <law@redhat.com>
26397 PR tree-optimization/pr67755
26398 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
26399 "need_profile_correction".
26400 (thread_block_1): Initialize new field to false by default. If we
26401 have multiple thread paths through a common joiner to different
26402 final targets, then set new field to true.
26403 (compute_path_counts): Only do count adjustment when it's really
26406 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26408 * doc/invoke.texi (Spec Files): Move section down in file, past
26409 all command-line option descriptions.
26411 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26413 PR middle-end/54809
26414 * doc/gty.texi: Remove documentation of mark_hook.
26415 * gengtype.c (struct write_types_data): Remove code to support
26416 mark_hook attribute.
26417 (walk_type): Likewise.
26418 (write_func_for_structure): Likewise.
26420 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26422 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
26423 Directory Options, and -specs= to Overall Options.
26424 (Overall Options): Adjust similarly. Reorder to group related
26425 options together. Make -specs= cross-reference the spec file details.
26426 (Directory Options): Adjust similarly.
26428 2016-01-12 Jeff Law <law@redhat.com>
26430 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
26432 2016-01-12 Olivier Hainque <hainque@adacore.com>
26434 * gcc.c (spec_undefvar_allowed): New global.
26435 (process_command): Set to true when running for --version or --help,
26437 (getenv_spec_function): When the variable is not defined, use the
26438 variable name as the variable value if we're allowed not to issue
26441 2016-01-12 Bin Cheng <bin.cheng@arm.com>
26443 PR tree-optimization/68911
26444 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
26445 information computed for expression "init + nit * step".
26447 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
26449 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
26450 about name of GCC executable. Remove deleted node from menu.
26451 (Directory Options) <-B>: Remove cross-reference to deleted node.
26452 (Target Options): Delete section.
26454 2016-01-12 Christian Bruel <christian.bruel@st.com>
26457 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
26458 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
26460 2016-01-12 Jakub Jelinek <jakub@redhat.com>
26463 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
26464 aligned_mem is properly set for AVX512-VL floating point masked
26468 * ifcvt.c (cond_exec_process_if_block): When removing the last
26469 insn from then_bb, remove also any possible barriers that follow it.
26471 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
26475 * config/i386/iamcu.h (SIZE_TYPE): New macro.
26476 (PTRDIFF_TYPE): Likewise.
26477 (WCHAR_TYPE): Likewise.
26478 (WCHAR_TYPE_SIZE): Likewise.
26479 (STDINT_LONG32): Likewise.
26481 2016-01-12 Richard Biener <rguenther@suse.de>
26483 PR tree-optimization/69053
26484 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
26485 convert initial value for cond reductions.
26487 2016-01-12 Richard Biener <rguenther@suse.de>
26489 PR tree-optimization/69007
26490 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
26491 widen_sum after dot_prod and sad.
26493 2016-01-12 Richard Biener <rguenther@suse.de>
26495 PR tree-optimization/69168
26496 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
26497 pattern stmt SLP type.
26498 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
26499 end up unused so cope with that case.
26501 2016-01-12 Richard Biener <rguenther@suse.de>
26503 PR tree-optimization/69157
26504 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
26505 stmts def type only during analyze phase.
26506 (vectorizable_call): Likewise.
26507 (vectorizable_simd_clone_call): Likewise.
26508 (vectorizable_conversion): Likewise.
26509 (vectorizable_assignment): Likewise.
26510 (vectorizable_shift): Likewise.
26511 (vectorizable_operation): Likewise.
26512 (vectorizable_store): Likewise.
26513 (vectorizable_load): Likewise.
26515 2016-01-12 Richard Biener <rguenther@suse.de>
26517 PR tree-optimization/69174
26518 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
26520 (vectorizable_load): Properly compute the number of loads needed
26521 for permuted strided SLP loads and do not spuriously assign
26522 to SLP_TREE_VEC_STMTS.
26524 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
26526 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
26527 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
26528 (MD_EXEC_PREFIX): Remove.
26529 (MD_STARTFILE_PREFIX) Removee.
26530 (FILE_NAME_ABSOLUTE_P): Remove.
26531 (CPP_SPEC): Do not read macros from sys/version.h.
26532 (LINK_COMMAND_SPEC): Remove.
26533 (LOCAL_INCLUDE_DIR): Remove.
26534 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
26535 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
26536 (POST_LINK_SPEC): Define to invoke stubify after linker
26537 (LIBSTDCXX): Remove define
26538 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
26539 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
26540 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
26541 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
26542 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
26543 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
26544 (i386_djgpp_asm_named_section): Add propotype of new procedure
26546 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
26547 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
26548 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
26549 in config/i386/djgpp.h).
26550 (STANDARD_STARTFILE_PREFIX_2): Define identical to
26551 STANDARD_STARTFILE_PREFIX_1.
26552 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
26553 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
26554 installation errors.
26555 (MAX_OFILE_ALIGNMENT): Define to 128.
26556 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
26558 * config/i386/djgpp.c: New file. Add implementation of
26559 i386_djgpp_asm_named_section.
26561 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
26563 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
26564 Add rule for building djgpp.o.
26566 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26568 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
26569 (rtx_is_swappable_p): Reductions are swappable.
26570 (insn_is_swappable_p): V2DF reductions are swappable.
26572 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
26574 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
26575 reloads for other unsupported memory operands.
26577 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
26578 Jim Wilson <jim.wilson@linaro.org>
26581 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
26582 copy_to_mode_reg instead of force_reg.
26584 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26587 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
26588 TARGET_80387 is true.
26590 2016-01-11 Jakub Jelinek <jakub@redhat.com>
26593 * lra-eliminations.c (move_plus_up): Only move plus up
26594 if subreg of the constant can be simplified into constant
26595 and use the simplified subreg of the constant instead of
26596 the original constant.
26598 * fold-const.c (fold_convertible_p): Don't return true
26599 for conversion of VECTOR_TYPE to same sized integral type.
26600 (fold_convert_loc): Fix up formatting. Fold conversion of
26601 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
26602 instead of NOP_EXPR.
26604 PR tree-optimization/69214
26605 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
26606 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26609 PR tree-optimization/69207
26610 * tree-vect-slp.c (vect_get_constant_vectors): For
26611 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
26612 fold_convertible_p to vector_type's element type, and always
26613 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
26615 2016-01-11 Richard Biener <rguenther@suse.de>
26617 PR tree-optimization/69173
26618 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
26619 fixup the cycle if all stmts are in a pattern.
26621 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
26623 PR middle-end/68999
26624 * alias.c (base_alias_check): Move check for addresses with
26625 alignment ANDs before the call for compare_base_decls.
26626 (memrefs_conflict_p): Return -1 for different decls
26627 that went through alignment adjustments.
26629 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26631 PR rtl-optimization/68796
26632 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
26633 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
26634 and QImode comparisons against zero with CC_NZmode.
26635 * config/aarch64/iterators.md (short_mask): New mode_attr.
26637 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
26639 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
26640 (<avx512>_store<mode>_mask): Likewise.
26642 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
26643 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26645 PR rtl-optimization/68841
26646 * ifcvt.c (struct noce_if_info): Add orig_x field.
26647 (bbs_ok_for_cmove_arith): Add to_rename parameter.
26648 Don't record conflicts on to_rename if it's present.
26649 Allow memory destinations in sets.
26650 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
26651 blocks, passing orig_x to the checks.
26652 (noce_process_if_block): Set if_info->orig_x appropriately.
26654 2016-01-11 Tom de Vries <tom@codesourcery.com>
26656 PR tree-optimization/69069
26657 * tree-parloops.c (create_parallel_loop): Add missing phi args.
26659 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
26661 PR rtl-optimization/68920
26662 * config/i386/i386.c (ix86_option_override_internal): Restrict number
26663 of conditional moves for RTL if-conversion to 1 for
26664 TARGET_ONE_IF_CONV_INSN.
26665 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
26666 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
26667 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
26668 parameter to restirct number of conditional moves for
26670 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
26671 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
26674 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
26677 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
26678 onepart vars. Fix typo in comment. Fix reversed condition in
26680 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
26683 * var-tracking.c (dump_onepart_variable_differences): New.
26684 (dataflow_set_different): If a detailed dump is requested,
26685 delay early returns and dump differences between onepart
26686 variables present before and after, and added variables.
26688 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
26691 * expr.c (expand_expr_real_1): For boolean vector constants
26692 with a scalar mode use const_scalar_mask_from_tree.
26693 (const_scalar_mask_from_tree): New.
26694 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
26695 assigned to a mask type to handle constants.
26697 2016-01-11 Martin Jambor <mjambor@suse.cz>
26700 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
26701 useless parameters if we cannot change function signature.
26703 2016-01-11 Martin Jambor <mjambor@suse.cz>
26706 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
26709 2016-01-11 Tom de Vries <tom@codesourcery.com>
26711 PR tree-optimization/69109
26712 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
26715 2016-01-11 Tom de Vries <tom@codesourcery.com>
26717 PR tree-optimization/69108
26718 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26719 res is not used in a phi.
26721 2016-01-11 Yury Gribov <y.gribov@samsung.com>
26724 * common.opt (frandom-seed): Fix parameter name.
26725 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26727 2016-01-11 Tom de Vries <tom@codesourcery.com>
26729 PR tree-optimization/69058
26730 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26733 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
26735 * config/arc/arc.opt (mdiv-rem): Add period to the end.
26736 (mcode-density): Likewise.
26738 2016-01-10 Tom de Vries <tom@codesourcery.com>
26740 PR tree-optimization/69062
26741 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26742 (parallelize_loops): Don't paralelize loop that has phi with address
26745 2016-01-10 Tom de Vries <tom@codesourcery.com>
26747 PR tree-optimization/69039
26748 * tree-parloops.c (try_create_reduction_list): Only allow single exit
26751 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
26753 PR middle-end/68743
26754 * match.pd: Require target has function_c99_misc before doing
26755 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26757 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
26759 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26761 * configure: Regenerate.
26763 2016-01-09 Jakub Jelinek <jakub@redhat.com>
26765 PR middle-end/50865
26766 PR tree-optimization/69097
26767 * fold-const.h (expr_not_equal_to): New prototype.
26768 * fold-const.c: Include stringpool.h and tree-ssanames.h.
26769 (expr_not_equal_to): New function.
26770 * match.pd (X % -Y is the same as X % Y): Don't optimize
26771 unless X is known not to be equal to minimum or Y is known
26772 not to be equal to -1.
26773 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26774 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26775 (simplify_stmt_using_ranges): Adjust caller.
26776 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26777 substitute_and_fold.
26779 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
26781 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26784 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26786 PR tree-optimization/69167
26787 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26788 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26790 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26792 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26793 Richard Biener <rguenther@suse.de>
26795 PR tree-optimization/68707
26796 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26797 instances that can be handled via vect_load_lanes.
26799 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
26801 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26802 if we can't determine address equivalence.
26803 * alias.c (compare_base_decl): Update for changed return value of
26804 symtab_node::equal_address_to.
26806 2016-01-08 Jason Merrill <jason@redhat.com>
26810 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26811 * expr.c (store_field): Not here.
26812 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26813 call with TREE_ADDRESSABLE type.
26814 * tree-cfg.c (verify_gimple_call): Adjust.
26816 2016-01-08 Olivier Hainque <hainque@adacore.com>
26818 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26821 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
26823 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26824 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26825 (reduc_smin_v2sf): Rename to...
26826 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26827 (reduc_splus_v2sf): Rename to...
26828 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26830 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26832 PR tree-optimization/69162
26833 * gimplify.c (gimplify_va_arg_expr): Encode original type of
26834 valist argument in another argument.
26835 (gimplify_modify_expr): Adjust for the above change. Cleanup.
26836 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26837 to determine the va_list type, build a MEM_REF instead of
26838 build_fold_indirect_ref.
26840 PR tree-optimization/69172
26841 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26844 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
26846 PR tree-optimization/67781
26847 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26848 and cmpnop in two steps: first the ones not accessed in original
26849 gimple expression in a endian independent way and then the ones not
26850 accessed in the final result in an endian-specific way.
26852 2016-01-08 Jakub Jelinek <jakub@redhat.com>
26854 PR tree-optimization/69083
26855 * tree-vect-slp.c (vect_get_constant_vectors): For
26856 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26857 element type. If op is fold_convertible_p to vector_type's element
26858 type, use NOP_EXPR instead of VCE.
26860 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
26862 PR rtl-optimization/67778
26863 PR rtl-optimization/68634
26864 PR rtl-optimization/68909
26865 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
26866 block from the stack until done with it. Remove a superfluous
26867 bitmap set. Remove a superfluous bitmap test.
26869 2016-01-07 Martin Sebor <msebor@redhat.com>
26872 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26873 constraint on the type of arguments.
26875 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
26877 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26878 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26879 unaligned_access on the gcc_options set.
26880 * config/arm/arm.c (arm_option_override_internal): Use
26881 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26883 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26886 * config/i386/i386.c (ix86_frame_pointer_required): Enable
26887 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26889 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
26892 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26895 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26896 depending on frame_pointer_needed before remaining integer and SSE
26897 registers are saved.
26899 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
26902 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26904 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
26907 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26908 Use the "xBm" constraint.
26909 (float<sseintvecmodelower><mode>2<mask_name><round_name):
26911 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26912 (sse_cvtsi2ssq<round_name>): Likewise.
26913 (sse_cvtss2si<round_name>): Likewise.
26914 (sse_cvtss2siq<round_name>): Likewise.
26915 (sse2_cvtsi2sdq<round_name>): Likewise.
26916 (sse2_cvtsd2si<round_name>): Likewise.
26917 (sse2_cvtsd2siq<round_name>): Likewise.
26918 * config/i386/subst.md (round_nimm_scalar_predicate): New
26921 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
26923 PR middle-end/67639
26924 * varasm.c (make_decl_rtl): Mark invalid register vars as
26927 PR rtl-optimization/66206
26928 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26929 All callers changed.
26931 2016-01-07 Jakub Jelinek <jakub@redhat.com>
26933 PR tree-optimization/69141
26934 * tree-ssa-pre.c: Include langhooks.h.
26935 (eliminate_dom_walker::before_dom_children): Use
26936 lang_hooks.decl_printable_name instead of
26937 cgraph_node::get ()->name ().
26939 PR middle-end/68960
26940 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26941 it and DECL_ALIGN too.
26943 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
26945 * config/mips/mips-ftypes.def: Sort to lexicographical order.
26947 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
26950 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26951 depending on frame_pointer_needed before remaining integer and SSE
26952 registers are saved.
26954 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26956 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
26957 mode iterator with VSX_M2.
26958 (*p9_vecstore_<mode>): Likewise.
26959 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
26960 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
26961 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
26962 (define_split for VSX_LE128 stores): Likewise.
26963 (define_peephole2 for TImode LE swaps): Likewise.
26964 (define_split for VSX_LE128 post-reload stores): Likewise.
26966 2016-01-06 Marek Polacek <polacek@redhat.com>
26969 * convert.c (convert_to_integer_1): Adjust call to
26970 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
26971 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
26972 EXPR instead of ARG.
26973 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
26975 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
26978 * doc/extend.texi (RL78 Variable Attributes): New section.
26980 2016-01-05 Marek Polacek <polacek@redhat.com>
26983 * builtins.c (get_memmodel): Use expansion point location rather than
26984 the input location. Call warning_at rather than warning.
26985 (expand_builtin_atomic_compare_exchange): Likewise.
26986 (expand_builtin_atomic_load): Likewise.
26987 (expand_builtin_atomic_store): Likewise.
26988 (expand_builtin_atomic_clear): Likewise.
26990 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
26993 * config/i386/i386.c (ix86_expand_vector_logical_operator):
26994 Replace nonimmediate_operand with vector_operand.
26995 * config/i386/predicates.md (vector_operand): New predicate.
26996 (general_vector_operand): Replace nonimmediate_operand with
26998 * config/i386/sse.md: Replace nonimmediate_operand with
26999 vector_operand and m constraint with Bm constraint on SSE
27000 patterns with 16-byte memory operand.
27001 * config/i386/subst.md (round_nimm_predicate): Replace
27002 nonimmediate_operand with vector_operand.
27003 (round_saeonly_nimm_predicate): Likewise.
27004 (round_saeonly_nimm_scalar_predicate): New.
27006 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
27009 * config/i386/constraints.md (Bm): New constraint.
27010 * config/i386/predicates.md (vector_memory_operand): New
27012 * config/i386/sse.md: Replace xm with xBm in plusminus and
27013 any_logic patterns.
27015 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27018 * doc/extend.texi (V850 Function Attributes): New section.
27019 (V850 Variable Attributes): New section.
27021 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
27024 * doc/extend.texi (MicroBlaze Function Attributes): Document
27025 interrupt_handler and fast_interrupt attributes.
27027 2016-01-05 Sergei Trofimovich <siarheit@google.com>
27030 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
27031 for local symbolic operands.
27032 * config/ia64/predicates.md (local_symbolic_operand64): New
27035 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27037 PR rtl-optimization/68651
27038 * combine.c (combine_simplify_rtx): Canonicalize x + x into
27041 2016-01-05 Nathan Sidwell <nathan@acm.org>
27043 * alias.c (compare_base_decls): Use symtab_node::get.
27045 2016-01-05 Nick Clifton <nickc@redhat.com>
27048 * ira-costs.c (copy_cost): Initialise the t_icode field of the
27049 secondary_reload_info structure.
27052 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
27053 decls if weak support is available.
27055 2016-01-04 Martin Sebor <msebor@redhat.com>
27057 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
27059 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
27061 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
27062 OPTION_MASK_P9_DFORM.
27064 * config/rs6000/constraints.md (wo constraint): New constraint for
27067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
27069 (rs6000_init_hard_regno_mode_ok): Likewise.
27071 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
27074 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
27075 expanders not to have constraints. Add support for ISA 3.0 xxperm
27076 instruction. Add support for fusing xxlor with xxperm.
27077 (altivec_vperm_<mode>_internal): Likewise.
27078 (altivec_vperm_v8hiv16qi): Likewise.
27079 (altivec_vperm_<mode>v16q): Likewise.
27080 (altivec_vperm_<mode>_uns): Likewise.
27081 (vperm_v8hiv4si): Likewise.
27082 (vperm_v16qiv8hi): Likewise.
27084 * doc/md.texi (RS/6000 constraints): Document wo constraint.
27086 2016-01-04 Jakub Jelinek <jakub@redhat.com>
27088 Update copyright years.
27090 * gcc.c (process_command): Update copyright notice dates.
27091 * gcov-dump.c (print_version): Ditto.
27092 * gcov.c (print_version): Ditto.
27093 * gcov-tool.c (print_version): Ditto.
27094 * gengtype.c (create_file): Ditto.
27095 * doc/cpp.texi: Bump @copying's copyright year.
27096 * doc/cppinternals.texi: Ditto.
27097 * doc/gcc.texi: Ditto.
27098 * doc/gccint.texi: Ditto.
27099 * doc/gcov.texi: Ditto.
27100 * doc/install.texi: Ditto.
27101 * doc/invoke.texi: Ditto.
27103 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27105 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
27106 modes larger than TImode as TImode if NEON is not enabled.
27108 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27111 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
27112 mode for %f0-%f31 only if TARGET_FPU.
27114 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
27117 * config/sparc/sparc.c (scan_record_type): Take into account subfields
27118 to compute the PACKED_P predicate.
27119 (function_arg_record_value): Minor tweaks.
27121 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
27123 * doc/install.texi (--with-multilib-list): Describe the meaning of the
27124 option for arm*-*-* targets.
27126 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
27128 * doc/extend.texi (Common Function Attributes): Move docs for
27129 MSP430-specific attributes to....
27130 (MSP430 Function Attributes): ...here. Delete the redundant
27131 entries and copy-edit the remaining text.
27132 (MSP430 Variable Attributes): Use uniform format for index
27133 entries and add a cross-reference to the corresponding function
27136 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
27138 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
27140 (x86 Options): Likewise.
27142 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27146 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
27147 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
27148 to corresponding attribute.
27150 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
27152 * doc/extend.texi (Common Function Attributes) <noplt>: Move
27153 to correct alphabetization of table. Copy-edit and correct
27155 <stack_protect>: Likewise.
27156 <target_clones>: Likewise.
27158 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
27159 Correct punctuation.
27160 (Code Gen Options) <-fno-plt>: Copy-edit.
27162 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
27165 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
27166 SI values. Explicitly convert SI to DI and vice-versa.
27168 2016-01-01 Jakub Jelinek <jakub@redhat.com>
27170 PR tree-optimization/69070
27171 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
27172 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
27175 * ubsan.c (ubsan_instrument_float_cast): Call
27176 initialize_sanitizer_builtins.
27179 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
27181 Copyright (C) 2016 Free Software Foundation, Inc.
27183 Copying and distribution of this file, with or without modification,
27184 are permitted in any medium without royalty provided the copyright
27185 notice and this notice are preserved.