1 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * config/i386/i386.c (ix86_print_operand)
4 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
5 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
6 (epilogue_renumber): Likewise.
8 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
11 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs to get lhs
12 instead of gimple_assign_lhs as stmt can be builtins too.
14 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
16 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
17 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
18 is_mm_seq_cst, is_mm_sync): Move to ...
19 * memmodel.h: This. New file.
20 * builtins.c: Include memmodel.h.
23 * config/aarch64/aarch64.c: Likewise.
24 * config/alpha/alpha.c: Likewise.
25 * config/arm/arm.c: Likewise.
26 * config/i386/i386.c: Likewise.
27 * config/ia64/ia64.c: Likewise.
28 * config/mips/mips.c: Likewise.
29 * config/rs6000/rs6000.c: Likewise.
30 * config/sparc/sparc.c: Likewise.
31 * genconditions.c: Include memmodel.h in generated file.
32 * genemit.c: Likewise.
33 * genoutput.c: Likewise.
34 * genpeep.c: Likewise.
35 * genpreds.c: Likewise.
36 * genrecog.c: Likewise.
38 2016-09-26 David Malcolm <dmalcolm@redhat.com>
40 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
41 "c" instead when parsing characters. Move operand parsing into...
42 (read_rtx_operand): ...this new function, renaming "i" to "idx",
43 and tightening the scope of various locals.
45 2016-09-26 LH Mouse <lh_mouse@126.com>
47 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
49 2016-09-26 Marek Polacek <polacek@redhat.com>
51 * system.h: Use __has_attribute to check whether the fallthrough
52 attribute is supported.
54 2016-09-26 Marek Polacek <polacek@redhat.com>
56 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
57 gimple_call_internal_p.
58 * ipa-split.c (find_return_bb): Likewise.
59 (execute_split_functions): Likewise.
60 * omp-low.c (dump_oacc_loop_part): Likewise.
61 (oacc_loop_xform_head_tail): Likewise.
62 * predict.c (predict_loops): Likewise.
63 * sanopt.c (pass_sanopt::execute): Likewise.
64 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
65 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
66 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
67 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
68 (expand_ifn_va_arg): Likewise.
69 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
70 (optimize_mask_stores): Likewise.
71 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
72 (vect_transform_stmt): Likewise.
73 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
74 * tsan.c (instrument_memory_accesses): Likewise.
76 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
77 Alexander Monakov <amonakov@ispras.ru>
79 * regrename.c (rename_chains): Check
80 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
81 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
82 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
84 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
86 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
87 (s390_sched_score): Likewise.
89 2016-09-26 Martin Liska <mliska@suse.cz>
91 * doc/gcov.texi: Update program output of gcov tool.
93 2016-09-26 Martin Liska <mliska@suse.cz>
96 * profile.c (instrument_values): Do not handle
97 HIST_TYPE_CONST_DELTA.
98 * tree-profile.c (gimple_gen_const_delta_profiler):
100 * value-prof.c (dump_histogram_value): Do not handle
101 HIST_TYPE_CONST_DELTA.
102 (stream_in_histogram_value): Likewise.
103 (gimple_find_values_to_profile): Likewise.
104 * value-prof.h (enum hist_type): Likewise.
106 2016-09-26 Martin Liska <mliska@suse.cz>
108 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
109 from default sanitize recover values.
110 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
111 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
112 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
114 * opts.c (finish_options): Do a generic loop over options
115 that can be recovered.
116 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
118 (common_handle_option): Likewise.
119 * opts.h: Declare can_recover to sanitizer_opts_s.
121 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
123 * target.def(elf_flags_numeric): Change documentation to
125 * doc/tm.texi: Regenerate.
127 2016-09-26 Marek Polacek <polacek@redhat.com>
130 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
131 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
132 -Wno-switch-fallthrough.
133 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
134 (expand_builtin): Likewise.
135 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
136 * convert.c (convert_to_real_1): Likewise.
137 (convert_to_integer_1): Likewise.
138 * final.c (output_alternate_entry_point): Likewise.
139 * genattrtab.c (make_canonical): Likewise.
140 (write_test_expr): Likewise.
141 * genpreds.c (validate_exp): Likewise.
142 * gimple-ssa-strength-reduction.c
143 (find_candidates_dom_walker::before_dom_children): Likewise.
144 * godump.c (go_format_type): Likewise.
145 * reload1.c (elimination_effects): Likewise.
146 * resource.c (mark_referenced_resources): Likewise.
147 (mark_set_resources): Likewise.
148 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
149 * varasm.c (output_addressed_constants): Likewise.
151 2016-09-26 Marek Polacek <polacek@redhat.com>
154 * common.opt (Wimplicit-fallthrough): New option.
155 * doc/extend.texi: Document statement attributes and the fallthrough
157 * doc/invoke.texi: Document -Wimplicit-fallthrough.
158 * gimple.h (gimple_call_internal_p): New function.
159 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
160 (struct label_entry): New struct.
161 (find_label_entry): New function.
162 (case_label_p): New function.
163 (collect_fallthrough_labels): New function.
164 (last_stmt_in_scope): New function.
165 (should_warn_for_implicit_fallthrough): New function.
166 (warn_implicit_fallthrough_r): New function.
167 (maybe_warn_implicit_fallthrough): New function.
168 (expand_FALLTHROUGH_r): New function.
169 (expand_FALLTHROUGH): New function.
170 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
171 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
172 (gimplify_label_expr): New function.
173 (gimplify_case_label_expr): Set location.
174 (gimplify_expr): Call gimplify_label_expr.
175 * internal-fn.c (expand_FALLTHROUGH): New function.
176 * internal-fn.def (FALLTHROUGH): New internal function.
177 * langhooks.c (lang_GNU_OBJC): New function.
178 * langhooks.h (lang_GNU_OBJC): Declare.
179 * system.h (gcc_fallthrough): Define.
180 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
181 * tree.h (FALLTHROUGH_LABEL_P): Define.
183 2016-09-26 Richard Biener <rguenther@suse.de>
185 * dwarf2out.c (stripattributes): Remove unused function.
186 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
187 Push dwarf_split_debug_info handling into init_sections_and_labels.
188 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
189 (DEBUG_MACRO_SECTION_FLAGS): Remove.
190 (debug_macinfo_section_name): New global.
191 (output_macinfo): Use debug_macinfo_section_name.
192 (init_sections_and_labels): Split out section and label generation
193 from dwarf2out_init. Set debug_macinfo_section_name.
194 (dwarf2out_init): Move text section label generation and emission
196 (dwarf2out_assembly_start): ... here.
197 (dwarf2out_finish): Call init_sections_and_labels before DWARF
200 2016-09-26 Richard Biener <rguenther@suse.de>
203 * cgraphunit.c (analyze_functions): Before early removing
204 global vars calls the late_global_decl debug handler mark
205 the variable as readonly.
207 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
210 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
211 (sh_rtx_costs): Handle SET of movt and movrt patterns.
212 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
213 declare new overloads.
214 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
217 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
219 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
220 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
222 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
224 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
225 * configure: Regenerate.
227 2016-09-24 Marek Polacek <polacek@redhat.com>
230 * doc/invoke.texi: Document -Wbool-operation.
232 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
234 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
235 * config/rs6000/rs6000.c (expand_block_compare): New function used by
236 cmpmemsi pattern to do builtin expansion of memcmp ().
237 (compute_current_alignment): Add helper function for
238 expand_block_compare used to compute alignment as the compare proceeds.
239 (select_block_compare_mode): Used by expand_block_compare to select
240 the mode used for reading the next chunk of bytes in the compare.
241 (do_load_for_compare): Used by expand_block_compare to emit the load
242 insns for the compare.
243 (rs6000_emit_dot_insn): Moved this function to avoid a forward
244 reference from expand_block_compare ().
245 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
246 prototype for this function.
247 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
248 target option for controlling how much code inline expansion of
249 memcmp() will be allowed to generate.
251 2016-09-23 Jakub Jelinek <jakub@redhat.com>
253 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
254 hook_bool_mode_false, hook_bool_mode_true,
255 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
256 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
257 hook_bool_const_rtx_insn_const_rtx_insn_true,
258 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
259 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
260 hook_bool_const_tree_hwi_hwi_const_tree_false,
261 hook_bool_const_tree_hwi_hwi_const_tree_true,
262 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
263 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
264 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
265 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
266 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
267 hook_bool_const_tree_true, hook_bool_tree_tree_false,
268 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
269 hook_bool_rtx_insn_true, hook_bool_rtx_false,
270 hook_bool_uintp_uintp_false,
271 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
272 hook_rtx_tree_int_null, hook_uint_mode_0,
273 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
274 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
275 hook_constcharptr_const_rtx_insn_null,
276 hook_constcharptr_const_tree_const_tree_null,
277 hook_constcharptr_int_const_tree_null,
278 hook_constcharptr_int_const_tree_const_tree_null,
279 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
280 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
281 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
283 * vec.h (vNULL): Extend comment to say = vNULL initialization
284 isn't needed for static vars.
286 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
287 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
288 = vNULL initialization of file scope vec.
289 * passes.c (pass_tab, enabled_pass_uid_range_tab,
290 disabled_pass_uid_range_tab): Likewise.
291 * haifa-sched.c (sched_luids, h_i_d): Likewise.
292 * tree-chkp-opt.c (check_infos): Likewise.
293 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
295 * vec.h (vnull::operator vec): Add constexpr keyword for
298 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
300 PR tree-optimization/77654
301 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
302 to duplicate_ssa_name_ptr_info.
304 2016-09-23 David Malcolm <dmalcolm@redhat.com>
306 PR preprocessor/77672
307 * input.c (selftest::test_lexer_string_locations_simple): Update
308 test to expect location information of the terminator character
309 at the location of the final closing quote.
310 (selftest::test_lexer_string_locations_hex): Likewise.
311 (selftest::test_lexer_string_locations_oct): Likewise.
312 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
313 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
314 (selftest::test_lexer_string_locations_ucn4): Likewise.
315 (selftest::test_lexer_string_locations_ucn8): Likewise.
316 (selftest::test_lexer_string_locations_u8): Likewise.
317 (selftest::test_lexer_string_locations_utf8_source): Likewise.
318 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
319 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
320 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
321 (selftest::test_lexer_string_locations_macro): Likewise.
322 (selftest::test_lexer_string_locations_long_line): Likewise.
324 2016-09-23 Richard Biener <rguenther@suse.de>
326 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
327 virtual definition to virtual use if the call devirtualizes
328 to a const or pure function.
329 (visit_use): Also visit calls we can devirtualize to a
330 const or pure function.
332 2016-09-23 Richard Biener <rguenther@suse.de>
334 PR tree-optimization/77697
335 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
336 signal error if we have sth ternary or unhandled.
338 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
340 * config/arm/arm_neon.h (vabd_f16): New.
378 (vcvtq_f16_s16): New.
379 (vcvtq_f16_u16): New.
380 (vcvtq_s16_f16): New.
381 (vcvtq_u16_f16): New.
382 (vcvta_s16_f16): New.
383 (vcvta_u16_f16): New.
384 (vcvtaq_s16_f16): New.
385 (vcvtaq_u16_f16): New.
386 (vcvtm_s16_f16): New.
387 (vcvtm_u16_f16): New.
388 (vcvtmq_s16_f16): New.
389 (vcvtmq_u16_f16): New.
390 (vcvtn_s16_f16): New.
391 (vcvtn_u16_f16): New.
392 (vcvtnq_s16_f16): New.
393 (vcvtnq_u16_f16): New.
394 (vcvtp_s16_f16): New.
395 (vcvtp_u16_f16): New.
396 (vcvtpq_s16_f16): New.
397 (vcvtpq_u16_f16): New.
398 (vcvt_n_f16_s16): New.
399 (vcvt_n_f16_u16): New.
400 (vcvtq_n_f16_s16): New.
401 (vcvtq_n_f16_u16): New.
402 (vcvt_n_s16_f16): New.
403 (vcvt_n_u16_f16): New.
404 (vcvtq_n_s16_f16): New.
405 (vcvtq_n_u16_f16): New.
419 (vmul_lane_f16): New.
422 (vmulq_lane_f16): New.
452 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
454 * config.gcc (extra_headers): Add arm_fp16.h
455 * config/arm/arm_fp16.h: New.
456 * config/arm/arm_neon.h: Include "arm_fp16.h".
458 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
460 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
462 (vmulf): New (v8hf, v4hf variants).
463 (vfma): New (v8hf, v4hf variants).
464 (vfms): New (v8hf, v4hf variants).
465 (vsub): New (v8hf, v4hf variants).
466 (vcage): New (v8hf, v4hf variants).
467 (vcagt): New (v8hf, v4hf variants).
468 (vcale): New (v8hf, v4hf variants).
469 (vcalt): New (v8hf, v4hf variants).
470 (vceq): New (v8hf, v4hf variants).
471 (vcgt): New (v8hf, v4hf variants).
472 (vcge): New (v8hf, v4hf variants).
473 (vcle): New (v8hf, v4hf variants).
474 (vclt): New (v8hf, v4hf variants).
475 (vceqz): New (v8hf, v4hf variants).
476 (vcgez): New (v8hf, v4hf variants).
477 (vcgtz): New (v8hf, v4hf variants).
478 (vcltz): New (v8hf, v4hf variants).
479 (vclez): New (v8hf, v4hf variants).
480 (vabd): New (v8hf, v4hf variants).
481 (vmaxf): New (v8hf, v4hf variants).
482 (vmaxnm): New (v8hf, v4hf variants).
483 (vminf): New (v8hf, v4hf variants).
484 (vminnm): New (v8hf, v4hf variants).
485 (vpmaxf): New (v4hf variant).
486 (vpminf): New (v4hf variant).
487 (vpadd): New (v4hf variant).
488 (vrecps): New (v8hf, v4hf variants).
489 (vrsqrts): New (v8hf, v4hf variants).
490 (vabs): New (v8hf, v4hf variants).
491 (vneg): New (v8hf, v4hf variants).
492 (vrecpe): New (v8hf, v4hf variants).
493 (vrnd): New (v8hf, v4hf variants).
494 (vrnda): New (v8hf, v4hf variants).
495 (vrndm): New (v8hf, v4hf variants).
496 (vrndn): New (v8hf, v4hf variants).
497 (vrndp): New (v8hf, v4hf variants).
498 (vrndx): New (v8hf, v4hf variants).
499 (vrsqrte): New (v8hf, v4hf variants).
500 (vmul_lane): Add v4hf and v8hf variants.
501 (vmul_n): Add v4hf and v8hf variants.
502 (vext): New (v8hf, v4hf variants).
503 (vcvts): New (v8hi, v4hi variants).
504 (vcvts): New (v8hf, v4hf variants).
505 (vcvtu): New (v8hi, v4hi variants).
506 (vcvtu): New (v8hf, v4hf variants).
507 (vcvts_n): New (v8hf, v4hf variants).
508 (vcvtu_n): New (v8hi, v4hi variants).
509 (vcvts_n): New (v8hi, v4hi variants).
510 (vcvtu_n): New (v8hf, v4hf variants).
511 (vbsl): New (v8hf, v4hf variants).
512 (vcvtas): New (v8hf, v4hf variants).
513 (vcvtau): New (v8hf, v4hf variants).
514 (vcvtms): New (v8hf, v4hf variants).
515 (vcvtmu): New (v8hf, v4hf variants).
516 (vcvtns): New (v8hf, v4hf variants).
517 (vcvtnu): New (v8hf, v4hf variants).
518 (vcvtps): New (v8hf, v4hf variants).
519 (vcvtpu): New (v8hf, v4hf variants).
521 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
523 * config/arm/arm-builtins.c (hf_UP): New.
525 (vfp_builtin_data): New. Update comment.
526 (enum arm_builtins): Include "arm_vfp_builtins.def".
527 (ARM_BUILTIN_VFP_PATTERN_START): New.
528 (arm_init_vfp_builtins): New.
529 (arm_init_builtins): Add arm_init_vfp_builtins.
530 (arm_expand_vfp_builtin): New.
531 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
533 * config/arm/arm_vfp_builtins.def: New file.
534 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
535 (arm-builtins.o): Likewise.
537 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
540 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
541 from constant while creating value range.
543 2016-09-23 Renlin Li <renlin.li@arm.com>
545 * ira.c (ira): Move ira_use_lra_p initialization code to ...
546 (ira_init_once): Here.
548 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
549 Jakub Jelinek <jakub@redhat.com>
551 * hooks.h (hook_uint_uintp_false): Rename to...
552 (hook_bool_uint_uintp_false): ... this.
553 * hooks.c (hook_uint_uintp_false): Rename to...
554 (hook_bool_uint_uintp_false): ... this.
555 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
556 instead of hook_uint_uintp_false.
558 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
560 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
561 (arm_init_builtins): Move body of a loop to the standalone
562 function arm_init_neon_builtin.
563 (arm_expand_neon_builtin_1): New. Update comment. Function body
564 moved from arm_neon_builtin with some white-space fixes.
565 (arm_expand_neon_builtin): Move code into the standalone function
566 arm_expand_neon_builtin_1.
568 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
570 * config/arm/iterators.md (VCVTHI): New.
571 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
575 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
576 (V_HALF): Add V4HF. Fix white-space.
577 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
578 (V_s_elem): Likewise.
579 (V_sz_elem): Fix white-space.
580 (V_elem_ch): Likewise.
582 (scalar_mul_constraint): Add V8HF and V4HF.
583 (Is_float_mode): Fix white-space.
584 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
585 (q): Add HF. Fix white-space.
588 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
589 (neon_vfm_lane_as): New.
590 * config/arm/neon.md (add<mode>3_fp16): New.
591 (sub<mode>3_fp16): New.
592 (mul<mode>3add<mode>_neon): New.
593 (fma<VH:mode>4_intrinsic): New.
594 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
595 (fmsub<VH:mode>4_intrinsic): New.
596 (<absneg_str><mode>2): New.
597 (neon_v<absneg_str><mode>): New.
598 (neon_v<fp16_rnd_str><mode>): New.
599 (neon_vrsqrte<mode>): New.
600 (neon_vpaddv4hf): New.
601 (neon_vadd<mode>): New.
602 (neon_vsub<mode>): New.
603 (neon_vmulf<mode>): New.
604 (neon_vfma<VH:mode>): New.
605 (neon_vfms<VH:mode>): New.
606 (neon_vc<cmp_op><mode>): New.
607 (neon_vc<cmp_op><mode>_fp16insn): New
608 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
609 (neon_vca<cmp_op><mode>): New.
610 (neon_vca<cmp_op><mode>_fp16insn): New.
611 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
612 (neon_vc<cmp_op>z<mode>): New.
613 (neon_vabd<mode>): New.
614 (neon_v<maxmin>f<mode>): New.
615 (neon_vp<maxmin>fv4hf: New.
616 (neon_<fmaxmin_op><mode>): New.
617 (neon_vrecps<mode>): New.
618 (neon_vrsqrts<mode>): New.
619 (neon_vrecpe<mode>): New (VH variant).
620 (neon_vdup_lane<mode>_internal): New.
621 (neon_vdup_lane<mode>): New.
622 (neon_vcvt<sup><mode>): New (VCVTHI variant).
623 (neon_vcvt<sup><mode>): New (VH variant).
624 (neon_vcvt<sup>_n<mode>): New (VH variant).
625 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
626 (neon_vcvt<vcvth_op><sup><mode>): New.
627 (neon_vmul_lane<mode>): New.
628 (neon_vmul_n<mode>): New.
629 * config/arm/unspecs.md (UNSPEC_VCALE): New
631 (UNSPEC_VFMA_LANE): New.
632 (UNSPECS_VFMS_LANE): New.
634 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
636 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
637 ("*extzv<mode><clobbercc_or_nocc>"):
638 Correct a typo in a comment.
640 ("*insv<mode>_zEC12", "*insv<mode>_z10")
641 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
642 ("*insv<mode>_zEC12_appendbitsleft")
643 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
644 ("*insv<mode>_z10_appendbitsleft"): Ditto.
645 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
646 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
647 Provide pattern with operands switched.
648 ("*pre_z10_extv<mode>"):
649 Use new subst patterns.
650 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
651 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
652 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
653 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
654 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
655 ("*<risbg_n>_sidi_ior_and_lshiftrt")
656 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
658 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
659 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
660 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
662 ("SINT"): New mode_iterator with SI, HI, QI.
663 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
664 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
667 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
669 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to new
670 interface of s390_contiguous_bitmask_p.
671 ("contiguous_bitmask_nowrap_operand"): New predicate.
672 * ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
673 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
674 of s390_contiguous_bitmask_p.
675 * ("NxxDw"): Rename NxxDq constraint to NxxDw.
676 ("NxxSw"): New constraint.
677 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
678 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
680 (s390_contiguous_bitmask_nowrap_p): Export.
681 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
682 former s390_contiguous_bitmask_p.
683 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
684 detect contiguous bit ranges with wraparound. Change signature to
685 return START and END position instead of POS and LENGTH.
686 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
687 ranges with wraparound.
688 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
689 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
690 Adapt to new signature of s390_contiguous_bitmask_p.
692 2016-09-23 Bin Cheng <bin.cheng@arm.com>
694 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
695 (create_intersect_range_checks): New.
696 (vect_create_cond_for_alias_checks): Call above function.
698 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
700 * config/arm/iterators.md (Code iterators): Fix some white-space
704 (FCVT): Moved from vfp.md.
711 (FCVTI32typename): Moved from vfp.md.
712 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
713 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
714 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
715 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
716 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
719 (fp16_rnd_insn): New.
720 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
721 (UNSPEC_VCVT_HF_U_N): New.
722 (UNSPEC_VCVT_SI_S_N): New.
723 (UNSPEC_VCVT_SI_U_N): New.
724 (UNSPEC_VCVTH_S): New.
725 (UNSPEC_VCVTH_U): New.
726 (UNSPEC_VCVTA_S): New.
727 (UNSPEC_VCVTA_U): New.
728 (UNSPEC_VCVTM_S): New.
729 (UNSPEC_VCVTM_U): New.
730 (UNSPEC_VCVTN_S): New.
731 (UNSPEC_VCVTN_U): New.
732 (UNSPEC_VCVTP_S): New.
733 (UNSPEC_VCVTP_U): New.
734 (UNSPEC_VCVTP_S): New.
735 (UNSPEC_VCVTP_U): New.
743 * config/arm/vfp.md (<absneg_str>hf2): New.
745 (neon_v<fp16_rnd_str>hf): New.
751 (*mulsf3neghf_vfp): New.
752 (*negmulhf3_vfp): New.
753 (*mulsf3addhf_vfp): New.
754 (*mulhf3subhf_vfp): New.
755 (*mulhf3neghfaddhf_vfp): New.
756 (*mulhf3neghfsubhf_vfp): New.
759 (fmsubhf4_fp16): New.
764 (neon_vrsqrtshf): New.
765 (FCVT): Move to iterators.md.
766 (FCVTI32typename): Likewise.
767 (neon_vcvth<sup>hf): New.
768 (neon_vcvth<sup>si): New.
769 (neon_vcvth<sup>_nhf_unspec): New.
770 (neon_vcvth<sup>_nhf): New.
771 (neon_vcvth<sup>_nsi_unspec): New.
772 (neon_vcvth<sup>_nsi): New.
773 (neon_vcvt<vcvth_op>h<sup>si): New.
774 (neon_<fmaxmin_op>hf): New.
776 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
778 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
779 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
780 ("*insv<mode>_zEC12_appendbitsleft")
781 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
782 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
784 2016-09-23 Jakub Jelinek <jakub@redhat.com>
786 * ipa-cp.c (ipcp_store_vr_results): Avoid static local
788 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
789 construct values without normalization.
790 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
791 static local lhs_ops to vNULL.
793 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
794 Jiong Wang <jiong.wang@arm.com>
796 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
797 available when FP16 instructions are available.
798 (output_move_vfp): Add support for 16-bit data moves.
799 (arm_validize_comparison): Fix some white-space. Support HFmode
800 by conversion to SFmode.
801 * config/arm/arm.md (truncdfhf2): Fix a comment.
802 (extendhfdf2): Likewise.
804 (movsicc): Fix some white-space.
806 (movsfcc): Fix some white-space.
808 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
809 instructions are available.
810 (*thumb2_movhi_vfp): Likewise.
811 (*arm_movhi_fp16): New.
812 (*thumb2_movhi_fp16): New.
813 (*movhf_vfp_fp16): New.
814 (*movhf_vfp_neon): Disable when VFP FP16 instructions are
816 (*movhf_vfp): Likewise.
817 (extendhfsf2): Enable when VFP FP16 instructions are available.
818 (truncsfhf2): Enable when VFP FP16 instructions are available.
820 2016-09-23 Martin Liska <mliska@suse.cz>
822 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
824 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
826 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
828 (arm_evpc_neon_vtrn): Likewise.
829 (arm_evpc_neon_vrev): Likewise.
830 (arm_evpc_neon_vext): Likewise.
831 * config/arm/arm_neon.h (vbsl_f16): New.
835 (vdup_lane_f16): New.
836 (vdupq_lane_f16): New.
849 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
850 (vdup_lane): New (v8hf, v4hf variants).
851 (vext): New (v8hf, v4hf variants).
852 (vbsl): New (v8hf, v4hf variants).
853 * config/arm/iterators.md (VDQWH): New.
855 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
856 (Scalar_mul_8_16): Fix white-space.
857 (Is_d_reg): Add V4HF and V8HF.
858 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
859 (neon_vdup_lane<mode>): New.
860 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
861 (*neon_vtrn<mode>_insn): Likewise.
862 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
863 (*neon_vzip<mode>_insn): Likewise
864 (neon_vuzp<mode>_internal): Likewise.
865 (*neon_vuzp<mode>_insn): Likewise
866 * config/arm/vec-common.md (vec_perm_const<mode>): New.
868 2016-09-23 Jiong Wang <jiong.wang@arm.com>
869 Matthew Wahab <matthew.wahab@arm.com>
871 * config/arm/arm.c (output_move_vfp): Weaken assert to allow
873 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
874 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
875 available. Also fix some white-space.
876 * config/arm/vfp.md (*arm_movhi_vfp): New.
877 (*thumb2_movhi_vfp): New.
879 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
881 * config/arm/arm-c.c (arm_cpu_builtins): Define
882 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
883 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
885 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
887 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
888 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
889 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
890 arm_v8_2a_fp16_neon_hw.
891 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
894 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
896 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
897 arm_fp16_alternative_ok and arm_fp16_none_ok.
899 2016-09-23 Martin Liska <mliska@suse.cz>
901 * ipa-icf.c (sem_variable::merge): Replace adress
904 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
906 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
908 ("armv8.2-a+fp16"): New.
909 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
911 (FL2_FOR_ARCH8_2A): New.
912 * config/arm/arm-tables.opt: Regenerate.
913 * config/arm/arm.c (arm_arch8_2): New.
914 (arm_fp16_inst): New.
915 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
916 for incompatible fp16-format settings.
917 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
918 (TARGET_NEON_FP16INST): New.
919 (arm_arch8_2): Declare.
920 (arm_fp16_inst): Declare.
921 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
922 march=armv8.2-a and march=armv8.2-a+fp16.
923 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
925 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
926 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
928 2016-09-23 Martin Liska <mliska@suse.cz>
930 * doc/extend.texi: Remove fused-madd from i386 target
933 2016-09-23 Martin Liska <mliska@suse.cz>
935 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
938 2016-09-23 Martin Liska <mliska@suse.cz>
940 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
943 2016-09-23 Martin Liska <mliska@suse.cz>
946 * config/i386/i386.c (ix86_option_override_internal): Change
947 signature and return false when there's an error related to
949 (release_options_strings): New function.
950 (ix86_valid_target_attribute_tree): Call the function.
952 2016-09-23 Jakub Jelinek <jakub@redhat.com>
954 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
955 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
956 (gen_hsa_ctor_assignment): Likewise.
957 * print-tree.c (print_node): Likewise.
958 * tree-dump.c (dequeue_and_dump): Likewise.
959 * tree-sra.c (sra_modify_constructor_assign): Likewise.
960 * expr.c (store_constructor): Likewise.
961 * fold-const.c (operand_equal_p): Likewise.
962 * tree-pretty-print.c (dump_generic_node): Likewise.
963 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
964 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
966 2016-09-23 Richard Biener <rguenther@suse.de>
968 * hooks.h (hook_uint_uintp_false): Declare.
970 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
972 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
973 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
975 2016-09-22 Martin Sebor <msebor@redhat.com>
978 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
979 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
980 (target_int_min): Correct computation.
981 (format_integer): Use long long as the argument for the ll length
983 (format_floating): Use target_int_max().
984 (get_string_length): Same.
985 (format_string): Avoid setting the bounded flag for strings
987 (try_substitute_return_value): Avoid setting range info when
988 the result isn't bounded.
989 * varasm.c (assemble_name): Increase buffer size.
991 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
992 Terry Guo <terry.guo@arm.com>
994 * target.def (elf_flags_numeric): New target hook.
995 * targhooks.h (default_asm_elf_flags_numeric): New.
996 * varasm.c (default_asm_elf_flags_numeric): New.
997 (default_elf_asm_named_section): Use new target hook.
998 * config/arm/arm.opt (mpure-code): New.
999 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1000 * config/arm/arm.c (arm_asm_init_sections): Add section
1001 attribute to default text section if -mpure-code.
1002 (arm_option_check_internal): Diagnose use of option with
1003 non supported targets and/or options.
1004 (arm_asm_elf_flags_numeric): New.
1005 (arm_function_section): New.
1006 (arm_elf_section_type_flags): New.
1007 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1009 * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1010 * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1012 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
1014 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1016 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1018 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1019 * rtl.h: Adjust prototype.
1021 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1023 * emit-rtl.c (next_active_insn): Change argument type to
1025 (prev_active_insn): Likewise.
1026 (active_insn_p): Likewise.
1027 * rtl.h: Adjust prototypes.
1028 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1029 * config/arc/arc.md: Likewise.
1030 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1031 (branch_needs_nop_p): Likewise.
1032 (use_skip_p): Likewise.
1033 * config/sh/sh.c (gen_block_redirect): Likewise.
1034 (split_branches): Likewise.
1035 * reorg.c (optimize_skip): Likewise.
1036 (fill_simple_delay_slots): Likewise.
1037 (fill_slots_from_thread): Likewise.
1038 (relax_delay_slots): Likewise.
1039 * resource.c (mark_target_live_regs): Likewise.
1041 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1043 * config/cris/cris.c (cris_asm_output_case_end): Change argument
1045 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1046 (prev_nonnote_nondebug_insn): Likewise.
1047 * config/cris/cris-protos.h: Adjust prototype.
1049 * jump.c (rtx_renumbered_equal_p): Adjust.
1051 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1053 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1054 * rtl.h: Adjust prototype.
1055 * config/sh/sh.md: Adjust.
1056 * dwarf2out.c (add_var_loc_to_decl): Likewise.
1058 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1060 * emit-rtl.c (next_nondebug_insn): Change argument type to
1062 (prev_nondebug_insn): Likewise.
1063 * loop-doloop.c (doloop_condition_get): Likewise.
1064 * rtl.h: Adjust prototype.
1065 * cfgloop.h: Likewise.
1067 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1069 * emit-rtl.c (next_nonnote_insn): Change argument type to
1071 (prev_nonnote_insn): Likewise.
1072 * jump.c (reversed_comparison_code_parts): Likewise.
1073 (reversed_comparison): Likewise.
1074 * rtl.h: Adjust prototypes.
1075 * config/arc/arc.md: Adjust.
1076 * cse.c (find_comparison_args): Likewise.
1077 * reorg.c (redundant_insn): Change return type to rtx_insn *.
1078 (fix_reg_dead_note): Change argument type to rtx_insn *.
1079 (delete_prior_computation): Likewise.
1080 (delete_computation): Likewise.
1081 (fill_slots_from_thread): Adjust.
1082 (relax_delay_slots): Likewise.
1083 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1084 (simplify_relational_operation_1): Likewise.
1085 (simplify_ternary_operation): Likewise.
1087 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1089 * config/arc/arc-protos.h (arc_label_align): Change type of
1090 variables from rtx to rtx_insn *.
1091 * config/arc/arc.c (arc_label_align): Likewise.
1092 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
1093 * config/bfin/bfin.c (workaround_speculation): Likewise.
1094 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
1095 (find_last_same_clock): Likewise.
1096 (reorg_split_calls): Likewise.
1097 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
1098 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
1099 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
1100 (same_cmp_following_p): Likewise.
1101 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
1102 (same_cmp_following_p): Likwise.
1103 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
1104 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
1105 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
1106 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2):
1108 (rl78_alloc_physical_registers_cmp): Likewise.
1109 (rl78_alloc_physical_registers_umul): Likewise.
1110 (rl78_calculate_death_notes): Likewise.
1111 * config/s390/s390-protos.h (s390_label_align): Likewise.
1112 * config/s390/s390.c (s390_label_align): Likewise.
1113 * config/sh/sh.c (barrier_align): Likewise.
1114 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
1115 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
1116 (emit_cbcond_nop): Likewise.
1118 2016-09-22 Martin Liska <mliska@suse.cz>
1121 * ipa-icf.c (sem_variable::merge): Yield merge operation if
1122 alias address matters, not necessarily address of original.
1124 2016-09-22 Richard Biener <rguenther@suse.de>
1127 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1130 2016-09-22 Richard Biener <rguenther@suse.de>
1133 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
1134 from constant folding results.
1135 (gimple_resimplify2): Likewise.
1136 (gimple_resimplify3): Likewise.
1138 2016-09-22 Richard Biener <rguenther@suse.de>
1141 * expr.c (expand_expr_real_1): Guard array access against negative
1144 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1146 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
1148 (format_floating): Likewise.
1150 2016-09-22 Jakub Jelinek <jakub@redhat.com>
1153 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1154 for all IFN_GOMP_SIMD_* internal fns, not just for
1155 IFN_GOMP_SIMD_ORDERED_*.
1157 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
1160 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1161 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1162 instructions when you want to invert the test.
1163 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1164 correct order for XXSEL.
1165 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1166 for using XSCMP{EQ,GT,GE}DP.
1168 2016-09-21 David Malcolm <dmalcolm@redhat.com>
1170 * genconstants.c (main): Introduce noop_reader and convert call
1171 to read_md_files to a method call.
1172 * genenums.c (main): Likewise.
1173 * genmddeps.c (main): Likewise.
1174 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
1175 rtx_reader_ptr->get_top_level_filename ().
1176 (write_tm_preds_h): Likewise.
1177 (write_insn_preds_c): Likewise.
1178 * gensupport.c (class gen_reader): New subclass of rtx_reader.
1179 (rtx_handle_directive): Convert to...
1180 (gen_reader::handle_unknown_directive): ...this.
1181 (init_rtx_reader_args_cb): Convert return type from bool to
1182 rtx_reader *. Create a gen_reader instance, using it for the
1183 call to read_md_files. Return it if no errors occur.
1184 (init_rtx_reader_args): Convert return type from bool to
1186 * gensupport.h (init_rtx_reader_args_cb): Likewise.
1187 (init_rtx_reader_args_cb): Likewise.
1188 * read-md.c (struct file_name_list): Move to class rtx_reader.
1189 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
1190 (read_md_filename): Delete in favor of
1191 rtx_reader::m_read_md_filename.
1192 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
1193 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
1194 (base_dir): Delete in favor of rtx_reader::m_base_dir.
1195 (first_dir_md_include): Delete in favor of
1196 rtx_reader::m_first_dir_md_include.
1197 (last_dir_md_include_ptr): Delete in favor of
1198 rtx_reader::m_last_dir_md_include_ptr.
1199 (max_include_len): Delete.
1200 (rtx_reader_ptr): New.
1201 (fatal_with_file_and_line): Use get_filename and get_lineno
1202 accessors of rtx_reader_ptr.
1203 (require_char_ws): Likewise.
1204 (rtx_reader::read_char): New method, based on ::read_char.
1205 (rtx_reader::unread_char): New method, based on ::unread_char.
1206 (read_escape): Use get_filename and get_lineno accessors of
1208 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
1209 (read_string): Use get_filename and get_lineno accessors of
1211 (rtx_reader::rtx_reader): New ctor.
1212 (rtx_reader::~rtx_reader): New dtor.
1213 (handle_include): Convert from a function to...
1214 (rtx_reader::handle_include): ...this method, converting
1215 handle_directive from a callback to a virtual function.
1216 (handle_file): Likewise, converting to...
1217 (rtx_reader::handle_file): ...this method.
1218 (handle_toplevel_file): Likewise, converting to...
1219 (rtx_reader::handle_toplevel_file): ...this method.
1220 (rtx_reader::get_current_location): New method.
1221 (parse_include): Convert from a function to...
1222 (rtx_reader::add_include_path): ...this method, dropping redundant
1223 update to unused max_include_len.
1224 (read_md_files): Convert from a function to...
1225 (rtx_reader::read_md_files): ...this method, converting
1226 handle_directive from a callback to a virtual function.
1227 (noop_reader::handle_unknown_directive): New method.
1228 * read-md.h (directive_handler_t): Delete this typedef.
1230 (read_md_file): Delete.
1231 (read_md_lineno): Delete.
1232 (read_md_filename): Delete.
1233 (class rtx_reader): New class.
1234 (rtx_reader_ptr): New decl.
1235 (class noop_reader): New subclass of rtx_reader.
1236 (read_char): Reimplement in terms of rtx_reader::read_char.
1237 (unread_char): Reimplement in terms of rtx_reader::unread_char.
1238 (read_md_files): Delete.
1239 * read-rtl.c (read_rtx_code): Update for deletion of globals
1240 read_md_filename and read_md_lineno.
1242 2016-09-21 Jason Merrill <jason@redhat.com>
1244 * input.h (from_macro_definition_at): New.
1246 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
1248 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1250 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1252 PR tree-optimization/77550
1253 * tree-vect-stmts.c (create_array_ref): Change parameters.
1254 (get_group_alias_ptr_type): New function.
1255 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1257 2016-09-21 Marek Polacek <polacek@redhat.com>
1259 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1260 Add falls through comment.
1262 2016-09-21 Richard Biener <rguenther@suse.de>
1264 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
1265 (replace_child): Likewise.
1266 (remove_child_TAG): Adjust.
1267 (move_marked_base_types): Likewise.
1268 (prune_unused_types_prune): Clear die_sib of removed children.
1270 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
1273 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1274 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1276 2016-09-21 Richard Biener <rguenther@suse.de>
1278 PR tree-optimization/77648
1279 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1281 (make_transitive_closure_constraints): Adjust comment.
1282 (make_any_offset_constraints): New function.
1283 (handle_rhs_call): Make sure to first expand a pointer to all
1284 subfields before transitively closing it.
1285 (handle_const_call): Likewise. Properly expand returned
1287 (handle_pure_call): Likewise.
1289 2016-09-21 Richard Biener <rguenther@suse.de>
1290 Jakub Jelinek <jakub@redhat.com>
1292 PR tree-optimization/77621
1293 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1294 group at non-vectorizable stmts.
1296 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1298 PR tree-optimization/72835
1299 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
1300 (make_new_ssa_for_all_defs): Likewise.
1301 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
1303 2016-09-20 Martin Sebor <msebor@redhat.com>
1306 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
1307 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
1308 * config/linux.c (gnu_libc_printf_pointer_format): New function.
1309 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
1310 * config/sol2.c (solaris_printf_pointer_format): New function.
1311 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
1313 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
1314 * doc/tm.texi: Regenerate.
1315 * gimple-fold.h (get_range_strlen): New function.
1316 (get_maxval_strlen): Declare existing function.
1317 * gimple-fold.c (get_range_strlen): Add arguments and compute both
1318 maximum and minimum.
1319 (get_range_strlen): Define overload.
1320 (get_maxval_strlen): Adjust.
1321 * gimple-ssa-sprintf.c: New file and pass.
1322 * passes.def (pass_sprintf_length): Add new pass.
1323 * targhooks.h (default_printf_pointer_format): Declare new function.
1324 (gnu_libc_printf_pointer_format): Same.
1325 (solaris_libc_printf_pointer_format): Same.
1326 * targhooks.c (default_printf_pointer_format): Define new function.
1327 * tree-pass.h (make_pass_sprintf_length): Declare new function.
1328 * print-tree.c: Increase buffer size.
1330 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1332 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp
1335 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1337 * common.opt: New option -fipa-vrp.
1338 * ipa-cp.c (ipa_get_vr_lat): New.
1339 (ipcp_vr_lattice::print): Likewise.
1340 (print_all_lattices): Call ipcp_vr_lattice::print.
1341 (ipcp_vr_lattice::meet_with): New.
1342 (ipcp_vr_lattice::meet_with_1): Likewise.
1343 (ipcp_vr_lattice::top_p): Likewise.
1344 (ipcp_vr_lattice::bottom_p): Likewsie.
1345 (ipcp_vr_lattice::set_to_bottom): Likewise.
1346 (set_all_contains_variable): Call VR set_to_bottom.
1347 (initialize_node_lattices): Init VR lattices.
1348 (propagate_vr_accross_jump_function): New.
1349 (propagate_constants_accross_call): Call
1350 propagate_vr_accross_jump_function.
1351 (ipcp_store_vr_results): New.
1352 (ipcp_driver): Handle VR.
1353 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
1354 (ipa_set_jf_unknown): Likewise.
1355 (ipa_compute_jump_functions_for_edge): Likewise.
1356 (ipa_node_params_t::duplicate): Likewise.
1357 (ipa_write_jump_function): Likewise.
1358 (ipa_read_jump_function): Likewise.
1359 (write_ipcp_transformation_info): Likewise.
1360 (read_ipcp_transformation_info): Likewise.
1361 (ipcp_update_vr): New.
1362 (ipcp_transform_function): Handle VR.
1363 * ipa-prop.h (struct ipa_vr): New.
1364 * cgraph.c: Include tree-vrp.h.
1365 * cgraphunit.c: Likewise.
1366 * ipa-utils.c: Likewise.
1369 * toplev.c: Likewise.
1370 * ipa-devirt.c: Likewise.
1371 * ipa-inline-transform.c: Likewise.
1372 * ipa-inline.c: Likewise.
1373 * ipa-profile.c: Likewise.
1375 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
1377 * doc/invoke.texi: Document -fdump-tree-evrp.
1378 * passes.def: Define new pass_early_vrp.
1379 * timevar.def: Define new TV_TREE_EARLY_VRP.
1380 * tree-pass.h (make_pass_early_vrp): New.
1381 * tree-ssa-propagate.c: Make replace_uses_in non static.
1382 * tree-ssa-propagate.h: Export replace_uses_in.
1383 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
1384 (extract_range_from_assert): Factor out
1385 extract_range_for_var_from_comparison_expr.
1386 (vrp_initialize_lattice): New.
1387 (vrp_initialize): Factor out vrp_initialize_lattice.
1388 (vrp_valueize): Fix it to reject complex value ranges.
1389 (vrp_free_lattice): New.
1390 (evrp_dom_walker::before_dom_children): Likewise.
1391 (evrp_dom_walker::after_dom_children): Likewise.
1392 (evrp_dom_walker::push_value_range): Likewise.
1393 (evrp_dom_walker::pop_value_range): Likewise.
1394 (execute_early_vrp): Likewise.
1395 (execute_vrp): Call vrp_initialize_lattice and
1397 (make_pass_early_vrp): New.
1399 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
1401 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
1402 instead of exact_log2.
1404 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
1407 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1408 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1409 (ix86_add_stmt_cost): Penalize DFmode vector operations
1410 for !TARGET_VECTORIZE_DOUBLE.
1412 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
1414 * doc/invoke.texi (Warning Options): Simplify language.
1415 (Optimize Options): Complete sentence.
1417 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
1419 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
1422 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
1425 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
1426 inits on power8 and above, use the VMRGEW instruction instead of a
1429 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
1430 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
1433 2016-09-20 Tamar Christina <tamar.christina@arm.com>
1435 * config/aarch64/arm_neon.h
1436 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
1437 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
1438 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
1440 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1442 * config/var/vax.h (ELIMINABLE_REGS): Define.
1443 (INITIAL_ELIMINATION_OFFSET): Define.
1445 2016-09-20 Jakub Jelinek <jakub@redhat.com>
1448 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
1449 cast to void * if the cast is from some other pointer type.
1451 2016-09-20 Richard Biener <rguenther@suse.de>
1453 PR tree-optimization/77646
1454 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
1457 2016-09-20 Tamar Christina <tamar.christina@arm.com>
1459 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
1460 attributes to all inlined functions and make them extern.
1462 2016-09-20 Richard Biener <rguenther@suse.de>
1464 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
1466 * debug.c (do_nothing_debug_hooks): Adjust.
1467 * dbxout.c (dbx_debug_hooks): Likewise.
1468 * sdbout.c (sdb_debug_hooks): Likewise.
1469 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
1470 (dwarf2out_finish): Move producer, filename and
1472 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
1473 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
1475 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1478 * doc/invoke.texi: Document -Wint-in-bool-context.
1481 * dwarf2out.c (output_loc_operands): Fix an assertion.
1483 2016-09-19 Joseph Myers <joseph@codesourcery.com>
1485 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
1486 (CR_DECIMAL_DIG): New macro.
1488 2016-09-19 Joseph Myers <joseph@codesourcery.com>
1490 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
1493 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
1495 PR rtl-optimization/77416
1496 * lra-remat.c (operand_to_remat): Process hard coded insn
1499 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1501 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
1502 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
1504 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
1506 * target.def (lra_p): Wordsmithing.
1507 * doc/tm.texi: Regenerate.
1509 2016-09-19 Jakub Jelinek <jakub@redhat.com>
1510 Jan Hubicka <jh@suse.cz>
1513 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
1514 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
1515 Call ultimate_alias_target just once, not up to 4 times.
1517 2016-09-19 Richard Biener <rguenther@suse.de>
1519 * dwarf2out.c (early_dwarf_finished): New global.
1520 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
1522 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
1523 if called from LTO exit early.
1524 (dwarf2out_late_global_decl): When being during the early
1525 debug phase do not add locations but only const value attributes.
1526 Adjust the way we generate early DIEs for LTO.
1528 2016-09-19 Richard Biener <rguenther@suse.de>
1531 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1532 proper niter to bound the loops.
1534 2016-09-19 Richard Biener <rguenther@suse.de>
1536 PR tree-optimization/77514
1537 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1538 search for folded stmt.
1540 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
1542 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
1543 * tree-pass.h (make_pass_early_thread_jumps): Declare.
1544 * tree-ssa-threadbackward.c (fsm_find_thread_path,
1545 fsm_find_thread_path, profitable_jump_thread_path,
1546 fsm_find_control_statement_thread_paths,
1547 find_jump_threads_backwards): Add speed_p parameter.
1548 (pass_data_early_thread_jumps): New pass.
1549 (make_pass_early_thread_jumps): New function.
1551 2016-09-17 Andreas Schwab <schwab@suse.de>
1553 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
1554 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1556 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
1558 * recog.c (rest_of_handle_split_after_reload): Delete.
1559 (pass_split_after_reload::gate): New method.
1560 (pass_split_after_reload::execute): Call split_all_insns directly.
1562 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
1564 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1565 parameters for functions taking long long arguments.
1567 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1570 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
1571 splat with truncate.
1573 2016-09-16 Jason Merrill <jason@redhat.com>
1575 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
1577 * hwint.c (exact_log2): Use pow2p_hwi.
1578 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
1579 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
1580 * builtins.c (get_object_alignment_2, get_object_alignment)
1581 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
1583 * calls.c (compute_argument_addresses, store_one_arg): Use
1585 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
1586 * combine.c (force_to_mode): Use least_bit_hwi.
1587 (contains_muldiv, find_split_point, combine_simplify_rtx)
1588 (simplify_if_then_else, simplify_set, force_to_mode)
1589 (if_then_else_cond, simplify_and_const_int_1)
1590 (simplify_compare_const): Use pow2p_hwi.
1591 * cse.c (fold_rtx): Use pow2p_hwi.
1592 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
1594 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
1595 (init_expmed_one_conv): Use pow2p_hwi.
1596 * expr.c (is_aligning_offset): Use pow2p_hwi.
1597 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
1598 (fold_binary_loc): Use pow2p_hwi.
1599 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
1600 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
1601 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
1602 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
1604 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
1605 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
1606 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
1607 * omp-low.c (oacc_loop_fixed_partitions)
1608 (oacc_loop_auto_partitions): Use least_bit_hwi.
1609 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
1610 * stor-layout.c (place_field): Use least_bit_hwi.
1611 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
1612 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
1613 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
1614 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
1615 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
1616 * tree-vect-data-refs.c (vect_analyze_group_access_1)
1617 (vect_grouped_store_supported, vect_grouped_load_supported)
1618 (vect_permute_load_chain, vect_shift_permute_load_chain)
1619 (vect_transform_grouped_load): Use pow2p_hwi.
1620 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
1621 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
1622 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
1624 * tsan.c (instrument_expr): Use least_bit_hwi.
1625 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
1627 2016-09-16 Andreas Schwab <schwab@suse.de>
1629 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
1631 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1633 2016-09-16 Jakub Jelinek <jakub@redhat.com>
1636 * combine.c (rest_of_handle_combine): If any edges have been purged,
1637 free dominators if available.
1639 2016-09-16 Jakub Jelinek <jakub@redhat.com>
1640 Eric Botcazou <ebotcazou@adacore.com>
1643 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
1644 through into expand_addsub_overflow after expand_neg_overflow.
1646 2016-09-15 David Malcolm <dmalcolm@redhat.com>
1648 * diagnostic-show-locus.c
1649 (selftest::test_fixit_insert_containing_newline): New function.
1650 (selftest::test_fixit_replace_containing_newline): New function.
1651 (selftest::diagnostic_show_locus_c_tests): Call the above.
1653 2016-09-15 Bin Cheng <bin.cheng@arm.com>
1655 PR tree-optimization/77503
1656 * tree-vect-loop.c (vectorizable_reduction): Record reduction
1657 code for CONST_COND_REDUCTION at analysis stage and use it at
1659 * tree-vectorizer.h (struct _stmt_vec_info): New field.
1660 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
1661 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
1664 2016-09-15 Richard Biener <rguenther@suse.de>
1667 * fold-const.c (split_tree): Do not split constant ~X.
1669 2016-09-15 Jakub Jelinek <jakub@redhat.com>
1671 PR rtl-optimization/77425
1672 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
1676 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
1677 use %qs instead of %s where desirable, use argument instead of arg in
1678 the diagnostic wording, add list of supported strategies and
1680 (ix86_option_override_internal): Emit target("m...") instead of
1681 option("m...") in the diagnostic. Use %qs instead of %s in invalid
1682 -march/-mtune option diagnostic. Add list of supported arches/tunings
1683 and spellcheck hint. Remove prefix, suffix and sw variables, use
1684 main_args_p ? "..." : "..." in diagnostics to make translation
1687 2016-09-15 Richard Biener <rguenther@suse.de>
1689 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
1690 extra offset argument.
1691 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
1692 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
1693 to reflect new offset parameter.
1694 * doc/tm.texi: Regenerate.
1695 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
1696 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
1698 (darwin_asm_output_dwarf_offset): Likewise.
1699 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
1701 (darwin_asm_output_dwarf_offset): Pass offset argument through.
1702 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
1703 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1705 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
1708 * ipa-icf.c (set_alias_uids): New function.
1709 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
1710 all the merged variable's referring aliases.
1712 2016-09-15 Richard Biener <rguenther@suse.de>
1714 PR tree-optimization/77514
1715 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
1716 only forced_stmts sequence.
1718 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
1720 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
1721 * cfgexpand.c (update_alias_info_with_stack_vars): Use
1722 FOR_EACH_SSA_NAME to iterate over SSA variables.
1723 (pass_expand::execute): Likewise.
1724 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
1725 * tree-cfg.c (dump_function_to_file): Likewise.
1726 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
1727 (update_ssa): Likewise.
1728 * tree-ssa-alias.c (dump_alias_info): Likewise.
1729 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1730 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
1731 (create_outofssa_var_map): Likewise.
1732 (coalesce_ssa_name): Likewise.
1733 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
1734 * tree-ssa-pre.c (compute_avail): Likewise.
1735 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
1736 (scc_vn_restore_ssa_info): Likewise.
1737 (free_scc_vn): Likwise.
1738 (run_scc_vn): Likewise.
1739 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
1740 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
1741 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1742 * tree-ssa.c (verify_ssa): Likewise.
1744 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
1746 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
1747 and mips64r2 as default 32-bit and 64-bit architectures.
1748 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
1749 as default 32-bit and 64-bit architectures.
1751 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
1753 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
1756 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1758 * target.def (lra_p): Change commentary (for the manual) for the
1760 * doc/tm.texi: Regenerate.
1762 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1764 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
1765 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
1766 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
1767 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
1769 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1771 * targhooks.c (default_lra_p): Return true instead of false.
1773 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
1775 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
1776 hook_bool_void_false.
1777 * config/avr/avr.c: Ditto.
1778 * config/bfin/bfin.c: Ditto.
1779 * config/c6x/c6x.c: Ditto.
1780 * config/cr16/cr16.c: Ditto.
1781 * config/cris/cris.c: Ditto.
1782 * config/epiphany/epiphany.c: Ditto.
1783 * config/fr30/fr30.c: Ditto.
1784 * config/frv/frv.c: Ditto.
1785 * config/h8300/h8300.c: Ditto.
1786 * config/ia64/ia64.c: Ditto.
1787 * config/iq2000/iq2000.c: Ditto.
1788 * config/lm32/lm32.c: Ditto.
1789 * config/m32c/m32c.c: Ditto.
1790 * config/m32r/m32r.c: Ditto.
1791 * config/m68k/m68k.c: Ditto.
1792 * config/mcore/mcore.c: Ditto.
1793 * config/microblaze/microblaze.c: Ditto.
1794 * config/mmix/mmix.c: Ditto.
1795 * config/mn10300/mn10300.c: Ditto.
1796 * config/moxie/moxie.c: Ditto.
1797 * config/msp430/msp430.c: Ditto.
1798 * config/nios2/nios2.c: Ditto.
1799 * config/nvptx/nvptx.c: Ditto.
1800 * config/pa/pa.c: Ditto.
1801 * config/pdp11/pdp11.c: Ditto.
1802 * config/rl78/rl78.c: Ditto.
1803 * config/sparc/sparc.c: Ditto.
1804 * config/spu/spu.c: Ditto.
1805 * config/stormy16/stormy16.c: Ditto.
1806 * config/tilegx/tilegx.c: Ditto.
1807 * config/tilepro/tilepro.c: Ditto.
1808 * config/v850/v850.c: Ditto.
1809 * config/vax/vax.c: Ditto.
1810 * config/visium/visium.c: Ditto.
1811 * config/xtensa/xtensa.c: Ditto.
1813 2016-09-14 Jakub Jelinek <jakub@redhat.com>
1816 * tsan.c: Include target.h.
1817 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
1818 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
1819 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
1820 BUILT_IN_ATOMIC_TEST_AND_SET entries.
1821 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
1823 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1824 Martin Liska <mliska@suse.cz>
1827 * predict.c (force_edge_cold): Add braces to a condition.
1829 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
1831 PR rtl-optimization/77289
1832 * lra-constraints.c (get_final_hard_regno): Removed.
1833 (get_hard_regno): Add new parameter final_p.
1834 (get_reg_class): Directly call lra_get_elimination_hard_regno.
1835 (operands_match_p): Adjust call to get_hard_regno.
1836 (uses_hard_regs_p): Likewise.
1837 (process_alt_operands): Likewise.
1839 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
1842 * config/msp430/msp430.c (msp430_start_function): Emit an error
1843 if a function is both weak and specifies an interrupt number.
1845 2016-09-13 Jakub Jelinek <jakub@redhat.com>
1847 PR tree-optimization/77454
1848 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
1849 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
1852 2016-09-13 Tamar Christina <tamar.christina@arm.com>
1854 * config/aarch64/aarch64-builtins.c
1855 (aarch64_init_simd_builtins): Fix builtin type signature printing.
1857 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
1859 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
1860 SFmode and SCmode arguments by reference.
1862 2016-09-13 David Malcolm <dmalcolm@redhat.com>
1864 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
1866 (selftest::test_one_liner_fixit_insert_before): ...this, and update
1867 for renaming of add_fixit_insert to add_fixit_insert_before.
1868 (selftest::test_one_liner_fixit_insert_after): New function.
1869 (selftest::test_one_liner_fixit_validation_adhoc_locations):
1870 Update for renaming of add_fixit_insert to add_fixit_insert_before.
1871 (selftest::test_one_liner_many_fixits): Likewise.
1872 (selftest::test_diagnostic_show_locus_one_liner): Update for
1873 renaming, call new test function.
1874 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
1875 renaming of add_fixit_insert to add_fixit_insert_before.
1876 (selftest::test_fixit_consolidation): Likewise.
1877 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
1879 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
1880 (selftest::test_applying_fixits_insert_before): ...this.
1881 (selftest::test_applying_fixits_insert): Update for renaming of
1882 add_fixit_insert to add_fixit_insert_before.
1883 (selftest::test_applying_fixits_insert_after): New function.
1884 (selftest::test_applying_fixits_insert_after_at_line_end): New
1886 (selftest::test_applying_fixits_insert_after_failure): New function.
1887 (selftest::test_applying_fixits_multiple): Update for renaming of
1888 add_fixit_insert to add_fixit_insert_before.
1889 (selftest::change_line): Likewise.
1890 (selftest::test_applying_fixits_unreadable_file): Likewise.
1891 (selftest::test_applying_fixits_line_out_of_range): Likewise.
1892 (selftest::test_applying_fixits_column_validation): Likewise.
1893 (selftest::test_applying_fixits_column_validation): Likewise.
1894 (selftest::edit_context_c_tests): Update for renamed test function;
1895 call new test functions.
1897 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
1899 PR tree-optimization/77536
1900 PR rtl-optimization/68212
1901 * config/rs6000/rs6000.md (div->recip splitter): Remove
1902 optimize_insn_for_speed_p condition.
1904 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
1906 * optabs.c (prepare_cmp_insn): Update documentation comment.
1908 2016-09-13 Jakub Jelinek <jakub@redhat.com>
1909 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1912 * opts.h (candidates_list_and_hint): Declare.
1913 * opts-common.c (candidates_list_and_hint): New function.
1914 (cmdline_handle_error): Use it.
1916 2016-09-12 David Malcolm <dmalcolm@redhat.com>
1918 * edit-context.c (edited_line::get_len): New accessor.
1919 (edited_file::print_diff): Split out hunk-printing into...
1920 (edited_file::print_diff_hunk): New method.
1921 (edited_file::print_diff_line): New method.
1923 2016-09-12 Andrew Pinski <apinski@cavium.com>
1925 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
1927 * config/aarch64/aarch64.c (thunderx_tunings): Enable
1928 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
1929 (aarch64_operands_ok_for_ldpstp): Return false if
1930 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
1931 was SImode and the alignment is less than 8 byte.
1932 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
1934 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
1937 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
1939 2016-09-12 Marek Polacek <polacek@redhat.com>
1941 * doc/extend.texi: Use lowercase "boolean".
1942 * doc/invoke.texi: Likewise.
1943 * doc/md.texi: Likewise.
1944 * target.def: Likewise.
1945 * doc/tm.texi: Regenerated.
1947 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1950 * expmed.c (synth_mult): Delete duplicate mode check.
1952 2016-09-10 Tom de Vries <tom@codesourcery.com>
1955 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
1957 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
1958 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
1960 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
1962 PR rtl-optimization/77289
1963 * lra-constraints.c (get_final_hard_regno): Add support for non hard
1964 register numbers. Remove support for subregs.
1965 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
1966 (get_reg_class): Delete removed get_final_hard_regno() argument.
1967 (uses_hard_regs_p): Call get_final_hard_regno().
1969 2016-09-09 Martin Sebor <msebor@redhat.com>
1973 * pretty-print.c (pp_quoted_string): New function.
1974 (pp_format): Call it for %c and %s directives.
1976 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
1978 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
1979 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
1980 INITIAL_ELIMINATION_OFFSET) : Update documentation.
1981 * target.def (frame_pointer_required, can_eliminate): Likewise.
1982 * doc/tm.texi: Regenerated.
1983 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
1985 * df-scan.c (df_hard_reg_init): Likewise.
1986 * ira.c (ira_setup_eliminable_regset): Likewise.
1987 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
1988 init_elim_table): Likewise.
1989 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
1990 set_initial_elim_offsets, update_eliminables,
1991 init_elim_table): Likewise.
1992 * rtlanal.c (get_initial_register_offset): Likewise.
1993 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
1994 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
1995 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
1996 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
1997 * config/fr30/fr30.h: Fix comment.
1998 * config/frv/frv.c: Likewise.
1999 * config/frv/frv.h: Likewise.
2000 * config/ft32/ft32.h: Likewise.
2001 * config/visium/visium.h: Likewise.
2002 * config/pa/pa64-linux.h: Likewise.
2003 * config/v850/v850.h: Likewise.
2004 * config/cris/cris.c: Likewise.
2005 * config/ia64/ia64.h: Likewise.
2006 * config/moxie/moxie.h: Likewise.
2007 * config/m32r/m32r.h: Likewise.
2009 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
2012 * config.in: Regenerate.
2013 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2015 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2016 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2017 static-libmpxwrappers case.
2018 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2019 MPX_LD_AS_NEEDED_GUARD_POP.
2020 * configure: Regenerate.
2021 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2022 defined if linker support "--push-state"/"--pop-state".
2024 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
2026 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2028 2016-09-09 Joseph Myers <joseph@codesourcery.com>
2030 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2031 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2032 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2033 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2034 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2035 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2036 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2038 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2039 width macros from TS 18661-1.
2040 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2042 2016-09-08 Jakub Jelinek <jakub@redhat.com>
2045 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2046 OMP_CLAUSE_SAFELEN_EXPR.
2048 2016-09-07 David Malcolm <dmalcolm@redhat.com>
2050 * Makefile.in (OBJS): Add substring-locations.o.
2051 * langhooks-def.h (class substring_loc): New forward decl.
2052 (lhd_get_substring_location): New decl.
2053 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2054 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2055 * langhooks.c (lhd_get_substring_location): New function.
2056 * langhooks.h (class substring_loc): New forward decl.
2057 (struct lang_hooks): Add field get_substring_location.
2058 * substring-locations.c: New file, taking definition of
2059 format_warning_va and format_warning_at_substring from
2060 c-family/c-format.c, making them non-static.
2061 * substring-locations.h (class substring_loc): Move class here
2062 from c-family/c-common.h. Add and rewrite comments.
2063 (format_warning_va): New decl.
2064 (format_warning_at_substring): New decl.
2065 (get_source_location_for_substring): Add comment.
2067 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
2069 * config/i386/i386.c: Add 'U' suffix to processor feature bits
2070 to avoid -Wnarrowing warning.
2071 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2072 * opts.c: Likewise for SANITIZER_OPT bitmasks.
2074 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
2076 * config/aarch64/aarch64.c (aarch64_legitimize_address):
2077 Avoid use of base_offset if offset already in range.
2079 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
2081 * config/sh/sh-protos.h (struct sh_atomic_model,
2082 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2083 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2084 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2085 * config/sh/sh.h (struct sh_atomic_model,
2086 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2087 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2088 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2089 Guard with __cplusplus.
2091 2016-09-06 Jakub Jelinek <jakub@redhat.com>
2094 * config/i386/i386.c (ix86_expand_builtin): For builtin with
2095 unsupported or unknown ISA, use expand_call.
2097 2016-09-06 Martin Liska <mliska@suse.cz>
2099 PR gcov-profile/77378
2100 PR gcov-profile/77466
2101 * tree-profile.c (tree_profiling): Detect whether target can use
2102 -fprofile-update=atomic.
2104 2016-09-06 Richard Biener <rguenther@suse.de>
2106 PR tree-optimization/77479
2107 * tree-vrp.c (update_value_range): Extend overflow handling to
2110 2016-09-05 Jakub Jelinek <jakub@redhat.com>
2113 * config/i386/i386.md (isa): Add x64_avx512bw.
2114 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
2115 (kmov_isa): New mode attr.
2116 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
2117 (*zero_extend<mode>si2): Likewise.
2118 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
2120 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
2122 * doc/invoke.texi (SPU Options): nops -> NOPs.
2123 (x86 Options): Ditto.
2125 2016-09-05 Jakub Jelinek <jakub@redhat.com>
2128 * toplev.c (process_options): Temporarily set input_location
2129 to UNKNOWN_LOCATION around targetm.target_option.override () call.
2131 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
2133 PR rtl-optimization/77452
2134 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
2135 inner-mode reference to a CONST_VECTOR constant in the constant pool.
2137 2016-09-05 Marek Polacek <polacek@redhat.com>
2140 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
2142 2016-09-05 Jakub Jelinek <jakub@redhat.com>
2145 * gensupport.c (alter_output_for_subst_insn): Remove redundant
2146 *insn_out == '*' test. Don't copy unnecessary to yet another
2147 memory buffer, and don't leak it.
2149 PR rtl-optimization/77425
2150 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2152 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
2154 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2156 2016-09-02 David Malcolm <dmalcolm@redhat.com>
2158 * common.opt (fdiagnostics-generate-patch): New option.
2159 * diagnostic.c: Include "edit-context.h".
2160 (diagnostic_initialize): Initialize context->edit_context_ptr.
2161 (diagnostic_finish): Delete context->edit_context_ptr.
2162 (diagnostic_report_diagnostic): Add fix-it hints from the
2163 diagnostic to context->edit_context_ptr, if any.
2164 * diagnostic.h (class edit_context): Add forward decl.
2165 (struct diagnostic_context): Add field "edit_context_ptr".
2166 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2167 -fdiagnostics-generate-patch.
2168 (-fdiagnostics-generate-patch): New item.
2169 * toplev.c: Include "edit-context.h".
2170 (process_options): Set global_dc->edit_context_ptr to a new
2171 edit_context if the options need one.
2172 (toplev::main): Handle -fdiagnostics-generate-patch by using
2173 global_dc->edit_context_ptr.
2175 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2178 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
2179 map and firstprivate clauses on target construct for _Atomic
2181 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
2182 on target construct for _Atomic qualified decls.
2183 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
2185 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
2186 _Atomic qualified arguments not mentioned in uniform clause.
2188 2016-09-02 David Malcolm <dmalcolm@redhat.com>
2190 * Makefile.in (OBJS-libcommon): Add edit-context.o.
2191 * diagnostic-color.c (color_dict): Add "diff-filename",
2192 "diff-hunk", "diff-delete", and "diff-insert".
2193 (parse_gcc_colors): Update default value of GCC_COLORS in comment
2194 to reflect above changes.
2195 * doc/invoke.texi (-fdiagnostics-color): Update description of
2196 default GCC_COLORS, and of the supported capabilities.
2197 * edit-context.c: New file.
2198 * edit-context.h: New file.
2199 * input.c (struct fcache): Add field "missing_trailing_newline".
2200 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
2202 (add_file_to_cache_tab): Likewise.
2203 (fcache::fcache): Likewise.
2204 (get_next_line): Update c->missing_trailing_newline.
2205 (location_missing_trailing_newline): New function.
2206 * input.h (location_missing_trailing_newline): New decl.
2207 * selftest-run-tests.c (selftest::run_tests): Call
2208 edit_context_c_tests.
2209 * selftest.h (edit_context_c_tests): New decl.
2211 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2212 Richard Biener <rguenth@suse.de>
2214 PR tree-optimization/77444
2215 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
2216 as steptype, remove redundant initialization.
2218 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2221 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
2222 (sanopt_optimize_walker): Optimize away
2223 __asan_before_dynamic_init (...) followed by
2224 __asan_after_dynamic_init () without intervening memory loads/stores.
2225 * ipa-pure-const.c (special_builtin_state): Handle
2226 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
2227 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
2229 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2231 * cfg.c (free_original_copy_tables): Replace second assignment of
2232 bb_copy = NULL by bb_original = NULL.
2234 2016-09-02 Jakub Jelinek <jakub@redhat.com>
2237 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
2238 assignment added in r216794.
2240 2016-09-02 David Malcolm <dmalcolm@redhat.com>
2242 * Makefile.in (OBJS): Add typed-splay-tree.o.
2243 * selftest-run-tests.c (selftest::run_tests): Call
2244 typed_splay_tree_c_tests.
2245 * selftest.h (typed_splay_tree_c_tests): New decl.
2246 * typed-splay-tree.c: New file.
2247 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
2248 (typed_splay_tree::max): New method.
2249 (typed_splay_tree::min): New method.
2250 (typed_splay_tree::foreach): New method.
2251 (typed_splay_tree::closure): New struct.
2252 (typed_splay_tree::inner_foreach_fn): New function.
2254 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2256 * ipa-cp.c (ipcp_store_bits_results): Change option name from
2257 -fipa-cp-bit to -fipa-bit-cp.
2259 2016-09-01 Martin Sebor <msebor@redhat.com>
2261 PR tree-optimization/71831
2262 * tree-object-size.h: Return bool instead of the size and add
2263 argument for the size.
2264 * tree-object-size.c (compute_object_offset): Update signature.
2265 (addr_object_size): Same.
2266 (compute_builtin_object_size): Return bool instead of the size
2267 and add argument for the size. Handle POINTER_PLUS_EXPR when
2268 optimization is disabled.
2269 (expr_object_size): Adjust.
2270 (plus_stmt_object_size): Adjust.
2271 (pass_object_sizes::execute): Adjust.
2272 * builtins.c (fold_builtin_object_size): Adjust.
2273 * doc/extend.texi (Object Size Checking): Update.
2274 * ubsan.c (instrument_object_size): Adjust.
2276 2016-09-01 Martin Sebor <msebor@redhat.com>
2278 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
2279 it fits the output of the formatted function regardless of its
2281 * gcc/genmodes.c (parser::parse_expr): Same.
2282 * gimplify.c (gimplify_asm_expr): Same.
2283 * passes.c (pass_manager::register_one_dump_file): Same.
2284 * print-tree.c (print_node): Same.
2286 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2288 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
2290 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2292 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
2294 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2296 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
2297 * config/rs6000/vector.md: Ditto.
2298 * config/rs6000/vsx.md: Ditto.
2300 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
2302 * ipa-inline-analysis.c (param_change_prob): Get to the base object
2305 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2307 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
2308 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
2309 *return_and_restore_gpregs_<mode>_r11,
2310 *return_and_restore_gpregs_<mode>_r12,
2311 *return_and_restore_gpregs_<mode>_r1,
2312 *return_and_restore_fpregs_<mode>_r11,
2313 *return_and_restore_fpregs_<mode>_r12,
2314 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
2315 directly instead of via the "l" constraint. Renumber operands.
2318 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2320 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
2321 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
2322 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
2323 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
2324 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
2325 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
2326 *call_value_nonlocal_darwin64, reload_macho_picbase,
2327 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
2328 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
2329 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
2330 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
2331 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
2332 *save_fpregs_<mode>_r1): Ditto.
2333 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
2334 *return_and_restore_gpregs_spe): Ditto.
2336 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2338 * config/rs6000/rs6000.md
2339 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
2340 the use of the link register.
2341 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
2343 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2344 Michael Meissner <meissner@linux.vnet.ibm.com>
2347 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
2348 reg+reg addressing for TImode.
2349 (rs6000_legitimate_address_p): Only allow register indirect
2350 addressing for TImode, even without TARGET_QUAD_MEMORY.
2352 2016-09-01 Richard Biener <rguenther@suse.de>
2355 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
2356 check whether the result fits the desired result type.
2358 2016-09-01 Nathan Sidwell <nathan@acm.org>
2360 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
2362 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
2364 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
2366 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
2368 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2370 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
2371 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
2372 for comparisons of integer ZERO_EXTEND against zero.
2374 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
2376 * config/i386/i386.c (ix86_option_override_internal): Also disable the
2377 STV pass if -mstackrealign is enabled.
2379 2016-08-31 Ilya Verbin <iverbin@gmail.com>
2381 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
2384 2016-08-31 David Malcolm <dmalcolm@redhat.com>
2386 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
2387 (layout_range::intersects_line_p): New method.
2388 (test_range_contains_point_for_single_point): Rename to...
2389 (test_layout_range_for_single_point): ...this, and add testing
2390 for layout_range::intersects_line_p.
2391 (test_range_contains_point_for_single_line): Rename to...
2392 (test_layout_range_for_single_line): ...this, and add testing
2393 for layout_range::intersects_line_p.
2394 (test_range_contains_point_for_multiple_lines): Rename to...
2395 (test_layout_range_for_multiple_lines): ...this, and add testing
2396 for layout_range::intersects_line_p.
2397 (layout::layout): Populate m_fixit_hints.
2398 (layout::get_expanded_location): Handle the case of a line-span
2400 (layout::validate_fixit_hint_p): New method.
2401 (get_line_span_for_fixit_hint): New function.
2402 (layout::calculate_line_spans): Add spans for fixit-hints.
2403 (layout::should_print_annotation_line_p): New method.
2404 (layout::print_any_fixits): Drop param "richloc", instead using
2405 validated fixits in m_fixit_hints. Add "const" to hint pointers.
2406 (diagnostic_show_locus): Avoid printing blank annotation lines.
2407 (selftest::test_diagnostic_context::test_diagnostic_context):
2408 Initialize show_column and start_span.
2409 (selftest::test_diagnostic_context::start_span_cb): New static
2411 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
2412 (selftest::diagnostic_show_locus_c_tests): Update for function
2413 renamings. Call test_diagnostic_show_locus_fixit_lines.
2415 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
2417 PR tree-optimization/73714
2418 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
2420 2016-08-31 David Malcolm <dmalcolm@redhat.com>
2422 * selftest.c: Move "namespace selftest {" to top of file,
2423 removing explicit "selftest::" qualifiers throughout.
2425 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
2427 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
2429 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
2430 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
2431 Replace builtin with vector extension.
2432 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
2434 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
2435 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
2436 Replace builtin with vector extension.
2437 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
2438 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
2439 Replace builtin with vector extension.
2440 * config/i386/xmmintrin.h (__m128_u): New type.
2441 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
2442 (_mm_load_ps, _mm_store_ps): Simplify.
2444 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
2446 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
2448 2016-08-30 David Malcolm <dmalcolm@redhat.com>
2450 * diagnostic-show-locus.c (colorizer::begin_state): Support more
2451 than 3 ranges per diagnostic by alternating between color 1 and
2453 (layout::layout): Replace use of rich_location::MAX_RANGES
2454 with richloc->get_num_locations ().
2455 (layout::calculate_line_spans): Replace use of
2456 rich_location::MAX_RANGES with m_layout_ranges.length ().
2457 (layout::print_annotation_line): Handle arbitrary numbers of
2458 ranges in caret-printing by defaulting to '^'.
2459 (selftest::test_one_liner_many_fixits): New function.
2460 (test_diagnostic_show_locus_one_liner): Call it.
2461 * diagnostic.c (diagnostic_initialize): Update for renaming
2462 of rich_location::MAX_RANGES to
2463 rich_location::STATICALLY_ALLOCATED_RANGES.
2464 * diagnostic.h (struct diagnostic_context): Likewise.
2466 2016-08-30 David Malcolm <dmalcolm@redhat.com>
2468 * selftest.c (selftest::named_temp_file::named_temp_file): New
2470 (selftest::temp_source_file::~temp_source_file): Move to...
2471 (selftest::named_temp_file::~named_temp_file): ...here.
2472 (selftest::test_named_temp_file): New function.
2473 (selftest::selftest_c_tests): Call test_named_temp_file.
2474 * selftest.h (class named_temp_file): New class.
2475 (class temp_source_file): Convert to a subclass of named_temp_file.
2477 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
2479 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
2480 USEs of LR_REGNO in returns and sibcalls.
2481 (rs6000_output_mi_thunk): Similar.
2482 (rs6000_sibcall_aix): Similar.
2483 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
2484 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
2485 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
2486 Remove the USE of LR_REGNO from the patterns as well. Delete an
2488 (return_internal_<mode>): Delete.
2490 2016-08-30 Tamar Christina <tamar.christina@arm.com>
2492 * gcc/config/aarch64/aarch64-simd.md
2493 (aarch64_ld2<mode>_dreg_le): New.
2494 (aarch64_ld2<mode>_dreg_be): New.
2495 (aarch64_ld2<mode>_dreg): Removed.
2496 (aarch64_ld3<mode>_dreg_le): New.
2497 (aarch64_ld3<mode>_dreg_be): New.
2498 (aarch64_ld3<mode>_dreg): Removed.
2499 (aarch64_ld4<mode>_dreg_le): New.
2500 (aarch64_ld4<mode>_dreg_be): New.
2501 (aarch64_ld4<mode>_dreg): Removed.
2502 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
2504 2016-08-30 David Malcolm <dmalcolm@redhat.com>
2506 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
2507 redundant location param.
2508 (test_one_liner_fixit_remove): Likewise.
2509 (test_one_liner_fixit_replace): Likewise.
2510 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
2511 * gcc-rich-location.c
2512 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
2513 get_range_from_loc. Drop overload taking a const char *.
2514 * gcc-rich-location.h
2515 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
2518 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2520 * config/linux.c (linux_libc_has_function): Return true on musl.
2522 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
2524 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
2526 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
2528 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
2529 used for abnormal egdes.
2531 2016-08-30 Jakub Jelinek <jakub@redhat.com>
2533 PR tree-optimization/72866
2534 * tree-vect-patterns.c (search_type_for_mask): Turn into
2535 a small wrapper, move all code to ...
2536 (search_type_for_mask_1): ... this new function. Add caching
2537 and adjust recursive calls.
2540 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
2541 instead of lookup_type_die (type_main_variant (type)) even for array
2545 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
2546 constant pool reference return x instead of c.
2548 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
2550 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
2553 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2556 (selftest::test_make_location_nonpure_range_endpoints): Fix
2559 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2561 * diagnostic-show-locus.c
2562 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
2564 (selftest::test_diagnostic_show_locus_one_liner): Call it.
2565 * input.c (get_pure_location): Move to libcpp/line-map.c.
2566 * input.h (get_pure_location): Convert decl to an inline function
2567 calling implementation in libcpp.
2569 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
2572 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
2573 template for intel asm dialect.
2574 (vec_set_hi_<mode><mask_name>): Ditto.
2576 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2578 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
2579 (selftest::fail_formatted): Likewise.
2581 2016-08-29 David Malcolm <dmalcolm@redhat.com>
2583 * input.c (make_location): Call get_start and get_finish
2584 on the endpoints to avoid storing packed ranges or ad-hoc
2586 (selftest::test_make_location_nonpure_range_endpoints): New function.
2587 (selftest::input_c_tests): Call it.
2588 * input.h (get_start): New inline function.
2590 2016-08-29 Tom de Vries <tom@codesourcery.com>
2593 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
2596 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
2598 * Makefile.in (gcov-iov.h): Add dummy recipe.
2600 2016-08-29 Nathan Sidwell <nathan@acm.org>
2602 * config/nvptx/nvptx.c: #include tree-vrp.h.
2604 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
2607 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
2608 HIGH+LO construct during reload.
2610 2016-08-28 Tom de Vries <tom@codesourcery.com>
2613 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
2614 'sysv_abi va_list' attribute.
2615 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
2616 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
2619 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2621 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
2622 * emit-rtl.c (unshare_all_rtl_1): Adjust.
2623 (unshare_all_rtl_again): Likewise.
2624 * function.c (assign_stack_local_1): Likewise.
2625 (assign_stack_temp_for_type): Likewise.
2627 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2629 * cfgbuild.c (make_edges): Adjust.
2630 * cfgrtl.c (can_delete_label_p): Likewise.
2631 * dwarf2cfi.c (create_trace_edges): Likewise.
2632 * except.c (sjlj_emit_dispatch_table): Likewise.
2633 * function.h (struct expr_status): make x_forced_labels a vector.
2634 * jump.c (rebuild_jump_labels_1): Adjust.
2635 * reload1.c (set_initial_label_offsets): Likewise.
2636 * stmt.c (force_label_rtx): Likewise.
2637 (expand_label): Likewise.
2639 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2641 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
2643 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
2645 PR tree-optimization/71077
2646 PR tree-optimization/68542
2647 * fold-const.c (fold_relational_const): Fix folding of
2648 VECTOR_CST comparisons that have a scalar boolean result type.
2649 (selftest::test_vector_folding): New static function.
2650 (selftest::fold_const_c_tests): Call it.
2652 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
2654 * doc/extend.texi (SPU Built-in Functions): Remove stale
2655 references to material formerly at IBM and Sony.
2657 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
2660 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
2662 2016-08-26 David Malcolm <dmalcolm@redhat.com>
2664 * diagnostic-show-locus.c
2665 (selftest::test_fixit_consolidation): New function.
2666 (selftest::diagnostic_show_locus_c_tests): Call it.
2667 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
2668 constructor based on source_range.
2670 2016-08-26 David Malcolm <dmalcolm@redhat.com>
2672 * diagnostic-color.c (color_dict): Add "fixit-insert" and
2674 (parse_gcc_colors): Update description of default GCC_COLORS.
2675 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
2676 (colorizer::set_fixit_insert): New method.
2677 (colorizer::set_fixit_delete): New method.
2678 (colorizer::get_color_by_name): New method.
2679 (colorizer::STATE_FIXIT_INSERT): New constant.
2680 (colorizer::STATE_FIXIT_DELETE): New constant.
2681 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
2682 fields in favor of new field "m_stop_color". Add fields
2683 "m_fixit_insert" and "m_fixit_delete".
2684 (colorizer::colorizer): Update for above changes. Replace
2685 colorize_start calls with calls to get_color_by_name.
2686 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
2687 STATE_FIXIT_DELETE. Update for field renamings.
2688 (colorizer::finish_state): Simplify by using m_stop_color,
2689 rather than multiple identical "*_ce" fields.
2690 (colorizer::get_color_by_name): New method.
2691 (layout::print_any_fixits): Print insertions and replacements
2692 using the "fixit-insert" color, and deletions using the
2693 "fixit-delete" color.
2694 * doc/invoke.texi (-fdiagnostics-color): Update description of
2695 default GCC_COLORS, and of the supported capabilities.
2697 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
2699 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
2700 current_function_static_stack_size variable with the static
2701 stack frame size of the current function when
2702 flag_stack_usage_info is enabled.
2704 2016-08-26 Nathan Sidwell <nathan@acm.org>
2706 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
2707 assignment inside if condition.
2709 2016-08-26 Richard Biener <rguenther@suse.de>
2711 PR tree-optimization/69047
2712 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
2713 extracts similar to what FRE does.
2714 (non_rewritable_mem_ref_base): Likewise.
2716 2016-08-26 Joseph Myers <joseph@codesourcery.com>
2718 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
2719 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
2720 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
2721 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
2722 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
2724 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
2725 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
2726 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
2727 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
2728 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
2730 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2733 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
2734 reservation duration to 15 cycles.
2735 (cortex_a8_vfp_macs): Likewise.
2736 (cortex_a8_vfp_macd): Likewise.
2737 (cortex_a8_vfp_divs): Likewise.
2738 (cortex_a8_vfp_divd): Likewise.
2740 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2742 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
2743 (aarch_macro_fusion_pair_p): Use above to avoid early return.
2745 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2746 Martin Jambhor <mjambor@suse.cz>
2748 * common.opt: New option -fipa-bit-cp.
2749 * doc/invoke.texi: Document -fipa-bit-cp.
2750 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
2751 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
2752 * tree-ssa-ccp.h: New header file.
2753 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
2754 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
2755 Replace all occurences of tree parameter by two new params: signop, int.
2756 (bit_value_unop_1): Change to bit_value_unop and export it.
2757 Replace all occurences of tree parameter by two new params: signop,
2759 (bit_value_binop): Change call from bit_value_binop_1 to
2761 (bit_value_assume_aligned): Likewise.
2762 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
2763 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
2765 (ccp_finalize): Skip processing if val->mask == 0.
2766 * ipa-cp.c: Include tree-ssa-ccp.h
2767 (ipcp_bits_lattice): New class.
2768 (ipcp_param_lattice (bits_lattice): New member.
2769 (print_all_lattices): Call ipcp_bits_lattice::print.
2770 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
2771 (initialize_node_lattices): Likewise.
2772 (propagate_bits_accross_jump_function): New function.
2773 (propagate_constants_accross_call): Call
2774 propagate_bits_accross_jump_function.
2775 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
2776 (ipcp_store_bits_results): New function.
2777 (ipcp_driver): Call ipcp_store_bits_results.
2778 * ipa-prop.h (ipa_bits): New struct.
2779 (ipa_jump_func): Add new member bits of type ipa_bits.
2780 (ipa_param_descriptor): Change decl to decl_or_type.
2781 (ipa_get_param): Change decl to decl_or_type and assert on
2783 (ipa_get_type): New function.
2784 (ipcp_transformation_summary): New member bits.
2785 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
2786 (ipa_populate_param_decls): Likewise.
2787 (ipa_dump_param): Likewise.
2788 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
2790 (ipa_set_jf_unknown): Set ipa_bits::known to false.
2791 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
2793 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
2794 (ipa_write_jump_function): Add streaming for ipa_bits.
2795 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
2796 (write_ipcp_transformation_info): Add streaming for ipa_bits
2798 (read_ipcp_transfomration_info): Add support for reading streamed
2800 (ipcp_update_bits): New function.
2801 (ipcp_transform_function): Call ipcp_update_bits.
2803 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
2805 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
2806 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
2808 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
2810 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
2812 2016-08-25 Richard Biener <rguenther@suse.de>
2814 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
2815 Only add locations in late dwarf.
2816 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
2817 (dwarf2out_early_finish): But do it here.
2819 2016-08-24 Michael Collison <michael.collison@linaro.org>
2820 Michael Collison <michael.collison@arm.com>
2822 * config/arm/arm-modes.def: Add new condition code mode CC_V
2823 to represent the overflow bit.
2824 * config/arm/arm.c (maybe_get_arm_condition_code):
2825 Add support for CC_Vmode.
2826 (arm_gen_unlikely_cbranch): New function to generate common
2827 rtl conditional branches for overflow patterns.
2828 * config/arm/arm-protos.h: Add prototype for
2829 arm_gen_unlikely_cbranch.
2830 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
2831 addsi3_compareV_upper): New patterns to support signed
2832 builtin overflow add operations.
2833 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
2834 New patterns to support unsigned builtin add overflow operations.
2835 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
2836 builtin overflow subtract operations,
2837 (usubv<mode>4): New patterns to support unsigned builtin subtract
2838 overflow operations.
2839 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
2840 to support builtin overflow negate operations.
2842 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2845 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2847 * explow.c (get_dynamic_stack_size): Take known alignment of stack
2848 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
2851 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2853 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
2854 MULTILIB_OPTIONS should be used. Small wording fixes.
2855 * genmultilib: Memorize set of all option combinations in
2856 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
2857 found in MULTILIB_OPTIONS by checking if option set is listed in
2858 combination_space. Output new and existing error message to stderr.
2860 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
2862 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
2863 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
2864 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
2865 (MULTILIB_REUSE): Remove reuse rules for option set including
2866 -mfpu=fp-armv8 and -mfpu=vfpv4
2868 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
2870 * config/arm/t-rtems: Add vfp multilib.
2872 2016-08-23 Ian Lance Taylor <iant@golang.org>
2874 * config/s390/s390.c (s390_asm_file_start): Call
2877 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2879 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
2880 initialization of all 0's to the 0 constant, instead of directly
2881 generating XOR. Add support for V4SImode vector initialization on
2882 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
2883 initialization. Change variables used in V4SFmode vector
2884 intialization. For V4SFmode vector splat on ISA 3.0, make sure
2885 any memory addresses are in index form. Add support for using
2886 VSPLTH/VSPLTB to initialize vector short and vector char vectors
2887 with all of the same element.
2888 (regno_or_subregno): New helper function to return a register
2889 number for either REG or SUBREG.
2890 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
2891 Use regno_or_subregno where possible.
2892 (rs6000_split_v4si_init_di_reg): New helper function to build up a
2893 DImode value from two SImode values in order to generate V4SImode
2894 vector initialization on 64-bit systems with direct move.
2895 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
2897 (rtx_is_swappable_p): V4SImode vector initialization insn is not
2899 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
2901 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
2902 attributes to initialize V8HImode and V16QImode vectors with the
2904 (VSX_SPLAT_COUNT): Likewise.
2905 (VSX_SPLAT_SUFFIX): Likewise.
2906 (UNSPEC_VSX_VEC_INIT): New unspec.
2907 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
2908 Allow SFmode values to come from Altivec registers.
2909 (vsx_init_v4si): New insn/split for V4SImode vector initialization
2910 on 64-bit systems with direct move.
2911 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
2912 vector initializations, to allow V4SImode vector initializations
2913 on 64-bit systems with direct move.
2914 (vsx_splat_v4si): Likewise.
2915 (vsx_splat_v4si_di): Likewise.
2916 (vsx_splat_v4sf): Likewise.
2917 (vsx_splat_v4sf_internal): Likewise.
2918 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
2920 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
2921 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
2922 initializing V8HImode and V16QImode vectors with the same
2924 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
2925 optimization if -maltivec=be.
2927 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
2929 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
2930 attribute for alternatives 3 and 4.
2932 2016-08-23 David Malcolm <dmalcolm@redhat.com>
2934 * selftest.c (selftest::assert_str_contains): New function.
2935 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
2936 * selftest.h (selftest::assert_str_contains): New decl.
2937 (ASSERT_STR_CONTAINS): New macro.
2939 2016-08-23 Richard Biener <rguenther@suse.de>
2941 PR tree-optimization/77286
2942 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
2944 (vect_transform_loop): Split exit edges of loop and scalar
2945 loop if required and at the appropriate time.
2947 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2949 * explow.c (get_dynamic_stack_size): Take known alignment of stack
2950 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
2952 Correct a typo in a comment.
2954 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2956 * config/s390/s390.md ("*andc_split"): New splitter for and with
2959 2016-08-23 Richard Biener <rguenther@suse.de>
2961 PR tree-optimization/27336
2962 * tree-vrp.c (infer_value_range): Handle stmts that can throw
2963 by looking for a non-EH edge.
2964 (process_assert_insertions_for): Likewise.
2966 2016-08-23 Richard Biener <rguenther@suse.de>
2969 * statistics.c (statistics_counter_event): Robustify against
2972 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2974 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
2975 for targets amdfam10 and barcelona.
2977 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
2979 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
2980 (zero_extend<mode>di2): Ditto.
2981 (*zero_extend<mode>si2): Ditto.
2982 (*zero_extendqihi2): Ditto.
2984 2016-08-22 Joseph Myers <joseph@codesourcery.com>
2987 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
2988 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
2990 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
2992 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
2993 identical consecutive elements.
2994 [SSA_NAME]: Print the name's def stmt on its own line. When printing
2995 the node's def stmt, avoid printing an unwanted trailing newline by
2996 replacing the call to print_gimple_stmt() with its inlined body and
2997 adjusting it to not set pp_needs_newline and to call pp_flush()
2998 instead of pp_newline_and_flush().
3000 2016-08-22 Joseph Myers <joseph@codesourcery.com>
3002 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3003 (float32_type_node, float64_type_node, float32x_type_node)
3004 (float128x_type_node): New macros.
3005 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3006 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3007 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3008 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3009 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3010 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3011 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3012 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3013 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3014 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3015 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3016 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3017 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3018 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3019 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3020 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3021 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3022 (copysign, fabs, huge_val, inf, nan, nans): Use it.
3023 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3025 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3026 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3027 * doc/extend.texi (Other Builtins): Document these built-in
3029 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3032 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
3034 * doc/install.texi (Binaries): www.opencsw.org now uses https.
3036 2016-08-22 Richard Biener <rguenther@suse.de>
3038 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3040 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
3043 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3044 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3045 non-SSE2 athlons only, otherwise prefer SSE prefetches.
3047 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3049 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3050 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3051 (vrp_visit_switch_stmt): Likewise.
3052 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3053 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3054 (vrp_visit_stmt): Use extract_range_from_stmt.
3055 (vrp_visit_phi_node): Use extract_range_from_phi_node.
3057 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3059 * Makefile.in: Add tree-vrp.h to GTFILES.
3060 * gengtype.c (open_base_files): Add tree-vrp.h.
3061 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3062 * builtins.c: Likewise.
3063 * fold-const.c: Likewise.
3064 * gimple-builder.c: Likewise.
3065 * gimple-laddress.c: Likewise.
3066 * hsa-gen.c: Likewise.
3067 * internal-fn.c: Likewise.
3069 * targhooks.c: Liewise,
3070 * tree-ssa-address.c: Likewise.
3071 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3072 * tree-vrp.c (struct value_range): Move to tree-vrp.h
3073 * tree-vrp.h: New file.
3075 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
3077 PR tree-optimization/61839
3078 * tree-vrp.c (two_valued_val_range_p): New.
3079 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3080 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3081 Also Convert VAR BINOP CST where VAR is two-valued to
3082 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3084 2016-08-19 David Malcolm <dmalcolm@redhat.com>
3086 * diagnostic-show-locus.c
3087 (layout::annotation_line_showed_range_p): New method.
3088 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3089 Reimplement case fixit_hint::REPLACE to cover removals, and
3090 replacements where the range of the replacement isn't one
3091 of the ranges in the rich_location.
3092 (test_one_liner_fixit_replace): Likewise.
3093 (selftest::test_one_liner_fixit_replace_non_equal_range): New
3095 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
3097 (selftest::test_diagnostic_show_locus_one_liner): Call the new
3099 * diagnostic.c (print_parseable_fixits): Remove case
3102 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
3105 * config/i386/i386.c (ix86_option_override_internal): Remove
3106 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3107 Enable SSE prefetch also for TARGET_PREFETCHWT1.
3108 Do not try to enable TARGET_PRFCHW ISA flag here.
3109 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3110 Rewrite expander function body.
3111 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3113 2016-08-19 Joseph Myers <joseph@codesourcery.com>
3116 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
3117 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
3118 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
3119 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
3120 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
3121 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
3122 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
3123 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
3124 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
3126 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
3128 (struct floatn_type_info): New structure type.
3129 (floatn_nx_types): New variable declaration.
3130 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
3131 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
3132 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
3133 * tree.c (floatn_nx_types): New variable.
3134 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
3135 corresponding complex types.
3136 * target.def (floatn_mode): New hook.
3137 * targhooks.c: Include "real.h".
3138 (default_floatn_mode): New function.
3139 * targhooks.h (default_floatn_mode): New prototype.
3140 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
3142 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
3143 effective-target and dg-add-options keywords.
3144 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
3145 Document new effective-target keywords.
3146 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
3147 * doc/tm.texi: Regenerate.
3148 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
3149 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
3150 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
3152 * real.h (struct real_format): Add field ieee_bits.
3153 * real.c (ieee_single_format, mips_single_format)
3154 (motorola_single_format, spu_single_format, ieee_double_format)
3155 (mips_double_format, motorola_double_format)
3156 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
3157 (ieee_extended_intel_128_format)
3158 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
3159 (mips_extended_format, ieee_quad_format, mips_quad_format)
3160 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
3161 (decimal_double_format, decimal_quad_format, ieee_half_format)
3162 (arm_half_format, real_internal_format: Initialize ieee_bits
3164 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
3165 float128_type_node. Set float80_type_node to float64x_type_node
3166 if appropriate and long_double_type_node not appropriate.
3167 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
3168 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
3169 Initialize ieee_bits field.
3170 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
3171 (rs6000_init_builtins): Set ieee128_float_type_node to
3173 (rs6000_floatn_mode): New function.
3175 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3177 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3178 _rdseed64_step): Uglify argument names and/or local variable names
3179 in inline functions.
3180 * config/i386/rtmintrin.h (_xabort): Likewise.
3181 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
3182 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
3183 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
3184 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
3185 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
3186 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
3187 _mm_maskz_ternarylogic_epi32): Likewise.
3188 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
3189 __lwpins32, __lwpins64): Likewise.
3190 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
3191 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
3192 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
3193 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
3194 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
3195 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
3196 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
3197 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
3198 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
3199 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
3200 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
3201 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
3202 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
3203 _mm256_mask_i64gather_epi32): Likewise.
3204 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3205 * config/i386/ia32intrin.h (__writeeflags): Likewise.
3206 * config/i386/pkuintrin.h (_wrpkru): Likewise.
3207 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
3208 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
3209 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
3210 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
3211 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
3212 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
3213 _mm512_mask_prefetch_i64scatter_ps): Likewise.
3214 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3215 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
3216 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
3217 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
3218 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
3219 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
3220 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
3221 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
3223 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
3225 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
3226 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
3228 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
3229 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
3231 (_rdpkru_u32): Add space after function name.
3233 * config/i386/t-i386 (i386-c.o): Don't depend on
3234 i386-builtin-types.inc.
3235 (i386.o): Depend on i386-builtin-types.inc.
3237 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
3240 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
3241 Use const_vec_duplicate to check for duplicated elements.
3243 2016-08-19 Richard Biener <rguenther@suse.de>
3245 PR tree-optimization/77290
3246 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3247 Fix flag_tree_parallelize_loops check.
3249 2016-08-19 Richard Biener <rguenther@suse.de>
3251 * match.pd (x | 0 -> x): Add.
3253 2016-08-19 Richard Biener <rguenther@suse.de>
3255 PR tree-optimization/77286
3256 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3257 Deal with virtual PHIs being out-of-order.
3259 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3261 * doc/invoke.texi (fverbose-asm): Note that source code lines
3262 are emitted, and provide an example.
3263 * final.c (asm_show_source): New function.
3264 (final_scan_insn): Call asm_show_source.
3266 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3268 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
3269 param with diagnostic_kind.
3270 (class colorizer): Similarly replace field m_diagnostic with
3272 (colorizer::colorizer): Replace diagnostic
3273 param with diagnostic_kind.
3274 (colorizer::begin_state): Update for above field change.
3275 (layout::layout): Replace diagnostic param with rich_location *
3276 and diagnostic_kind.
3277 (diagnostic_show_locus): Replace diagnostic param with richloc
3278 and diagnostic_kind.
3279 (class selftest::test_diagnostic_context): New class.
3280 (selftest::test_diagnostic_show_locus_unknown_location): New
3282 (selftest::test_one_liner_simple_caret): New function.
3283 (selftest::test_one_liner_caret_and_range): New function.
3284 (selftest::test_one_liner_multiple_carets_and_ranges): New
3286 (selftest::test_one_liner_fixit_remove): New function.
3287 (selftest::test_one_liner_fixit_replace): New function.
3288 (selftest::test_diagnostic_show_locus_one_liner): New function.
3289 (selftest::diagnostic_show_locus_c_tests): Call the new test
3291 * diagnostic.c (diagnostic_initialize): Initialize
3292 colorize_source_p, show_ruler_p and parseable_fixits_p.
3293 (default_diagnostic_finalizer): Update for change to
3294 diagnostic_show_locus.
3295 (diagnostic_append_note): Likewise.
3296 * diagnostic.h (diagnostic_show_locus): Replace
3297 const diagnostic_info * param with location * and diagnostic_t.
3299 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3301 * input.c (saved_line_table): New global.
3302 (class selftest::temp_line_table): Rename to line_table_test and
3303 move declaration to selftest.h, and drop field m_old_line_table.
3304 (selftest::temp_line_table::temp_line_table): Rename ctor to...
3305 (selftest::line_table_test::line_table_test): ...this. Add a
3306 default ctor. Store current value of line_table within
3308 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
3309 (selftest::line_table_test::~line_table_test): ...this, and
3310 restore line_table from the saved_line_table, rather than
3312 (selftest::test_accessing_ordinary_linemaps): Update for above
3314 (selftest::test_lexer): Likewise.
3315 (struct selftest::lexer_test): Likewise.
3316 (selftest::lexer_test::lexer_test): Likewise.
3317 (selftest::input_c_tests): Move the looping over test cases from
3319 (selftest::for_each_line_table_case): New function.
3320 * input.h (saved_line_table): New decl.
3321 * selftest.h (struct selftest::line_table_case): New forward decl.
3322 (class selftest::line_table_test): New class, moved here from
3323 selftest::temp_line_table in input.c, and renamed.
3324 (selftest::for_each_line_table_case): New decl.
3326 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
3329 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
3331 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3334 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
3335 enclosing parallel construct for reduction variables on OpenACC loop
3338 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
3340 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
3341 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
3343 (function_to_dwarf_procedure): Update comment.
3345 2016-08-18 David Malcolm <dmalcolm@redhat.com>
3347 * input.c (diagnostics_file_cache_forcibly_evict_file): New
3349 * input.h (diagnostics_file_cache_forcibly_evict_file): New
3351 * selftest.c (selftest::temp_source_file::~temp_source_file):
3352 Evict m_filename from the diagnostic file cache.
3354 2016-08-18 Richard Biener <rguenther@suse.de>
3356 * tree-pass.h (make_pass_materialize_all_clones): Declare.
3357 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
3358 make_pass_materialize_all_clones): New simple IPA pass encapsulating
3359 clone materialization.
3360 * passes.def (all_late_ipa_passes): Start with
3361 pass_materialize_all_clones.
3362 * cgraphunit.c (symbol_table::compile): Remove call to
3363 materialize_all_clones.
3364 * tree-into-ssa.c: Include statistics.h.
3365 (update_ssa): Count number of times we do incremental/rewrite
3368 2016-08-18 Richard Biener <rguenther@suse.de>
3370 PR tree-optimization/77282
3371 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3372 When doing auto-parallelizing also prevent use of PHIs that
3373 carry dependences across loop backedges.
3375 2016-08-18 Tamar Christina <tamar.christina@arm.com>
3376 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3378 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
3380 2016-08-18 Richard Biener <rguenther@suse.de>
3382 * ssa-iterators.h (ssa_vuse_operand): New inline.
3383 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
3384 (predicate_all_scalar_phis): Use remove_phi_node to remove
3385 phi nodes predicated. Delay removing virtual PHIs.
3386 (predicate_mem_writes): Update virtual operands.
3387 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
3388 (tree_if_conversion): Do not rewrite virtual SSA form.
3389 * tree-phinodes.c (release_phi_node): Make static.
3390 * tree-phinodes.h (release_phi_node): Remove.
3392 2016-08-18 Jakub Jelinek <jakub@redhat.com>
3394 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
3395 codes that appear in bdesc_* arrays, instead include i386-builtin.def
3396 twice to define those.
3397 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
3398 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
3399 bdesc_multi_arg): Define by including i386-builtin.def the third time.
3400 * config/i386/i386-builtin.def: New file.
3402 2016-08-17 David Malcolm <dmalcolm@redhat.com>
3404 * input.c (get_source_range_for_char): Rename to...
3405 (selftest::get_source_range_for_char): ...this, and move within
3406 the #if CHECKING_P guard.
3407 (get_num_source_ranges_for_substring): Rename to...
3408 (selftest::get_num_source_ranges_for_substring): ...this, move
3409 within the #if CHECKING_P guard, and make static.
3410 (selftest::assert_num_substring_ranges): Initialize
3413 2016-08-18 Alan Modra <amodra@gmail.com>
3415 PR rtl-optimization/72771
3416 * reload.c (find_reloads): Don't assume that a subreg mem is OK
3417 when find_reloads_toplev returns address_reloaded==-1.
3418 (alternative_allows_const_pool_ref): Update comment.
3420 2015-08-17 Alan Hayward <alan.hayward@arm.com>
3422 PR tree-optimization/71752
3423 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
3424 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
3426 2016-08-17 Jakub Jelinek <jakub@redhat.com>
3428 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
3429 instead of testing ECF_NORETURN bit in gimple_call_flags.
3430 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
3431 * predict.c (tree_bb_level_predictions): Likewise.
3432 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
3435 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
3436 turning a call into __builtin_unreachable-like noreturn call, adjust
3437 gimple_call_set_fntype.
3438 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
3439 gimple_call_fntype has void return type.
3441 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
3443 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
3444 maybe_lookup_decl, to handle nested acc loop directives.
3446 2016-08-17 Richard Biener <rguenther@suse.de>
3448 PR tree-optimization/76490
3449 * tree-vrp.c (update_value_range): Preserve overflow infinities
3450 when intersecting with ranges from get_range_info.
3451 (operand_less_p): Handle overflow infinities correctly.
3452 (value_range_constant_singleton): Use vrp_operand_equal_p
3453 to handle overflow max/min correctly.
3454 (vrp_valueize): Likewise.
3455 (union_ranges): Likewise.
3456 (intersect_ranges): Likewise.
3457 (vrp_visit_phi_node): Improve iteration limitation to only
3458 apply when we'll possibly re-visit the PHI via a changed argument
3461 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
3463 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
3464 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
3465 rather than those that should not be built.
3467 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
3470 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
3472 2016-08-17 Richard Biener <rguenther@suse.de>
3474 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
3475 (verify_vssa): New function verifying virtual SSA form.
3476 (verify_ssa): Call it.
3477 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
3478 Do not apply loop-closed SSA handling to virtuals.
3479 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
3480 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
3481 when rewriting their symbol.
3482 (prepare_def_site_for): Likewise.
3483 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
3484 operands of moved stmts.
3486 2016-08-17 Richard Biener <rguenther@suse.de>
3488 PR tree-optimization/23855
3489 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
3490 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
3491 find guards to hoist. Do not update SSA form but rewrite virtuals
3492 into loop closed SSA.
3493 (find_loop_guard): Adjust to skip already hoisted guards. Do
3494 not mark virtuals for renaming or update SSA form.
3496 2016-08-17 Martin Liska <mliska@suse.cz>
3498 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
3499 a LONG_LONG_TYPE_SIZE comparison.
3500 * gcov-io.h: Remove macro definitions.
3501 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
3502 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
3505 2016-08-16 Jakub Jelinek <jakub@redhat.com>
3507 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
3508 that builtins not mentioned in bdesc_* arrays come first, then
3509 the ones mentioned in bdesc_* arrays in the order they appear in
3510 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
3511 IX86_BUILTIN__BDESC_*_LAST enumerator.
3512 (bdesc_mpx): Fix up a comment typo.
3513 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
3514 __builtin_ia32_vpcomneu[bwdq] builtins.
3515 (BDESC_VERIFY, BDESC_VERIFYS): Define.
3516 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
3517 enum ix86_builtins ordering.
3518 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
3519 for direct bdesc_* array member access instead of searching all the
3520 arrays until an fcode match is found.
3522 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
3524 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
3525 pattern as define_insn_and_split. Split insn before reload to
3527 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
3528 <shift_insn><mode>3_1.
3529 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
3530 <rotate_insn><mode>3_1.
3532 2016-08-16 David Malcolm <dmalcolm@redhat.com>
3535 * input.c (get_source_range_for_substring): Rename to...
3536 (get_source_location_for_substring): ...this, adding param
3537 "caret_idx", and converting output param from source_range * to
3539 (get_source_range_for_char): New function.
3540 (get_num_source_ranges_for_substring): Update comment to reflect
3542 (assert_char_at_range): Update to use get_source_range_for_char
3543 rather than get_source_range_for_substring.
3544 (test_lexer_string_locations_concatenation_2): Likewise.
3545 * substring-locations.h (get_source_range_for_substring): Rename
3547 (get_source_location_for_substring): ...this, and adding param
3548 "caret_idx", and converting output param from source_range * to
3551 2016-08-16 David Malcolm <dmalcolm@redhat.com>
3553 * input.c (class selftest::temp_source_file): Move to
3555 (selftest::temp_source_file::temp_source_file): Move to
3557 (selftest::temp_source_file::~temp_source_file): Likewise.
3558 * selftest.c (selftest::temp_source_file::temp_source_file): Move
3560 (selftest::temp_source_file::~temp_source_file): Likewise.
3561 * selftest.h (class selftest::temp_source_file): Move here from
3564 2016-08-16 Jakub Jelinek <jakub@redhat.com>
3567 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
3568 inlining, add cgraph edge for the added __builtin_unreachable call.
3571 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
3572 only cast it to SHWI for the final comparison.
3574 2016-08-16 Martin Liska <mliska@suse.cz>
3576 PR gcov-profile/36412
3577 * doc/gcov.texi: Document --hash-filenames(-x).
3578 * gcov.c (print_usage): Add the option.
3579 (process_args): Process the option, sort options alphabetically.
3580 (md5sum_to_hex): New function.
3581 (make_gcov_file_name): Do the md5sum and append it to a
3584 2016-08-16 Bin Cheng <bin.cheng@arm.com>
3586 PR tree-optimization/69848
3587 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
3588 and swtich operands to avoid additional NOT instruction.
3589 (vcond<v_cmp_mixed><mode>): Ditto.
3590 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
3592 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
3594 * doc/install.texi (*-*-solaris2*): Adjust latest change.
3596 2016-08-16 Richard Biener <rguenther@suse.de>
3598 PR tree-optimization/76783
3599 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
3600 BB visited flags at start.
3602 2016-08-16 Bin Cheng <bin.cheng@arm.com>
3604 PR tree-optimization/72817
3605 PR tree-optimization/73450
3606 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
3607 multiple_of_p for adjusted IV.base.
3609 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
3612 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
3613 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
3614 for !flag_finite_math_only or flag_signed_zeros.
3615 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
3616 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
3617 depend on flag_finite_math_only.
3618 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
3620 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
3621 (*ieee_smin<mode>3): Ditto.
3622 (*ieee_smax<mode>3): Ditto.
3623 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
3624 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
3626 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
3627 depend on flag_finite_math_only.
3628 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
3629 (*mmx_<code>v2sf3): Remove.
3630 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
3631 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
3632 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
3634 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
3636 PR rtl-optimization/73650
3637 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
3638 it is not a simple move.
3640 2016-08-15 Martin Liska <mliska@suse.cz>
3643 * gcc.c (do_spec_1): Call save_string with the right size.
3644 (save_string): Do an assert about string we copy.
3646 2016-08-15 Richard Biener <rguenther@suse.de>
3648 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
3649 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
3651 (pass_data_stv): Likewise.
3653 2016-08-15 Richard Biener <rguenther@suse.de>
3655 PR tree-optimization/73434
3656 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
3657 TBAA info on the base when forwarding a non-invariant address.
3659 2016-08-15 Jakub Jelinek <jakub@redhat.com>
3661 * dwarf2out.c (struct checksum_attributes): Add
3662 at_string_length_bit_size and at_string_length_byte_size fields.
3663 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
3664 and DW_AT_string_length_byte_size.
3665 (die_checksum_ordered): Handle at_string_length_bit_size and
3666 at_string_length_byte_size.
3667 (gen_array_type_die): For dwarf_version >= 5 emit
3668 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
3669 (adjust_string_types): For dwarf_version >= 5 remove
3670 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
3671 (resolve_addr): Likewise.
3674 * dwarf2out.c (string_types): New variable.
3675 (gen_array_type_die): Change early_dwarf handling of
3676 DW_AT_string_length, create DW_OP_call4 referencing the
3677 length var temporarily. Handle parameters that are pointers
3679 (adjust_string_types): New function.
3680 (gen_subprogram_die): Temporarily set string_types to local var,
3681 call adjust_string_types if needed.
3682 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
3684 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
3686 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
3688 * doc/install.texi (*-*-solaris2*): Fix version number and document
3689 requirement on GNU make for building libjava with the Solaris linker.
3691 2016-08-15 Martin Liska <mliska@suse.cz>
3692 Jakub Jelinek <jakub@redhat.com>
3694 PR tree-optimization/72824
3695 * tree-loop-distribution.c (const_with_all_bytes_same)
3696 <case VECTOR_CST>: Fix a typo.
3698 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
3701 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
3702 Renamed from _mm512_undefined_si512.
3703 (_mm_undefined_si512): New definition.
3705 2016-08-13 Richard Biener <rguenther@suse.de>
3707 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
3708 into PHIs and update the lattice for its def.
3710 2016-08-12 Jakub Jelinek <jakub@redhat.com>
3713 * ubsan.c (instrument_si_overflow): Pass true instead of false
3715 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
3716 of bbs. Return TODO_cleanup_cfg if any returned true.
3718 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3720 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
3721 ISA 3.0 MTVSRDD instruction.
3722 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
3725 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3727 PR tree-optimization/71083
3728 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
3729 bitfield access when possible.
3731 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
3734 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
3735 sign-changing cast from a shorter unsigned type to a wider
3738 2016-08-12 Jakub Jelinek <jakub@redhat.com>
3740 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
3741 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
3742 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
3744 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3746 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
3747 Correct costs for vec_construct.
3749 2016-08-12 Bin Cheng <bin.cheng@arm.com>
3751 PR tree-optimization/69848
3752 * tree-vectorizer.h (enum vect_def_type): New condition reduction
3753 type CONST_COND_REDUCTION.
3754 * tree-vect-loop.c (vectorizable_reduction): Support new condition
3755 reudction type CONST_COND_REDUCTION.
3757 2016-08-12 Richard Biener <rguenther@suse.de>
3759 PR tree-optimization/57326
3760 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
3761 returning an SSA name.
3762 (phi_translate_1): When fully_constant_expression returns a NAME
3763 make sure we have a leader for it.
3765 2016-08-12 Martin Liska <mliska@suse.cz>
3766 Adam Fineman <afineman@afineman.com>
3768 * gcov.c (process_file): Create .gcov file when .gcda
3771 2016-08-12 Marek Polacek <polacek@redhat.com>
3774 * alias.c (find_base_value): Adjust fall through comment.
3775 * cfgexpand.c (expand_debug_expr): Likewise.
3776 * combine.c (find_split_point): Likewise.
3777 (expand_compound_operation): Likewise. Add FALLTHRU.
3778 (make_compound_operation): Adjust fall through comment.
3779 (canon_reg_for_combine): Add FALLTHRU.
3780 (force_to_mode): Adjust fall through comment.
3781 (simplify_shift_const_1): Likewise.
3782 (simplify_comparison): Likewise.
3783 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
3785 * config/aarch64/predicates.md: Likewise.
3786 * config/i386/i386.c (function_arg_advance_32): Likewise.
3787 (ix86_gimplify_va_arg): Likewise.
3788 (print_reg): Likewise.
3789 (ix86_print_operand): Likewise.
3790 (ix86_build_const_vector): Likewise.
3791 (ix86_expand_branch): Likewise.
3792 (ix86_sched_init_global): Adjust fall through comment.
3793 (ix86_expand_args_builtin): Add FALLTHRU.
3794 (ix86_expand_builtin): Likewise.
3795 (ix86_expand_vector_init_one_var): Likewise.
3796 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
3797 (rs6000_adjust_cost): Likewise.
3798 (insn_must_be_first_in_group): Likewise.
3799 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
3800 * dbxout.c (dbxout_symbol): Adjust fall through comment.
3801 * df-scan.c (df_uses_record): Likewise.
3802 * dojump.c (do_jump): Add FALLTHRU.
3803 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
3805 (resolve_args_picking_1): Adjust fall through comment.
3806 (loc_list_from_tree_1): Likewise.
3807 * expmed.c (make_tree): Likewise.
3808 * expr.c (expand_expr_real_2): Add FALLTHRU.
3809 (expand_expr_real_1): Likewise. Adjust fall through comment.
3810 * fold-const.c (const_binop): Adjust fall through comment.
3811 (fold_truth_not_expr): Likewise.
3812 (fold_cond_expr_with_comparison): Add FALLTHRU.
3813 (fold_binary_loc): Likewise.
3814 (contains_label_1): Adjust fall through comment.
3815 (multiple_of_p): Likewise.
3816 * gcov-tool.c (process_args): Add FALLTHRU.
3817 * genattrtab.c (check_attr_test): Likewise.
3818 (write_test_expr): Likewise.
3819 * genconfig.c (walk_insn_part): Likewise.
3820 * genpreds.c (validate_exp): Adjust fall through comment.
3821 (needs_variable): Likewise.
3822 * gensupport.c (get_alternatives_number): Add FALLTHRU.
3823 (subst_dup): Likewise.
3824 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
3825 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
3826 (gimplify_scan_omp_clauses): Add FALLTHRU.
3827 (goa_stabilize_expr): Likewise.
3828 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
3830 * hsa-gen.c (get_address_from_value): Likewise.
3831 * ipa-icf.c (sem_function::hash_stmt): Likewise.
3832 * ira.c (ira_setup_alts): Add FALLTHRU.
3833 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
3835 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
3836 * opts.c (common_handle_option): Likewise.
3837 * read-rtl.c (read_rtx_code): Likewise.
3838 * real.c (round_for_format): Likewise.
3839 * recog.c (asm_operand_ok): Likewise.
3840 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
3841 * reload1.c (set_label_offsets): Likewise.
3842 (eliminate_regs_1): Likewise.
3843 (reload_reg_reaches_end_p): Likewise.
3844 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
3845 (rtx_cost): Likewise.
3846 * sched-rgn.c (is_exception_free): Likewise.
3847 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
3848 * stor-layout.c (int_mode_for_mode): Likewise.
3849 * toplev.c (print_to_asm_out_file): Likewise.
3850 (print_to_stderr): Likewise.
3851 * tree-cfg.c (gimple_verify_flow_info): Likewise.
3852 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
3853 (chrec_fold_multiply): Likewise.
3854 (evolution_function_is_invariant_rec_p): Likewise.
3855 (for_each_scev_op): Likewise.
3856 * tree-data-ref.c (siv_subscript_p): Likewise.
3857 (get_references_in_stmt): Likewise.
3858 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
3859 (substitute_in_expr): Likewise.
3860 (type_cache_hasher::equal): Likewise.
3861 (walk_type_fields): Likewise.
3862 * var-tracking.c (adjust_mems): Add FALLTHRU.
3863 (set_dv_changed): Adjust fall through comment.
3864 * varasm.c (default_function_section): Add FALLTHRU.
3866 2016-08-12 Marek Polacek <polacek@redhat.com>
3869 * tree-complex.c (expand_complex_division): Add missing break.
3871 2016-08-12 Richard Biener <rguenther@suse.de>
3873 * passes.c (execute_todo): Do not push/pop TV_TODO.
3874 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
3875 (execute_one_pass): Likewise.
3876 * common.opt (ftime-report-details): New switch.
3877 * doc/invoke.texi (ftime-report-details): Document.
3878 * timevar.h (timer::print_row): Adjust signature.
3879 (timer::all_zero): New static helper.
3880 (timer::child_map_t): New typedef.
3881 (timer::time_var_def): Add children field.
3882 * timevar.c (timer::named_items::print): Adjust.
3883 (timer::~timer): Free timevar recorded children.
3884 (timer::pop_internal): When -ftime-report-details record
3885 time spent in sub-timevars.
3886 (timer::print_row): Adjust.
3887 (timer::print): Print sub-timevar stats, use all_zero.
3888 * timevar.def (TV_TODO): Remove.
3890 2016-08-12 Richard Biener <rguenther@suse.de>
3892 PR tree-optimization/72851
3893 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
3894 worklists to use bitmaps indexed in execution order.
3895 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
3896 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
3897 (cfg_blocks): Make a bitmap.
3898 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
3900 (cfg_blocks_empty_p): Adjust.
3901 (cfg_blocks_add): Likewise.
3902 (cfg_blocks_get): Likewise.
3903 (add_ssa_edge): Likewise.
3904 (add_control_edge): Likewise.
3905 (simulate_stmt): Likewise.
3906 (process_ssa_edge_worklist): Likewise.
3907 (simulate_block): Likewise.
3908 (ssa_prop_init): Compute PRE order and stmt UIDs.
3909 (ssa_prop_fini): Adjust.
3910 (ssa_propagate): Adjust.
3912 2016-08-12 Richard Biener <rguenther@suse.de>
3914 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
3915 the currently executable edges have fixed ranges. Always
3916 go through update_value_range.
3918 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
3922 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
3923 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
3924 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
3925 (LANG_HOOKS_DECLS): Add it.
3926 * langhooks.h (struct lang_hooks_for_decls): Add
3927 function_decl_defaulted. Const_tree-ify
3928 function_decl_explicit_p and function_decl_deleted_p.
3929 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
3930 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
3931 also at strict DWARF v5.
3934 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
3935 TYPE_QUAL_CONST in reference-typed decls.
3938 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
3939 in DW_OP_pieces, just enough to handle pointers to member
3941 (gen_remaining_tmpl_value_param_die_attribute): Use a location
3942 expression on DWARFv5 if a constant value doesn't work.
3944 2016-08-11 David Malcolm <dmalcolm@redhat.com>
3946 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
3947 * selftest.c (selftest::test_assertions): New function.
3948 (selftest::selftest_c_tests): New function.
3949 * selftest.h (selftest::selftest_c_tests): New declaration.
3951 2016-08-11 Richard Biener <rguenther@suse.de>
3952 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3954 PR rtl-optimization/72855
3955 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
3957 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3960 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
3961 (vsx_store_<mode>): Likewise.
3963 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
3965 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
3966 TImode CONST_WIDE_INT store.
3967 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
3969 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
3971 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
3972 mode if unaligned SSE load and store are optimal.
3974 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
3976 PR tree-optimization/71083
3977 * tree-predcom.c (ref_at_iteration): Correctly align the
3980 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3982 * config/s390/s390-builtin-types.def: Add INT128 types.
3983 * config/s390/s390-builtins.def: Add INT128 variants for the add
3984 sub low-level builtins dealing with TImode.
3985 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
3986 via subreg when expanding a builtin.
3987 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
3988 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
3990 * config/s390/vecintrin.h: Adjust builtin names accordingly.
3991 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
3992 ("vec_addc<mode>", "vec_addc_u128"): Merge to
3993 "vacc<bhfgq>_<mode>".
3994 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
3995 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
3996 ("vec_subc<mode>", "vec_subc_u128"): Merge to
3997 "vscbi<bhfgq>_<mode>".
3998 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
3999 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4001 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4003 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4005 2016-08-11 Bin Cheng <bin.cheng@arm.com>
4007 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4009 (vcond<v_cmp_mixed><mode>): Ditto.
4010 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4012 2016-08-11 Bin Cheng <bin.cheng@arm.com>
4014 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4015 variable explicitly, also assert on it before use.
4017 2016-08-11 Richard Biener <rguenther@suse.de>
4019 PR tree-optimization/72772
4020 * cfgloopmanip.c (create_preheader): Use split_edge if there
4021 is a single loop entry, avoiding degenerate PHIs.
4023 2016-08-11 Richard Biener <rguenther@suse.de>
4025 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4026 unconditional TODO_cleanup_cfg.
4027 (pass_thread_jumps::execute): Initialize loops, perform a CFG
4028 cleanup only if we threaded a jump.
4030 2016-08-11 Alan Modra <amodra@gmail.com>
4033 * lra-constraints.c (simplify_operand_subreg): Allow subreg
4034 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4035 slow. Emit two reloads for slow mem case, first loading in
4036 fast innermode, then converting to required mode.
4038 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
4040 * config/rs6000/altivec.h (vec_extract_exp): New macro.
4041 (vec_extract_sig): New macro.
4042 (vec_insert_exp): New macro.
4043 (vec_test_data_class): New macro.
4044 (scalar_extract_exp): New macro.
4045 (scalar_extract_sig): New macro.
4046 (scalar_insert_exp): New macro.
4047 (scalar_test_data_class): New macro.
4048 (scalar_test_neg): New macro.
4049 (scalar_cmp_exp_gt): New macro.
4050 (scalar_cmp_exp_lt): New macro.
4051 (scalar_cmp_exp_eq): New macro.
4052 (scalar_cmp_exp_unordered): New macro.
4053 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4054 to enforce constraint that operand is a 7-bit unsigned literal.
4055 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4056 for power9 built-ins.
4057 (BU_P9V_VSX_2): Likewise.
4058 (BU_P9V_64BIT_VSX_2): Likewise.
4059 (VSEEDP): Add scalar extract exponent support.
4060 (VSEESP): Add scalar extract signature support.
4061 (VSTDCNDP): Add scalar test negative support.
4062 (VSTDCNSP): Likewise.
4063 (VSIEDP): Add scalar insert exponent support.
4064 (VSCEDPGT): Add scalar compare exponent greater than support.
4065 (VSCEDPLT): Add scalar compare exponent less than support.
4066 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4067 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4068 (VSTDCDP): Add scalar test data class support.
4069 (VSTDCSP): Likewise.
4070 (VSEEDP): Add overload support for scalar extract exponent
4072 (VSESDP): Add overload support for scalar extract signature
4074 (VSTDCN): Add overload support for scalar test negative
4076 (VSTDCNDP): Add overload support for scalar test negative
4078 (VSTDCNSP): Add overload support for scalar test negative
4080 (VSIEDP): Add overload support for scalar insert exponent
4082 (VSTDC): Add overload support for scalar test data class
4084 (VSTDCDP): Add overload support for scalar test data class
4086 (VSTDCSP): Add overload support for scalar test data class
4088 (VSCEDPGT): Add overload support for scalar compare exponent
4089 greater than operation.
4090 (VSCEDPLT): Add overload support for scalar compare exponent
4091 less than operation.
4092 (VSCEDPEQ): Add overload support for scalar compare exponent
4093 test-for-equality operation.
4094 (VSCEDPUO): Add overload support for scalar compare exponent
4095 test-for-unordered operation.
4096 (VEEDP): Add vector extract exponent support.
4098 (VESDP): Add vector extract significand support.
4100 (VIEDP): Add vector insert exponent support.
4102 (VTDCDP): Add vector test data class support.
4104 (VES): Add overload support for vector extract significand operation.
4107 (VEE): Add overload support for vector extract exponent operation.
4110 (VTDC): Add overload support for vector test data class operation.
4113 (VIE): Add overload support for vector insert exponent operation.
4116 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4117 overloaded binary floating point functions.
4118 (altivec_resolve_overloaded_builtin): Improve error messages to
4119 distinguish between functions not supported in the current
4120 compiler configuration and functions that were invoked with an
4121 invalid parameter combination, and include the built-in function
4122 name in both error messages.
4123 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
4125 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
4127 (rs6000_expand_binop_builtin): Add check to enforce that argument
4128 2 of the test data class operations is a 7-bit unsigned literal.
4129 (rs6000_invalid_builtin): Add code to issue an error message if a
4130 built-in function that requires the power9_vector and -m32
4131 command-line options is compiled without these options.
4132 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
4133 (UNSPEC_VSX_SXSIGDP): New value.
4134 (UNSPEC_VSX_SXSIGPDP): New value.
4135 (UNSPEC_VSX_SIEXPDP): New value.
4136 (UNSPEC_VSX_SCMPEXPDP): New value.
4137 (UNSPEC_VSX_STSTDC): New value.
4138 (UNSPEC_VSX_VXEXP): New value.
4139 (UNSPEC_VSX_VXSIG): New value.
4140 (UNSPEC_VSX_VIEXP): New value.
4141 (UNSPEC_VSX_VTSTDC): New value.
4142 (xsxexpdp): New insn for scalar extract exponent.
4143 (xsxsigdp): New insn for scalar extract significand.
4144 (xsiexpdp): New insn for scalar insert exponent.
4145 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
4146 (*xscmpexpdp): New insn for scalar compare exponents.
4147 (xststdc<Fvsx): New expansion for both single- and
4148 double-precision scalar test data class operations.
4149 (xststdcneg<Fvsx>): New expansion for both single- and
4150 double-precision scalar test for negative value operations.
4151 (*xststdc<Fvsx>): New insn for scalar test data class
4153 (xvxexp<VSs>): New insn for single- and double-precision
4154 vector extract exponent operation.
4155 (xvxsig<VSs>): New insn for single- and double-precision
4156 vector extract significand operation.
4157 (xviexp<VSs>): New insn for single- and double-precision
4158 vector insert exponent operation.
4159 (xvtstdc<VSs>): New insn for single- and double-precision
4160 vector test data class operation.
4161 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4162 built-in functions to represent the Power9 binary floating-point
4163 support instructions.
4165 2016-08-10 bin cheng <bin.cheng@arm.com>
4167 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
4169 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
4170 Renlin Li <renlin.li@arm.com>
4171 Bin Cheng <bin.cheng@arm.com>
4173 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
4174 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
4175 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
4176 (aarch64_vcond_internal<mode><mode>): Delete pattern.
4177 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
4178 (vcond<v_cmp_result><mode>): Ditto.
4179 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
4180 (vcondu<mode><mode>): Ditto.
4181 (vcond<v_cmp_mixed><mode>): New pattern.
4182 (vcondu<mode><v_cmp_mixed>): New pattern.
4183 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
4184 of aarch64_vcond_internal.
4186 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
4187 Renlin Li <renlin.li@arm.com>
4188 Bin Cheng <bin.cheng@arm.com>
4190 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
4191 (vec_cmp<mode><v_cmp_result>): New pattern.
4192 (vec_cmpu<mode><mode>): New pattern.
4193 (vcond_mask_<mode><v_cmp_result>): New pattern.
4195 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
4197 PR tree-optimization/71734
4198 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
4199 REF_LOOP, invoke ref_indep_loop_p_1.
4200 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
4201 to ref_indep_loop_p.
4202 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
4203 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
4204 is inside LOOP, do not cache dpendence value for loops with
4206 (ref_indep_loop_p_2): Delete function.
4207 (can_sm_ref_p): Pass LOOP as additional argument to
4210 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4213 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
4214 being an offsettable address.
4216 2016-08-10 Martin Liska <mliska@suse.cz>
4218 PR gcov-profile/58306
4219 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
4220 atomic variants of profile update functions.
4222 2016-08-10 Martin Liska <mliska@suse.cz>
4224 Cherry picked (and modified) from google-4_7 branch
4225 2012-12-26 Rong Xu <xur@google.com>
4226 * common.opt (fprofile-update): Add new flag.
4227 * coretypes.h: Define enum profile_update.
4228 * doc/invoke.texi: Document -fprofile-update.
4229 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
4230 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
4231 * tree-profile.c (gimple_init_edge_profiler): Generate
4232 also atomic profiler update.
4233 (gimple_gen_edge_profiler): Likewise.
4235 2016-08-10 David Malcolm <dmalcolm@redhat.com>
4237 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
4238 stack_usage_file to NULL after fclose calls.
4240 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4243 * reload.c (push_reload): Compute subreg_in_class for
4244 subregs of constants and plus expressions. Remove special
4245 handling of SYMBOL_REFs.
4247 2016-08-10 Alan Modra <amodra@gmail.com>
4250 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
4251 SImode for TARGET_E500_DOUBLE when given SImode.
4253 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
4255 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
4256 unused variable __O.
4258 2016-08-09 Martin Liska <mliska@suse.cz>
4260 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
4261 _gcov_reset to __gcov_reset.
4262 * doc/gcov-tool.texi: Fix typo.
4264 2016-08-09 Martin Liska <mliska@suse.cz>
4266 * value-prof.c (gimple_divmod_values_to_profile): Do not
4267 instrument MOD histogram if a value is not a SSA name.
4269 2016-08-09 Martin Liska <mliska@suse.cz>
4271 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
4274 2016-08-09 Renlin Li <renlin.li@arm.com>
4277 * calls.c (prepare_call_address): Convert funexp to Pmode when
4279 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
4280 (sibcall_value): Likewise.
4282 2016-08-09 Marek Polacek <polacek@redhat.com>
4285 * cselib.c (cselib_expand_value_rtx_1): Add return.
4286 * gengtype.c (dbgprint_count_type_at): Likewise.
4287 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
4288 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
4290 2016-08-09 Martin Jambor <mjambor@suse.cz>
4293 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
4294 if instance is a MEM_REF.
4296 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
4299 * config/i386/i386.md (*movtf_internal): Use
4300 lra_in_progress || reload_completed instead of !can_create_pseudo_p
4301 in the insn constraint.
4302 (*movxf_internal): Ditto.
4303 (*movdf_internal): Ditto.
4304 (*movsf_internal): Ditto.
4306 2016-08-09 Bin Cheng <bin.cheng@arm.com>
4308 PR tree-optimization/72772
4309 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
4312 2016-08-09 Bin Cheng <bin.cheng@arm.com>
4314 PR tree-optimization/72772
4315 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
4317 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
4318 parameter STOP and update calls. Move expand_simple_operations
4319 function call from here...
4320 (simplify_using_initial_conditions): ...to here. Delete parameter
4322 (tree_simplify_using_condition): Delete parameter STOP.
4323 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
4324 simplify_using_initial_conditions.
4326 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
4329 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
4330 Use create_tmp_var_raw instead of create_tmp_var.
4332 2016-08-09 Richard Biener <rguenther@suse.de>
4334 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
4335 Treat same SSA names related.
4337 2016-08-09 Jakub Jelinek <jakub@redhat.com>
4339 PR tree-optimization/72824
4340 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
4341 real_zerop is not negative.
4343 2016-08-09 Richard Biener <rguenther@suse.de>
4345 PR tree-optimization/71802
4346 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
4347 all merge opportunities with the predecessor.
4349 2016-08-09 Richard Biener <rguenther@suse.de>
4352 * ipa-prop.c (ipa_modify_formal_parameters): Build
4353 parameter types with natural alignment also for the
4356 2016-08-08 Andi Kleen <ak@linux.intel.com>
4358 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
4360 2016-08-08 David Malcolm <dmalcolm@redhat.com>
4363 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
4364 do-nothing langhook.
4365 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
4366 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
4367 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
4368 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
4370 2016-08-08 David Malcolm <dmalcolm@redhat.com>
4373 * input.c: Ensure that HAVE_ICONV is defined.
4375 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4378 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
4379 private vars for lastprivate and for linear iterator.
4382 * omp-simd-clone.c: Include varasm.h.
4383 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
4384 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
4385 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
4386 update function name.
4388 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4390 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
4391 (avr_diagnose_devicespecs_error): Remove.
4392 (avr_devicespecs_file): Remove composing absolute path for specfile
4393 and its verbose info. Remove conditions to check specs-file,
4395 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4397 PR rtl-optimization/72821
4398 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
4399 just return false for them.
4401 2016-08-08 Alan Modra <amodra@gmail.com>
4404 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
4405 toc refs created during reload. Update function comment.
4407 2016-08-08 Alan Modra <amodra@gmail.com>
4410 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
4411 alternatives. Put loads first, then stores, and reg/reg moves
4412 within same class later. Delete attr length.
4414 2016-08-08 Alan Modra <amodra@gmail.com>
4417 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
4418 (mem_operand_ds_form): New predicate.
4419 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
4420 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
4421 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
4422 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
4423 (extendsfdf2_fpr): Replace o constraint with wY.
4425 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
4427 * tree-ssa-threadbackward.c: Include tree-inline.h
4428 (profitable_jump_thread_path): Use estimate_num_insns to estimate
4429 size of copied block; for cold paths reduce duplication.
4430 (find_jump_threads_backwards): Remove redundant tests.
4431 (pass_thread_jumps::gate): Enable for -Os.
4433 2016-08-07 Jakub Jelinek <jakub@redhat.com>
4436 * stor-layout.c (layout_decl): Fix up formatting.
4437 (relayout_decl): Allow DECL to be FIELD_DECL.
4439 2016-08-07 Alan Modra <amodra@gmail.com>
4441 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
4443 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
4445 * data-streamer-in.c (streamer_read_wide_int): New.
4446 (streamer_read_widest_int): Renamed function.
4447 * data-streamer-out.c (streamer_write_wide_int): New
4448 (streamer_write_widest_int): Renamed function.
4449 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
4451 (input_cfg): Call renamed function.
4452 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
4454 (output_cfg): Call renamed function.
4455 * data-streamer.h: Add declarations.
4457 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4459 * tree-ssa-ccp.c (extend_mask): New param sgn.
4460 Remove ORing with wi::mask.
4461 (get_default_value): Adjust call to extend_mask to pass sign.
4462 (evaluate_stmt): Likewise.
4464 2016-08-06 Jakub Jelinek <jakub@redhat.com>
4466 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
4469 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4471 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
4472 transform if operand's type is pointer to function or method.
4474 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
4476 PR tree-optimization/18046
4477 * tree-ssa-threadedge.c: Include cfganal.h.
4478 (simplify_control_statement_condition): If simplifying a
4479 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
4480 with the dominating ASSERT_EXPR before handing it off to VRP.
4481 Mention that a CASE_LABEL_EXPR may be returned.
4482 (thread_around_empty_blocks): Adjust to handle
4483 simplify_control_statement_condition() returning a
4485 (thread_through_normal_block): Likewise.
4486 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
4487 a switch statement by trying to determine which case label
4490 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
4492 PR rtl-optimization/69847
4493 * lra-constraints.c (process_invariant_for_inheritance): Save
4494 pattern instead of src.
4495 (remove_inheritance_pseudos): Use the pattern. Add assert.
4497 2016-08-05 David Malcolm <dmalcolm@redhat.com>
4499 * input.c (string_concat::string_concat): New constructor.
4500 (string_concat_db::string_concat_db): New constructor.
4501 (string_concat_db::record_string_concatenation): New method.
4502 (string_concat_db::get_string_concatenation): New method.
4503 (string_concat_db::get_key_loc): New method.
4504 (class auto_cpp_string_vec): New class.
4505 (get_substring_ranges_for_loc): New function.
4506 (get_source_range_for_substring): New function.
4507 (get_num_source_ranges_for_substring): New function.
4508 (class selftest::lexer_test_options): New class.
4509 (struct selftest::lexer_test): New struct.
4510 (class selftest::ebcdic_execution_charset): New class.
4511 (selftest::ebcdic_execution_charset::s_singleton): New variable.
4512 (selftest::lexer_test::lexer_test): New constructor.
4513 (selftest::lexer_test::~lexer_test): New destructor.
4514 (selftest::lexer_test::get_token): New method.
4515 (selftest::assert_char_at_range): New function.
4516 (ASSERT_CHAR_AT_RANGE): New macro.
4517 (selftest::assert_num_substring_ranges): New function.
4518 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
4519 (selftest::assert_has_no_substring_ranges): New function.
4520 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
4521 (selftest::test_lexer_string_locations_simple): New function.
4522 (selftest::test_lexer_string_locations_ebcdic): New function.
4523 (selftest::test_lexer_string_locations_hex): New function.
4524 (selftest::test_lexer_string_locations_oct): New function.
4525 (selftest::test_lexer_string_locations_letter_escape_1): New function.
4526 (selftest::test_lexer_string_locations_letter_escape_2): New function.
4527 (selftest::test_lexer_string_locations_ucn4): New function.
4528 (selftest::test_lexer_string_locations_ucn8): New function.
4529 (selftest::uint32_from_big_endian): New function.
4530 (selftest::test_lexer_string_locations_wide_string): New function.
4531 (selftest::uint16_from_big_endian): New function.
4532 (selftest::test_lexer_string_locations_string16): New function.
4533 (selftest::test_lexer_string_locations_string32): New function.
4534 (selftest::test_lexer_string_locations_u8): New function.
4535 (selftest::test_lexer_string_locations_utf8_source): New function.
4536 (selftest::test_lexer_string_locations_concatenation_1): New
4538 (selftest::test_lexer_string_locations_concatenation_2): New
4540 (selftest::test_lexer_string_locations_concatenation_3): New
4542 (selftest::test_lexer_string_locations_macro): New function.
4543 (selftest::test_lexer_string_locations_stringified_macro_argument):
4545 (selftest::test_lexer_string_locations_non_string): New function.
4546 (selftest::test_lexer_string_locations_long_line): New function.
4547 (selftest::test_lexer_char_constants): New function.
4548 (selftest::input_c_tests): Call the new test functions once per
4549 case within the line_table test matrix.
4550 * input.h (struct string_concat): New struct.
4551 (struct location_hash): New struct.
4552 (class string_concat_db): New class.
4553 * substring-locations.h: New header.
4555 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
4557 PR tree-optimization/72810
4558 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
4559 the type of the case labels when truncating.
4561 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
4564 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
4565 (aarch64_fp16_ptr_type_node): Likewise.
4566 * config/aarch64/aarch64-simd-builtins.c
4567 (aarch64_fp16_ptr_type_node): Define.
4568 (aarch64_init_fp16_types): New, refactored out of...
4569 (aarch64_init_builtins): ...here, update to call
4570 aarch64_init_fp16_types.
4571 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
4573 (aapcs_vfp_sub_candidate): Likewise.
4575 2016-08-05 Martin Liska <mliska@suse.cz>
4576 Joshua Cranmer <Pidgeot18@gmail.com>
4578 * gcov.c (line_t::has_block): New function.
4579 (enum loop_type): New enum.
4580 (handle_cycle): New function.
4581 (unblock): Likewise.
4582 (circuit): Likewise.
4583 (get_cycles_count): Likewise.
4584 (accumulate_line_counts): Use new loop detection algorithm.
4586 2016-08-05 Martin Liska <mliska@suse.cz>
4588 * gcov.c (output_intermediate_file): Rename
4589 function_info::line_next to next_file_fn.
4590 (process_file): Likewise.
4591 (read_graph_file): Likewise.
4592 (accumulate_line_counts): Likewise.
4593 (output_lines): Likewise.
4595 2016-08-05 Richard Biener <rguenther@suse.de>
4597 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
4598 restriction on threading to a loop header.
4600 2016-08-05 Richard Biener <rguenther@suse.de>
4602 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
4603 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
4604 adjust loop info accordingly.
4606 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
4608 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
4609 before folding call to __builtin_constant_p with parameters to false.
4611 2016-08-05 Alan Modra <amodra@gmail.com>
4613 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
4614 code accidentally committed 2016-05-02 providing class when given
4617 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
4619 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
4620 the case label ranges that partially overlap with OP's value
4623 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
4626 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
4627 Cast builtin function result to __mmask16 instead of __mmask8.
4628 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4629 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
4630 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4632 2016-08-04 David Malcolm <dmalcolm@redhat.com>
4634 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
4635 (ASSERT_TRUE_AT): New macro.
4636 (ASSERT_FALSE): Reimplement in terms of...
4637 (ASSERT_FALSE_AT): New macro.
4638 (ASSERT_STREQ_AT): Fix typo in comment.
4640 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
4642 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
4643 labels are exhaustive, designate the label with the widest
4644 range to be the default label.
4646 2016-08-04 Andrew Pinski <apinski@cavium.com>
4648 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
4649 (thunderx_tunings): Use thunderx_vector_cost instead of
4650 generic_vector_cost.
4652 2016-08-04 Martin Liska <mliska@suse.cz>
4654 * gcov.c (main): Fix GNU coding style.
4655 (output_intermediate_file): Likewise.
4656 (process_file): Likewise.
4657 (generate_results): Likewise.
4658 (release_structures): Likewise.
4659 (create_file_names): Likewise.
4660 (find_source): Likewise.
4661 (read_graph_file): Likewise.
4662 (find_exception_blocks): Likewise.
4663 (canonicalize_name): Likewise.
4664 (make_gcov_file_name): Likewise.
4665 (mangle_name): Likewise.
4666 (accumulate_line_counts): Likewise.
4667 (output_branch_count): Likewise.
4668 (read_line): Likewise.
4670 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
4672 PR rtl-optimization/71779
4673 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
4674 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
4675 or if it was truncated.
4677 PR rtl-optimization/70903
4678 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
4680 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
4682 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
4683 accessing SSA_NAME_PTR_INFO.
4685 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
4688 * common/config/avr/avr-common.c (avr_option_optimization_table)
4689 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
4691 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
4694 * config/avr/avr.md: New pattern to work around do_store_flag
4695 generating shift instructions for bit extractions.
4697 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
4699 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
4701 (add_equivalence): Likewise.
4702 (get_value_range): Allocate value range with vrp_value_range_pool.
4703 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
4704 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
4706 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
4708 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
4709 the default for the rs6000 port.
4711 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4714 * calls.c (special_function_p): Remove special handling of
4715 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
4716 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
4717 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
4719 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
4722 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
4723 Don't stop on regular insns.
4725 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4727 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
4728 size to DImode boundary.
4729 (nvptx_propagate): Likewise.
4731 2016-08-03 Alan Modra <amodra@gmail.com>
4733 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
4734 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
4735 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
4736 from -mefficient-unaligned-vector. Note that this affects fp too.
4738 2016-08-03 Alan Modra <amodra@gmail.com>
4740 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
4743 2016-08-03 Alan Modra <amodra@gmail.com>
4745 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
4746 to a reg. Localize vars.
4748 2016-08-03 Alan Modra <amodra@gmail.com>
4750 * config/rs6000/rs6000.opt: Remove negatives from help strings
4753 2016-08-03 Alan Modra <amodra@gmail.com>
4755 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4756 Delete duplicated code.
4758 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
4761 * lra-spills.c (regno_in_use_p): New.
4762 (lra_final_code_change): Use it.
4764 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
4766 PR rtl-optimization/69847
4767 * lra-int.h (struct lra-reg): Use restore_rtx instead of
4769 (lra_rtx_hash): New.
4770 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
4772 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
4773 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
4774 * lra-spills.c (lra_final_code_change): Don't delete insn when the
4775 next insn is USE with the same reg as the current insn source.
4776 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
4778 (lra_constraints_init): Call initiate_invariants.
4779 (lra_constraints_finish): Call finish_invariants.
4780 (struct invariant, invariant_t, invariant_ptr_t): New.
4781 (const_invariant_ptr_t, invariants, invariants_pool): New.
4782 (invariant_table, invariant_hash, invariant_eq_p): New.
4783 (insert_invariant, initiate_invariants, finish_invariants): New.
4784 (clear_invariants, invalid_invariant_regs): New.
4785 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
4786 instead of restore_regno.
4787 (invariant_p, process_invariant_for_inheritance): New.
4788 (inherit_in_ebb): Implement invariant inheritance.
4789 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
4790 (remove_inheritance_pseudos): Implement undoing invariant
4792 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
4793 instead of restore_regno.
4794 * lra-assigns.c (regno_live_length): New.
4795 (reload_pseudo_compare_func): Use regno_live_length.
4796 (assign_by_spills): Use restore_rtx instead of restore_regno.
4797 (lra_assign): Ditto. Initiate regno_live_length.
4799 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
4801 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
4802 __builtin_aarch64_fmindf.
4804 2016-08-02 Bin Cheng <bin.cheng@arm.com>
4806 PR tree-optimization/34114
4807 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
4808 information for more control IVs.
4810 2016-08-02 Bin Cheng <bin.cheng@arm.com>
4812 PR tree-optimization/34114
4813 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
4814 PLUS_EXPR case. Handle SSA_NAME case.
4816 2016-08-02 Tamar Christina <tamar.christina@arm.com>
4818 * config/aarch64/aarch64-simd-builtins.def
4819 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
4820 (__builtin_aarch64_fmaxdf): Likewise.
4821 (__builtin_aarch64_smin_nandf): Likewise.
4822 (__builtin_aarch64_smax_nandf): Likewise.
4823 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
4824 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
4825 (<fmaxmin><mode>3): ...this.
4826 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
4827 (vminnm_f64): Likewise.
4828 (vmin_f64): Likewise.
4829 (vmax_f64): Likewise.
4830 * config/aarch64/iterators.md (FMAXMIN): Merge with...
4831 (FMAXMIN_UNS): ...this.
4832 (fmaxmin): Merged with
4833 (fmaxmin_op): ...this...
4834 (maxmin_uns_op): ...in to this.
4836 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
4838 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4839 Add support for vec_extract on vector float, vector int, vector
4840 short, and vector char vector types.
4841 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4842 vector float, vector int, vector short, and vector char
4843 optimizations on 64-bit ISA 2.07 systems for both constant and
4844 variable element numbers.
4845 (rs6000_split_vec_extract_var): Likewise.
4846 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
4847 Altivec registers on ISA 2.07 and above.
4848 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
4849 which never was matched due to the split occuring before register
4850 allocation (and the code would not have worked on little endian
4851 systems if it did match). Allow extracts to go to the Altivec
4852 registers if ISA 2.07 (power8). Change from using "" around the
4853 C++ code to using {}'s.
4854 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
4855 vec_extracts when the vector is in memory.
4856 (vsx_extract_v4sf_var): New insn to optimize vector float
4857 vec_extracts when the element number is variable on 64-bit ISA
4859 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
4860 for 64-bit ISA 2.07 as well as ISA 3.0.
4861 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
4862 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
4863 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
4864 optimize vector int, vector short, and vector char vec_extracts
4865 when the vector is in memory.
4866 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
4867 optimize vector int, vector short, and vector char vec_extracts
4868 when the element number is variable.
4870 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
4873 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
4874 does not overlap with other symbol flags.
4876 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
4878 * config/aarch64/aarch64.h (aarch64_frame):
4879 Remove padding0 and hardfp_offset. Add locals_offset,
4880 initial_adjust, callee_adjust, callee_offset and final_adjust.
4881 * config/aarch64/aarch64.c (aarch64_layout_frame):
4882 Remove unused padding0 and hardfp_offset initializations.
4883 Choose frame layout and set frame variables accordingly.
4884 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
4885 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
4886 (aarch64_pop_regs): Likewise.
4887 (aarch64_expand_prologue): Remove all decision code, just emit
4888 prolog according to frame variables.
4889 (aarch64_expand_epilogue): Remove all decision code, just emit
4890 epilog according to frame variables.
4891 (aarch64_initial_elimination_offset): Use offset to local/arg area.
4893 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
4896 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
4897 fix_debug_reg_uses after changing source register mode to
4898 V1TImode if source register is undefined.
4900 2015-08-01 Alan Hayward <alan.hayward@arm.com>
4902 PR tree-optimization/71818
4903 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
4904 with non invariant evolutions
4906 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
4909 * config/avr/avr.md (length) [branch]: Correct insn length
4910 attribute for forward branches.
4912 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
4914 * doc/extend.texi (AVR Built-in Functions): Document
4916 * config/avr/builtins.def (NOPS): New.
4917 * config/avr/avr.c (avr_expand_nops): New static function.
4918 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
4920 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4922 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
4923 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
4926 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
4928 * config/aarch64/aarch64.c (vulcan_tunings): Update
4929 vulcan L1 cache_line_size.
4931 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
4933 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
4934 function that takes a vector memory address, a hard register, an
4935 element number and a temporary base register, and recreates an
4936 address that points to the appropriate element within the vector.
4937 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
4938 (rs6000_split_vec_extract_var): Add support for the target of a
4939 vec_extract with variable element number being a scalar memory
4941 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
4943 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
4944 vsx_extract_<mode>_load insn with a new insn that optimizes
4945 storing either element to a memory location, using scratch
4946 registers to pick apart the vector and reconstruct the address.
4947 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
4948 (vsx_extract_<mode>_store): Rework alternatives to more correctly
4949 support Altivec registers. Add support for ISA 3.0 Altivec d-form
4951 (vsx_extract_<mode>_var): Add support for extracting a variable
4952 element number from memory.
4954 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
4956 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
4957 when testing for compares against constants of the form 0xabab.
4959 2016-07-29 Bin Cheng <bin.cheng@arm.com>
4961 PR tree-optimization/57558
4962 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
4964 (vect_loop_versioning): Support versioning with niter assumptions.
4965 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
4966 (vect_get_loop_niters): New parameter. Reimplement to support
4967 assumptions in loop niter info.
4968 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
4969 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
4970 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
4971 Support loop versioning for niters.
4972 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
4973 (vect_free_loop_info_assumptions): New function.
4974 (vectorize_loops): Free loop niter info for loops with flag
4975 LOOP_F_ASSUMPTIONS set if vectorization failed.
4976 * tree-vectorizer.h (struct _loop_vec_info): New field
4977 num_iters_assumptions.
4978 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
4979 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
4980 (LOOP_REQUIRES_VERSIONING): New macro.
4981 (vect_free_loop_info_assumptions): New decl.
4983 2016-07-29 Bin Cheng <bin.cheng@arm.com>
4985 * cfgloop.h (struct loop): New field constraints.
4986 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
4987 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
4989 * cfgloop.c (alloc_loop): Initialize new field.
4990 * cfgloopmanip.c (copy_loop_info): Copy constraints.
4991 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
4992 Adjust niter analysis wrto loop constraints.
4993 * doc/loop.texi (@node Number of iterations): Add description for loop
4996 2016-07-29 Marek Polacek <polacek@redhat.com>
4999 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5000 (ix86_expand_round_builtin): Likewise.
5002 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
5003 Georg-Johann Lay <avr@gjlay.de>
5005 PR rtl-optimization/71976
5006 * combine.c (get_last_value): Return 0 if the argument for which
5007 the function is called has a wider mode than the recorded value.
5009 2016-07-29 Marek Polacek <polacek@redhat.com>
5012 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5013 (altivec_expand_st_builtin): Likewise.
5015 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
5017 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5018 introduced in r238381.
5020 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
5023 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5024 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5026 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
5028 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5030 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5031 Add support for vec_extract of vector double or vector long having
5032 a variable element number on 64-bit ISA 2.07 systems or newer.
5033 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5035 (rs6000_split_vec_extract_var): New function to split a
5036 vec_extract built-in function with variable element number.
5037 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5039 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5040 (UNSPEC_VSX_EXTRACT): Likewise.
5041 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5042 direct move instructions to be generated on 64-bit ISA 2.07
5043 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5045 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5046 arguments for vec_extract variable element.
5047 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5048 vec_extract with variable element on V2DFmode and V2DImode
5050 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5051 -mupper-regs-df requirement, since it isn't needed.
5052 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5053 do direct moves on 64-bit systems, which allows optimization of
5054 vec_extract on 64-bit ISA 2.07 systems and newer.
5056 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
5057 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
5059 * config/aarch64/aarch64.md
5060 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5062 (<optab>qihi2_aarch64): Likewise, and split into two.
5063 (extendqihi2_aarch64): New.
5064 (zero_extendqihi2_aarch64): New.
5065 * config/aarch64/iterators.md (ldrxt): Remove.
5066 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5069 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
5071 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5073 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
5075 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5076 (aarch64_push_reg): New function to push 1 or 2 registers.
5077 (aarch64_pop_reg): New function to pop 1 or 2 registers.
5078 (aarch64_expand_prologue): Use aarch64_push_regs.
5079 (aarch64_expand_epilogue): Use aarch64_pop_regs.
5081 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
5083 PR tree-optimization/71734
5084 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5085 attribute instead of REF_LOOP and use it.
5086 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5087 set it for Loops having non-zero safelen attribute.
5088 (ref_indep_loop_p): Pass zero as initial value for safelen.
5090 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
5094 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
5095 call using chkp_gimple_call_builtin_p.
5096 (chkp_copy_bounds_for_assign): Likewise.
5098 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5100 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
5101 * config/arm/arm-protos.h (struct tune_params): Likewise.
5102 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5103 (cortex_a9_sched_adjust_cost): Likewise.
5104 (fa726te_sched_adjust_cost): Likewise.
5105 (arm_adjust_cost): Likewise.
5106 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
5107 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
5108 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
5109 * config/i386/i386.c (ix86_adjust_cost): Likewise.
5110 * config/ia64/ia64.c: Likewise.
5111 * config/m68k/m68k.c: Likewise.
5112 * config/mep/mep.c (mep_adjust_cost): Likewise.
5113 * config/microblaze/microblaze.c (microblaze_adjust_cost):
5115 * config/mips/mips.c (mips_adjust_cost): Likewise.
5116 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
5118 * config/pa/pa.c (pa_adjust_cost): Likewise.
5119 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
5120 (rs6000_debug_adjust_cost): Likewise.
5121 * config/sh/sh.c (sh_adjust_cost): Likewise.
5122 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
5123 (hypersparc_adjust_cost): Likewise.
5124 (sparc_adjust_cost): Likewise.
5125 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
5126 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
5127 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
5129 * config/visium/visium.c (visium_adjust_cost): Likewise.
5130 * doc/tm.texi: Regenerate.
5131 * haifa-sched.c (dep_cost_1): Adjust.
5132 * target.def: Merge adjust_cost and adjust_cost_2.
5134 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5136 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
5138 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5140 * store-motion.c (struct st_expr): Make pattern_regs a vector.
5141 (extract_mentioned_regs): Append to a vector instead of
5142 returning a rtx_expr_list.
5143 (st_expr_entry): Adjust.
5144 (free_st_expr_entry): Likewise.
5145 (store_ops_ok): Likewise.
5146 (store_killed_in_insn): Likewise.
5147 (find_moveable_store): Likewise.
5149 2016-07-28 Martin Liska <mliska@suse.cz>
5151 PR gcov-profile/68025
5152 * tree-profile.c (tree_profiling): Respect
5153 no_profile_instrument_function attribute.
5154 * doc/extend.texi: Document no_profile_instrument_function
5157 2016-07-28 Martin Liska <mliska@suse.cz>
5159 PR rtl-optimization/70944
5160 * combine.c (make_compound_operation):
5161 Do not allow make_compound_operation for vector mode
5163 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
5166 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
5167 before calling get_ops.
5169 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5171 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
5172 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
5173 (BITS_PER_UNIT_LOG): Remove.
5174 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
5175 * expr.c (expand_assignment): Likewise.
5176 * stor-layout.c (initialize_sizetypes): Likewise.
5178 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
5180 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
5181 signature of rs6000_expand_vector_extract so that the element
5182 number is a RTX instead of a constant integer.
5183 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
5185 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
5186 (altivec_expand_vec_ext_builtin): Likewise.
5187 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
5188 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
5189 MFVSRLD instruction.
5191 2016-07-27 David Malcolm <dmalcolm@redhat.com>
5193 * input.c (get_pure_location): Move here from tree.c.
5194 (make_location): Likewise. Add header comment.
5195 (selftest::test_accessing_ordinary_linemaps): Verify
5196 pure_location_p, make_location, get_location_from_adhoc_loc and
5198 * input.h (get_pure_location): Move declaration here from tree.h.
5199 (get_finish): Likewise for inline function.
5200 (make_location): Likewise for declaration.
5201 * tree.c (get_pure_location): Move to input.c.
5202 (make_location): Likewise.
5203 * tree.h (get_pure_location): Move declaration to tree.h.
5204 (get_finish): Likewise for inline function.
5205 (make_location): Likewise for declaration.
5207 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5210 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
5212 2016-07-27 David Malcolm <dmalcolm@redhat.com>
5214 * system.h (STATIC_ASSERT): Use static_assert if building
5217 2016-07-27 Richard Biener <rguenther@suse.de>
5219 PR tree-optimization/72517
5220 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5221 Revert change to not compute read-read dependences.
5223 2016-07-27 Richard Biener <rguenther@suse.de>
5225 * predict.c (set_even_probabilities): Make nedges unsigned.
5227 2016-07-27 Martin Liska <mliska@suse.cz>
5229 * predict.c (set_even_probabilities): Handle unlikely edges.
5230 (combine_predictions_for_bb): Likewise.
5232 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5235 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
5236 __float128 support when we don't have hardware support, so that
5237 the IEEE built-in functions like isgreater, first call __unordkf3
5238 to make sure neither operand is a NaN, and if both operands are
5239 ordered, do the normal comparison.
5241 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
5243 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
5245 (extract_code_and_val_from_cond_with_ops): Verify that name is
5246 either cond_op0 or cond_op1.
5248 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
5250 PR tree-optimization/18046
5251 * genmodes.c (emit_mode_size_inline): Emit an assert that
5252 verifies that mode is a valid array index.
5253 (emit_mode_nuinits_inline): Likewise.
5254 (emit_mode_inner_inline): Likewise.
5255 (emit_mode_unit_size_inline): Likewise.
5256 (emit_mode_unit_precision_inline): Likewise.
5257 * tree-vrp.c: Include params.h.
5258 (find_switch_asserts): Register edge assertions for the default
5259 label which correspond to the anti-ranges of each case label.
5260 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
5261 * doc/invoke.texi: Document it.
5263 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5265 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
5266 and unnecessary call to gimple_bb.
5268 2016-07-26 Richard Biener <rguenther@suse.de>
5270 PR rtl-optimization/71984
5271 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
5274 2016-07-26 Richard Biener <rguenther@suse.de>
5277 * expmed.c (extract_bit_field_1): Constrain the vector mode
5278 with element size matching the extraction mode size when
5279 choosing a better vector mode to do the extraction from.
5281 2016-07-26 Richard Biener <rguenther@suse.de>
5282 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5285 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
5288 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5290 * tree-ssa-structalias.c (struct scc_info): Change types of
5291 members to auto_sbitmap and auto_vec.
5292 (scc_info::scc_info): New constructor.
5293 (scc_info::~scc_info): New destructor.
5294 (init_scc_info): Remove.
5295 (free_scc_info): Remove.
5296 (find_indirect_cycles): Adjust.
5297 (perform_var_substitution): Likewise.
5298 (free_var_substitution_info): Likewise.
5300 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5302 * tree-outof-ssa.c (struct elim_graph): Change type of members
5303 to auto_vec and auto_sbitmap.
5304 (elim_graph::elim_graph): New constructor.
5305 (delete_elim_graph): Remove.
5306 (expand_phi_nodes): Adjust.
5308 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5310 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
5311 (new_elim_graph): Adjust.
5312 (clear_elim_graph): Likewise.
5313 (delete_elim_graph): Likewise.
5314 (elim_graph_size): Likewise.
5315 (elim_graph_add_node): Likewise.
5316 (elim_graph_add_edge): Likewise.
5317 (elim_graph_remove_succ_edge): Likewise.
5318 (eliminate_name): Likewise.
5319 (eliminate_build): Likewise.
5320 (elim_forward): Likewise.
5321 (elim_unvisited_predecessor): Likewise.
5322 (elim_backward): Likewise.
5323 (elim_create): Likewise.
5324 (eliminate_phi): Likewise.
5325 (expand_phi_nodes): Likewise.
5327 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5329 * bt-load.c (compute_out): Use auto_sbitmap class.
5330 (link_btr_uses): Likewise.
5331 * cfganal.c (mark_dfs_back_edges): Likewise.
5332 (post_order_compute): Likewise.
5333 (inverted_post_order_compute): Likewise.
5334 (pre_and_rev_post_order_compute_fn): Likewise.
5335 (single_pred_before_succ_order): Likewise.
5336 * cfgexpand.c (pass_expand::execute): Likewise.
5337 * cfgloop.c (verify_loop_structure): Likewise.
5338 * cfgloopmanip.c (fix_bb_placements): Likewise.
5339 (remove_path): Likewise.
5340 (update_dominators_in_loop): Likewise.
5341 * cfgrtl.c (break_superblocks): Likewise.
5342 * ddg.c (check_sccs): Likewise.
5343 (create_ddg_all_sccs): Likewise.
5344 * df-core.c (df_worklist_dataflow): Likewise.
5345 * dse.c (dse_step3): Likewise.
5346 * except.c (eh_region_outermost): Likewise.
5347 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5348 * gcse.c (prune_expressions): Likewise.
5349 (prune_insertions_deletions): Likewise.
5350 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
5351 * graph.c (draw_cfg_nodes_no_loops): Likewise.
5352 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
5353 * lcm.c (compute_earliest): Likewise.
5354 (compute_farthest): Likewise.
5355 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
5356 (unroll_loop_runtime_iterations): Likewise.
5357 (unroll_loop_stupid): Likewise.
5358 * lower-subreg.c (decompose_multiword_subregs): Likewise.
5359 * lra-lives.c: Likewise.
5360 * lra.c (lra): Likewise.
5361 * modulo-sched.c (schedule_reg_moves): Likewise.
5362 (optimize_sc): Likewise.
5363 (get_sched_window): Likewise.
5364 (sms_schedule_by_order): Likewise.
5365 (check_nodes_order): Likewise.
5366 (order_nodes_of_sccs): Likewise.
5367 (order_nodes_in_scc): Likewise.
5368 * recog.c (split_all_insns): Likewise.
5369 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
5370 * reload1.c (reload): Likewise.
5371 * sched-rgn.c (haifa_find_rgns): Likewise.
5372 (split_edges): Likewise.
5373 (compute_trg_info): Likewise.
5374 * sel-sched.c (init_seqno): Likewise.
5375 * store-motion.c (remove_reachable_equiv_notes): Likewise.
5376 * tree-into-ssa.c (update_ssa): Likewise.
5377 * tree-ssa-live.c (live_worklist): Likewise.
5378 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
5379 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5381 (try_peel_loop): Likewise.
5382 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
5384 * tree-ssa-pre.c (compute_antic): Likewise.
5385 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5386 * tree-stdarg.c (reachable_at_most_once): Likewise.
5387 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
5388 * var-tracking.c (vt_find_locations): Likewise.
5390 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5392 * sbitmap.h (auto_sbitmap): New class.
5394 2016-07-26 Alan Modra <amodra@gmail.com>
5397 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
5400 2016-07-25 David Malcolm <dmalcolm@redhat.com>
5402 * input.c (selftest::temp_source_file::temp_source_file): Fix
5403 missing "%s" in fprintf.
5405 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
5408 * cselib.c (cselib_process_insn): Invalidate argument slots for
5411 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5413 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
5414 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
5415 vmulxh_lane_f16, vmulxh_laneq_f16): New.
5417 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5419 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5420 * config/aarch64/aarch64.md (fma, fnma): Support HF.
5421 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
5423 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5425 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5426 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
5428 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
5429 (add<mode>3): Likewise.
5430 (sub<mode>3): Likewise.
5431 (mul<mode>3): Likewise.
5432 (div<mode>3): Likewise.
5433 (*div<mode>3): Likewise.
5434 (<fmaxmin><mode>3): Extend to HF.
5435 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
5436 (fabd<mode>3): Likewise.
5437 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
5438 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
5439 (aarch64_fmulx<mode>): Likewise.
5440 (aarch64_fac<optab><mode>): Likewise.
5441 (aarch64_frecps<mode>): Likewise.
5442 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
5443 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
5444 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
5445 (VSDQ_HSDI): Support HI.
5446 (fcvt_target, FCVT_TARGET): Likewise.
5447 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
5448 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
5449 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
5450 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
5451 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
5452 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
5453 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
5456 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5458 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
5459 * config/aarch64/aarch64-builtins.c (hi_UP): New.
5460 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5461 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
5463 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
5464 (aarch64_cm<optab><mode>): Likewise.
5465 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
5466 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
5467 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
5468 (sqrt<mode>2): Likewise.
5469 (*sqrt<mode>2): Likewise.
5470 (abs<mode>2): Likewise.
5471 (<optab><mode>hf2): New pattern for HF mode.
5472 (<optab>hihf2): Likewise.
5473 * config/aarch64/arm_neon.h: Include arm_fp16.h.
5474 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
5475 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
5477 * config/aarch64/arm_fp16.h: New file.
5478 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
5479 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
5480 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
5481 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
5482 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
5483 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
5484 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
5485 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
5486 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
5487 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
5488 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
5489 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
5492 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5494 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
5495 reduc_smin_scal_): Use VDQIF_F16.
5496 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
5497 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
5499 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
5500 * config/aarch64/iterators.md (VDQIF_F16): New.
5501 (vp): Support HF modes.
5502 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
5503 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
5505 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5507 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
5508 "*aarch64_mulx_elt_from_dup<mode>".
5509 (*aarch64_mul3_elt<mode>): Update schedule type.
5510 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
5511 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
5512 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5513 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
5514 (f, fp): Support HF modes.
5515 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
5516 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
5517 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
5518 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
5519 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
5520 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
5522 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5524 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5525 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
5527 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
5530 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5532 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5533 * config/aarch64/aarch64-simd.md
5534 (aarch64_rsqrts<mode>): Extend to HF modes.
5535 (fabd<mode>3): Likewise.
5536 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
5537 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
5538 (aarch64_<maxmin_uns>p<mode>): Likewise.
5539 (<su><maxmin><mode>3): Likewise.
5540 (<maxmin_uns><mode>3): Likewise.
5541 (<fmaxmin><mode>3): Likewise.
5542 (aarch64_faddp<mode>): Likewise.
5543 (aarch64_fmulx<mode>): Likewise.
5544 (aarch64_frecps<mode>): Likewise.
5545 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
5546 (add<mode>3): Extend to HF modes.
5547 (sub<mode>3): Likewise.
5548 (mul<mode>3): Likewise.
5549 (div<mode>3): Likewise.
5550 (*div<mode>3): Likewise.
5551 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
5553 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
5554 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
5555 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
5556 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
5557 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
5558 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
5559 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
5560 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
5561 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
5562 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
5563 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
5564 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
5565 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
5566 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
5568 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5570 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
5571 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5572 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
5573 (neg<mode>2): Likewise.
5574 (abs<mode>2): Likewise.
5575 (<frint_pattern><mode>2): Likewise.
5576 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
5577 (<optab><VDQF:mode><fcvt_target>2): Likewise.
5578 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
5579 (ftrunc<VDQF:mode>2): Likewise.
5580 (<optab><fcvt_target><VDQF:mode>2): Likewise.
5581 (sqrt<mode>2): Likewise.
5582 (*sqrt<mode>2): Likewise.
5583 (aarch64_frecpe<mode>): Likewise.
5584 (aarch64_cm<optab><mode>): Likewise.
5585 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
5587 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
5588 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
5590 * config/aarch64/arm_neon.h (vdup_n_f16): New.
5591 (vdupq_n_f16): Likewise.
5592 (vld1_dup_f16): Use vdup_n_f16.
5593 (vld1q_dup_f16): Use vdupq_n_f16.
5594 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
5595 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
5596 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
5597 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
5598 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
5599 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
5600 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
5601 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
5602 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
5603 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
5604 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
5605 vsqrt_f16, vsqrtq_f16): New.
5607 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5609 * config/aarch64/aarch64-simd.md
5610 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
5611 (aarch64_ext<mode>): Likewise.
5612 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
5613 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
5614 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
5616 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
5618 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
5619 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
5620 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
5621 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
5622 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
5623 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
5624 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
5626 (vmov_n_f16): Reimplement using vdup_n_f16.
5627 (vmovq_n_f16): Reimplement using vdupq_n_f16..
5629 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5631 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
5632 "frame_related_p". Generate CFA annotation when it's necessary.
5633 (aarch64_expand_prologue): Use aarch64_add_constant.
5634 (aarch64_expand_epilogue): Likewise.
5635 (aarch64_output_mi_thunk): Pass "false" when calling
5636 aarch64_add_constant.
5638 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5640 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
5643 2016-07-25 Jiong Wang <jiong.wang@arm.com>
5645 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
5646 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
5647 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
5648 (aarch64_build_constant): Delete.
5650 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
5653 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
5655 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
5656 flag_toplevel_reorder.
5658 2016-07-25 Richard Biener <rguenther@suse.de>
5660 * cgraph.c (cgraph_node::verify_node): Compare against builtin
5661 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
5662 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
5663 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
5664 (streamer_get_builtin_tree): Likewise.
5665 (streamer_write_builtin): Likewise.
5666 * lto-streamer.h (LTO_builtin_decl): Remove.
5667 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
5668 (lto_input_scc): Remove LTO_builtin_decl handling.
5669 (lto_input_tree_1): Liekwise.
5670 * lto-streamer-out.c (lto_output_tree_1): Remove special
5671 handling of builtins.
5672 (DFS::DFS): Likewise.
5673 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
5674 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
5676 (streamer_write_builtin): Remove.
5678 2016-07-25 Martin Liska <mliska@suse.cz>
5680 * lto-cgraph.c (input_symtab): Don't call get_working_sets
5681 if flag_auto_profile is set to true.
5683 2016-07-25 Martin Liska <mliska@suse.cz>
5685 PR gcov-profile/71868
5686 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
5687 have a function with multiple latches, count them all.
5689 2016-07-25 Martin Liska <mliska@suse.cz>
5691 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
5693 2016-07-25 Martin Liska <mliska@suse.cz>
5695 PR tree-optimization/71987
5696 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
5697 just for SSA_NAMEs. Fix GNU coding style.
5699 2016-07-25 Martin Liska <mliska@suse.cz>
5701 PR gcov-profile/64874
5702 * gcov-io.h: Update command about file format.
5703 * gcov-iov.c (main): Adapt the numbering scheme.
5705 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
5708 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
5709 whose result is used in PHI.
5710 (final_range_test_p): Likewise.
5711 (maybe_optimize_range_tests): Likewise.
5713 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5715 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5716 Reformat two multi-line strings.
5718 2016-07-22 Martin Sebor <msebor@redhat.com>
5720 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
5722 2016-07-22 Martin Sebor <msebor@redhat.com>
5725 * doc/extend.texi (Compound Literals): Correct and clarify.
5726 (Cast to Union): Same.
5728 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
5730 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5731 comments to explain why certain error messages make mention of
5732 undocumented options.
5733 (rs6000_invalid_builtin): Change error messages to replace mention
5734 of undocumented options with mention of the -mcpu=power9 option
5735 that enables those undocumented options.
5736 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
5737 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
5738 definition of this macro to correct an existing error.
5739 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
5740 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
5741 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
5742 descriptions of built-in functions so that they depend on
5743 -mcpu=power9 instead of on the corresponding undocumented flags.
5744 * doc/invoke.texi (Option Summary): Remove all mention of newly
5746 (IBM RS/6000 and PowerPC Options): Likewise.
5747 * doc/md.texi (Constraints for Particuliar Machines): Remove all
5748 mention of newly undocumented flags.
5750 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
5752 * ipa-cp.c (determine_versionability): Do not create constprop clones,
5753 when target_clones attribute is set.
5755 2016-07-22 Bin Cheng <bin.cheng@arm.com>
5757 * common.opt (funsafe-loop-optimizations): Mark ignore.
5758 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
5759 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
5761 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
5762 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
5764 2016-07-22 Bin Cheng <bin.cheng@arm.com>
5766 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
5768 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
5770 (number_of_iterations_exit): Warn missed loop optimization for
5771 possible infinite loops.
5773 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
5776 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
5777 when to emit a ".machine" pseudo-op.
5779 2016-07-22 Martin Liska <mliska@suse.cz>
5781 PR gcov-profile/69028
5782 PR gcov-profile/62047
5783 * coverage.c (coverage_compute_lineno_checksum): Do not
5784 calculate checksum for fns w/o xloc.file.
5785 (coverage_compute_profile_id): Likewise.
5787 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
5789 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
5790 (avr_secondary_reload): ...and implementation.
5791 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
5792 * config/avr/avr.md (reload_in<mode>): Remove insns.
5793 (adjust_len) [lpm]: Remove insn attribute value.
5794 * config/avr/predicates.md (flash_operand): Remove insn predicate.
5796 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5799 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
5801 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
5802 * calls.c (special_function_p): Remove the special handling of the
5803 "__builtin_" prefix.
5805 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5808 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
5809 if STMT may be an alloca call.
5810 (gimple_alloca_call_p, alloca_call_p): Return only true for the
5811 builtin alloca call.
5812 * calls.h (gimple_maybe_alloca_call_p): New function.
5813 * tree-inline.c (inline_forbidden_p_stmt): Use
5814 gimple_maybe_alloca_call_p here.
5816 2016-07-21 David Malcolm <dmalcolm@redhat.com>
5818 * spellcheck-tree.c (best_macro_match::best_macro_match):
5819 Explictly specify the template arguments when invoking the base
5820 class constructor, to help older C++ compilers.
5822 2016-07-21 Jakub Jelinek <jakub@redhat.com>
5825 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
5826 before builtin_decl_implicit.
5828 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
5830 * optabs.c (emit_condiitonal_move): Short circuit for identical
5833 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
5835 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
5836 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
5837 (noce_conversion_profitable_p): New.
5838 (noce_try_store_flag_constants): Use it.
5839 (noce_try_addcc): Likewise.
5840 (noce_try_store_flag_mask): Likewise.
5841 (noce_try_cmove): Likewise.
5842 (noce_try_cmove_arith): Likewise.
5843 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
5845 (noce_convert_multiple_sets): Move cost model to here, from...
5846 (bb_ok_for_noce_convert_multiple_sets) ...here.
5847 (noce_process_if_block): Update calls for above changes.
5848 (noce_find_if_block): Record new noce_if_info parameters.
5850 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
5852 * target.def (max_noce_ifcvt_seq_cost): New.
5853 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
5854 * doc/tm.texi: Regenerate.
5855 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
5856 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
5857 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
5858 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
5859 * doc/invoke.texi: Document new params.
5861 2016-07-21 Richard Biener <rguenther@suse.de>
5863 PR tree-optimization/71947
5864 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
5865 ranges have useful limit_vr information.
5867 2016-07-21 Richard Biener <rguenther@suse.de>
5869 * function-tests.c (build_trivial_generic_function): Set
5870 BLOCK_SUPERCONTEXT of DECL_INITIAL.
5871 * omp-low.c (create_omp_child_function): Likewise.
5872 (grid_expand_target_grid_body): Likewise.
5873 * cgraphunit.c (init_lowered_empty_function): Likewise.
5874 (cgraph_node::expand_thunk): Likewise.
5875 * tree-parloops.c (create_loop_fn): Likewise.
5876 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
5878 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5880 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
5883 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
5885 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
5886 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
5887 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
5888 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
5889 values for insn attribute.
5890 * config/avr/avr.c (avr_out_insert_notbit): New function.
5891 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
5892 ADJUST_LEN_INSV_NOTBIT_0/_7.
5893 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
5895 2016-07-21 Bin Cheng <bin.cheng@arm.com>
5897 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
5898 (chrec_convert_1, chrec_convert): Ditto.
5899 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
5900 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
5901 * tree-vrp.c (adjust_range_with_scev): Ditto.
5902 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
5903 (scev_var_range_cant_overflow): New function.
5904 (scev_probably_wraps_p): New parameter. Call above function.
5905 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
5907 2016-07-21 Bin Cheng <bin.cheng@arm.com>
5909 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
5910 by removing computation of may_be_zero.
5912 2016-07-21 Jakub Jelinek <jakub@redhat.com>
5914 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
5916 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
5918 Improving concepts performance and diagnostics.
5919 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
5920 for constraint satisfaction and subsumption.
5921 * timevar.h (auto_timevar): New constructor that matches the push/pop
5922 pattern of usage in pt.c.
5924 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
5926 * hwint.h (HOST_WIDE_INT_0): New define.
5927 (HOST_WIDE_INT_0U): Ditto.
5928 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
5929 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
5930 * simplify-rtx.c: Ditto.
5931 * tree-object-size.c: Ditto.
5933 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5935 * config/s390/s390.c (s390_encode_section_info): Remove mode size
5938 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
5940 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
5941 * combine.c: Use HOST_WIDE_INT_M1U instead of
5942 ~(unsigned HOST_WIDE_INT) 0.
5943 * double-int.h: Ditto.
5945 * dwarf2asm.c:Ditto.
5947 * genmodes.c: Ditto.
5949 * read-rtl.c: Ditto.
5950 * tree-ssa-loop-ivopts.c: Ditto.
5951 * tree-ssa-loop-prefetch.c: Ditto.
5952 * tree-vect-generic.c: Ditto.
5953 * tree-vect-patterns.c: Ditto.
5956 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
5958 * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
5959 constant addresses outside [0,0xc0] into a register.
5960 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
5961 cases where the base address register is unused after.
5962 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
5963 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
5964 (avr_out_store_psi_reg_disp_tiny): Same.
5966 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
5968 Implement attribute progmem on reduced Tiny cores by adding
5969 flash offset 0x4000 to respective symbols.
5972 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
5973 documentation how it works on reduced Tiny cores.
5974 (AVR Named Address Spaces): No support for reduced Tiny.
5975 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
5976 (avr_address_tiny_pm_p): New static function.
5977 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
5978 if the address is in progmem.
5979 (avr_assemble_integer): Same.
5980 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
5981 for symbol_ref in progmem.
5982 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
5983 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
5984 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
5986 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
5988 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
5989 * configure: Regenerate.
5990 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
5991 (USE_THIN_ARCHIVES): New variable.
5992 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
5993 this archive as a thin archive.
5995 2016-07-20 David Malcolm <dmalcolm@redhat.com>
5997 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
5998 same location as last time, don't skip if we have fix-it hints.
5999 Clarify the skipping logic by converting it from one "if" clause
6000 to repeated "if" clauses.
6001 * spellcheck-tree.c: Include "cpplib.h".
6002 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6003 (best_macro_match::best_macro_match): New constructor.
6004 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6005 Move here from c/c-decl.c.
6006 (class best_macro_match): Move here from c/c-decl.c, converting
6007 from a typedef to a subclass, gaining a ctor.
6009 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
6011 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6012 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6014 (avr_addr_space_diagnose_usage): ...and implementation.
6015 (avr_addr_space_supported_p): New function.
6016 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6017 report bad address space usage if that space is supported.
6018 (avr_insert_attributes): Same. No more complain about unsupported
6020 * config/avr/avr-c.c (tm_p.h): Include it.
6021 (avr_cpu_cpp_builtins): Only define addr-space related built-in
6022 macro if avr_addr_space_supported_p.
6024 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
6026 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6027 flag_toplevel_reorder.
6029 2016-07-20 David Malcolm <dmalcolm@redhat.com>
6031 * gcc-rich-location.c
6032 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6034 * gcc-rich-location.h
6035 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6037 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
6039 * target.def (addr_space): Add new diagnose_usage to hook vector.
6040 * targhooks.c (default_addr_space_diagnose_usage): Add default
6041 implementation and...
6042 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6043 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6044 is some address space, call targetm.addr_space.diagnose_usage.
6045 * doc/tm.texi.in (Named Address Spaces): Add anchor for
6046 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6047 * doc/tm.texi: Regenerate.
6049 2016-07-20 Martin Liska <mliska@suse.cz>
6052 * graphite-isl-ast-to-gimple.c (later_of_the_two):
6053 Properly handly PHI stmts.
6055 2016-07-20 Bin Cheng <bin.cheng@arm.com>
6057 PR tree-optimization/71503
6058 PR tree-optimization/71683
6059 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6062 2016-07-20 Martin Liska <mliska@suse.cz>
6064 * doc/invoke.texi (-fipa-ra): Document when the option is
6065 disabled. Fix a typo.
6067 2016-07-20 Martin Liska <mliska@suse.cz>
6069 * Makefile.in: Include fibonacci_heap.c
6070 * fibonacci_heap.c: New file.
6071 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6072 (fibonacci_heap::union_with): Fix deletion of the second heap.
6073 * selftest-run-tests.c (selftest::run_tests): Incorporate
6074 fibonacci heap tests.
6075 * selftest.h: Declare fibonacci_heap_c_tests.
6077 2016-07-20 Martin Liska <mliska@suse.cz>
6079 * selftest-run-tests.c (selftest::run_tests): New function.
6080 * selftest.h (sreal_c_tests): Declare.
6081 * sreal.c (sreal_verify_basics): New function.
6082 (verify_aritmetics): Likewise.
6083 (sreal_verify_arithmetics): Likewise.
6084 (verify_shifting): Likewise.
6085 (sreal_verify_shifting): Likewise.
6086 (void sreal_c_tests): Likewise.
6088 2016-07-19 Jakub Jelinek <jakub@redhat.com>
6090 PR rtl-optimization/71916
6091 * cfgrtl.c (contains_no_active_insn_p): Return false also for
6092 bb which have a single succ fake edge.
6094 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
6097 * dwarf2out.c (gen_subprogram_die): Only call
6098 gen_unspecified_parameters_die while dumping early dwarf.
6100 2016-07-19 Jakub Jelinek <jakub@redhat.com>
6103 * gimple-fold.c (fold_builtin_memory_op): Use
6104 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6106 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
6108 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
6109 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
6110 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
6111 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
6115 * double-int.c: Ditto.
6117 * dwarf2out.c: Ditto.
6120 * fold-const.c: Ditto.
6121 * function.c: Ditto.
6123 * genmodes.c: Ditto.
6127 * loop-doloop.c: Ditto.
6128 * loop-invariant.c: Ditto.
6135 * simplify-rtx.c: Ditto.
6136 * stor-layout.c: Ditto.
6138 * tree-ssa-loop-ivopts.c: Ditto.
6139 * tree-vect-generic.c: Ditto.
6140 * tree-vect-patterns.c: Ditto.
6145 * wide-int-print.cc: Ditto.
6146 * wide-int.cc: Ditto.
6147 * wide-int.h: Ditto.
6149 2016-07-19 David Malcolm <dmalcolm@redhat.com>
6151 * selftest.c (selftest::assert_streq): Handle NULL values of
6152 val_actual and val_expected.
6154 2016-07-19 Martin Jambor <mjambor@suse.cz>
6157 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
6158 rather than cgraph_create_node to get a call graph node.
6160 2016-07-19 Richard Biener <rguenther@suse.de>
6162 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
6163 handle all tcc_constant bases and valueize SSA names.
6164 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
6167 2016-07-19 David Malcolm <dmalcolm@redhat.com>
6169 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
6170 the flags of the exit block and bb2, not just the entry block.
6172 2016-07-19 Richard Biener <rguenther@suse.de>
6174 PR tree-optimization/71901
6175 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6176 align member, group stuff with the bitfield.
6177 (vn_ref_op_align_unit): New inline.
6178 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
6179 record element alignment and operand 3 unchanged.
6180 (ao_ref_init_from_vn_reference): Adjust.
6181 (valueize_refs_1): Likewise.
6182 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6184 2016-07-19 Richard Biener <rguenther@suse.de>
6186 PR tree-optimization/71908
6187 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
6188 symbolic constants in a more reliable way.
6190 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
6192 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
6194 (vect_update_inits_of_drs): Likewise.
6195 (vect_create_cond_for_alias_checks): Likewise.
6196 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
6198 2016-07-19 Richard Biener <rguenther@suse.de>
6201 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
6202 with an abstract origin that is not an inlined function outer
6203 scope add a self-reference as abstract origin.
6204 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
6206 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6209 * config/rs6000/rs6000.c (rs6000_function_value): Fix
6210 unintentional System V.4 structure return breakage for structures
6211 with a single floating point element.
6213 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6215 PR tree-optimization/71734
6216 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
6217 contains REF, use it to check safelen, assume that safelen value
6218 must be greater 1, fix style.
6219 (ref_indep_loop_p_2): Add REF_LOOP argument.
6220 (ref_indep_loop_p): Pass LOOP as additional argument to
6223 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
6225 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
6226 allocation in the prologue.
6227 * explow.c (get_dynamic_stack_base): New function to return an address
6228 expression for the dynamic stack base.
6229 (get_dynamic_stack_size): New function to do the required dynamic stack
6230 space size calculations.
6231 (allocate_dynamic_stack_space): Use new functions.
6232 (align_dynamic_address): Move some code from
6233 allocate_dynamic_stack_space to new function.
6234 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
6236 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6238 * config/s390/s390.c (s390_encode_section_info): Always set
6239 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
6242 2016-07-18 Richard Biener <rguenther@suse.de>
6244 PR tree-optimization/71893
6245 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
6246 for sizetype cast added by array_ref_element_size.
6247 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6249 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
6251 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
6252 register parameters. Remove code to initialize argument pointer
6253 on TARGET_64BIT. Optimize call to _mcount when it can be reached
6254 using a pc-relative branch. Cleanup conditional code.
6255 * config/pa/pa.md (call_mcount): New expander.
6256 (call_mcount_nonpic): New insn.
6257 (call_mcount_pic): New insn and split.
6258 (call_mcount_pic_post_reload): New insn.
6259 (call_mcount_64bit): New insn and split.
6260 (call_mcount_64bit_post_reload): New insn.
6262 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
6264 * config/avr/predicates.md (const_m255_to_m1_operand): New.
6265 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
6266 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
6267 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
6268 (*usum_widenqihi3, *udiff_widenqihi3)
6269 (*addhi3_zero_extend.const): New combiner insns.
6270 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
6271 just 1 bit is affected.
6272 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
6273 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
6275 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
6277 * omp-low.c (lower_omp_target): Mark data clauses with
6278 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
6279 zero-length subarrays.
6281 2016-07-15 Richard Biener <rguenther@suse.de>
6283 PR tree-optimization/71881
6284 * tree-loop-distribution.c (destroy_loop): Remove blocks in
6285 reverse DOM order to make debug temp generation happy.
6287 2016-07-15 Richard Biener <rguenther@suse.de>
6289 PR tree-optimization/71887
6290 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
6291 verify it is not zero for division / modulo handling.
6292 (value_replacement): Adjust.
6294 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
6295 Julian Brown <julian@codesourcery.com>
6297 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
6298 * config/aarch64/aarch64-cost-tables.h
6299 (vulcan_extra_costs): New variable.
6300 * config/aarch64/aarch64.c
6301 (vulcan_addrcost_table): Likewise.
6302 (vulcan_regmove_cost): Likewise.
6303 (vulcan_vector_cost): Likewise.
6304 (vulcan_branch_cost): Likewise.
6305 (vulcan_tunings): Likewise.
6307 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
6309 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
6310 (output_in_order): Loop over undefined variables too. Output them
6311 via assemble_undefined_decl. Skip variables that correspond to hard
6312 registers or have value-exprs.
6313 * varpool.c (symbol_table::output_variables): Handle undefined
6314 variables together with defined ones.
6316 2016-07-15 Richard Biener <rguenther@suse.de>
6318 * tree-ssa-pre.c (get_representative_for): Make sure to return
6319 the value number of SSA names.
6320 (phi_translate_1): get_representative_for cannot return NULL.
6321 (do_pre_regular_insertion): Remove redundant call to
6322 fully_constant_expression.
6323 (do_pre_partial_partial_insertion): Likewise.
6325 2016-07-15 Bin Cheng <bin.cheng@arm.com>
6327 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
6328 (derive_simple_iv_with_niters): New function.
6329 (simple_iv): Rewrite using simple_iv_with_niters.
6330 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
6331 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6333 (number_of_iterations_exit): Rewrite using above function.
6334 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6337 2016-07-15 Richard Biener <rguenther@suse.de>
6339 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
6342 2016-07-14 Jakub Jelinek <jakub@redhat.com>
6344 PR tree-optimization/71872
6345 * tree-data-ref.c (get_references_in_stmt): Ignore references
6346 with is_gimple_constant get_base_address.
6348 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
6350 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
6351 (TARGET_HAVE_LDACQD): New macro.
6352 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
6353 than TARGET_HAVE_LDACQ.
6354 (arm_load_acquire_exclusivedi): Likewise.
6355 (arm_store_release_exclusivedi): Likewise.
6357 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
6359 PR rtl-optimization/71878
6360 * lra-constraints.c (match_reload): Pass information about other
6361 output operands. Create new unique register value if matching input
6362 operand shares same register value as output operand being considered.
6363 (curr_insn_transform): Record output operands already processed.
6365 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6368 PR tree-optimization/70923
6369 * tree-vect-patterns.c: Include mult-synthesis.h.
6370 (target_supports_mult_synth_alg): New function.
6371 (synth_lshift_by_additions): Likewise.
6372 (apply_binop_and_append_stmt): Likewise.
6373 (vect_synth_mult_by_constant): Likewise.
6374 (target_has_vecop_for_code): Likewise.
6375 (vect_recog_mult_pattern): Use above functions to synthesize vector
6376 multiplication by integer constants.
6378 2016-07-14 Alan Modra <amodra@gmail.com>
6380 * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
6381 gpr alternatives. Correct '*' placement on Y,r alternative.
6382 Add '*' on operand 1 of r,r alternative.
6384 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6386 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
6387 * expmed.h: ... Here.
6389 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
6391 * gimple.h (stmt_can_terminate_bb_p): New function.
6392 * tree-cfg.c (need_fake_edge_p): Rename to ...
6393 (stmt_can_terminate_bb_p): ... this; return true if stmt can
6394 throw external; handle const and pure calls.
6395 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
6397 2016-07-14 Richard Biener <rguenther@suse.de>
6399 PR tree-optimization/71866
6400 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
6401 (do_hoist_insertion): Avoid endless recursion when we
6402 didn't insert anything because we managed to simplify
6403 things down to a constant or SSA name.
6404 (fully_constant_expression): Re-write in terms of ...
6405 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
6406 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
6407 vn_nary_build_or_lookup_1.
6408 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
6409 (vn_nary_build_or_lookup): ... this which now wraps it.
6411 2016-07-14 Alan Modra <amodra@gmail.com>
6414 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
6415 with p9_vector override before power9-dform override.
6417 2016-07-13 Andi Kleen <ak@linux.intel.com>
6419 * value-prof.c (gimple_value_profile_transformations): Don't run
6420 when auto_profile is on.
6422 2016-07-13 Andi Kleen <ak@linux.intel.com>
6424 * auto-profile.c (update_inlined_ind_target,
6425 afdo_indirect_call): Print information to dump file.
6427 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6429 * genrecog.c (special_predicate_operand_p): New function.
6430 (predicate_name): Move function.
6431 (validate_pattern): Don't warn about missing mode for all
6432 define_special_predicate predicates.
6434 2016-07-13 Bin Cheng <bin.cheng@arm.com>
6436 * tree-vect-data-refs.c (vect_no_alias_p): New function.
6437 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
6438 resolve alias checks which are known at compilation time.
6439 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
6440 alias checks are resolved. Move dump info for too many runtime
6441 alias checks to here...
6442 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
6444 2016-07-13 Richard Biener <rguenther@suse.de>
6446 PR tree-optimization/24574
6447 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
6448 position and add shift, rotate, divison and modulo support
6450 (value_replacement): Pass in argument position to absorbing_element_p.
6452 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
6455 * ipa-inline-transform.c (inline_call): Support
6456 instrumented thunks.
6458 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6460 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
6461 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
6463 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
6464 Baseline. Make initial alternative TARGET_32BIT only.
6465 (udivsi3): Likewise.
6466 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
6467 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
6470 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6472 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
6473 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
6474 availability with TARGET_HAVE_MOVT.
6475 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
6476 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
6477 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
6479 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
6480 extra instruction if MOVW is available. Use a cost variable
6481 incremented by COSTS_N_INSNS (1) when the condition match rather than
6482 returning an arithmetic expression based on COSTS_N_INSNS. Make
6483 constant with bottom half word zero cost 2 instruction if MOVW is
6485 * config/arm/arm.md (define_attr "arch"): Add v8mb.
6486 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
6487 target is ARMv8-M Baseline.
6488 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
6489 (arm_movtas_ze): Likewise.
6490 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
6491 alternative for constants satisfying j constraint.
6492 (thumb1_movsi_insn): Likewise.
6493 (movsi splitter for K alternative): Tighten condition to not trigger
6494 if movt is available and j constraint is satisfied.
6495 (Pe immediate splitter): Likewise.
6496 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
6497 constant fitting in an halfword to use MOVW.
6498 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
6501 2016-07-13 Richard Biener <rguenther@suse.de>
6504 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
6505 gimplifying the LHS. Make sure to gimplify a returning twice
6506 call LHS without using SSA names.
6508 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6510 * tree-data-ref.c (find_data_references_in_stmt): Remove
6511 unnecessary call to vec::release.
6512 (graphite_find_data_references_in_stmt): Likewise.
6513 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
6514 * tree-vect-stmts.c (vectorizable_condition): Likewise.
6516 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6518 * cfgexpand.c (expand_used_vars): Make the type of a local
6520 * genmatch.c (lower_for): Likewise.
6521 * haifa-sched.c (haifa_sched_init): Likewise.
6522 (add_to_speculative_block): Likewise.
6523 (create_check_block_twin): Likewise.
6524 * predict.c (handle_missing_profiles): Likewise.
6525 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
6526 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
6527 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6529 (maybe_lower_iteration_bound): Likewise.
6530 * tree-ssa-sccvn.c (DFS): Likewise.
6531 * tree-stdarg.c (reachable_at_most_once): Likewise.
6532 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
6533 (vectorizable_store): Likewise.
6535 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6537 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
6538 (sccvn_dom_walker): make cond_stack an auto_vec.
6540 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6542 * ree.c (struct ext_state): Make type of members auto_vec.
6543 (find_and_remove_re): Adjust.
6545 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6547 * cfgexpand.c (struct stack_vars_data): Make type of fields
6549 (expand_used_vars): Adjust.
6551 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6553 * ipa.c (record_cdtor_fn): Adjust.
6554 (build_cdtor_fns): Likewise.
6555 (ipa_cdtor_merge): Make static_ctors and static_dtors local
6558 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6560 * genextract.c (struct accum_extract): Add constructor and make
6564 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6566 * tree.c (struct free_lang_data_d): Add constructor and change
6567 types of members to ones that automatically manage resources.
6568 (fld_worklist_push): Adjust.
6569 (find_decls_types): Likewise.
6570 (find_decls_types_in_eh_region): Likewise.
6571 (free_lang_data_in_cgraph): Stop manually creating and
6572 destroying members of free_lang_data_d.
6574 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
6576 PR rtl-optimization/68961
6577 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
6578 peephole variant. Use sse_reg_operand predicates.
6580 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
6582 * config/i386/predicates.md (x86_64_immediate_operand)
6583 <case CONST_INT>: Remove unneeded truncation to DImode.
6584 <case CONST>: Ditto.
6585 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
6587 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
6590 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
6591 The xxperm and xxpermr instructions require that the 2nd input
6592 operand overlap with the output operand, and not the 1st.
6593 (altivec_vperm_v8hiv16qi): Likewise.
6594 (altivec_vperm_<mode>_uns_internal): Likewise.
6595 (altivec_vpermr_<mode>_internal): Likewise.
6596 (vperm_v8hiv4si): Likewise.
6597 (vperm_v16qiv8hi): Likewise.
6599 2016-07-12 Nathan Sidwell <nathan@acm.org>
6601 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
6602 when -mno-pic-data-is-text-relative is in effect, by default.
6603 * doc/invoke.texi (mpic-data-is-text-relative): Document new
6604 behavior and clarify.
6606 2016-07-12 Martin Liska <mliska@suse.cz>
6608 * params.def: Add avg-loop niter.
6609 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
6610 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
6611 * doc/invoke.texi: Document the new parameter.
6613 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6616 * expr.c (store_constructor): Mask sign-extended bits when widening
6617 sub-word constructor element at the start of a word.
6619 2016-07-12 Martin Liska <mliska@suse.cz>
6621 * Makefile.in: Append rule for params-options.h.
6622 * params-options.h: New file.
6624 2016-07-12 Martin Liska <mliska@suse.cz>
6626 * ira-build.c (mark_loops_for_removal): Properly iterate
6629 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
6630 Richard Biener <rguenther@suse.de>
6632 PR tree-optimization/23286
6633 PR tree-optimization/70159
6634 * doc/invoke.texi: Document -fcode-hoisting.
6635 * common.opt (fcode-hoisting): New flag.
6636 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
6637 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
6638 (do_regular_insertion): Rename to ...
6639 (do_pre_regular_insertion): ... this and amend general comments
6640 on insertion strathegy.
6641 (do_partial_partial_insertion): Rename to ...
6642 (do_pre_partial_partial_insertion): ... this.
6643 (do_hoist_insertion): New function.
6644 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
6645 and call do_hoist_insertion properly.
6647 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
6648 (pass_pre::execute): Register hoist_insert stats.
6650 2016-07-12 Jakub Jelinek <jakub@redhat.com>
6653 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
6654 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
6655 is different from mode's bitsize. Small cleanup.
6657 2016-07-12 Richard Biener <rguenther@suse.de>
6659 PR rtl-optimization/68961
6660 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
6661 to simplify to a non-constant.
6663 2016-07-11 Jakub Jelinek <jakub@redhat.com>
6666 * omp-low.c (expand_omp_target): Gimplify device.
6668 PR tree-optimization/71823
6669 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
6670 to get vec_oprnds2 from op2.
6672 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
6674 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
6675 Hoist common subexpressions.
6676 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
6678 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
6681 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
6682 prevent generation of 'stxsiwx' on pre Power8 hardware.
6684 2016-07-11 David Malcolm <dmalcolm@redhat.com>
6686 * input.c: Include cpplib.h.
6687 (selftest::temp_source_file): New class.
6688 (selftest::temp_source_file::temp_source_file): New ctor.
6689 (selftest::temp_source_file::~temp_source_file): New dtor.
6690 (selftest::should_have_column_data_p): New function.
6691 (selftest::test_should_have_column_data_p): New function.
6692 (selftest::temp_line_table): New class.
6693 (selftest::temp_line_table::temp_line_table): New ctor.
6694 (selftest::temp_line_table::~temp_line_table): New dtor.
6695 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
6696 it to create a temp_line_table.
6697 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
6698 locations that are known to have column data.
6699 (selftest::line_table_case): New struct.
6700 (selftest::test_reading_source_line): Move tempfile handling
6701 to class temp_source_file.
6702 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
6703 (selftest::assert_token_loc_eq): New function.
6704 (ASSERT_TOKEN_LOC_EQ): New macro.
6705 (selftest::test_lexer): New function.
6706 (selftest::boundary_locations): New array.
6707 (selftest::input_c_tests): Call test_should_have_column_data_p.
6708 Loop over a test matrix of interesting values of location and
6709 default_range_bits, calling test_lexer on each case in the matrix.
6710 Move call to test_accessing_ordinary_linemaps into the matrix.
6711 * selftest.h (ASSERT_EQ): Reimplement in terms of...
6712 (ASSERT_EQ_AT): New macro.
6714 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
6717 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
6718 Don't convert TImode in debug insn.
6720 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6722 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
6723 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
6724 (tree_type_common::lang_flag_7): New.
6725 (tree_type_common::spare): Reduce size.
6726 * tree.h (TYPE_ALIGN_OK): Remove.
6727 (TYPE_LANG_FLAG_7): New.
6728 (get_inner_reference): Adjust header.
6729 * print-tree.c (print_node): Adjust.
6730 * expr.c (get_inner_reference): Remove parameter keep_aligning.
6731 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
6732 calls to get_inner_reference.
6733 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
6734 handling of TYPE_ALIGN_OK.
6735 * builtins.c (get_object_alignment_2): Adjust call to
6736 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
6737 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
6739 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
6740 * cfgexpand.c (expand_debug_expr): Likewise.
6741 * dbxout.c (dbxout_expand_expr): Likewise.
6742 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
6743 loc_list_from_tree, fortran_common): Likewise.
6744 * fold-const.c (optimize_bit_field_compare,
6745 decode_field_reference, fold_unary_loc, fold_comparison,
6746 split_address_to_core_and_offset): Likewise.
6747 * gimple-laddress.c (execute): Likewise.
6748 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
6749 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
6750 * hsa-gen.c (gen_hsa_addr): Likewise.
6751 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
6752 * tsan.c (instrument_expr): Likewise.
6753 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
6754 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
6755 * tree-affine.c (tree_to_aff_combination,
6756 get_inner_reference_aff): Adjust calls to get_inner_reference.
6757 * tree-data-ref.c (split_constant_offset_1,
6758 dr_analyze_innermost): Likewise.
6759 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
6760 * tree-sra.c (ipa_sra_check_caller): Likewise.
6761 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
6762 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
6763 bswap_replace): Likewise.
6764 * tree-vect-data-refs.c (vect_check_gather,
6765 vect_analyze_data_refs): Likewise.
6766 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
6767 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
6770 2016-07-11 David Malcolm <dmalcolm@redhat.com>
6772 * Makefile.in (selftest-valgrind): New phony target.
6773 * function-tests.c (selftest::build_cfg): Delete pass instances
6774 created by the test.
6775 (selftest::convert_to_ssa): Likewise.
6776 (selftest::test_expansion_to_rtl): Likewise.
6777 * tree-cfg.c (selftest::test_linear_chain): Release dominator
6779 (selftest::test_diamond): Likewise.
6781 2016-07-11 Richard Biener <rguenther@suse.de>
6783 PR tree-optimization/71816
6784 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
6785 than replacing all of its operands.
6787 2016-07-11 Alan Modra <amodra@gmail.com>
6789 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
6790 (ctr<mode>): Add unspec.
6791 (ctr<mode>_internal*): Likewise.
6793 2016-07-08 James Bowman <james.bowman@ftdichip.com>
6795 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
6796 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
6798 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
6800 PR rtl-optimization/71621
6801 * lra-constraints.c (process_alt_operands): Check combination of
6804 2016-07-08 Jason Merrill <jason@redhat.com>
6805 Richard Biener <rguenther@suse.de>
6807 P0145: Refining Expression Order for C++.
6808 * gimplify.c (initial_rhs_predicate_for): New.
6809 (gimplfy_modify_expr): Gimplify RHS before LHS.
6811 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6814 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6815 Allow standard error handling to take over when a wrong number
6816 of arguments is presented to __builtin_vec_ld () or
6817 __builtin_vec_st ().
6819 2016-07-08 Jiong Wang <jiong.wang@arm.com>
6821 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
6826 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
6827 __builtin_aarch64_fmaxv2sf.
6828 (vmaxnmq_f32): Likewise.
6829 (vmaxnmq_f64): Likewise.
6830 (vminnm_f32): Likewise.
6831 (vminnmq_f32): Likewise.
6832 (vminnmq_f64): Likewise.
6834 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6837 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
6838 enable -mfloat128-hardware by default.
6839 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
6840 that IEEE 128-bit hardware support needs.
6841 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6842 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
6843 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
6844 floating point requires.
6845 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6846 -mfloat128 and -mfloat128-hardware changes.
6848 2016-07-08 Alan Hayward <alan.hayward@arm.com>
6850 PR tree-optimization/71667
6851 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
6853 2016-07-08 Martin Liska <mliska@suse.cz>
6856 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
6857 folding produces SAVE_EXPRs, thus return false for the type.
6859 2016-07-07 Martin Liska <mliska@suse.cz>
6861 * file-find.c (remove_prefix): New function.
6862 * file-find.h (remove_prefix): Declare the function.
6863 * gcc-ar.c (main): Skip a folder of the wrapper if
6864 a wrapped binary would point to the same file.
6866 2016-07-07 Jan Hubicka <jh@suse.cz>
6868 * tree-scalar-evolution.c (iv_can_overflow_p): export.
6869 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
6870 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
6872 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
6875 * ipa-inline-analysis.c (compute_inline_parameters): Set
6876 local.can_change_signature to false for intrumentation
6879 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
6881 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
6882 with TARGET_HAVE_MOVT.
6883 (TARGET_HAVE_MOVT): Define.
6884 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
6885 availability with TARGET_HAVE_MOVT.
6886 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
6888 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
6890 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
6891 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
6892 * config/arm/constraints.md (define_constraint "j"): Use
6893 TARGET_HAVE_MOVT to check MOVT availability.
6895 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
6897 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
6899 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
6901 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
6902 (armv8-m.main): Likewise.
6903 (armv8-m.main+dsp): Likewise.
6904 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
6905 (FL_FOR_ARCH8M_MAIN): Likewise.
6906 * config/arm/arm-tables.opt: Regenerate.
6907 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
6908 armv8-m.main+dsp to BE8_LINK_SPEC.
6909 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
6910 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
6911 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
6912 Baseline and Mainline.
6913 (arm_option_override_internal): Also disable arm_restrict_it when
6914 !arm_arch_notm. Update comment for -munaligned-access to also cover
6916 (arm_file_start): Increase buffer size for printing architecture name.
6917 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
6918 and armv8-m.main+dsp.
6919 (mno-unaligned-access): Clarify that this is disabled by default for
6920 ARMv8-M Baseline architectures as well.
6922 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
6924 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
6925 decide whether to prevent some libgcc routines being included for some
6926 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
6927 link between this condition and the one in
6928 libgcc/config/arm/lib1func.S.
6930 2016-07-07 Richard Biener <rguenther@suse.de>
6932 * tree-ssa-pre.c: Include alias.h.
6933 (compute_avail): If we have multiple VN_REFERENCEs with the
6934 same hashtable entry adjust that to make it a valid replacement
6935 for all of them with respect to alignment and aliasing
6936 when doing insertion.
6937 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
6938 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
6940 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
6944 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
6945 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
6948 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6950 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
6951 (adjust_mems): Adjust.
6952 (adjust_insn): Likewise.
6953 (prepare_call_arguments): Likewise.
6955 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6957 * gcse.c (struct ls_expr): Make stores field a vector.
6958 (ldst_entry): Adjust.
6959 (free_ldst_entry): Likewise.
6960 (print_ldst_list): Likewise.
6961 (compute_ld_motion_mems): Likewise.
6962 (update_ld_motion_stores): Likewise.
6964 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6966 * gcse.c (struct ls_expr): Remove loads field.
6967 (ldst_entry): Adjust.
6968 (free_ldst_entry): Likewise.
6969 (print_ldst_list): Likewise.
6970 (compute_ld_motion_mems): Likewise.
6972 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6974 * store-motion.c (struct st_expr): Make antic_stores a vector.
6975 (st_expr_entry): Adjust.
6976 (free_st_expr_entry): Likewise.
6977 (print_store_motion_mems): Likewise.
6978 (find_moveable_store): Likewise.
6979 (compute_store_table): Likewise.
6980 (remove_reachable_equiv_notes): Likewise.
6981 (replace_store_insn): Likewise.
6982 (build_store_vectors): Likewise.
6984 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6986 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
6987 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
6989 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
6991 PR tree-optimization/71518
6992 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
6993 misalign also for outer loops with negative step.
6995 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
6997 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
6998 (cortex_a53_shift): Add mov_shift.
6999 (cortex_a53_shift_reg): Add new reservation for register shifts.
7000 (cortex_a53_alu): Remove bfm.
7001 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7002 (cortex_a53_alu_extr): Add new reservation for EXTR.
7003 (bypasses): Improve bypass modelling.
7005 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7008 * config/avr/avr.c (avr_asm_select_section): Strip off
7009 SECTION_DECLARED from flags when calling get_section.
7011 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7013 * tree-vectorizer.h (vect_memory_access_type): Add
7014 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7015 * tree-vect-stmts.c (compare_step_with_zero): New function.
7016 (perm_mask_for_reverse): Move further up file.
7017 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7019 (get_negative_load_store_type): New function.
7020 (get_load_store_type): Call it. Add an ncopies argument.
7021 (vectorizable_mask_load_store): Update call accordingly and
7022 remove tests for negative steps.
7023 (vectorizable_store, vectorizable_load): Likewise. Handle new
7024 memory_access_types.
7026 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7028 * tree-vectorizer.h (vect_memory_access_type): New enum.
7029 (_stmt_vec_info): Add a memory_access_type field.
7030 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7031 (vect_model_store_cost): Take an access type instead of a boolean.
7032 (vect_model_load_cost): Likewise.
7033 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7034 vect_model_store_cost and vect_model_load_cost.
7035 * tree-vect-stmts.c (vec_load_store_type): New enum.
7036 (vect_model_store_cost): Take an access type instead of a
7037 store_lanes_p boolean. Simplify tests.
7038 (vect_model_load_cost): Likewise, but for load_lanes_p.
7039 (get_group_load_store_type, get_load_store_type): New functions.
7040 (vectorizable_store): Use get_load_store_type. Record the access
7041 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7042 (vectorizable_load): Likewise.
7043 (vectorizable_mask_load_store): Likewise. Replace is_store
7044 variable with vls_type.
7046 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7048 * tree-vectorizer.h (vect_grouped_load_supported): Add a
7049 single_element_p parameter.
7050 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7051 Check the PR65518 case here rather than in vectorizable_load.
7052 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7053 * tree-vect-stmts.c (vectorizable_load): Likewise.
7055 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7057 * tree-vectorizer.h (gather_scatter_info): New structure.
7058 (vect_check_gather_scatter): Return a bool rather than a decl.
7059 Replace return-by-pointer arguments with a single
7060 gather_scatter_info *.
7061 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7062 (vect_analyze_data_refs): Update call accordingly.
7063 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7064 (vectorizable_mask_load_store): Likewise. Also record the
7065 offset dt and vectype in the gather_scatter_info.
7066 (vectorizable_store): Likewise.
7067 (vectorizable_load): Likewise.
7069 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7071 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7072 strided groups, use the cost of N scalar accesses instead
7073 of ncopies vector accesses.
7074 (vect_model_load_cost): Likewise.
7076 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7078 * tree-vect-stmts.c (vect_cost_group_size): Delete.
7079 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
7080 variable to indicate when once-per-group costs are being used.
7081 (vect_model_load_cost): Likewise. Fix comment and misindented code.
7083 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
7085 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7086 peeling-for-gaps condition.
7088 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7090 * config/s390/s390.c (s390_expand_vec_init): Force initializer
7091 element to register if it doesn't match general_operand.
7093 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7094 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7096 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
7098 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
7099 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
7100 (SIGNBIT): New mode iterator.
7101 (Fsignbit): New mode attribute.
7102 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
7103 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
7104 when direct moves are available.
7105 (signbit<mode>2_dm): New define_insn_and_split).
7106 (signbit<mode>2_dm2): New define_insn.
7108 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7110 PR rtl-optimization/71594
7111 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
7112 into subregs of appropriate mode before trying to emit a conditional
7115 2016-07-05 Jan Hubicka <jh@suse.cz>
7117 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
7118 (simple_iv): Use it.
7120 2016-07-05 Jan Hubicka <jh@suse.cz>
7122 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
7124 2016-07-05 Jiong Wang <jiong.wang@arm.com>
7126 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
7129 2016-07-05 Jan Hubicka <jh@suse.cz>
7131 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
7134 2016-07-05 Richard Biener <rguenther@suse.de>
7136 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
7137 Handle empty else block.
7138 (is_feasible_trace): Likewise.
7139 (split_paths): Likewise.
7141 2016-07-05 Richard Biener <rguenther@suse.de>
7143 * tree-loop-distribution.c (distribute_loop): Fix issue with
7144 the cost model loop.
7146 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
7148 * config/arm/neon-testgen.ml: Delete.
7149 * config/arm/neon.ml: Delete.
7151 2016-07-04 Jakub Jelinek <jakub@redhat.com>
7154 * tree.c (attribute_value_equal): Use get_attribute_name instead of
7155 directly using TREE_PURPOSE.
7157 2016-07-04 Jiong Wang <jiong.wang@arm.com>
7159 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
7160 * config/aarch64/aarch64_neon.h: Likewise.
7161 * config/aarch64/arm_neon.h: Likewise.
7162 * config/aarch64/atomics.md: Likewise.
7163 * config/aarch64/aarch64-simd-builtins.def: Likewise.
7164 * doc/invoke.texi: Likewise.
7166 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
7168 * config/s390/s390.md: Add "z13" cpu_facility.
7169 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
7170 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
7171 condition" type instructions.
7173 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
7174 Jeff Law <law@redhat.com>
7176 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
7177 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
7179 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
7181 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
7182 permutation for TARGET_AVX512F.
7183 (ix86_expand_vec_one_operand_perm_avx512): New function.
7184 (expand_vec_perm_1): Invoke introduced function.
7185 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7186 it may be not valid after vectorization.
7188 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7191 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
7192 typo in comment. Only force to memory if it is a weak
7195 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
7196 Jiong Wang <jiong.wang@arm.com>
7198 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
7199 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
7200 (AARCH64_FL_F16): New.
7201 (AARCH64_FL_FOR_ARCH8_2): New.
7202 (AARCH64_ISA_8_2): New.
7203 (AARCH64_ISA_F16): New.
7204 (TARGET_FP_F16INST): New.
7205 (TARGET_SIMD_F16INST): New.
7206 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
7207 ("fp"): Disabling "fp" also disables "fp16".
7208 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
7209 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
7210 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
7211 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
7213 2016-07-04 Jan Beulich <jbeulich@suse.com>
7215 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
7217 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
7220 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
7221 the insns, use an insn form that does not adjust the offset on
7222 little endian systems.
7224 2016-07-01 Jan Beulich <jbeulich@suse.com>
7226 * varasm.c (get_variable_section): Validate initializer in
7227 named .bss-like sections.
7229 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
7231 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
7232 Exchange the order of the second and third operands in the vpermr
7233 instruction tmeplate.
7235 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
7238 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
7239 Disallow TDmode values.
7241 2016-07-01 Alan Modra <amodra@gmail.com>
7243 PR rtl-optimization/71709
7244 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
7245 being set, not referenced.
7247 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
7249 PR tree-optimization/70729
7250 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
7251 of loop since it can be not valid after transformation.
7253 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7255 * config/arm/arm.c (thumb_reload_in_hi): Delete.
7256 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
7258 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
7260 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
7263 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
7266 * config/rs6000/constraints.md (wY constraint): New constraint to
7267 match the requirements for the LXSD and STXSD instructions.
7268 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
7269 predicate to match the requirements for the LXSD and STXSD
7271 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
7272 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
7273 to make sure that the bottom 2 bits of offset are 0, the address
7274 form is offsettable, and no updating is done in the address mode.
7275 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
7276 (movdi_internal32): Likewise
7277 (movdi_internal64): Likewise.
7279 2016-06-30 Jakub Jelinek <jakub@redhat.com>
7281 PR tree-optimization/71707
7282 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
7283 strinfo even for ADDR_EXPR ptr.
7285 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
7287 * config/rs6000/altivec.md (darn_32): Change the condition to
7288 TARGET_P9_MISC instead of TARGET_MODULO.
7289 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
7290 condition expression.
7291 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
7292 condition expression.
7293 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
7294 (DFP_TEST): New code iterator.
7295 (dfptstsfi_<code>_mode>): New define_expand.
7296 (*dfp_sgnfcnc_<mode>): New define_insn.
7297 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
7298 definition next to BU_P9_MISC_1 definition and change the MASK
7299 value to RS6000_BTM_P9_MISC.
7300 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
7301 (BU_P9_64BIT_MISC_0): Likewise.
7302 (BU_P9_DFP_MISC_0): New macro definition.
7303 (BU_P9_DFP_MISC_1): New macro definition.
7304 (BU_P9_DFP_MISC_2): New macro definition.
7305 (BU_P9_DFP_OVERLOAD_1): New macro definition.
7306 (BU_P9_DFP_OVERLOAD_2): New macro definition.
7307 (BU_P9_DFP_OVERLOAD_3): New macro definition.
7308 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
7309 (TSTSFI_LT_TD): Likewise.
7310 (TSTSFI_EQ_DD): Likewise.
7311 (TSTSFI_EQ_TD): Likewise.
7312 (TSTSFI_GT_DD): Likewise.
7313 (TSTSFI_GT_TD): Likewise.
7314 (TSTSFI_OV_DD): Likewise.
7315 (TSTSFI_OV_TD): Likewise.
7316 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
7317 (TSTSFI_LT_DD): Likewise.
7318 (TSTSFI_LT_TD): Likewise.
7319 (TSTSFI_EQ): Likewise.
7320 (TSTSFI_EQ_DD): Likewise.
7321 (TSTSFI_EQ_TD): Likewise.
7322 (TSTSFI_GT): Likewise.
7323 (TSTSFI_GT_DD): Likewise.
7324 (TSTSFI_GT_TD): Likewise.
7325 (TSTSFI_OV): Likewise.
7326 (TSTSFI_OV_DD): Likewise.
7327 (TSTSFI_OV_TD): Likewise.
7328 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7329 overloaded test significance functions.
7330 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7331 OPTION_MASK_P9_MISC into the representation of this mask.
7332 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
7334 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
7335 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
7337 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
7338 argument is a 6-bit unsigned literal value if the icode argument
7339 represents a DFP test significance built-in call.
7340 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
7341 flag used independently and in combination with the
7342 RS6000_BTM_64BIT flag.
7343 (rs6000_opt_masks): Add entry for power9-misc command-line option.
7344 (rs6000_builtin_mask_names): Add entry for power9-misc
7345 command-line option.
7346 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
7347 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
7348 RS6000_BTM_P9_MISC macros.
7349 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
7350 option and change the description of the -mpower9-vector option to
7351 enable only vector instructions, removing its erroneously claimed
7352 support for scalar instructions.
7353 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7354 the ISA 3.0 digital floating point test significance built-in
7357 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
7359 * config/aarch64/aarch64.c (cortexa35_tunings):
7360 Enable AES fusion. Use cortexa57_branch_cost.
7361 (cortexa53_tunings): Use cortexa57_branch_cost.
7362 (cortexa72_tunings): Use cortexa57_branch_cost.
7363 Use AUTOPREFETCHER_WEAK.
7364 (cortexa73_tunings): Use cortexa57_branch_cost.
7366 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7367 James Greenhalgh <james.greenhalgh@arm.com>
7369 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
7370 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
7371 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
7372 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
7373 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
7374 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
7375 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
7376 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
7377 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
7378 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
7379 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
7380 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
7381 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
7384 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
7385 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7387 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
7389 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
7391 2016-06-30 David Malcolm <dmalcolm@redhat.com>
7394 * gcc.c (driver::build_option_suggestions): Pass "option" to
7395 add_misspelling_candidates.
7396 * opts-common.c (add_misspelling_candidates): Add "option" param;
7397 use it to avoid adding negated forms for options marked with
7399 * opts.h (add_misspelling_candidates): Add "option" param.
7401 2016-06-30 Jakub Jelinek <jakub@redhat.com>
7404 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
7405 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
7406 first when permuting bitwise operation with rotate. Cast
7407 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
7409 2016-06-29 David Malcolm <dmalcolm@redhat.com>
7411 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
7412 for misspelled param names.
7413 * params.c: Include spellcheck.h.
7414 (find_param_fuzzy): New function.
7415 * params.h (find_param_fuzzy): New prototype.
7416 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
7417 * spellcheck.h (struct edit_distance_traits<const char *>):
7420 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7422 * config/rs6000/predicates.md (const_0_to_7_operand): New
7423 predicate, recognize 0..7.
7424 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7425 support for doing extracts from V16QImode, V8HImode, V4SImode
7427 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
7428 vector extract support.
7429 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
7430 for ISA 3.0 vector extract.
7431 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
7432 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
7433 extracts of a constant element number from small integer vectors
7434 on 64-bit ISA 3.0 systems.
7435 (vsx_extract_<mode>_di): Likewise.
7436 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
7437 say when we can do ISA 3.0 vector extracts.
7438 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
7439 registers, using the stxsiwx instruction.
7441 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
7443 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
7444 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
7445 qdf24xx_regmove_cost, qdf24xx_tunings): New.
7446 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
7447 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
7448 * config/arm/arm.c (arm_qdf24xx_tune): New.
7450 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
7452 * config/aarch64/aarch64.c (cortexa53_tunings):
7453 Increase loop alignment to 8. Set function alignment to 16.
7454 (cortexa35_tunings): Likewise.
7455 (cortexa57_tunings): Increase loop alignment to 8.
7456 (cortexa72_tunings): Likewise.
7457 (cortexa73_tunings): Likewise.
7459 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
7461 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
7462 for arm_fp16_ok and arm_fp16_hw.
7463 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
7464 arm_fp16_alternative.
7466 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
7468 PR tree-optimization/71655
7469 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
7470 types when swapping operands.
7472 2016-06-29 Martin Liska <mliska@suse.cz>
7475 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
7476 * ipa-inline-transform.c (inline_call): Remove unnecessary call
7477 of build_optimization_node.
7479 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
7481 PR tree-optimization/70729
7482 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
7483 independent in loops having positive safelen value.
7484 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7485 it may be not valid after vectorization.
7487 2016-06-29 Jakub Jelinek <jakub@redhat.com>
7489 PR tree-optimization/71625
7490 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
7491 is sorted by ascending list->offset. If PTR is non-NULL and there is
7492 previous strinfo, call get_stridx_plus_constant.
7493 (get_stridx): Pass exp as second argument to get_addr_stridx.
7494 (addr_stridxptr): Add missing list = list->next, so that there can be
7495 more than one entries in the list. Bump limit from 16 to 32. Ensure
7496 the list is sorted by ascending list->offset.
7497 (get_stridx_plus_constant): Adjust so that it can be also called with
7498 ADDR_EXPR instead of SSA_NAME as PTR.
7499 (handle_char_store): Pass NULL_TREE as second argument to
7502 2016-06-29 Richard Biener <rguenther@suse.de>
7504 PR rtl-optimization/68961
7505 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
7507 2016-06-29 Richard Biener <rguenther@suse.de>
7510 * alias.c (component_uses_parent_alias_set_from): Handle
7511 type punning through union accesses by using the union alias set.
7512 * gimple.c (gimple_get_alias_set): Remove union type punning case.
7514 2016-07-29 Richard Biener <rguenther@suse.de>
7516 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
7517 precision not matching mode precision.
7519 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
7521 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
7522 pa_output_arg_descriptor.
7523 (call_val_symref_64bit_post_reload): Likewise.
7524 (call_val_powf_64bit_post_reload): Likewise.
7525 (sibcall_internal_symref_64bit): Likewise.
7526 (sibcall_value_internal_symref_64bit): Likewise.
7528 2016-06-28 Jakub Jelinek <jakub@redhat.com>
7531 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
7532 a constant, force its SUBREG_REG into memory or register instead
7535 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
7538 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
7539 * doc/invoke.texi (AVR Options): Document it.
7541 2016-06-28 Walter Lee <walt@tilera.com>
7543 * config/tilegx/linux.h: Do not include arch/icache.h
7544 (CLEAR_INSN_CACHE): Provide inlined definition directly.
7545 * config/tilepro/linux.h: Do not include arch/icache.h
7546 (CLEAR_INSN_CACHE): Provide inlined definition directly.
7548 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
7550 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
7551 for big-endian BIT_FIELD_REF.
7553 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
7555 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
7556 ('size' attribute): Add '128'.
7558 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
7559 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
7560 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
7561 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
7562 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
7563 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
7564 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
7565 *trunc<mode>df2_odd): Set size attribute to '128'.
7566 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
7567 * config/rs6000/power6.md (power6-fp): Include dfp type.
7568 * config/rs6000/power7.md (power7-fp): Likewise.
7569 * config/rs6000/power8.md (power8-fp): Likewise.
7570 * config/rs6000/power9.md: New file.
7571 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
7572 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
7573 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
7575 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
7576 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
7577 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
7578 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
7579 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
7580 dfp_dscri_<mode>): Change type attribute to dfp.
7581 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
7582 attribute to vecsimple.
7583 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
7584 and prefetch streams.
7585 (rs6000_option_override_internal): Remove temporary code setting
7586 tuning to power8. Don't set rs6000_sched_groups for power9.
7587 (last_scheduled_insn): Change to rtx_insn *.
7588 (divide_cnt, vec_load_pendulum): New variables.
7589 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
7590 (rs6000_issue_rate): Set issue rate for Power9.
7591 (is_power9_pairable_vec_type): New.
7592 (power9_sched_reorder2): New.
7593 (rs6000_sched_reorder2): Call new function for Power9 specific
7595 (insn_must_be_first_in_group): Remove Power9.
7596 (insn_must_be_last_in_group): Likewise.
7597 (force_new_group): Likewise.
7598 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
7599 Initialize divide_cnt/vec_load_pendulum.
7600 (_rs6000_sched_context, rs6000_init_sched_context,
7601 rs6000_set_sched_context): Handle context save/restore of new
7604 2016-06-28 Richard Biener <rguenther@suse.de>
7606 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7607 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
7608 COMPONENT_REF operand.
7609 (nonoverlapping_component_refs_p): Likewise.
7610 * stor-layout.c (start_bitfield_representative): Mark
7611 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
7613 2016-06-28 Jakub Jelinek <jakub@redhat.com>
7615 * Makefile.in: Don't cat ../stage_current if it does not exist.
7617 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
7618 last argument is a bit-field.
7620 PR rtl-optimization/71673
7621 * internal-fn.c (expand_arith_overflow_result_store): Use
7622 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
7623 expand_simple_binop.
7626 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
7627 expand_ifn_atomic_compare_exchange): New functions.
7628 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
7629 * tree.h (build_call_expr_internal_loc): Rename to ...
7630 (build_call_expr_internal_loc_array): ... this. Fix up type of
7632 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
7633 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
7634 ATOMIC_COMPARE_EXCHANGE result.
7635 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
7636 * gimple-fold.h (optimize_atomic_compare_exchange_p,
7637 fold_builtin_atomic_compare_exchange): New prototypes.
7638 * gimple-fold.c (optimize_atomic_compare_exchange_p,
7639 fold_builtin_atomic_compare_exchange): New functions..
7640 * tree-ssa.c (execute_update_addresses_taken): If
7641 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
7642 of call when finding addressable vars, and if such var becomes
7643 non-addressable, call fold_builtin_atomic_compare_exchange.
7645 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
7648 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
7649 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
7651 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
7653 * config/rs6000/rs6000.md ('type' attribute): Add
7654 veclogical,veccmpfx,vecexts,vecmove insn types.
7655 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
7656 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
7657 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
7658 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
7659 *nabs<mode>2_hw): Change type to vecmove.
7660 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
7661 *boolcc<mode>3_internal, *eqv<mode>3_internal,
7662 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
7663 *ieee_128bit_vsx_abs<mode>2_internal,
7664 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
7665 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
7666 *ieee128_mtvsrd_32bit): Change type to veclogical.
7667 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
7668 *movdi_internal32, *movdi_internal64): Update insn types.
7669 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
7670 vsx_extract_<mode>): Change type to veclogical.
7671 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
7672 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
7673 *vsx_sign_extend_si_v2di): Change type to vecexts.
7674 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
7676 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
7677 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
7678 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
7679 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
7680 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
7681 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
7682 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
7683 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
7684 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
7685 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
7686 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
7687 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
7688 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
7689 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
7690 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
7691 (ppc7450-vecsimple): Add veclogical, vecmove.
7692 (ppc7450-veccmp): Add veccmpfx.
7693 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
7695 (ppc8540_vector_compare): Add veccmpfx.
7696 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
7697 * config/rs6000/cell.md (cell-fp): Add fpsimple.
7698 (cell-vecsimple): Add veclogical, vecmove.
7699 (cell-veccmp): Add veccmpfx.
7700 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
7701 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
7703 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
7704 * config/rs6000/power4.md (power4-fp): Add fpsimple.
7705 (power4-vecsimple): Add veclogical, vecmove.
7706 (power4-veccmp): Add veccmpfx.
7707 * config/rs6000/power5.md (power5-fp): Add fpsimple.
7708 * config/rs6000/power6.md (power6-fp): Add fpsimple.
7709 (power6-vecsimple): Add veclogical, vecmove.
7710 (power6-veccmp): Add veccmpfx.
7711 * config/rs6000/power7.md (power7-fp): Add fpsimple.
7712 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
7713 * config/rs6000/power8.md (power8-fp): Add fpsimple.
7714 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
7715 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
7716 * config/rs6000/titan.md (titan_fp): Add fpsimple.
7717 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
7719 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
7721 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
7724 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7725 OPTION_MASK_P9_DFORM_VECTOR.
7726 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
7727 disable -mpower9-dform-vector when using reload.
7728 (quad_address_p): Remove 'gpr_p' argument and all associated code.
7729 New 'strict' argument. Update all callers. Add strict addressing
7731 (rs6000_legitimate_offset_address_p): Remove call to
7732 virtual_stack_registers_memory_p.
7733 (rs6000_legitimize_reload_address): Add quad address support.
7734 (rs6000_legitimate_address_p): Move call to quad_address_p above
7735 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
7736 to account for new strict usage.
7737 (rs6000_output_move_128bit): Adjust quad_address_p args to account
7738 for new strict usage.
7739 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
7741 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
7748 * config/i386/i386.c (ix86_spill_class): Disable condition to
7749 always return NO_REGS.
7751 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
7753 * predict.c: Include gimple-pretty-print.h
7754 (predicted_by_loop_heuristics_p): Check also
7755 PRED_LOOP_EXIT_WITH_RECURSION
7756 (predict_loops): Find self recursive calls and use special purpose
7757 predictors for them; dump log about decisions.
7758 (pass_profile::execute): Dump info about #of iterations.
7759 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
7760 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
7762 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
7764 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
7765 output_asm_insn calls and shorten long lines. Output .CALL
7766 argument descriptor using pa_output_arg_descriptor. Add various
7767 inline $$dyncall and other optimizations.
7768 (pa_attr_length_indirect_call): Adjust ordering and lengths.
7770 2016-06-25 Jakub Jelinek <jakub@redhat.com>
7772 PR tree-optimization/71643
7773 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
7776 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
7777 leak a bitmap if dep_bb is NULL.
7779 PR tree-optimization/71631
7780 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
7781 to rewrite_expr_tree even if negate_result, move new_lhs var
7782 declaration and initialization earlier, for powi_result set afterwards
7783 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
7784 if new_lhs != lhs, and don't shadow gsi var.
7786 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
7788 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
7789 Add in_loop parameter.
7790 (predict_loops): Add loop guard heuristics.
7791 * predict.def (PRED_LOOP_GUARD): New heuristics.
7793 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
7795 * predict.c: Include ipa-utils.h
7796 (tree_bb_level_prediction): Predict recursive calls.
7797 (tree_estimate_probability_bb): Skip inexpensive calls for call
7799 * predict.def (PRED_RECURSIVE_CALL): New.
7801 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7803 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
7804 (BU_FLOAT128_1): Likewise.
7806 (COPYSIGNQ): Likewise.
7807 (RS6000_BUILTIN_NANQ): Likewise.
7808 (RS6000_BUILTIN_NANSQ): Likewise.
7809 (RS6000_BUILTIN_INFQ): Likewise.
7810 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
7811 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
7812 (TARGET_FOLD_BUILTIN): New #define.
7813 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
7814 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
7815 (rs6000_fold_builtin): New target hook implementation, handling
7816 folding of 128-bit NaNs and infinities.
7817 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
7818 entries are filled in to avoid problems during bootstrap
7819 self-test; define builtins for 128-bit NaNs and infinities.
7820 (rs6000_opt_mask): Add entry for float128.
7821 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
7822 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
7823 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
7824 (const_str_type_node): New #define.
7825 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
7826 to a define_expand that dispatches to either copysign<mode>3_soft
7827 or copysign<mode>3_hard.
7828 (copysign<mode>3_hard): Rename from copysign<mode>3.
7829 (copysign<mode>3_soft): New define_insn.
7830 * doc/extend.texi: Document new builtins.
7832 2016-06-24 Jakub Jelinek <jakub@redhat.com>
7834 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
7835 PRIu64 instead of lu.
7837 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
7840 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
7843 2016-06-24 Jakub Jelinek <jakub@redhat.com>
7845 PR tree-optimization/71647
7846 * omp-low.c (lower_rec_input_clauses): Convert
7847 omp_clause_aligned_alignment (c) to size_type_node for the
7848 last argument of __builtin_assume_aligned.
7850 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
7852 * configure.ac (calling ___tls_get_addr via GOT): New
7853 assembler/linker check.
7854 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
7855 assembler and linker supports calling ___tls_get_addr via GOT.
7856 Otherise, defined to 0.
7857 * config.in: Regenerated.
7858 * configure: Likewise.
7859 * config/i386/constraints.md (Yb): New constraint.
7860 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
7861 (REG_CLASS_NAMES): Likewise.
7862 (REG_CLASS_CONTENTS): Likewise.
7863 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
7864 the b constraint with the Yb constraint. Call ___tls_get_addr
7865 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
7867 (*tls_local_dynamic_base_32_gnu): Likewise.
7868 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
7869 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
7870 (*tls_local_dynamic_base_64_<mode>): Likewise.
7872 2016-06-24 Martin Liska <mliska@suse.cz>
7874 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
7875 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
7877 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
7878 argument to true if the expected number of iterations is
7881 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
7883 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
7884 assemble for 32bit target.
7885 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
7886 and $ld_ix86_gld_32_opt to link for 32bit target.
7887 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
7888 * configure: Regenerate.
7890 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7892 * config/arm/arm.c (int_log2): Delete definition and prototype.
7893 (shift_op): Use exact_log2 instead of int_log2.
7894 (vfp3_const_double_for_fract_bits): Likewise.
7896 2016-06-24 Jakub Jelinek <jakub@redhat.com>
7898 * internal-fn.c (expand_arith_set_overflow): New function.
7899 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
7901 (expand_arith_overflow_result_store): Likewise. Handle precision
7902 smaller than mode precision.
7903 * tree-vrp.c (extract_range_basic): For imag part, handle
7904 properly signed 1-bit precision result.
7905 * doc/extend.texi (__builtin_add_overflow): Document that last
7906 argument can't be pointer to enumerated or boolean type.
7907 (__builtin_add_overflow_p): Document that last argument can't
7908 have enumerated or boolean type.
7910 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
7911 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7913 * config/rs6000/predicates.md (splat_input_operand): Rework.
7914 Don't allow constants, since the insns that use this predicate
7915 don't support constants. Constants are handled by other insns
7916 that are created via combine. During and after register
7917 allocation, only allow indexed or indirect addresses, and not
7918 general addresses. Only allow modes supported by the hardware.
7919 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
7920 comment. Move check for using VSPLTIS<x> to a common location,
7921 instead of doing it in two different places.
7923 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
7925 * config/i386/driver-i386.c (host_detect_local_cpu): Set
7926 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
7927 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
7928 signature_CENTAUR_ebx.
7930 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
7934 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
7935 (as_ix86_gas_32_opt): This.
7936 (ld_ix86_tls_ldm_opt): Renamed to ...
7937 (ld_ix86_gld_32_opt): This.
7938 (R_386_TLS_LDM reloc): Updated.
7939 (R_386_GOT32X reloc): New assembler/linker check.
7940 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
7941 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
7943 * config.in: Regenerated.
7944 * configure: Likewise.
7945 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
7946 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
7947 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
7948 if ix86_force_load_from_GOT_p returns true.
7949 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
7950 ix86_force_load_from_GOT_p returns true.
7951 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
7952 the external function address via the GOT slot.
7953 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
7954 HAVE_AS_IX86_GOT32X before returning false.
7955 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
7956 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
7958 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
7960 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
7962 2016-06-23 Andi Kleen <ak@linux.intel.com>
7964 * Makefile.in: Regenerate.
7965 * doc/install.texi: Document autoprofiledbootstrap.
7967 2016-06-23 Andi Kleen <ak@linux.intel.com>
7969 * config/i386/gcc-auto-profile: New file.
7971 2016-06-23 Martin Liska <mliska@suse.cz>
7974 * predict.c (predict_loops): Revert the hunk that was removed
7977 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
7979 * config.gcc: Add support for arm*-*-phoenix* targets.
7980 * config/arm/t-phoenix: New.
7981 * config/phoenix.h: New.
7983 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
7984 H.J. Lu <hongjiu.lu@intel.com>
7987 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
7988 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
7989 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
7990 ix86_force_load_from_GOT_p returns true.
7991 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
7992 ix86_force_load_from_GOT_p returns true.
7993 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
7994 ix86_force_load_from_GOT_p returns true.
7995 (ix86_expand_move): Load the external function address via the
7996 GOT slot if ix86_force_load_from_GOT_p returns true.
7997 * config/i386/predicates.md (x86_64_immediate_operand): Return
7998 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
7999 (x86_64_zext_immediate_operand): Ditto.
8001 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
8003 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8005 2016-06-22 David Malcolm <dmalcolm@redhat.com>
8008 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8009 * diagnostic.c (pedwarn_at_rich_loc): New function.
8010 * spellcheck.h (best_match::best_match): Add a
8011 "best_distance_so_far" optional parameter.
8012 (best_match::set_best_so_far): New method.
8013 (best_match::get_best_distance): New accessor.
8014 (best_match::get_best_candidate_length): New accessor.
8016 2016-06-22 Nick Clifton <nickc@redhat.com>
8018 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8019 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8020 modes are accepted as well.
8021 (ucompare_loc_descriptor): Likewise.
8022 (minmax_loc_descriptor): Likewise.
8023 (clz_loc_descriptor): Likewise.
8024 (popcount_loc_descriptor): Likewise.
8025 (bswap_loc_descriptor): Likewise.
8026 (rotate_loc_descriptor): Likewise.
8027 (mem_loc_descriptor): Likewise.
8028 (loc_descriptor): Likewise.
8030 2016-06-22 David Malcolm <dmalcolm@redhat.com>
8032 * common.opt (fdiagnostics-parseable-fixits): New option.
8033 * diagnostic.c: Include "selftest.h".
8034 (print_escaped_string): New function.
8035 (print_parseable_fixits): New function.
8036 (diagnostic_report_diagnostic): Call print_parseable_fixits.
8037 (selftest::assert_print_escaped_string): New function.
8038 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8039 (selftest::test_print_escaped_string): New function.
8040 (selftest::test_print_parseable_fixits_none): New function.
8041 (selftest::test_print_parseable_fixits_insert): New function.
8042 (selftest::test_print_parseable_fixits_remove): New function.
8043 (selftest::test_print_parseable_fixits_replace): New function.
8044 (selftest::diagnostic_c_tests): New function.
8045 * diagnostic.h (struct diagnostic_context): Add field
8046 "parseable_fixits_p".
8047 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8048 -fdiagnostics-parseable-fixits.
8049 (-fdiagnostics-parseable-fixits): New option.
8050 * opts.c (common_handle_option): Handle
8051 -fdiagnostics-parseable-fixits.
8052 * selftest-run-tests.c (selftest::run_tests): Call
8053 selftest::diagnostic_c_tests.
8054 * selftest.h (selftest::diagnostic_c_tests): New prototype.
8056 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
8058 PR tree-optimization/71488
8059 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8060 comparison of boolean vectors.
8061 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8062 of boolean vectors using bitwise operations.
8064 2016-06-22 Andreas Schwab <schwab@suse.de>
8066 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8069 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
8071 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8073 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
8075 * config/i386/i386.c (print_reg): Emit an error message on attempt to
8078 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8080 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8081 * config/arm/arm-cores.def (cortex-a73): New entry.
8082 (cortex-a73.cortex-a35): Likewise.
8083 (cortex-a73.cortex-a53): Likewise.
8084 * config/arm/arm-tables.opt: Regenerate.
8085 * config/arm/arm-tune.md: Likewise.
8086 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8087 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8088 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8089 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8090 * doc/invoke.texi (ARM Options): Document cortex-a73,
8091 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8093 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8095 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
8096 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
8097 (cortex-a73.cortex-a35): Likewise.
8098 (cortex-a73.cortex-a53): Likewise.
8099 * config/aarch64/aarch64-tune.md: Regenerate.
8100 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
8101 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
8104 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8106 * configure.ac (gcc_cv_as_compress_debug): Remove
8107 --compress-debug-sections as extra as switch.
8108 Handle gas --compress-debug-sections=type.
8109 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
8110 Handle gld --compress-debug-sections=type.
8111 * configure: Regenerate.
8113 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
8115 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
8117 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
8119 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
8120 (do_rewrite): likewise.
8122 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8124 * common/config/mep/mep-common.c: Remove.
8125 * config.gcc: Remove mep-* support.
8126 * config/mep/constraints.md: Remove.
8127 * config/mep/default.h: Remove.
8128 * config/mep/intrinsics.h: Remove.
8129 * config/mep/intrinsics.md: Remove.
8130 * config/mep/ivc2-template.h: Remove.
8131 * config/mep/mep-c5.cpu: Remove.
8132 * config/mep/mep-core.cpu: Remove.
8133 * config/mep/mep-default.cpu: Remove.
8134 * config/mep/mep-ext-cop.cpu: Remove.
8135 * config/mep/mep-intrin.h: Remove.
8136 * config/mep/mep-ivc2.cpu: Remove.
8137 * config/mep/mep-pragma.c: Remove.
8138 * config/mep/mep-protos.h: Remove.
8139 * config/mep/mep.c: Remove.
8140 * config/mep/mep.cpu: Remove.
8141 * config/mep/mep.h: Remove.
8142 * config/mep/mep.md: Remove.
8143 * config/mep/mep.opt: Remove.
8144 * config/mep/predicates.md: Remove.
8145 * config/mep/t-mep: Remove.
8146 * doc/install.texi: Remove mep-* documentation.
8147 * doc/md.texi: Likewise.
8149 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8151 * config.gcc: Remove support for avr-rtems.
8152 * config/avr/gen-avr-mmcu-specs.c: Likewise.
8153 * config/avr/rtems.h: Remove.
8154 * config/avr/t-rtems: Remove.
8156 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8158 * config.gcc: Remove m32r-rtems support.
8159 * config/m32r/rtems.h: Remove.
8161 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8163 * config.gcc: Remove h8300-rtems support.
8164 * config/h8300/rtems.h: Remove.
8165 * config/h8300/t-rtems: Remove.
8167 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8169 * config.gcc: Remove support for knetbsd.
8170 * configure.ac: Likewise.
8171 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
8172 * config/knetbsd-gnu.h: Remove.
8173 * configure: Regenerate.
8175 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8177 * config.gcc: Remove support for openbsd 2 and 3.
8178 * config/openbsd-oldgas.h: Remove.
8180 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8182 * config.gcc: Remove interix support.
8183 * config/i386/i386-interix.h: Remove.
8184 * config/i386/interix.opt: Remove.
8185 * config/i386/t-interix: Remove.
8186 * configure: Regenerate.
8187 * configure.ac: Remove interix support.
8188 * doc/install.texi: Remove interix documentation.
8190 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
8192 * config/rs6000/rs6000.h: Add conditional preprocessing directives
8193 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
8196 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
8198 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
8199 they are both PLACEHOLDER_EXPRs.
8201 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8203 * stor-layout.c (layout_type): Move setting complex MODE to
8204 layout_type, instead of setting it ahead of time by the caller.
8205 * tree.c (build_complex_type): Likewise.
8207 2016-06-21 Martin Liska <mliska@suse.cz>
8209 * predict.c (force_edge_cold): Replace imposisble with
8212 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
8214 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
8215 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
8217 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
8219 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
8221 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
8222 Ilya Enkovich <ilya.enkovich@intel.com>
8225 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8226 New member function to convert V1TImode register to SUBREG
8227 TImode in debug insn.
8228 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
8229 after changing register mode to V1TImode.
8231 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
8233 * config/aarch64/aarch64-cores.def (vulcan): New core.
8234 * config/aarch64/aarch64-tune.md: Regenerate.
8235 * doc/invoke.texi: Document vulcan as an available option.
8237 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
8239 * cse.c (canon_asm_operands): New function extracted from...
8240 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
8241 either standalone or member of a PARALLEL.
8243 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
8246 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
8247 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
8248 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
8250 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
8253 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
8254 constant addresses if can_create_pseudo_p.
8256 2016-06-21 Jakub Jelinek <jakub@redhat.com>
8258 PR tree-optimization/71588
8259 * tree-ssa-strlen.c (valid_builtin_call): New function.
8260 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
8263 2016-06-20 Jakub Jelinek <jakub@redhat.com>
8266 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
8267 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
8268 for conversion of scalar user var to complex type and use the
8269 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
8272 PR rtl-optimization/71591
8273 * toplev.c (toplev::run_self_tests): If no_backend, complain and
8274 don't run any tests.
8276 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
8279 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
8280 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
8281 space for PIC with non-v32 and the common non-PIC "jump".
8283 2016-06-20 Jakub Jelinek <jakub@redhat.com>
8286 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
8287 returned values and add UN*/LTGT/*ORDERED cases with values matching
8288 D operand modifier on vcmp for AVX.
8290 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
8292 * config/aarch64/aarch64.opt
8293 (mpc-relative-literal-loads): Rename internal option name.
8294 * config/aarch64/aarch64.c
8295 (aarch64_nopcrelative_literal_loads): Rename to
8296 aarch64_pcrelative_literal_loads.
8297 (aarch64_expand_mov_immediate): Likewise.
8298 (aarch64_secondary_reload): Likewise.
8299 (aarch64_can_use_per_function_literal_pools_p): Likewise.
8300 (aarch64_override_options_after_change_1): Rename and simplify logic.
8301 (aarch64_classify_symbol): Merge large model checks into switch,
8302 remove pc-relative load check.
8304 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8306 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
8307 costs relative to the cost of a register move.
8309 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8311 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
8312 (vcvt_n_f64_u64): Likewise.
8313 (vcvt_n_s64_f64): Likewise.
8314 (vcvt_n_u64_f64): Likewise.
8315 (vcvt_f64_s64): Likewise.
8316 (vrecpe_f64): Likewise.
8317 (vcvt_f64_u64): Likewise.
8318 (vrecps_f64): Likewise.
8320 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8322 * config/aarch64/aarch64.md
8323 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
8325 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
8327 * config/aarch64/aarch64-builtins.c
8328 (aarch64_types_binop_uss_qualifiers): Delete.
8329 (TYPES_BINOP_USS): Likewise.
8330 (aarch64_types_binop_sus_qualifiers): Likewise.
8331 (TYPES_BINOP_SUS): Likewise.
8332 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
8333 (TYPES_FCVTIMM_SUS): Likewise.
8334 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
8336 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
8337 (fcvtzs): Use SHIFTIMM rather than BINOP.
8338 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
8340 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
8342 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
8343 costs relative to the cost of a register move.
8345 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
8347 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
8348 Allow scalar/single vector modes to be tieable.
8350 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
8352 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
8354 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8356 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
8358 * tree.h (TYPE_ALIGN): Likewise.
8360 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
8363 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
8365 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
8367 * config/avr/avr.c (avr_print_operand): Fix "format not a string
8368 literal" build warnings.
8369 (avr_print_operand_address): Dito.
8371 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
8374 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
8375 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
8377 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
8379 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
8381 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
8384 * reload1.c (reload): Pass 0 to finish_spills when called because
8385 update_eliminables_and_spill returns true and remove did_spill.
8386 (finish_spills): Adjust comment and document GLOBAL parameter.
8388 2016-06-17 DJ Delorie <dj@redhat.com>
8391 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
8392 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
8393 (umulqihi3_virt): Likewise.
8394 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
8395 (umulqihi3_real): Likewise.
8397 2016-06-17 Martin Liska <mliska@suse.cz>
8399 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
8401 2016-06-17 Martin Liska <mliska@suse.cz>
8403 * predict.def: PRED_LOOP_EXIT from 92 to 85.
8405 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
8407 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
8409 (vaddq_f32): Likewise.
8410 (vmul_f32): Likewise.
8411 (vmulq_f32): Likewise.
8412 (vsub_f32): Likewise.
8413 (vsubq_f32): Likewise.
8415 2016-06-17 Bin Cheng <bin.cheng@arm.com>
8417 PR tree-optimization/71347
8418 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
8419 cost for all uses in group.
8421 2016-06-17 Bin Cheng <bin.cheng@arm.com>
8423 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
8424 insert gimple seq if it's not empty.
8426 2016-06-17 Bin Cheng <bin.cheng@arm.com>
8428 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
8430 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
8432 (comp_dr_with_seg_len_pair): Ditto.
8433 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
8434 struct dr_with_seg_len_pair against DR_OFFSET.
8435 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
8438 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
8440 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
8442 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
8444 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
8445 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
8446 (pa_output_millicode_call): Likewise.
8447 (pa_output_call): Likewise.
8448 (pa_output_indirect_call): Likewise.
8449 (pa_asm_output_mi_thunk): Likewise.
8451 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8453 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
8455 2016-06-16 Martin Liska <mliska@suse.cz>
8457 * predict.c (combine_predictions_for_insn): When we find a first
8458 match predictor, we should consider just predictors with
8459 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
8460 DS theory predictor.
8461 (combine_predictions_for_bb): Likewise.
8463 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8465 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
8466 with base of reference to struct.
8468 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
8470 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
8472 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8475 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
8476 progmem_swtable_section.
8477 (progmem_swtable_section): Remove.
8478 (avr_asm_function_rodata_section): Remove.
8479 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
8480 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
8482 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
8484 * config/i386/driver-i386.c (host_detect_local_cpu): Set
8485 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
8486 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
8487 signature_CENTAUR_ebx.
8488 * config/i386/i386.c (ix86_option_override_internal): Add
8489 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
8490 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
8491 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
8493 2016-06-16 Martin Liska <mliska@suse.cz>
8495 * predict.def: Add fortran loop preheader predictor.
8496 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
8497 fold IFN_BUILTIN_EXPECT with a known constant argument.
8499 2016-06-16 Martin Liska <mliska@suse.cz>
8501 * predict.def: Add 'Fortran' to display text of all
8502 PRED_FORTRAN_* predictors.
8504 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
8507 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
8508 [IA64_BUILTIN_NANSQ]: Ditto.
8509 (ia64_fold_builtin): New function.
8510 (TARGET_FOLD_BUILTIN): New define.
8511 (ia64_init_builtins) Declare const_string_type node.
8512 Add __builtin_nanq and __builtin_nansq builtin functions.
8513 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
8515 2016-06-16 Nick Clifton <nickc@redhat.com>
8517 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
8518 MSP430_HWMULT_ prefix to enum values.
8519 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
8520 * config/msp430/msp430.c: Update use of enum values.
8521 * config/msp430/msp430.md: Likewise.
8522 * config/msp430/msp430.opt: Likewise.
8524 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
8526 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
8527 of comparsions in the last iteration.
8529 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
8530 Joern Rennecke <joern.rennecke@embecosm.com>
8532 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
8534 (arc_needs_pcl_p): Add GOTOFFPC.
8535 (arc_legitimate_pic_addr_p): Likewise.
8536 (arc_output_pic_addr_const): Likewise.
8537 (arc_legitimize_pic_address): Generate a pc-relative address using
8539 (arc_output_libcall): Use @pcl syntax.
8540 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
8541 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
8542 (*movsi_insn): Use @pcl syntax.
8543 (doloop_begin_i): Likewise.
8545 2016-06-16 Martin Liska <mliska@suse.cz>
8547 * predict.def: Define a new predictor.
8549 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
8551 * config/arc/arc.opt (mtp-regno): Update text.
8553 2016-06-16 Renlin Li <renlin.li@arm.com>
8555 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
8557 2016-06-16 Jakub Jelinek <jakub@redhat.com>
8560 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
8561 (setcc + and peephole2): Likewise.
8563 PR rtl-optimization/71532
8564 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
8567 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
8569 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
8570 DImode constants with XXSPLTIB in vector registers.
8571 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
8572 vsx_extract_<mode>_internal{1,2} into a single insn that handles
8573 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
8574 extraction of the element at the top of the register as a scalar
8576 (vsx_extract_<mode>_internal1): Likewise.
8577 (vsx_extract_<mode>_internal2): Likewise.
8578 * config/rs6000/constraints.md (wi constraint): Remove a comment
8579 about DImode not being allowed in Altivec registers.
8580 (wB constraint): New constraint for constants that can be
8581 generated in Altivec registers with VSPLTISW/VUPKHSW.
8582 * config/rs6000/predicates.md (xxspltib_constant_split): Update
8584 (xxspltib_constant_nosplit): Likewise.
8585 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
8586 support for -mupper-regs-di to enable DImode to go into Altivec
8588 (POWERPC_MASKS): Likewise.
8589 (power7 cpu): Likewise.
8590 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
8591 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
8592 for DImode being allowed in Altivec registers. Update wi/wj
8593 constraints. Set scalar_in_vmx_p flag.
8594 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
8595 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
8596 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
8597 (rs6000_opt_masks): Add -mupper-regs-di.
8598 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
8599 direct move to use wi and not wj.
8601 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
8603 (floatunssi<mode>2_lfiwzx_mem): Likewise.
8604 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
8605 any VSX register, instead of just Altivec registers, to allow
8606 either operand to be an Altivec register or both.
8607 (fixuns_trunc<mode>di2_fctiduz): Likewise.
8608 (movdi_internal32): Add support for -mupper-regs-di. Add support
8609 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
8610 the alternatives and attributes to be lined up to be easier to
8612 (movdi_internal64): Likewise.
8613 (64-bit DImode splitters): Change predicates to only split loading
8614 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
8615 load constants in ISA 3.0 or ISA 2.07 respectively.
8616 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8617 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
8618 mention -mcpu=power9 sets these options.
8619 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
8622 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8625 * config/avr/avr.c (avr_set_current_function): Warn misspelled
8626 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
8627 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
8628 by default to warn misspelled interrupt/ signal handler.
8629 * doc/invoke.texi (AVR Options): Document it. Update description
8630 for -nodevicelib option.
8632 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8634 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
8635 up parentheses. Use GET_MODE_UNIT_BITSIZE.
8636 (aarch64_<sur>shll2_n<mode>): Likewise.
8638 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
8641 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
8642 DECL_CONTEXT for copied arguments.
8644 2016-06-15 Alan Hayward <alan.hayward@arm.com>
8646 PR tree-optimization/71483
8647 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
8650 2016-06-15 Martin Liska <mliska@suse.cz>
8652 * predict.c (tree_predict_by_opcode): Call predict_edge_def
8653 instead of predict_edge w/o a probability.
8655 2016-06-15 Alan Hayward <alan.hayward@arm.com>
8657 PR tree-optimization/71439
8658 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
8661 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8663 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
8664 register subregs in SET_SRC.
8666 2016-06-15 Richard Biener <rguenther@suse.de>
8668 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
8671 2016-06-15 Richard Biener <rguenther@suse.de>
8673 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
8674 not consider dependences between accesses that belong to the
8676 (vect_analyze_data_ref_dependences): Do not analyze read-read
8677 or self-dependences.
8679 2016-06-14 David Malcolm <dmalcolm@redhat.com>
8681 * spellcheck-tree.c: Include spellcheck-tree.h rather than
8683 (find_closest_identifier): Reimplement in terms of
8684 best_match<tree,tree>.
8685 * spellcheck-tree.h: New file.
8686 * spellcheck.c (struct edit_distance_traits<const char *>): New
8688 (find_closest_string): Reimplement in terms of
8689 best_match<const char *, const char *>.
8690 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
8691 overload to spellcheck-tree.h.
8692 (find_closest_identifier): Likewise.
8693 (struct edit_distance_traits<T>): New template.
8694 (class best_match): New class.
8696 2016-06-14 David Malcolm <dmalcolm@redhat.com>
8698 * selftest-run-tests.c (selftest::run_tests): Call
8699 selftest::spellcheck_tree_c_tests.
8700 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
8701 * spellcheck-tree.c: Include selftest.h and stringpool.h.
8702 (selftest::test_find_closest_identifier): New function.
8703 (selftest::spellcheck_tree_c_tests): New function.
8704 * spellcheck.c (selftest::test_find_closest_string): Verify that
8705 the order of the vec does not affect the results for this case.
8706 (selftest::test_data): New array.
8707 (selftest::test_metric_conditions): New function.
8708 (selftest::spellcheck_c_tests): Add a test of case-comparison.
8709 Call selftest::test_metric_conditions.
8711 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8713 * config/rs6000/rs6000-builtin.def (commentary): Typo.
8714 (BU_P9_MISC_1): Likewise.
8715 (BU_P9_64BIT_MISC_0): Likewise.
8716 (BU_P9_MISC_0): Likewise.
8718 2016-06-14 David Malcolm <dmalcolm@redhat.com>
8720 * gcc-rich-location.c
8721 (gcc_rich_location::add_fixit_misspelled_id): New method.
8722 * gcc-rich-location.h
8723 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
8725 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
8727 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
8728 FreeBSD 11 and above.
8730 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
8732 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
8734 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8736 * expmed.h: Close parenthesis in "at your option" in copyright
8738 * lower-subreg.h: Likewise.
8740 2016-06-14 Richard Biener <rguenther@suse.de>
8743 * genmatch.c (expr::gen_transform): Use in_type for comparisons
8746 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8748 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
8750 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
8752 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
8754 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
8755 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
8757 2016-06-14 Richard Biener <rguenther@suse.de>
8759 PR tree-optimization/71522
8760 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
8761 copying into float copying.
8763 2016-06-14 Jakub Jelinek <jakub@redhat.com>
8765 PR tree-optimization/71520
8766 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
8767 (replace_block_by): Move user labels from bb1 to bb2.
8769 2016-06-14 Richard Biener <rguenther@suse.de>
8773 * expr.h (get_bit_range): Declare.
8774 * expr.c (get_bit_range): Export.
8775 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
8776 word_mode again to constrain the bitfield access.
8778 2016-06-14 Richard Biener <rguenther@suse.de>
8780 PR tree-optimization/71521
8781 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
8782 division int_const_binop against zero divisor.
8784 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
8786 * config/i386/i386.md (signbittf2): New expander.
8787 * config/i386/sse.md (ptesttf2): New insn pattern.
8789 2016-06-13 David Malcolm <dmalcolm@redhat.com>
8792 * input.c (selftest::test_reading_source_line): Avoid reading from
8793 __FILE__ by creating a tempfile with known content and reading
8796 2016-06-13 David Malcolm <dmalcolm@redhat.com>
8798 * pretty-print.c (assert_pp_format_colored): Skip the test if
8800 (test_pp_format): Remove comment about GCC_COLORS.
8802 2016-06-13 David Malcolm <dmalcolm@redhat.com>
8804 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
8805 * pretty-print.c (assert_pp_format_va): Add location param and use
8806 it with ASSERT_STREQ_AT.
8807 (assert_pp_format): Add location param and pass it to
8808 assert_pp_format_va.
8809 (assert_pp_format_colored): Likewise.
8810 (ASSERT_PP_FORMAT_1): New.
8811 (ASSERT_PP_FORMAT_2): New.
8812 (ASSERT_PP_FORMAT_3): New.
8813 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
8814 explicitly, or implicitly via the above macros.
8815 * selftest.c (selftest::pass): Use a selftest::location rather
8817 (selftest::fail): Likewise. Print the function name.
8818 (selftest::fail_formatted): Likewise.
8819 (selftest::assert_streq): Use a selftest::location rather than
8821 * selftest.h (selftest::location): New struct.
8822 (SELFTEST_LOCATION): New macro.
8823 (selftest::pass): Accept a const location & rather than file
8825 (selftest::fail): Likewise.
8826 (selftest::fail_formatted): Likewise.
8827 (selftest::assert_streq): Likewise.
8828 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
8829 (ASSERT_FALSE): Likewise.
8830 (ASSERT_EQ): Likewise.
8831 (ASSERT_NE): Likewise.
8832 (ASSERT_STREQ): Likewise.
8833 (ASSERT_PRED1): Likewise.
8834 (ASSERT_STREQ_AT): New macro.
8836 2016-06-13 David Malcolm <dmalcolm@redhat.com>
8838 * selftest.c (selftest::fail_formatted): New function.
8839 (selftest::assert_streq): New function.
8840 * selftest.h (selftests::fail_formatted): New decl.
8841 (selftest::assert_streq): New decl.
8842 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
8844 2016-06-13 Jeff Law <law@redhat.com>
8846 PR tree-optimization/71403
8847 * tree-ssa-threadbackward.c
8848 (convert_and_register_jump_thread_path): No longer accept reference
8849 to path. Do not pop items off the path anymore.
8850 (fsm_find_control_statement_thread_paths): Do not allow threading
8851 to a deeper loop nest. Pop the last item off the path here rather
8852 than in convert_and_register_jump_thread_path.
8854 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
8855 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
8857 [AArch64] Emit division using the Newton series
8859 * config/aarch64/aarch64-protos.h
8860 (cpu_approx_modes): Add new member "division".
8861 (aarch64_emit_approx_div): Declare new function.
8862 * config/aarch64/aarch64.c
8863 (generic_approx_modes): New member "division".
8864 (exynosm1_approx_modes): Likewise.
8865 (xgene1_approx_modes): Likewise.
8866 (aarch64_emit_approx_div): Define new function.
8867 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
8868 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
8869 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
8870 * doc/invoke.texi (-mlow-precision-div): Describe new option.
8872 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
8873 Wilco Dijkstra <wilco.dijkstra@arm.com>
8875 [AArch64] Emit square root using the Newton series
8877 * config/aarch64/aarch64-protos.h
8878 (aarch64_emit_approx_rsqrt): Replace with new function
8879 "aarch64_emit_approx_sqrt".
8880 (cpu_approx_modes): New member "sqrt".
8881 * config/aarch64/aarch64.c
8882 (generic_approx_modes): New member "sqrt".
8883 (exynosm1_approx_modes): Likewise.
8884 (xgene1_approx_modes): Likewise.
8885 (aarch64_emit_approx_rsqrt): Replace with new function
8886 "aarch64_emit_approx_sqrt".
8887 (aarch64_override_options_after_change_1): Handle new option.
8888 * config/aarch64/aarch64-simd.md
8889 (rsqrt<mode>2): Use new function instead.
8890 (sqrt<mode>2): New expansion and insn definitions.
8891 * config/aarch64/aarch64.md: Likewise.
8892 * config/aarch64/aarch64.opt
8893 (mlow-precision-sqrt): Add new option description.
8894 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
8896 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
8898 [AArch64] Add more choices for the reciprocal square root approximation
8900 Allow a target to prefer such operation depending on the operation mode.
8902 * config/aarch64/aarch64-protos.h
8903 (AARCH64_APPROX_MODE): New macro.
8904 (AARCH64_APPROX_{NONE,ALL}): Likewise.
8905 (cpu_approx_modes): New structure.
8906 (tune_params): New member "approx_modes".
8907 * config/aarch64/aarch64-tuning-flags.def
8908 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
8909 * config/aarch64/aarch64.c
8910 (generic_approx_modes): New core "cpu_approx_modes" structure.
8911 (exynosm1_approx_modes): Likewise.
8912 (xgene1_approx_modes): Likewise.
8913 (generic_tunings): New member "approx_modes".
8914 (cortexa35_tunings): Likewise.
8915 (cortexa53_tunings): Likewise.
8916 (cortexa57_tunings): Likewise.
8917 (cortexa72_tunings): Likewise.
8918 (exynosm1_tunings): Likewise.
8919 (thunderx_tunings): Likewise.
8920 (xgene1_tunings): Likewise.
8921 (use_rsqrt_p): New argument for the mode and use new member from
8923 (aarch64_builtin_reciprocal): Devise mode from builtin.
8924 (aarch64_optab_supported_p): New argument for the mode.
8925 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
8927 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
8929 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
8930 RS6000_BTM_MODULO flag into the set of flags that are considered
8931 to be part of the common configuration.
8933 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
8935 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
8936 difference unsigned.
8937 (vec_absdb): New macro for vector absolute difference unsigned
8939 (vec_absdh): New macro for vector absolute difference unsigned
8941 (vec_absdw): New macro for vector absolute difference unsigned word.
8942 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
8943 (vadu<mode>3): New insn.
8944 (*p9_vadu<mode>3): New insn.
8945 * config/rs6000/rs6000-builtin.def (vadub): New built-in
8947 (vaduh): New built-in definition.
8948 (vaduw): New built-in definition.
8949 (vadu): New overloaded built-in definition.
8950 (vadub): New overloaded built-in definition.
8951 (vaduh): New overloaded built-in definition.
8952 (vaduw): New overloaded built-in definition.
8953 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8954 overloaded vector absolute difference unsigned functions.
8955 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8956 the ISA 3.0 vector absolute difference unsigned built-in functions.
8958 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
8960 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
8961 update shared_lookup_references only once after changing operands.
8963 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
8966 * tree-nested.c (convert_nonlocal_omp_clauses)
8967 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
8969 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
8970 * tree.def (CASE_LABEL_EXPR): Likewise.
8972 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
8975 * input.c (test_builtins): Fix an assertion.
8977 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
8979 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
8982 (isinf<mode>2): Ditto.
8984 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
8986 * ggc-tests.c (test_finalization): Only test need_finalization_p
8987 for GCC_VERSION >= 4003.
8989 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8991 * config/s390/vecintrin.h: Fix file description in comment.
8993 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8995 * config/s390/s390-builtin-types.def: Change builtin type naming
8996 scheme to match builtin-types.def.
8998 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
9000 * fold-const.c (optimize_minmax_comparison): Remove.
9001 (fold_comparison): Remove call to the above.
9002 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9003 New transformations.
9005 2016-06-13 Alan Hayward <alan.hayward@arm.com>
9007 PR tree-optimization/71416
9008 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9011 2016-06-13 Martin Liska <mliska@suse.cz>
9013 * predict.c (enum predictor_reason): Prefix enum with REASON_.
9014 (combine_predictions_for_insn): Likewise.
9015 (prune_predictions_for_bb): Likewise.
9016 (combine_predictions_for_bb): Likewise.
9018 2016-06-13 Richard Biener <rguenther@suse.de>
9020 PR tree-optimization/71505
9021 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9022 assert match comment.
9024 2016-06-13 Marek Polacek <polacek@redhat.com>
9027 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9028 gimplify_switch_expr.
9029 (warn_switch_unreachable_r): New function.
9031 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9034 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9037 2016-06-13 Richard Biener <rguenther@suse.de>
9040 * fold-const.c (fold_unary_loc): Preserve alignment when
9041 folding a VIEW_CONVERT_EXPR into a MEM_REF.
9043 2016-06-13 Martin Liska <mliska@suse.cz>
9046 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9047 w/ -fsanitize=bounds.
9049 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
9051 * config/i386/i386.c (ix86_init_builtins): Calculate
9052 FLOAT128_FTYPE_CONST_STRING function type only once.
9053 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9054 built-in functions are available for x86-32 and x86-64 targets.
9056 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
9059 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9061 (FLOAT128_FTYPE_CONST_STRING): New function type.
9062 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9063 [IX86_BUILTIN_NANSQ]: Ditto.
9064 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9065 (ix86_init_builtin_types): Declare const_string_type_node.
9066 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9068 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9069 * doc/extend.texi (x86 Built-in Functions): Document
9070 __builtin_nanq and __builtin_nansq.
9072 2016-06-11 Jiong Wang <jiong.wang@arm.com>
9075 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9076 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9077 length for pop patterns.
9078 (arm_attr_length_push_multi): Update comments.
9079 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9081 (*pop_multiple_with_writeback_and_return): Likewise.
9082 (*pop_multiple_with_return): Likewise.
9084 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
9087 * fold-const.c (optimize_bit_field_compare): Don't try to use
9088 word_mode unconditionally for reading the bit field, look at
9089 DECL_BIT_FIELD_REPRESENTATIVE instead.
9091 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9094 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
9095 vector integer type.
9097 2016-06-10 Jakub Jelinek <jakub@redhat.com>
9100 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
9101 without LABEL_DECL, set *handled_ops_p to false instead of true.
9103 2016-06-10 Martin Sebor <msebor@redhat.com>
9106 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
9107 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
9108 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
9110 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
9111 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
9112 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
9113 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
9114 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
9115 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
9116 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
9117 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
9119 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9121 * config/arm/arm.h (pool_vector_label,
9122 return_used_this_function): Remove.
9124 2016-06-10 Jeff Law <law@redhat.com>
9126 PR tree-optimization/71335
9127 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
9128 zero length paths here.
9129 (convert_and_register_jump_thread_path): Remove hacks related to
9130 duplicated blocks in the jump thread path.
9131 (fsm_find_control_statement_thread_paths): Avoid putting the same
9132 block on the thread path twice, but ensure the thread path is
9133 unchanged from the caller's point of view.
9135 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
9137 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
9138 * predict.def (PRED_LOOP_BRANCH): Remove.
9140 2016-06-10 David Malcolm <dmalcolm@redhat.com>
9142 * Makefile.in (OBJS): Add ggc-tests.o.
9143 (GTFILES): Add ggc-tests.c.
9144 * ggc-tests.c: New file.
9145 * selftest-run-tests.c (selftest::run_tests): Call
9146 selftest::ggc_tests_c_tests.
9147 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
9149 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
9151 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
9153 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
9156 * varasm.c (place_block_symbol): Adjust alignment for asan protected
9157 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
9159 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
9161 * profile.c: Include cfgloop.h.
9162 (branch_prob): Compute estimated number of iterations.
9163 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
9164 recompute estimate number of iterations from profile.
9166 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
9169 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
9170 must be grouped on top of stack. Don't force early clobber
9171 on ordinary reg outputs.
9173 2016-06-10 Richard Biener <rguenther@suse.de>
9175 * targhooks.c (default_builtin_vectorization_cost): Adjust
9178 2016-06-10 Richard Biener <rguenther@suse.de>
9180 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
9181 to fold the RHS to a constant if possible.
9183 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
9186 * tree-nested.c (convert_nonlocal_omp_clauses)
9187 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
9188 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9189 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
9191 * gimplify.c (gimplify_adjust_omp_clauses): Discard
9193 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
9195 * omp-low.c (scan_sharing_clauses): Don't expect
9198 2016-06-10 Alan Hayward <alan.hayward@arm.com>
9200 PR tree-optimization/71407
9201 PR tree-optimization/71416
9202 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
9205 2016-06-10 Richard Biener <rguenther@suse.de>
9208 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
9210 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
9212 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
9214 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
9215 Jiong Wang <jiong.wang@arm.com>
9217 PR rtl-optimization/70751
9218 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
9219 spilled into memory.
9221 2016-06-09 Jonathan Yong <10walls@gmail.com>
9224 2015-09-21 Jonathan Yong <10walls@gmail.com>
9226 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9227 sysroot/usr/lib/32api for additional win32 libraries,
9228 fixes failing Cygwin bootstrapping.
9230 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
9232 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
9235 2016-06-09 David Malcolm <dmalcolm@redhat.com>
9238 * pretty-print.c (pp_indent): Specify that %p is printed in a
9239 host-dependent manner.
9240 (test_pp_format): Remove the test for %p.
9242 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
9244 * config/mips/mips.c (mips_output_jump): Fix formatting.
9246 2016-06-09 Richard Biener <rguenther@suse.de>
9248 PR tree-optimization/71462
9249 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
9252 2016-06-09 Martin Liska <mliska@suse.cz>
9254 * predict.c (dump_prediction): Add new argument.
9255 (enum predictor_reason): New enum.
9256 (struct predictor_hash): New struct.
9257 (predictor_hash::hash): New function.
9258 (predictor_hash::equal): Likewise.
9259 (not_removed_prediction_p): New function.
9260 (prune_predictions_for_bb): Likewise.
9261 (combine_predictions_for_bb): Prune predictions.
9263 2016-06-09 Martin Liska <mliska@suse.cz>
9265 * predict.c (filter_predictions): New function.
9266 (remove_predictions_associated_with_edge): Use the filter
9268 (equal_edge_p): New function.
9270 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
9272 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
9273 Correct usage of @samp vs @option, add @samp where appropriate.
9274 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
9275 Add armv6s-m and document it, as it is no official ARM name.
9277 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9279 * ifcvt.c (struct noce_if_info): Add transform_name field.
9280 (noce_try_move): Set if_info->transform_name to the function name.
9281 (noce_try_ifelse_collapse): Likewise.
9282 (noce_try_store_flag): Likewise.
9283 (noce_try_inverse_constants): Likewise.
9284 (noce_try_store_flag_constants): Likewise.
9285 (noce_try_addcc): Likewise.
9286 (noce_try_store_flag_mask): Likewise.
9287 (noce_try_cmove): Likewise.
9288 (noce_try_cmove_arith): Likewise.
9289 (noce_try_minmax): Likewise.
9290 (noce_try_abs): Likewise.
9291 (noce_try_sign_mask): Likewise.
9292 (noce_try_bitop): Likewise.
9293 (noce_convert_multiple_sets): Likewise.
9294 (noce_process_if_block): Print if_info->transform_name to
9295 dump_file if transformation succeeded.
9297 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9299 * config/arm/cortex-a57.md (cortex_a57_alu):
9302 2016-06-08 Martin Sebor <msebor@redhat.com>
9303 Jakub Jelinek <jakub@redhat.com>
9307 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
9308 BUILT_IN_MUL_OVERFLOW_P): New builtins.
9309 * builtins.c: Include gimple-fold.h.
9310 (fold_builtin_arith_overflow): Handle
9311 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
9312 (fold_builtin_3): Likewise.
9313 * doc/extend.texi (Integer Overflow Builtins): Document
9314 __builtin_{add,sub,mul}_overflow_p.
9316 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
9318 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
9319 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
9321 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
9323 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
9324 Rewrite, looking one level down for records and arrays.
9326 2016-06-08 David Malcolm <dmalcolm@redhat.com>
9328 * pretty-print.c: Include "selftest.h".
9329 (pp_format): Fix comment.
9330 (identifier_to_locale): Likewise.
9331 (selftest::test_basic_printing): New function.
9332 (selftest::assert_pp_format): New function.
9333 (selftest::test_pp_format): New function.
9334 (selftest::pretty_print_c_tests): New function.
9335 * selftest-run-tests.c (selftest::run_tests): Call
9336 selftest::pretty_print_c_tests.
9337 * selftest.h (pretty_print_c_tests): New declaration.
9339 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9341 * invoke.texi (max-loop-headers-insns): Document.
9342 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
9343 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
9344 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
9346 2016-06-08 Richard Biener <rguenther@suse.de>
9348 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
9349 on strided SLP loads and fall back to scalar loads in case
9350 we can't chunk them.
9352 2016-06-08 Richard Biener <rguenther@suse.de>
9354 PR tree-optimization/71452
9355 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
9356 type used for the SSA rewrite has enough precision to cover
9357 the dynamic type of the location.
9359 2016-06-08 Jakub Jelinek <jakub@redhat.com>
9360 Richard Biener <rguenther@suse.de>
9363 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
9364 the same as DECL_P (base0) for indirect_base0. Use equality_code
9365 in one further place.
9367 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
9369 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
9370 to one word if the field is known to overlap other words.
9371 (extract_bit_field_1): Likewise.
9372 (store_split_bit_field): Remove compensating code.
9373 (extract_split_bit_field): Likewise.
9375 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
9379 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
9381 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9383 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
9385 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
9386 (arch64_addpv4sf): Delete.
9387 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
9388 "gen_aarch64_addpv4sf".
9389 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
9391 (vpadds_f32): Likewise.
9392 (vpaddq_f32): Likewise.
9393 (vpaddq_f64): Likewise.
9395 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9397 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
9399 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
9400 to VALLF. Rename to "fabd<mode>3".
9401 "*fabd_scalar<mode>3): Delete.
9402 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
9404 (vabdd_f64): Likewise.
9405 (vabd_f32): Likewise.
9406 (vabd_f64): Likewise.
9407 (vabdq_f32): Likewise.
9408 (vabdq_f64): Likewise.
9410 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9412 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
9414 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
9415 "aarch64_rsqrts<mode>".
9416 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
9417 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
9419 (vrsqrtsd_f64): Likewise.
9420 (vrsqrts_f32): Likewise.
9421 (vrsqrts_f64): Likewise.
9422 (vrsqrtsq_f32): Likewise.
9423 (vrsqrtsq_f64): Likewise.
9425 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9427 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
9429 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
9430 "aarch64_rsqrte<mode>".
9431 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
9432 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
9434 (vrsqrted_f64): Likewise.
9435 (vrsqrte_f32): Likewise.
9436 (vrsqrte_f64): Likewise.
9437 (vrsqrteq_f32): Likewise.
9438 (vrsqrteq_f64): Likewise.
9440 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9442 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
9446 * config/aarch64/aarch64-simd.md
9447 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
9448 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
9449 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
9451 (vcvt_n_f32_u32): Likewise.
9452 (vcvt_n_s32_f32): Likewise.
9453 (vcvt_n_u32_f32): Likewise.
9454 (vcvtq_n_f32_s32): Likewise.
9455 (vcvtq_n_f32_u32): Likewise.
9456 (vcvtq_n_f64_s64): Likewise.
9457 (vcvtq_n_f64_u64): Likewise.
9458 (vcvtq_n_s32_f32): Likewise.
9459 (vcvtq_n_s64_f64): Likewise.
9460 (vcvtq_n_u32_f32): Likewise.
9461 (vcvtq_n_u64_f64): Likewise.
9462 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
9463 (VSDQ_SDI): Likewise.
9464 (fcvt_target): Support V4DI, V4SI and V2SI.
9465 (FCVT_TARGET): Likewise.
9467 2016-06-08 Jiong Wang <jiong.wang@arm.com>
9469 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
9470 (TYPES_BINOP_SUS): Likewise.
9471 (aarch64_simd_builtin_data): Update include file name.
9472 (aarch64_builtins): Likewise.
9473 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
9474 for conversion between scalar float-point and fixed-point.
9478 * config/aarch64/aarch64.md
9479 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
9480 pattern for conversion between scalar float to fixed-pointer.
9481 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
9482 (UNSPEC_FCVTZS): New UNSPEC enumeration.
9483 (UNSPEC_FCVTZU): Likewise.
9484 (UNSPEC_SCVTF): Likewise.
9485 (UNSPEC_UCVTF): Likewise.
9486 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
9488 (vcvtd_n_f64_u64): Likewise.
9489 (vcvtd_n_s64_f64): Likewise.
9490 (vcvtd_n_u64_f64): Likewise.
9491 (vcvtd_n_f32_s32): Likewise.
9492 (vcvts_n_f32_u32): Likewise.
9493 (vcvtd_n_s32_f32): Likewise.
9494 (vcvts_n_u32_f32): Likewise.
9495 * config/aarch64/iterators.md (fcvt_target): Support integer to float
9497 (FCVT_TARGET): Likewise.
9498 (FCVT_FIXED2F): New iterator.
9499 (FCVT_F2FIXED): Likewise.
9500 (fcvt_fixed_insn): New define_int_attr.
9502 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9504 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
9505 some statements was removed.
9507 2016-06-08 Alan Hayward <alan.hayward@arm.com>
9509 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
9510 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
9511 (vect_can_advance_ivs_p): likewise.
9512 (vect_update_ivs_after_vectorizer): likewise.
9513 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
9514 (vect_analyze_scalar_cycles_1): likewise.
9515 (vect_analyze_loop_operations): likewise.
9516 (report_vect_op): likewise.
9517 (vect_is_slp_reduction): likewise.
9518 (vect_is_simple_reduction): likewise.
9519 (get_initial_def_for_induction): likewise.
9520 (vect_transform_loop): likewise.
9521 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
9522 (vect_recog_sad_pattern): likewise.
9523 (vect_recog_widen_sum_pattern): likewise.
9524 (vect_recog_widening_pattern): likewise.
9525 (vect_recog_divmod_pattern): likewise.
9526 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
9527 (vect_analyze_slp_instance): likewise.
9528 (vect_transform_slp_perm_load): likewise.
9529 (vect_schedule_slp_instance): likewise.
9531 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9533 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
9534 (return_prediction): PRED_CONST_RETURN predict return as not taken.
9535 * predict.def (PRED_CONTINUE): Change hitrate 50->67
9536 (PRED_LOOP_BRANCH): Document predictor as broken.
9537 (PRED_LOOP_EXIT): Change hitrate 91->92.
9538 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
9539 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
9540 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
9541 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
9542 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
9543 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
9544 (PRED_CALL): Chane hitrate 71->67.
9545 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
9546 (PRED_GOTO): Document as unused right now.
9547 (PRED_CONST_RETURN): Change hitrate 67->69
9548 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
9549 (PRED_NULL_RETURN): Change hitrate 91->90.
9550 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
9551 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
9552 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
9554 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
9556 * config/rs6000/altivec.h: Add __builtin_vec_mul.
9557 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
9558 special case Altivec builtin.
9559 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9560 VSX_BUILTIN_VEC_MUL (replaced with special case code).
9561 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9562 code for ALTIVEC_BUILTIN_VEC_MUL.
9563 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9564 for __builtin_vec_mul.
9566 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
9568 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
9571 2016-06-07 David Malcolm <dmalcolm@redhat.com>
9573 * spellcheck.c (selftest::test_find_closest_string): New function.
9574 (spellcheck_c_tests): Call the above.
9576 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9578 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
9580 2016-06-07 Jakub Jelinek <jakub@redhat.com>
9582 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
9583 Yv=Yv,C alternatives.
9585 2016-06-07 Richard Biener <rguenther@suse.de>
9588 * common.opt (ffast-math): Make Optimization.
9590 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
9591 Prachi Godbole <prachi.godbole@imgtec.com>
9593 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
9594 `fabs' and `fneg' type attributes.
9595 (p5600_fpu_fabs): Add `fmove' to the comment.
9597 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
9599 * gimple.c: Include builtins.h
9600 (gimple_inexpensive_call_p): New function.
9601 * gimple.h (gimple_inexpensive_call_p): Declare.
9602 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
9603 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
9606 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
9608 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
9609 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
9610 warning_at_rich_loc, warning_n, pedwarn, permerror,
9611 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
9612 sorry, fatal_error, internal_error, internal_error_no_backtrace):
9615 2016-06-07 Richard Biener <rguenther@suse.de>
9617 PR tree-optimization/71428
9618 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
9619 BIT_FIELD_REF op vs. load.
9621 2016-06-07 Richard Biener <rguenther@suse.de>
9624 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
9627 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
9629 * config/pa/pa.md (call): Generate indirect long calls to non-local
9630 functions on TARGET_64BIT.
9631 (call_value): Likewise.
9633 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
9635 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
9636 pattern and subsequent splitters.
9637 (call_val_reg_64bit_post_reload): Likewise.
9639 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9642 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
9643 propagate_op_to_single_use.
9645 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
9648 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
9650 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
9652 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
9653 (enum x86_dirflag_state): New enum.
9654 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
9655 (machine_function): Remove needs_cld.
9656 (ix86_current_function_needs_cld): Remove.
9657 * config/i386/i386.c (ix86_set_func_type): Set
9658 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
9659 (ix86_expand_prologue): Do not emit CLD here.
9660 (ix86_dirflag_mode_needed): New function.
9661 (ix86_dirflag_mode_entry): Ditto.
9662 (ix86_mode_needed): Handle X86_DIRFLAG entity.
9663 (ix86_mode_after): Ditto.
9664 (ix86_mode_entry): Ditto.
9665 (ix86_mode_exit): Ditto.
9666 (ix86_emit_mode_set): Ditto.
9667 * config/i386/i386.md (strmov_singleop): Set
9668 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
9669 Do not set ix86_current_function_needs_cld.
9671 (strset_singleop): Ditto.
9673 (cmpstrnqi_nz_1): Ditto.
9674 (cmpstrnqi_1): Ditto.
9675 (strlenqi_1): Ditto.
9677 2016-06-06 Jakub Jelinek <jakub@redhat.com>
9679 PR tree-optimization/71259
9680 * tree-vect-slp.c (vect_get_constant_vectors): For
9681 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
9682 one for constant op, and use COND_EXPR for non-constant.
9684 2016-06-06 David Malcolm <dmalcolm@redhat.com>
9686 * Makefile.in (OBJS): Add function-tests.o,
9687 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
9688 selftest-run-tests.o.
9689 (OBJS-libcommon): Add selftest.o.
9690 (OBJS-libcommon-target): Add selftest.o.
9691 (all.internal): Add "selftest".
9692 (all.cross): Likewise.
9693 (selftest): New phony target.
9694 (s-selftest): New target.
9695 (selftest-gdb): New phony target.
9696 (COLLECT2_OBJS): Add selftest.o.
9697 * bitmap.c: Include "selftest.h".
9698 (selftest::test_gc_alloc): New function.
9699 (selftest::test_set_range): New function.
9700 (selftest::test_clear_bit_in_middle): New function.
9701 (selftest::test_copying): New function.
9702 (selftest::test_bitmap_single_bit_set_p): New function.
9703 (selftest::bitmap_c_tests): New function.
9704 * common.opt (fself-test): New.
9705 * diagnostic-show-locus.c: Include "selftest.h".
9706 (make_range): New function.
9707 (test_range_contains_point_for_single_point): New function.
9708 (test_range_contains_point_for_single_line): New function.
9709 (test_range_contains_point_for_multiple_lines): New function.
9710 (assert_eq): New function.
9711 (test_get_line_width_without_trailing_whitespace): New function.
9712 (selftest::diagnostic_show_locus_c_tests): New function.
9713 * et-forest.c: Include "selftest.h".
9714 (selftest::test_single_node): New function.
9715 (selftest::test_simple_tree): New function.
9716 (selftest::test_disconnected_nodes): New function.
9717 (selftest::et_forest_c_tests): New function.
9718 * fold-const.c: Include "selftest.h".
9719 (selftest::assert_binop_folds_to_const): New function.
9720 (selftest::assert_binop_folds_to_nonlvalue): New function.
9721 (selftest::test_arithmetic_folding): New function.
9722 (selftest::fold_const_c_tests): New function.
9723 * function-tests.c: New file.
9724 * gimple.c: Include "selftest.h".
9725 Include "gimple-pretty-print.h".
9726 (selftest::verify_gimple_pp): New function.
9727 (selftest::test_assign_single): New function.
9728 (selftest::test_assign_binop): New function.
9729 (selftest::test_nop_stmt): New function.
9730 (selftest::test_return_stmt): New function.
9731 (selftest::test_return_without_value): New function.
9732 (selftest::gimple_c_tests): New function.
9733 * hash-map-tests.c: New file.
9734 * hash-set-tests.c: New file.
9735 * input.c: Include "selftest.h".
9736 (selftest::assert_loceq): New function.
9737 (selftest::test_accessing_ordinary_linemaps): New function.
9738 (selftest::test_unknown_location): New function.
9739 (selftest::test_builtins): New function.
9740 (selftest::test_reading_source_line): New function.
9741 (selftest::input_c_tests): New function.
9742 * rtl-tests.c: New file.
9743 * selftest-run-tests.c: New file.
9744 * selftest.c: New file.
9745 * selftest.h: New file.
9746 * spellcheck.c: Include "selftest.h".
9747 (selftest::levenshtein_distance_unit_test_oneway): New function,
9748 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
9749 (selftest::levenshtein_distance_unit_test): Likewise.
9750 (selftest::spellcheck_c_tests): Likewise.
9751 * toplev.c: Include selftest.h.
9752 (toplev::run_self_tests): New.
9753 (toplev::main): Handle -fself-test.
9754 * toplev.h (toplev::run_self_tests): New.
9755 * tree.c: Include "selftest.h".
9756 (selftest::test_integer_constants): New function.
9757 (selftest::test_identifiers): New function.
9758 (selftest::test_labels): New function.
9759 (selftest::tree_c_tests): New function.
9760 * tree-cfg.c: Include "selftest.h".
9761 (selftest::push_fndecl): New function.
9762 (selftest::test_linear_chain): New function.
9763 (selftest::test_diamond): New function.
9764 (selftest::test_fully_connected): New function.
9765 (selftest::tree_cfg_c_tests): New function.
9766 * vec.c: Include "selftest.h".
9767 (selftest::safe_push_range): New function.
9768 (selftest::test_quick_push): New function.
9769 (selftest::test_safe_push): New function.
9770 (selftest::test_truncate): New function.
9771 (selftest::test_safe_grow_cleared): New function.
9772 (selftest::test_pop): New function.
9773 (selftest::test_safe_insert): New function.
9774 (selftest::test_ordered_remove): New function.
9775 (selftest::test_unordered_remove): New function.
9776 (selftest::test_block_remove): New function.
9777 (selftest::reverse_cmp): New function.
9778 (selftest::test_qsort): New function.
9779 (selftest::vec_c_tests): New function.c.
9780 * wide-int.cc: Include selftest.h and wide-int-print.h.
9781 (selftest::from_int <wide_int>): New function.
9782 (selftest::from_int <offset_int>): New function.
9783 (selftest::from_int <widest_int>): New function.
9784 (selftest::assert_deceq): New function.
9785 (selftest::assert_hexeq): New function.
9786 (selftest::test_printing <VALUE_TYPE>): New function template.
9787 (selftest::test_ops <VALUE_TYPE>): New function template.
9788 (selftest::test_comparisons <VALUE_TYPE>): New function template.
9789 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
9791 (selftest::wide_int_cc_tests): New function.
9793 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9796 * ifcvt.c (noce_try_ifelse_collapse): New function.
9798 (noce_process_if_block): Call noce_try_ifelse_collapse.
9799 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
9800 (simplify_ternary_operation): Use the above to simplify
9801 conditional CLZ/CTZ expressions.
9803 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9806 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
9807 define_insn_and_split.
9809 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9812 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
9814 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
9817 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
9818 Implicitly clobber memory for basic asm with non-empty assembler
9819 string. Use targetm.md_asm_adjust also here.
9820 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
9821 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
9822 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
9823 non-empty assembler string.
9824 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
9825 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
9826 (decode_asm_operands): Handle basic asm in PARALLEL block.
9827 (extract_insn): Handle basic asm in PARALLEL block.
9828 * doc/extend.texi: Mention new behavior of basic asm.
9829 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
9830 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
9831 branch_needs_nop_p): Use asm_noperands.
9833 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
9835 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
9836 Include the M7 SPARC DFA scheduler.
9837 New attribute v3pipe.
9838 Annotate insns with v3pipe where appropriate.
9839 Define cpu_feature vis4.
9840 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
9841 Add (V8QI "8") to vbits.
9842 Add insns {add,sub}v8qi3
9843 Add insns ss{add,sub}v8qi3
9844 Add insns us{add,sub}{v8qi,v4hi}3
9845 Add insns {min,max}{v8qi,v4hi,v2si}3
9846 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
9847 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
9848 * config/sparc/niagara4.md: Add a comment explaining the
9849 discrepancy between the documented latenty numbers and the
9851 * config/sparc/niagara7.md: New file.
9852 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
9853 supports SPARC5 and VIS 4.0 instructions.
9854 * configure: Regenerate.
9855 * config.in: Likewise.
9856 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
9857 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
9858 TARGET_CPU_niagara7.
9859 (ASM_CPU64_DEFAULT_SPEC): Likewise.
9860 (CPP_CPU_SPEC): Handle niagara7.
9861 (ASM_CPU_SPEC): Likewise.
9862 * config/sparc/sparc-opts.h (processor_type): Add
9864 (mvis4): New option.
9865 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
9866 (AS_NIAGARA7_FLAG): Define.
9867 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
9868 (CPP_CPU64_DEFAULT_SPEC): Likewise.
9869 (CPP_CPU_SPEC): Handle niagara7.
9870 (ASM_CPU_SPEC): Likewise.
9871 * config/sparc/sparc.c (niagara7_costs): Define.
9872 (sparc_option_override): Handle niagara7 and adjust cache-related
9873 parameters with better values for niagara cpus. Also support VIS4.
9874 (sparc32_initialize_trampoline): Likewise.
9875 (sparc_use_sched_lookahead): Likewise.
9876 (sparc_issue_rate): Likewise.
9877 (sparc_register_move_cost): Likewise.
9878 (dump_target_flag_bits): Support VIS4.
9879 (sparc_vis_init_builtins): Likewise.
9880 (sparc_builtins): Likewise.
9881 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
9883 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
9885 * config/sparc/sparc.opt (sparc_processor_type): New value
9887 * config/sparc/visintrin.h (__attribute__): Prototypes for the
9889 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
9891 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
9894 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
9896 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
9898 2016-06-06 Richard Biener <rguenther@suse.de>
9900 PR tree-optimization/71398
9901 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
9904 2016-06-05 James Bowman <james.bowman@ftdichip.com>
9906 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
9907 ft32_expand_prolog, ft32_expand_epilogue):
9908 Handle pretend_args.
9909 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
9910 * config/ft32/ft32.md: Add pretend_returner.
9912 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
9915 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
9916 Copy op1 RTX to avoid invalid sharing.
9917 (ix86_expand_vector_move_misalign): Ditto.
9919 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
9921 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
9924 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
9926 * predict.c (predicted_by_loop_heuristics_p): New function.
9927 (predict_iv_comparison): Use it.
9928 (predict_loops): Walk from innermost loops; do not predict edges
9929 leaving multiple loops multiple times; implement
9930 PRED_LOOP_ITERATIONS_MAX heuristics.
9931 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
9933 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
9935 * cfg.c (check_bb_profile): Do not report mismatched profiles when
9936 only edges out of BB are EH edges.
9938 2016-06-04 Martin Sebor <msebor@redhat.com>
9939 Marcin Baczyński <marbacz@gmail.com>
9942 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
9943 a void expression in a void function.
9945 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
9947 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
9948 aux; dump reasons of decisions.
9949 (should_duplicate_loop_header_p): Likewise.
9950 (do_while_loop_p): Likewise.
9951 (ch_base::copy_headers): Dump asi num insns duplicated.
9953 2016-06-04 Jakub Jelinek <jakub@redhat.com>
9955 PR tree-optimization/71405
9956 * tree-ssa.c (execute_update_addresses_taken): For clobber with
9957 incompatible type, build a new clobber with the right type instead
9958 of building a VIEW_CONVERT_EXPR around it.
9960 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
9962 PR tree-optimization/52171
9963 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
9964 by_pieces_ninsns instead of move_by_pieces_ninsns.
9966 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
9968 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
9969 for reg+reg addressing mode.
9971 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9973 * rs6000-c.c (c/c-tree.h): Add #include.
9974 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
9975 in C++ when found in the base position of vec_ld or vec_st.
9977 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
9979 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
9980 use of profile unless profile status is PROFILE_READ.
9981 * profile.c (compute_branch_probabilities): Set profile status
9982 only after reporting predictor hitrates.
9984 2016-06-03 Joseph Myers <joseph@codesourcery.com>
9988 * common.opt (ffp-int-builtin-inexact): New option.
9989 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
9990 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
9991 (ceil@var{m}2): Document dependence on this option.
9992 * ipa-inline-transform.c (inline_call): Handle
9993 flag_fp_int_builtin_inexact.
9994 * ipa-inline.c (can_inline_edge_p): Likewise.
9995 * config/i386/i386.md (rintxf2): Do not test
9996 flag_unsafe_math_optimizations.
9997 (rint<mode>2_frndint): New define_insn.
9998 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
9999 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
10000 for 387 instead of extending and truncating.
10001 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10002 !flag_trapping_math instead of flag_unsafe_math_optimizations.
10003 Change to frndint<mode>2_<rounding>.
10004 (frndintxf2_<rounding>_i387): Likewise. Change to
10005 frndint<mode>2_<rounding>_i387.
10006 (<rounding_insn>xf2): Likewise.
10007 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10008 !flag_trapping_math instead of flag_unsafe_math_optimizations for
10009 x87. Test TARGET_ROUND || !flag_trapping_math ||
10010 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10011 SSE. Use ROUND_NO_EXC in constant operand of
10012 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
10013 for 387 instead of extending and truncating.
10015 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
10016 Julia Koval <julia.koval@intel.com>
10028 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10029 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10030 all registers, except for function return registers if there are
10031 no caller-saved registers.
10032 (ix86_set_func_type): New function.
10033 (ix86_set_current_function): Call ix86_set_func_type to set
10034 no_caller_saved_registers and func_type. Call reinit_regs if
10035 caller-saved registers are changed. Don't allow MPX, SSE, MMX
10036 nor x87 instructions in interrupt handler nor function with
10037 no_caller_saved_registers attribute.
10038 (ix86_function_ok_for_sibcall): Return false if there are no
10039 caller-saved registers.
10040 (type_natural_mode): Don't warn ABI change for MMX in interrupt
10042 (ix86_function_arg_advance): Skip for callee in interrupt handler.
10043 (ix86_function_arg): Return special arguments in interrupt handler.
10044 (ix86_promote_function_mode): Promote pointer to word_mode only
10045 for normal functions.
10046 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10048 (ix86_epilogue_uses): New function.
10049 (ix86_hard_regno_scratch_ok): Likewise.
10050 (ix86_save_reg): Preserve all registers in interrupt handler
10051 after reload. Preserve all registers, except for function return
10052 registers, if there are no caller-saved registers after reload.
10053 (find_drap_reg): Always use callee-saved register if there are
10054 no caller-saved registers.
10055 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10056 for interrupt handler.
10057 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10058 Emit cld instruction if stringops are used in interrupt handler
10059 or interrupt handler isn't a leaf function.
10060 (ix86_expand_epilogue): Generate interrupt return for interrupt
10061 handler and pop the 'ERROR_CODE' off the stack before interrupt
10062 return in exception handler.
10063 (ix86_expand_call): Disallow calling interrupt handler directly.
10064 If there are no caller-saved registers, mark all registers that
10065 are clobbered by the call which returns as clobbered.
10066 (ix86_handle_no_caller_saved_registers_attribute): New function.
10067 (ix86_handle_interrupt_attribute): Likewise.
10068 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10070 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10071 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10072 accumulation in interrupt function if stack may be realigned to
10074 (EPILOGUE_USES): New.
10075 (function_type): New enum.
10076 (machine_function): Add func_type and no_caller_saved_registers.
10077 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10078 (interrupt_return): New pattern.
10079 * doc/extend.texi: Document x86 interrupt and
10080 no_caller_saved_registers attributes.
10082 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
10084 PR tree-optimization/52171
10085 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10086 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
10087 Look for constant strings. Move some code to emit_block_cmp_hints
10089 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10090 * defaults.h (COMPARE_MAX_PIECES): New macro.
10091 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10092 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10093 (clear_by_pieces_1): Don't declare. Move definition before use.
10094 (can_do_by_pieces): New static function.
10095 (can_move_by_pieces): Use it. Return bool.
10096 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
10097 OP. All callers changed. Handle COMPARE_BY_PIECES.
10098 (class pieces_addr); New.
10099 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
10100 pieces_addr::adjust, pieces_addr::increment_address,
10101 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
10103 (class op_by_pieces_d): New.
10104 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
10106 (class move_by_pieces_d, class compare_by_pieces_d,
10107 class store_by_pieces_d): New subclasses of op_by_pieces_d.
10108 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
10109 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
10110 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
10111 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
10112 compare_by_pieces_d::finish_mode): New member functions.
10113 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
10115 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
10116 (emit_block_cmp_hints): New function.
10117 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
10118 use the newly defined classes.
10119 * expr.h (by_pieces_constfn): New typedef.
10120 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
10121 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
10122 (move_by_pieces_ninsns): Don't declare.
10123 (can_move_by_pieces): Change return value to bool.
10124 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
10125 (compare_by_pieces_branch_ratio): New hook.
10126 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
10127 (by_pieces_ninsns): Declare.
10128 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
10130 (default_compare_by_pieces_branch_ratio): New function.
10131 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
10132 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
10133 * doc/tm.texi: Regenerate.
10134 * tree-ssa-strlen.c: Include "builtins.h".
10135 (handle_builtin_memcmp): New static function.
10136 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
10137 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
10139 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10141 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
10142 relevant stmts which are simple and invariant.
10143 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
10144 instead of simple and invariant
10146 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10148 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
10149 (vectorizable_reduction): Check for new relevant state.
10150 (vectorizable_live_operation): vectorize live stmts using
10151 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
10152 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
10153 (vect_stmt_relevant_p): Check for stmts which are only used live.
10154 (process_use): Use of a stmt does not inherit it's live value.
10155 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
10156 (vect_analyze_stmt): Check for new relevant state.
10157 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
10158 outside the loop, but not inside it.
10160 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10162 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
10163 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
10164 (vect_get_vec_def_for_operand): Split out code.
10166 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10168 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
10170 2016-06-03 Alan Hayward <alan.hayward@arm.com>
10172 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
10174 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10176 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
10178 2016-06-03 Jakub Jelinek <jakub@redhat.com>
10180 PR middle-end/71387
10181 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
10182 to noreturn e->callee->decl that has void return type and void
10183 arguments, adjust gimple_call_fntype and remove lhs even if it had
10184 previously addressable type.
10186 2016-06-02 Jeff Law <law@redhat.com>
10188 PR tree-optimization/71328
10189 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
10190 error when checking for a jump back onto the copied path.
10192 2016-06-02 David Malcolm <dmalcolm@redhat.com>
10194 * config/microblaze/microblaze.c (get_branch_target): Add return
10195 NULL_RTX for the non-CALL_P case.
10196 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
10197 (insert_wic): Remove unused local "j".
10199 2016-06-02 Martin Liska <mliska@suse.cz>
10201 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
10203 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
10204 Julia Koval <julia.koval@intel.com>
10206 * function.c (assign_parm_setup_stack): Force source into a
10207 register if needed.
10208 * target.def (function_incoming_arg): Update documentation to
10209 allow arbitrary address computation based on hard register.
10210 * doc/tm.texi: Regenerated.
10212 2016-06-02 Martin Liska <mliska@suse.cz>
10214 * predict.c (combine_predictions_for_bb): Fix first match in
10215 cases where a first predictor contains more than one occurence
10216 in list of predictors. Take the best value in such case.
10218 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10220 PR rtl-optimization/71295
10221 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
10222 offset would go over the size of the inner mode reject it.
10224 2016-06-02 Jakub Jelinek <jakub@redhat.com>
10226 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
10227 x=x,x and v=v,m instead of x=x,m.
10229 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
10230 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
10231 alternative to v=rm,C.
10233 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
10234 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
10235 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
10236 instead of vex for the last two above mentioned alternatives.
10238 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10241 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
10243 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
10245 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
10247 2016-06-01 David Malcolm <dmalcolm@redhat.com>
10249 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
10250 from int to unsigned.
10252 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
10254 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
10255 alternatives, eliminating preferred register class. Add support
10256 for the MTVSRDD instruction in ISA 3.0.
10257 (vsx_splat_v4si_internal): Use splat_input_operand instead of
10258 reg_or_indexed_operand.
10259 (vsx_splat_v4sf_internal): Likewise.
10261 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
10264 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
10265 for loading up all 0's or all 1's.
10267 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
10269 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
10271 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
10273 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
10275 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
10276 * gcc.c (set_source_date_epoch_envvar): New function, sets
10277 the SOURCE_DATE_EPOCH environment variable to the current time.
10279 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
10281 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
10282 the factor for live Phi nodes.
10284 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
10286 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
10287 * tree-parloops.c (parallelize_loops): likewise.
10288 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
10289 tree_unswitch_outer_loop): likewise.
10291 2016-06-01 Jakub Jelinek <jakub@redhat.com>
10293 PR middle-end/71371
10294 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
10295 around creation of the temporary.
10297 2016-06-01 Richard Biener <rguenther@suse.de>
10299 PR tree-optimization/71366
10300 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
10301 (unloop_loops): Move removing edges here ...
10302 (try_unroll_loop_completely): ... from here.
10303 (try_peel_loop): ... and here.
10304 (tree_unroll_loops_completely_1): Track parent loops via
10305 bitmap of header BBs.
10306 (tree_unroll_loops_completely): Adjust for that.
10308 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
10310 * config/rs6000/altivec.h (vec_slv): New macro.
10311 (vec_srv): New macro.
10312 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
10313 (UNSPEC_VSRV): New value.
10316 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
10317 (vsrv): New builtin definition.
10318 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
10319 define argument types for new builtin.
10320 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
10322 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
10325 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
10326 Jocelyn Mayer <l_indien@magic.fr>
10329 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
10330 detect processor family for signature_CENTAUR_ebx.
10331 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
10332 signature_CENTAUR_ebx.
10333 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
10334 <default>: Pass x86-64 for has_longmode.
10336 2016-06-01 Nathan Sidwell <nathan@acm.org>
10338 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
10341 2016-06-01 Richard Biener <rguenther@suse.de>
10343 PR tree-optimization/71261
10344 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
10345 of stmts successfully put in the bool pattern. Remove
10346 single-use restriction.
10347 (adjust_bool_pattern_cast): Add cast at the use site via the
10348 pattern def sequence.
10349 (adjust_bool_pattern): Remove recursion, maintain a hash-map
10350 of patterned defs. Use the pattern def seqence instead of
10351 multiple independent patterns.
10352 (sort_after_uid): New qsort compare function.
10353 (adjust_bool_stmts): New function to process stmts in the bool
10354 pattern in IL order.
10355 (vect_recog_bool_pattern): Adjust.
10356 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
10357 (ifcvt_walk_pattern_tree): Likewise.
10358 (stmt_is_root_of_bool_pattern): Likewise.
10359 (ifcvt_repair_bool_pattern): Likewise.
10360 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
10362 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
10364 * loop-unroll.c (decide_unroll_constant_iterations,
10365 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
10366 likely upper bounds.
10367 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
10369 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
10371 * tree-core.h (enum omp_clause_code): Remove
10372 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
10374 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10376 * config/arm/sync.md (arm_store_exclusive<mode>):
10377 Use 'H' output modifier on operands[2] rather than creating a new
10378 entry in out-of-bounds memory of the operands array.
10379 (arm_store_release_exclusivedi): Likewise.
10381 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10383 * config/arm/arm.c (arm_fusion_enabled_p): New function.
10384 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
10385 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
10386 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
10388 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
10390 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
10391 into account live statements for mask producers.
10393 2016-06-01 Richard Biener <rguenther@suse.de>
10395 PR tree-optimization/71311
10396 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
10397 restrict to non-INTEGER_CST @0.
10399 2016-06-01 Richard Biener <rguenther@suse.de>
10401 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
10402 (relational patterns): Use :c to avoid pattern duplications.
10404 2016-06-01 Richard Biener <rguenther@suse.de>
10406 * genmatch.c (comparison_code_p): New predicate.
10407 (swap_tree_comparison): New function.
10408 (commutate): Add for_vec parameter to append new for entries.
10409 Support commutating relational operators by swapping it alongside
10411 (lower_commutative): Adjust.
10412 (dt_simplify::gen): Do not pass artificial operators to gen
10414 (decision_tree::gen): Do not add artificial operators as parameters.
10415 (parser::parse_expr): Verify operator commutativity when :c is
10416 applied. Allow :C to override this.
10417 * match.pd: Adjust patterns to use :C instead of :c where required.
10419 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
10421 PR tree-optimization/71077
10422 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
10423 the combining step, use boolean_false_node and boolean_true_node
10424 as the designated false/true return values.
10426 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
10428 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
10429 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
10430 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
10433 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
10435 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
10436 of flags impliying the register renaming.
10437 * toplev.c (process_options): Do not imply flag_rename_registers with
10440 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10442 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
10443 default implementation.
10445 2016-05-31 Nathan Sidwell <nathan@acm.org>
10447 * dwarf2out.c (cur_line_info_table): Add GTY marker.
10449 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10451 * config/sh/constraints.md (b): Remove constraint.
10452 * config/sh/predicates.md (arith_reg_operand): Remove
10454 * config/sh/sh-modes.def (PDI): Remove.
10455 * config/sh/sh.c (sh_target_reg_class,
10456 sh_optimize_target_register_callee_saved): Remove functions.
10457 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
10458 (sh_expand_epilogue): Update comment.
10459 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
10460 sh_secondary_reload): Remove TARGET_REGS related code.
10461 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
10462 TARGET_REGISTER_P): Remove macros.
10463 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
10464 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
10465 TR1_REG, TR2_REG): Remove constants.
10466 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
10468 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10470 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
10471 define_expand patterns.
10472 (adddi3_compact): Rename to adddi3.
10473 (subdi3_compact): Rename to subdi3.
10474 (*negdi2): Rename to negdi2.
10475 (*abs<mode>2): Rename to abs<mode>2.
10477 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
10479 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
10480 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
10481 (atomic_sub_fetchsi): ... this new pattern.
10482 (mvtc): Add CC_REG clobber.
10484 2016-05-31 Marek Polacek <polacek@redhat.com>
10486 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
10488 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10490 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
10491 aarch64_fusion_enabled_p to check for fusion capabilities.
10493 2016-05-31 Richard Biener <rguenther@suse.de>
10495 PR tree-optimization/71352
10496 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
10497 minus one and a negate.
10499 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10501 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
10502 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
10504 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
10505 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
10506 Remove use of aarch64_simd_attr_length_move, set length attribute
10508 (*aarch64_be_movoi): Likewise.
10509 (*aarch64_be_movci): Likewise.
10510 (*aarch64_be_movxi): Likewise.
10512 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
10514 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
10515 It no longer does that.
10516 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
10518 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
10520 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
10521 attribute __unused__.
10523 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
10525 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
10526 * config/arm/arm.c (arm_arch_thumb1): Define.
10527 (arm_option_override): Initialize arm_arch_thumb1.
10528 * config/arm/arm.h (arm_arch_thumb1): Declare.
10529 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
10530 support Thumb-1 ISA.
10532 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
10535 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
10536 `Yv' for scalar operand.
10538 2016-05-31 Tom de Vries <tom@codesourcery.com>
10540 PR tree-optimization/69068
10541 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
10542 phis with more than two args.
10544 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
10546 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
10547 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
10550 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
10552 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
10554 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10556 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
10557 cpu_32, cpu_64, tune_32 and tune_64.
10558 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
10560 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
10562 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
10564 2016-05-30 Andi Kleen <ak@linux.intel.com>
10566 * auto-profile.c (read_profile): Replace asserts with errors
10567 when file does not exist.
10568 * gcov-io.c (gcov_read_words): Dito.
10570 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10572 * tree-cfg.c (print_loop): Print likely upper bounds.
10574 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10576 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
10577 * opts.c (default_options): Enable peel loops at -O3.
10578 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
10579 (try_peel_loop): Do not re-peel already peeled loops;
10580 use likely upper bounds; fix profile updating.
10581 (pass_complete_unroll::execute): Initialize peeled_loops.
10583 2016-05-30 Martin Liska <mliska@suse.cz>
10585 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
10586 computed costs by frequency of BB they belong to.
10587 (get_scaled_computation_cost_at): New function.
10589 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
10590 Marc Glisse <marc.glisse@inria.fr>
10592 PR tree-optimization/71289
10593 * match.pd (-1 / B < A, A > -1 / B): New transformations.
10595 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10597 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
10599 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10601 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
10602 for peeled copies; avoid underflow when updating estimates; correctly
10603 scale loop profile.
10605 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
10607 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
10608 r236875. Corrected oe3 to oe2 as obvious.
10610 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
10612 PR middle-end/71269
10613 PR middle-end/71252
10614 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
10615 that inserted stmt will not dominate stmts that defines its operand.
10616 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
10617 (rewrite_expr_tree_parallel): Likewise.
10619 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
10621 PR middle-end/71252
10622 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
10623 all fields including stmt_to_insert are swapped.
10625 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10627 * predict.h (force_edge_cold): Declare.
10628 * predict.c (force_edge_cold): New function.
10629 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
10631 (canonicalize_loop_induction_variables): Fix formating.
10633 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
10635 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
10636 (visium_expand_copysign): Use gen_int_mode directly.
10637 (visium_compute_frame_size): Minor tweaks.
10639 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
10641 * tree-vect-loop.c (vect_analyze_loop_2): Use
10642 likely_max_stmt_executions_int.
10644 2016-05-30 Tom de Vries <tom@codesourcery.com>
10646 PR tree-optimization/69067
10647 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
10649 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
10652 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
10653 New peepholes to remove unneeded fild/fistp pairs.
10654 (define_peephole2 atomic_loaddi_fpu): Ditto.
10656 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
10658 * predict.c (maybe_hot_frequency_p): Avoid division.
10660 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
10662 * doc/install.texi: Use https for shop.fsf.org.
10664 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
10666 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
10667 likely_max_stmt_executions_int.
10669 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
10671 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
10672 likely_max_stmt_executions_int.
10674 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
10676 * profile.c (compute_branch_probabilities): Do not report hitrates
10678 (branch_prob): Report hitrates here.
10679 * predict.c (gimple_predict_edge): Do not assert profile status;
10680 fix formatting issues.
10682 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
10684 * predict.c (edge_predicted_by_p): New function.
10685 (predict_paths_for_bb): Do not put multiple predictions of the same type
10688 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
10690 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
10693 2016-05-28 Alan Modra <amodra@gmail.com>
10695 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
10697 2016-05-28 Alan Modra <amodra@gmail.com>
10699 PR rtl-optimization/71275
10700 * ira.c (ira): Free dominance info.
10702 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
10704 * doc/sourcebuild.texi: New address for upstream Go repository.
10706 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
10708 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
10709 (TARGET_ARM_V7M): Likewise.
10711 2016-05-26 Jeff Law <law@redhat.com>
10713 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
10714 (thread_across_edge): Remove calls to find_jump_threads_backwards.
10715 * passes.def: Add jump threading passes before DOM/VRP.
10716 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
10717 argument to a basic block from an edge. Remove tests which are
10719 (pass_data_thread_jumps, class pass_thread_jumps): New.
10720 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
10721 (make_pass_thread_jumps): Likewise.
10722 * tree-pass.h (make_pass_thread_jumps): Declare.
10724 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
10726 * config/visium/visium-protos.h (split_double_move): Rename into...
10727 (visium_split_double_move): ...this.
10728 (visium_split_double_add): Declare.
10729 * config/visium/visium.c (split_double_move): Rename into...
10730 (visium_split_double_move): ...this.
10731 (visium_split_double_add): New function.
10732 (visium_expand_copysign): Renumber operands for consistency.
10733 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
10734 (DFmode move splitter): Likewise.
10735 (*addi3_insn): Split by means of visium_split_double_add.
10736 (*adddi3_insn_flags): Delete.
10737 (*plus_plus_sltu<subst_arith>): New insn.
10738 (*subdi3_insn): Split by means of visium_split_double_add.
10739 (subdi3_insn_flags): Delete.
10740 (*minus_minus_sltu<subst_arith>): New insn.
10741 (*negdi2_insn): Split by means of visium_split_double_add.
10742 (*negdi2_insn_flags): Delete.
10744 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
10746 * configure.ac: Treat a --with-headers option without argument
10747 the same as the default (i.e. consult sys-include directory).
10748 * configure: Regenerate.
10750 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10752 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
10753 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
10755 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
10756 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
10758 2016-05-27 Jiong Wang <jiong.wang@arm.com>
10761 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
10762 tree-stdarg analysis results.
10763 (aarch64_setup_incoming_varargs): Likewise.
10765 2016-05-27 Jiong Wang <jiong.wang@arm.com>
10767 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
10768 va_list_gpr_counter_field and va_list_fpr_counter_field.
10770 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
10773 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
10774 * config/aarch64/aarch64.c
10775 (aarch64_cannot_change_mode_class): Remove function.
10776 * config/aarch64/aarch64-protos.h
10777 (aarch64_cannot_change_mode_class): Remove.
10779 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
10781 * cfgloop.c (record_niter_bound): Record likely upper bounds.
10782 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
10783 get_likely_max_loop_iterations_int): New.
10784 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
10785 any_likely_upper_bound.
10786 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
10788 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
10789 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
10791 (unroll_loop_constant_iterations): Likewise.
10792 (unroll_loop_runtime_iterations): Likewise.
10793 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
10794 * lto-streamer-out.c (output_cfg): Likewise.
10795 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
10797 (canonicalize_loop_induction_variables): Dump likely upper bounds.
10798 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
10799 (likely_max_loop_iterations): New.
10800 (likely_max_loop_iterations_int): New.
10801 (likely_max_stmt_executions): New.
10802 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
10803 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
10804 likely_max_stmt_executions): Declare.
10806 2016-05-27 Marek Polacek <polacek@redhat.com>
10808 PR middle-end/71308
10809 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
10811 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10813 * config/s390/s390.md (2x risbg splitters): Use
10814 reg_overlap_mentioned_p instead of rtx_equal_p.
10816 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
10818 * combine.c (make_compound_operation): Take known zero bits into
10819 account when checking for possible zero_extend.
10821 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10823 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
10824 Use const_int_operand for operand 2 predicate. Simplify expand code
10827 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
10829 PR middle-end/71279
10830 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
10833 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10835 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
10836 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
10837 that returns CC_SESWPmode and CC_ZESWPmode.
10838 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
10840 (aarch64_rtx_costs): Likewise.
10842 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10844 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
10845 for ISA 3.0 min/max support.
10846 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
10847 conditional move support.
10848 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
10849 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
10851 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
10852 conditional moves where the comparison type is different from move
10854 (fp_minmax): New code iterator for smin/smax.
10855 (minmax): New code attributes for min/max.
10856 (SMINMAX): Likewise.
10857 (smax<mode>3): Combine min, max insns into one insn using the
10858 fp_minmax code iterator. Add support for ISA 3.0 min/max
10859 instructions that don't need -ffast-math.
10860 (s<minmax><mode>3): Likewise.
10861 (smax<mode>3_vsx): Likewise.
10862 (smin<mode>3): Likewise.
10863 (s<minmax><mode>3_vsx): Likewise.
10864 (smin<mode>3_vsx): Likewise.
10865 (pre-VSX min/max splitters): Likewise.
10866 (s<minmax><mode>3_fpr): Likewise.
10867 (movsfcc): Rewrite floating point conditional moves to combine
10868 SFmode/DFmode into a single insn.
10869 (mov<mode>cc): Likewise.
10870 (movdfcc): Likewise.
10871 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
10872 SFDF2 iterators to handle all combinations.
10873 (fseldfsf4): Likewise.
10874 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
10875 (fseldfdf4): Likewise.
10876 (fselsfdf4): Likewise.
10877 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
10878 comparison instructions that set a 0/-1 mask, and use it for
10879 floating point conditional move via XXSEL.
10880 (fpmask<mode>): Likewise.
10881 (xxsel<mode>): Likewise.
10882 * config/rs6000/predicates.md (min_max_operator): Delete, no
10884 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
10885 instructions that generate a 0/-1 mask for use with XXSEL.
10886 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
10887 say whether floating point min/max is available, either through
10888 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
10889 (TARGET_MINMAX_DF): Likewise.
10891 2016-05-27 Alan Modra <amodra@gmail.com>
10893 PR rtl-optimization/71275
10894 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
10895 for update_equiv_regs and combine_and_move_insns.
10897 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
10899 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
10900 if_then_else or cond RTXes to calculate attribute value.
10901 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
10902 <attr "length_immediate>: Ditto.
10903 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
10904 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
10905 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
10906 <attr "type">: Ditto.
10907 <attr "prefix_data16">: Ditto.
10908 <attr "prefix_extra">: Ditto.
10909 <attr "length_immediate">: Ditto.
10910 <attr "prefix">: Ditto.
10911 (vec_set<mode>_0) <attr "isa">: Ditto.
10912 <attr "prefix_extra">: Ditto.
10913 <attr "length_immediate">: Ditto.
10914 <attr "prefix">: Ditto.
10915 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
10916 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
10917 (sse2_storelpd) <attr "prefix_data16">: Ditto.
10918 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
10919 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
10920 <attr "length_immediate">: Ditto.
10921 <attr "prefix">: Ditto.
10922 (sse2_movsd) <attr "length_immediate">: Ditto.
10923 <attr "prefix">: Ditto.
10924 (vec_concatv2df) <attr "isa">: Ditto.
10925 <attr "prefix">: Ditto.
10926 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
10927 (*vec_extractv2di_1) <attr "isa">: Ditto.
10928 <attr "type">: Ditto.
10929 <attr "length_immediate">: Ditto.
10930 <attr "prefix_rex">: Ditto.
10931 <attr "prefix_extra">: Ditto.
10932 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
10933 <attr "prefix_extra">: Ditto.
10934 <attr "length_immediate">: Ditto.
10935 (vec_concatv2di) <attr "isa">: Ditto.
10936 <attr "prefix_extra">: Ditto.
10937 <attr "length_immediate">: Ditto.
10938 <attr "prefix">: Ditto.
10940 2016-05-26 Martin Liska <mliska@suse.cz>
10942 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
10944 (operator+): Likewise.
10945 (operator-): Likewise.
10946 (comp_cost::operator+=): Likewise.
10947 (comp_cost::operator-=): Likewise.
10948 (comp_cost::operator/=): Likewise.
10949 (comp_cost::operator*=): Likewise.
10950 (operator<): Likewise.
10951 (operator==): Likewise.
10952 (operator<=): Likewise.
10953 (new_cost): Remove.
10954 (infinite_cost_p): Likewise.
10955 (add_costs): Likewise.
10956 (sub_costs): Likewise.
10957 (compare_costs): Likewise.
10958 (set_group_iv_cost): Use the newly introduced functions.
10959 (get_address_cost): Likewise.
10960 (get_shiftadd_cost): Likewise.
10961 (force_expr_to_var_cost): Likewise.
10962 (split_address_cost): Likewise.
10963 (ptr_difference_cost): Likewise.
10964 (difference_cost): Likewise.
10965 (get_computation_cost_at): Likewise.
10966 (determine_group_iv_cost_generic): Likewise.
10967 (determine_group_iv_cost_address): Likewise.
10968 (determine_group_iv_cost_cond): Likewise.
10969 (autoinc_possible_for_pair): Likewise.
10970 (determine_group_iv_costs): Likewise.
10971 (cheaper_cost_pair): Likewise.
10972 (iv_ca_recount_cost): Likewise.
10973 (iv_ca_set_no_cp): Likewise.
10974 (iv_ca_set_cp): Likewise.
10975 (iv_ca_cost): Likewise.
10976 (iv_ca_new): Likewise.
10977 (iv_ca_dump): Likewise.
10978 (iv_ca_narrow): Likewise.
10979 (iv_ca_prune): Likewise.
10980 (iv_ca_replace): Likewise.
10981 (try_add_cand_for): Likewise.
10982 (try_improve_iv_set): Likewise.
10983 (find_optimal_iv_set): Likewise.
10985 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
10987 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
10988 that internal functions will clobber all caller-saved registers.
10990 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
10992 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
10993 Return a better case_values_threshold when optimizing.
10995 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
10997 * config/aarch64/aarch64-simd.md (aarch64_combinez):
10998 Add ? to integer variant.
10999 (aarch64_combinez_be): Likewise.
11001 2016-05-26 Jakub Jelinek <jakub@redhat.com>
11003 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11004 instead of x constraint.
11005 (vcvtps2ph256<mask_name>): Likewise.
11007 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11008 alternative. Formatting fix.
11010 * config/i386/sse.md
11011 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11013 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11014 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
11015 maybe_evex prefix instead of vex.
11016 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
11017 EXT_REX_SSE_REG_P (op0) case in the splitter.
11019 2016-05-25 Jeff Law <law@redhat.com>
11021 PR tree-optimization/71272
11022 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11023 Update comments. Add test for empty path.
11025 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
11027 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11028 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11029 special case builtin.
11030 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11031 code for ALTIVEC_BUILTIN_VEC_CMPNE.
11032 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11033 for __builtin_vec_cmpne.
11035 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
11037 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11038 redundant test and bail out if the type of the new operand is not
11039 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11041 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
11043 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11044 (x_ix86_target_flags_explicit): Remove.
11045 * config/i386/i386.c (ix86_function_specific_save): Do not copy
11046 x_ix86_target_flags_explicit.
11047 (ix86_function_specific_restore): Ditto.
11049 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
11050 H.J. Lu <hongjiu.lu@intel.com>
11053 * common/config/i386/i386-common.c
11054 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11055 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11056 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11057 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11058 (-mgeneral-regs-only): Add new option.
11059 * config/i386/i386.c (ix86_option_override_internal): Don't enable
11060 x87 instructions if only general registers are allowed.
11061 (ix86_target_string): Add ix86_flags argument. Handle additional
11062 flags options through ix86_flags argument. Update all callers.
11063 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11065 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11067 PR rtl-optimization/66940
11068 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11069 decrementing desired_val will not overflow before performing these
11072 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
11074 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11075 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11076 * config/i386/i386.c (enum ix86_builtins): Add
11077 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11078 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11079 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11080 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11081 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11082 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11083 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11084 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11085 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11086 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11087 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11088 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11089 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11090 __builtin_ia32_cvtps2dq512_mask.
11091 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11092 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11093 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11094 * config/i386/sse.md
11095 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
11097 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
11098 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
11100 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
11101 (avx512f_vec_pack_sfix_v8df): New define_expand.
11102 (avx512f_roundpd512): Rename to ...
11103 (avx512f_round<castmode>512): ... this. Change iterator.
11104 (avx512f_roundps512_sfix): New define_expand.
11105 (round<mode>2_sfix): Change iterator.
11107 2016-05-25 Nick Clifton <nickc@redhat.com>
11109 * config/msp430/msp430.c (msp430_attr): Produce an error if a
11110 static interrupt handler is detected.
11111 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
11112 default linker script.
11113 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
11114 the low part of a symbolic pointer.
11116 2016-05-25 Richard Biener <rguenther@suse.de>
11118 PR tree-optimization/71261
11119 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
11120 interesting stmt instead of immediate uses when looking
11121 for the use operand to replace.
11123 2016-05-25 Martin Liska <mliska@suse.cz>
11125 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
11127 2016-05-25 Richard Biener <rguenther@suse.de>
11129 PR tree-optimization/71264
11130 * tree-vect-stmts.c (vect_init_vector): Properly deal with
11133 2016-05-25 Martin Liska <mliska@suse.cz>
11135 PR tree-optimization/71239
11136 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
11137 if DECL_SIZE is NULL.
11139 2016-05-25 Richard Biener <rguenther@suse.de>
11141 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
11142 * tree-if-conv.c (pass_data_if_conversion): Use it.
11144 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11146 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
11147 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
11148 * varpool.c (varpool_node::get_availability): Likewise.
11150 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11152 * config/rs6000/altivec.md (VNEG iterator): New iterator for
11153 VNEGW/VNEGD instructions.
11154 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
11155 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
11156 support for ISA 3.0 VNEGW/VNEGD instructions.
11158 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
11160 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
11161 pointers inside OACC_DATA regions.
11162 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
11163 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
11164 (gimplify_adjust_omp_clauses): Fix typo in comment.
11166 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11168 * config/rs6000/altivec.md (VParity): New mode iterator for vector
11169 parity built-in functions.
11170 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
11172 (p9v_parity<mode>2): Likewise.
11173 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
11175 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
11176 (parity<mode>2): ISA 3.0 expander for vector parity.
11177 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
11179 (BU_P9_64BIT_MISC_0): Likewise.
11180 (BU_P9_MISC_0): Likewise.
11181 (BU_P9V_AV_1): Likewise.
11182 (BU_P9V_AV_2): Likewise.
11183 (BU_P9V_AV_3): Likewise.
11184 (BU_P9V_AV_P): Likewise.
11185 (BU_P9V_VSX_1): Likewise.
11186 (BU_P9V_OVERLOAD_1): Likewise.
11187 (BU_P9V_OVERLOAD_2): Likewise.
11188 (BU_P9V_OVERLOAD_3): Likewise.
11189 (VCTZB): Add vector count trailing zeros support.
11193 (VPRTYBD): Add vector parity support.
11194 (VPRTYBQ): Likewise.
11195 (VPRTYBW): Likewise.
11196 (VCTZ): Add overloaded vector count trailing zeros support.
11197 (VPRTYB): Add overloaded vector parity support.
11198 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11199 overloaded vector count trailing zeros and parity instructions.
11200 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
11201 vector parity support.
11202 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
11203 trailing zeros support.
11204 (vec_cntlz): Likewise.
11205 (vec_vctzb): Likewise.
11206 (vec_vctzd): Likewise.
11207 (vec_vctzh): Likewise.
11208 (vec_vctzw): Likewise.
11209 (vec_vprtyb): Add ISA 3.0 vector parity support.
11210 (vec_vprtybd): Likewise.
11211 (vec_vprtybw): Likewise.
11212 (vec_vprtybq): Likewise.
11213 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11214 the ISA 3.0 vector count trailing zeros and vector parity built-in
11217 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
11219 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
11220 when there is stmt_to_insert.
11222 2016-05-24 Martin Sebor <msebor@redhat.com>
11225 * tree.h (complete_or_array_type_p): New inline function.
11227 2016-05-24 Jakub Jelinek <jakub@redhat.com>
11229 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
11230 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
11231 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
11233 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
11234 Limit 1st alternative to noavx isa, split 2nd alternative into one
11235 noavx and one avx alternative, use *x and Bm in the former and
11236 x and m in the latter.
11238 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
11239 of sse4 for the first alternative, drop %v from the template
11240 and d operand modifier. Split second alternative into one sse4_noavx
11241 and one avx alternative, use *x instead of *v in the former and v
11242 instead of *v in the latter.
11243 (*sse4_1_extractps): Use noavx isa instead of * for the first
11244 alternative, drop %v from the template. Split second alternative into
11245 one noavx and one avx alternative, use *x instead of *v in the
11246 former and v instead of *v in the latter.
11247 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
11248 with noavx and the last one with avx.
11249 (sse4_1_phminposuw): Guard first alternative with noavx isa,
11250 split the second one into one noavx and one avx alternative,
11251 use *x and Bm in the former and x and m in the latter one.
11252 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
11255 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
11256 first two alternatives to noavx, use *x instead of *v in the second
11257 one, add avx alternative without *.
11258 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
11259 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
11260 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
11262 2016-05-24 Jeff Law <law@redhat.com>
11264 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
11265 New function, extracted from...
11266 (fsm_find_control_statement_thread_paths): Here. Use the new function.
11267 Allow simple copies and constant initializations in the SSA chain.
11269 2016-05-24 Marek Polacek <polacek@redhat.com>
11272 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
11275 2016-05-24 Jakub Jelinek <jakub@redhat.com>
11278 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11279 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11280 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
11281 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
11282 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
11284 2016-05-24 Richard Biener <rguenther@suse.de>
11286 PR tree-optimization/71240
11287 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
11290 2016-05-24 Richard Biener <rguenther@suse.de>
11292 PR tree-optimization/71230
11293 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
11295 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
11297 * tree-vectorizer.h (vectorizable_comparison): Delete.
11298 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
11299 PURE_SLP_STMT check.
11300 * tree-vect-stmts.c (vectorizable_call): Likewise.
11301 (vectorizable_simd_clone_call): Likewise.
11302 (vectorizable_conversion): Likewise.
11303 (vectorizable_assignment): Likewise.
11304 (vectorizable_shift): Likewise.
11305 (vectorizable_operation): Likewise.
11306 (vectorizable_load): Likewise.
11307 (vectorizable_condition): Likewise.
11308 (vectorizable_store): Likewise. Assert that we don't have
11310 (vectorizable_comparison): Make static. Remove redundant
11311 PURE_SLP_STMT check.
11312 (vect_transform_stmt): Assert that we always have an slp_node
11315 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11317 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
11318 operands[2] against 1 with comparison against CONST1_RTX.
11319 (<shift>di3_neon): Likewise.
11320 * config/arm/predicates.md (const0_operand): Replace with comparison
11321 against CONST0_RTX.
11323 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11325 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
11326 operands[2] against 1 with comparison against CONST1_RTX.
11327 (ashrdi3): Likewise.
11328 (lshrdi3): Likewise.
11329 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
11331 (ashrsi3): Likewise.
11332 (lshrsi3): Likewise.
11333 (rotrsi3): Likewise.
11334 (define_split above *compareqi_eq0): Likewise.
11335 (define_split above "prologue"): Likewise.
11336 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
11337 * config/arm/predicates.md (shift_operator): Likewise.
11338 (shift_nomul_operator): Likewise.
11339 (sat_shift_operator): Likewise.
11340 (thumb1_cmp_operand): Likewise.
11341 (const_neon_scalar_shift_amount_operand): Replace manual range
11342 check with IN_RANGE.
11343 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
11344 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
11346 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11348 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
11349 with HOST_WIDE_INT_1.
11351 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
11352 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
11353 (arm_canonicalize_comparison): Likewise.
11354 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
11356 (thumb1_size_rtx_costs): Likewise.
11357 (vfp_const_double_index): Replace cast of 1 to unsigned
11358 HOST_WIDE_INT with HOST_WIDE_INT_1U.
11359 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
11361 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
11362 HOST_WIDE_INT with HOST_WIDE_INT_1U.
11363 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
11364 HOST_WIDE_INT with HOST_WIDE_INT_1.
11366 2016-05-24 Marek Polacek <polacek@redhat.com>
11368 * tree-cfg.h (should_remove_lhs_p): New predicate.
11369 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
11370 * gimplify.c (gimplify_modify_expr): Likewise.
11371 * tree-cfg.c (verify_gimple_call): Likewise.
11372 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
11373 * gimple-fold.c: Include "tree-cfg.h".
11374 (gimple_fold_call): Use should_remove_lhs_p.
11376 2016-05-24 Richard Biener <rguenther@suse.de>
11378 PR tree-optimization/71253
11379 * cfganal.h (control_dependences): Make robust against edge
11381 (control_dependences::control_dependences): Remove edge_list argument.
11382 (control_dependences::get_edge): Remove.
11383 (control_dependences::get_edge_src): Add.
11384 (control_dependences::get_edge_dest): Likewise.
11385 (control_dependences::m_el): Make a vector of edge src/dest index.
11386 * cfganal.c (control_dependences::find_control_dependence): Adjust.
11387 (control_dependences::control_dependences): Likewise.
11388 (control_dependences::~control_dependence): Likewise.
11389 (control_dependences::get_edge): Remove.
11390 (control_dependences::get_edge_src): Add.
11391 (control_dependences::get_edge_dest): Likewise.
11392 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
11394 (perform_tree_ssa_dce): Adjust.
11395 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
11397 (pass_loop_distribution::execute): Adjust. Do loop destroying
11398 conditional on changed.
11400 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11403 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
11404 return. Reindent transformation comment and mention the ARM state
11407 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
11409 PR middle-end/71252
11410 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
11411 after build_and_add_sum creates new use stmt.
11413 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
11415 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
11416 load_lanes/grouped_load classification comes first. Don't check
11417 whether the vectorization factor is a multiple of the group size
11420 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
11422 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
11423 GROUP_GAP for single-element interleaving.
11424 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
11427 2016-05-24 Richard Biener <rguenther@suse.de>
11429 PR middle-end/70434
11431 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
11432 bases which are accessed with non-invariant indices.
11433 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
11434 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
11436 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
11438 PR middle-end/71170
11439 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
11440 (add_to_ops_vec): Add stmt_to_insert.
11441 (add_repeat_to_ops_vec): Init stmt_to_insert.
11442 (insert_stmt_before_use): New.
11443 (transform_add_to_multiply): Remove mult_stmt insertion and add it
11445 (get_ops): Init stmt_to_insert.
11446 (maybe_optimize_range_tests): Likewise.
11447 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
11448 (rewrite_expr_tree_parallel): Likewise.
11449 (reassociate_bb): Likewise.
11451 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11454 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
11455 ISA 3.0 xxperm fusion alternative.
11456 (altivec_vperm_v8hiv16qi): Likewise.
11457 (altivec_vperm_<mode>_uns_internal): Likewise.
11458 (vperm_v8hiv4si): Likewise.
11459 (vperm_v16qiv8hi): Likewise.
11461 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11462 Kelvin Nilsen <kelvin@gcc.gnu.org>
11464 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
11465 vpermr/xxpermr on ISA 3.0.
11466 (altivec_expand_vec_perm_le): Likewise.
11467 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
11468 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
11471 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
11473 * config/i386/i386.h (IS_STACK_MODE): Enable for
11474 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
11475 SSE_FLOAT_MODE_P macros.
11476 * config/i386/i386.c (ix86_preferred_reload_class): Use
11477 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
11478 Cleanup regclass processing for CONST_DOUBLE_P.
11479 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
11480 (ix86_rtx_costs): Remove redundant TARGET_80387 check
11481 with IS_STACK_MODE macro.
11482 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
11484 (*movdf_internal): Use IS_STACK_MODE macro.
11485 (*movsf_internal): Ditto.
11487 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
11489 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
11490 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
11492 2016-05-23 Jeff Law <law@redhat.com>
11494 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
11496 (fsm_find_control_statement_thread_paths): Call it.
11498 2016-05-23 Martin Jambor <mjambor@suse.cz>
11501 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
11502 from_global_constant if t is not NULL.
11504 2016-05-23 Marek Polacek <polacek@redhat.com>
11507 * common.opt (Wswitch-unreachable): New option.
11508 * doc/invoke.texi: Document -Wswitch-unreachable.
11509 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
11512 2016-05-23 Bin Cheng <bin.cheng@arm.com>
11514 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
11515 TMR_INDEX is non-NULL.
11517 2016-05-23 Richard Biener <rguenther@suse.de>
11519 PR tree-optimization/71230
11520 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
11521 (try_special_add_to_ops): ... here. Always test for single-use.
11523 2016-05-23 Martin Jambor <mjambor@suse.cz>
11525 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
11526 default block if a PHI node in the original one would be resized.
11528 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11530 PR tree-optimization/58135
11531 * tree-vect-slp.c: When group size is not multiple
11532 of vector size, allow splitting of store group at
11535 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
11537 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
11539 2016-05-22 Jakub Jelinek <jakub@redhat.com>
11541 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
11542 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
11543 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
11546 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
11547 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
11548 v constraint instead of x and vinserti32x4 insn.
11550 * config/i386/sse.md (i128vldq): New mode iterator.
11551 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
11552 avx512dq and avx512vl alternatives.
11554 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
11555 constraint, use maybe_evex prefix instead of vex.
11556 (vec_dupv4sf): Use v constraint instead of x for output
11557 operand except for noavx alternative, use Yv constraint
11558 instead of x for input. Use maybe_evex prefix instead of vex.
11559 (*vec_dupv4si): Likewise.
11560 (*vec_dupv2di): Likewise.
11562 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
11564 PR middle-end/40921
11565 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
11566 (linearize_expr_tree): Call try_special_add_to_ops.
11567 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
11569 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11571 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
11572 to computed stack_usage.
11574 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11577 * config/avr/avr.md (define_expand "mov<mode>"): If the source
11578 operand is subreg (symbol_ref) then move the symbol ref to register.
11580 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
11582 * tree.c (array_at_struct_end_p): Look through MEM_REF.
11584 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11586 PR middle-end/71179
11587 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
11590 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
11592 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
11593 ranges by calling get_single_symbol and tidy up. Look more closely
11594 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
11596 2016-05-20 Jeff Law <law@redhat.com>
11598 * bitmap.c (bitmap_find_bit): Remove useless test.
11600 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
11602 * function.c (thread_prologue_and_epilogue_insns): Commit the
11603 insertion of the epilogue.
11605 2016-05-20 Martin Jambor <mjambor@suse.cz>
11607 PR tree-optimization/70884
11608 * tree-sra.c (initialize_constant_pool_replacements): Do not check
11609 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
11610 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
11611 of constant pool data as a reason for scalarization.
11613 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
11615 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
11616 for naked functions.
11617 (thumb1_expand_prologue): Likewise.
11619 2016-05-20 Nathan Sidwell <nathan@acm.org>
11621 * config/nvptx/nptx.c (nvptx_option_override): Only set
11622 flag_toplevel_reorder, if not explicitly specified. Set
11623 flag_no_common, unless explicitly specified.
11625 2016-05-20 David Malcolm <dmalcolm@redhat.com>
11627 * calls.c (can_implement_as_sibling_call_p): Mark param
11628 reg_parm_stack_space with ATTRIBUTE_UNUSED.
11630 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
11632 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
11633 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
11634 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
11636 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
11637 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
11638 and CASE_CONST_ANY.
11640 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
11642 * config/nvptx/nvptx.md (sincossf3): New pattern.
11644 2016-05-20 David Malcolm <dmalcolm@redhat.com>
11646 * calls.c (maybe_complain_about_tail_call): New function.
11647 (initialize_argument_information): Call
11648 maybe_complain_about_tail_call when clearing *may_tailcall.
11649 (can_implement_as_sibling_call_p): Call
11650 maybe_complain_about_tail_call when returning false.
11651 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
11652 ensure try_tail_call is set. Call maybe_complain_about_tail_call
11653 if tail-call optimization fails.
11654 * cfgexpand.c (expand_call_stmt): Initialize
11655 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
11656 * gimple-pretty-print.c (dump_gimple_call): Dump
11657 gimple_call_must_tail_p.
11658 * gimple.c (gimple_build_call_from_tree): Call
11659 gimple_call_set_must_tail with the value of
11660 CALL_EXPR_MUST_TAIL_CALL.
11661 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
11662 (gimple_call_set_must_tail): New function.
11663 (gimple_call_must_tail_p): New function.
11664 * print-tree.c (print_node): Update printing of TREE_STATIC
11665 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
11666 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
11667 trailing comment listing applicable flags.
11668 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
11670 2016-05-20 David Malcolm <dmalcolm@redhat.com>
11672 * calls.c (expand_call): Move "Rest of purposes for tail call
11673 optimizations to fail" to...
11674 (can_implement_as_sibling_call_p): ...this new function, and
11675 split into multiple "if" statements.
11677 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
11679 * cfgloop.h (expected_loop_iterations_unbounded,
11680 expected_loop_iterations): Unconstify.
11681 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
11682 profile with known upper bound; return 3 when profile is absent.
11683 (expected_loop_iterations): Update.
11685 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
11687 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
11688 and get_max_loop_iterations_int.
11690 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
11692 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
11693 realistic upper bounds here.
11695 2016-05-20 Jakub Jelinek <jakub@redhat.com>
11698 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
11699 calls if the LHS is variable length or has addressable type.
11700 If targets[0]->decl is a noreturn call with void return type and
11701 zero arguments, adjust fntype and remove lhs in that case.
11703 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
11705 PR tree-optimization/71079
11706 PR tree-optimization/71206
11707 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
11709 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11711 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
11712 (get_vec_alignment_for_array_decl): Likewise.
11713 (get_vec_alignment_for_record_decl): Likewise.
11714 (increase_alignment::execute): Move code to find alignment to
11715 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
11716 (type_align_map): New hash_map.
11718 2016-05-20 Richard Guenther <rguenther@suse.de>
11720 PR tree-optimization/29756
11721 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
11722 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
11723 * fold-const.c (operand_equal_p): Likewise.
11724 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
11725 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
11726 * tree-inline.c (estimate_operator_cost): Likewise.
11727 * tree-pretty-print.c (dump_generic_node): Likewise.
11728 * tree-ssa-operands.c (get_expr_operands): Likewise.
11729 * cfgexpand.c (expand_debug_expr): Likewise.
11730 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11731 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
11732 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
11733 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
11734 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
11735 (execute_update_addresses_taken): Do it.
11737 2016-05-20 Richard Biener <rguenther@suse.de>
11739 PR tree-optimization/71185
11740 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
11741 register operations.
11743 2016-05-20 Richard Biener <rguenther@suse.de>
11745 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
11746 gimple_seq_add_seq_without_update.
11747 (release_bb_predicate): Assert we have no operands to free.
11748 (if_convertible_loop_p_1): Calculate post dominators later.
11749 Do not free BB predicates here.
11750 (combine_blocks): Do not recompute BB predicates.
11751 (version_loop_for_if_conversion): Save BB predicates around
11754 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11756 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
11757 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
11758 code. Ignore sibcalls on EDGE_IGNORE edges.
11759 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
11760 on edges for sibcalls that run without prologue. The rest of the
11761 function is combined from...
11762 (fix_fake_fallthrough_edge): ... this, and ...
11763 (try_shrink_wrapping): ... a part of this. Remove the bb_with
11764 function argument, make it a local variable.
11766 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
11768 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
11769 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
11770 for 32-bit mode and SEH for 64-bit.
11771 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
11772 TARGET_64BIT_DEFAULT.
11774 2016-05-19 Ryan Burn <contact@rnburn.com>
11776 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
11777 * gengtype.c (open_base_files): Add cilk.h to ifiles.
11779 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
11781 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
11782 force pending loads from memory.
11784 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
11786 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
11787 (UNSPEC_DARN_32): New unspec constant.
11788 (UNSPEC_DARN_RAW): New unspec constant.
11789 (darn_32): New instruction.
11790 (darn_raw): New instruction.
11791 (darn): New instruction.
11792 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
11793 support and documentation for this macro.
11794 (BU_P9_MISC_1): New macro definition.
11795 (BU_P9_64BIT_MISC_0): New macro definition.
11796 (BU_P9_MISC_0): New macro definition.
11797 (darn_32): New builtin definition.
11798 (darn_raw): New builtin definition.
11799 (darn): New builtin definition.
11800 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
11801 RS6000_BUILTIN_0 directives to surround each occurrence of
11802 #include "rs6000-builtin.def".
11803 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
11804 RS6000_BTM_64BIT flags to the returned mask, depending on
11806 (def_builtin): Correct an error in the assignments made to the
11807 debugging variable attr_string.
11808 (rs6000_expand_builtin): Add support for no-operand built-in
11810 (builtin_function_type): Remove fatal_error assertion that is no
11812 (rs6000_common_init_builtins): Add support for no-operand built-in
11814 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
11816 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
11818 (RS6000_BTM_64BIT): New macro definition.
11819 * doc/extend.texi: Document __builtin_darn (void),
11820 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
11823 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
11825 * tree-vect-loop.c (vect_analyze_loop_2): Use also
11826 max_loop_iterations_int.
11828 2016-05-19 Marek Polacek <polacek@redhat.com>
11830 PR tree-optimization/71031
11831 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
11832 condition and adjust the code a bit.
11834 2016-05-19 Martin Liska <mliska@suse.cz>
11836 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
11837 auto_vec instead of vec.
11839 2016-05-19 Martin Liska <mliska@suse.cz>
11841 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
11843 2016-05-19 Martin Liska <mliska@suse.cz>
11845 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
11847 2016-05-19 Martin Liska <mliska@suse.cz>
11849 * ipa-pure-const.c (set_function_state): Remove an existing
11851 (remove_node_data): Do not free it as it's released
11852 in set_function_state.
11854 2016-05-19 Martin Liska <mliska@suse.cz>
11856 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
11859 2016-05-19 Martin Liska <mliska@suse.cz>
11861 * omp-simd-clone.c (simd_clone_adjust): Release vector.
11863 2016-05-19 Martin Liska <mliska@suse.cz>
11865 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
11866 an auto_vec instead of re-creating it.
11868 2016-05-19 Martin Liska <mliska@suse.cz>
11870 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
11871 auto_vec instead of vec.
11873 2016-05-19 Martin Liska <mliska@suse.cz>
11875 * lto-section-in.c (lto_get_section_data): Call
11876 lto_check_version with additional argument.
11877 * lto-streamer.c (lto_check_version): Add new argument.
11878 * lto-streamer.h (lto_check_version): Likewise.
11880 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11882 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
11883 Don't add cost of inner memory when handling sign-extended loads.
11885 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
11887 PR rtl-optimization/71148
11888 * cse.c (cse_main): Free dominance info.
11889 (rest_of_handle_cse): Don't free dominance info.
11890 (rest_of_handle_cse2): Likewise.
11891 (rest_of_handle_cse_after_global_opts): Likewise.
11893 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11896 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
11897 NULL_TREE early if NEON is not available. Remove now redundant check
11898 in ARM_CHECK_BUILTIN_MODE.
11900 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
11903 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
11904 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
11905 * doc/cpp.texi: Document new macros.
11907 2016-05-19 Bin Cheng <bin.cheng@arm.com>
11909 PR tree-optimization/69848
11910 * tree-vect-loop.c (vectorizable_reduction): Don't factor
11911 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
11913 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11915 * function.c (thread_prologue_and_epilogue_insn): Move the
11916 "goto epilogue_done" one block later.
11918 2016-05-19 Richard Biener <rguenther@suse.de>
11920 PR tree-optimization/70729
11921 * passes.def: Move LIM pass before PRE. Remove no longer
11922 required copyprop and move first DCE out of the loop pipeline.
11924 2016-05-18 David Malcolm <dmalcolm@redhat.com>
11927 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
11928 (OBJS-libcommon-target): ...here.
11929 * opts-common.c: Include spellcheck.h.
11930 (cmdline_handle_error): Build a vec of valid options and use it
11931 to suggest provide hints for misspelled arguments.
11933 2016-05-18 Jakub Jelinek <jakub@redhat.com>
11936 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
11937 lhs if it has TREE_ADDRESSABLE type.
11939 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
11942 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
11943 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
11945 2016-05-18 Martin Jambor <mjambor@suse.cz>
11948 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
11949 input for NOP_EXPR pass-through functions.
11950 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
11951 aggregate global constant VAR_DECLs in constant jump functions.
11953 2016-05-18 Martin Jambor <mjambor@suse.cz>
11956 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
11957 from TREE_READONLY parameters.
11959 2016-05-18 Martin Jambor <mjambor@suse.cz>
11962 * cgraph.h (cgraph_indirect_call_info): New field
11963 guaranteed_unmodified.
11964 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
11965 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
11967 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
11968 pass the parameter value to ipa_find_agg_cst_for_param.
11969 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
11970 guaranteed_unmodified, store AA results there instead of bailing out
11972 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
11973 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
11974 (find_constructor_constant_at_offset): New function.
11975 (ipa_find_agg_cst_from_init): Likewise.
11976 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
11977 static initializers of contants, report back through a new paameter
11978 from_global_constant if that was the case.
11979 (try_make_edge_direct_simple_call): Also pass parameter value to
11980 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
11982 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
11983 (ipa_read_indirect_edge_info): Likewise.
11984 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
11985 (ipa_load_from_parm_agg): Likewise.
11987 2016-05-18 Jiong Wang <jiong.wang@arm.com>
11989 PR rtl-optimization/71150
11990 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
11993 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11996 * config/rs6000/constraints.md (wE constraint): New constraint
11997 for a vector constant that can be loaded with XXSPLTIB.
11998 (wM constraint): New constraint for a vector constant of a 1's.
11999 (wS constraint): New constraint for a vector constant that can be
12000 loaded with XXSPLTIB and a vector sign extend instruction.
12001 * config/rs6000/predicates.md (xxspltib_constant_split): New
12002 predicates for wE/wS constraints.
12003 (xxspltib_constant_nosplit): Likewise.
12004 (easy_vector_constant): Add support for constants that can be
12005 loaded via XXSPLTIB.
12006 (all_ones_constant): New predicate for vector constant with all
12008 (splat_input_operand): Add support for ISA 3.0 word splat operations.
12009 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12010 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12011 instruction and possibly with a sign extension.
12012 (output_vec_const_move): Add support for XXSPLTIB. If we are
12013 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12014 instead of XXLXOR/XXLORC.
12015 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12017 (rs6000_legitimize_reload_address): Likewise.
12018 (rs6000_output_move_128bit): Use output_vec_const_move to emit
12020 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12021 combine VSX_M and VSX_M2 into one iterator.
12022 (VSX_M2): Likewise.
12023 (VSINT_84): New iterators for loading constants with XXSPLTIB.
12024 (VSINT_842): Likewise.
12025 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12026 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12027 XXSPLTIB instruction.
12028 (xxspltib_<mode>_nosplit): Likewise.
12029 (xxspltib_<mode>_split): New insn to load up constants with
12030 XXSPLTIB and a sign extend instruction.
12031 (vsx_mov<mode>): Replace single move that handled all vector types
12032 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
12033 moves (when -mvsx-timode is in effect) into the main vector
12034 moves. Eliminate separate moves for <VSr> <VSa>, where the
12035 preferred register class (<VSr>) is listed first, and the
12036 secondary register class (<VSa>) is listed second with a '?' to
12037 discourage use. Prefer loading 0/-1 in any VSX register for ISA
12038 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12039 that if the register was involved in a slow operation, the
12040 clear/set operation does not wait for the slow operation to
12041 finish. Adjust the length attributes for 32-bit mode. Use
12042 rs6000_output_move_128bit and drop the use of the string
12043 instructions for 32-bit movti when -mvsx-timode is in effect. Use
12044 spacing so that the alternatives and attributes don't generate
12045 long lines, and put things in columns, so that it is easier to
12046 match up the operands and attributes with the insn alternatives.
12047 (vsx_mov<mode>_64bit): Likewise.
12048 (vsx_mov<mode>_32bit): Likewise.
12049 (vsx_movti_64bit): Fold movti into normal vector moves.
12050 (vsx_movti_32bit): Likewise.
12051 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12052 splat instructions.
12053 (vsx_splat_v4si_internal): Likewise.
12054 (vsx_splat_v4sf_internal): Likewise.
12055 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12056 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12057 extend vector elements.
12058 (vsx_sign_extend_hi_<mode>): Likewise.
12059 (vsx_sign_extend_si_v2di): Likewise.
12060 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12062 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12063 constraints. Add trailing period to wL documentation.
12065 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
12067 PR middle-end/71020
12068 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12069 * tree-dfa.c (replace_abnormal_ssa_names): New function.
12070 * tree-call-cdce.c: Include tree-dfa.h.
12071 (can_guard_call_p): New function, extracted from...
12072 (can_use_internal_fn): ...here.
12073 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12075 (shrink_wrap_one_built_in_call): Likewise.
12076 (use_internal_fn): Likewise.
12077 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12078 and return void. Call replace_abnormal_ssa_names.
12079 (pass_call_cdce::execute): Check can_guard_call_p during the
12080 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
12081 will always change something.
12083 2016-05-18 Martin Jambor <mjambor@suse.cz>
12086 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12087 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12089 2016-05-18 Martin Jambor <mjambor@suse.cz>
12092 * ipa-inline.h (condition): New field size.
12093 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12094 for comaprison and store it into the new condition.
12095 (evaluate_conditions_for_known_args): Use condition size to check
12096 access sizes for all but CHANGED conditions.
12097 (unmodified_parm_1): New parameter size_p, store access size into it.
12098 (unmodified_parm): Likewise.
12099 (unmodified_parm_or_parm_agg_item): Likewise.
12100 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
12101 (set_cond_stmt_execution_predicate): Extract access sizes and store
12102 them to conditions.
12103 (set_switch_stmt_execution_predicate): Likewise.
12104 (will_be_nonconstant_expr_predicate): Likewise.
12105 (will_be_nonconstant_predicate): Likewise.
12106 (inline_read_section): Stream condition size.
12107 (inline_write_summary): Likewise.
12109 2016-05-18 Richard Biener <rguenther@suse.de>
12111 * tree-ssa-loop-im.c (determine_max_movement): Properly add
12112 condition cost to PHI cost instead of total_cost.
12114 2016-05-18 Martin Liska <mliska@suse.cz>
12117 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
12120 2016-05-18 Richard Biener <rguenther@suse.de>
12122 * lto-streamer.h (LTO_major_version): Bump to 6.
12124 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
12126 * function.c (make_split_prologue_seq, make_prologue_seq,
12127 make_epilogue_seq): New functions, factored out from...
12128 (thread_prologue_and_epilogue_insns): Here.
12130 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
12132 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12133 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
12134 of before. Add a comment.
12136 2016-05-18 Bin Cheng <bin.cheng@arm.com>
12138 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
12139 expression pointer, not pointer to the pointer.
12141 2016-05-18 Jakub Jelinek <jakub@redhat.com>
12143 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
12144 (avx2_pbroadcast<mode>): Add another alternative with v instead
12145 of x constraints in it, using <pbroadcast_evex_isa> isa.
12146 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
12148 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
12149 constraint x instead of v in second alternative, add avx512bw
12152 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
12153 constraint x instead of v in second alternative, add avx512bw
12156 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
12157 constraint x instead of v in second alternative, add avx512bw
12160 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
12161 avx512bw alternative.
12163 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
12165 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
12166 array to 128 chars.
12167 (define_insn "*andnottf3"): Ditto.
12168 (define_insn "*<code><mode>3"/any_logic): Ditto.
12169 (define_insn "*<code>tf3"/any_logic): Ditto.
12170 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
12171 operand to block AVX-512VL insn variant emit when it is not enabled.
12173 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
12175 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
12176 constraint fot SF mode.
12178 2016-05-18 Petr Murzin <petr.murzin@intel.com>
12179 Kirill Yukhin <kirill.yukhin@intel.com>
12181 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
12183 (define_insn "rsqrt14<mode>"): Ditto.
12184 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12185 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
12186 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
12187 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
12188 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
12190 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
12191 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
12192 * config/i386/i386.c (ix86_print_operand): Expand check for size
12193 override codes for Intel syntax.
12195 2016-05-18 Richard Biener <rguenther@suse.de>
12197 PR tree-optimization/71168
12198 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
12199 initialization earlier.
12201 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
12203 * config/aarch64/aarch64-simd.md
12204 (aarch64_reduc_plus_internal<mode>): Rename to...
12205 (reduc_plus_scal): ...This, and remove previous implementation.
12207 2016-05-18 Richard Biener <rguenther@suse.de>
12209 * passes.def: Put late dse and cd_dce in canonical order.
12211 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
12213 * ipa-inline-transform.c (preserve_function_body_p): Look for
12214 first non-thunk clone.
12215 (save_function_body): Save into first non-thunk.
12216 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
12218 (lto_output_node): Inline thunks don't need body in every
12220 * lto-streamer-in.c: Do not fixup thunk clones.
12221 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
12223 * tree-inline.c (copy_bb): Be prepared for target node to be new after
12226 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12228 PR middle-end/63586
12229 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
12230 (reassociate_bb): Call transform_add_to_multiply.
12232 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12234 * config/aarch64/aarch64.c (all_extensions): Removed unused
12237 2016-05-17 Nathan Sidwell <nathan@acm.org>
12239 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
12240 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
12242 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
12244 PR tree-optimization/54579
12245 PR middle-end/55299
12246 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
12248 2016-05-17 Marek Polacek <polacek@redhat.com>
12251 * tree-inline.c (expand_call_inline): Call
12252 maybe_remove_unused_call_args.
12254 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
12256 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
12257 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
12258 * doc/md.texi (fmin@var{m}3): Likewise.
12260 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
12262 * match.pd (X & C): New transformation.
12264 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
12266 * match.pd (~X & Y): New transformation.
12268 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
12270 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
12271 information for new SSA_NAME.
12272 (simplify_conversion_using_ranges): Get range through get_range_info
12273 instead of get_value_range.
12275 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12277 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
12278 Remove inline assembly.
12279 (vmvn_s16): Likewise.
12280 (vmvn_s32): Likewise.
12281 (vmvn_u8): Likewise.
12282 (vmvn_u16): Likewise.
12283 (vmvn_u32): Likewise.
12284 (vmvnq_s8): Likewise.
12285 (vmvnq_s16): Likewise.
12286 (vmvnq_s32): Likewise.
12287 (vmvnq_u8): Likewise.
12288 (vmvnq_u16): Likewise.
12289 (vmvnq_u32): Likewise.
12290 (vmvn_p8): Likewise.
12291 (vmvnq_p16): Likewise.
12293 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12295 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
12297 (vmul_n_s16): Likewise.
12298 (vmul_n_s32): Likewise.
12299 (vmul_n_u16): Likewise.
12300 (vmul_n_u32): Likewise.
12301 (vmulq_n_f32): Likewise.
12302 (vmulq_n_f64): Likewise.
12303 (vmulq_n_s16): Likewise.
12304 (vmulq_n_s32): Likewise.
12305 (vmulq_n_u16): Likewise.
12306 (vmulq_n_u32): Likewise.
12308 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12310 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
12311 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
12313 2016-05-17 Jiong Wang <jiong.wang@arm.com>
12315 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
12316 to *aarch64_fma4_elt_from_dup<mode>.
12317 (*aarch64_fnma4_elt_to_128df): Rename to
12318 *aarch64_fnma4_elt_from_dup<mode>.
12319 * config/aarch64/arm_neon.h (vfma_n_f64): New.
12320 (vfms_n_f32): Likewise.
12321 (vfms_n_f64): Likewise.
12322 (vfmsq_n_f32): Likewise.
12323 (vfmsq_n_f64): Likewise.
12325 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
12327 * wide-int.h: Change fixed_wide_int_storage from class to struct.
12329 2016-05-17 Richard Biener <rguenther@suse.de>
12331 PR tree-optimization/71132
12332 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
12333 Only add control dependences for blocks in the loop.
12334 (build_rdg): Adjust.
12335 (generate_code_for_partition): Return whether loop should
12336 be destroyed and delay that.
12337 (distribute_loop): Likewise.
12338 (pass_loop_distribution::execute): Record loops to be destroyed
12339 and perform delayed destroying of loops.
12341 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12344 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
12346 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
12348 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
12350 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
12353 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
12354 insertion point for instructions generated by validize_mem.
12356 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
12358 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
12361 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
12363 * config/aarch64/aarch64.c
12364 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
12365 rather than a macro.
12367 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
12369 * doc/invoke.texi (AArch64 Options): Various updates.
12371 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12373 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
12374 into instrumentation thunks.
12375 * cif-code.def (CIF_CHKP): New.
12377 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
12379 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
12381 2016-05-16 Martin Jambor <mjambor@suse.cz>
12383 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
12384 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
12386 2016-05-16 Marek Polacek <polacek@redhat.com>
12388 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
12391 2016-05-16 Martin Jambor <mjambor@suse.cz>
12394 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
12395 the outlined kernel function.
12397 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
12399 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
12400 (ISA_HAS_DLSA): Ditto.
12402 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
12404 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
12406 2016-05-16 Nathan Sidwell <nathan@acm.org>
12408 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
12409 (nvptx_name_replacement): Restore. Add comment.
12410 (write_fn_proto, write_fn_proto_from_insn,
12411 nvptx_output_call_insn): Restore
12412 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
12414 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
12416 * config/aarch64/aarch64.md
12417 (add<mode>3_compareC_cconly_imm): Remove use of %w.
12418 (add<mode>3_compareC_imm): Likewise.
12419 (<optab>si3_uxtw): Split into register and immediate variants.
12420 (andsi3_compare0_uxtw): Likewise.
12421 (and<mode>3_compare0): Likewise.
12422 (and<mode>3nr_compare0): Likewise.
12423 (stack_protect_test_<mode>): Don't use %x for memory operands.
12425 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
12427 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
12429 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
12431 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12432 Split integer shifts into shift_reg and bfm.
12433 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
12434 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12435 (ror<mode>3_insn): Likewise.
12436 (<optab>si3_insn_uxtw): Likewise.
12437 (<optab><mode>3_insn): Change to rotate_imm.
12438 (extr<mode>5_insn_alt): Likewise.
12439 (extrsi5_insn_uxtw): Likewise.
12440 (extrsi5_insn_uxtw_alt): Likewise.
12442 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
12444 * doc/tm.texi: Regenerate.
12445 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
12446 (TARGET_INVALID_RETURN_TYPE): Remove.
12447 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
12448 TARGET_INVALID_RETURN_TYPE.
12449 * target.def (invalid_parameter_type): Remove.
12450 (invalid_return_type): Remove.
12452 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12454 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
12455 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
12457 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
12459 (preserve_function_body_p): No need to preserve function body
12460 * cif-codes.def (CIF_THUNK): Remove.
12461 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
12463 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12465 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
12467 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12469 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
12472 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12474 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
12475 (inline_small_functions): Do not look for function symbol when
12478 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
12480 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
12483 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
12484 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12485 Jiong Wang <jiong.wang@arm.com>
12487 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
12488 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
12489 Define __ARM_FP16_ARGS when appropriate.
12490 * config/arm/arm.c (arm_invalid_parameter_type): Remove
12492 (arm_invalid_return_type): Likewise.
12493 (TARGET_INVALID_PARAMETER_TYPE): Remove.
12494 (TARGET_INVALID_RETURN_TYPE): Remove.
12495 (aapcs_vfp_sub_candidate): Allow HFmode.
12496 (aapcs_vfp_allocate): Add comment. Support HFmode.
12497 (aapcs_vfp_allocate_return_reg): Likewise.
12498 (struct aapcs_cp_arg_layout): Slightly reword comments for
12499 is_return_candidate and allocate_return_reg.
12500 (output_mov_vfp): Update assert.
12501 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
12503 (arm_invalid_parameter_type): Remove.
12504 (amr_invalid_return_type): Remove.
12505 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
12506 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
12507 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
12509 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
12511 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
12512 * config/aarch64/arch64-protos.h
12513 (aarch64_legitimize_reload_address): Remove.
12514 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
12517 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
12519 * configure.ac: Add ACX_NONCANONICAL_HOST.
12520 * configure: Regenerate.
12521 * Makefile.in: Set host_noncanonical.
12523 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
12526 * config/i386/i386.md (*movtf_internal): Before register allocation,
12527 do not allow FP constants for CM_MEDIUM memory model, allow only
12528 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
12529 (*movxf_internal): Ditto.
12530 (*movdf_internal): Ditto.
12531 (*movsf_internal): Ditto.
12533 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
12535 PR rtl-optimization/67483
12536 * combine.c (make_compound_operation): Don't call extract_left_shift
12537 with negative shift amounts.
12539 2016-05-13 Jakub Jelinek <jakub@redhat.com>
12542 * fold-const.c (fold_checksum_tree): Allow modification
12543 of TYPE_ALIAS_SET during folding.
12545 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
12546 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
12547 (ix86_split_to_parts): Likewise. Fix up formatting.
12549 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
12551 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
12552 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
12555 2016-05-13 Nathan Sidwell <nathan@acm.org>
12557 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
12558 (nvptx_name_replacement): Delete.
12559 (write_fn_proto, write_fn_proto_from_insn,
12560 nvptx_output_call_insn): Remove nvptx_name_replacement call.
12561 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
12562 * langhooks.c (add_builtin_funcction_common): Call
12563 targetm.mangle_decl_assembler_name.
12565 * config/nvptx/nvptx.c (write_fn_proto): Handle
12566 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
12568 2016-05-13 Martin Liska <mliska@suse.cz>
12570 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
12571 and PRIu64 in printf format.
12573 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12575 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
12578 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12580 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12581 Change --param max-completely-peeled-times to
12582 --param max-completely-peel-times in dump file printing.
12584 2016-05-13 Richard Biener <rguenther@suse.de>
12586 PR tree-optimization/42587
12587 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
12588 (find_bswap_or_nop_1): Likewise.
12589 (bswap_replace): Likewise.
12591 2016-05-13 Martin Liska <mliska@suse.cz>
12593 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
12594 Initialize a variable with default value.
12596 2016-05-13 Martin Liska <mliska@suse.cz>
12598 * doc/invoke.texi: Enhance explanation of error recovery
12601 2016-05-13 Martin Liska <mliska@suse.cz>
12603 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
12604 (struct cost_pair): Change inv_expr_id (int) to inv_expr
12605 (iv_inv_expr_ent *).
12606 (struct iv_inv_expr_ent): Comment struct fields.
12607 (sort_iv_inv_expr_ent): New function.
12608 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
12609 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
12610 a hash_map between iv_inv_expr_ent and number of usages.
12611 (niter_for_exit): Fix coding style.
12612 (tree_ssa_iv_optimize_init): Use renamed variable.
12613 (determine_base_object): Fix coding style.
12614 (alloc_iv): Likewise.
12615 (find_interesting_uses_outside): Likewise.
12616 (add_candidate_1): Likewise.
12617 (add_standard_iv_candidates): Likewise.
12618 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
12619 (prepare_decl_rtl): Fix coding style.
12620 (get_address_cost): Likewise.
12621 (get_shiftadd_cost): Likewise.
12622 (force_expr_to_var_cost): Likewise.
12623 (compare_aff_trees): Likewise.
12624 (get_expr_id): Restructure the function.
12625 (get_loop_invariant_expr_id): Renamed to
12626 get_loop_invariant_expr.
12627 (get_computation_cost_at): Replace usage of inv_expr_id with
12629 (get_computation_cost): Likewise.
12630 (determine_group_iv_cost_generic): Likewise.
12631 (determine_group_iv_cost_address): Likewise.
12632 (iv_period): Fix coding style.
12633 (iv_elimination_compare_lt): Likewise.
12634 (may_eliminate_iv): Likewise.
12635 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
12637 (determine_group_iv_costs): Dump invariant expressions.
12638 (iv_ca_recount_cost): Use the newly added hash_map.
12639 (iv_ca_set_remove_invariants): Fix coding style.
12640 (iv_ca_set_add_invariants): Fix coding style.
12641 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
12643 (iv_ca_set_cp): Likewise.
12644 (iv_ca_new): Initialize the newly added hash_map and remove
12645 initialization of fields.
12646 (iv_ca_free): Delete the hash_map.
12647 (iv_ca_dump): Dump invariant expressions.
12648 (iv_ca_extend): Fix coding style.
12649 (try_add_cand_for): Likewise.
12650 (create_new_ivs): Dump information about # of avg iterations and
12651 # of used invariant expressions.
12652 (rewrite_use_compare): Fix coding style.
12653 (free_loop_data): Set default value for max_inv_expr_id.
12655 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
12657 * cse.c (rest_of_handle_cse): Use cleanup_cfg
12658 returned value cse_cfg_altered computation.
12659 (rest_of_handle_cse2): Likewise.
12660 (rest_of_handle_cse_after_global_opts): Likewise.
12662 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12665 * config/arm/arm.c (arm32_output_mi_thunk): New.
12666 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
12667 to split Thumb1 vs TARGET_32BIT functionality.
12668 (arm_thumb1_mi_thunk): New.
12670 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12672 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
12675 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12678 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
12680 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
12682 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
12683 (expand_builtin_trap): Emit a regular call.
12684 (set_builtin_user_assembler_name): Remove obsolete cases.
12685 * dse.c (scan_insn): Adjust.
12686 * except.c: Include calls.h.
12687 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
12688 emit a regular call to setjmp.
12689 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
12690 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
12691 (emit_block_move_via_libcall): Delete.
12692 (block_move_fn): Delete.
12693 (init_block_move_fn): Likewise.
12694 (emit_block_move_libcall_fn): Likewise.
12695 (emit_block_op_via_libcall): New function.
12696 (set_storage_via_libcall): Tidy up and use memset builtin.
12697 (block_clear_fn): Delete.
12698 (init_block_clear_fn): Likewise.
12699 (clear_storage_libcall_fn): Likewise.
12700 (expand_assignment): Call emit_block_move_via_libcall.
12701 Do not include gt-expr.h.
12702 * expr.h (emit_block_op_via_libcall): Declare.
12703 (emit_block_copy_via_libcall): New inline function.
12704 (emit_block_move_via_libcall): Likewise.
12705 (emit_block_comp_via_libcall): Likewise.
12706 (block_clear_fn): Delete.
12707 (init_block_move_fn): Likewise.
12708 (init_block_clear_fn): Likewise.
12709 (emit_block_move_via_libcall): Likewise.
12710 (set_storage_via_libcall): Add default parameter value.
12711 * libfuncs.h (enum libfunc_index): Remove obsolete values.
12712 (abort_libfunc): Delete.
12713 (memcpy_libfunc): Likewise.
12714 (memmove_libfunc): Likewise.
12715 (memcmp_libfunc): Likewise.
12716 (memset_libfunc): Likewise.
12717 (setbits_libfunc): Likewise.
12718 (setjmp_libfunc): Likewise.
12719 (longjmp_libfunc): Likewise.
12720 (profile_function_entry_libfunc): Likewise.
12721 (profile_function_exit_libfunc): Likewise.
12722 (gcov_flush_libfunc): Likewise.
12723 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
12724 and DECL_VISIBILITY on the declaration.
12725 (init_optabs): Do not initialize obsolete libfuncs.
12726 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
12727 * tree-core.h (ECF_RET1): Define.
12728 (ECF_TM_PURE): Adjust.
12729 (ECF_TM_BUILTIN): Likewise.
12730 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
12731 (build_common_builtin_nodes): Initialize abort builtin.
12732 Add ECF_RET1 on memcpy, memmove and memset builtins.
12733 Pass final flags for alloca and alloca_with_align builtins.
12734 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
12736 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
12737 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
12738 set_storage_via_libcall and call emit_block_copy_via_libcall.
12740 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
12742 * config/i386/i386.md (*call_got_x32): Change operand 0 to
12743 DImode before it is passed to ix86_output_call_operand.
12744 (*call_value_got_x32): Ditto for operand 1.
12746 2016-05-12 Jiong Wang <jiong.wang@arm.com>
12748 PR rtl-optimization/70904
12749 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
12750 reload for wide mode.
12752 2016-05-12 Marek Polacek <polacek@redhat.com>
12755 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
12756 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
12757 * langhooks.h (incomplete_type_error): Likewise.
12758 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
12759 parameter, pass it down to incomplete_type_error.
12760 * tree.h (size_in_bytes): New inline overload.
12761 (size_in_bytes_loc): Renamed from size_in_bytes.
12763 2016-05-12 Richard Biener <rguenther@suse.de>
12765 PR tree-optimization/71059
12766 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
12767 nary before looking up or entering the expression into the VN
12769 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
12770 Make sure to re-use NARYs without result as inserted by
12773 2016-05-12 Richard Biener <rguenther@suse.de>
12775 PR tree-optimization/71062
12776 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
12778 * tree-ssa-structalias.c (set_uids_in_ptset): Set
12779 vars_contains_restrict if the var is a restrict tag.
12780 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
12781 do not disambiguate pointers against it.
12782 (dump_points_to_solution): Re-structure and adjust for new
12783 vars_contains_restrict flag.
12784 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
12786 2016-05-12 Martin Liska <mliska@suse.cz>
12788 * doc/invoke.texi: Explain connection between
12789 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
12791 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
12793 PR tree-optimization/71006
12794 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
12795 consider COND_EXPR as a mask producer.
12797 2016-05-12 Marek Polacek <polacek@redhat.com>
12800 * opts.c (common_handle_option): Detect missing argument for --help^.
12802 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12805 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
12806 when popping the PC and within an interrupt handler routine.
12807 Add missing tab to output of "ldmfd".
12808 (output_return_instruction): Output LDMFD with SP update rather
12809 than POP when returning from interrupt handler.
12811 2016-05-12 Jakub Jelinek <jakub@redhat.com>
12813 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
12814 TARGET_64BIT && TARGET_AVX512DQ.
12815 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
12816 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
12817 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
12818 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
12819 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
12820 (*vec_extractv4si_zext): Add avx512dq alternative.
12821 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
12822 use v instead of x constraint in other alternatives where possible.
12824 * config/i386/sse.md (sse2_loadld): Use v instead of x
12825 constraint in alternatives 0,1,4.
12827 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
12828 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
12829 v constraints instead of x and <pinsr_evex_isa> isa attribute.
12832 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
12833 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
12834 is not emitted unless TARGET_AVX512BW.
12835 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
12836 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
12837 for the result operand.
12839 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
12840 constraint instead of x in avx alternatives. Use maybe_evex instead
12843 * config/i386/constraints.md (Yv): New constraint.
12844 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
12845 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
12846 * config/i386/i386.md (avx512fvecmode): New mode attr.
12847 (*pushtf): Use v constraint instead of x.
12848 (*movtf_internal): Likewise. For TARGET_AVX512VL and
12849 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
12850 (*absneg<mode>2): Use Yv constraint instead of x constraint.
12851 (*absnegtf2_sse): Likewise.
12852 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
12853 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
12854 avx512f alternatives.
12855 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
12857 2016-05-12 Richard Biener <rguenther@suse.de>
12859 PR tree-optimization/71060
12860 * tree-data-ref.c (initialize_data_dependence_relation): Do not
12861 require exact match of DR_BASE_OBJECT but only matching address and
12864 2016-05-12 Richard Biener <rguenther@suse.de>
12866 PR tree-optimization/70986
12867 * cfganal.c: Include cfgloop.h.
12868 (dfs_find_deadend): Prefer to take edges exiting loops.
12870 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12872 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
12873 compile and run time.
12875 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
12878 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
12880 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
12882 * config/i386/i386.c (legitimize_pic_address): Use
12883 copy_to_suggested_reg instead of gen_movsi.
12885 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12887 * config/rs6000/predicates.md (quad_memory_operand): Move most of
12888 the code into quad_address_p and call it to share code with
12889 vsx_quad_dform_memory_operand.
12890 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
12892 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
12893 bit instead of being a separate word. Split -mpower9-dform into
12894 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
12895 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
12896 for the register class supporting 128-bit quad word memory offsets.
12897 (mode_supports_vsx_dform_quad): Helper function to return if the
12898 register class uses quad word memory offsets.
12899 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
12900 (rs6000_debug_reg_global): Always print if we are using LRA or not.
12901 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
12902 instructions are enabled, set up the appropriate addr_masks for
12904 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
12905 -mpower9-dform-scalar, instead of -mpower9-dform.
12906 (rs6000_option_override_internal): Split -mpower9-dform into two
12907 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
12908 -mpower9-dform switch sets or clears both. If we are not using
12909 the LRA register allocator, do not enable -mpower9-dform-vector by
12910 default. If we are using LRA, enable -mpower9-dform-vector and
12911 -mvsx-timode if it is appropriate. Issue a warning if either
12912 -mpower9-dform-vector or -mvsx-timode are explicitly used without
12914 (quad_address_offset_p): New helper function to return if the
12915 offset is legal for quad word memory instructions.
12916 (quad_address_p): New function to determin if GPR or vector
12917 register quad word memory addresses are legal.
12918 (mem_operand_gpr): Validate quad word address offsets.
12919 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
12920 d-form (register + offset) instructions.
12921 (offsettable_ok_by_alignment): Likewise.
12922 (rs6000_legitimate_offset_address_p): Likewise.
12923 (legitimate_lo_sum_address_p): Likewise.
12924 (rs6000_legitimize_address): Likewise.
12925 (rs6000_legitimize_reload_address): Add more debug statements for
12927 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
12928 d-form instructions.
12929 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
12930 d-form instructions. Distinguish different cases in debug
12931 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
12932 d-form instructions.
12933 (rs6000_preferred_reload_class): Likewise.
12934 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
12935 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
12936 of the ISA 2.06 indexed memory instructions.
12937 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
12938 use them to save/restore the saved vector registers instead of
12939 using Altivec instructions.
12940 (rs6000_emit_epilogue): Likewise.
12941 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
12942 (rs6000_opt_masks): Split -mpower9-dform into
12943 -mpower9-dform-scalar and -mpower9-dform-vector.
12944 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
12946 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
12947 ISA 3.0 vector indexed memory instructions, and fold the code into
12948 the normal mov<mode> patterns.
12949 (p9_vecstore_<mode>): Likewise.
12950 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
12952 (vsx_movti_64bit): Likewise.
12953 (vsx_movti_32bit): Likewise.
12954 * config/rs6000/constraints.md (wO constraint): New constraint for
12955 ISA 3.0 vector d-form support.
12956 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
12957 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
12958 include -mpower9-dform-vector until we switch over to LRA.
12959 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
12960 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
12961 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
12962 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
12963 for -mpower9-dform and -mlra.
12964 * doc/md.texi (wO constraint): Document wO constraint.
12966 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
12968 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
12969 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
12970 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
12971 Move handling of non-insn arguments inline into the sole user:
12972 (output_trans_func): ...here.
12973 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
12974 in emitted function prototype.
12975 (output_internal_insn_latency_func): Ditto. Simplify.
12976 (output_internal_maximal_insn_latency_func): Ditto. Delete
12977 always-unused argument.
12978 (output_insn_latency_func): Ditto.
12979 (output_maximal_insn_latency_func): Ditto.
12981 2016-05-11 Richard Biener <rguenther@suse.de>
12983 PR tree-optimization/71055
12984 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
12985 sth with precision not equal to access size verify we don't chop
12988 2016-05-11 Richard Biener <rguenther@suse.de>
12991 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
12992 (dwarf2out_finish): Move retry_incomplete_types call ...
12993 (dwarf2out_early_finish): ... here.
12995 2016-05-11 Richard Biener <rguenther@suse.de>
12997 PR middle-end/71002
12998 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
12999 if the langhook insists on it.
13000 * fold-const.c (make_bit_field_ref): Add arg for the original
13001 reference and preserve its alias-set.
13002 (decode_field_reference): Take exp by reference and adjust it
13003 to the original memory reference.
13004 (optimize_bit_field_compare): Adjust callers.
13005 (fold_truth_andor_1): Likewise.
13006 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13008 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
13010 PR middle-end/70807
13011 * cfgrtl.h (delete_insn_and_edges): Now return bool.
13012 * cfgrtl.c (delete_insn_and_edges): Likewise.
13013 * config/i386/i386.c (convert_scalars_to_vector): Remove
13015 * cse.c (cse_insn): Compute cse_cfg_altered.
13016 (delete_trivially_dead_insns): Likewise.
13017 (cse_cc_succs): Likewise.
13018 (rest_of_handle_cse): Free dominance info if required.
13019 (rest_of_handle_cse2): Likewise.
13020 (rest_of_handle_cse_after_global_opts): Likewise.
13022 2016-05-11 Alan Modra <amodra@gmail.com>
13024 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13025 abi_v4_pass_in_fpr): New functions.
13026 (rs6000_function_arg_boundary): Exclude complex IBM long double
13027 from 64-bit alignment when ABI_V4.
13028 (rs6000_function_arg, rs6000_function_arg_advance_1,
13029 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13031 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
13033 PR rtl-optimization/71028
13034 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13035 jump with just a return in the fallthrough block if the branch
13036 block contains just a return as well.
13038 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
13040 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13041 * match.pd ((X & Y) ^ Y): ... this.
13042 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13043 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13045 2016-05-10 David Malcolm <dmalcolm@redhat.com>
13047 * read-md.c (require_char_ws): New function.
13048 (read_string): Simplify using require_char_ws.
13049 (handle_constants): Likewise.
13050 (handle_enum): Likewise.
13051 (handle_file): Likewise.
13052 * read-md.h (require_char_ws): New declaration.
13053 * read-rtl.c (read_conditions): Simplify using require_char_ws.
13054 (read_mapping): Likewise.
13055 (read_rtx_code): Likewise.
13056 (read_nested_rtx): Likewise.
13058 2016-05-10 James Norris <jnorris@codesourcery.com>
13060 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13061 if offloading is enabled and -fopenacc or -fopenmp is specified.
13062 (CRTOFFLOADEND): Likewise.
13063 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13064 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13066 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
13068 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13069 gotoff_operand code paths. Use copy_to_suggested_regs and
13070 expand_simple_binop where appropriate. Cleanup.
13072 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
13075 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13077 (dimode_scalar_chain::vector_const_cost): New.
13078 (dimode_scalar_chain::compute_convert_gain): Handle constants.
13079 (dimode_scalar_chain::convert_op): Likewise.
13080 (dimode_scalar_chain::convert_insn): Likewise.
13082 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
13084 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13085 unary operation, not a binary one.
13087 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
13089 PR middle-end/70877
13090 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13091 calls with type casted fndecl.
13093 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
13095 PR tree-optimization/70786
13096 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
13097 * calls.c (initialize_argument_information): Bind bounds
13098 with corresponding args passed by reference.
13100 2016-05-10 Jakub Jelinek <jakub@redhat.com>
13103 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
13104 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
13105 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
13108 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13111 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
13112 code for a zero scale factor.
13113 (vsx_xvcvdpuxds_scale): Likewise.
13115 2016-05-10 David Malcolm <dmalcolm@redhat.com>
13117 * diagnostic-show-locus.c (layout::layout): Call show_ruler
13118 if show_ruler_p was set on the context.
13119 (layout::show_ruler): New method.
13120 * diagnostic.h (struct diagnostic_context): Add field
13123 2016-05-10 Richard Biener <rguenther@suse.de>
13125 PR tree-optimization/71039
13126 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
13127 (chk_uses): New function.
13128 (propagate_with_phi): Verify we can safely replicate the lhs of an
13129 aggregate assignment on all incoming edges.
13131 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
13133 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
13135 (rx_atomic_sequence): New class.
13136 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
13137 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
13139 (rx_atomic_sequence::rx_atomic_sequence,
13140 rx_atomic_sequence::~rx_atomic_sequence): New functions.
13141 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
13142 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
13143 CTRLREG_INTB): New constants.
13144 (FETCHOP): New code iterator.
13145 (fethcop_name, fetchop_name2): New iterator code attributes.
13146 (QIHI): New mode iterator.
13147 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
13148 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
13149 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
13151 2016-05-10 Martin Liska <mliska@suse.cz>
13153 * tree-inline.c (remap_dependence_clique): Do not remap
13154 debugging statements.
13156 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13158 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
13159 ("*fixuns_truncdfdi2_z13")
13160 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
13161 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
13162 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
13164 2016-05-10 Richard Biener <rguenther@suse.de>
13166 PR tree-optimization/70497
13167 PR tree-optimization/28367
13168 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
13170 (visit_reference_op_load): ... here.
13171 (vn_reference_lookup_3): Use it to handle subreg-like accesses
13172 with simplified BIT_FIELD_REFs.
13173 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
13174 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
13177 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
13179 * dwarf2out.c (add_abstract_origin_attribute): Adjust
13180 documentation comment. For BLOCK nodes, add a
13181 DW_AT_abstract_origin attribute that points to the DIE generated
13182 for the origin BLOCK.
13183 (gen_lexical_block_die): Call add_abstract_origin_attribute for
13184 blocks from inlined functions.
13186 2016-05-10 Alan Modra <amodra@gmail.com>
13189 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
13190 regrename modifying insns saving lr before __morestack call.
13191 * config/rs6000/rs6000.md (split_stack_return): Similarly for
13192 insns restoring lr after __morestack call.
13194 2016-05-09 Jakub Jelinek <jakub@redhat.com>
13196 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
13197 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
13199 * config/i386/sse.md (vec_interleave_high<mode>,
13200 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
13201 <avx512>_vpermt2var<mode>3_maskz): Likewise.
13203 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
13205 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
13206 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
13207 parallel reassociation for power8 and forward.
13209 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
13211 * config/i386/i386.md (absneg splitters with general regs): Use
13212 general_reg_operand predicate.
13213 (btsq peephole2): Use x86_64_immediate_operand to check if new
13214 value is suitable for immediate operand. Generate emitted insn
13215 using RTL expressions.
13216 (btcq peephole2): Ditto.
13217 (btrq peephole2): Ditto. Generate correct immediate operand
13220 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
13222 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
13225 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
13227 * tree-affine.c (wide_int_constant_multiple_p): Add missing
13228 pointer dereference.
13230 2016-05-09 Richard Biener <rguenther@suse.de>
13232 PR tree-optimization/70985
13233 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
13234 op0 isn't a gimple register.
13236 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
13238 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
13239 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
13240 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
13241 (i6400_fpu_mult): New cpu units.
13242 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
13243 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
13244 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
13245 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
13246 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
13247 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
13248 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
13249 (i6400_msa_long_float4, i6400_msa_long_float5)
13250 (i6400_msa_long_float8, i6400_msa_fdiv_df)
13251 (i6400_msa_fdiv_sf): New reservations.
13252 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
13253 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
13254 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
13255 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
13256 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
13257 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
13258 (msa_short_cmp, msa_short_float2, msa_short_logic3)
13259 (msa_short_store4, msa_long_load, msa_short_store)
13260 (msa_long_logic, msa_long_float2, msa_long_float4)
13261 (msa_long_float5, msa_long_float8, msa_long_mult)
13262 (msa_long_fdiv, msa_long_div): New reservations.
13264 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
13265 Sameera Deshpande <sameera.deshpande@imgtec.com>
13266 Matthew Fortune <matthew.fortune@imgtec.com>
13267 Graham Stott <graham.stott@imgtec.com>
13268 Chao-ying Fu <chao-ying.fu@imgtec.com>
13270 * config.gcc: Add MSA header file for mips*-*-* target.
13271 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
13272 (Ubv8i, Urv8): New constraints.
13273 * config/mips/mips-ftypes.def: Add function types for MSA
13275 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
13276 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
13277 * config/mips/mips-msa.md: New file.
13278 * config/mips/mips-protos.h
13279 (mips_split_128bit_const_insns): New prototype.
13280 (mips_msa_idiv_insns): Likewise.
13281 (mips_split_128bit_move): Likewise.
13282 (mips_split_128bit_move_p): Likewise.
13283 (mips_split_msa_copy_d): Likewise.
13284 (mips_split_msa_insert_d): Likewise.
13285 (mips_split_msa_fill_d): Likewise.
13286 (mips_expand_msa_branch): Likewise.
13287 (mips_const_vector_same_val_p): Likewise.
13288 (mips_const_vector_same_bytes_p): Likewise.
13289 (mips_const_vector_same_int_p): Likewise.
13290 (mips_const_vector_shuffle_set_p): Likewise.
13291 (mips_const_vector_bitimm_set_p): Likewise.
13292 (mips_const_vector_bitimm_clr_p): Likewise.
13293 (mips_msa_vec_parallel_const_half): Likewise.
13294 (mips_msa_output_division): Likewise.
13295 (mips_ldst_scaled_shift): Likewise.
13296 (mips_expand_vec_cond_expr): Likewise.
13297 * config/mips/mips.c (enum mips_builtin_type): Add
13298 MIPS_BUILTIN_MSA_TEST_BRANCH.
13299 (mips_gen_const_int_vector_shuffle): New prototype.
13300 (mips_const_vector_bitimm_set_p): New function.
13301 (mips_const_vector_bitimm_clr_p): Likewise.
13302 (mips_const_vector_same_val_p): Likewise.
13303 (mips_const_vector_same_bytes_p): Likewise.
13304 (mips_const_vector_same_int_p): Likewise.
13305 (mips_const_vector_shuffle_set_p): Likewise.
13306 (mips_symbol_insns): Forbid loading symbols via immediate for
13308 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
13310 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
13312 (mips_lx_address_p): Add support load indexed address for MSA.
13313 (mips_address_insns): Add calculation of instructions needed for
13314 stores and loads for MSA.
13315 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
13316 CONST_VECTOR for MSA and let it fall through.
13317 (mips_ldst_scaled_shift): New function.
13318 (mips_subword_at_byte): Likewise.
13319 (mips_msa_idiv_insns): Likewise.
13320 (mips_legitimize_move): Validate MSA moves.
13321 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
13322 calculation of costs for MSA division.
13323 (mips_split_move_p): Check if MSA moves need splitting.
13324 (mips_split_move): Split MSA moves if necessary.
13325 (mips_split_128bit_move_p): New function.
13326 (mips_split_128bit_move): Likewise.
13327 (mips_split_msa_copy_d): Likewise.
13328 (mips_split_msa_insert_d): Likewise.
13329 (mips_split_msa_fill_d): Likewise.
13330 (mips_output_move): Handle MSA moves.
13331 (mips_expand_msa_branch): New function.
13332 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
13333 Reinstate 'y' modifier.
13334 (mips_file_start): Add MSA .gnu_attribute.
13335 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
13337 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
13338 (mips_class_max_nregs): Add register size for MSA supported mode.
13339 (mips_cannot_change_mode_class): Allow conversion between MSA
13340 vector modes and TImode.
13341 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
13343 (mips_secondary_reload_class): Force MSA loads/stores via memory.
13344 (mips_preferred_simd_mode): Add preffered modes for MSA.
13345 (mips_vector_mode_supported_p): Add MSA supported modes.
13346 (mips_autovectorize_vector_sizes): New function.
13347 (mips_msa_output_division): Likewise.
13348 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
13349 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
13350 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
13351 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
13352 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
13353 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
13354 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
13355 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
13356 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
13357 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
13358 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
13359 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
13360 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
13361 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
13362 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
13363 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
13364 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
13365 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
13366 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
13367 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
13368 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
13369 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
13370 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
13371 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
13372 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
13373 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
13374 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
13375 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
13376 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
13377 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
13378 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
13379 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
13380 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
13381 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
13382 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
13383 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
13384 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
13385 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
13386 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
13387 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
13388 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
13389 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
13390 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
13391 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
13392 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13393 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13394 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13395 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13396 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13397 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13398 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13399 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13400 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
13401 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
13402 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
13403 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
13404 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
13405 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
13406 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
13407 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
13408 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
13409 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
13410 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
13411 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
13412 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
13413 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
13414 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
13415 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
13416 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
13417 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
13418 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
13419 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
13420 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
13421 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
13422 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
13423 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
13424 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
13425 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
13426 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
13427 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
13428 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
13429 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
13430 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
13431 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
13432 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
13433 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
13434 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
13435 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
13436 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
13437 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
13438 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
13439 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
13440 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
13441 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
13442 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
13443 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
13444 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
13445 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
13446 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
13447 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
13448 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
13449 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
13450 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
13451 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
13452 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
13453 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
13454 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
13455 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
13456 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
13457 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
13458 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
13459 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
13460 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
13461 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
13462 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
13463 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
13464 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
13465 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
13466 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
13467 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
13468 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
13469 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
13470 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
13471 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
13472 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
13473 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
13474 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
13475 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
13476 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
13477 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
13478 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
13479 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
13480 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
13481 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
13482 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
13483 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
13484 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
13485 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
13486 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
13487 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
13488 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
13489 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
13490 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
13491 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
13492 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
13493 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
13494 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
13495 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
13496 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
13497 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
13498 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
13500 (mips_get_builtin_decl_index): New array.
13501 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
13502 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
13503 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
13504 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
13505 (mips_init_builtins): Initialize mips_get_builtin_decl_index
13507 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13509 (mips_expand_builtin_insn): Prepare operands for
13510 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
13511 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
13512 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
13513 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
13514 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
13515 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
13516 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
13517 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
13518 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
13519 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
13520 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
13521 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
13522 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
13523 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
13524 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
13525 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
13526 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
13527 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
13528 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
13529 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
13530 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
13531 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
13532 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
13533 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
13534 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
13535 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
13536 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
13537 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
13538 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
13539 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
13540 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
13541 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
13542 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
13543 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
13544 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
13545 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
13546 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
13547 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
13548 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
13549 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
13550 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
13551 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
13552 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
13553 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
13554 These are set implicitly and an error is reported if overridden.
13555 (mips_expand_builtin_msa_test_branch): New function.
13556 (mips_expand_msa_shuffle): Likewise.
13557 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
13558 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
13559 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
13560 (mips_expand_vec_unpack): Add support for MSA.
13561 (mips_expand_vector_init): Likewise.
13562 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
13563 instead of const0_rtx.
13564 (mips_msa_vec_parallel_const_half): New function.
13565 (mips_gen_const_int_vector): Likewise.
13566 (mips_gen_const_int_vector_shuffle): Likewise.
13567 (mips_expand_msa_cmp): Likewise.
13568 (mips_expand_vec_cond_expr): Likewise.
13569 * config/mips/mips.h
13570 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
13571 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
13573 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
13574 (ISA_HAS_MSA): New macro.
13575 (UNITS_PER_MSA_REG): Likewise.
13576 (BITS_PER_MSA_REG): Likewise.
13577 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
13578 (MSA_REG_FIRST): New macro.
13579 (MSA_REG_LAST): Likewise.
13580 (MSA_REG_NUM): Likewise.
13581 (MSA_REG_P): Likewise.
13582 (MSA_REG_RTX_P): Likewise.
13583 (MSA_SUPPORTED_MODE_P): Likewise.
13584 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
13585 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
13586 * config/mips/mips.md: Include mips-msa.md.
13587 (alu_type): Add simd_add.
13588 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
13589 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
13590 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
13591 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
13592 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
13593 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
13594 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
13595 simd_move, simd_load, simd_store. Choose "multi" for moves
13597 (qword_mode): New attribute.
13598 (insn_count): Add instruction count for quad moves.
13599 Increase the count for MIPS SIMD division.
13600 (UNITMODE): Add UNITMODEs for vector types.
13601 (addsub): New code iterator.
13602 * config/mips/mips.opt (mmsa): New option.
13603 * config/mips/msa.h: New file.
13604 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
13606 * config/mips/mti-linux.h: Likewise.
13607 * config/mips/predicates.md
13608 (const_msa_branch_operand): New constraint.
13609 (const_uimm3_operand): Likewise.
13610 (const_uimm4_operand): Likewise.
13611 (const_uimm5_operand): Likewise.
13612 (const_uimm8_operand): Likewise.
13613 (const_imm5_operand): Likewise.
13614 (aq10b_operand): Likewise.
13615 (aq10h_operand): Likewise.
13616 (aq10w_operand): Likewise.
13617 (aq10d_operand): Likewise.
13618 (const_m1_operand): Likewise.
13619 (reg_or_m1_operand): Likewise.
13620 (const_exp_2_operand): Likewise.
13621 (const_exp_4_operand): Likewise.
13622 (const_exp_8_operand): Likewise.
13623 (const_exp_16_operand): Likewise.
13624 (const_vector_same_val_operand): Likewise.
13625 (const_vector_same_simm5_operand): Likewise.
13626 (const_vector_same_uimm5_operand): Likewise.
13627 (const_vector_same_uimm6_operand): Likewise.
13628 (const_vector_same_uimm8_operand): Likewise.
13629 (par_const_vector_shf_set_operand): Likewise.
13630 (reg_or_vector_same_val_operand): Likewise.
13631 (reg_or_vector_same_simm5_operand): Likewise.
13632 (reg_or_vector_same_uimm6_operand): Likewise.
13633 * doc/extend.texi (MIPS SIMD Architecture Functions): New
13635 * doc/invoke.texi (-mmsa): Document new option.
13637 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13639 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
13640 * configure: Regenerate.
13641 * config.in: Regenerate.
13642 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
13643 on -fvtable-verify.
13644 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
13645 (ENDFILE_VTV_SPEC): Define.
13647 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
13649 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
13650 registers in all interrupt handlers if necessary.
13651 (rl78_option_override): Add warning.
13652 (MUST_SAVE_MDUC_REGISTERS): New macro.
13653 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
13654 * config/rl78/rl78.c (check_mduc_usage): New function.
13655 (mduc_regs): New structure to hold MDUC register data.
13656 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
13657 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
13658 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
13659 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
13660 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
13661 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
13663 2016-05-09 Bin Cheng <bin.cheng@arm.com>
13665 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
13666 (tree-ssa-loop-niter.h): Ditto.
13667 (idx_within_array_bound, ref_within_array_bound): New functions.
13668 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
13669 Factor out check on writable base object to ...
13670 (base_object_writable): ... here.
13672 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13674 * config/arm/arm.md (probe_stack): Add modes to set source
13677 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
13679 * regrename.c (base_reg_class_for_rename): New static function.
13680 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
13682 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
13684 * cgraph.c (thunk_adjust): Export.
13685 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
13686 * cgraphunit.c (thunk_adjust): Export.
13687 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
13689 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
13691 * tree-inline.c (expand_call_inline): Expand thunks inline.
13693 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
13696 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
13697 (*sse2_vd_cvtss2sd): Ditto.
13698 * config/i386/i386.md
13699 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
13700 Generate *sse2_vd_cvtsd2ss pattern.
13701 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
13702 Generate *sse2_vd_cvtss2sd pattern.
13704 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
13706 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
13707 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
13710 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
13712 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
13713 * config/sh/sh.c: Define and declare variables on first use throughout
13715 (current_function_interrupt): Change to bool type.
13716 (frame_insn): Rename to emit_frame_insn and update users.
13717 (push_regs): Use bool for 'interrupt_handler' argument.
13718 (save_schedule_s): Remove.
13719 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
13720 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
13721 targetm.asm_out.unaligned_op.di.
13722 (gen_far_branch): Remove redundant forward declaration.
13723 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
13724 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
13725 (sh_set_return_address, sh_function_ok_for_sibcall,
13726 scavenge_reg): Update comments.
13727 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
13728 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
13729 (sh_attr_renesas_p): Remove unnecessary parentheses.
13730 (branch_dest): Simplify.
13731 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
13732 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
13733 (CUMULATIVE_ARGS): Change macro to typedef.
13734 (current_function_interrupt): Change to bool type.
13735 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
13736 Surround with __cplusplus ifdef.
13737 (sh_compare_op0, sh_compare_op1): Remove.
13738 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
13740 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
13742 * config/arm/arm.md: (arch): Add neon.
13743 (arch_enabled): Return yes for arch neon when TARGET_NEON.
13744 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
13745 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
13746 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
13747 attributes for alt renumbering. Mark alt 3 as non-predicable.
13748 (thumb2_movdf_vfp): Likewise.
13750 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
13752 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
13753 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
13754 (*andqi_1): Add preferred_for_speed attribute to disparage
13755 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
13756 (*<code>qi_1): Ditto.
13757 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
13758 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
13759 (*ashlqi3_1): Ditto.
13760 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
13761 Add preferred_for_size attribute to disparage alternative 0 and
13762 preferred_for_speed attribute to disparage alternative 1 for
13763 TARGET_PARTIAL_REG_STALL targets.
13765 2016-05-07 Tom de Vries <tom@codesourcery.com>
13767 PR tree-optimization/70956
13768 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
13771 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
13773 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
13774 * config/sh/sh.c (sh_cbranch_distance): Implement it.
13775 * config/sh/sh.md (branch_zero): Remove define_attr.
13776 (define_delay): Disable delay slot if branch distance is one insn.
13778 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
13780 * config/i386/i386.md (LEAMODE): New mode attribute.
13781 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
13782 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
13783 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
13784 operand 2 predicate.
13785 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
13786 (*lea<mode>_general_3): Ditto.
13787 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
13789 2016-05-06 Jakub Jelinek <jakub@redhat.com>
13791 * genmddump.c (main): Convert argv from char ** to const char **.
13793 2016-05-06 David Malcolm <dmalcolm@redhat.com>
13795 * coretypes.h (OVERRIDE): New macro.
13796 (FINAL): New macro.
13798 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
13800 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
13801 allow coalescing if the types are compatible.
13803 2016-05-06 David Malcolm <dmalcolm@redhat.com>
13805 * pass_manager.h (pass_manager::register_pass_name): New method.
13806 (pass_manager::get_pass_by_name): New method.
13807 (pass_manager::create_pass_tab): New method.
13808 (pass_manager::m_name_to_pass_map): New field.
13809 * passes.c (name_to_pass_map): Delete global in favor of field
13810 "m_name_to_pass_map" of pass_manager.
13811 (register_pass_name): Rename from a function to...
13812 (pass_manager::register_pass_name): ...this method, updating
13813 for renaming of global "name_to_pass_map" to field
13814 "m_name_to_pass_map".
13815 (create_pass_tab): Rename from a function to...
13816 (pass_manager::create_pass_tab): ...this method, updating
13817 for renaming of global "name_to_pass_map" to field.
13818 (get_pass_by_name): Rename from a function to...
13819 (pass_manager::get_pass_by_name): ...this method.
13820 (enable_disable_pass): Convert use of get_pass_by_name to
13821 a method call, locating the pass_manager singleton.
13823 2016-05-06 David Malcolm <dmalcolm@redhat.com>
13825 * genattr-common.c (main): Convert argv from char ** to const char **.
13826 * genattr.c (main): Likewise.
13827 * genattrtab.c (main): Likewise.
13828 * genautomata.c (initiate_automaton_gen): Likewise.
13830 * gencodes.c (main): Likewise.
13831 * genconditions.c (main): Likewise.
13832 * genconfig.c (main): Likewise.
13833 * genconstants.c (main): Likewise.
13834 * genemit.c (main): Likewise.
13835 * genenums.c (main): Likewise.
13836 * genextract.c (main): Likewise.
13837 * genflags.c (main): Likewise.
13838 * genmddeps.c (main): Likewise.
13839 * genopinit.c (main): Likewise.
13840 * genoutput.c (main): Likewise.
13841 * genpeep.c (main): Likewise.
13842 * genpreds.c (main): Likewise.
13843 * genrecog.c (main): Likewise.
13844 * gensupport.c (init_rtx_reader_args_cb): Likewise.
13845 (init_rtx_reader_args): Likewise.
13846 * gensupport.h (init_rtx_reader_args_cb): Likewise.
13847 (init_rtx_reader_args): Likewise.
13848 * gentarget-def.c (main): Likewise.
13849 * read-md.c (read_md_files): Likewise.
13850 * read-md.h (read_md_files): Likewise.
13852 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
13854 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
13855 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
13856 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
13857 Remove unused predicate.
13858 (register_and_not_fp_reg_operand): Ditto.
13860 2016-05-06 Martin Liska <mliska@suse.cz>
13862 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
13863 instead of vec as the vector is local to the function.
13865 2016-05-06 Jakub Jelinek <jakub@redhat.com>
13867 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
13868 avx512bw alternative.
13870 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
13871 before the ashr<mode>3 pattern.
13873 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
13874 v instead of x in vex or maybe_vex alternatives, use
13875 maybe_evex instead of vex in prefix.
13877 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
13878 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
13879 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
13880 in vex or maybe_vex alternatives, use maybe_evex instead of vex
13883 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
13884 v instead of x in vex or maybe_vex alternatives, use
13885 maybe_evex instead of vex in prefix.
13887 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
13888 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
13889 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
13890 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
13891 alternatives, use maybe_evex instead of vex in prefix.
13893 * config/i386/sse.md (vec_interleave_lowv4sf,
13894 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
13895 v instead of x in vex or maybe_vex alternatives, use
13896 maybe_evex instead of vex in prefix.
13898 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
13899 v instead of x in vex or maybe_vex alternatives, use
13900 maybe_evex instead of vex in prefix.
13902 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
13903 v constraint instead of x.
13905 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
13907 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
13908 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
13911 2016-05-06 Richard Biener <rguenther@suse.de>
13913 PR tree-optimization/70948
13914 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13915 Properly clobber all fields of va_list for __builtin_va_start.
13917 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
13920 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
13921 loop latch destination.
13923 2016-05-06 Martin Liska <mliska@suse.cz>
13925 * tree-ssa-uninit.c: Apply manual changes
13926 to the GNU coding style.
13927 (prune_uninit_phi_opnds): Rename from
13928 prune_uninit_phi_opnds_in_unrealizable_paths.
13930 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
13932 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
13933 mspace): Remove deprecated options.
13934 * doc/invoke.texi (SH options): Remove -mspace.
13936 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
13938 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
13940 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
13942 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
13943 corresponding combine split pattern.
13945 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
13948 * config/sh/predicates.md (long_displacement_mem_operand): New.
13949 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
13950 Add movi20, movi20s alternatives. Adjust length attribute for
13952 (movsi_ie): Allow for any FPU. Adjust length attribute for
13954 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
13955 attribute for alternatives.
13956 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
13957 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
13958 length attribute for alternatives.
13960 2016-05-06 Richard Biener <rguenther@suse.de>
13962 PR tree-optimization/70960
13963 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
13965 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
13968 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
13969 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
13971 2016-05-06 Marek Polacek <polacek@redhat.com>
13974 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
13976 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
13979 * config/sh/sh.md (*rotcr): Add another variant.
13981 2016-05-06 Richard Biener <rguenther@suse.de>
13983 PR middle-end/70931
13984 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
13986 2016-05-06 Richard Biener <rguenther@suse.de>
13988 PR middle-end/70941
13989 * fold-const.c (split_tree): Always convert to the original type
13992 2016-05-06 Richard Biener <rguenther@suse.de>
13994 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
13995 (fwprop_addr): Likewise.
13997 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
14000 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14002 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14003 * config/i386/i386.md (push mem splitter): Use find_constant_src in
14004 the splitter condition.
14005 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14006 the splitter condition.
14007 (FP float_extend load splitter): Ditto.
14009 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
14011 * config/i386/i386.md (peehole2 patterns): Change true_regnum
14012 to REGNO in all peephole2 patterns.
14013 (post-reload splitters): Change true_regnum to REGNO in
14014 post-reload splitters.
14015 (zero_extend splitters): Use general_reg_operand and
14016 nonimmediate_gr_operand predicates.
14018 2016-05-05 Jakub Jelinek <jakub@redhat.com>
14020 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14021 v constraint instead of x.
14023 2016-05-05 Alan Modra <amodra@gmail.com>
14026 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14027 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
14028 TARGET_NO_FP_IN_TOC for -mrelocatable.
14029 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14030 TARGET_RELOCATABLE test.
14031 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14032 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14033 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14034 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14035 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14036 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14037 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14038 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14039 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14040 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14042 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14043 (rs6000_stack_info): Likewise.
14044 (rs6000_elf_asm_out_constructor): Likewise.
14045 (rs6000_elf_asm_out_destructor): Likewise.
14046 (rs6000_elf_declare_function_name): Likewise.
14047 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14048 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14051 2016-05-05 Alan Modra <amodra@gmail.com>
14053 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14055 2016-05-05 Alan Modra <amodra@gmail.com>
14057 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14058 out-of-line gpr restore for one or two regs if that would add
14061 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
14064 * config/i386/i386.md
14065 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14066 Change to post-epilogue_completed late splitter. Use sse_reg_operand
14067 as operand 0 predicate.
14068 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14070 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14071 Ditto. Emit the pattern using RTX.
14073 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14074 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
14075 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
14076 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14078 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14079 sse_reg_operand as operand 0 predicate.
14081 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14082 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
14083 instead of gen_rtx_REG.
14084 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14087 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14089 * function.c (emit_use_return_register_into_block): Delete.
14090 (gen_return_pattern): Delete.
14091 (emit_return_into_block): Delete.
14092 (active_insn_between): Delete.
14093 (convert_jumps_to_returns): Delete.
14094 (emit_return_for_exit): Delete.
14095 (thread_prologue_and_epilogue_insns): Delete all code dealing with
14096 simple_return for shrink-wrapped blocks.
14097 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
14098 end of blocks that need one.
14099 (get_unconverted_simple_return): Delete.
14100 (convert_to_simple_return): Delete.
14101 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
14102 (convert_to_simple_return): Ditto.
14104 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14106 * cfgcleanup.c (bb_is_just_return): New function.
14107 (try_optimize_cfg): Simplify jumps to return, branches to return,
14108 and branches around return.
14110 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
14112 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
14113 branch to a return.
14115 2016-05-04 Jakub Jelinek <jakub@redhat.com>
14119 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
14120 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
14121 assert flags & OEP_HASH_CHECK, instead of asserting it
14122 never happens. Handle TARGET_EXPR.
14123 * fold-const.c (operand_equal_p): For hash verification,
14124 or in OEP_HASH_CHECK into flags.
14126 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
14128 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
14130 (compute_samebase_partition_bases): Fix typo.
14132 2016-05-04 Jakub Jelinek <jakub@redhat.com>
14134 * config/i386/sse.md (vec_interleave_highv8sf,
14135 vec_interleave_lowv8sf, vec_interleave_highv4df,
14136 vec_interleave_lowv4df): Remove constraints from expanders.
14138 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
14140 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
14142 * tree-inline.c (expand_call_inline): Fix path dealing with
14143 making lhs of call statement undefined.
14145 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
14147 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14148 Check availability on NODE, too.
14149 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
14150 (cgraph_node::call_for_symbol_and_aliases): Likewise.
14151 (varpool_node::call_for_symbol_and_aliase): Likewise.
14152 * ipa-pure-const.c (add_new_function): Analyze all bodies.
14153 (propagate_pure_const): Propagate across interposable functions, too.
14154 (skip_function_for_local_pure_const): Do not skip interposable bodies
14156 (pass_local_pure_const::execute): Update.
14158 2016-05-04 Marek Polacek <polacek@redhat.com>
14160 * doc/invoke.texi: Document -Wdangling-else.
14162 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14164 * config.gcc: Error out when conflicting multilib is detected. Do not
14165 loop over multilibs since no combination is legal.
14167 2016-05-04 Alan Modra <amodra@gmail.com>
14169 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
14170 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
14171 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14174 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
14176 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
14177 Clean up p5600 comments.
14179 2016-05-04 Richard Biener <rguenther@suse.de>
14181 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
14182 constructor simplifications.
14183 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
14185 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
14187 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
14188 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
14189 result.set_rtx is null instead of aborting.
14190 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
14192 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
14193 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
14194 *mov<mode>_store_postinc): New patterns.
14196 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
14198 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
14199 as commutative. Check both conversions are NOP.
14200 ((A & B) OP (C & B)): Remove.
14202 2016-05-04 Alan Modra <amodra@gmail.com>
14204 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
14206 2016-05-04 Alan Modra <amodra@gmail.com>
14209 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
14210 when cr2,3,4 are all fixed regs.
14212 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
14214 PR rtl-optimization/57193
14215 * opts.c (default_options_table): Revert OPT_frename_registers change.
14216 * doc/invoke.texi (-frename-registers, -O2): Likewise.
14218 2016-05-03 Martin Sebor <msebor@redhat.com>
14221 * builtins.c (fold_builtin_FILE): New function.
14222 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
14223 (fold_builtin_0): Call them.
14224 * gimplify.c (gimplify_call_expr): Remove the handling of
14225 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
14228 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
14229 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
14233 * doc/extend.texi (Function Names as Strings): Update __func__,
14234 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
14237 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14238 Richard Biener <rguenther@suse.de>
14240 PR tree-optimization/70916
14241 * tree-if-conv.c: Include cfganal.h.
14242 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
14243 and remove_fake_exit_edges around the optimization pass.
14245 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
14247 * cgraph.c (symbol_table::create_edge): Set inline_failed.
14248 (cgraph_edge::make_direct): Likewise.
14249 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
14250 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
14251 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
14252 (CIF_THUNK): New code.
14253 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
14254 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
14255 (compute_inline_parameters): Set inline_failed for thunks.
14256 (inline_analyze_function): Cleanup.
14257 * ipa-inline.c (can_inline_edge_p): Do not deal with
14258 call_stmt_cannot_inline_p.
14259 (can_early_inline_edge_p): Likewise.
14260 (early_inliner): Initialize inline_failed.
14261 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
14263 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
14265 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
14266 from nonimm_ssenomem_operand.
14267 (nonimm_ssenomem_operand): New predicate.
14268 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
14269 as operand 0 predicate.
14270 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
14271 Disable unsupported alternatives using "enabled" attribute.
14272 Use register_ssemem_operand as operand 0 predicate.
14273 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
14275 2016-05-03 Marek Polacek <polacek@redhat.com>
14278 * input.c (expansion_point_location): New function.
14279 * input.h (expansion_point_location): Declare.
14281 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
14283 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
14284 occurence with frame_offset_ ones.
14286 2016-05-03 Alan Modra <amodra@gmail.com>
14288 PR rtl-optimization/70890
14289 * ira.c (combine_and_move_insns): When moving def_insn, remove
14290 equivs on use_insn.
14292 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
14294 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
14295 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
14296 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
14297 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
14299 2016-05-03 Alan Modra <amodra@gmail.com>
14301 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
14302 for SAVE_MULTIPLE/STORE_MULTIPLE.
14304 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14306 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
14307 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
14309 2016-05-03 Richard Biener <rguenther@suse.de>
14311 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
14313 (gimplify_arg): Likewise.
14314 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
14315 re-writing the result to a decl if required.
14316 (internal_get_tmp_var): Add allow_ssa parameter
14317 and override into_ssa with it.
14318 (get_formal_tmp_var): Adjust.
14319 (get_initialized_tmp_var): Add allow_ssa parameter.
14320 (gimplify_arg): Add allow_ssa parameter and avoid generating
14321 SSA names for the result false.
14322 (gimplify_call_expr): If the call may return twice do not
14323 gimplify parameters into SSA.
14324 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
14325 (gimplify_modify_expr): Adjust assert. For noreturn calls
14326 with a SSA name LHS adjust its def.
14327 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
14328 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
14329 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
14330 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
14331 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
14332 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
14333 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
14334 (optimize_target_teams): Do not allow SSA names for clause operands.
14335 (gimplify_expr): Likewise for where we mark the result addressable.
14336 * passes.def (pass_init_datastructures): Remove.
14337 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
14338 (rewrite_stmt): Likewise.
14339 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
14340 (replace_locals_op): Replace SSA names.
14341 (copy_gimple_seq_and_replace_locals): Init src_cfun.
14342 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
14343 * cgraph.c (release_function_body): Free CFG annotations only
14344 when we have a CFG. Simplify.
14345 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
14346 force_gimple_operand instead of get_initialized_tmp_var.
14347 * tree-pass.h (make_pass_init_datastructures): Remove.
14348 * tree-ssa.c (execute_init_datastructures): Remove.
14349 (pass_data_init_datastructures): Likewise.
14350 (class pass_init_datastructures): Likewise.
14351 (make_pass_init_datastructures): Likewise.
14352 * omp-low.c (create_omp_child_function): Init SSA data structures.
14353 (grid_expand_target_grid_body): Likewise.
14354 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
14355 name before adding it to names_to_release.
14356 (remove_bb): Always release SSA defs.
14357 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
14358 before dereferencing it.
14359 * cgraphunit.c (init_lowered_empty_function): Always
14360 int SSA data structures.
14361 * tree-ssanames.c (release_defs): Remove assert that we are in
14363 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
14365 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14366 Uros Bizjak <ubizjak@gmail.com>
14368 PR rtl-optimization/70467
14369 * config/i386/predicates.md (x86_64_hilo_int_operand,
14370 x86_64_hilo_general_operand): New predicates.
14371 * config/i386/constraints.md (Wd): New constraint.
14372 * config/i386/i386.md (mode attr di): Use Wd instead of e.
14373 (general_hilo_operand): New mode attr.
14374 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
14375 instead of <general_operand>.
14376 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
14377 x86_64_hilo_general_operand instead of <general_operand>.
14379 2016-05-03 Jakub Jelinek <jakub@redhat.com>
14381 PR tree-optimization/70916
14382 * tree-if-conv.c (constant_or_ssa_name): Removed.
14383 (fold_build_cond_expr): Use is_gimple_val instead of
14384 constant_or_ssa_name.
14386 PR tree-optimization/70916
14387 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
14388 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
14391 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
14392 (optimize_atomic_bit_test_and): New function.
14393 (pass_fold_builtins::execute): Use it.
14394 * optabs.def (atomic_bit_test_and_set_optab,
14395 atomic_bit_test_and_complement_optab,
14396 atomic_bit_test_and_reset_optab): New optabs.
14397 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
14398 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
14399 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
14400 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
14401 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
14402 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
14403 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
14404 * doc/md.texi (atomic_bit_test_and_set@var{mode},
14405 atomic_bit_test_and_complement@var{mode},
14406 atomic_bit_test_and_reset@var{mode}): Document.
14407 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
14408 atomic_bit_test_and_complement<mode>,
14409 atomic_bit_test_and_reset<mode>): New expanders.
14410 (atomic_bit_test_and_set<mode>_1,
14411 atomic_bit_test_and_complement<mode>_1,
14412 atomic_bit_test_and_reset<mode>_1): New insns.
14414 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
14416 PR rtl-optimization/70687
14417 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
14418 instead of unsigned HOST_WIDE_INT.
14420 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
14422 PR rtl-optimization/44281
14423 * hard-reg-set.h (struct target_hard_regs): New field
14424 x_fixed_nonglobal_reg_set.
14425 (fixed_nonglobal_reg_set): New macro.
14426 * reginfo.c (init_reg_sets_1): Initialize it.
14427 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
14429 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
14431 2016-05-03 Bin Cheng <bin.cheng@arm.com>
14433 PR tree-optimization/56541
14434 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
14435 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
14436 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
14437 (any_complicated_phi): new static variable.
14438 (aggressive_if_conv): delete.
14439 (if_convertible_phi_p): support phis with more than two arguments.
14440 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
14441 critical pred edges.
14442 (ifcvt_split_critical_edges): support phis with more than two
14443 arguments by checking new parameter. only split critical edges
14445 (tree_if_conversion): handle simd pragma marked loop using new
14446 local variable aggressive_if_conv. check any_complicated_phi.
14448 2016-05-03 Bin Cheng <bin.cheng@arm.com>
14450 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
14453 2016-05-03 Bin Cheng <bin.cheng@arm.com>
14455 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
14458 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
14460 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
14461 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
14462 define_insn_and_split.
14463 (mulsi3_i): New define_insn_and_split.
14464 (mulsi3_call): Convert to define_insn.
14465 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
14466 Remove constraints.
14468 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14470 * machmode.h (mode_complex): Add support to give the complex mode
14472 (GET_MODE_COMPLEX_MODE): Likewise.
14473 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
14474 stored by build_complex_type and gfc_build_complex_type instead of
14475 trying to figure out the appropriate mode based on the size. Raise
14476 an assertion error, if the type was not set.
14477 * genmodes.c (struct mode_data): Add field for the complex type of
14479 (blank_mode): Likewise.
14480 (make_complex_modes): Remember the complex mode created in the
14482 (emit_mode_complex): Write out the mode_complex array to map a
14483 type mode to the complex version.
14484 (emit_insn_modes_c): Likewise.
14485 * tree.c (build_complex_type): Set the complex type to use before
14486 calling layout_type.
14487 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
14488 support for __float128 complex datatypes.
14489 (rs6000_hard_regno_mode_ok): Likewise.
14490 (rs6000_setup_reg_addr_masks): Likewise.
14491 (rs6000_complex_function_value): Likewise.
14492 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
14493 __float128 and __ibm128 complex.
14494 (FLOAT128_IBM_P): Likewise.
14495 (ALTIVEC_ARG_MAX_RETURN): Likewise.
14496 * doc/extend.texi (Additional Floating Types): Document that
14497 -mfloat128 must be used to enable __float128. Document complex
14498 __float128 and __ibm128 support.
14500 2016-05-02 Jakub Jelinek <jakub@redhat.com>
14503 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
14504 char/short arguments promoted to int because of promote_prototypes.
14506 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
14508 * config/i386/predicates.md (register_ssemem_operand): New predicate.
14509 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
14510 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
14511 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
14512 alternatives using "enabled" attribute. Use register_ssemem_operand
14513 as operand 1 predicate.
14514 (*cmpi<unord>xf_i387): Split XFmode pattern from
14515 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
14516 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
14517 *absneg<mode>2_i387. Disable unsupported alternatives using
14518 "enabled" attribute.
14519 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
14521 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
14523 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
14525 (oacc_loop_process): Check mask for loop termination.
14527 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
14529 * cif-code.def (CIF_THUNK): Add.
14530 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
14533 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
14535 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
14536 (dump_inline_summary): Dump it.
14537 (fp_expression_p): New predicate.
14538 (estimate_function_body_sizes): Use it.
14539 (inline_merge_summary): Merge fp_expressions.
14540 (inline_read_section): Read fp_expressions.
14541 (inline_write_summary): Write fp_expressions.
14542 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
14543 codegen boundary if either caller or callee is !fp_expressions.
14544 * ipa-inline.h (inline_summary): Add fp_expressions.
14545 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
14546 to fp_expressions be sure the fp generation flags are updated.
14548 2016-05-02 Jakub Jelinek <jakub@redhat.com>
14550 PR rtl-optimization/70467
14551 * cse.c (cse_insn): Handle no-op MEM moves after folding.
14553 PR rtl-optimization/70467
14554 * ipa-pure-const.c (check_call): Handle internal calls even in
14555 ipa mode like in local mode.
14557 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14559 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
14561 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
14563 * match.pd (X u< X, X u> X): New transformations.
14565 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
14567 * flag-types.h (enum warn_strict_overflow_code): Move ...
14568 * coretypes.h: ... here.
14569 * fold-const.h (fold_overflow_warning): Declare.
14570 * fold-const.c (fold_overflow_warning): Make non-static.
14571 (fold_comparison): Move the transformation of X +- C1 CMP C2
14572 into X CMP C2 -+ C1 ...
14573 * match.pd: ... here.
14574 * gimple-fold.c (fold_stmt_1): Protect with
14575 fold_defer_overflow_warnings.
14577 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
14579 * omp-low.c (struct oacc_loop): Add 'inner' field.
14580 (new_oacc_loop_raw): Initialize it to zero.
14581 (oacc_loop_fixed_partitions): Initialize it.
14582 (oacc_loop_auto_partitions): Partition outermost loop to outermost
14583 available partitioning.
14585 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
14587 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
14589 (umulsidi3): Likewise.
14590 (indirect_jump): Fix jump instruction assembly patterns.
14592 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
14595 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
14596 (nvptx_function_value): Assert non-NULL cfun.
14598 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
14600 PR rtl-optimization/70886
14601 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
14603 * cselib.h (rtx_equal_for_cselib_1): Declare.
14604 (rtx_equal_for_cselib_p: New inline function.
14605 * cselib.c (rtx_equal_for_cselib_p): Delete.
14606 (rtx_equal_for_cselib_1): Make public.
14608 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
14610 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
14611 (register_mixssei387nonimm_operand): Remove predicate.
14612 * config/i386/i386.md (*fop_<mode>_comm): Merge from
14613 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
14614 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
14615 for TARGET_MIX_SSE_I387 alternatives.
14616 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
14617 Disable unsupported alternatives using "enabled" attribute. Use
14618 nonimm_ssenomem_operand as operand 1 predicate. Also check
14619 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
14621 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
14623 * tree.c (cst_and_fits_in_hwi): Simplify.
14625 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
14627 * tree.h (wi::to_wide): New function.
14628 * expr.c (expand_expr_real_1): Use wi::to_wide.
14629 * fold-const.c (int_const_binop_1): Likewise.
14630 (extract_muldiv_1): Likewise.
14632 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
14634 * wide-int.h: Update offset_int and widest_int documentation.
14635 (WI_SIGNED_SHIFT_RESULT): New macro.
14636 (wi::binary_shift): Define signed_shift_result_type for
14637 shifts on offset_int- and widest_int-like types.
14638 (generic_wide_int): Support <<= and >>= if << and >> are supported.
14639 * tree.h (int_bit_position): Use shift operators instead of wi::
14641 * alias.c (adjust_offset_for_component_ref): Likewise.
14642 * expr.c (get_inner_reference): Likewise.
14643 * fold-const.c (fold_comparison): Likewise.
14644 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
14645 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
14646 * tree-dfa.c (get_ref_base_and_extent): Likewise.
14647 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14648 (stmt_kills_ref_p): Likewise.
14649 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
14650 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
14651 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14652 (ao_ref_init_from_vn_reference): Likewise.
14654 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
14656 * wide-int.h: Update offset_int and widest_int documentation.
14657 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
14658 (wi::binary_traits): Allow ordered comparisons between offset_int and
14659 offset_int, between widest_int and widest_int, and between either
14660 of these types and basic C types.
14661 (operator <, <=, >, >=): Define for the same combinations.
14662 * tree.h (tree_int_cst_lt): Use comparison operators instead
14663 of wi:: comparisons.
14664 (tree_int_cst_le): Likewise.
14665 * gimple-fold.c (fold_array_ctor_reference): Likewise.
14666 (fold_nonarray_ctor_reference): Likewise.
14667 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
14668 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
14669 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
14670 * tree-sra.c (completely_scalarize): Likewise.
14671 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
14672 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
14673 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
14674 (check_for_binary_op_overflow): Likewise.
14675 (search_for_addr_array): Likewise.
14676 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
14678 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
14680 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
14681 (arc_save_restore): Likewise.
14682 (arc_dwarf_register_span): Likewise.
14683 (arc_output_pic_addr_const): Initialize suffix variable.
14685 2016-05-02 Martin Liska <mliska@suse.cz>
14687 * symbol-summary.h (function_summary::function_summary):
14688 Remove checking assert for all cgraph nodes.
14689 (function_summary::get): Check summary_uid.
14690 (symtab_insertion): Check summary_uid.
14692 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
14694 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
14695 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
14696 bmaskn instruction.
14697 (arc_dwarf_register_span): Remove enum keyword.
14698 (compact_memory_operand_p): New function.
14699 * config/arc/arc.h (reg_class): Add code density register classes.
14700 (REG_CLASS_NAMES): Likewise.
14701 (REG_CLASS_CONTENTS): Likewise.
14702 * config/arc/arc.md (*movqi_insn): Add code density instructions.
14703 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
14704 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
14705 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
14706 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
14708 (h, Rcd, Rsd, Rzd): New register constraints.
14709 (T): Use compact_memory_operand_p function.
14710 * config/arc/predicates.md (compact_load_memory_operand): Remove.
14712 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
14714 * config/sh/sh.md (*negnegt, *movtt): Remove.
14716 2016-05-02 Marek Polacek <polacek@redhat.com>
14717 Tom de Vries <tom@codesourcery.com>
14719 PR tree-optimization/70700
14720 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
14721 bigger than FIRST_REF_NODE.
14723 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
14726 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
14728 (prepare_cbranch_operands): Don't use scratch register. Assume that
14729 function is used when pseudos can be created.
14730 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
14731 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
14732 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
14733 define_expand. Allow it only when pseudos can be created.
14734 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
14736 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
14738 * config/i386/constraints.md (BC): Only allow -1 operands.
14739 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
14740 Add "enabled" attribute. Update XI mode attribute calculation.
14741 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
14742 (*movoi_internal_avx): Update XI mode attribute calculation.
14743 (*movti_internal): Ditto.
14745 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
14747 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
14748 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
14750 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
14752 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
14753 statement on instruction code. Remove trailing spaces.
14754 (altivec_expand_stv_builtin): Likewise.
14756 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
14758 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
14759 (TARGET_FPU_DOUBLE): Simplify.
14760 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
14761 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
14762 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
14763 with 'TARGET_FPU_DOUBLE'.
14764 * config/sh/sh.md: Likewise.
14766 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
14768 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
14769 SH_DIV_STR_FOR_SIZE): Remove.
14770 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
14771 SH_DIV_STR_FOR_SIZE): Remove.
14773 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
14775 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
14776 logical_reg_operand): Delete.
14777 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
14778 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
14779 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
14780 match_operand and match_test.
14781 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
14782 variables on their first use. Return bool values.
14783 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
14784 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
14785 arith_reg_operand for input operand. Remove empty constraints.
14787 (*xorsi3_compact): Rename to xorsi3.
14788 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
14789 (*zero_extend<mode>si2_disp_mem): Update comment.
14792 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
14794 * config/sh/t-sh: Remove SH5 support.
14795 * config.gcc: Likewise.
14796 * configure: Likewise.
14798 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14800 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
14802 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
14804 * config/sh/sh.c (register_sh_passes, sh_option_override,
14805 sh_print_operand, prepare_move_operands,
14806 sh_can_follow_jump): Remove TARGET_SH1 checks.
14807 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
14808 PROMOTE_MODE): Likewise.
14809 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
14812 2016-04-30 Alan Modra <amodra@gmail.com>
14814 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
14815 restoring when fixed_reg_p, but allow out-of-line or stmw save.
14816 Check for user regs later to avoid unnecessary looping over regs.
14817 Merge user reg check with non-saved reg check. Don't force
14818 inline VR restore when static chain used.
14819 (rs6000_frame_related): Omit eh_frame info for user regs when
14821 (fixed_regs_p): Delete.
14823 2016-04-30 Alan Modra <amodra@gmail.com>
14825 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
14826 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
14829 2016-04-30 Alan Modra <amodra@gmail.com>
14832 * config/rs6000/rs6000.c (fixed_reg_p): New function.
14833 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
14836 2016-04-30 Alan Modra <amodra@gmail.com>
14838 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
14839 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
14840 flag_pic test for Darwin.
14842 2016-04-30 Alan Modra <amodra@gmail.com>
14844 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
14845 throw_calls_crossed.
14846 (REG_FREQ_CALLS_CROSSED): Delete.
14847 (REG_N_THROWING_CALLS_CROSSED): Delete.
14848 * regstat.c (regstat_bb_compute_ri): Don't calculate
14849 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
14850 (dump_reg_info): Don't print call cross frequency.
14851 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
14852 and REG_N_THROWING_CALLS_CROSSED.
14854 2016-04-30 Alan Modra <amodra@gmail.com>
14856 * regs.h (struct reg_info_t): Delete live_length.
14857 (REG_LIVE_LENGTH): Delete macro.
14858 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
14859 local_live, local_processed and local_live_last_luid params.
14860 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
14862 (regstat_compute_ri): Adjust for above. Don't set
14864 (dump_reg_info): Don't print live length.
14865 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
14866 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
14867 Localize loop_depth var.
14869 2016-04-30 Alan Modra <amodra@gmail.com>
14871 * ira.c (enum valid_equiv): New.
14872 (validate_equiv_mem): Return enum.
14873 (update_equiv_mem): Create replacement in more cases.
14874 (add_store_equivs): Update validate_equiv_mem call.
14876 2016-04-30 Alan Modra <amodra@gmail.com>
14878 * ira.c (combine_and_move_insns): Rather than scanning insns,
14879 use DF infrastucture to find use and def insns.
14881 2016-04-30 Alan Modra <amodra@gmail.com>
14883 ira.c (combine_and_move_insns): Move invariant conditions..
14884 (ira.c): ..to here. Call combine_and_move_insns before
14885 add_store_equivs. Call grow_reg_equivs later. Allocate
14886 req_equiv later using max_reg_num() rather than global max_regno.
14887 (contains_replace_regs): Delete.
14888 (add_store_equivs): Remove contains_replace_regs test.
14890 2016-04-30 Alan Modra <amodra@gmail.com>
14892 * ira.c (struct equiv_mem_data): New.
14893 (equiv_mem, equiv_mem_modified): Delete static vars.
14894 (validate_equiv_mem_from_store): Use "data" param to communicate..
14895 (validate_equiv_mem): ..from here.
14897 2016-04-30 Alan Modra <amodra@gmail.com>
14899 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
14901 (update_reg_equivs): ..here. Move allocation and freeing of
14902 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
14903 end_alias_analysis to..
14906 2016-04-30 Alan Modra <amodra@gmail.com>
14908 * ira.c (pdx_subregs): Delete.
14909 (struct equivalence): Add pdx_subregs field.
14910 (set_paradoxical_subreg): Remove pdx_subregs param. Update
14911 pdx_subregs access.
14912 (update_equiv_regs): Don't create or free pdx_subregs. Update
14913 pdx_subregs access.
14915 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14917 * config/rs6000/altivec.h: Change definitions of vec_xl and
14919 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
14920 (LD_ELEMREV_V2DI): New.
14921 (LD_ELEMREV_V4SF): New.
14922 (LD_ELEMREV_V4SI): New.
14923 (LD_ELEMREV_V8HI): New.
14924 (LD_ELEMREV_V16QI): New.
14925 (ST_ELEMREV_V2DF): New.
14926 (ST_ELEMREV_V2DI): New.
14927 (ST_ELEMREV_V4SF): New.
14928 (ST_ELEMREV_V4SI): New.
14929 (ST_ELEMREV_V8HI): New.
14930 (ST_ELEMREV_V16QI): New.
14933 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14934 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
14935 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
14936 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
14937 (altivec_expand_builtin): Add handling for
14938 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
14939 (rs6000_invalid_builtin): Add error-checking for
14940 RS6000_BTM_P9_VECTOR.
14941 (altivec_init_builtins): Define builtins used to implement vec_xl
14943 (rs6000_builtin_mask_names): Define power9-vector.
14944 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
14945 (RS6000_BTM_P9_VECTOR): Define.
14946 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
14947 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
14948 (vsx_ld_elemrev_v2df): Likewise.
14949 (vsx_ld_elemrev_v4sf): Likewise.
14950 (vsx_ld_elemrev_v4si): Likewise.
14951 (vsx_ld_elemrev_v8hi): Likewise.
14952 (vsx_ld_elemrev_v16qi): Likewise.
14953 (vsx_st_elemrev_v2df): Likewise.
14954 (vsx_st_elemrev_v2di): Likewise.
14955 (vsx_st_elemrev_v4sf): Likewise.
14956 (vsx_st_elemrev_v4si): Likewise.
14957 (vsx_st_elemrev_v8hi): Likewise.
14958 (vsx_st_elemrev_v16qi): Likewise.
14959 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
14962 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
14964 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
14966 (simplify_control_stmt_condition_1): ... here. Recurse into
14967 BIT_AND_EXPRs and BIT_IOR_EXPRs.
14969 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
14972 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
14973 (zero_extendqi<mode>2_dot): Revert earlier conversion from
14974 define_insn_and_split to define_insn.
14975 (zero_extendqi<mode>2_dot2): Same.
14976 (extendqi<mode>2_dot): Same.
14977 (extendqi<mode>2_dot2): Same.
14979 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
14981 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
14982 (probe_stack): New expander.
14983 (probe_stack_<mode>): New insn pattern.
14985 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
14987 * config/i386/i386.md
14988 (operations with memory inputs setting flags peephole2):
14989 Remove uneeded REG_P checks. Cleanup pattern generation.
14991 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
14993 * tree-vect-loop.c (vect_transform_loop): Fix
14994 nb_iterations_upper_bound computation for vectorized loop.
14996 2016-04-29 Marek Polacek <polacek@redhat.com>
14997 Jakub Jelinek <jakub@redhat.com>
15000 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15001 TARGET_EXPR_SLOT as a base.
15003 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
15005 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15006 with 'rCm2' constraints to limit possible immediate size.
15007 (*load_zeroextendqisi_update): Likewise.
15008 (*load_signextendqisi_update): Likewise.
15009 (*loadhi_update): Likewise.
15010 (*load_zeroextendhisi_update): Likewise.
15011 (*load_signextendhisi_update): Likewise.
15012 (*loadsi_update): Likewise.
15013 (*loadsf_update): Likewise.
15015 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
15017 * config/i386/predicates.md (constm1_operand): Fix comparison.
15019 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
15021 * testsuite/gcc.target/arc/ieee_eq.c: New test.
15023 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
15025 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15026 remaining SH5 related settings.
15027 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15028 shmedia_prepare_call_address): Delete.
15029 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15030 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15031 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15032 UNSUPPORTED_SH2A): Remove m5 checks.
15033 (sh_divide_strategy_e): Remove SH5 division strategies.
15034 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15035 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15037 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
15039 * config/s390/s390.c (s390_rtx_costs): Update documentation.
15041 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15043 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15044 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15045 Change lder to ldr.
15046 * config/s390/vector.md ("mov<mode>"): Likewise.
15048 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
15050 * config/s390/constraints.md ("U", "W"): Invoke
15051 s390_mem_constraint with "ZR" and "ZT".
15052 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15053 addresses when using LRA. Accept also short displacements for S
15054 and T constraints. Do not check for long displacement target for
15055 S and T constraints.
15056 (s390_mem_constraint): Remove handling of U and W constraints.
15057 * config/s390/s390.md (various patterns): Remove the short
15058 displacement constraints (Q and R) if a long displacement
15059 constraint is present. Add longdisp as required CPU capability.
15060 * config/s390/vector.md: Likewise.
15061 * config/s390/vx-builtins.md: Likewise.
15063 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15066 * reload1.c (reload): Call finish_spills before
15067 restarting reload loop. Skip select_reload_regs
15068 if update_eliminables_and_spill returns true.
15070 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
15072 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15073 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15074 (umulhisi3_imm): Update predicates and constraint letters.
15075 (umulhisi3_reg): Declare instruction as commutative.
15076 * config/arc/constraints.md (J12, J16): New constraints.
15077 * config/arc/predicates.md (short_unsigned_const_operand): New
15079 (arc_short_operand): Likewise.
15080 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15082 2016-04-29 Richard Biener <rguenther@suse.de>
15084 PR tree-optimization/13962
15085 PR tree-optimization/65686
15086 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15087 * tree-ssa-alias.c (ptrs_compare_unequal): New function
15088 using PTA to compare pointers.
15089 * match.pd: Add pattern for pointer equality compare simplification
15090 using ptrs_compare_unequal.
15092 2016-04-29 Richard Biener <rguenther@suse.de>
15094 * stor-layout.c (layout_type): Do not build a pointer-to-element
15097 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
15099 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
15100 Use SWI mode iterator. Use general_reg_operand predicate.
15101 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
15102 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
15105 2016-04-29 Jakub Jelinek <jakub@redhat.com>
15107 PR middle-end/70843
15108 * fold-const.c (operand_equal_p): Don't verify hash value equality
15110 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
15113 2016-04-28 Jakub Jelinek <jakub@redhat.com>
15116 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
15117 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
15118 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
15119 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
15120 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
15122 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15124 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
15125 to info. Don't initialize separate fields to 0. Clean up
15128 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15130 * config/i386/i386.md (peephole2s for operations with memory inputs):
15131 Use SWI mode iterator.
15132 (peephole2s for operations with memory outputs): Ditto.
15133 Do not check for stack checking probe.
15135 (probe_stack): Remove expander.
15137 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15138 Andrew Burgess <andrew.burgess@embecosm.com>
15140 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
15141 operands as 32-bits.
15143 2016-04-28 Jason Merrill <jason@redhat.com>
15145 * gdbinit.in: Skip line-map.h.
15147 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15148 Andrew Burgess <andrew.burgess@embecosm.com>
15150 * config/arc/arc.c (arc_conditional_register_usage): Take
15151 TARGET_RRQ_CLASS into account.
15152 (arc_print_operand): Support printing 'p' and 's' operands.
15153 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
15155 (TARGET_RRQ_CLASS): Define.
15156 (IS_POWEROF2_OR_0_P): Define.
15157 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
15159 (*tst_movb): New define_insn.
15160 (*tst): Avoid recognition if it could prevent '*tst_movb'
15161 combination; replace c/CnL with c/Chs alternative.
15162 (*tst_bitfield_tst): New define_insn.
15163 (*tst_bitfield_asr): New define_insn.
15164 (*tst_bitfield): New define_insn.
15165 (andsi3_i): Add Rrq variant.
15166 (extzv): New define_expand.
15167 (insv): New define_expand.
15168 (*insv_i): New define_insn.
15169 (*movb): New define_insn.
15170 (*movb_signed): New define_insn.
15171 (*movb_high): New define_insn.
15172 (*movb_high_signed): New define_insn.
15173 (*movb_high_signed + 1): New define_split pattern.
15174 (*mrgb): New define_insn.
15175 (*mrgb + 1): New define_peephole2 pattern.
15176 (*mrgb + 2): New define_peephole2 pattern.
15177 * config/arc/arc.opt (mbitops): New option for nps400, uses
15178 TARGET_NPS_BITOPS_DEFAULT.
15179 * config/arc/constraints.md (q): Make register class conditional.
15180 (Rrq): New register constraint.
15181 (Chs): New constraint.
15182 (Clo): New constraint.
15183 (Chi): New constraint.
15184 (Cbf): New constraint.
15185 (Cbn): New constraint.
15186 (C18): New constraint.
15187 (Cbi): New constraint.
15189 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15191 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
15193 (bitmap_intersection_of_preds): Ditto.
15194 (bitmap_union_of_succs): Ditto.
15195 (bitmap_union_of_preds): Ditto.
15196 * sbitmap.c (do_popcount): Delete.
15197 (BITMAP_DEBUGGING): Delete.
15198 (sbitmap_verify_popcount): Delete.
15199 (sbitmap_alloc): Don't initialize the popcount field.
15200 (sbitmap_alloc_with_popcount): Delete.
15201 (sbitmap_resize): Don't resize the popcount array.
15202 (sbitmap_vector_alloc): Don't initialize the popcount field.
15203 (bitmap_copy): Don't copy the popcount array.
15204 (bitmap_clear): Don't clear the popcount array.
15205 (bitmap_clear): Delete the popcount array handling.
15206 (bitmap_ior_and_compl): Delete the popcount assert.
15207 (bitmap_not): Ditto.
15208 (bitmap_and_compl): Ditto.
15209 (bitmap_and): Delete the popcount array handling.
15210 (bitmap_xor): Ditto.
15211 (bitmap_ior): Ditto.
15212 (bitmap_or_and): Delete the popcount assert.
15213 (bitmap_and_or): Ditto.
15214 (popcount_table): Delete.
15215 (sbitmap_elt_popcount): Delete.
15216 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
15217 (bitmap_set_bit): Delete the popcount assert.
15218 (bitmap_clear_bit): Ditto.
15219 (sbitmap_free): Don't free the popcount array.
15220 (sbitmap_alloc_with_popcount): Delete declaration.
15221 (sbitmap_popcount): Ditto.
15223 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15224 Andrew Burgess <andrew.burgess@embecosm.com>
15226 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
15227 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
15228 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
15229 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
15230 * config/arc/arc.opt (mcmem): New option.
15231 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
15232 supply length for r/m alternative.
15233 (*extendqisi2_ac): Likewise.
15234 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
15236 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
15237 (movhi_insn): Likewise.
15238 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
15239 (*zero_extendqihi2_i): Add r/Ucm alternative.
15240 (*zero_extendqisi2_ac): Likewise.
15241 (*zero_extendhisi2_i): Likewise.
15242 * config/arc/constraints.md (Uex): New memory constraint.
15243 (Ucm): New define_constraint.
15244 * config/arc/predicates.md (long_immediate_loadstore_operand):
15245 Return 0 for MEM with cmem_address address.
15246 (cmem_address_0): New predicates.
15247 (cmem_address_1): Likewise.
15248 (cmem_address_2): Likewise.
15249 (cmem_address): Likewise.
15251 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15253 * config/rs6000/rs6000.c (machine_function): Rename
15254 insn_chain_scanned_p to spe_insn_chain_scanned_p.
15255 (rs6000_stack_info): Adjust.
15257 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15258 Andrew Burgess <andrew.burgess@embecosm.com>
15260 * config/arc/constraints.md (Usd): Convert to define_constraint.
15264 2016-04-28 Jakub Jelinek <jakub@redhat.com>
15267 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
15268 Add new peephole2 where the first insn is *mov<mode>_or instead of
15269 *mov<mode>_internal.
15271 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
15273 * tracer.c (bb_seen): Make static.
15275 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
15277 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
15278 support, setup defaults.
15279 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
15280 * config/arc/arc.c (arc_init): Add NPS400 support.
15281 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
15282 (TARGET_ARC700): NPS400 is also an ARC700.
15283 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
15285 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
15288 * config/nds32/nds32.md (casesi): Don't access the operands array
15291 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15293 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
15294 (or $-1,reg peephole2): Ditto.
15295 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
15297 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15299 * doc/extend.texi (Common Function Attributes) [optimize]:
15300 Discourage use of the optimize attribute.
15302 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
15304 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
15305 special case builtin.
15306 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15307 ALTIVEC_BUILTIN_VEC_ADDE.
15308 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15309 support for ALTIVEC_BUILTIN_VEC_ADDE.
15310 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15311 for __builtin_vec_adde.
15313 2016-04-28 Jakub Jelinek <jakub@redhat.com>
15315 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
15316 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
15318 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15321 * doc/sourcebuild.texi (Effective-Target Keywords, Other
15322 attributes): Document cilkplus_runtime.
15324 2016-04-28 Martin Jambor <mjambor@suse.cz>
15326 * tree-cfg.c (verify_expr): Verify that local declarations belong to
15327 this function. Call verify_expr on MEM_REFs and bases of other
15328 handled_components.
15330 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15332 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
15333 for WORD_REGISTER_OPERATIONS to runtime check.
15335 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15337 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
15339 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15341 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
15342 big-endian compilation.
15343 * config/arc/arc.md (addf3): Likewise.
15344 (subdf3): Likewise.
15345 (muldf3): Likewise.
15347 2016-04-28 Richard Biener <rguenther@suse.de>
15349 PR tree-optimization/70840
15350 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
15351 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
15352 Mark x * pow(x,c) -> pow(x,c+1) commutative.
15353 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
15355 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15357 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
15358 and explain why in a comment.
15360 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15362 * config/arc/arc.md (cpu_facility): Add fpx variant.
15363 (subdf3): Prohibit use reverse sub when assist operations option
15365 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
15366 instructions only when FPX is enabled.
15367 * testsuite/gcc.target/arc/trsub.c: New test.
15369 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15371 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
15372 mult_operator when calculating "type" attribute.
15373 (*fop_<mode>_1_i387): Ditto.
15374 (*fop_xf_1_i387): Ditto.
15375 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
15376 Use std::swap to swap operands. Use RTL expressions to generate
15379 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15380 Joern Rennecke <joern.rennecke@embecosm.com>
15382 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
15384 (emit_pic_move): Remove.
15385 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
15386 * config/arc/arc.c (emit_pic_move): Removed.
15387 (TARGET_HAVE_TLS): Define.
15388 (arc_conditional_register_usage): Test for arc_tp_regno.
15389 (arc_print_operand, arc_print_operand_address): Handle TLS
15391 (arc_needs_pcl_p): New function.
15392 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
15393 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
15394 (arc_raw_symbolic_reference_mentioned_p): Likewise.
15395 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
15396 (arc_legitimize_tls_address): Likewise.
15397 (DTPOFF_ZERO_SYM): Define.
15398 (arc_legitimize_pic_address): Make it static, handle TLS cases.
15399 (arc_output_pic_addr_const): Print TLS unspecs.
15400 (prepare_pic_move): New function, replaces emit_pic_move.
15401 (arc_legitimate_constant_p): Handle TLS unspecs.
15402 (arc_legitimate_address_p): Likewise.
15403 (arc_rewrite_small_data_p): Use assert for TLS constants.
15404 (prepare_move_operands): Use prepare_pic_move.
15405 (arc_legitimize_address): Legitimize tls addresses.
15406 (arc_epilogue_uses): Check for arc_tp_regno.
15407 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
15408 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
15410 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
15412 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
15413 %(arc_tls_extra_start_spec).
15414 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
15415 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
15417 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
15418 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
15419 (UNSPEC_TLS_OFF): Add.
15421 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
15422 (get_thread_pointersi): New patterns.
15423 * config/arc/arc.opt (mtp-regno): New option.
15424 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
15425 (move_dest_operand): Likewise.
15426 * configure: Regenerate.
15427 * configure.ac: Add arc*-*-* case to test for tls.
15428 * doc/invoke.texi (ARC options): Document mtp-regno.
15430 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
15432 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
15433 the new ARC HS SIMD instructions.
15434 (arc_preferred_simd_mode): New function.
15435 (arc_autovectorize_vector_sizes): Likewise.
15436 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
15437 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15438 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
15439 (arc_init_builtins): Add new SIMD builtin types.
15440 (arc_split_move): Handle 64 bit vector moves.
15441 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
15442 (TARGET_PLUS_QMACW): Define.
15443 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
15444 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
15445 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
15446 (VSUBADD4H): New builtins.
15447 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
15448 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
15450 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
15451 Matthias Klose <doko@debian.org>
15453 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
15455 2016-04-28 Richard Biener <rguenther@suse.de>
15457 PR middle-end/70777
15458 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
15461 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
15463 * common/config/sh/sh-common.c: Remove SH5 support.
15464 * config/sh/constraints.md: Likewise.
15465 * config/sh/config/sh/elf.h: Likewise.
15466 * config/sh/linux.h: Likewise.
15467 * config/sh/netbsd-elf.h: Likewise.
15468 * config/sh/predicates.md: Likewise.
15469 * config/sh/sh-c.c: Likewise.
15470 * config/sh/sh-protos.h: Likewise.
15471 * config/sh/sh.c: Likewise.
15472 * config/sh/sh.h: Likewise.
15473 * config/sh/sh.md: Likewise.
15474 * config/sh/sh.opt: Likewise.
15475 * config/sh/sync.md: Likewise.
15476 * config/sh/sh64.h: Delete.
15477 * config/sh/shmedia.h: Likewise.
15478 * config/sh/shmedia.md: Likewise.
15479 * config/sh/sshmedia.h: Likewise.
15480 * config/sh/t-netbsd-sh5-64: Likewise.
15481 * config/sh/t-sh64: Likewise.
15482 * config/sh/ushmedia.h: Likewise.
15484 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
15486 * config/i386/i386.md (sign_extend to memory peephole2s): Use
15487 general_reg_operand instead of register_operand predicate.
15489 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15491 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
15493 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
15495 * match.pd (A - B > A, A + B < A): New transformations.
15497 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
15499 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
15500 which defaults to true. Emit an outer pair of parentheses only if
15501 EMIT_PARENS. When continuing a chain of && or || (or & or |),
15502 don't emit parentheses for the right-hand operand.
15504 2016-04-27 Jeff Law <law@redhat.com>
15506 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
15508 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15510 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
15511 (altivec_lvx_<mode>_internal): Document.
15512 (altivec_lvx_<mode>_2op): New define_insn.
15513 (altivec_lvx_<mode>_1op): Likewise.
15514 (altivec_lvx_<mode>_2op_si): Likewise.
15515 (altivec_lvx_<mode>_1op_si): Likewise.
15516 (altivec_stvx_<mode>): Remove.
15517 (altivec_stvx_<mode>_internal): Document.
15518 (altivec_stvx_<mode>_2op): New define_insn.
15519 (altivec_stvx_<mode>_1op): Likewise.
15520 (altivec_stvx_<mode>_2op_si): Likewise.
15521 (altivec_stvx_<mode>_1op_si): Likewise.
15522 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15523 Expand vec_ld and vec_st during parsing.
15524 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
15526 (altivec_expand_stvx_be): Likewise.
15527 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
15528 address-masking behavior in RTL.
15529 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
15530 address-masking behavior in RTL.
15531 (altivec_expand_builtin): Change builtin code arguments for calls
15532 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
15533 (insn_is_swappable_p): Avoid incorrect swap optimization in the
15534 presence of lvx/stvx patterns.
15535 (alignment_with_canonical_addr): New function.
15536 (alignment_mask): Likewise.
15537 (find_alignment_op): Likewise.
15538 (recombine_lvx_pattern): Likewise.
15539 (recombine_stvx_pattern): Likewise.
15540 (recombine_lvx_stvx_patterns): Likewise.
15541 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
15542 stvx patterns from expand.
15543 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
15545 (vector_altivec_store_<mode>): Likewise.
15547 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
15549 * config/aarch64/aarch64.md
15550 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
15551 remove the "fp" attributes.
15552 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
15553 add the "simd" attributes.
15554 (*movdf_aarch64): Likewise.
15555 (*movtf_aarch64): Remove the "fp" attributes.
15556 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
15557 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
15559 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15561 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
15562 rtx to rtx_code_label *.
15563 * rtl.h (maybe_set_first_label_num): Likewise.
15565 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15567 * df-core.c (df_add_problem): Make the problem param be const.
15568 (df_remove_problem): Make local "problem" be const.
15569 * df-problems.c (problem_RD): Make const.
15570 (problem_LR): Likewise.
15571 (problem_LIVE): Likewise.
15572 (problem_MIR): Likewise.
15573 (problem_CHAIN): Likewise.
15574 (problem_WORD_LR): Likewise.
15575 (problem_NOTE): Likewise.
15576 (problem_MD): Likewise.
15577 * df-scan.c (problem_SCAN): Likewise.
15578 * df.h (struct df_problem): Make field "dependent_problem" be
15580 (struct dataflow): Likewise for field "problem".
15581 (df_add_problem): Make param const.
15583 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
15585 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
15586 inter-unit moves to/from vector registers are enabled. Do not disable
15589 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15591 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
15592 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
15594 (enum df_problem_id): ...this new enum.
15595 (struct df_problem): Convert field "id" from "int" to
15596 enum df_problem_id.
15598 2016-04-27 David Malcolm <dmalcolm@redhat.com>
15600 * rtl.def: Update comment for "things in the instruction chain" to
15601 reflect the removal of the leading "i" field for INSN_UID in
15602 r210360. Fix bogus apostrophe.
15604 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
15606 * config/i386/i386.md
15607 (lea arith with mem operand + setcc peephole2): Set operator mode.
15609 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
15612 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
15613 (dimode_scalar_to_vector_candidate_p): This.
15614 (timode_scalar_to_vector_candidate_p): New function.
15615 (scalar_to_vector_candidate_p): Likewise.
15616 (timode_check_non_convertible_regs): Likewise.
15617 (timode_remove_non_convertible_regs): Likewise.
15618 (remove_non_convertible_regs): Likewise.
15619 (remove_non_convertible_regs): Renamed to ...
15620 (dimode_remove_non_convertible_regs): This.
15621 (scalar_chain::~scalar_chain): Make it virtual.
15622 (scalar_chain::compute_convert_gain): Make it pure virtual.
15623 (scalar_chain::mark_dual_mode_def): Likewise.
15624 (scalar_chain::convert_insn): Likewise.
15625 (scalar_chain::convert_registers): Likewise.
15626 (scalar_chain::add_to_queue): Make it protected.
15627 (scalar_chain::emit_conversion_insns): Likewise.
15628 (scalar_chain::replace_with_subreg): Likewise.
15629 (scalar_chain::replace_with_subreg_in_insn): Likewise.
15630 (scalar_chain::convert_op): Likewise.
15631 (scalar_chain::convert_reg): Likewise.
15632 (scalar_chain::make_vector_copies): Likewise.
15633 (scalar_chain::convert_registers): New pure virtual function.
15634 (class dimode_scalar_chain): New class.
15635 (class timode_scalar_chain): Likewise.
15636 (scalar_chain::mark_dual_mode_def): Renamed to ...
15637 (dimode_scalar_chain::mark_dual_mode_def): This.
15638 (timode_scalar_chain::mark_dual_mode_def): New function.
15639 (timode_scalar_chain::convert_insn): Likewise.
15640 (dimode_scalar_chain::convert_registers): Likewise.
15641 (scalar_chain::compute_convert_gain): Renamed to ...
15642 (dimode_scalar_chain::compute_convert_gain): This.
15643 (scalar_chain::replace_with_subreg): Renamed to ...
15644 (dimode_scalar_chain::replace_with_subreg): This.
15645 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
15646 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
15647 (scalar_chain::make_vector_copies): Renamed to ...
15648 (dimode_scalar_chain::make_vector_copies): This.
15649 (scalar_chain::convert_reg): Renamed to ...
15650 (dimode_scalar_chain::convert_reg ): This.
15651 (scalar_chain::convert_op): Renamed to ...
15652 (dimode_scalar_chain::convert_op): This.
15653 (scalar_chain::convert_insn): Renamed to ...
15654 (dimode_scalar_chain::convert_insn): This.
15655 (scalar_chain::convert): Call convert_registers.
15656 (convert_scalars_to_vector): Change to scalar_chain pointer to
15657 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
15658 in 32-bit mode. Delete scalar_chain pointer. Call
15659 free_dominance_info in 64-bit mode.
15660 (pass_stv::gate): Remove TARGET_64BIT check.
15661 (ix86_option_override): Put the 64-bit STV pass before the CSE
15664 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
15666 * dwarf2out.h (struct dw_loc_descr_node): Remove the
15667 dw_loc_frame_offset field.
15668 * dwarf2out.c (new_loc_descr): Likewise.
15669 (resolve_args_picking_1): Turn the VISITED hash set into a
15670 FRAME_OFFSET hash map. Use it to associate a frame offset to
15671 visited nodes. Remove uses of the CHECKING_P macro.
15672 (resolve_args_picking): Update call to resolve_args_picking_1.
15674 2016-04-27 Martin Liska <mliska@suse.cz>
15676 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
15677 (free_loop_data): Release vuses of groups.
15679 2016-04-27 Bin Cheng <bin.cheng@arm.com>
15681 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
15682 instead of redundant use_id and boolean have_use_for.
15683 (struct iv_use): Change sub_id into group_id. Remove field next.
15684 Move fields: related_cands, n_map_members, cost_map and selected
15686 (struct iv_group): ... here. New structure.
15687 (struct iv_common_cand): Use structure declaration directly.
15688 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
15689 (MAX_CONSIDERED_USES): Rename macro to ...
15690 (MAX_CONSIDERED_GROUPS): ... here.
15691 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
15692 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
15693 (dump_uses): Rename to ...
15694 (dump_groups): ... here. Update all uses.
15695 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
15696 (find_induction_variables): Refactor format of dump information.
15697 (record_sub_use): Delete.
15698 (record_use): Update all uses.
15699 (record_group): New function.
15700 (record_group_use, find_interesting_uses_op): Call above functions.
15702 (find_interesting_uses_cond): Ditto.
15703 (group_compare_offset): New function.
15704 (split_all_small_groups): Rename to ...
15705 (split_small_address_groups_p): ... here. Update all uses.
15706 (split_address_groups): Update all uses.
15707 (find_interesting_uses): Refactor format of dump information.
15708 (add_candidate_1): Update all uses. Remove redundant check on iv,
15710 (add_candidate, record_common_cand): Remove redundant assert.
15711 (add_iv_candidate_for_biv): Update use.
15712 (add_iv_candidate_derived_from_uses): Update all uses.
15713 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
15714 (alloc_use_cost_map): Ditto.
15715 (set_use_iv_cost, get_use_iv_cost): Rename to ...
15716 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
15717 (determine_use_iv_cost_generic): Ditto.
15718 (determine_group_iv_cost_generic): Ditto.
15719 (determine_use_iv_cost_address): Ditto.
15720 (determine_group_iv_cost_address): Ditto.
15721 (determine_use_iv_cost_condition): Ditto.
15722 (determine_group_iv_cost_cond): Ditto.
15723 (determine_use_iv_cost): Ditto.
15724 (determine_group_iv_cost): Ditto.
15725 (set_autoinc_for_original_candidates): Update all uses.
15726 (find_iv_candidates): Update all uses. Refactor dump information.
15727 (determine_use_iv_costs): Ditto.
15728 (determine_iv_costs): Ditto.
15729 (iv_ca_cand_for_use): Rename to ...
15730 (iv_ca_cand_for_group): ... here. Update all uses.
15731 (iv_ca_add_use, iv_ca_add_group): Ditto.
15732 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
15733 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
15734 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
15735 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
15736 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
15737 (create_new_iv, adjust_iv_update_pos): Ditto.
15738 (rewrite_use_address): Delete.
15739 (rewrite_use_address_1): Rename to ...
15740 (rewrite_use_address): ... here.
15741 (rewrite_use_compare): Update all uses.
15742 (rewrite_use): Delete.
15743 (rewrite_uses): Rename to ...
15744 (rewrite_groups): ... here. Update all uses.
15745 (remove_unused_ivs, free_loop_data): Update all uses.
15746 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
15748 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15750 * rtlanal.c (nonzero_bits1): Convert preprocessor check
15751 for WORD_REGISTER_OPERATIONS to runtime check.
15753 2016-04-27 Richard Biener <rguenther@suse.de>
15756 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
15757 aggregate_value_p to determine if a function result is
15758 returned by reference.
15759 (ipa_pta_execute): Functions having their address taken are
15760 not automatically nonlocal.
15762 2016-04-27 Jakub Jelinek <jakub@redhat.com>
15765 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
15766 * fold-const.c (operand_equal_p): If flag_checking and
15767 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
15768 and if it returns non-zero, assert iterative_hash_expr on both
15771 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
15773 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
15775 2016-04-27 Nick Clifton <nickc@redhat.com>
15777 PR middle-end/49889
15778 * varasm.c (merge_weak): Generate an error if an attempt is made
15779 to convert a non-weak static function into a weak, public function.
15781 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15783 * params.def (MAX_PARTITION_SIZE): New param.
15784 * doc/invoke.texi: Document lto-max-partition.
15786 2016-04-27 Richard Biener <rguenther@suse.de>
15789 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
15790 function cummulating used_from_other_partition, externally_visible
15791 and force_output from aliases.
15792 (refered_from_nonlocal_var): Likewise.
15793 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
15794 node flags properly.
15796 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
15798 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
15799 (-Wmemset-elt-size): New item.
15801 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
15804 * stor-layout.h (internal_reference_types): Delete.
15805 * stor-layout.c (reference_types_internal): Likewise.
15806 (internal_reference_types): Likewise.
15807 (layout_type) <REFERENCE_TYPE>: Adjust.
15809 2016-04-27 Jakub Jelinek <jakub@redhat.com>
15812 * tree.h (inchash::add_expr): Add FLAGS argument.
15813 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
15814 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
15815 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
15816 Formatting fix. Adjust recursive calls. For tcc_comparison,
15817 if swap_tree_comparison (code) is smaller than code, hash that
15818 and arguments in the other order. Hash CONVERT_EXPR the same
15819 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
15820 of ADDR_EXPR of decl as the decl itself. Add or remove
15821 OEP_ADDRESS_OF from recursive flags as needed. For
15822 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
15823 operands commutatively and only the third one normally.
15824 For internal CALL_EXPR hash in CALL_EXPR_IFN.
15826 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
15828 * config/rtems.h (LIB_SPEC): Add -latomic.
15830 2016-04-27 Joel Sherrill <joel@rtems.org>
15832 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
15833 xilink.ld and flags not relevant to RTEMS.
15835 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15837 * toplev.c (backend_init_target): Avoid calling init_reload when using
15840 2016-04-26 Jakub Jelinek <jakub@redhat.com>
15842 * reorg.c (try_merge_delay_insns): Declare i and j inside the
15843 for loops rather than one for the whole function.
15845 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
15847 * match.pd (X + CST CMP X): New transformation.
15849 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
15851 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
15852 * fold-const.c (fold_binary_loc): Remove 2 transformations
15853 superseded by match.pd.
15854 * match.pd (x+x -> x*2): Generalize to integers.
15856 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
15858 * config/i386/i386.md (operation on memory peephole): Duplicate an
15859 existing peephole and adapt it to match lea rather than an operation
15862 PR rtl-optimization/57193
15863 * opts.c (default_options_table): Add OPT_frename_registers at -O2
15865 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
15867 2016-04-26 Bin Cheng <bin.cheng@arm.com>
15869 * tree-if-conv.c (any_pred_load_store): New static variable.
15870 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
15871 any_pred_load_store instead of and_mask_load_store.
15872 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
15873 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
15874 (combine_blocks, tree_if_conversion): Ditto.
15876 2016-04-26 Bin Cheng <bin.cheng@arm.com>
15878 PR tree-optimization/70771
15879 PR tree-optimization/70775
15880 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
15881 virtual PHI nodes. Delete parameter.
15882 (if_convertible_loop_p_1): Delete argument to above function.
15883 (predicate_all_scalar_phis): Delete code handling single-argument
15885 (tree_if_conversion): Mark and update virtual SSA.
15887 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15890 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
15891 (x86_elf_aligned_common): Rename to ...
15892 (x86_elf_aligned_decl_common): ... this.
15893 Add decl arg. Switch to .lbss for largecomm object. Use
15894 LARGECOMM_SECTION_ASM_OP.
15895 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
15897 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
15898 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
15900 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15901 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
15903 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15906 * config/i386/i386.c (SECTION_LARGE): Define.
15907 (x86_64_elf_select_section): Set it for large data/bss sections.
15908 Only clear SECTION_WRITE for .lrodata.
15909 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
15911 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
15912 * varasm.c (default_elf_asm_named_section): Grow flagchars.
15913 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
15915 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
15916 * doc/tm.texi: Regenerate.
15918 2016-04-26 Jakub Jelinek <jakub@redhat.com>
15921 * configure.ac (--enable-checking): Document extra flag, for
15922 non-release builds default to --enable-checking=yes,extra.
15923 If misc checking and extra checking, define CHECKING_P to 2 instead
15925 * common.opt (fchecking=): Add.
15926 * doc/invoke.texi (-fchecking=): Document.
15927 * doc/install.texi: Document --enable-checking changes.
15928 * configure: Regenerated.
15929 * config.in: Regenerated.
15931 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
15933 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
15934 attribute instead of which_alternative.
15935 * config/i386/sse.md (*mov<mode>_internal): Ditto.
15936 Use EXT_REX_SSE_REG_P where appropriate.
15938 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
15940 * config/i386/predicates.md (const0_operand): Do not match
15941 const_wide_int code.
15942 (const1_operand): Ditto.
15944 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
15946 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
15947 for SSE constm1 operands and TARGET_AVX512VL.
15948 (*movti_internal): Ditto.
15949 (*mov<mode>_or): Use constm1_operand predicate.
15950 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
15951 for SSE vector_all_ones operands and TARGET_AVX512VL.
15952 * config/i386/predicates.md (constm1_operand): New predicate.
15953 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
15954 emission of constant -1 load.
15956 2016-04-25 Jason Merrill <jason@redhat.com>
15958 * gdbinit.in: Skip is-a.h.
15960 * attribs.c (register_scoped_attributes): Fix logic.
15961 * attribs.h: Declare register_scoped_attributes.
15963 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15965 * config/rs6000/rs6000-builtin.def: Correct pasto error for
15966 stxvd2x and stxvw4x built-in functions.
15968 2016-04-25 DJ Delorie <dj@redhat.com>
15970 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
15971 (ashrhi3): Likewise.
15972 (lshrhi3): Likewise.
15974 2016-04-25 Richard Biener <rguenther@suse.de>
15976 PR tree-optimization/70780
15977 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
15978 wasn't visited yet.
15979 (compute_antic): Mark blocks with abnormal preds as visited as
15980 they have a final empty antic-in solution already.
15982 2016-04-25 Michael Collison <michael.collison@linaro.org>
15984 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
15986 2016-04-25 Michael Collison <michael.collison@linaro.org>
15988 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
15989 mode is VQI to improve mixed mode vectorization.
15990 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
15991 define_insn to match low half of signed vaddw.
15992 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
15993 define_insn to match high half of signed vaddw.
15994 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
15995 define_insn to match low half of unsigned vaddw.
15996 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
15997 define_insn to match high half of unsigned vaddw.
15998 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
15999 (arm_simd_check_vect_par_cnst_half_p): Likewise.
16000 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16002 (arm_simd_check_vect_par_cnst_half_p): Likewise.
16003 * config/arm/predicates.md (vect_par_constant_high): Support
16004 big endian and simplify by calling
16005 arm_simd_check_vect_par_cnst_half
16006 (vect_par_constant_low): Likewise.
16008 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
16010 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16011 predicate for operand 2.
16013 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
16014 H.J. Lu <hongjiu.lu@intel.com>
16016 * config/i386/i386-protos.h (standard_sse_constant_p): Add
16017 machine_mode argument.
16018 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16019 constm1_rtx operands. For VOIDmode constants, get mode from
16020 pred_mode. Check mode size if the mode is supported by ABI.
16021 (standard_sse_constant_opcode): Do not use standard_constant_p.
16022 Strictly check ABI support for all-ones operands.
16023 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16024 immediates. Update calls to standard_sse_constant_p.
16025 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16026 (ix86_rtx_costs): Ditto.
16027 * config/i386/i386.md (*movxi_internal_avx512f): Use
16028 nonimmediate_or_sse_const_operand instead of vector_move_operand.
16029 Use (v,BC) alternative instead of (v,C). Use register_operand
16030 checks instead of MEM_P.
16031 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16032 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
16033 isa attribute. Use register_operand checks instead of MEM_P.
16034 (*movti_internal): Use nonimmediate_or_sse_const_operand for
16035 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
16036 alternative and corresponding sse2 isa attribute.
16037 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16038 to standard_sse_constant_p.
16039 (FP constant splitters): Ditto.
16040 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16042 * config/i386/predicates.md (constm1_operand): Remove.
16043 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16044 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16045 vector_all_ones_operand instead of constm1_operand.
16047 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16049 * print-rtl.c (print_rtx_insn_vec): New function.
16050 * print-rtl.h: New prototype.
16051 * store-motion.c (struct st_expr): Make avail_stores a vector.
16052 (st_expr_entry): Adjust.
16053 (free_st_expr_entry): Likewise.
16054 (print_store_motion_mems): Likewise.
16055 (find_moveable_store): Likewise.
16056 (compute_store_table): Likewise.
16057 (delete_store): Likewise.
16058 (build_store_vectors): Likewise.
16060 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16062 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16064 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16066 * vec.h (vec_safe_contains): New function.
16067 (vec::contains): Likewise.
16068 (vec::begin): Likewise.
16069 (vec::end): Likewise.
16071 2016-04-23 Jakub Jelinek <jakub@redhat.com>
16074 * cfgexpand.c (expand_stack_vars): Fix typo.
16076 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
16078 * system.h (list, map, set, vector): Include conditionally.
16079 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16080 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16081 * ipa-icf.c (INCLUDE_LIST): Define.
16082 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16083 * config/sh/sh.c (INCLUDE_VECTOR): Define.
16084 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16085 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16086 * cp/logic.cc (INCLUDE_LIST): Define.
16087 * fortran/trans-common.c (INCLUDE_MAP): Define.
16089 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
16091 * auto-profile.c: Remove <string.h> include.
16092 * ipa-icf-gimple.c: Remove <list> include.
16093 * diagnostic.c: Remove <new> include.
16094 * genmatch.c: Likewise.
16095 * pretty-print.c: Likewise.
16096 * toplev.c: Likewise
16097 * c/c-objc-common.c: Likewise.
16098 * cp/error.c: Likewise.
16099 * fortran/error.c: Likewise.
16101 2016-04-22 Richard Biener <rguenther@suse.de>
16103 * lto-streamer-in.c (input_ssa_names): Do not allocate
16104 GIMPLE_NOP for all SSA names.
16105 * lto-streamer-out.c (output_ssa_names): Do not output
16106 SSA names that should have been released.
16108 2016-04-22 Richard Biener <rguenther@suse.de>
16110 PR tree-optimization/70740
16111 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
16114 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
16117 * config/i386/predicates.md (call_insn_operand): Replace
16118 sibcall_memory_operand with memory_operand.
16120 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
16122 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
16123 has_single_use() tests.
16124 (register_edge_assert_for_1): Likewise.
16125 (find_assert_locations_1): Check the liveness bitmap instead of
16126 checking has_single_use().
16128 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
16131 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
16132 Extract AVX-512BW constraint from AVX.
16134 2016-04-21 Richard Biener <rguenther@suse.de>
16136 PR tree-optimization/70725
16137 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
16138 for phi_convertible_by_degenerating_args.
16139 (predicate_all_scalar_phis): Handle single-argument PHIs.
16141 2016-04-21 Richard Biener <rguenther@suse.de>
16143 PR middle-end/70747
16144 * fold-const.c (fold_comparison): Return properly typed
16147 2016-04-21 Bin Cheng <bin.cheng@arm.com>
16149 PR tree-optimization/70715
16150 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16151 after expanding BASE using expand_simple_operations.
16153 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
16155 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
16156 New transformations.
16158 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
16160 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
16162 2016-04-20 Jan Hubicka <jh@suse.cz>
16164 * ipa-inline.c (can_inline_edge_p): Pass caller info to
16165 ultiimate_alias_target.
16166 (update_callee_keys): Likewise.
16167 (lookup_recursive_calls): Likewise.
16168 (speculation_useful_p): Likewise.
16170 2016-04-20 Jan Hubicka <jh@suse.cz>
16173 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
16174 (set_nothrow_flag_1): ... this; handle interposition correctly;
16175 recurse on aliases and thunks.
16176 (cgraph_node::set_nothrow_flag): New.
16177 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
16178 functions compiled with non-call exceptions that binds to current
16180 (propagate_nothrow): Be safe WRT interposition.
16181 * cgraph.h (set_nothrow_flag): Update prototype.
16183 2016-04-18 Jan Hubicka <jh@suse.cz>
16185 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
16186 max_loop_iterations_int.
16187 (tree_unswitch_outer_loop): Likewise.
16189 2016-04-20 Bin Cheng <bin.cheng@arm.com>
16191 PR tree-optimization/69489
16192 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
16193 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
16194 Revise dump message.
16195 (if_convertible_bb_p): Remove check on edge count of basic block's
16198 2016-04-20 Bin Cheng <bin.cheng@arm.com>
16200 PR tree-optimization/56625
16201 PR tree-optimization/69489
16202 * tree-data-ref.h (DR_INNERMOST): New macro.
16203 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
16204 hashing struct innermost_loop_behavior.
16205 (ref_DR_map): Remove.
16206 (innermost_DR_map): New map.
16207 (baseref_DR_map): Revise comment.
16208 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
16209 to innermost_DR_map accroding to its innermost loop behavior.
16210 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
16211 to its innermost loop behavior.
16212 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
16213 Add initialization for innermost_DR_map. Record memory reference
16214 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
16215 have innermost loop behavior.
16216 (if_convertible_loop_p): Remove release for ref_DR_map. Release
16219 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
16221 * config/i386/i386.md (*lea<mode>_general_1): Rename from
16222 *lea_general_1. Use explicit SWI12 mode interator.
16223 (*lea<mode>_general_2): Rename from *lea_general_2.
16224 Use explicit SWI12 mode interator.
16225 (*lea<mode>_general_3): Rename from *lea_general_3.
16226 Use explicit SWI12 mode interator.
16227 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
16228 Use explicit SWI12 mode interator.
16229 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
16230 Use explicit SWI48 mode interator.
16232 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
16234 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16235 Short-cut unaligned load and store cases. Handle all integer
16237 (ix86_expand_vector_move_misalign): Short-cut unaligned load
16238 and store cases. Call ix86_avx256_split_vector_move_misalign
16239 directly without checking mode class.
16241 2016-04-20 Andrew Pinski <apinski@cavium.com>
16242 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16245 * config/aarch64/aarch64.md (sibcall): Force call
16246 address to be DImode for ILP32.
16247 (sibcall_value): Likewise.
16249 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
16251 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
16253 2016-04-20 Richard Biener <rguenther@suse.de>
16255 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
16256 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
16257 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
16258 (maybe_push_res_to_seq): Adjust.
16259 * gimple-fold.c (maybe_build_generic_op): Likewise.
16261 2016-04-20 Marek Polacek <polacek@redhat.com>
16263 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
16266 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
16268 * config/i386/sse.md (vec_unpacks_lo_hi): Always
16269 use kmovw to support AVX512F target.
16271 2016-04-20 Bin Cheng <bin.cheng@arm.com>
16273 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
16275 2016-04-20 Marek Polacek <polacek@redhat.com>
16277 PR tree-optimization/70725
16278 * tree-if-conv.c (is_false_predicate): New function.
16279 (predicate_mem_writes): Use it.
16281 2016-04-20 Richard Biener <rguenther@suse.de>
16283 PR tree-optimization/70726
16284 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
16285 shift amounts from a pattern stmt operand.
16287 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16290 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
16291 stack_restore_from_fpr pattern when restoring r15.
16292 (s390_optimize_prologue): Strip away the memory barrier in the
16293 parallel when trying to get rid of restore insns.
16294 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
16295 definition for loading the stack pointer from an FPR. Compared to
16296 the normal move insn this pattern includes a full memory barrier.
16298 2016-04-19 Jakub Jelinek <jakub@redhat.com>
16300 PR middle-end/70680
16301 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
16302 implicitly linear or lastprivate iterator on the outer context.
16304 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
16306 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
16308 * config/i386/i386.md (ssememalign): Removed.
16309 * config/i386/sse.md: Remove ssememalign attribute from patterns.
16311 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
16314 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
16315 const short * to __builtin_ia32_loaddquhi512_mask.
16316 (_mm512_maskz_loadu_epi16): Likewise.
16317 (_mm512_mask_storeu_epi16): Pass short * to
16318 __builtin_ia32_storedquhi512_mask.
16319 (_mm512_mask_loadu_epi8): Pass const char * to
16320 __builtin_ia32_loaddquqi512_mask.
16321 (_mm512_maskz_loadu_epi8): Likewise.
16322 (_mm512_mask_storeu_epi8): Pass char * to
16323 __builtin_ia32_storedquqi512_mask.
16324 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
16325 const double * to __builtin_ia32_loadupd512_mask.
16326 (_mm512_mask_loadu_pd): Likewise.
16327 (_mm512_maskz_loadu_pd): Likewise.
16328 (_mm512_storeu_pd): Pass double * to
16329 __builtin_ia32_storeupd512_mask.
16330 (_mm512_mask_storeu_pd): Likewise.
16331 (_mm512_loadu_ps): Pass const float * to
16332 __builtin_ia32_loadups512_mask.
16333 (_mm512_mask_loadu_ps): Likewise.
16334 (_mm512_maskz_loadu_ps): Likewise.
16335 (_mm512_storeu_ps): Pass float * to
16336 __builtin_ia32_storeups512_mask.
16337 (_mm512_mask_storeu_ps): Likewise.
16338 (_mm512_mask_loadu_epi64): Pass const long long * to
16339 __builtin_ia32_loaddqudi512_mask.
16340 (_mm512_maskz_loadu_epi64): Likewise.
16341 (_mm512_mask_storeu_epi64): Pass long long *
16342 to __builtin_ia32_storedqudi512_mask.
16343 (_mm512_loadu_si512): Pass const int * to
16344 __builtin_ia32_loaddqusi512_mask.
16345 (_mm512_mask_loadu_epi32): Likewise.
16346 (_mm512_maskz_loadu_epi32): Likewise.
16347 (_mm512_storeu_si512): Pass int * to
16348 __builtin_ia32_storedqusi512_mask.
16349 (_mm512_mask_storeu_epi32): Likewise.
16350 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
16351 char * to __builtin_ia32_storedquqi256_mask.
16352 (_mm_mask_storeu_epi8): Likewise.
16353 (_mm256_mask_loadu_epi16): Pass const short * to
16354 __builtin_ia32_loaddquhi256_mask.
16355 (_mm256_maskz_loadu_epi16): Likewise.
16356 (_mm_mask_loadu_epi16): Pass const short * to
16357 __builtin_ia32_loaddquhi128_mask.
16358 (_mm_maskz_loadu_epi16): Likewise.
16359 (_mm256_mask_loadu_epi8): Pass const char * to
16360 __builtin_ia32_loaddquqi256_mask.
16361 (_mm256_maskz_loadu_epi8): Likewise.
16362 (_mm_mask_loadu_epi8): Pass const char * to
16363 __builtin_ia32_loaddquqi128_mask.
16364 (_mm_maskz_loadu_epi8): Likewise.
16365 (_mm256_mask_storeu_epi16): Pass short * to.
16366 __builtin_ia32_storedquhi256_mask.
16367 (_mm_mask_storeu_epi16): Pass short * to.
16368 __builtin_ia32_storedquhi128_mask.
16369 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
16370 const double * to __builtin_ia32_loadupd256_mask.
16371 (_mm256_maskz_loadu_pd): Likewise.
16372 (_mm_mask_loadu_pd): Pass onst double * to
16373 __builtin_ia32_loadupd128_mask.
16374 (_mm_maskz_loadu_pd): Likewise.
16375 (_mm256_mask_storeu_pd): Pass double * to
16376 __builtin_ia32_storeupd256_mask.
16377 (_mm_mask_storeu_pd): Pass double * to
16378 __builtin_ia32_storeupd128_mask.
16379 (_mm256_mask_loadu_ps): Pass const float * to
16380 __builtin_ia32_loadups256_mask.
16381 (_mm256_maskz_loadu_ps): Likewise.
16382 (_mm_mask_loadu_ps): Pass const float * to
16383 __builtin_ia32_loadups128_mask.
16384 (_mm_maskz_loadu_ps): Likewise.
16385 (_mm256_mask_storeu_ps): Pass float * to
16386 __builtin_ia32_storeups256_mask.
16387 (_mm_mask_storeu_ps): ass float * to
16388 __builtin_ia32_storeups128_mask.
16389 (_mm256_mask_loadu_epi64): Pass const long long * to
16390 __builtin_ia32_loaddqudi256_mask.
16391 (_mm256_maskz_loadu_epi64): Likewise.
16392 (_mm_mask_loadu_epi64): Pass const long long * to
16393 __builtin_ia32_loaddqudi128_mask.
16394 (_mm_maskz_loadu_epi64): Likewise.
16395 (_mm256_mask_storeu_epi64): Pass long long * to
16396 __builtin_ia32_storedqudi256_mask.
16397 (_mm_mask_storeu_epi64): Pass long long * to
16398 __builtin_ia32_storedqudi128_mask.
16399 (_mm256_mask_loadu_epi32): Pass const int * to
16400 __builtin_ia32_loaddqusi256_mask.
16401 (_mm256_maskz_loadu_epi32): Likewise.
16402 (_mm_mask_loadu_epi32): Pass const int * to
16403 __builtin_ia32_loaddqusi128_mask.
16404 (_mm_maskz_loadu_epi32): Likewise.
16405 (_mm256_mask_storeu_epi32): Pass int * to
16406 __builtin_ia32_storedqusi256_mask.
16407 (_mm_mask_storeu_epi32): Pass int * to
16408 __builtin_ia32_storedqusi128_mask.
16409 * config/i386/i386-builtin-types.def (PCSHORT): New.
16410 (PINT64): Likewise.
16411 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
16412 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
16413 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
16414 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
16415 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
16416 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
16417 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
16418 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
16419 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
16420 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
16421 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
16422 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
16423 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
16424 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
16425 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
16426 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
16427 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
16428 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
16429 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
16430 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
16431 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
16432 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
16433 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
16434 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
16435 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
16436 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
16437 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
16438 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
16439 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
16440 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
16441 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
16442 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
16443 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
16444 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
16445 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
16446 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
16447 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
16448 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
16449 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
16450 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
16451 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
16452 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
16453 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
16454 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
16455 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
16456 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
16457 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
16458 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
16459 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
16461 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
16462 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
16464 (ix86_expand_vector_move_misalign): Likewise.
16465 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
16466 to scalar function prototype for unaligned load/store builtins.
16467 (ix86_expand_special_args_builtin): Updated.
16468 * config/i386/sse.md (UNSPEC_LOADU): Removed.
16469 (UNSPEC_STOREU): Likewise.
16470 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
16471 (VI_ULOADSTORE_F_AVX512VL): Likewise.
16472 (ssescalarsize): Handle V4TI, V2TI and V1TI.
16473 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16474 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16475 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
16476 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
16477 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
16478 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
16479 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
16480 (<avx512>_storedqu<mode>_mask): Likewise.
16481 (*sse4_2_pcmpestr_unaligned): Likewise.
16482 (*sse4_2_pcmpistr_unaligned): Likewise.
16483 (*mov<mode>_internal): Renamed to ...
16484 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
16485 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
16486 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
16487 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
16489 2016-04-19 Richard Biener <rguenther@suse.de>
16491 PR tree-optimization/70171
16492 * tree-ssa-phiprop.c: Include stor-layout.h.
16493 (phiprop_insert_phi): Handle the aggregate copy case.
16494 (propagate_with_phi): Likewise.
16496 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
16498 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
16499 instead of simplify_gen_subreg (... , 0).
16500 (ix86_delegitimize_address): Ditto.
16501 (ix86_split_divmod): Ditto.
16502 (ix86_split_copysign_const): Ditto.
16503 (ix86_split_copysign_var): Ditto.
16504 (ix86_expand_args_builtin): Ditto.
16505 (ix86_expand_round_builtin): Ditto.
16506 (ix86_expand_special_args_builtin): Ditto.
16507 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
16508 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
16509 (udivmodqi4): Ditto.
16510 (absneg splitters): Ditto.
16511 (*jcc_bt<mode>_1): Ditto.
16513 2016-04-19 Richard Biener <rguenther@suse.de>
16515 PR tree-optimization/70724
16516 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
16517 restoring out from ...
16518 (free_scc_vn): ... here.
16519 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
16520 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
16522 (pass_fre::execute): Restore SSA info.
16524 2016-04-19 Richard Biener <rguenther@suse.de>
16526 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
16527 * gimple-walk.c (walk_gimple_op): Initialize it.
16528 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
16529 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
16530 remapping SSA names of defs.
16531 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
16534 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
16536 PR middle-end/70689
16537 * lra-constraints.c (equiv_substition_p): New.
16538 (process_alt_operands): Use it.
16539 (swap_operands): Swap it.
16540 (curr_insn_transform): Update it.
16542 2016-04-18 Michael Matz <matz@suse.de>
16544 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
16545 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
16546 * tree-core.h (tree_type_common.align): Use bit-field.
16547 (tree_type_common.spare): New.
16548 (tree_decl_common.off_align): Make smaller.
16549 (tree_decl_common.align): Use bit-field.
16551 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
16552 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
16553 (scan_sharing_clauses): Ditto.
16554 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16555 (omp_finish_file): Ditto.
16556 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
16557 (layout_decl): Ditto.
16558 (relayout_decl): Ditto.
16559 (finalize_record_size): Use SET_TYPE_ALIGN.
16560 (finalize_type_size): Ditto.
16561 (finish_builtin_struct): Ditto.
16562 (layout_type): Ditto.
16563 (initialize_sizetypes): Ditto.
16564 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
16565 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
16566 (lookup_field_for_decl): Use SET_DECL_ALIGN.
16567 (get_chain_field): Ditto.
16568 (get_trampoline_type): Ditto.
16569 (get_nl_goto_field): Ditto.
16570 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16572 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
16573 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
16574 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16575 (build_qualified_type): Use SET_TYPE_ALIGN.
16576 (build_aligned_type, build_range_type_1): Ditto.
16577 (build_atomic_base): Ditto.
16578 (build_common_tree_nodes): Ditto.
16579 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
16580 (expand_one_stack_var_at): Ditto.
16581 * coverage.c (build_var): Use SET_DECL_ALIGN.
16582 * except.c (init_eh): Ditto.
16583 * function.c (assign_parm_setup_block): Ditto.
16584 * symtab.c (increase_alignment_1): Ditto.
16585 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
16586 * tree-vect-stmts.c (ensure_base_align): Ditto.
16587 * varasm.c (align_variable): Ditto.
16588 (assemble_variable): Ditto.
16589 (build_constant_desc): Ditto.
16590 (output_constant_def_contents): Ditto.
16592 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
16593 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
16594 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
16595 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
16596 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
16598 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
16601 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
16602 replace %vmovsd with "%vmovq".
16603 (vec_concatv2df): Likewise.
16605 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
16607 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
16608 (*vec_extractv2si_0): Ditto.
16609 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
16610 (zero_extended_scalar_load_operand splitters): Ditto.
16611 (vec_extract splitters): Ditto.
16612 (*vec_extractv4si_0_zext): Ditto.
16613 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
16614 and lowpart_subreg.
16615 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
16616 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
16617 (*sse4_1_extractps): Use lowpart_subreg.
16618 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
16620 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16622 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
16624 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
16625 Mention Solaris 11 packaging changes.
16626 Update gas and gld requirements.
16627 Remove reference to pre-Solaris 10 bug.
16628 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
16630 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
16633 2016-04-17 Jan Hubicka <jh@suse.cz>
16635 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
16636 max_loop_iterations_int.
16638 2016-04-18 Richard Biener <rguenther@suse.de>
16640 PR tree-optimization/43434
16641 * tree-ssa-structalias.c (struct vls_data): New.
16642 (visit_loadstore): Handle all pointer-based accesses.
16643 (compute_dependence_clique): Compute a bitmap of restrict tags
16644 assigned bases and pass it to visit_loadstore.
16646 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
16649 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
16650 armv8.1-a and armv8.1-a+crc.
16652 2016-04-18 Richard Biener <rguenther@suse.de>
16654 PR tree-optimization/70701
16655 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
16656 references after translating through a memcpy.
16658 2016-04-18 Richard Biener <rguenther@suse.de>
16660 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
16661 (compute_antic): ... here. For partial antic use regular
16662 postorder and scrap iteration.
16663 (compute_partial_antic_aux): Remove unused return value.
16664 (init_pre): Do not allocate postorder.
16665 (fini_pre): Do not free postorder.
16667 2016-04-18 Richard Biener <rguenther@suse.de>
16669 PR middle-end/37870
16670 * expmed.c (extract_bit_field_1): Remove broken case
16671 using a wider MODE_INT mode.
16673 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
16675 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
16676 unless compiling with at least GCC-4.8.
16678 2016-04-17 Jan Hubicka <jh@suse.cz>
16681 * graphite.c (graphite_finalize): Update call to
16682 tree_estimate_probability.
16683 * predict.h (tree_estimate_probability): Update prototype.
16685 2016-04-17 Jan Hubicka <jh@suse.cz>
16687 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
16688 (tree_estimate_probability): Likewise.
16689 (pass_profile::execute): Update.
16690 (report_predictor_hitrates): New function.
16691 * profile.c (compute_branch_probabilities): Use it.
16692 * predict.h (report_predictor_hitrates): Declare.
16694 2016-04-17 Jan Hubicka <jh@suse.cz>
16697 * cgraph.h (cgraph_node::set_const_flag,
16698 cgraph_node::set_pure_flag): Update prototype to return bool;
16700 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
16701 of interposable symbol are interposable, too.
16702 (cgraph_set_const_flag_1): Rename to ...
16703 (set_const_flag_1): ... this one; change to self recursive function
16704 instead of call_for_symbol_thunks_and_aliases. Handle correctly
16705 clearnig the flag in all variants and also virtual thunks of const
16706 functions are pure; track if any change was done.
16707 (cgraph_node::set_const_flag): Update.
16708 (struct set_pure_flag_info): New struct.
16709 (cgraph_set_pure_flag_1): Rename to ...
16710 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
16711 rather than pointer encoded flags; track if any changes was done;
16712 handle correctly clearning flag and setting flag of aliases already
16714 (cgraph_node::set_pure_flag): Update.
16715 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
16717 2016-04-17 Tom de Vries <tom@codesourcery.com>
16720 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
16721 backslash in label.
16723 2016-04-17 Tom de Vries <tom@codesourcery.com>
16725 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
16726 '{}<> ' as escape-for-record.
16728 2016-04-17 Tom de Vries <tom@codesourcery.com>
16730 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
16733 2016-04-17 Tom de Vries <tom@codesourcery.com>
16736 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
16737 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
16738 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
16739 * passes.c (finish_optimization_passes): Only call
16740 finish_graph_dump_file if dfi->graph_dump_initialized.
16741 (execute_function_dump, pass_init_dump_file): Use
16742 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
16744 2016-04-17 Tom de Vries <tom@codesourcery.com>
16746 PR tree-optimization/70256
16747 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
16748 (debug_varmap): New function.
16750 2016-04-17 Tom de Vries <tom@codesourcery.com>
16753 * passes.c (pass_manager::register_pass): Propagate pflags.
16755 2016-04-17 Tom de Vries <tom@codesourcery.com>
16758 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
16759 * passes.c (pass_manager::pass_manager): Declare and init p_start in
16760 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
16761 check if it's equal to p_start.
16762 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
16764 2016-04-15 Jan Hubicka <jh@suse.cz>
16767 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
16768 function does not bind to current def.
16769 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
16770 handle conservatively calls to functions that does not need to bind
16772 (check_call): Update call of worse_state.
16773 (ignore_edge_for_nothrow): Update.
16774 (ignore_edge_for_pure_const): Likewise.
16775 (propagate_pure_const): Update calls to worse_state.
16776 (skip_function_for_local_pure_const): Reformat comments.
16778 2016-04-15 Jan Hubicka <jh@suse.cz>
16781 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
16782 (cgraph_node::function_symbol): Likewise.
16783 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
16784 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
16785 (symtab_node::ultimate_alias_target): Add REF parameter.
16786 (symtab_node::binds_to_current_def_p): Declare.
16787 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
16788 (cgraph_node::function_symbol): Likewise.
16789 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
16790 (cgraph_node::get_availability): Likewise.
16791 (cgraph_edge::binds_to_current_def_p): New inline function.
16792 (varpool_node::get_availability): Add REF parameter.
16793 (varpool_node::ultimate_alias_target): Likewise.
16794 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
16795 (symtab_node::binds_to_current_def_p): Likewise.
16796 * varpool.c (varpool_node::get_availability): Likewise.
16798 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
16801 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
16802 Fix mode size check.
16804 2016-04-15 Jakub Jelinek <jakub@redhat.com>
16806 * BASE-VER: Set to 7.0.0.
16808 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
16810 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
16812 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16814 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
16815 architecture revisions.
16817 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
16819 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
16820 * config/i386/i386.c (ix86_using_red_zone): No longer static.
16821 * config/i386/i386.md (stack decrement to push peepholes): Guard
16822 with !x86_using_red_zone ().
16824 2016-04-15 Jakub Jelinek <jakub@redhat.com>
16827 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
16828 to dump_generic_node.
16829 (NIY): Pass also flags to do_niy.
16831 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
16833 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
16834 (simd_clone_vector_of_formal_parm_types)
16835 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
16836 (simd_clone_mangle, simd_clone_create)
16837 (simd_clone_adjust_return_type, create_tmp_simd_array)
16838 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
16839 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
16840 (ipa_simd_modify_function_body, simd_clone_linear_addend)
16841 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
16842 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
16843 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
16844 * omp-simd-clone.c: ... this new file.
16845 (simd_clone_vector_of_formal_parm_types): Make it static.
16846 * Makefile.in (OBJS): Add omp-simd-clone.o.
16848 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
16851 * config/i386/sse.md: Use proper memory operand modifiers.
16854 2016-04-15 Richard Biener <rguenther@suse.de>
16855 Alan Modra <amodra@gmail.com>
16857 PR tree-optimization/70130
16858 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
16859 when alignment stays not the same and no not use the realign
16862 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16865 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
16866 direct move handlers for KFmode. Change TFmode handlers test from
16867 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
16869 2016-04-14 Jakub Jelinek <jakub@redhat.com>
16872 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
16873 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
16874 (inlined_polymorphic_ctor_dtor_block_p): Use it.
16875 * tree-ssa-live.c (remove_unused_scope_block_p): When
16876 in_ctor_dtor_block, avoid discarding not just BLOCKs with
16877 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
16878 block_ultimate_origin is FUNCTION_DECL.
16879 (remove_unused_locals): If current_function_decl is
16880 polymorphic_ctor_dtor_p, pass initial true to
16881 remove_unused_scope_block_p' is_ctor_dtor_block.
16883 2016-04-14 Martin Sebor <msebor@redhat.com>
16888 * doc/extend.texi (Variable Length): Revert.
16890 2016-04-14 Marek Polacek <polacek@redhat.com>
16891 Jan Hubicka <hubicka@ucw.cz>
16894 * tree.c (verify_type): Disable the canonical type of main variant
16897 2016-04-14 Jason Merrill <jason@redhat.com>
16899 * cfgexpand.c, expr.c: Revert previous change.
16901 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
16903 PR middle-end/70643
16904 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
16905 when building a mem ref for the incoming reduction variable.
16907 2016-04-14 Richard Biener <rguenther@suse.de>
16909 PR tree-optimization/70614
16910 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
16911 loop if the evolution dropped to chrec_dont_know.
16912 (interpret_condition_phi): Likewise.
16914 2016-04-14 Richard Biener <rguenther@suse.de>
16916 PR tree-optimization/70623
16917 * tree-ssa-pre.c (changed_blocks): Make global ...
16918 (compute_antic): ... local here. Move and fix worklist
16919 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
16920 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
16921 worklist handling, dump when ANTIC_IN changed.
16922 (compute_partial_antic_aux): Remove worklist handling.
16923 (init_pre): Do not compute post dominators. Add a comment about
16924 the CFG order chosen.
16925 (fini_pre): Do not free post dominators.
16927 2016-04-13 Martin Sebor <msebor@redhat.com>
16932 * doc/extend.texi (Variable Length): Document C++ specifics.
16934 2016-04-13 Jakub Jelinek <jakub@redhat.com>
16937 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
16938 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
16939 eh edges have been purged.
16942 * tree-sra.c (create_access_replacement,
16943 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
16945 * tree-pretty-print.c (dump_fancy_name): New function.
16946 (dump_decl_name, dump_generic_node): Use it.
16948 2016-04-13 Jason Merrill <jason@redhat.com>
16950 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
16951 * expr.c (expand_expr_real_1): Likewise.
16953 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
16955 * config/i386/i386.md (kunpckhi): Swap operands.
16956 (kunpcksi): Likewise.
16957 (kunpckdi): Likewise.
16958 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
16959 (vec_pack_trunc_<mode>): Likewise.
16961 2016-04-13 Jakub Jelinek <jakub@redhat.com>
16964 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
16966 PR middle-end/70633
16967 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
16968 gimplification turns some element into non-constant.
16971 * rtl.h (convert_memory_address_addr_space_1): New prototype.
16972 * explow.c (convert_memory_address_addr_space_1): No longer static,
16973 add NO_EMIT argument and don't call convert_modes if true, pass
16974 it down recursively, remove break after return.
16975 (convert_memory_address_addr_space): Adjust caller.
16976 * simplify-rtx.c (simplify_unary_operation_1): Call
16977 convert_memory_address_addr_space_1 instead of convert_memory_address,
16978 if it returns NULL, don't simplify.
16980 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
16983 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
16985 2016-04-12 Jakub Jelinek <jakub@redhat.com>
16987 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
16988 Bump the upper SIMDLEN limits, so that if the return type or
16989 characteristic type if the return type is void can be passed in
16990 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
16993 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16996 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
16997 Do not use "=" constraint on an input constraint.
16998 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16999 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17000 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17001 generates (neg (abs ...)) instead of (abs ...).
17003 2016-04-12 Jakub Jelinek <jakub@redhat.com>
17005 PR rtl-optimization/70596
17006 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17007 just invalidate LRA data and reset them. Adjust dump wording.
17009 2016-04-12 Martin Liska <mliska@suse.cz>
17012 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
17014 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17016 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17017 max_loop_iterations_int.
17018 (tree_unswitch_outer_loop): Likewise.
17019 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17020 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17022 2016-04-12 Tom de Vries <tom@codesourcery.com>
17024 PR tree-optimization/68756
17025 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17026 instead of new_name.
17028 2016-04-12 Jakub Jelinek <jakub@redhat.com>
17030 PR tree-optimization/70602
17031 * tree-sra.c (generate_subtree_copies): Don't write anything into
17032 constant pool decls.
17034 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17035 regardless whether there are depend clauses or not.
17037 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
17040 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17041 target attribute and pragma from changing the -mfloat128
17042 and -mfloat128-hardware options.
17044 * doc/extend.texi (Additional Floating Types): Document PowerPC
17045 __float128 restrictions.
17047 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17050 * config/aarch64/driver-aarch64.c
17051 (aarch64_get_extension_string_for_isa_flags): New.
17052 (arch_extension): Rename to...
17053 (aarch64_arch_extension): ...This.
17054 (ext_to_feat_string): Rename to...
17055 (aarch64_extensions): ...This.
17056 (aarch64_core_data): Keep track of architecture extension flags.
17057 (cpu_data): Rename to...
17058 (aarch64_cpu_data): ...This.
17059 (aarch64_arch_driver_info): Keep track of architecture extension
17061 (get_arch_name_from_id): Rename to...
17062 (get_arch_from_id): ...This, change return type.
17063 (host_detect_local_cpu): Update and reformat for renames, handle
17064 extensions through common infrastructure.
17066 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17069 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17070 track of a canonical flag name.
17071 (all_extensions): Likewise.
17072 (arch_to_arch_name): Also track extension flags enabled by the arch.
17073 (all_architectures): Likewise.
17074 (aarch64_parse_extension): Move to here.
17075 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17077 (aarch64_rewrite_selected_cpu): Update for above change.
17078 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17079 are handled, such that the single explicit value enabled by an
17080 extension is kept seperate from the implicit values it also enables.
17081 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17083 (aarch64_parse_extension): New.
17084 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17085 here to config/aarch64/aarch64-protos.h.
17086 (aarch64_parse_extension): Move from here to
17087 common/config/aarch64/aarch64-common.c.
17088 (aarch64_option_print): Update.
17089 (aarch64_declare_function_name): Likewise.
17090 (aarch64_start_file): Likewise.
17091 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17092 the canonical flag for extensions.
17093 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17096 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17098 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
17101 2016-04-09 Tom de Vries <tom@codesourcery.com>
17103 PR tree-optimization/68953
17104 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
17105 first to last subscript.
17107 2016-04-09 Jakub Jelinek <jakub@redhat.com>
17109 PR tree-optimization/70586
17110 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
17113 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
17117 PR tree-optimization/70373
17118 PR middle-end/70533
17119 PR middle-end/70534
17120 PR middle-end/70535
17121 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
17122 clauses for acc parallel reductions as necessary. Error on those
17124 * omp-low.c (scan_sharing_clauses): Don't install variables which
17125 are used in acc parallel reductions.
17126 (lower_rec_input_clauses): Remove dead code.
17127 (lower_oacc_reductions): Add support for reference reductions.
17128 (lower_reduction_clauses): Remove dead code.
17129 (lower_omp_target): Don't remap variables appearing in acc parallel
17131 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
17133 2016-04-08 Jakub Jelinek <jakub@redhat.com>
17135 PR middle-end/70593
17136 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
17137 with multiple SSA_NAME defs, force the outputs other than first
17138 to be live before calling live_track_process_def on each output.
17140 PR rtl-optimization/70574
17141 * fwprop.c (forward_propagate_and_simplify): Don't add
17142 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
17143 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
17144 paradoxical subregs within *loc.
17146 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
17148 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
17149 -ftree-parallelize-loops={0,1}.
17150 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17151 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17152 * config/ia64/hpux.h (LIB_SPEC): Likewise.
17153 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17154 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17156 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
17159 * asan.c (instrument_derefs): If we get unknown location, extract it
17160 with EXPR_LOCATION.
17161 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
17163 2016-04-08 Tom de Vries <tom@codesourcery.com>
17165 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
17166 implicit firstprivate clause.
17168 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17171 * config/arm/thumb2.md (tst + branch-> lsls + branch
17172 peephole below *orsi_not_shiftsi_si): Require that condition
17173 register is dead after the peephole.
17174 (second peephole after the above): Likewise.
17176 2016-04-08 Alan Modra <amodra@gmail.com>
17179 * builtins.c (fold_builtin_classify): For IBM extended precision,
17180 look at just the high-order double to test for NaN.
17181 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
17182 test just the high double for Inf but both doubles for subnormal
17185 2016-04-07 Jakub Jelinek <jakub@redhat.com>
17187 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
17188 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
17189 node->simdclone->mask_mode != VOIDmode masks.
17190 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
17191 earlier, use it instead of node->simdclone.
17192 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17193 Set clonei->mask_mode.
17195 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
17198 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
17199 Pass it through to cp_parser_already_scoped_statement.
17200 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
17201 it through to cp_parser_statement.
17202 (cp_parser_statement): Pass IF_P through to
17203 cp_parser_iteration_statement.
17204 (cp_parser_pragma): Adjust call to
17205 cp_parser_iteration_statement.
17207 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
17210 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
17211 resolve a future -Wparentheses warning.
17212 * omp-low.c (scan_sharing_clauses): Likewise.
17213 * tree-parloops.c (eliminate_local_variables): Likewise.
17215 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
17217 PR rtl-optimization/70398
17218 * lra-constraints.c (process_address_1): Check zero scale and code
17219 for reloading with zero scale.
17221 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
17223 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
17224 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
17226 2016-04-06 Jakub Jelinek <jakub@redhat.com>
17228 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17229 Add support for AVX512F clones, include them by default for
17230 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
17231 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
17234 PR middle-end/70550
17235 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
17236 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
17237 firstprivate clauses.
17238 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
17239 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
17240 (lower_omp_target): Set TREE_NO_WARNING for
17241 non-addressable possibly uninitialized vars which are copied into
17242 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
17244 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
17246 * config/pa/predicates.md (integer_store_memory_operand): Accept
17247 REG+D operands with a large offset when reload_in_progress is true.
17248 (floating_point_store_memory_operand): Likewise.
17250 2016-04-05 Jakub Jelinek <jakub@redhat.com>
17253 * match.pd (nested int casts): Limit to GIMPLE.
17255 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
17258 * ipa-devirt.c (maybe_record_node): Fix comment; use
17259 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
17261 2016-04-05 Jakub Jelinek <jakub@redhat.com>
17263 PR rtl-optimization/70542
17264 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
17265 if there are any uses other than insn or debug insns.
17267 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
17268 Jakub Jelinek <jakub@redhat.com>
17270 PR tree-optimization/70509
17271 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
17272 Shift HOST_WIDE_INT_1U instead of 1.
17274 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
17276 PR tree-optimization/70509
17277 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
17278 of the vector base type for index.
17280 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
17283 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
17285 2016-04-05 Richard Biener <rguenther@suse.de>
17287 PR tree-optimization/70526
17288 * tree-sra.c (build_ref_for_offset): Use prev_base to
17289 extract the alias pointer type.
17291 2016-04-05 Richard Biener <rguenther@suse.de>
17293 * dse.c (struct store_info): Remove alias_set member.
17294 (struct read_info_type): Likewise.
17295 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
17296 spill_deleted, clear_alias_set_lookup): Remove.
17297 (get_group_info): Remove dead base == NULL_RTX case.
17298 (dse_step0): Remove initialization of removed variables.
17299 (delete_dead_store_insn): Reomve alias set dumping.
17300 (free_read_records): Remove alias_set handling.
17301 (canon_address): Remove alias_set_out parameter.
17302 (record_store): Remove spill_alias_set, it's always zero.
17303 (check_mem_read_rtx): Likewise.
17304 (dse_step2): Rename from ...
17305 (dse_step2_nospill): ... this. Adjust.
17306 (scan_stores): Rename from ...
17307 (scan_stores_nospill): ... this.
17308 (scan_reads): Rename from ...
17309 (scan_reads_nospill): ... this.
17310 (scan_stores_spill, scan_reads_spill): Remove.
17311 (dse_step3_scan): Remove for_spills argument which is always false.
17312 (dse_step3): Likewise.
17313 (dse_step5): Rename from ...
17314 (dse_step5_nospill): ... this. Remove alias_set handling.
17315 (rest_of_handle_dse): Adjust.
17317 2016-04-05 Jakub Jelinek <jakub@redhat.com>
17320 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
17321 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
17322 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
17323 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
17325 2016-04-05 Richard Biener <rguenther@suse.de>
17327 PR middle-end/70499
17328 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
17329 non-register type temporaries into SSA.
17331 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
17334 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
17335 calls when sanitizing.
17336 (possible_polymorphic_call_target_p): Fix formatting.
17338 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17339 Jakub Jelinek <jakub@redhat.com>
17341 PR middle-end/70457
17342 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
17343 to ensure a call statement is compatible with a built-in's
17345 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
17348 2016-04-04 Richard Biener <rguenther@suse.de>
17350 PR rtl-optimization/70484
17351 * rtl.h (canon_output_dependence): Declare.
17352 * alias.c (canon_output_dependence): New function.
17353 * dse.c (record_store): Use canon_output_dependence rather
17354 than canon_true_dependence.
17356 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
17359 * cgraph.h (symtab_node::copy_visibility_from): New function.
17360 * symtab.c (symtab_node::copy_visibility_from): New function.
17361 * ipa-visibility.c (optimize_weakref): New function.
17362 (function_and_variable_visibility): Use it.
17364 2016-04-04 Martin Liska <mliska@suse.cz>
17367 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
17368 value that is really in range handled by SBR instruction.
17369 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
17370 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
17371 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
17373 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
17377 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
17378 set, but not for SP_REG operands.
17380 2016-04-02 Martin Sebor <msebor@redhat.com>
17383 * fold-const.c (maybe_nonzero_address): New function.
17384 (fold_comparison): Call it. Fold equality and relational
17385 expressions involving null pointers.
17386 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
17388 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
17390 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
17391 the "Y" constraint (scalar FP 0.0 immediate).
17393 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
17394 Add the "const_double" to the list of operand constraints.
17396 2016-04-01 Jakub Jelinek <jakub@redhat.com>
17398 PR rtl-optimization/70467
17399 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
17400 If low word of the last operand is 0, just emit addition/subtraction
17403 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17406 * config/s390/s390.c (s390_expand_insv): Check for everything
17407 constant instead of just VOIDmode stuff.
17409 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17412 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
17414 2016-04-01 Nathan Sidwell <nathan@acm.org>
17416 * tree.def (TRY_CATCH_EXPR): Correct documentation.
17418 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
17420 PR rtl-optimization/70461
17421 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
17424 2016-03-31 Martin Liska <mliska@suse.cz>
17427 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
17428 a tree value or an immediate integer value to a buffer
17429 that is eventually copied to a BRIG section.
17430 (emit_immediate_operand): Call the function here.
17431 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
17432 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
17433 of class' fields that are removed.
17434 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
17435 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
17436 m_brig_repr_size fields.
17438 2016-03-31 Martin Liska <mliska@suse.cz>
17441 * hsa-gen.c (hsa_function_representation::update_dominance): New
17443 (convert_addr_to_flat_segment): Likewise.
17444 (gen_hsa_memory_set): New alignment argument.
17445 (gen_hsa_ctor_assignment): Likewise.
17446 (gen_hsa_insns_for_single_assignment): Provide alignment
17447 to gen_hsa_ctor_assignment.
17448 (gen_hsa_insns_for_direct_call): Add new argument.
17449 (expand_lhs_of_string_op): New function.
17450 (expand_string_operation_builtin): Likewise.
17451 (expand_memory_copy): New function.
17452 (expand_memory_set): New function.
17453 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
17454 (convert_switch_statements): Change signature.
17455 (generate_hsa): Use a return value of the function.
17456 (pass_gen_hsail::execute): Do not call
17457 convert_switch_statements here.
17458 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
17459 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
17460 (hsa_function_representation::update_dominance): New function.
17462 2016-03-31 Martin Liska <mliska@suse.cz>
17465 * hsa-brig.c (emit_directive_variable): Emit alignment
17466 according to hsa_symbol::m_align.
17467 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
17468 (dump_hsa_symbol): Dump alignment of HSA symbols.
17469 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
17470 (gen_hsa_addr_with_align): New function.
17471 (hsa_bitmemref_alignment): Use newly added function.
17472 (gen_hsa_insns_for_load): Likewise.
17473 (gen_hsa_insns_for_store): Likewise.
17474 (gen_hsa_memory_copy): New argument added.
17475 (gen_hsa_insns_for_single_assignment): Respect
17476 alignment for assignments processed via gen_hsa_memory_copy.
17477 (gen_hsa_insns_for_direct_call): Likewise.
17478 (gen_hsa_insns_for_return): Likewise.
17479 (gen_function_def_parameters): Set default alignment.
17480 * hsa.c (hsa_object_alignment): New function.
17481 (hsa_byte_alignment): Pasted function.
17482 * hsa.h (hsa_symbol::m_align): New field.
17484 2016-03-31 Bin Cheng <bin.cheng@arm.com>
17486 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
17487 scratch field for goto case.
17489 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
17491 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
17493 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
17496 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
17497 (scalar_chain::convert_insn): Call convert_op for reg
17498 moves to handle undefined registers.
17500 2016-03-31 Nathan Sidwell <nathan@acm.org>
17503 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
17504 Assert we don't want to move backwards.
17506 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
17509 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
17511 2016-03-31 Jakub Jelinek <jakub@redhat.com>
17513 PR rtl-optimization/70460
17514 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
17515 with operand from REG_LABEL_OPERAND, instead substitute
17516 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
17517 Don't do anything for REG_NON_LOCAL_GOTO jumps.
17519 2016-03-31 Martin Liska <mliska@suse.cz>
17521 * passes.c (execute_one_pass): Do not call
17522 todo_after for a discarded function.
17524 2016-03-31 Bin Cheng <bin.cheng@arm.com>
17526 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
17527 (no_cost, infinite_cost): Initialize the new field.
17528 (get_computation_cost_at): Record setup cost.
17529 (determine_use_iv_cost_address): Skip cost computation for sub
17530 uses if we can estimate it without losing accuracy.
17532 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
17534 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17536 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17537 max_loop_iterations_int.
17538 (tree_unswitch_outer_loop): Likewise.
17539 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17540 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17542 2016-03-30 Richard Biener <rguenther@suse.de>
17544 PR middle-end/70450
17545 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
17547 2016-03-30 Jakub Jelinek <jakub@redhat.com>
17550 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
17551 in gen_blendm expander.
17553 2016-03-30 Nick Clifton <nickc@redhat.com>
17556 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
17557 case where we are already provided with an SImode SUBREG.
17559 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
17562 * config/i386/i386.c (ix86_expand_epilogue): Properly check
17563 conflict between DRAP register and __builtin_eh_return.
17565 2016-03-30 Michael Matz <matz@suse.de>
17566 Richard Biener <rguenther@suse.de>
17569 * ipa-polymorphic-call.c (struct type_change_info): Change
17570 speculative to an unsigned allowing to limit the work we do.
17571 (csftc_abort_walking_p): New inline function..
17572 (check_stmt_for_type_change): Limit the number of may-defs
17573 skipped for speculative devirtualization to
17574 max-speculative-devirt-maydefs.
17575 * params.def (max-speculative-devirt-maydefs): New param.
17576 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
17578 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
17581 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
17584 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
17586 PR tree-optimization/59124
17587 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
17588 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
17590 2016-03-29 Jeff Law <law@redhat.com>
17592 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
17594 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
17596 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
17599 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
17601 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
17602 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
17603 gcrt0.o if linking dynamically.
17605 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
17608 * ipa-devirt.c (methods_equal_p): New function.
17609 (compare_virtual_tables): Use it.
17610 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
17611 * cgraphclones.c (clone_function_name_1): Use
17612 symbol_table::symbol_suffix_separator.
17613 * coverage.c (build_var): Likewise.
17614 * symtab.c (symbol_table::symbol_suffix_separator): New.
17616 2016-03-29 Jakub Jelinek <jakub@redhat.com>
17618 PR rtl-optimization/70429
17619 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
17620 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
17621 mode != result_mode.
17624 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
17626 PR tree-optimization/70405
17627 * ssa-iterators.h (num_imm_uses): Add missing braces.
17629 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
17631 PR rtl-optimization/68695
17632 * ira-color.c (allocno_copy_cost_saving): New.
17633 (improve_allocation): Use it.
17635 2016-03-29 Richard Henderson <rth@redhat.com>
17637 PR middle-end/70355
17638 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
17640 2016-03-29 Richard Biener <rguenther@suse.de>
17642 PR middle-end/70424
17643 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
17644 use alignment returned by get_pointer_alignment_1 if it is
17645 bigger than BITS_PER_UNIT.
17646 * builtins.c (get_pointer_alignment_1): Do not return true
17647 for alignment extracted from SSA info.
17649 2016-03-28 James Bowman <james.bowman@ftdichip.com>
17651 * config/ft32/ft32.opt (mnodiv): New.
17652 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
17653 * doc/invoke.texi (FT32 Options -mnodiv): New.
17655 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
17658 * config/i386/i386.md (define_split, andn): Fix modes.
17660 2016-03-26 Richard Biener <rguenther@suse.de>
17661 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17664 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
17666 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
17667 as 2nd argument to cl_optimization_restore().
17669 2016-03-25 Richard Henderson <rth@redhat.com>
17672 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
17673 * config/aarch64/aarch64-protos.h: Declare it.
17674 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
17676 2016-03-25 Alan Modra <amodra@gmail.com>
17679 * config/rs6000/constraints.md (j): Simplify.
17680 * config/rs6000/predicates.md (easy_fp_constant): Exclude
17682 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
17683 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
17684 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
17685 in all constraint alternatives.
17686 (movtd_64bit_nodm): Delete "j" constraint alternative.
17688 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
17690 * tree-ssa-propagate.c: Enhance docs for
17691 SSA_PROP_NOT_INTERESTING.
17693 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
17695 * doc/extend.texi: Fix typo in documentation to pure attribute.
17697 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
17700 * config/pa/pa.md (bswapdi2): Use a scratch register.
17702 2016-03-24 Richard Henderson <rth@redhat.com>
17704 PR middle-end/69845
17705 * fold-const.c (extract_muldiv_1): Correct test for multiplication
17708 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
17710 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
17711 using ix86_expand_binary_operator instead of gen_andsi3.
17713 2016-03-24 Richard Biener <rguenther@suse.de>
17715 PR tree-optimization/70396
17716 * tree-vect-stmts.c (vectorizable_comparison): Use
17717 get_vectype_for_scalar_type.
17719 2016-03-24 Richard Biener <rguenther@suse.de>
17721 PR middle-end/70370
17722 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
17723 with register bases.
17725 2016-03-24 Richard Biener <rguenther@suse.de>
17727 PR tree-optimization/70372
17728 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
17729 build_all_ones_cst to also handle vector types correctly.
17731 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
17734 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
17737 2016-03-23 Marek Polacek <polacek@redhat.com>
17740 * doc/invoke.texi: Document -Wignored-attributes.
17742 2016-03-23 Bin Cheng <bin.cheng@arm.com>
17744 PR tree-optimization/69042
17745 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
17746 parameter from 30 to 40.
17748 2016-03-23 Bin Cheng <bin.cheng@arm.com>
17750 PR tree-optimization/69042
17751 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
17752 for use with constant offset stripped in base.
17754 2016-03-23 Richard Biener <rguenther@suse.de>
17756 PR middle-end/70251
17757 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
17758 mode compatibility check.
17759 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
17761 2016-03-23 Jeff Law <law@redhat.com>
17763 PR tree-optimization/64058
17764 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
17766 (struct ssa_conflicts): Move up earlier in the file.
17767 (conflicts_, var_map_): New static variables.
17768 (initialize_conflict_count): New function to initialize the
17769 CONFLICT_COUNT field for each conflict pair.
17770 (compare_pairs): Lazily initialize the conflict count and use it
17771 as the first tie-breaker.
17772 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
17773 and wipe conflicts_ and map_ around the call to qsort. Remove
17774 special case for 2 coalesce pairs.
17775 * bitmap.c (bitmap_count_unique_bits): New function.
17776 (bitmap_count_bits_in_word): New function, extracted from
17778 (bitmap_count_bits): Use bitmap_count_bits_in_word.
17779 * bitmap.h (bitmap_count_unique_bits): Declare it.
17781 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
17784 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
17785 transparent alias chain for decl assembler name.
17786 * config/sol2.c (solaris_assemble_visibility): Likewise.
17788 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17790 * config/arm/arm1020e.md (1020call_op): Reduce reservation
17792 (v10_fdivs): Likewise.
17793 (v10_fdivd): Likewise.
17795 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17798 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
17799 to not call fclose twice on file.
17801 2016-03-23 Jakub Jelinek <jakub@redhat.com>
17803 PR tree-optimization/70354
17804 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
17805 oprnd0 is wider than oprnd1 and there is a cast from the wider
17806 type to oprnd1, mask it with the mask of the narrower type.
17809 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
17810 Optimize TARGET_STV splitters, if high or low word of last argument
17813 2016-03-22 Jeff Law <law@redhat.com>
17816 tree-ssa-threadbackward.c
17817 (fsm_find_control_statement_thread_paths): Correctly distinguish
17818 between old style jump threads vs FSM jump threads.
17820 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
17823 * config/i386/i386.c (scalar_chain::convert_op): Support
17824 uninitialized register usage case.
17826 2016-03-22 Richard Biener <rguenther@suse.de>
17828 PR middle-end/70251
17829 * genmatch.c (gen_transform): Adjust last parameter to a three-state
17831 (capture::gen_transform): ... to change behavior when substituting
17832 a condition into cond or not-cond expr context.
17833 (dt_simplify::gen_1): Adjust.
17834 * gimple-match-head.c: Include gimplify.h for unshare_expr.
17835 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
17836 last change and instead change to
17837 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
17838 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
17840 2016-03-22 Anthony Green <green@moxielogic.com>
17842 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
17843 issue for moxiebox targets.
17844 (CC1PLUS_SPEC): Ditto.
17846 2016-03-22 Richard Biener <rguenther@suse.de>
17848 PR middle-end/70333
17849 * fold-const.c (extract_muldiv_1): Properly perform multiplication
17852 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
17854 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
17856 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
17859 * config/i386/i386.c (def_builtin): Handle
17860 OPTION_MASK_ISA_AVX512VL to be and-ed with other
17862 (const struct builtin_description bdesc_special_args[]):
17863 Remove duplicate ISA bits.
17865 2016-03-22 Jakub Jelinek <jakub@redhat.com>
17868 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
17869 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
17870 in a way that works also for AVX512BW.
17873 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
17874 instead of source if operands[1] is xmm16 and above and
17875 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
17876 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
17879 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
17880 on assign if (*from_p) is a comparison, set it to
17881 TREE_NO_WARNING (*from_p).
17883 2016-03-21 Jakub Jelinek <jakub@redhat.com>
17885 PR middle-end/70326
17886 * lra.c (restore_scratches): Ignore deleted insns.
17888 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
17889 Jakub Jelinek <jakub@redhat.com>
17891 PR tree-optimization/70317
17892 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
17895 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
17898 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
17899 of ix86_expand_move.
17901 (movti): Use general_operand for operand 1 predicate.
17903 2016-03-21 Martin Liska <mliska@suse.cz>
17905 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
17907 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
17909 2016-03-21 Martin Liska <mliska@suse.cz>
17912 * ipa-icf.c (sem_function::parse): Skip static
17913 constructors and destructors.
17915 2016-03-21 Jakub Jelinek <jakub@redhat.com>
17918 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
17919 function-like macro, peek following token(s) if it is followed
17920 by CPP_OPEN_PAREN token with optional padding in between, and
17921 if not, don't treat it like a macro.
17923 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
17924 Alexander Monakov <amonakov@ispras.ru>
17926 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
17927 for the stabs debug format.
17929 2016-03-21 Richard Biener <rguenther@suse.de>
17931 PR tree-optimization/70310
17932 * tree-vect-generic.c (expand_vector_condition): Fold the built
17935 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
17938 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
17939 Block third alternative for AVX-512VL target,
17941 2016-03-21 Martin Liska <mliska@suse.cz>
17944 * hsa-brig.c (emit_function_directives): Mark unemitted
17945 global variables for emission.
17946 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
17947 (get_symbol_for_decl): Likewise.
17948 * hsa.h (struct hsa_symbol): New flag.
17950 2016-03-21 Richard Biener <rguenther@suse.de>
17952 PR tree-optimization/70288
17953 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
17954 we do not estimate unsimplified all-constant conditionals or
17955 switches as optimized away.
17957 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
17959 PR rtl-optimization/69102
17960 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
17961 when we have a readonly dependency context.
17963 2016-03-18 Jeff Law <law@redhat.com>
17965 PR rtl-optimization/70263
17966 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
17967 (update_equiv_regs): When trying to move a store to after the insn
17968 that sets the source of the store, make sure the store occurs after
17969 the insn that sets the source of the store. When successful note
17970 the REG_EQUIV note created in the dump file.
17972 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
17973 Bernd Schmidt <bschmidt@redhat.com>
17975 * doc/extend.texi: Document more potential problems with basic asms.
17977 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
17979 PR rtl-optimization/70278
17980 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
17983 2016-03-18 Jason Merrill <jason@redhat.com>
17985 * calls.c (load_register_parameters): Fix zero size sibcall logic.
17987 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
17989 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
17990 values to 128b regs.
17992 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
17994 PR tree-optimization/70252
17995 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
17996 boolean vector has a proper number of elements.
17997 (supportable_narrowing_operation): Likewise.
17999 2016-03-18 Tom de Vries <tom@codesourcery.com>
18002 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18004 2016-03-18 Jakub Jelinek <jakub@redhat.com>
18006 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18007 instead of replace_rtx for DEBUG_INSNs.
18009 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18011 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18012 load type reservations.
18014 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
18017 * config/pa/constraints.md: Revert 2015-02-13 change. Use
18018 define_constraint for "Q" and "T" constraints.
18020 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
18022 Tweak the pipeline model for Exynos M1
18024 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
18027 2016-03-17 David Malcolm <dmalcolm@redhat.com>
18030 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18031 where one or both locations aren't within a line_map.
18033 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
18036 * opts.c (finish_options): Don't set flag_pie to the default if
18037 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
18040 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
18042 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18043 true as ALL_REGS argument to replace_rtx.
18045 2016-03-17 Richard Biener <rguenther@suse.de>
18048 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18051 2016-03-17 Jakub Jelinek <jakub@redhat.com>
18054 * rtl.h (replace_rtx): Add ALL_REGS argument.
18055 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
18056 equality and assert mode is the same, instead of just rtx pointer
18058 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18059 true as ALL_REGS argument to replace_rtx.
18061 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
18063 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18064 for boolean vector with vector mode only.
18065 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18067 2016-03-17 Nick Clifton <nickc@redhat.com>
18070 * config/rx/rx.c (rx_print_integer): Print negative constants in
18073 2016-03-17 Jakub Jelinek <jakub@redhat.com>
18076 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18078 2016-03-16 Richard Henderson <rth@redhat.com>
18079 Richard Biener <rguenth@suse.de>
18081 PR middle-end/70240
18082 PR middle-end/68215
18084 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18085 first operand as is_gimple_condexpr.
18087 PR middle-end/70240
18088 PR middle-end/68215
18090 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
18091 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18092 Do not gimplify the result.
18093 (do_unop): Adjust call to tree_vec_extract.
18094 (do_binop): Likewise.
18095 (do_compare): Likewise.
18096 (do_plus_minus): Likewise.
18097 (do_negate): Likewise.
18098 (expand_vector_condition): Likewise.
18099 (do_cond): Likewise.
18101 2016-03-16 Richard Henderson <rth@redhat.com>
18104 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
18105 (aarch64_classify_address): Use it.
18106 (aarch64_legitimize_address): Force all subexpressions of PLUS
18107 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
18109 2016-03-16 Jakub Jelinek <jakub@redhat.com>
18110 Richard Biener <rguenth@suse.de>
18113 * rtlanal.c (replace_rtx): For REG, if from is a REG,
18114 return to even if only REGNO is equal, and assert
18117 2016-03-11 Jeff Law <law@redhat.com>
18119 PR rtl-optimization/70224
18120 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
18122 2016-03-16 Richard Henderson <rth@redhat.com>
18124 PR middle-end/70199
18125 * function.h (struct function): Add has_forced_label_in_static.
18126 * gimplify.c (force_labels_r): Set it.
18127 * lto-streamer-in.c (input_struct_function_base): Read it.
18128 * lto-streamer-out.c (output_struct_function_base): Write it.
18129 * tree-inline.c (has_label_address_in_static_1): Remove.
18130 (copy_forbidden): Remove fndecl parameter; test
18131 has_forced_label_in_static.
18132 (inline_forbidden_p): Update call to copy_forbidden.
18133 (tree_versionable_function_p): Likewise.
18134 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
18135 (chkp_versioning): Likewise.
18136 * tree-inline.h (copy_forbidden): Update decl.
18138 2016-03-16 Marek Polacek <polacek@redhat.com>
18141 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
18142 function being thunked if the result type doesn't have fixed size.
18143 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
18144 doesn't have fixed size.
18146 2016-03-16 Bin Cheng <bin.cheng@arm.com>
18148 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
18149 reporting malformed loop nest.
18151 2016-03-16 Tom de Vries <tom@codesourcery.com>
18154 * ipa-devirt.c (possible_polymorphic_call_targets): Move
18155 nodes.length () == 1 test to before first nodes[0] access.
18157 2016-03-16 Tom de Vries <tom@codesourcery.com>
18159 PR tree-optimization/68715
18160 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
18161 single_pred_p test.
18163 2016-03-16 Tom de Vries <tom@codesourcery.com>
18165 PR tree-optimization/68809
18166 * graphite-scop-detection.c (same_close_phi_node): Test if result types
18169 2016-03-16 Carlos O'Donell <carlos@redhat.com>
18170 Sandra Loosemore <sandra@codesourcery.com>
18172 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
18173 on leaf attribute. Mention ELF interposition problems.
18175 2016-03-16 Alan Modra <amodra@gmail.com>
18177 PR rtl-optimization/69195
18178 PR rtl-optimization/47992
18179 * ira.c (indirect_jump_optimize): Ignore artificial defs.
18182 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
18185 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
18187 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18189 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
18191 2016-03-15 Jakub Jelinek <jakub@redhat.com>
18193 PR rtl-optimization/70222
18194 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
18195 optimization if mode is different from result_mode, queue up masking
18196 of the result in outer_op. Formatting fix.
18198 PR middle-end/70239
18199 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
18202 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18204 PR rtl-optimization/69032
18205 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
18206 looping backwards over basic block insns.
18208 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18211 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
18212 to non-speculative when propagating trap bits.
18214 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18216 PR rtl-optimization/63384
18217 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
18218 DEBUG_INSN_P insns.
18220 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
18223 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
18224 factored out from ...
18225 (sched_analyze_insn): ... here.
18226 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
18227 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
18228 get_implicit_reg_pending_clobbers in it.
18229 (setup_id_reg_sets): Use setup_id_implicit_regs.
18230 (deps_init_id): Ditto.
18232 2016-03-15 Tom de Vries <tom@codesourcery.com>
18235 * cgraph.c (cgraph_node::get_body): Save, reset and restore
18237 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
18238 execute_function_dump.
18239 (execute_one_pass): Don't dump function if it will be dumped after ipa
18242 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
18244 * genrecog.c (match_pattern_2): If pred is NULL don't call
18245 safe_predicate_mode on it.
18247 2016-03-14 Jakub Jelinek <jakub@redhat.com>
18249 PR middle-end/70219
18250 * lra-constraints.c (delete_move_and_clobber): Change assertion
18251 to also allow dregno == 0.
18253 2016-03-14 Richard Henderson <rth@redhat.com>
18256 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
18257 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
18258 (reassociate_bb): Use optimize_vec_cond_expr; avoid
18259 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
18262 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
18265 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
18267 (lra_create_live_ranges_1): initialize hard register biggest_mode to
18269 * lra-constraints.c (split_reg): For hard regs, try to find the
18270 biggest single-register mode used in the function.
18272 2016-03-14 Richard Biener <rguenther@suse.de>
18274 PR tree-optimization/56365
18275 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
18276 constants to compare against.
18278 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
18281 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18282 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
18283 (define_split for the GPR case): Use int_reg_operand instead of
18284 gpc_reg_operand for the output.
18286 2016-03-14 Tom de Vries <tom@codesourcery.com>
18288 PR tree-optimization/70045
18289 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
18290 create_empty_if_region_on_edge argument.
18292 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
18294 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
18295 (STACK_CHECK_PROTECT): Likewise.
18296 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18297 (STACK_CHECK_PROTECT): Likewise.
18298 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18299 (STACK_CHECK_PROTECT): Likewise.
18300 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
18301 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18302 (STACK_CHECK_PROTECT): Likewise.
18304 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
18306 PR rtl-optimization/69307
18307 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
18308 registers in modes that span more than one register.
18310 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
18313 * lra-constraints.c (delete_move_and_clobber): New.
18314 (remove_inheritance_pseudos): Use it.
18316 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
18319 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
18320 the libcall is LCT_THROW.
18321 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
18322 for the checking routine.
18324 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18327 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
18328 optimization if we have direct move.
18329 (roundu32<mode>2_fprs): Likewise.
18331 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
18334 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
18336 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
18337 Arguments swapped. All callers changed. Take reg_renumber into
18338 account, and Calculate and compare register ranges for hard regs.
18340 2016-03-11 Jeff Law <law@redhat.com>
18342 PR tree-optimization/70190
18343 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18344 Handle cases where we can not extract the taken edge, even though we
18345 found a constant value.
18347 PR tree-optimization/64058
18348 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
18349 (num_coalesce_pairs): Move up earlier in file.
18350 (find_coalesce_pair): Initialize the INDEX field for each pair
18352 (compare_pairs): No longer sort on the elements in each pair.
18353 Instead break ties with the index of the coalesce pair.
18355 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18358 * config/aarch64/aarch64-protos.h
18359 (aarch64_save_restore_target_globals): New prototype.
18360 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
18361 Call the above when popping pragma.
18362 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
18364 (aarch64_set_current_function): Rewrite using the above.
18366 2016-03-11 Jakub Jelinek <jakub@redhat.com>
18368 PR tree-optimization/70177
18369 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
18370 (extract_ops_from_tree): ... this. In the 2 argument
18371 overload remove _1 suffix.
18372 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
18373 (extract_ops_from_tree): ... this.
18374 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
18376 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
18377 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
18378 extract_ops_from_tree instead of 2 operand one.
18380 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
18382 PR tree-optimization/70013
18383 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
18384 for constant-pool entries.
18386 2016-03-11 Jakub Jelinek <jakub@redhat.com>
18388 PR rtl-optimization/70174
18389 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
18390 followed by gen_lowpart on force_reg instead of just gen_lowpart.
18392 PR tree-optimization/70169
18393 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
18394 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
18397 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
18398 Jakub Jelinek <jakub@redhat.com>
18401 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
18402 of uninitialized values.
18404 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18406 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
18408 ("*trunctddd2"): New pattern definition.
18409 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
18412 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18414 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
18415 definitions for BFP and DFP rounding modes.
18416 ("fixuns_truncdddi2", "fixuns_trunctddi2")
18417 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
18418 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
18419 ("fix_trunctf<mode>2"): Use the new constants instead of magic
18422 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18424 * config/s390/constraints.md: Adjust comment.
18425 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
18426 s390_decompose_addrstyle_without_index.
18427 * config/s390/predicates.md (shift_count_or_setmem_operand):
18428 Rename to setmem_operand.
18429 * config/s390/s390-protos.h
18430 (s390_decompose_shift_count): Rename to
18431 s390_decompose_addrstyle_without_index.
18432 * config/s390/s390.c (s390_decompose_shift_count)
18433 (s390_mem_constraint, print_shift_count_operand)
18434 (print_operand_address, print_operand): Rename
18435 s390_decompose_shift_count to
18436 s390_decompose_addrstyle_without_index and rename
18437 print_shift_count_operand to print_addrstyle_operand troughout the
18439 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
18440 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
18441 Rename shift_count_or_setmem_operand to setmem_operand.
18442 * config/s390/vx-builtins.md ("vec_insert<mode>")
18443 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
18446 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18449 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
18450 Handle overlapping retval and newval.
18452 2016-03-10 Nick Clifton <nickc@redhat.com>
18455 * config/aarch64/aarch64.c
18456 (aarch64_override_options_after_change_1): When forcing
18457 flag_omit_frame_pointer to be true, use a special value that can
18458 be detected if this function is called again, thus preventing
18459 flag_omit_leaf_frame_pointer from being forced to be false.
18461 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18463 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18464 Set x_flag_omit_leaf_frame_pointer when handling
18465 -momit-leaf-frame-pointer.
18467 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18470 * cgraph.c (cgraph_node::dump): Dump split_part and
18471 indirect_call_target.
18472 * cgraph.h (cgraph_node): Add indirect_call_target flag.
18473 * ipa.c (has_addr_references_p): Cleanup.
18474 (is_indirect_call_target_p): New.
18475 (walk_polymorphic_call_targets): Do not mark virtuals that may be
18476 called indirectly as local.
18477 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
18479 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18482 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
18483 on cxa_pure_virtual.
18485 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18488 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
18490 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
18493 * tree.c (need_assembler_name_p): Only record main variant type names.
18495 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
18498 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
18499 Always define to 0 or 1.
18500 (TARGET_FIX_ERR_A53_843419): New macro.
18501 * config/aarch64/aarch64-elf-raw.h
18502 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
18503 * config/aarch64/aarch64-linux.h: Likewise.
18504 * config/aarch64/aarch64.c
18505 (aarch64_override_options_after_change_1): Do not default
18506 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
18508 (aarch64_attributes): Handle fix-cortex-a53-843419.
18509 (aarch64_can_inline_p): Likewise.
18510 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
18512 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
18513 Jakub Jelinek <jakub@redhat.com>
18515 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
18516 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
18517 DECL_COMMONS if flag_unconstrained_commons is set.
18518 * tree-dfa.c (get_ref_base_and_extent): Likewise.
18519 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
18520 (funconstrained-commons): Document.
18522 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
18524 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
18525 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
18527 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
18529 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
18530 has a proper number of elements.
18532 2016-03-10 Alan Modra <amodra@gmail.com>
18534 PR rtl-optimization/69195
18535 PR rtl-optimization/47992
18536 * ira.c (recorded_label_ref): Delete.
18537 (update_equiv_regs): Return void.
18538 (indirect_jump_optimize): New function.
18539 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
18540 before regstat_compute_ri. Don't rebuild_jump_labels here.
18541 Delete update_regstat.
18543 2016-03-10 Richard Biener <rguenther@suse.de>
18545 PR tree-optimization/70128
18546 * tree-ssa-structalias.c (set_uids_in_ptset): Set
18547 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
18549 2016-03-09 Jakub Jelinek <jakub@redhat.com>
18551 PR tree-optimization/70152
18552 * tree-sra.c (replace_removed_params_ssa_names): Copy over
18553 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
18556 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
18557 instead of gen_sse2_loadlpd.
18558 * config/i386/sse.md (*vec_concatv2df): Rename to...
18559 (vec_concatv2df): ... this.
18561 PR tree-optimization/70127
18562 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
18564 2016-03-09 David Malcolm <dmalcolm@redhat.com>
18568 * diagnostic-show-locus.c (compatible_locations_p): New function.
18569 (layout::layout): Sanitize ranges using compatible_locations_p.
18571 2016-03-09 David Malcolm <dmalcolm@redhat.com>
18575 * diagnostic-show-locus.c (layout_range::layout_range): Replace
18576 location_range param with three const expanded_locations * and a
18578 (layout::layout): Replace call to
18579 rich_location::lazily_expand_location with get_expanded_location.
18580 Extract the range and perform location expansion here, passing
18581 the results to the layout_range ctor.
18582 * diagnostic.c (source_range::debug): Delete.
18583 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
18584 of rich_location::get_expanded_location.
18585 * gcc-rich-location.c (get_range_for_expr): Delete.
18586 (gcc_rich_location::add_expr): Reimplement to avoid the
18587 rich_location::add_range overload that took a location_range,
18588 passing a location_t instead.
18590 2016-03-09 Richard Biener <rguenther@suse.de>
18591 Jakub Jelinek <jakub@redhat.com>
18593 PR tree-optimization/70138
18594 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
18595 Also skip vect_double_reduction_def.
18597 2016-03-09 Jakub Jelinek <jakub@redhat.com>
18600 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
18601 if the operand is "m".
18603 2016-03-09 Nathan Sidwell <nathan@acm.org>
18605 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
18607 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18609 * config/i386/i386.c (processor_target_table): Fix cost table
18610 intialization order for znver1.
18612 2016-03-08 Jakub Jelinek <jakub@redhat.com>
18614 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
18615 - becuase -> because.
18616 * ipa-reference.c (ignore_module_statics): Likewise.
18617 * cgraph.c (cgraph_node::get_body): Likewise.
18618 * ipa-inline.c (early_inliner): Likewise.
18619 * ipa-devirt.c (types_same_for_odr): Likewise.
18620 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
18621 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
18623 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18625 * tree-ssa-math-opts.c: Fix typo in comment.
18627 2016-03-08 Jakub Jelinek <jakub@redhat.com>
18630 * config/i386/i386.c (scalar_chain::make_vector_copies,
18631 scalar_chain::convert_reg): Call end_sequence in between
18632 get_insns and emit_conversion_insns rather than after both
18635 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
18638 * config/i386/i386.h (machine_function): Add
18639 pc_thunk_call_expanded flag.
18640 (ix86_pc_thunk_call_expanded): New define.
18641 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
18642 (*set_got): Rename insn pattern from set_got.
18643 (*set_got_labelled): Rename inst pattern from set_got_labelled.
18644 * config/i386/i386.c (ix86_compute_frame_layout): Use
18645 ix86_pc_thunk_call_expanded to prevent red-zone.
18647 2016-03-07 Martin Jambor <mjambor@suse.cz>
18649 * hsa.h (hsa_get_ctor_statements): Declare.
18650 (hsa_get_dtor_statements): Likewise.
18651 (hsa_get_kernel_dispatch_type): Likewise.
18652 * hsa.c (hsa_get_ctor_statements): New function.
18653 (hsa_get_dtor_statements): Likewise.
18654 (hsa_get_kernel_dispatch_type): Likewise.
18655 * hsa-brig.c (hsa_cdtor_statements): Removed.
18656 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
18657 hsa_get_dtor_statements.
18658 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
18659 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
18661 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
18663 * config/arm/arm-cores.def (cortex-r8): New.
18664 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
18665 * config/arm/arm-tune.md: Likewise.
18666 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
18668 2016-03-07 Martin Sebor <msebor@redhat.com>
18670 PR rtl-optimization/19705
18671 * doc/invoke.texi (Options That Control Optimization): Clarify
18672 -fno-branch-count-reg.
18674 2016-02-26 Richard Biener <rguenther@suse.de>
18675 Jeff Law <law@redhat.com>
18677 PR tree-optimization/69740
18678 * cfghooks.c (remove_edge): Request loop fixups if we delete
18679 an edge that might turn an irreducible loop into a natural
18681 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
18682 Move after definition of loops_state_clear.
18684 2016-03-07 Bin Cheng <bin.cheng@arm.com>
18686 PR rtl-optimization/69052
18687 * rtlanal.c (commutative_operand_precedence): Set higher precedence
18690 2016-03-07 Tom de Vries <tom@codesourcery.com>
18692 PR tree-optimization/70116
18693 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
18694 is_tm_ending stmts and ubsan/asan internal functions.
18695 (find_duplicate): Use it. Don't test is_tm_ending here.
18697 2016-03-07 Richard Biener <rguenther@suse.de>
18699 PR tree-optimization/70115
18700 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
18701 (propagate_constants_for_unrolling): Use replace_uses_by.
18703 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
18705 PR middle-end/69916
18706 * omp-low.c (struct oacc_loop): Add ifns.
18707 (new_oacc_loop_raw): Initialize it.
18708 (finish_oacc_loop): Clear mask & flags if no ifns.
18709 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
18710 (oacc_loop_xform_loop): Add ifns arg & adjust.
18711 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
18713 2016-03-07 Richard Henderson <rth@redhat.com>
18716 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
18717 (insert_value_copy_on_edge): Likewise.
18719 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18721 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
18723 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18726 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
18728 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
18730 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
18732 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
18734 Fix sseimul type attribute.
18735 * config/i386/znver1.md
18736 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
18737 znver1_sseimul_avx256_load) : Fix the type attribute.
18738 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
18739 pipe usage and latency.
18741 2016-03-05 Jakub Jelinek <jakub@redhat.com>
18744 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
18745 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
18748 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
18751 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
18753 PR rtl-optimization/69941
18754 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
18755 the reg share its mode.
18757 2016-03-04 Jeff Law <law@redhat.com>
18759 PR tree-optimization/69196
18760 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18761 If the both SSA_NAMEs are anonymous, then consider them unassociated
18762 and include the PHI in the statement count.
18764 2016-03-05 Tom de Vries <tom@codesourcery.com>
18766 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
18767 construct in oacc routine. Check for oacc region in oacc routine.
18769 2016-03-04 Jakub Jelinek <jakub@redhat.com>
18772 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
18773 2016-02-22 changes, instead don't recurse if RECUR is already true.
18774 Don't change *dynamic_check if RECUR. Adjust recursive caller
18775 to pass true to the new argument.
18776 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
18779 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
18780 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
18782 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
18784 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
18786 PR rtl-optimization/57676
18787 * lra-assigns.c (lra_assign): Guard test for maximum iterations
18788 with flag_checking.
18790 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
18792 * tree-vect-patterns.c (search_type_for_mask): Handle
18793 comparison of booleans.
18795 2016-03-04 Jakub Jelinek <jakub@redhat.com>
18797 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
18801 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
18802 all other ops that have dw_val_class_die_ref operands,
18803 and DW_OP_GNU_entry_value.
18805 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18807 PR rtl-optimization/69904
18808 * config/arm/arm.c (arm_cannot_copy_insn_p):
18809 Return true for load-exclusive instructions.
18811 2016-03-03 Jakub Jelinek <jakub@redhat.com>
18814 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
18815 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
18816 the pattern no matter if it is used just by non-pattern, pattern
18818 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
18819 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18820 oprnd1 def_stmt is in pattern, don't look through it.
18822 2016-03-03 Marek Polacek <polacek@redhat.com>
18824 PR middle-end/70050
18825 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
18827 2016-03-03 Martin Liska <mliska@suse.cz>
18829 PR tree-optimization/70043
18830 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
18831 previous statement if we see a debug statement.
18833 2016-03-03 Richard Biener <rguenther@suse.de>
18835 PR tree-optimization/55936
18836 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
18837 parameter and guard unsafe equivalence use.
18838 (vrp_evaluate_conditional_warnv_with_ops): Always use
18839 safe equivalences but not via the quadratic compare_names
18842 2016-03-03 Michael Collison <michael.collison@linaro.org>
18845 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
18846 for operand 1 to s_register_operand. Change predicate for operand
18847 2 to arm_not_immediate_operand.
18849 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
18851 * doc/tm.texi: Regenerated.
18853 2016-03-02 Richard Henderson <rth@redhat.com>
18856 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
18857 simplification when all args are positive non-fixed registers.
18859 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18861 * target.def (lra_p): Specify that new ports should use LRA.
18863 2016-03-02 Jakub Jelinek <jakub@redhat.com>
18866 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
18867 gimplify_type_sizes the type they refer to.
18868 (omp_notice_variable): Handle reference vars to VLAs.
18869 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
18870 reference to VLA decls in the second pass instead of first pass.
18872 2016-03-02 Tom de Vries <tom@codesourcery.com>
18874 PR tree-optimization/68659
18875 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
18876 new_expr == NULL_TREE.
18877 (get_new_name): Handle ADDR_EXPR.
18879 2016-03-02 Bin Cheng <bin.cheng@arm.com>
18881 PR rtl-optimization/69052
18882 * loop-invariant.c (canonicalize_address): New function.
18883 (inv_can_prop_to_addr_use): Check validity of address expression
18884 which is canonicalized by above function.
18886 2016-03-02 Alan Modra <amodra@gmail.com>
18889 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
18892 2016-03-02 Jakub Jelinek <jakub@redhat.com>
18895 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
18896 (*movhi_internal): Put mask moves from and to memory separately
18897 from moves from/to GPRs.
18899 2016-03-02 Richard Biener <rguenther@suse.de>
18901 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
18902 GENERIC expressions in GIMPLE.
18904 2016-03-02 Richard Biener <rguenther@suse.de>
18906 * config/i386/i386.c (type_natural_mode): Fix typo.
18908 2016-03-02 Nick Clifton <nickc@redhat.com>
18910 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
18912 2016-03-02 Richard Biener <rguenther@suse.de>
18913 Uros Bizjak <ubizjak@gmail.com>
18916 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
18918 2016-03-02 Richard Biener <rguenther@suse.de>
18920 PR middle-end/67278
18921 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
18923 2016-03-02 Marek Polacek <polacek@redhat.com>
18926 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
18927 "is promoted to" warning.
18929 2016-03-01 DJ Delorie <dj@redhat.com>
18931 * config.gcc: Deprecate mep-*.
18933 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
18935 PR middle-end/70025
18936 * lra-constraints.c (regno_val_use_in): New.
18937 (match_reload): Use it instead of regno_use_in.
18939 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
18941 PR rtl-optimization/70007
18942 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
18943 references present in REG_EQUAL notes attached to non-SET patterns.
18945 2016-03-01 Jeff Law <law@redhat.com>
18947 PR tree-optimization/69196
18948 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18949 Appropriately clamp the number of statements to copy when the
18950 thread path does not traverse a loop backedge.
18952 PR tree-optimization/69196
18953 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18954 Do count some PHIs in the thread path against the insn count. Decrease
18955 final statement count by one as the control statement in the last
18956 block will get removed. Remove special cased code for handling PHIs
18959 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
18962 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
18963 asm dialect alternatives to explicit GOTPCREL calls.
18965 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
18968 * ira.c (do_reload): Issue warning for generic stack checking here...
18969 * reload1.c (reload): ...instead of here and streamline it.
18971 2016-03-01 Nick Clifton <nickc@redhat.com>
18973 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
18975 2016-03-01 Richard Biener <rguenther@suse.de>
18977 PR tree-optimization/69983
18978 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
18979 types and fall back to operand_equal_p.
18981 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18984 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18986 * config/s390/constraints.md ("jm8"): New constraint.
18987 * config/s390/predicates.md ("const_int_8bitset_operand"): New
18989 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
18991 ("*setmem_long<setmem_and>"): New pattern.
18992 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
18994 ("*setmem_long_31z<setmem_and>"): New pattern.
18995 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
18996 New substitution rules with the required attributes.
18999 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19002 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19004 * gensupport.c (process_substs_on_one_elem): Split loop to
19005 complete mark_operands_used_in_match_dup on all expressions in the
19007 (adjust_operands_numbers): Inline into process_substs_on_one_elem
19008 and remove function.
19010 2016-03-01 Richard Biener <rguenther@suse.de>
19012 PR middle-end/70022
19013 * fold-const.c (fold_indirect_ref_1): Fix range checking for
19014 vector BIT_FIELD_REF extract.
19016 2016-03-01 Richard Biener <rguenther@suse.de>
19018 PR tree-optimization/69994
19019 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19021 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
19023 PR tree-optimization/69956
19024 * tree-vect-stmts.c (supportable_widening_operation): Support
19025 multi-step conversion of boolean vectors.
19026 (supportable_narrowing_operation): Likewise.
19028 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19030 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19033 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19035 * config/s390/subst.md (DSI_VI): New mode iterator.
19036 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19037 * config/s390/vector.md ("vec_set<mode>"): Move expander before
19038 the insn definition.
19039 ("*vec_set<mode>"): Change predicate and add alternative to
19040 support only either register or const_int operands as element
19042 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19044 ("vec_extract<mode>"): New expander.
19045 ("*vec_extract<mode>"): New insn definition supporting reg and
19046 const_int element selectors.
19047 ("*vec_extract<mode>_plus"): New insn definition supporting
19048 reg+const_int element selectors.
19049 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19050 following expander+insn definition.
19051 ("<vec_shifts_name><mode>3"): New expander.
19052 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19054 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19056 * config/s390/s390.md ("*tabort_1"): Change predicate to
19057 nonmemory_operand. Add a second alternative to cover
19058 register as well as const int operands.
19059 ("*tabort_1_plus"): New pattern definition.
19061 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19063 * config/s390/s390.md ("*ashrdi3_cc_31")
19064 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19065 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19066 Merge insn definitions into ...
19067 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19068 New pattern definition.
19069 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19070 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19071 ("*ashr<mode>3_and"): Merge insn definitions into ...
19072 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19073 New pattern definition.
19074 * config/s390/subst.md ("addr_style_op_cc_subst")
19075 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19076 substitutions patterns plus attributes.
19077 Add ashiftrt to SUBST iterator.
19079 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19081 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19082 op2 to nonmemory_operand.
19083 ("*<shift>di3_31", "*<shift>di3_31_and"):
19084 Merge into single pattern definition ...
19085 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19086 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19087 pattern definition ...
19088 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19089 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19092 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19094 * config/s390/predicates.md (const_int_6bitset_operand): New
19096 * config/s390/s390.md: Include subst.md.
19097 ("rotl<mode>3"): New expander.
19098 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
19100 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
19101 * config/s390/subst.md: New file.
19103 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19105 * config/s390/s390.md ("op_type", "atype", "length" attributes):
19106 Remove RRR type. It doesn't really exist.
19107 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
19109 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19110 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
19111 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
19112 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
19113 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
19114 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
19115 `enabled' attribute.
19117 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19119 * gensupport.c (process_substs_on_one_elem): Split loop to
19120 complete mark_operands_used_in_match_dup on all expressions in the
19122 (adjust_operands_numbers): Inline into process_substs_on_one_elem
19123 and remove function.
19125 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
19128 * config/sparc/sparc.c (NWORDS_UP): Rename to...
19129 (CEIL_NWORDS): ...this. Use CEIL macro.
19130 (compute_fp_layout): Adjust to above renaming.
19131 (function_arg_union_value): Likewise.
19132 (sparc_arg_partial_bytes): Likewise.
19133 (sparc_function_arg_advance): Likewise.
19135 2016-02-29 Jeff Law <law@redhat.com>
19137 PR tree-optimization/70005
19138 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
19139 where an object with a boolean range is compared against a value
19142 PR tree-optimization/69999
19143 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
19144 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
19147 2016-02-29 Richard Biener <rguenther@suse.de>
19149 PR tree-optimization/69994
19150 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
19151 (get_unary_op): Look through nop conversions.
19152 (ops_equal_values_p): New function, look for equality diregarding
19154 (eliminate_plus_minus_pair): Use ops_equal_values_p
19155 (repropagate_negates): Do not use get_unary_op here.
19157 2016-02-29 Martin Liska <mliska@suse.cz>
19159 * system.h: Poison ENABLE_CHECKING macro.
19161 2016-02-29 Martin Liska <mliska@suse.cz>
19163 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
19164 is presented in dump flags.
19165 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19166 (hsa_regalloc): Likewise.
19168 2016-02-19 Richard Biener <rguenther@suse.de>
19170 PR tree-optimization/69980
19171 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
19172 permutation of those we need to keep.
19174 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
19177 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
19178 (NWORDS_UP): ...this
19179 (init_cumulative_args): Minor tweaks.
19180 (sparc_promote_function_mode): Likewise.
19181 (scan_record_type): Delete.
19182 (traverse_record_type): New function template.
19183 (classify_data_t): New structure type.
19184 (classify_registers): New inline function.
19185 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
19186 exhausted. Instantiate traverse_record_type on classify_registers and
19187 deal with the case of a structure passed in slot #15 with no FP field
19189 (assign_data_t): New structure type.
19190 (compute_int_layout): New static function.
19191 (compute_fp_layout): Likewise.
19192 (count_registers): New inline function.
19193 (assign_int_registers): New static function.
19194 (assign_fp_registers): Likewise.
19195 (assign_registers): New inline function.
19196 (function_arg_record_value_1): Delete.
19197 (function_arg_record_value_2): Likewise.
19198 (function_arg_record_value_3): Likewise.
19199 (function_arg_record_value): Adjust to above changes. Instantiate
19200 traverse_record_type on count_registers to first count the number of
19201 registers to be used and then on assign_registers to assign them.
19202 (function_arg_union_value): Adjust to above renaming.
19203 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
19204 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
19205 case of a structure passed in slot #15
19206 (sparc_function_arg_advance): Likewise.
19207 (function_arg_padding): Minor tweak.
19209 2016-02-29 Richard Biener <rguenther@suse.de>
19211 PR tree-optimization/69720
19212 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
19213 the adjustment_def path for possibly vectorized defs.
19214 (vect_create_epilog_for_reduction): Handle vectorized initial
19217 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
19219 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
19221 2016-02-27 Jeff Law <law@redhat.com>
19224 2016-02-26 Richard Biener <rguenther@suse.de>
19225 Jeff Law <law@redhat.com>
19227 PR tree-optimization/69740
19228 * cfghooks.c (remove_edge): Request loop fixups if we delete
19229 an edge that might turn an irreducible loop into a natural
19232 2016-02-27 Jakub Jelinek <jakub@redhat.com>
19234 PR rtl-optimization/69896
19235 * tree-vect-generic.c (get_compute_type): Avoid single element
19238 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
19240 Rename the AArch64 tuning option and related functions to enable the
19241 Newton series for the reciprocal square root to reflect its
19242 approximative characteristic.
19244 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
19245 function to "aarch64_emit_approx_rsqrt".
19246 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
19247 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
19248 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
19249 (xgene1_tunings): Likewise.
19250 (use_rsqrt_p): Likewise.
19251 (aarch64_emit_swrsqrt): Use new function name.
19252 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
19253 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
19254 text explaining this option.
19255 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
19257 2016-02-26 Jakub Jelinek <jakub@redhat.com>
19260 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19261 complain about -mallow-movmisalign without -mvsx if
19262 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
19264 2016-02-26 Joel Sherrill <joel@rtems.org>
19266 * config.gcc: Add x86_64-*-rtems*.
19267 * config/i386/rtems-64.h: New file.
19269 2016-02-26 Joel Sherrill <joel@rtems.org>
19271 * config.gcc: Add aarch64-*-rtems*.
19272 * config/aarch64/rtems.h: New file.
19274 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
19277 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
19278 shift amount using %h. Add comment.
19280 2016-02-26 Richard Biener <rguenther@suse.de>
19281 Jeff Law <law@redhat.com>
19283 PR tree-optimization/69740
19284 * cfghooks.c (remove_edge): Request loop fixups if we delete
19285 an edge that might turn an irreducible loop into a natural
19288 2016-02-26 Martin Jambor <mjambor@suse.cz>
19290 PR middle-end/69920
19291 * tree-sra.c (sra_modify_assign): Do not remove loads of
19292 uninitialized aggregates to SSA_NAMEs.
19294 2016-02-26 Richard Henderson <rth@redhat.com>
19297 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
19298 pseudo in case the target rtx matches the source of the left
19301 2016-02-26 Martin Jambor <mjambor@suse.cz>
19304 * hsa.h (hsa_type_packed_p): Declare.
19305 * hsa.c (hsa_type_packed_p): New function.
19306 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
19308 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
19309 * hsa-brig.c (emit_basic_insn): Likewise.
19311 2016-02-26 Martin Jambor <mjambor@suse.cz>
19314 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
19316 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
19318 2016-02-26 Martin Jambor <mjambor@suse.cz>
19320 * hsa.h (is_a_helper): New overload for hsa_op_immed for
19321 hsa_op_with_type operands.
19322 (hsa_unsigned_type_for_type): Declare.
19323 * hsa.c (hsa_unsigned_type_for_type): New function.
19324 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
19325 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
19326 the finalizer. Do not emit extra move.
19328 2016-02-26 Martin Jambor <mjambor@suse.cz>
19330 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
19331 atomic operations in private segment.
19333 2016-02-26 Martin Jambor <mjambor@suse.cz>
19335 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
19336 statements to wi->info. Also disallow omp simd constructs.
19337 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
19338 for not gridifying. Dump special string for omp_for.
19340 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19343 * config/aarch64/aarch64.c (aarch64_set_current_function):
19344 Save/restore target globals when switching to
19345 target_option_default_node.
19347 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19350 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
19351 Return 0 if !SHIFT_COUNT_TRUNCATED.
19353 2016-02-26 Jakub Jelinek <jakub@redhat.com>
19354 Eric Botcazou <ebotcazou@adacore.com>
19356 PR rtl-optimization/69891
19357 * dse.c (scan_insn): If we can't figure out memset arguments
19358 or they are non-constant, call clear_rhs_from_active_local_stores.
19360 2016-02-26 Martin Liska <mliska@suse.cz>
19362 * doc/extend.texi: Mention clog10, clog10f an clog10l
19363 in Builtins section.
19365 2016-02-26 Martin Liska <mliska@suse.cz>
19367 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
19369 (resolve_args_picking_1): Likewise.
19370 * dwarf2out.h (struct GTY): Likewise.
19372 2016-02-26 Martin Liska <mliska@suse.cz>
19374 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
19375 with flag_checking.
19376 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19378 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
19379 Martin Liska <mliska@suse.cz>
19381 * doc/install.texi: Mention --enable-valgrind-annotations.
19383 2016-02-26 Richard Biener <rguenther@suse.de>
19385 PR tree-optimization/69551
19386 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
19387 looking through aliases adjust DECL_PT_UID to refer to the
19388 ultimate alias target.
19390 2016-02-25 Martin Liska <mliska@suse.cz>
19392 PR middle-end/69919
19393 * alloc-pool.c (after_memory_report): New variable.
19394 * alloc-pool.h (base_pool_allocator ::release): Do not use
19395 the infrastructure if after_memory_report.
19396 * toplev.c (toplev::main): Mark after memory report.
19398 2016-02-25 Richard Biener <rguenther@suse.de>
19400 PR tree-optimization/48795
19401 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
19403 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
19406 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
19407 offloading is enabled and -fopenacc or -fopenmp is specified.
19408 (CRTOFFLOADEND): Likewise.
19409 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
19410 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
19411 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
19412 (offload_objects_file_name): New static var.
19413 (tool_cleanup): Remove offload_objects_file_name file.
19414 (find_offloadbeginend): Replace with ...
19415 (find_crtoffloadtable): ... this.
19416 (run_gcc): Remove offload_argc and offload_argv.
19417 Get offload_objects_file_name from -foffload-objects=... option.
19418 Read names of object files with offload from this file, pass them to
19419 compile_images_for_offload_targets. Don't call find_offloadbeginend and
19420 don't pass offloadbegin and offloadend to the linker. Don't pass
19421 offload non-LTO files to the linker, because now they're not claimed.
19423 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
19426 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19427 on builtin_unreachable.
19429 2016-02-25 Jakub Jelinek <jakub@redhat.com>
19431 PR rtl-optimization/69896
19432 * regcprop.c: Include cfgrtl.h.
19433 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
19434 than remembered mode, either delete it (if noop_move_p), or
19435 treat like copy_p but not noop_p instruction.
19437 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19440 * dwarf2out.c (gen_variable_die): Work around buggy LTO
19441 - allow NULL decl for Fortran DW_TAG_common_block variables.
19443 2016-02-24 Jason Merrill <jason@redhat.com>
19445 * common.opt (flifetime-dse): Add -flifetime-dse=1.
19447 2016-02-24 Richard Biener <rguenther@suse.de>
19448 Jakub Jelinek <jakub@redhat.com>
19450 PR middle-end/69760
19451 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
19452 conditionally executed ops to well-defined overflow behavior.
19454 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19456 PR middle-end/69915
19457 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
19460 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19462 PR rtl-optimization/69886
19463 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
19464 argument. Use it when checking validity of set instructions.
19465 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
19466 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
19468 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
19469 * store-motion.c (find_moveable_store): Update
19470 can_assign_to_reg_without_clobbers_p callsite.
19472 2016-02-24 Richard Biener <rguenther@suse.de>
19474 PR middle-end/68963
19475 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
19477 (record_nonwrapping_iv): Do not fall back to the low/high bound
19478 for non-constant IV bases if the stmt is not always executed.
19480 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19482 * config/arm/arm-cores.def (cortex-a32): New entry.
19483 * config/arm/arm-tables.opt: Regenerate.
19484 * config/arm/arm-tune.md: Regenerate.
19485 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
19486 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
19487 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
19488 for -mcpu and -mtune.
19490 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19493 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
19494 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
19495 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
19496 (atomic_loaddi_1): Delete.
19497 (atomic_loaddi): Rewrite expander using the above changes.
19499 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19502 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
19505 2016-02-24 Jakub Jelinek <jakub@redhat.com>
19506 Richard Biener <rguenth@suse.de>
19508 PR middle-end/69909
19509 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
19510 set_mem_attributes if tem is SSA_NAME which got expanded
19513 2016-02-24 Richard Biener <rguenther@suse.de>
19515 PR tree-optimization/69907
19516 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
19517 end of permutations for BB vectorization.
19519 2016-02-24 Christian Bruel <christian.bruel@st.com>
19521 * config/arm/arm-c.c (arm_option_override): Initialize
19522 target_option_current_node.
19523 * config/arm/arm.c (arm_pragma_target_parse): Replace
19524 build_target_option_node call by target_option_current_node.
19525 Set target_option_current_node.
19528 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
19531 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
19532 define_insn_and_split to define_insn.
19533 (zero_extendqi<mode>2_dot2): Same.
19534 (extendqi<mode>2_dot): Same.
19535 (extendqi<mode>2_dot2): Same.
19537 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
19539 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
19540 and add bypass for AES{D,E} and AESMC pairs.
19541 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
19544 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
19546 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
19547 series for reciprocal square root in Exynos M1.
19549 2016-02-23 Martin Sebor <msebor@redhat.com>
19552 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
19553 __builtin_alloca_with_align.
19555 2016-02-23 Richard Henderson <rth@redhat.com>
19557 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
19558 (ix86_register_pragmas): Remove __seg_tls.
19559 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
19560 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
19561 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
19562 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
19563 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
19564 * doc/extend.texi (__seg_tls): Remove item.
19566 2016-02-23 Richard Biener <rguenther@suse.de>
19568 * alloc-pool.h (struct allocation_object): Make id member
19569 conditional on CHECKING_P again.
19570 (get_instance): Adjust.
19571 (base_pool_allocator): Likewise.
19573 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
19575 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
19576 (parallelize_loops): In OpenACC kernels mode, set n_threads to
19578 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
19580 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
19582 2016-02-23 Richard Biener <rguenther@suse.de>
19584 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
19585 * bitmap.h (struct bitmap_usage): Likewise.
19586 (bitmap_move): Declare.
19587 * bitmap.c (register_overhead): Take size_t argument.
19588 (bitmap_move): New function.
19589 * df-problems.c (df_rd_transfer_function): Use bitmap_move
19590 to properly account overhead.
19591 * tree.c (free_node): Use tree_size.
19593 2016-02-23 Jakub Jelinek <jakub@redhat.com>
19596 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
19597 when inverting comparison.
19600 * common.opt (Wunreachable-code): Add Warning flag.
19602 2016-02-23 Mark Wielaard <mjw@redhat.com>
19603 Jakub Jelinek <jakub@redhat.com>
19606 * cgraphunit.c (check_global_declaration): Check main_input_filename
19607 and DECL_SOURCE_FILE are not NULL.
19609 2016-02-23 Martin Jambor <mjambor@suse.cz>
19611 PR tree-optimization/69666
19612 * tree-sra.c (sra_modify_assign): Do not attempt to create
19613 default_def replacements for unscalarizable regions.
19615 2016-02-20 Mark Wielaard <mjw@redhat.com>
19618 * cgraphunit.c (check_global_declaration): Check level of
19619 warn_unused_const_variable and main_input_filename.
19620 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
19621 (-Wunused-variable): For C implies -Wunused-const-variable=1.
19622 (-Wunused-const-variable): Explain levels 1 and 2.
19624 2016-02-22 Jakub Jelinek <jakub@redhat.com>
19627 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
19628 identical arguments. Formatting and spelling fixes.
19631 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
19636 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
19637 and m68k-devices.def.
19638 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
19639 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
19641 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
19643 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
19644 and HImode registers.
19646 2016-02-22 Richard Biener <rguenther@suse.de>
19648 PR tree-optimization/69882
19649 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
19650 preserve permutations present because of gaps.
19651 (vect_supported_load_permutation_p): Always continue checking
19652 permutations after vect_attempt_slp_rearrange_stmts.
19654 2016-02-22 Bin Cheng <bin.cheng@arm.com>
19656 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
19657 min_profitable_estimate, rather than min_profitable_iters.
19659 2016-02-22 Jakub Jelinek <jakub@redhat.com>
19662 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
19663 SImode for last match_operand.
19665 2016-02-22 Martin Liska <mliska@suse.cz>
19667 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
19668 return bitsize - 1 as the return value.
19670 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
19674 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
19675 Handle negative shift counts.
19676 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
19677 force_reg on the shift constant.
19678 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
19679 (lshrsi3_d): Handle negative shift counts.
19681 2016-02-22 Richard Biener <rguenther@suse.de>
19682 Tom de Vries <tom@codesourcery.com>
19684 * graph.c: Include dumpfile.h.
19685 (print_graph_cfg): Split into three overloads.
19686 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
19688 2016-02-22 Tom de Vries <tom@codesourcery.com>
19690 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
19693 2016-02-22 Richard Biener <rguenther@suse.de>
19696 * ipa-inline-transform.c (inline_call): When not updating
19697 overall summaries adjust self size by the growth estimate.
19698 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
19699 hash-set, do not update overall summaries here. Renamed from ...
19700 (inline_to_all_callers): ... this which is now wrapping the
19701 above and performing delayed overall summary update.
19702 (early_inline_small_functions): Delay updating of the overall
19705 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
19707 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
19710 2016-02-19 Jakub Jelinek <jakub@redhat.com>
19713 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
19714 :%* in %:gt() argument.
19715 (greater_than_spec_func): Adjust for expecting only numbers,
19716 if there are more than two numbers, compare the last two.
19718 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
19720 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
19721 -Wnarrowing with -std.
19723 2016-02-19 Jakub Jelinek <jakub@redhat.com>
19726 * expr.c (store_field): Don't use bit-field path if exp is
19727 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
19728 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
19729 and the assignment can be performed by bitwise copy. Formatting
19732 PR middle-end/69838
19733 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
19734 call copy_reg_eh_region_note_forward on before and/or after sequences
19735 and remove note from insn if it no longer can throw.
19738 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
19739 if TARGET_AVX512BW.
19741 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19743 * config/s390/vector.md: Add missing commutative operand markers
19744 to the patterns which qualify for one.
19745 * config/s390/vx-builtins.md: Likewise.
19747 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19749 * config/s390/vector.md (VI, VI_QHS): Add single element vector
19750 types to mode iterators.
19751 (vec_double): ... and mode attribute.
19752 * config/s390/vx-builtins.md (non_vec_int): Likewise.
19754 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19756 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
19757 Change the predicate of op2 from nonimmediate to general and let
19758 reload fix it if necessary.
19760 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19762 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
19764 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19766 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
19769 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19771 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
19772 * config/s390/s390.c (s390_expand_vec_movstr): New function.
19773 * config/s390/s390.md ("movstr<P:mode>"): Call
19774 s390_expand_vec_movstr.
19776 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19778 * config/s390/s390.md: Add missing output modifier for operand 1
19779 to print it as address properly.
19781 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19783 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
19784 * config/s390/2964.md: New file.
19785 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
19786 of insn grouping attributes depending on the CPU level.
19787 (s390_get_unit_mask): New function.
19788 (s390_sched_score): Remove the OOO from the scheduling macros.
19789 Add loop to calculate a score for the instruction mix.
19790 (s390_sched_reorder): Likewise plus improve debug output.
19791 (s390_sched_variable_issue): Rename macros as above. Calculate
19792 the unit distances after actually scheduling an insn. Improve
19794 (s390_sched_init): Clear last_scheduled_unit_distance array.
19795 * config/s390/s390.md: Include 2964.md.
19797 2016-02-18 Jakub Jelinek <jakub@redhat.com>
19800 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
19801 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
19802 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
19803 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
19804 *avx512f_<code>v8div16qi2_mask_1): New insns.
19806 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
19809 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
19812 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
19813 earlyclobber from target. Use wF constraint for fused memory
19815 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
19817 2016-02-18 Jakub Jelinek <jakub@redhat.com>
19818 Martin Liska <mliska@suse.cz>
19821 * cfgexpand.c (asan_sanitize_stack_p): New function.
19822 (partition_stack_vars): Use the function.
19823 (expand_stack_vars): Likewise.
19824 (defer_stack_allocation): Likewise.
19825 (expand_used_vars): Likewise.
19827 2016-02-18 Richard Biener <rguenther@suse.de>
19829 PR middle-end/69553
19830 * fold-const.c (operand_equal_p): Properly compare offsets for
19831 IMAGPART_EXPR and ARRAY_REF.
19833 2016-02-18 Nick Clifton <nickc@redhat.com>
19837 * config/arm/arm.c (arm_option_override_internal): Disable
19838 interworking if the target does not support thumb instructions.
19839 (arm_reload_in_hi): Handle the case where a register to register
19840 move needs reloading because there is no simple pattern to handle
19842 (arm_reload_out_hi): Likewise.
19844 2016-02-18 Richard Biener <rguenther@suse.de>
19846 PR middle-end/69854
19847 * match.pd: Don't use fold_binary or fold_unary for folding
19850 2016-02-17 Jakub Jelinek <jakub@redhat.com>
19853 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
19854 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
19855 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
19856 warn on gimple_no_warning_p statements.
19858 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
19860 * doc/extend.texi (C++ Attributes): Correct description of
19861 warn_unused type attribute.
19863 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19865 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
19866 correct instruction.
19868 2016-02-17 Richard Biener <rguenther@suse.de>
19870 PR rtl-optimization/69609
19871 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
19872 (find_traces_1_round): When ending a trace update cached priority
19874 (bb_to_key): Use cached priority when available.
19875 (copy_bb): Initialize cached priority.
19876 (reorder_basic_blocks_software_trace_cache): Likewise.
19878 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19881 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
19883 (aarch64_comparison_operator): Break overly long line into two.
19884 (aarch64_comparison_operation): Likewise.
19885 * config/aarch64/aarch64.md (cstorecc4): Use
19886 aarch64_comparison_operator_mode instead of
19887 aarch64_comparison_operator.
19888 (cstore<mode>4): Likewise.
19889 (aarch64_cstore<mode>): Likewise.
19890 (*cstoresi_insn_uxtw): Likewise.
19891 (cstore<mode>_neg): Likewise.
19892 (*cstoresi_neg_uxtw): Likewise.
19894 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19897 * config/arm/predicates.md (arm_comparison_operator_mode):
19899 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
19900 instead of arm_comparison_operator.
19901 (*mov_negscc): Likewise.
19902 (*mov_notscc): Likewise.
19903 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
19904 (*thumb2_mov_negscc): Likewise.
19905 (*thumb2_mov_negscc_strict_it): Likewise.
19906 (*thumb2_mov_notscc): Likewise.
19907 (*thumb2_mov_notscc_strict_it): Likewise.
19909 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
19911 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
19912 Add missing return.
19914 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
19916 * config/visium/visium.c (machine_libfunc_index): New enum.
19917 (machine_libfuncs): New structure.
19918 (visium_libfuncs): New static variable.
19919 (TARGET_INIT_LIBFUNCS): Define to...
19920 (visium_init_libfuncs): ...this. New function.
19921 (expand_block_move_4): Use the appropriate libfunc.
19922 (expand_block_move_2): Likewise.
19923 (expand_block_move_1): Likewise.
19924 (expand_block_set_4): Likewise.
19925 (expand_block_set_2): Likewise.
19926 (expand_block_set_1): Likewise.
19927 (visium_trampoline_init): Likewise.
19929 2016-02-17 Nick Clifton <nickc@redhat.com>
19931 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
19932 TI's devices.csv file as of March 2016.
19934 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
19937 * opts-global.c (handle_common_deferred_options): Introduce and
19938 initialize two global variables to remember command-line options
19939 specifying a stack-limiting register.
19940 * opts.h: Add extern declarations of the two new global variables.
19941 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
19942 variable based on the values of the two new global variables.
19944 2016-02-16 Jakub Jelinek <jakub@redhat.com>
19947 * common.opt (Wnonnull-compare): New warning.
19948 * doc/invoke.texi (-Wnonnull): Remove text about comparison
19949 of arguments against NULL.
19950 (-Wnonnull-compare): Document.
19951 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
19952 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
19953 * passes.def (pass_warn_nonnull_compare): Add.
19954 * gimple-ssa-nonnull-compare.c: New file.
19956 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
19958 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
19959 AARCH64_EXTRA_TUNE_RECIP_SQRT.
19961 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
19963 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
19964 reciprocal sqrt for -mlow-precision-recip-sqrt.
19966 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
19967 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19969 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
19970 always use lane loads to construct non-constant vectors.
19972 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
19974 * config/aarch64/aarch64.md
19975 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
19976 constraints for operand 3.
19977 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
19979 2016-02-16 Jakub Jelinek <jakub@redhat.com>
19980 Richard Biener <rguenther@suse.de>
19982 PR tree-optimization/69820
19983 * tree-vect-patterns.c (type_conversion_p): Return false if
19984 *orig_type is unsigned single precision or boolean.
19985 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
19988 2016-02-16 Jakub Jelinek <jakub@redhat.com>
19990 PR rtl-optimization/69764
19991 PR rtl-optimization/69771
19992 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
19993 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
19995 2016-02-16 Richard Biener <rguenther@suse.de>
19997 PR tree-optimization/69776
19998 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20000 (indirect_refs_may_alias_p): Likewise.
20001 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20002 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20003 according to tbaa_p.
20004 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20005 (optimize_stmt): For redundant store discovery do not allow tbaa.
20007 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
20009 PR tree-optimization/69714
20010 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20011 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20013 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
20015 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20016 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20017 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20018 * config/arc/arc.c (arc_init): Check FPU options.
20019 (get_arc_condition_code): Handle new CC_FPU* modes.
20020 (arc_select_cc_mode): Likewise.
20021 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20022 register pair only. Allow access for ARCv2 accumulator.
20023 (gen_compare_reg): Whenever we have FPU support use FPU compare
20025 (arc_reorg): Don't generate brcc insns when FPU compare
20026 instructions are involved.
20027 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20028 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20029 floating point emulation.
20030 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20031 (REVERSE_CONDITION): Add new CC_FPU* modes.
20032 (TARGET_FP_SP_BASE): Define.
20033 (TARGET_FP_DP_BASE): Likewise.
20034 (TARGET_FP_SP_FUSED): Likewise.
20035 (TARGET_FP_DP_FUSED): Likewise.
20036 (TARGET_FP_SP_CONV): Likewise.
20037 (TARGET_FP_DP_CONV): Likewise.
20038 (TARGET_FP_SP_SQRT): Likewise.
20039 (TARGET_FP_DP_SQRT): Likewise.
20040 (TARGET_FP_DP_AX): Likewise.
20041 * config/arc/arc.md (ARCV2_ACC): New constant.
20042 (type): New fpu type attribute.
20043 (SDF): Conditional iterator.
20044 (cstore<mode>, cbranch<mode>): Change expand condition.
20045 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20046 handles FPU/FPX cases as well.
20047 * config/arc/arc.opt (mfpu): New option.
20048 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20050 (adddf3, muldf3, subdf3): Removed.
20051 * config/arc/predicates.md (proper_comparison_operator): Recognize
20053 * config/arc/fpu.md: New file.
20054 * doc/invoke.texi (ARC Options): Document mfpu option.
20056 2016-02-16 Richard Biener <rguenther@suse.de>
20058 PR rtl-optimization/69291
20059 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20060 noce_operand_ok check.
20062 2016-02-16 Tom de Vries <tom@codesourcery.com>
20065 * omp-low.c (simd_clone_create): Remove call to
20066 symtab->call_cgraph_insertion_hooks.
20068 2016-02-16 Jakub Jelinek <jakub@redhat.com>
20070 PR tree-optimization/69802
20071 * tree-ssa-reassoc.c (update_range_test): If op is
20072 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20073 op == 1 test of precision 1 integral op, otherwise handle
20074 that case as op itself. Fix up formatting.
20075 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20078 2016-02-16 Richard Biener <rguenther@suse.de>
20080 PR tree-optimization/69586
20081 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20082 types for conversion sources.
20084 2016-02-16 Richard Biener <rguenther@suse.de>
20086 PR middle-end/69801
20087 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20088 mask OEP_ADDRESS_OF.
20090 2016-02-16 Alan Modra <amodra@gmail.com>
20093 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20094 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
20095 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
20097 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
20098 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
20099 (p8_fmrgow_<mode>): Likewise.
20100 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
20102 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
20103 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
20104 to use movdi_internal64. Remove op0_di.
20105 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
20107 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
20109 Add support for the FCCMP insn types
20111 * config/aarch64/aarch64.md (fccmp): Change insn type.
20112 (fccmpe): Likewise.
20113 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
20114 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
20115 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
20116 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
20117 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
20118 * config/arm/types.md (fccmps): Add new insn type.
20119 (fccmpd): Likewise.
20121 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
20123 * alias.c (get_alias_set): Fix a typo in comment.
20125 2016-02-15 Richard Biener <rguenther@suse.de>
20127 PR tree-optimization/69595
20128 * match.pd: Complete range test simplification to true.
20130 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
20132 PR rtl-optimization/69648
20133 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
20134 pic_offset_table_rtx.
20136 PR rtl-optimization/69752
20137 * ira.c (update_equiv_regs): When looking for more than a single SET,
20138 also take other side effects into account.
20140 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
20142 * config/s390/s390.c (s390_function_profiler): Add a new sequence
20143 for z900+ CPUs in 31-bit mode.
20145 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
20147 * common/config/s390/s390-common.c (s390_supports_split_stack):
20149 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
20150 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
20151 * config/s390/s390.c (struct machine_function): New field
20152 split_stack_varargs_pointer.
20153 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
20154 in s390_emit_prologue.
20155 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
20157 (morestack_ref): New global.
20158 (SPLIT_STACK_AVAILABLE): New macro.
20159 (s390_expand_split_stack_prologue): New function.
20160 (s390_live_on_entry): New function.
20161 (s390_va_start): Use split-stack vararg pointer if appropriate.
20162 (s390_asm_file_end): Emit the split-stack note sections.
20163 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
20164 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
20165 (UNSPECV_SPLIT_STACK_CALL): New unspec.
20166 (UNSPECV_SPLIT_STACK_DATA): New unspec.
20167 (split_stack_prologue): New expand.
20168 (split_stack_space_check): New expand.
20169 (split_stack_data): New insn.
20170 (split_stack_call): New expand.
20171 (split_stack_call_*): New insn.
20172 (split_stack_cond_call): New expand.
20173 (split_stack_cond_call_*): New insn.
20175 2016-02-15 Richard Biener <rguenther@suse.de>
20177 PR tree-optimization/69783
20178 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20179 Add trivially correct cases.
20181 2016-02-15 Tom de Vries <tom@codesourcery.com>
20184 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
20186 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
20188 2016-02-15 Richard Biener <rguenther@suse.de>
20190 PR tree-optimization/69776
20191 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
20192 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
20193 indicate whether we can use TBAA to disambiguate against stores.
20194 Use alias-set zero if not.
20195 (visit_reference_op_store): Do not use TBAA when looking up
20197 * tree-ssa-pre.c (compute_avail): Use TBAA here.
20198 (eliminate_dom_walker::before_dom_children): But not when looking
20199 up redundant stores.
20201 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
20203 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
20205 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20207 * config/i386/znver1.md
20208 (znver1_pop, znver1_pop_mem,
20209 znver1_load_imov_double_store,
20210 znver1_load_imov_direct_store,
20211 znver1_load_imov_direct_load,
20212 znver1_load_imov_double_load): Add new.
20213 (znver1_insn, znver1_insn_load): Add icmov type.
20214 (znver1_sseavx_fma,
20215 znver1_sseavx_fma_load,
20217 znver1_avx256_fma_load): Fix pipe usage.
20219 2016-02-14 Alan Modra <amodra@gmail.com>
20222 * reload.c (find_reloads_address_1): For pre/post-inc/dec
20223 with an invalid hard reg, reload just the reg not the entire
20224 pre/post-inc/dec address expression.
20226 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
20229 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
20230 fixed R1_REG scratch reg.
20231 (sibcall_value_pcrel_fdpic): Likewise.
20233 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
20237 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
20239 2016-02-12 Walter Lee <walt@tilera.com>
20241 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
20242 * config/tilegx/t-tilegx: Likewise.
20244 2016-02-12 David Malcolm <dmalcolm@redhat.com>
20247 * diagnostic-show-locus.c (struct line_span): New struct.
20248 (layout::get_first_line): Delete.
20249 (layout::get_last_line): Delete.
20250 (layout::get_num_line_spans): New member function.
20251 (layout::get_line_span): Likewise.
20252 (layout::print_heading_for_line_span_index_p): Likewise.
20253 (layout::get_expanded_location): Likewise.
20254 (layout::calculate_line_spans): Likewise.
20255 (layout::m_first_line): Delete.
20256 (layout::m_last_line): Delete.
20257 (layout::m_line_spans): New field.
20258 (layout::layout): Update comment. Replace m_first_line and
20259 m_last_line with m_line_spans, replacing their initialization
20260 with a call to calculate_line_spans.
20261 (diagnostic_show_locus): When printing source lines and
20262 annotations, rather than looping over a single span
20263 of lines, instead loop over each line_span within
20264 the layout, with an inner loop over the lines within them.
20265 Call the context's start_span callback when changing line spans.
20266 * diagnostic.c (diagnostic_initialize): Initialize start_span.
20267 (diagnostic_build_prefix): Break out the building of the location
20268 part of the string into...
20269 (diagnostic_get_location_text): ...this new function, rewriting
20270 it from nested ternary expressions to a sequence of "if"
20272 (default_diagnostic_start_span_fn): New function.
20273 * diagnostic.h (diagnostic_start_span_fn): New typedef.
20274 (diagnostic_context::start_span): New field.
20275 (default_diagnostic_start_span_fn): New prototype.
20277 2016-02-12 David Malcolm <dmalcolm@redhat.com>
20280 * gcc.c (driver::finalize): Fix cleanup of "specs".
20282 2016-02-12 David Malcolm <dmalcolm@redhat.com>
20286 * gcc.c (driver::driver): Initialize m_option_suggestions.
20287 (driver::~driver): Clean up m_option_suggestions.
20288 (suggest_option): Convert to...
20289 (driver::suggest_option): ...this, and split out into
20290 driver::build_option_suggestions and find_closest_string.
20291 (driver::build_option_suggestions): New function, from
20292 first half of suggest_option. Special-case
20293 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
20294 the sanitizer_opts array. For options of enum types, add the
20295 various enum values to the candidate strings.
20296 (driver::handle_unrecognized_options): Remove "const".
20297 * gcc.h (driver::handle_unrecognized_options): Likewise.
20298 (driver::build_option_suggestions): New decl.
20299 (driver::suggest_option): New decl.
20300 (driver::m_option_suggestions): New field.
20301 * opts-common.c (add_misspelling_candidates): New function.
20302 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
20303 and make non-static.
20304 * opts.h (sanitizer_opts): New array decl.
20305 (add_misspelling_candidates): New function decl.
20306 * spellcheck.c (find_closest_string): New function.
20307 * spellcheck.h (find_closest_string): New function decl.
20309 2016-02-12 Jakub Jelinek <jakub@redhat.com>
20311 PR rtl-optimization/69764
20312 PR rtl-optimization/69771
20313 * optabs.c (expand_binop_directly): For shift_optab_p, force
20314 convert_modes with VOIDmode if xop1 has VOIDmode.
20316 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
20319 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
20320 to correctly determine instrumentation thunks.
20322 2016-02-12 Jakub Jelinek <jakub@redhat.com>
20325 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
20326 type by reference, force lhs on the call.
20329 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
20330 Compute retval and retbnd early in all cases if split_part_return_p
20331 and return_bb is not EXIT. Remove all clobber stmts and reset
20332 all debug stmts that refer to SSA_NAMEs defined in split part,
20333 except if it is retval, in that case replace the old retval with the
20334 lhs of the call to the split part.
20336 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20339 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20341 PR middle-end/66726
20342 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20343 whose result is used in PHI.
20344 (maybe_optimize_range_tests): Likewise.
20345 (final_range_test_p): Likweise.
20347 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
20349 PR middle-end/66726
20350 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20351 whose result is used in PHI.
20352 (maybe_optimize_range_tests): Likewise.
20353 (final_range_test_p): Likweise.
20355 2016-02-12 Jakub Jelinek <jakub@redhat.com>
20357 * cgraph.c: Spelling fixes - behaviour -> behavior and
20358 neighbour -> neighbor.
20359 * target.def: Likewise.
20360 * sel-sched.c: Likewise.
20361 * config/mips/mips.c: Likewise.
20362 * config/arc/arc.md: Likewise.
20363 * config/arm/cortex-a57.md: Likewise.
20364 * config/arm/arm.c: Likewise.
20365 * config/arm/neon.md: Likewise.
20366 * config/arm/arm-c.c: Likewise.
20367 * config/vms/vms-c.c: Likewise.
20368 * config/s390/s390.c: Likewise.
20369 * config/i386/znver1.md: Likewise.
20370 * config/i386/i386.c: Likewise.
20371 * config/ia64/hpux-unix2003.h: Likewise.
20372 * config/msp430/msp430.md: Likewise.
20373 * config/rx/rx.c: Likewise.
20374 * config/rx/rx.md: Likewise.
20375 * config/aarch64/aarch64-simd.md: Likewise.
20376 * config/aarch64/aarch64.c: Likewise.
20377 * config/nvptx/nvptx.c: Likewise.
20378 * config/bfin/bfin.c: Likewise.
20379 * config/cris/cris.opt: Likewise.
20380 * config/rs6000/rs6000.c: Likewise.
20381 * target.h: Likewise.
20382 * spellcheck.c: Likewise.
20383 * ira-build.c: Likewise.
20384 * tree-inline.c: Likewise.
20385 * builtins.c: Likewise.
20386 * lra-constraints.c: Likewise.
20387 * explow.c: Likewise.
20388 * hwint.h: Likewise.
20389 * targhooks.c: Likewise.
20390 * tree-vect-data-refs.c: Likewise.
20391 * expr.c: Likewise.
20392 * doc/tm.texi: Likewise.
20393 * doc/extend.texi: Likewise.
20394 * doc/install.texi: Likewise.
20395 * doc/md.texi: Likewise.
20396 * tree-ssa-tail-merge.c: Likewise.
20397 * sched-int.h: Likewise.
20398 * match.pd: Likewise.
20399 * sched-ebb.c: Likewise.
20400 * target.def (omit_struct_return_reg): Likewise.
20401 * gimple-ssa-isolate-paths.c: Likewise.
20402 (find_implicit_erroneous_behaviour): Renamed to...
20403 (find_implicit_erroneous_behavior): ... this.
20404 (find_explicit_erroneous_behaviour): Renamed to...
20405 (find_explicit_erroneous_behavior): ... this.
20406 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
20408 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
20410 PR rtl-optimization/64682
20411 PR rtl-optimization/69567
20412 PR rtl-optimization/69737
20413 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
20414 in I2 as well, just lose it.
20416 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20418 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
20420 (aarch64_last_printed_tune_string): Likewise.
20421 (aarch64_declare_function_name): Only output .arch assembler
20422 directive if it will be different from the previously output
20423 directive. Same for .tune comment but only if -dA is set.
20424 (aarch64_start_file): New function.
20425 (TARGET_ASM_FILE_START): Define.
20427 2016-02-11 David Malcolm <dmalcolm@redhat.com>
20430 * Makefile.in (PLUGIN_HEADERS): Add params.list.
20432 2016-02-11 Jakub Jelinek <jakub@redhat.com>
20435 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
20436 -Wmaybe-uninitialized warning.
20438 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
20441 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
20443 2016-02-11 Richard Biener <rguenther@suse.de>
20445 PR rtl-optimization/69291
20446 * ifcvt.c (noce_try_store_flag_constants): Do not allow
20447 subexpressions affected by changing the result.
20449 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
20452 * lra-constraints.c (curr_insn_transform): Find in/out operands
20453 for secondary memory moves. Update dups.
20455 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
20457 PR tree-optimization/69652
20458 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
20459 to nested loop, did source re-formatting, skip debug statements,
20460 add check on statement with volatile operand, remove dead scalar
20463 2016-02-10 Jakub Jelinek <jakub@redhat.com>
20464 Patrick Palka <ppalka@gcc.gnu.org>
20468 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
20469 calls if the return type is TREE_ADDRESSABLE.
20470 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
20471 * ipa-split.c (split_function): Fix doubled "we" in comment.
20472 Use void return type for the split part even if
20473 !split_point->split_part_set_retval.
20475 2016-02-10 Bin Cheng <bin.cheng@arm.com>
20477 PR tree-optimization/68021
20478 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
20479 when computing the value of biv cand by itself.
20481 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
20483 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
20484 (cortexa57_tunings): Likewise.
20485 (cortexa72_tunings): Likewise.
20486 (arch_macro_fusion_pair_p): Add support for AES fusion.
20487 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
20488 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
20489 Allow virtual registers before reload so early scheduling works.
20490 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
20491 correct latency and pipeline.
20492 (cortex_a57_crypto_complex): Likewise.
20493 (cortex_a57_crypto_xor): Likewise.
20494 (define_bypass): Add AES bypass.
20496 2016-02-10 Richard Biener <rguenther@suse.de>
20498 PR tree-optimization/69726
20499 * passes.def: Add DCE pass before late uninit.
20500 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
20501 really fixup if-conversions job.
20503 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
20505 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
20506 (arm_cortex_a57_tune): Likewise.
20507 (aarch_macro_fusion_pair_p): Add support for AES fusion.
20508 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
20510 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
20512 * timevar.def (TV_PHASE_DBGINFO): Delete.
20513 (TV_PHASE_CHECK_DBGINFO): Likewise.
20514 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
20516 2016-02-10 Richard Biener <rguenther@suse.de>
20518 PR tree-optimization/69719
20519 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20520 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
20522 2016-02-09 Andrew Pinski <apinski@cavium.com>
20525 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
20526 get_vcond_mask_icode returns false.
20528 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
20531 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
20532 an ADDIS that adds a pointer to a large constant that sets the
20533 upper16 bits with a load operation.
20535 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
20538 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
20540 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
20542 (vzipq_s16): Likewise.
20543 (vzipq_s32): Likewise.
20544 (vzipq_f32): Likewise.
20545 (vzipq_u8): Likewise.
20546 (vzipq_u16): Likewise.
20547 (vzipq_u32): Likewise.
20548 (vzipq_p8): Likewise.
20549 (vzipq_p16): Likewise.
20551 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
20554 * config/arm/arm.c (neon_endian_lane_map): New function.
20555 (neon_vector_pair_endian_lane_map): New function.
20556 (arm_evpc_neon_vuzp): Allow for big endian lane order.
20557 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
20559 (vuzpq_s16): Likewise.
20560 (vuzpq_s32): Likewise.
20561 (vuzpq_f32): Likewise.
20562 (vuzpq_u8): Likewise.
20563 (vuzpq_u16): Likewise.
20564 (vuzpq_u32): Likewise.
20565 (vuzpq_p8): Likewise.
20566 (vuzpq_p16): Likewise.
20568 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
20571 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
20574 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
20576 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
20577 truncate const_int operand 1 to QImode.
20579 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
20581 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
20582 corresponding to an abnormal edge.
20584 2016-02-09 Tom de Vries <tom@codesourcery.com>
20586 PR tree-optimization/69599
20587 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
20589 (find_func_aliases_for_builtin_call, find_func_clobbers)
20590 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
20593 2016-02-09 Richard Biener <rguenther@suse.de>
20595 PR tree-optimization/69715
20596 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
20597 LHS on calls as non-rewritable.
20599 2016-02-09 Tom de Vries <tom@codesourcery.com>
20602 * lto-wrapper.c (append_diag_options): New function.
20603 (compile_offload_image): Call append_diag_options.
20605 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
20608 * doc/extend.texi (Flag Output Operands): Correct sectioning.
20609 Minor copy-edit to fix verb tenses.
20611 2016-02-08 Jakub Jelinek <jakub@redhat.com>
20613 PR tree-optimization/69209
20614 * ipa-split.c (split_function): If split part is not
20615 returning retval, retval has gimple type but is not
20616 gimple value, force it into a SSA_NAME first.
20618 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
20620 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
20623 2016-02-08 Jason Merrill <jason@redhat.com>
20626 * convert.c (convert_to_integer_1): Check dofold on truncation
20628 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
20629 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
20630 Rename from *_nofold.
20631 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
20632 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
20634 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
20637 * tree.c (build_common_tree_nodes): Remove short_double argument.
20638 All callers changed.
20639 * tree.h (build_common_tree_nodes): Adjust declaration.
20640 * doc/invoke.texi (-fshort-double): Remove documentation.
20641 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
20642 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
20643 * lto-wrapper.c (merge_and_complain, append_compiler_options)
20644 (append_linker_options): Don't handle OPT_fshort_double.
20646 PR rtl-optimization/68730
20647 * lra-remat.c (insn_to_cand_activation): New static variable.
20648 (lra_remat): Allocate and free it.
20649 (create_cand): New arg activation. Initialize a field in
20650 insn_to_cand_activation if it is nonnull.
20651 (create_cands): Pass the activation insn to create_cand when making
20652 a candidate involving an output reload. Reorganize code a little.
20653 (do_remat): Keep track of active status of candidates in a separate
20656 2016-02-08 Richard Biener <rguenther@suse.de>
20658 PR tree-optimization/69719
20659 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20660 Properly use absolute of the difference of the two offsets to
20661 compare or adjust the segment length.
20663 2016-02-08 Richard Biener <rguenther@suse.de>
20664 Jeff Law <law@redhat.com>
20667 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
20668 types for anonymous SSA names.
20670 2016-02-08 Richard Biener <rguenther@suse.de>
20672 PR rtl-optimization/69274
20673 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
20675 2016-02-08 Jeff Law <law@redhat.com>
20677 PR tree-optimization/65917
20678 * tree-ssa-dom.c (record_temporary_equivalences): Record both
20679 equivalences from if (x == y) style conditionals.
20680 (loop_depth_of_name): Remove.
20681 (record_equality): Remove loop depth check.
20682 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
20683 (const_and_copies::record_const_or_copy_raw): New member function.
20684 * tree-ssa-scopedtables.c
20685 (const_and_copies::record_const_or_copy_raw): New, factored out of
20686 (const_and_copies::record_const_or_copy): Call new member function.
20688 2016-02-05 Jeff Law <law@redhat.com>
20690 PR tree-optimization/68541
20691 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
20692 (count_stmts_in_block): New function.
20693 (poor_ifcvt_candidate_code): Likewise.
20694 (is_feasible_trace): Add some heuristics to determine when path
20695 splitting is profitable.
20696 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
20697 is a diamond with a single exit.
20699 2016-02-05 Martin Sebor <msebor@redhat.com>
20702 * doc/invoke.texi: Update -Wplacement-new to take an optional
20705 2016-02-06 Richard Henderson <rth@redhat.com>
20708 * tree.c (tree_nop_conversion_p): Do not strip casts into or
20709 out of non-standard address spaces.
20711 2016-02-05 Jakub Jelinek <jakub@redhat.com>
20713 PR rtl-optimization/69691
20714 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
20716 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
20718 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
20719 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
20720 (*ieee128_mfvsrd_64bit): Likewise.
20721 (*ieee128_mfvsrd_32bit): Likewise.
20723 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
20727 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
20729 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
20730 instrumented_version.
20732 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
20734 * doc/invoke.texi (Optimize Options): In table of --param options
20735 rename second occurrence of tracer-min-branch-ratio to
20736 tracer-min-branch-probability, rename
20737 tracer-min-branch-ratio-feedback to
20738 tracer-min-branch-probability-feedback and clarify description,
20739 rename sched-spec-state-edge-prob-cutoff to
20740 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
20741 to selsched-insns-to-rename, rename lto-minpartition to
20742 lto-min-partition, delete reorder-blocks-duplicate and
20743 reorder-blocks-duplicate-feedback.
20745 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20747 * config/s390/s390.c (s390_register_info_set_ranges): Remove
20750 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
20752 * doc/extend.texi: S/390: Correct some typos.
20754 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20756 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
20758 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20761 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
20762 (s390_register_info_gprtofpr): Use new macros above.
20763 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
20765 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
20766 its name. Adjust restore and save gpr ranges.
20767 (s390_register_info_set_ranges): New function.
20768 (s390_register_info): Use new macros above. Call
20769 s390_register_info_set_ranges.
20770 (s390_optimize_register_info): Likewise.
20771 (s390_hard_regno_rename_ok): Use new macros.
20772 (s390_hard_regno_scratch_ok): Likewise.
20773 (s390_emit_epilogue): Likewise.
20774 (s390_can_use_return_insn): Likewise.
20775 (s390_optimize_prologue): Likewise.
20776 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
20778 2016-02-05 Jakub Jelinek <jakub@redhat.com>
20781 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
20783 (ix86_option_override_internal): Disable TARGET_STV even for
20784 -m{incoming,preferred}-stack-boundary=3.
20786 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20788 * config.gcc: Mark deprecated rtems targets as obsolete.
20790 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
20792 PR rtl-optimization/64682
20793 PR rtl-optimization/69567
20794 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
20795 before I2 only if the register is both used and set in I2.
20797 2016-02-04 DJ Delorie <dj@redhat.com>
20799 * config/msp430/msp430.c (msp430_start_function): Add function type.
20801 2016-02-04 Jakub Jelinek <jakub@redhat.com>
20804 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
20806 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
20808 PR rtl-optimization/69577
20810 2015-10-29 Richard Henderson <rth@redhat.com>
20814 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
20815 sse check to the exact conditions of PR 67609.
20817 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
20820 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
20821 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
20822 not allowed into the traditional Altivec registers.
20823 (movtd_64bit_nodm): Likewise.
20824 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
20826 2016-02-04 David Malcolm <dmalcolm@redhat.com>
20828 * config/aarch64/cortex-a57-fma-steering.c
20829 (aarch64_register_fma_steering): Remove "static" from arguments
20832 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
20835 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
20836 twice when complex.
20838 2016-02-04 Mike Frysinger <vapier@gentoo.org>
20840 * doc/invoke.texi: Delete -mno-fma4.
20842 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
20844 PR rtl-optimization/69577
20845 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
20846 (find_subregs_of_mode): Update accordingly. Iterate over partial
20849 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
20851 * config/arm/arm-protos.h (neon_reinterpret): Remove.
20852 * config/arm/arm.c (neon_reinterpret): Remove.
20853 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
20854 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
20855 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
20856 vreinterpretti): Remove.
20857 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
20858 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
20859 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
20860 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
20861 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
20862 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
20863 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
20864 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
20865 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
20866 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
20867 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
20868 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
20869 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
20870 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
20871 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
20872 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
20873 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
20874 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
20875 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
20876 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
20877 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
20878 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
20879 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
20880 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
20881 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
20882 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
20883 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
20884 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
20885 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
20886 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
20887 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
20888 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
20889 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
20890 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
20891 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
20892 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
20893 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
20894 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
20895 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
20896 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
20897 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
20898 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
20899 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
20900 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
20901 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
20902 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
20903 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
20904 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
20905 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
20906 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
20907 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
20908 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
20909 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
20910 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
20911 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
20912 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
20913 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
20914 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
20915 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
20916 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
20917 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
20918 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
20919 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
20920 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
20921 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
20922 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
20923 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
20924 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
20925 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
20926 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
20927 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
20928 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
20929 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
20930 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
20931 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
20932 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
20933 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
20934 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
20935 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
20936 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
20937 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
20938 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
20939 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
20940 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
20941 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
20942 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
20943 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
20944 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
20945 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
20946 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
20947 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
20948 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
20949 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
20950 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
20951 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
20952 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
20953 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
20954 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
20955 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
20956 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
20957 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
20958 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
20959 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
20961 2016-02-04 Martin Liska <mliska@suse.cz>
20964 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
20965 that are gimple_store_p.
20966 (maybe_instrument_call): Likewise.
20968 2016-02-04 Bin Cheng <bin.cheng@arm.com>
20970 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
20971 register scaling out of memory reference and comment why.
20973 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20977 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
20978 folding the source of a SET.
20980 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20984 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
20985 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
20987 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
20991 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
20994 2016-02-04 Christian Bruel <christian.bruel@st.com>
20996 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
20997 * config/arm/arm.c (arm_set_current_function): Likewise.
20999 2016-02-04 Jakub Jelinek <jakub@redhat.com>
21000 Ilya Enkovich <enkovich.gnu@gmail.com>
21001 H.J. Lu <hongjiu.lu@intel.com>
21004 * config/i386/i386.c (convert_scalars_to_vector): Remove
21005 stack alignment fixes.
21006 (ix86_option_override_internal): Disable TARGET_STV if stack
21007 might not be aligned enough.
21008 (ix86_minimum_alignment): Assert that TARGET_STV is false.
21010 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
21012 * config/i386/x86-tune.def: Disable default prefetching
21015 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
21016 Vladimir Makarov <vmakarov@redhat.com>
21019 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21020 in validating fused toc addresses.
21022 2016-02-03 Jakub Jelinek <jakub@redhat.com>
21025 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21026 range->m_caret fields if range->m_show_caret_p is false.
21029 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21030 Force oldval into register if it does not satisfy reg_or_short_operand
21031 predicate. Fix up formatting.
21033 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
21034 Alexandre Oliva <aoliva@redhat.com>
21037 * lra-constraints.c (simplify_operand_subreg): Check additionally
21038 address validity after potential reloading.
21039 (process_address_1): Check insns validity. In case of failure do
21042 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
21045 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21048 2016-02-02 Jakub Jelinek <jakub@redhat.com>
21050 * wide-int.cc (canonize_uhwi): New function.
21051 (wi::divmod_internal): Use it.
21053 2016-02-02 James Norris <jnorris@codesourcery.com>
21055 * gimplify.c (omp_notice_variable): Add usage check.
21057 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
21059 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21060 like LE, GE, LT, GT when emitting relational operator.
21062 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
21064 * ira-costs.c (find_costs_and_classes): Add extra argument.
21065 * target.def (ira_change_pseudo_allocno_class): Add parameter.
21066 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21067 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21068 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21069 Add best_class parameter, and return it if not ALL_REGS.
21070 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21072 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21073 Update target hook.
21075 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
21077 * config/aarch64/aarch64.c
21078 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21079 (aarch64_ira_change_pseudo_allocno_class): New function.
21081 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
21084 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21086 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21088 * config/avr/avr.c (avr_option_override): Set
21089 PARAM_ALLOW_STORE_DATA_RACES to 1.
21091 2016-02-02 Richard Biener <rguenther@suse.de>
21093 PR tree-optimization/69595
21094 * match.pd: Add range test simplifications to true/false.
21096 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
21098 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
21099 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
21102 2016-02-02 Richard Biener <rguenther@suse.de>
21104 PR tree-optimization/69606
21105 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
21106 info on the result before moving a stmt.
21108 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
21110 PR middle-end/68542
21111 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
21112 branch with vector comparison.
21113 * config/i386/sse.md (VI48_AVX): New mode iterator.
21114 (define_expand "cbranch<mode>4): Add support for conditional branch
21115 with vector comparison.
21116 * tree-vect-loop.c (optimize_mask_stores): New function.
21117 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
21118 has_mask_store field of vect_info.
21119 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
21120 vectorized loops having masked stores after vec_info destroy.
21121 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
21122 correspondent macros.
21123 (optimize_mask_stores): Add prototype.
21125 2016-02-02 Alan Modra <amodra@gmail.com>
21128 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
21131 2016-02-02 Alan Modra <amodra@gmail.com>
21134 * config/rs6000/rs6000.c (need_toc_init): New var, set it
21135 whenever toc_label_name used.
21136 (rs6000_file_start): Don't set up toc section here,
21137 (rs6000_output_function_epilogue): do so here instead,
21138 (rs6000_xcoff_file_start): and here.
21139 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
21140 (load_toc_aix_di): Likewise.
21142 2016-02-01 Jakub Jelinek <jakub@redhat.com>
21144 PR rtl-optimization/69592
21145 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
21146 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
21147 (num_sign_bit_copies_binary_arith_p): New inline function.
21148 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
21150 2016-02-01 Jeff Law <law@redhat.com>
21152 PR tree-optimization/69580
21153 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
21154 * tree-ssa-threadbackward.c
21155 (fsm_find_control_statement_thread_paths): Do not try to walk
21156 through large PHI nodes.
21158 2016-02-01 Jakub Jelinek <jakub@redhat.com>
21160 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
21161 when count is incremented above limit, don't analyze further
21164 * omp-low.c (oacc_parse_default_dims): Avoid
21165 -Wsign-compare warning, make sure value fits into int
21166 rather than just unsigned int.
21168 2016-02-01 Bin Cheng <bin.cheng@arm.com>
21170 PR tree-optimization/67921
21171 * fold-const.c (split_tree): New parameters. Convert pointer
21172 type variable part to proper type before negating.
21173 (fold_binary_loc): Pass new arguments to split_tree.
21175 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
21177 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
21178 (nvptx_goacc_validate_dims): Extend to handle global defaults.
21179 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
21180 * doc/tm.texti: Rebuilt.
21181 * doc/invoke.texi (fopenacc-dim): Document.
21182 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
21183 (append_compiler_options): Likewise.
21184 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
21185 (oacc_parse_default_dims): New.
21186 (oacc_validate_dims): Add USED arg. Select non-unity default when
21188 (oacc_loop_fixed_partitions): Return mask of used partitions.
21189 (oacc_loop_auto_partitions): Emit dump info.
21190 (oacc_loop_partition): Return mask of used partitions.
21191 (execute_oacc_device_lower): Parse default dimension arg. Adjust
21192 loop partitioning and validation calls.
21194 2016-02-01 Richard Biener <rguenther@suse.de>
21196 PR middle-end/69556
21197 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
21199 2016-02-01 Richard Biener <rguenther@suse.de>
21201 PR tree-optimization/69574
21202 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
21203 of asserting return chrec_dont_know.
21205 2016-02-01 Martin Liska <mliska@suse.cz>
21207 * mem-stats-traits.h: Add copyright header.
21208 * mem-stats.h: Likewise.
21210 2016-02-01 Richard Biener <rguenther@suse.de>
21212 PR tree-optimization/69579
21213 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
21214 Do not propagate through abnormal PHI results.
21216 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
21218 * postreload.c (reload_cse_simplify): Remove dead code.
21220 2016-02-01 Jakub Jelinek <jakub@redhat.com>
21222 PR rtl-optimization/69570
21223 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
21224 if there is more than one set, not if there is a single set.
21226 2016-02-01 Richard Henderson <rth@redhat.com>
21229 * combine.c (make_compound_operation): When looking through a
21230 subreg, make sure to re-extend to the width of the outer mode.
21232 2016-01-30 Jakub Jelinek <jakub@redhat.com>
21234 PR tree-optimization/69546
21235 * wide-int.cc (wi::divmod_internal): For unsigned division
21236 where both operands fit into uhwi, if o1 is 1 and o0 has
21237 msb set, if divident_prec is larger than bits per hwi,
21238 clear another quotient word and return 2 instead of 1.
21239 Similarly for remainder with msb in HWI set, if dividend_prec
21240 is larger than bits per hwi.
21242 2016-01-29 Martin Jambor <mjambor@suse.cz>
21244 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
21245 Use short lowercase names.
21246 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
21247 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
21248 acq_rel one. Protect warning agains segfaults if
21249 get_memory_order_name returns NULL.
21250 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
21251 with release semantics. Do not warn if get_memory_order already did.
21252 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
21253 semantics. Fix check for relaxed or acquire semantics. Do not warn
21254 if get_memory_order already did.
21256 2016-01-29 Sebastian Pop <s.pop@samsung.com>
21258 * doc/install.texi: Document that isl-0.16 is supported.
21260 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
21263 * config/i386/constraints.md (Bm): Describe as special memory
21265 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
21266 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21267 * genpreds.c (struct constraint_data): Add is_special_memory.
21268 (have_special_memory_constraints, special_memory_start): New
21270 (special_memory_end): Ditto.
21271 (add_constraint): Add new arg is_special_memory. Add code to
21272 process its true value. Update have_special_memory_constraints.
21273 (process_define_constraint): Pass the new arg.
21274 (process_define_register_constraint): Ditto.
21275 (choose_enum_order): Process special memory.
21276 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
21277 function insn_extra_special_memory_constraint.
21278 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21279 * gensupport.c (process_rtx): Process
21280 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21281 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
21282 * ira-lives.c (single_reg_class): Use
21283 insn_extra_special_memory_constraint.
21284 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
21285 * lra-constraints.c (process_alt_operands): Ditto.
21286 (curr_insn_transform): Use insn_extra_special_memory_constraint.
21287 * recog.c (asm_operand_ok, preprocess_constraints): Process
21289 * reload.c (find_reloads): Ditto.
21290 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
21291 * stmt.c (parse_input_constraint): Use
21292 insn_extra_special_memory_constraint.
21294 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
21297 * lra-splill.c (lra_final_code_change): Revert r229087 by
21298 removing all sub-registers.
21300 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
21303 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
21305 2016-01-29 Jakub Jelinek <jakub@redhat.com>
21308 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
21309 SSE1, copy target into the temporary reg first before recursing
21312 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
21314 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
21317 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
21319 * ginclude/stdarg.h: Test __cplusplus instead of
21320 __GXX_EXPERIMENTAL_CXX0X__.
21322 2016-01-29 Richard Biener <rguenther@suse.de>
21324 PR tree-optimization/69547
21325 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
21326 Do not mark clobbers necessary.
21327 (mark_all_reaching_defs_necessary_1): Likewise.
21329 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21331 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
21332 declaration name with %qs and print it in both error messages.
21333 Also fix indentation.
21335 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
21338 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
21339 trailing blank line from error message.
21341 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
21344 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
21347 2016-01-29 Richard Biener <rguenther@suse.de>
21349 PR middle-end/69537
21350 * match.pd: Allow all integral types when simplifying a
21351 widening or sign-changing conversion.
21353 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21355 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
21356 back to setting codegen_error to fail codegen.
21358 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
21361 * config/i386/constraints.md (C): Only accept constant zero operand.
21362 (BC): New constraint.
21363 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
21364 instead of C constraint.
21365 * doc/md.texi (Machine Constraints): Update description
21368 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
21371 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
21373 2016-01-28 Jakub Jelinek <jakub@redhat.com>
21375 PR middle-end/69542
21376 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
21379 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
21381 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
21382 branches if using guessed profile.
21384 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
21386 * graphite-optimize-isl.c (optimize_isl): Fix dump.
21388 2016-01-28 Richard Henderson <rth@redhat.com>
21391 * config/aarch64/aarch64-modes.def (CC_Cmode): New
21392 * config/aarch64/aarch64-protos.h: Update.
21393 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
21394 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
21395 (aarch64_get_condition_code_1): Handle CC_Cmode.
21396 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
21397 (*add<mode>3_compareC_cconly_imm): New.
21398 (*add<mode>3_compareC_cconly): New.
21399 (*add<mode>3_compareC_imm): New.
21400 (add<mode>3_compareC): New.
21401 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
21402 to be first. Use aarch64_carry_operation.
21403 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
21404 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
21405 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
21406 (subti3): Use subdi3_compare1.
21407 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
21408 (sub<mode>3_compare1): New.
21409 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
21410 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
21411 (*subsi3_carryin_uxtw): Likewise.
21412 (*ngc<mode>, *ngcsi_uxtw): Likewise.
21413 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
21414 * config/aarch64/iterators.md (DWI): New.
21415 * config/aarch64/predicates.md (aarch64_carry_operation): New.
21416 (aarch64_borrow_operation): New.
21418 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
21420 * graphite-optimize-isl.c (optimize_isl): Print a different debug
21421 message when isl does not return a valid schedule.
21423 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21425 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
21426 Remove comments from class declarations: they are already in the code
21429 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21431 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
21433 (ternary_op_to_tree): Same.
21434 (unary_op_to_tree): Same.
21435 (nary_op_to_tree): Same.
21436 (gcc_expression_from_isl_expr_op): Same.
21437 (gcc_expression_from_isl_expression): Same.
21438 (graphite_create_new_loop): Same.
21439 (graphite_create_new_loop_guard): Same.
21440 (build_iv_mapping): Same.
21441 (graphite_create_new_guard): Same.
21442 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
21443 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
21445 2016-01-28 Sebastian Pop <s.pop@samsung.com>
21447 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
21448 instead of setting codegen_error to fail codegen.
21450 2016-01-28 Jason Merrill <jason@redhat.com>
21452 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
21454 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
21456 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
21457 Remove CONST_INT_P check in CCMP cost calculation.
21459 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
21461 * config/aarch64/aarch64.c (generic_vector_cost):
21462 Set vec_permute_cost.
21463 (cortexa57_vector_cost): Likewise.
21464 (exynosm1_vector_cost): Likewise.
21465 (xgene1_vector_cost): Likewise.
21466 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
21467 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
21468 Add vec_permute_cost entry.
21470 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
21472 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
21474 (add<mode>3_compare0): Likewise.
21475 (addsi3_compare0_uxtw): Likewise.
21476 (add<mode>3nr_compare0): Likewise.
21477 (compare_neg<mode>): Likewise.
21478 (<optab><mode>3): Likewise.
21480 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
21482 * tree-vect-stmts.c (vectorizable_comparison): Add
21483 NULL check for vectype.
21485 2016-01-28 Richard Biener <rguenther@suse.de>
21487 PR tree-optimization/69466
21488 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
21489 Account for PHIs we couldn't duplicate.
21491 2016-01-28 Martin Liska <mliska@suse.cz>
21494 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
21495 instead of ENABLE_VALGRIND_CHECKING.
21497 2016-01-27 Richard Henderson <rth@redhat.com>
21500 * lra-remat.c (subreg_regs): New.
21501 (dump_candidates_and_remat_bb_data): Dump it.
21502 (operand_to_remat): Reject if operand in subreg_regs.
21503 (set_bb_regs): Collect subreg_regs.
21504 (lra_remat): Init and free subreg_regs. Compute
21505 calculate_local_reg_remat_bb_data before create_cands.
21507 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
21510 * config/i386/i386.c (ix86_update_stack_boundary): Don't
21511 change stack_alignment_needed for __tls_get_addr call.
21513 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
21515 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
21517 2016-01-27 Jeff Law <law@redhat.com>
21519 PR tree-optimization/68398
21520 PR tree-optimization/69196
21521 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
21522 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
21523 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21524 Only count PHIs in the last block in the path. The others will
21525 const/copy propagate away. Add heuristic to allow more irreducible
21526 subloops to be created when it is likely profitable to do so.
21528 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21529 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
21530 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
21532 2016-01-27 Jakub Jelinek <jakub@redhat.com>
21535 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
21536 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
21537 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
21538 * tree-streamer-in.c: Include asan.h.
21539 (streamer_get_builtin_tree): For builtins in sanitizer
21540 range call initialize_sanitizer_builtins and retry.
21542 2016-01-27 Ian Lance Taylor <iant@google.com>
21544 * common.opt (fkeep-gc-roots-live): New undocumented option.
21545 * tree-ssa-loop-ivopts.c (add_candidate_1): If
21546 -fkeep-gc-roots-live, skip pointers.
21547 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
21550 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
21553 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
21554 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
21556 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
21559 * configure.ac: NetBSD provides SSP in its C library.
21560 * configure: Updated.
21562 2016-01-27 Richard Biener <rguenther@suse.de>
21564 PR tree-optimization/69166
21565 * tree-vect-loop.c (vect_is_simple_reduction): Always check
21566 reduction code for commutativity / associativity.
21568 2016-01-27 Martin Jambor <mjambor@suse.cz>
21570 PR tree-optimization/69355
21571 * tree-sra.c (analyze_access_subtree): Correct hole detection when
21572 total_scalarization fails.
21574 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
21576 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
21579 2016-01-27 Christian Bruel <christian.bruel@st.com>
21582 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
21583 Move arm_reset_previous_fndecl and set_target_option_current_node in
21584 the conditional part. Call save_restore_target_globals.
21585 * config/arm/arm.c (arm_set_current_function):
21586 Refactor to better support #pragma target and attribute mix.
21587 Call save_restore_target_globals.
21588 * config/arm/arm-protos.h (save_restore_target_globals): New function.
21590 2016-01-27 Martin Liska <mliska@suse.cz>
21592 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
21593 reference for an HSA kernel and its host function.
21595 2016-01-27 Jakub Jelinek <jakub@redhat.com>
21597 PR tree-optimization/69399
21598 * wide-int.h (wi::lrshift): For larger precisions, only
21599 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
21601 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
21603 * config/arc/predicates.md (proper_comparison_operator): Reject
21604 constant-constant comparison.
21606 2016-01-26 Tom de Vries <tom@codesourcery.com>
21608 PR tree-optimization/69110
21609 * tree-data-ref.c (initialize_data_dependence_relation): Handle
21610 DR_NUM_DIMENSIONS == 0.
21612 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
21613 Sebastian Pop <s.pop@samsung.com>
21615 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
21616 isl_ast_op_cond and isl_ast_op_select.
21617 (gcc_expression_from_isl_expr_op): Same.
21619 2016-01-26 Jason Merrill <jason@redhat.com>
21622 * tree.c (recompute_constructor_flags): Split out from
21624 (verify_constructor_flags): New.
21625 * tree.h: Declare them.
21627 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
21629 PR rtl-optimization/69217
21630 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
21631 are no TYPE_FIELDS set for the record type.
21633 2016-01-26 Jakub Jelinek <jakub@redhat.com>
21636 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
21637 toc_label_name unconditionally.
21638 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
21639 SYMBOL_REF string. Use toc_label_name instead of constructing
21641 (rs6000_elf_declare_function_name): Use toc_label_name instead of
21642 constructing LCTOC1.
21644 2016-01-26 Martin Sebor <msebor@redhat.com>
21647 * doc/extend.texi (Common Type Attributes): Move text that talks about
21648 attribute packed from attribute aligned to the section discussing
21649 the former attribute for clarity.
21651 2016-01-26 Richard Henderson <rth@redhat.com>
21653 PR middle-end/60908
21654 * trans-mem.c (tm_region_init): Mark entry block as visited.
21656 2016-01-26 David Malcolm <dmalcolm@redhat.com>
21659 * diagnostic-show-locus.c (layout::print_source_line): Replace
21660 call to pp_newline with call to layout::print_newline.
21661 (layout::print_annotation_line): Likewise.
21662 (layout::move_to_column): Likewise.
21663 (layout::print_any_fixits): After printing any fixits, print a
21664 trailing newline, if necessary.
21665 (layout::print_newline): New method, resetting any colorization
21667 (diagnostic_show_locus): Move the pp_newline to before the
21668 early bailout. Remove dummy block enclosing the layout instance.
21669 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
21670 of pp_newline_and_flush with pp_flush.
21671 (diagnostic_append_note): Delete use of pp_newline.
21672 (diagnostic_append_note_at_rich_loc): Delete.
21673 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
21674 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
21675 when newline characters are added to the buffer.
21677 2016-01-26 Michael Matz <matz@suse.de>
21679 * configure.ac (ac_cv_std_swap_in_utility): New test.
21680 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
21681 * configure: Regenerate.
21682 * config.in: Regenerate.
21684 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
21686 * config/arc/arc.md (cstoresi4): Force operand into register.
21687 (arcset<code>): Fix predicate.
21688 (arcsetltu): Likewise.
21689 (arcsetgeu): Likewise.
21690 (arcsethi): Likewise.
21691 (arcsetls): Likewise.
21693 2016-01-26 Jakub Jelinek <jakub@redhat.com>
21695 PR tree-optimization/69483
21696 * gimple-fold.c (canonicalize_constructor_val): Return NULL
21697 if base has error_mark_node type.
21699 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
21702 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
21703 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
21705 (vget_lane_f16): Handle big-endian.
21706 (vgetq_lane_f16): Likewise.
21707 (vset_lane_f16): Likewise.
21708 (vsetq_lane_f16): Likewise.
21709 * config/arm/iterators.md (VQXMOV): Add V8HF.
21710 (VDQ): Add V4HF and V8HF.
21711 (V_reg): Handle V4HF and V8HF.
21712 (Is_float_mode): Likewise.
21713 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
21714 neon_vdup_nv8hf): New patterns.
21715 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
21716 Use VD_LANE iterator.
21717 (neon_vld1_dup<mode>): Use VQ2 iterator.
21719 2016-01-26 Nathan Sidwell <nathan@acm.org>
21721 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
21722 (set_oacc_fn_attrib): Add IS_KERNEL arg.
21723 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
21724 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
21725 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
21726 (oacc_validate_dims): Add LEVEL arg, don't return level.
21727 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
21728 oacc_validate_dims.
21729 (execute_oacc_device_lower): Adjust, add more dump output.
21730 * tree-ssa-loop.c (gate_oacc_kernels): Use
21731 oacc_fn_attrib_kernels_p.
21732 * tree-parloops.c (create_parallel_loop): Adjust
21733 set_oacc_fn_attrib call.
21735 2016-01-26 Jakub Jelinek <jakub@redhat.com>
21738 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
21739 (append_compiler_options): Handle -fcilkplus.
21740 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
21742 2016-01-26 Nick Clifton <nickc@redhat.com>
21745 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
21746 been marked as DECL_ONE_ONLY but we do not the means to make it
21747 so, then do not allow it to bind locally.
21749 2016-01-26 Jakub Jelinek <jakub@redhat.com>
21752 * opts.h (parse_sanitizer_options): New prototype.
21753 * opts.c (sanitizer_opts): New array.
21754 (parse_sanitizer_options): New function.
21755 (common_handle_option): Use parse_sanitizer_options.
21757 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
21760 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
21761 alignment adjustment to ...
21762 (ix86_update_stack_boundary): Here. Don't over-align stack for
21764 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
21765 if __tls_get_addr is called.
21767 2016-01-26 Christian Bruel <christian.bruel@st.com>
21769 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
21771 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
21773 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
21775 2016-01-26 Richard Biener <rguenther@suse.de>
21777 PR middle-end/69467
21778 * match.pd: Guard X * CST CMP 0 pattern with single_use.
21780 2016-01-26 Richard Biener <rguenther@suse.de>
21782 PR tree-optimization/69452
21783 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
21784 (move_computations_dom_walker::before_dom_children): Rename
21786 (move_computations_worker): This.
21787 (move_computations): Perform an RPO rather than a DOM walk.
21789 2016-01-26 Jakub Jelinek <jakub@redhat.com>
21792 * combine.c (combine_instructions): For REG_EQUAL note with
21793 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
21794 to the underlying register.
21795 * doc/rtl.texi (REG_EQUAL): Document the behavior of
21796 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
21798 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
21801 * config/aarch64/aarch64-builtins.c
21802 (aarch64_init_simd_builtin_types): Do not set structural
21803 equality to __Poly{8,16,64,128}_t types.
21805 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
21807 PR tree-optimization/69400
21808 * wide-int.cc (wi_pack): Take the precision as argument and
21809 perform canonicalization here rather than in the callers.
21810 Use the main loop to handle all full-width HWIs. Add a
21811 zero HWI if in_len isn't a full result.
21812 (wi::divmod_internal): Update accordingly.
21813 (wi::mul_internal): Likewise. Simplify.
21815 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
21816 Sebastian Pop <s.pop@samsung.com>
21818 * graphite-poly.c (apply_poly_transforms): Simplify.
21819 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
21820 (print_isl_map): Same.
21821 (print_isl_union_map): Same.
21822 (print_isl_schedule): New.
21823 (debug_isl_schedule): New.
21824 * graphite-dependences.c (scop_get_reads): Do not call
21825 isl_union_map_add_map that is undocumented isl functionality.
21826 (scop_get_must_writes): Same.
21827 (scop_get_may_writes): Same.
21828 (scop_get_original_schedule): Remove.
21829 (scop_get_dependences): Do not call isl_union_map_compute_flow that
21830 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
21831 (compute_deps): Remove.
21832 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
21833 (debug_schedule_ast): New.
21834 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
21835 set_separate_option.
21836 (graphite_regenerate_ast_isl): Add dump.
21837 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
21838 from scop->transformed_schedule.
21839 (graphite_regenerate_ast_isl): Add more dump.
21840 * graphite-optimize-isl.c (optimize_isl): Set
21841 scop->transformed_schedule. Check whether schedules are equal.
21842 (apply_poly_transforms): Move here.
21843 * graphite-poly.c (apply_poly_transforms): ... from here.
21844 (free_poly_bb): Static.
21845 (free_scop): Static.
21846 (pbb_number_of_iterations_at_time): Remove.
21847 (print_isl_ast): New.
21848 (debug_isl_ast): New.
21849 (debug_scop_pbb): New.
21850 * graphite-scop-detection.c (print_edge): Move.
21851 (print_sese): Move.
21852 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
21853 (build_scop_scattering): Remove.
21854 (create_pw_aff_from_tree): Assert instead of bailing out.
21855 (add_condition_to_pbb): Remove unused code, do not fail.
21856 (add_conditions_to_domain): Same.
21857 (add_conditions_to_constraints): Remove.
21858 (build_scop_context): New.
21859 (add_iter_domain_dimension): New.
21860 (build_iteration_domains): Initialize pbb->iterators.
21861 Call add_conditions_to_domain.
21864 (index_outermost_in_loop): New.
21865 (index_pbb_in_loop): New.
21866 (outermost_pbb_in): New.
21867 (add_in_sequence): New.
21868 (add_outer_projection): New.
21869 (outer_projection_mupa): New.
21870 (add_loop_schedule): New.
21871 (build_schedule_pbb): New.
21872 (build_schedule_loop): New.
21873 (embed_in_surrounding_loops): New.
21874 (build_schedule_loop_nest): New.
21875 (build_original_schedule): New.
21876 (build_poly_scop): Call build_original_schedule.
21877 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
21878 (free_poly_dr): Remove.
21879 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
21880 (free_poly_bb): Remove.
21881 (debug_loop_vec): Remove.
21882 (print_isl_ast): Declare.
21883 (debug_isl_ast): Declare.
21884 (scop_do_interchange): Remove.
21885 (scop_do_strip_mine): Remove.
21886 (scop_do_block): Remove.
21887 (flatten_all_loops): Remove.
21888 (optimize_isl): Remove.
21889 (pbb_number_of_iterations_at_time): Remove.
21890 (debug_scop_pbb): Declare.
21891 (print_schedule_ast): Declare.
21892 (debug_schedule_ast): Declare.
21893 (struct scop): Remove schedule. Add original_schedule,
21894 transformed_schedule.
21895 (free_gimple_poly_bb): Remove.
21896 (print_generated_program): Remove.
21897 (debug_generated_program): Remove.
21898 (unify_scattering_dimensions): Remove.
21899 * sese.c (print_edge): ... here.
21900 (print_sese): ... here.
21901 (debug_edge): ... here.
21902 (debug_sese): ... here.
21903 * sese.h (print_edge): Declare.
21904 (print_sese): Declare.
21905 (dump_edge): Declare.
21906 (dump_sese): Declare.
21908 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
21909 Sebastian Pop <s.pop@samsung.com>
21911 * Makefile.in: Set ISLVER in site.exp.
21913 2016-01-25 Jakub Jelinek <jakub@redhat.com>
21915 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
21916 DECL_VALUE_EXPR of new_var even for the non-array case. Look
21917 through DECL_VALUE_EXPR for expansion.
21919 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
21921 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
21922 the frame info after reload completed.
21924 2016-01-25 Jeff Law <law@redhat.com>
21926 PR tree-optimization/69196
21927 PR tree-optimization/68398
21928 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
21929 tree-ssa-threadupdate.c.
21930 (determine_bb_domination_status): Prototype
21931 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
21932 (determine_bb_domination_status): No longer static.
21933 (valid_jump_thread_path): Remove code to detect characteristics
21934 of the jump thread path not associated with correctness.
21935 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
21936 Correct test for thread path length. Count PHIs for real operands as
21937 statements that need to be copied. Do not count ASSERT_EXPRs.
21938 Look at all the blocks in the thread path. Compute and selectively
21939 filter thread paths based on threading through the latch, threading
21940 a multiway branch or crossing a multiway branch.
21942 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21944 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
21945 decl with __attribute__ ((unused)) annotation.
21947 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
21950 * tree-vect-stmts.c (vectorizable_condition): Check vectype
21951 of operands is compatible with a statement vectype.
21953 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
21955 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
21956 improve wording for mixed storage order support.
21958 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
21960 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
21961 (vcvt_u64_f64): Likewise.
21962 (vcvta_s64_f64): Likewise.
21963 (vcvta_u64_f64): Likewise.
21964 (vcvtm_s64_f64): Likewise.
21965 (vcvtm_u64_f64): Likewise.
21966 (vcvtn_s64_f64): Likewise.
21967 (vcvtn_u64_f64): Likewise.
21968 (vcvtp_s64_f64): Likewise.
21969 (vcvtp_u64_f64): Likewise.
21971 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
21973 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
21974 (arc_init): Check validity mll64 option.
21975 (arc_save_restore): Use double load/store instruction.
21976 (arc_expand_movmem): Likewise.
21977 (arc_split_move): Don't split if we have double load/store
21978 instructions. Returns a boolean.
21979 (arc_process_double_reg_moves): Change function to return boolean
21980 instead of a sequence of instructions.
21981 (arc_dwarf_register_span): New function.
21982 * config/arc/arc-protos.h (arc_split_move): Change prototype.
21983 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
21984 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
21985 (*movdf_insn): Likewise.
21986 * config/arc/arc.opt (mll64): New option.
21987 * config/arc/predicates.md (even_register_operand): New predicate.
21988 * doc/invoke.texi (ARC Options): Add mll64 documentation.
21990 2016-01-25 Richard Biener <rguenther@suse.de>
21993 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
21994 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
21996 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
21998 2016-01-25 Richard Biener <rguenther@suse.de>
22000 PR tree-optimization/69376
22001 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22003 (VN_INFO_ANTI_RANGE_P): New inline.
22004 (VN_INFO_RANGE_TYPE): Likewise.
22005 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22006 SSA_NAME_ANTI_RANGE_P.
22007 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22008 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22009 Properly query VN_INFO_RANGE_TYPE.
22011 2016-01-25 Nick Clifton <nickc@redhat.com>
22014 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22016 2016-01-23 Tom de Vries <tom@codesourcery.com>
22018 PR tree-optimization/69426
22019 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22022 2016-01-23 Jakub Jelinek <jakub@redhat.com>
22024 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22025 "the the" with "the" in the comments.
22026 * ipa-devirt.c (build_type_inheritance_graph,
22027 update_type_inheritance_graph): Likewise.
22028 * tree.c (build_function_type_list_1): Likewise.
22029 * cfgloopmanip.c (scale_loop_profile): Likewise.
22030 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22031 * gimple-ssa-split-paths.c
22032 (find_block_to_duplicate_for_splitting_paths): Likewise.
22033 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22034 * expr.c (convert_move): Likewise.
22035 * var-tracking.c (vt_stack_adjustments): Likewise.
22036 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22037 * tree-vrp.c (test_for_singularity): Likewise.
22039 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22040 directly instead of building a temporary tree.
22043 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22044 remove <algorithm> include.
22046 2016-01-22 Jakub Jelinek <jakub@redhat.com>
22049 * config/i386/i386.c: Include dojump.h.
22050 (expand_small_movmem_or_setmem,
22051 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22053 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22054 if dynamic_check != -1.
22056 2016-01-21 Jeff Law <law@redhat.com>
22058 PR middle-end/69347
22059 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22060 record_temporary_equivalences. Rewritten to avoid unnecessary calls
22061 into dominated_by_p.
22062 (cprop_into_successor_phis): Avoid unnecessary tests.
22064 2016-01-22 Richard Henderson <rth@redhat.com>
22067 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22068 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22070 2016-01-22 Michael Matz <matz@suse.de>
22072 * system.h (string, algorithm): Include only conditionally.
22073 (new): Include always under C++.
22074 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22075 * final.c (toplevel): Ditto.
22076 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22077 * genconditions.c (write_header): Make gencondmd.c define
22079 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22081 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22082 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22084 2016-01-22 Christian Bruel <christian.bruel@st.com>
22087 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22089 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22092 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22093 define_insn_and_split. Ensure operands[1] and operands[0] do not
22094 get assigned the same register.
22096 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
22098 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
22100 2016-01-22 Christian Bruel <christian.bruel@st.com>
22102 * config/arm/arm-c.c (arm_pragma_target_parse):
22103 Remove warn_builtin_macro_redefined overwrite.
22105 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
22107 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
22108 flag_non_call_exceptions compatibility.
22110 2016-01-22 Jakub Jelinek <jakub@redhat.com>
22113 * dwarf2out.c (add_child_die_after): New function.
22114 (dwarf_qual_info_t): New type.
22115 (dwarf_qual_info): New variable.
22116 (qualified_die_p): New function.
22117 (modified_type_die): For -fdebug-types-section, ensure
22118 canonical order of qualifiers. Put qualified DIEs adjacent
22119 to the corresponding non-qualified type DIE and search there
22120 for existing qualified DIEs.
22122 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
22124 * doc/extend.texi (scalar_storage_order type attribute): Document
22125 restriction on type punning and aliasing, and remove future tense.
22127 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
22130 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
22133 2016-01-21 Jeff Law <law@redhat.com>
22135 PR middle-end/69347
22136 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
22137 useless call to record_temporary_equivalences.
22138 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
22139 allocate 10 slots in the bb_path vector and let it grow as needed.
22140 (fsm_find_control_statement_thread_paths): Similarly for the next_path
22143 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
22145 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
22147 * configure: Regenerate.
22149 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
22151 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
22152 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
22154 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
22156 PR middle-end/66178
22157 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
22158 drop EXPAND_INITIALIZER.
22159 * rtl.h (contains_symbolic_reference_p): Declare.
22160 * rtlanal.c (contains_symbolic_reference_p): New function.
22161 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
22162 a subtraction into a NOT if symbolic constants are involved.
22164 2016-01-21 Anton Blanchard <anton@samba.org>
22165 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22168 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
22170 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
22173 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
22175 * config/microblaze/microblaze.c
22176 (get_branch_target): New.
22177 (insert_wic_for_ilb_runout): New.
22179 (microblaze_machine_dependent_reorg): New.
22180 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
22181 * config/microblaze/microblaze.md
22182 (UNSPEC_IPREFETCH): Define.
22183 (iprefetch): New pattern
22184 * config/microblaze/microblaze.opt
22185 (mxl-prefetch): New flag.
22187 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
22189 * config/microblaze/microblaze.h
22190 (FIXED_REGISTERS): Update in macro.
22191 (CALL_USED_REGISTERS): Update in macro.
22193 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
22195 PR rtl-optimization/68920
22196 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
22199 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
22201 PR rtl-optimization/68990
22202 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
22203 pseudo instead of inheritance ones.
22205 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22206 Nick Clifton <nickc@redhat.com>
22210 * config/mips/mips.c (mips_compute_frame_info): Initialise
22211 args_size and hard_frame_pointer_offset fields of the frame
22212 structure before calling mips_global_pointer.
22214 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
22216 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
22218 * configure: Regenerate.
22220 2016-01-21 Richard Biener <rguenther@suse.de>
22222 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
22224 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
22226 * config/s390/s390.c (s390_asm_declare_function_size): Add code
22227 to actually emit the .size directive.
22229 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
22230 Jakub Jelinek <jakub@redhat.com>
22234 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
22235 args array size by one to avoid buffer overflow.
22237 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
22239 * config/s390/s390.md (pool_section_start): Use switch_to_section
22240 to select proper read-only data section instead of hardcoding
22242 (pool_section_end): Use switch_to_section to match the above.
22244 2016-01-21 Richard Biener <rguenther@suse.de>
22246 PR tree-optimization/69378
22247 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
22248 (set_ssa_val_to): Use it for dominance checks taking into
22249 account not executable edges.
22251 2016-01-21 Jakub Jelinek <jakub@redhat.com>
22254 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
22255 for bitsize instead of GET_MODE_PRECISION (mode).
22257 2016-01-20 Martin Sebor <msebor@redhat.com>
22260 * extend.texi (__sync Builtins): Clarify the semantics of
22261 __sync_fetch_and_OP built-ins on pointers.
22262 (__atomic Builtins): Same.
22264 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22265 Sebastian Pop <s.pop@samsung.com>
22267 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
22268 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
22269 (is_valid_rename): Same.
22270 (translate_isl_ast_to_gimple::get_rename): Same.
22271 (translate_isl_ast_to_gimple::rename_all_uses): Same.
22272 (translate_isl_ast_to_gimple::rename_uses): Same.
22273 (get_new_name): Check for close_phi nodes.
22274 (copy_loop_phi_args): Use phi_node_kind.
22275 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
22276 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
22278 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22279 Sebastian Pop <s.pop@samsung.com>
22281 Revert commit r229783.
22282 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
22283 Remove use of parameter_rename_map.
22284 (copy_def): Remove.
22285 (copy_internal_parameters): Remove.
22286 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
22287 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
22288 (free_sese_info): Do not free parameter_rename_map.
22289 (set_rename): Do not use parameter_rename_map.
22290 (rename_uses): Update call to set_rename.
22291 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
22292 * sese.h (parameter_rename_map_t): Remove.
22293 (struct sese_info_t): Remove field parameter_rename_map.
22295 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22296 Sebastian Pop <s.pop@samsung.com>
22298 * graphite-isl-ast-to-gimple.c: Fix comment.
22299 * graphite-scop-detection.c (defined_in_loop_p): New.
22300 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
22301 names defined in loop.
22303 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22304 Sebastian Pop <s.pop@samsung.com>
22306 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
22307 Discard unstructured if-then-else regions.
22309 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22310 Sebastian Pop <s.pop@samsung.com>
22312 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
22313 (cleanup_loop_iter_dom): Remove.
22314 (build_loop_iteration_domains): Remove.
22315 (build_scop_context): Remove.
22316 (build_scop_iteration_domain): Remove.
22317 (add_loop_constraints): New.
22318 (build_iteration_domains): New.
22319 (build_poly_scop): Call build_iteration_domains.
22321 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22322 Sebastian Pop <s.pop@samsung.com>
22324 * graphite-scop-detection.c
22325 (scop_detection::harmful_loop_in_region): Free dom and loops.
22326 (scop_detection::loop_body_is_valid_scop): Free bbs.
22328 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22329 Sebastian Pop <s.pop@samsung.com>
22331 * graphite-scop-detection.c (record_loop_in_sese): New.
22332 (gather_bbs::before_dom_children): Call record_loop_in_sese.
22333 (build_scops): Remove call to build_sese_loop_nests.
22334 * sese.c (sese_record_loop): Remove.
22335 (build_sese_loop_nests): Remove.
22336 (new_sese_info): Remove region->loops.
22337 (free_sese_info): Same.
22338 * sese.h (sese_contains_loop): Same.
22339 (build_sese_loop_nests): Remove.
22340 (sese_contains_loop): Remove.
22342 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22343 Sebastian Pop <s.pop@samsung.com>
22345 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
22346 loop_is_valid_in_scop.
22347 (scop_detection::harmful_stmt_in_region): Renamed
22348 harmful_loop_in_region.
22349 Call loop_is_valid_in_scop.
22351 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22352 Sebastian Pop <s.pop@samsung.com>
22354 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
22357 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22358 Sebastian Pop <s.pop@samsung.com>
22360 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
22361 * graphite.h (struct poly_bb): Remove field is_reduction.
22362 (PBB_IS_REDUCTION): Remove.
22364 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
22365 Sebastian Pop <s.pop@samsung.com>
22367 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
22368 (add_pdr_constraints): Same.
22369 (scop_get_reads): Same.
22370 (scop_get_must_writes): Same.
22371 (scop_get_may_writes): Same.
22372 (scop_get_original_schedule): Same.
22373 (extend_schedule): Same.
22374 (apply_schedule_on_deps): Same.
22375 (carries_deps): Same.
22376 (compute_deps): Same.
22377 (scop_get_dependences): Same.
22378 * graphite-isl-ast-to-gimple.c
22379 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
22380 * graphite-optimize-isl.c (get_schedule_for_band): Same.
22381 (get_schedule_for_band_list): Same.
22382 (get_schedule_map): Same.
22383 (apply_schedule_map_to_scop): Same.
22384 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
22385 (build_loop_iteration_domains): Same.
22386 (add_condition_to_pbb): Same.
22387 (add_param_constraints): Same.
22388 (pdr_add_memory_accesses): Same.
22389 (pdr_add_data_dimensions): Same.
22391 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
22393 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
22396 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
22398 * common.opt (feliminate-dwarf2-dups): Replace references to
22399 "DWARF 2" with just "DWARF".
22400 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
22401 * doc/extend.texi: Likewise.
22402 * doc/cpp.texi: Likewise.
22403 * doc/invoke.texi: Likewise.
22404 (Option Summary): Add -gdwarf to list of Debugging Options.
22405 (Debugging Options): Document -gdwarf.
22406 * doc/contrib.texi: Spell "DWARF" like that.
22408 2016-01-21 Jakub Jelinek <jakub@redhat.com>
22410 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
22411 warning. Fix up formatting.
22413 PR middle-end/67653
22414 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
22415 attempt to mark memory input operand addressable and
22416 call prepare_gimple_addressable in that case. Don't adjust
22417 input_location for diagnostics, use error_at instead.
22419 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
22421 * config/rs6000/ppc-auxv.h: New file.
22422 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
22423 (cpu_is): Likewise.
22424 (cpu_supports): Likewise.
22425 * config/rs6000/rs6000.c: include "ppc-auxv.h".
22426 (cpu_is_info): New variable.
22427 (cpu_supports_info): Likewise.
22428 (tcb_verification_symbol): Likewise.
22429 (cpu_builtin_p): Likewise.
22430 (cpu_expand_builtin): New function.
22431 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
22432 (rs6000_init_builtins): Likewise.
22433 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
22434 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
22435 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
22436 * configure: Regenerate.
22437 * config.in: Likewise.
22438 * doc/extend.texi (PowerPC Built-in Functions): Document
22439 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
22441 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
22444 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
22446 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
22449 2016-01-20 Richard Henderson <rth@redhat.com>
22455 * tree.c (tm_define_builtin): New.
22456 (find_tm_vector_type): New.
22457 (build_tm_vector_builtins): New.
22458 (build_common_builtin_nodes): Call it.
22460 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
22462 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
22463 (arm_fp_ok): Likewise.
22464 (arm_fp): Likewise.
22465 (arm_crypto): Likewise.
22467 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
22468 Richard Biener <rguenther@suse.de>
22470 PR tree-optimization/69328
22471 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
22472 vectors have same number of elements.
22473 (vectorizable_condition): Fix masked version recognition.
22475 2016-01-20 Richard Biener <rguenther@suse.de>
22477 PR tree-optimization/69345
22478 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
22479 (VN_INFO_PTR_INFO): Likewise.
22480 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
22481 info when it is equal between non-dominating SSA names.
22482 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22483 Make sure to look at original SSA infos.
22485 2016-01-20 Jeff Law <law@redhat.com>
22488 * config/m68k/predicates.md (pow2_m1_operand): New predicate
22490 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
22491 (pc_or_label_operand): New predicate.
22492 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
22493 tests for small integers that are 2^n - 1.
22495 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
22497 * doc/invoke.texi (Options Summary): Add '.' after @xref.
22499 2016-01-19 Jeff Law <law@redhat.com>
22501 PR middle-end/69347
22502 * tree-ssa-threadbackwards.c
22503 (fsm_find_control_statement_thread_paths): Do not try to lookup
22504 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
22506 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
22508 * doc/lto.texi: Remove text that says only Gold has linker plugin
22511 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
22513 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
22514 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
22515 the DIE accordingly.
22516 (modified_type_die): Add REVERSE parameter and pass it recursively,
22517 as well as to base_type_die. Adjust presence check accordingly.
22518 (base_type_for_mode): Adjust call to modified_type_die.
22519 (add_type_attribute): Add REVERSE parameter and pass it to
22521 (generic_parameter_die): Adjust call to add_type_attribute.
22522 (add_scalar_info): Likewise.
22523 (add_subscript_info): Likewise.
22524 (gen_array_type_die): Likewise.
22525 (gen_descr_array_type_die): Likewise.
22526 (gen_entry_point_die): Likewise.
22527 (gen_enumeration_type_die): Likewise.
22528 (gen_formal_parameter_die): Likewise.
22529 (gen_subprogram_die): Likewise.
22530 (gen_variable_die ): Likewise.
22531 (gen_const_die): Likewise.
22532 (gen_field_die): Likewise.
22533 (gen_pointer_type_die): Likewise.
22534 (gen_reference_type_die): Likewise.
22535 (gen_ptr_to_mbr_type_die): Likewise.
22536 (gen_inheritance_die): Likewise.
22537 (gen_subroutine_type_die): Likewise.
22538 (gen_typedef_die): Likewise.
22539 (force_type_die): Adjust call to modified_type_die.
22541 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
22543 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
22544 flow throughout the file. Fix broken link to Objective-C 2.0
22546 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
22549 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22551 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
22553 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22556 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
22557 (maybe_record_node): Record cxa_pure_virtual as the only possible
22558 target if there are not ohter candidates.
22559 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
22561 2016-01-19 Richard Biener <rguenther@suse.de>
22563 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
22564 (get_memory_order): Likewise.
22566 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
22568 * tree-vect-stmts.c (vectorizable_store): Check
22571 2016-01-19 David Malcolm <dmalcolm@redhat.com>
22574 * gcc.c (driver::decode_argv): Add call to
22575 init_opts_obstack before init_options_struct.
22576 * opts.c (init_opts_obstack): Remove idempotency.
22577 (init_options_struct): Replace call to init_opts_obstack
22578 with a gcc_assert to verify that it has already been called.
22579 * toplev.c (toplev::main): Add call to init_opts_obstack before
22580 calls to init_options_struct.
22581 (toplev::finalize): Move cleanup of opts_obstack next to
22582 cleanup of save_decoded_options, clearing the latter, and
22583 save_decoded_options_count.
22585 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22588 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
22589 attribute to unconditional. Remove %? from output template.
22591 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22592 Jiong Wang <jiong.wang@arm.com>
22594 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
22595 generated from different expand order.
22597 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22599 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22600 Add support for CCMP costing.
22602 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22604 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
22605 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
22606 (fccmpe<mode>): Likewise.
22607 (fcmp): Rename to fcmp and globalize pattern.
22609 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
22610 (aarch64_gen_ccmp_next): Add FP support.
22612 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
22614 * target.def (gen_ccmp_first): Update documentation.
22615 (gen_ccmp_next): Likewise.
22616 * doc/tm.texi (gen_ccmp_first): Update documentation.
22617 (gen_ccmp_next): Likewise.
22618 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
22619 expand_ccmp_expr_1. Improve comments.
22620 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
22621 (ccmp_ior<mode>): Remove pattern.
22622 (cmp<mode>): Remove expand.
22623 (cmp): Globalize pattern.
22624 (cstorecc4): Use cc_register.
22625 (mov<mode>cc): Remove ccmp_cc_register check.
22626 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
22627 Simplify after removal of CC_DNE/* modes.
22628 (aarch64_ccmp_mode_to_code): Remove.
22629 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
22630 In 'k' case use integer as condition.
22631 (aarch64_nzcv_codes): Remove inverted cases.
22632 (aarch64_code_to_ccmode): Remove.
22633 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
22634 comparison with CC register to be used in folowing CCMP/branch/CSEL.
22635 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
22636 pattern. Return the comparison with CC register. Invert conditions
22637 when bitcode is OR.
22638 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
22639 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
22641 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22643 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22644 instrumented_version.
22646 2016-01-19 Richard Biener <rguenther@suse.de>
22648 PR tree-optimization/69336
22649 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
22650 handled components with get_ref_base_and_extent.
22651 (equal_mem_array_ref_p): Adjust.
22653 2016-01-19 Jakub Jelinek <jakub@redhat.com>
22656 * shrink-wrap.c: Include valtrack.h.
22657 (move_insn_for_shrink_wrap): Add DEBUG argument. If
22658 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
22659 in between insn and where it will be moved to. Call
22660 dead_debug_insert_temp.
22661 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
22662 first and dead_debug_local_finish at the end.
22663 For uses and defs bitmap, handle all regs in between REGNO and
22664 END_REGNO, not just the first one.
22666 2016-01-19 Richard Biener <rguenther@suse.de>
22668 PR tree-optimization/69352
22669 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
22670 (equal_mem_array_ref_p): Constrain size and max size properly.
22671 Compare the reverse flag.
22673 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
22675 * ira.c (ira): Update regstat data if we deleted insns.
22677 2016-01-19 Jakub Jelinek <jakub@redhat.com>
22679 PR rtl-optimization/68955
22680 PR rtl-optimization/64557
22681 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
22682 here. Fix up formatting.
22683 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
22685 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22688 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
22689 assume that the node has body.
22690 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
22693 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22695 * lto-streamer-out.c (lto_output): Do not stream instrumentation
22698 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
22700 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
22701 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
22703 2016-01-19 Martin Jambor <mjambor@suse.cz>
22704 Martin Liska <mliska@suse.cz>
22705 Michael Matz <matz@suse.de>
22707 * Makefile.in (OBJS): Add new source files.
22708 (GTFILES): Add hsa.c.
22709 * common.opt (disable_hsa): New variable.
22710 (-Whsa): New warning.
22711 * config.in (ENABLE_HSA): New.
22712 * configure.ac: Treat hsa differently from other accelerators.
22713 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
22714 $enable_offloading.
22715 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
22716 * doc/install.texi (Configuration): Document --with-hsa-runtime,
22717 --with-hsa-runtime-include, --with-hsa-runtime-lib and
22718 --with-hsa-kmt-lib.
22719 * doc/invoke.texi (-Whsa): Document.
22720 (hsa-gen-debug-stores): Likewise.
22721 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
22722 to invoke offload compiler for hsa acclerator.
22723 * opts.c (common_handle_option): Determine whether HSA offloading
22724 should be performed.
22725 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
22726 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
22727 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
22728 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
22729 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
22730 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
22731 GF_OMP_FOR_KIND_GRID_LOOP.
22732 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
22733 (pp_gimple_stmt_1): Likewise.
22734 * gimple-walk.c (walk_gimple_stmt): Likewise.
22735 * gimple.c (gimple_build_omp_grid_body): New function.
22736 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
22737 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
22738 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
22739 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
22740 GF_OMP_TEAMS_GRID_PHONY.
22741 (gimple_statement_omp_single_layout): Updated comments.
22742 (gimple_build_omp_grid_body): New function.
22743 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
22744 (gimple_omp_for_grid_phony): New function.
22745 (gimple_omp_for_set_grid_phony): Likewise.
22746 (gimple_omp_parallel_grid_phony): Likewise.
22747 (gimple_omp_parallel_set_grid_phony): Likewise.
22748 (gimple_omp_teams_grid_phony): Likewise.
22749 (gimple_omp_teams_set_grid_phony): Likewise.
22750 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
22751 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
22752 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
22753 (BUILT_IN_GOMP_TARGET): Updated type.
22754 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
22755 (adjust_for_condition): New function.
22756 (get_omp_for_step_from_incr): Likewise.
22757 (extract_omp_for_data): Moved parts to adjust_for_condition and
22758 get_omp_for_step_from_incr.
22759 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
22760 (fixup_child_record_type): Bail out if receiver_decl is NULL.
22761 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
22762 (scan_omp_parallel): Do not create child functions for phony
22764 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
22765 (scan_omp_1_op): Checking assert we are not remapping to
22766 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
22767 (parallel_needs_hsa_kernel_p): New function.
22768 (expand_parallel_call): Register apprpriate parallel child
22769 functions as HSA kernels.
22770 (grid_launch_attributes_trees): New type.
22771 (grid_attr_trees): New variable.
22772 (grid_create_kernel_launch_attr_types): New function.
22773 (grid_insert_store_range_dim): Likewise.
22774 (grid_get_kernel_launch_attributes): Likewise.
22775 (get_target_argument_identifier_1): Likewise.
22776 (get_target_argument_identifier): Likewise.
22777 (get_target_argument_value): Likewise.
22778 (push_target_argument_according_to_value): Likewise.
22779 (get_target_arguments): Likewise.
22780 (expand_omp_target): Call get_target_arguments instead of looking
22781 up for teams and thread limit.
22782 (grid_expand_omp_for_loop): New function.
22783 (grid_arg_decl_map): New type.
22784 (grid_remap_kernel_arg_accesses): New function.
22785 (grid_expand_target_kernel_body): New function.
22786 (expand_omp): Call it.
22787 (lower_omp_for): Do not emit phony constructs.
22788 (lower_omp_taskreg): Do not emit phony constructs but create for them
22789 a temporary variable receiver_decl.
22790 (lower_omp_taskreg): Do not emit phony constructs.
22791 (lower_omp_teams): Likewise.
22792 (lower_omp_grid_body): New function.
22793 (lower_omp_1): Call it.
22794 (grid_reg_assignment_to_local_var_p): New function.
22795 (grid_seq_only_contains_local_assignments): Likewise.
22796 (grid_find_single_omp_among_assignments_1): Likewise.
22797 (grid_find_single_omp_among_assignments): Likewise.
22798 (grid_find_ungridifiable_statement): Likewise.
22799 (grid_target_follows_gridifiable_pattern): Likewise.
22800 (grid_remap_prebody_decls): Likewise.
22801 (grid_copy_leading_local_assignments): Likewise.
22802 (grid_process_kernel_body_copy): Likewise.
22803 (grid_attempt_target_gridification): Likewise.
22804 (grid_gridify_all_targets_stmt): Likewise.
22805 (grid_gridify_all_targets): Likewise.
22806 (execute_lower_omp): Call grid_gridify_all_targets.
22807 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
22808 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
22809 (tree_omp_clause): Added union field dimension.
22810 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
22811 * tree.c (omp_clause_num_ops): Added number of arguments of
22812 OMP_CLAUSE__GRIDDIM_.
22813 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
22814 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
22815 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
22816 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
22817 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
22818 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
22819 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
22820 * tree-pass.h (make_pass_gen_hsail): Declare.
22821 (make_pass_ipa_hsa): Likewise.
22822 * ipa-hsa.c: New file.
22823 * lto-section-in.c (lto_section_name): Add hsa section name.
22824 * lto-streamer.h (lto_section_type): Add hsa section.
22825 * timevar.def (TV_IPA_HSA): New.
22826 * hsa-brig-format.h: New file.
22827 * hsa-brig.c: New file.
22828 * hsa-dump.c: Likewise.
22829 * hsa-gen.c: Likewise.
22832 * toplev.c (compile_file): Call hsa_output_brig.
22833 * hsa-regalloc.c: New file.
22835 2016-01-18 Jeff Law <law@redhat.com>
22837 PR tree-optimization/69320
22838 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
22839 ranged object, do nothing if the RHS constant is not [0..1].
22840 (optimize_stmt): Comparing a boolean ranged object against a
22841 constant outside [0..1] results in a compile-time constant.
22843 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
22846 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
22848 * doc/invoke.texi (Invoking GCC): Add new section to menu.
22849 (Option Summary): Update to reflect new section and moved options.
22850 (C++ Dialect Options): Move -fstats to new section.
22851 (Debugging Options): Move all dump, statistics, and other GCC
22852 developer options to new section. Rewrite section introduction
22853 and re-order remaining options to put the more basic ones first.
22854 (Optimization Options): Move -fira-verbose and -flto-report* to
22856 (Developer Options): New section incorporating moved options.
22857 * doc/cppopts.texi (-dM): Update cross-reference.
22859 2016-01-18 Richard Henderson <rth@redhat.com>
22862 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
22863 operands to pseudo only if CSE is expected. Split long immediate
22864 operands only after reload, and for the stack pointer.
22865 (*add<GPI>3_pluslong): Remove.
22866 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
22867 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
22868 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
22869 (*add<GPI>3 peepholes): New.
22870 (*add<GPI>3 splitters): New.
22871 * config/aarch64/constraints.md (Upl): New.
22872 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
22874 2016-01-18 Richard Biener <rguenther@suse.de>
22876 PR tree-optimization/69297
22877 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
22879 (vect_bb_vectorization_profitable_p): Clear visited flag again.
22881 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
22883 PR middle-end/68542
22884 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
22885 of mixind vector and scalar types.
22886 (fold_relational_const): Add handling of vector
22887 comparison with boolean result.
22888 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
22889 comparison of vector operands with boolean result for EQ/NE only.
22890 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
22891 (verify_gimple_cond): Likewise.
22892 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
22895 2016-01-18 Joseph Myers <joseph@codesourcery.com>
22897 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
22900 2016-01-18 Richard Biener <rguenther@suse.de>
22902 PR middle-end/69308
22903 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
22905 2016-01-18 Tom de Vries <tom@codesourcery.com>
22907 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
22909 2016-01-18 Tom de Vries <tom@codesourcery.com>
22911 * omp-low.c (set_oacc_fn_attrib): Make extern.
22912 * omp-low.h (set_oacc_fn_attrib): Declare.
22913 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
22914 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
22915 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
22916 Add and handle function parameter oacc_kernels_p.
22917 (find_reduc_addr, get_omp_data_i_param): New function.
22918 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
22919 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
22920 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
22921 Calculate dominance info. Skip loops that are not in a kernels region
22922 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
22923 (pass_parallelize_loops::execute): Call parallelize_loops with
22924 oacc_kernels_p argument.
22925 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
22926 New member function.
22927 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
22928 * passes.def: Add argument to pass_parallelize_loops instantation.
22930 2016-01-18 Tom de Vries <tom@codesourcery.com>
22932 * tree-parloops.c (pass_parallelize_loops::execute): Allow
22933 pass_parallelize_loops to be run outside the loop pipeline.
22935 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
22937 * tree-scalar-evolution.c (follow_copies_to_constant): New.
22938 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
22940 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
22943 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
22944 using get_ref_base_and_extent.
22945 (equal_mem_array_ref_p): New.
22946 (hashable_expr_equal_p): Add call to previous.
22948 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
22951 * tree-sra.c (disqualified_constants, constant_decl_p): New.
22952 (sra_initialize): Allocate disqualified_constants.
22953 (sra_deinitialize): Free disqualified_constants.
22954 (disqualify_candidate): Update disqualified_constants when appropriate.
22955 (create_access): Scan for constant-pool entries as we go along.
22956 (scalarizable_type_p): Add check against type_contains_placeholder_p.
22957 (maybe_add_sra_candidate): Allow constant-pool entries.
22958 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
22959 (initialize_constant_pool_replacements): New.
22960 (sra_modify_assign): Avoid mangling assignments created by previous,
22961 and don't generate writes into constant pool.
22962 (sra_modify_function_body): Call initialize_constant_pool_replacements.
22964 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
22966 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
22967 andnot instruction.
22968 (scalar_chain::convert_op): Likewise.
22969 * config/i386/i386.md (*andndi3_doubleword): New.
22971 2016-01-18 Richard Biener <rguenther@suse.de>
22973 PR tree-optimization/69170
22974 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
22975 building a vector from scalar results of a pattern stmt.
22977 2016-01-18 Jakub Jelinek <jakub@redhat.com>
22979 * haifa-sched.c (autopref_multipass_init): Work around
22980 -Wmaybe-uninitialized warning.
22982 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
22984 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
22985 against the constant 0.
22987 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22989 PR tree-optimization/68799
22990 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
22991 look up phi candidates in the statement-candidate map.
22992 (phi_add_costs): Likewise.
22993 (record_phi_increments): Likewise.
22994 (phi_incr_cost): Likewise.
22995 (ncd_with_phi): Likewise.
22996 (all_phi_incrs_profitable): Likewise.
22998 2016-01-17 Jakub Jelinek <jakub@redhat.com>
23000 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23001 -Wmaybe-uninitialized warning.
23003 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
23005 * doc/invoke.texi (Invoking GCC): Add new section to menu.
23006 (Option Summary): Update to reflect new section and moved options.
23007 (C++ Dialect Options): Move -fvtable-verify and related options.
23008 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23009 and profiling-related options.
23010 (Optimization Options): Move profile generation options and
23011 -fstack-protector and related options.
23012 (Instrumentation Options): New section incorporating moved options.
23013 (Code Generation Options): Move -finstrument-functions and
23014 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23016 2016-01-16 Tom de Vries <tom@codesourcery.com>
23018 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23020 2016-01-16 Tom de Vries <tom@codesourcery.com>
23022 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
23024 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
23026 * hash-table.h (hash_table::empty): Turn into an inline wrapper
23027 that checks whether the table is already empty. Rename the
23028 original implementation to...
23029 (hash_table::empty_slot): ...this new private function.
23031 2016-01-15 David Malcolm <dmalcolm@redhat.com>
23033 PR diagnostic/68899
23034 * diagnostic-show-locus.c (layout::print_source_line): Move x
23035 offset of line until after call to
23036 get_line_width_without_trailing_whitespace.
23038 2016-01-15 Jeff Law <law@redhat.com>
23040 PR tree-optimization/69270
23041 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23042 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
23043 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23044 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23045 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23046 ssa_name_has_boolean_range and constant_boolean_node.
23048 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
23050 PR rtl-optimization/69030
23051 * lra-spills.c (remove_pseudos): Check nrefs and make the function
23053 (spill_pseudos): Delete debug insn for dead pseudo.
23054 (lra_spill): Initiate spill_hard_reg and slots memory separately.
23056 2016-01-15 Jiong Wang <jiong.wang@arm.com>
23058 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23060 (TYPES_UNOPUS): Likewise.
23061 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23062 builtin type, from UNOP to UNOPUS.
23063 (lbtruncuv4sf): Likewise.
23064 (lbtruncuv2df): Likewise.
23065 (lrounduv2sf): Likewise.
23066 (lrounduv4sf): Likewise.
23067 (lrounduv2df): Likewise.
23068 (lroundusf): Likewise.
23069 (lroundusf): Likewise.
23070 (lceiluv2sf): Likewise.
23071 (lceiluv4sf): Likewise.
23072 (lceiluv2df): Likewise.
23073 (lceilusf): Likewise.
23074 (lceiludf): Likewise.
23075 (lflooruv2sf): Likewise.
23076 (lflooruv4sf): Likewise.
23077 (lflooruv2df): Likewise.
23078 (lfloorusf): Likewise.
23079 (lfloorudf): Likewise.
23080 (lfrintnuv2sf): Likewise.
23081 (lfrintnuv4sf): Likewise.
23082 (lfrintnuv2df): Likewise.
23083 (lfrintnusf): Likewise.
23084 (lfrintnudf): Likewise.
23085 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23087 (vcvtq_u32_f32): Likewise.
23088 (vcvtq_u64_f64): Likewise.
23089 (vcvta_u32_f32): Likewise.
23090 (vcvtaq_u32_f32): Likewise.
23091 (vcvtaq_u64_f64): Likewise.
23092 (vcvtm_u32_f32): Likewise.
23093 (vcvtmq_u32_f32): Likewise.
23094 (vcvtmq_u64_f64): Likewise.
23095 (vcvtn_u32_f32): Likwise.
23096 (vcvtnq_u32_f32): Likewise.
23097 (vcvtnq_u64_f64): Likewise.
23098 (vcvtp_u32_f32): Likewise.
23099 (vcvtpq_u32_f32): Likewise.
23100 (vcvtpq_u64_f64): Likewise.
23101 (vcvtmd_u64_f64): Likewise.
23102 (vcvtms_u32_f32): Likewise.
23103 (vcvtad_u64_f64): Likewise.
23104 (vcvtas_u32_f32): Likewise.
23105 (vcvtnd_u64_f64): Likewise.
23106 (vcvtns_u32_f32): Likewise.
23107 (vcvtpd_u64_f64): Likewise.
23108 (vcvtps_u32_f32): Likewise.
23110 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23112 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
23113 CSEL of zero_extended registers.
23115 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23117 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23118 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
23120 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23122 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
23123 false when argument string is not found in the attributes table
23126 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
23129 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
23130 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
23131 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
23132 precision estimate.
23134 2016-01-15 Richard Biener <rguenther@suse.de>
23136 PR tree-optimization/66856
23137 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
23138 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
23139 (vect_create_new_slp_node): Increment stmt reference count.
23140 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
23141 an SLP tree before swapping operands.
23142 (vect_build_slp_tree): Likewise.
23143 (destroy_bb_vec_info): Free stmt info after SLP instances.
23144 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
23145 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
23146 (STMT_VINFO_NUM_SLP_USES): New macro.
23148 2016-01-15 Richard Biener <rguenther@suse.de>
23151 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
23152 (add_linkage_name): ... here.
23153 (gen_typedef_die): Use add_linkage_name_raw instead of
23154 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
23157 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
23159 * gimplify.c (oacc_default_clause): Decode reference and pointer
23160 types for both kernels and parallel regions.
23162 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
23164 PR middle-end/69246
23165 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
23167 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23169 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
23170 (convert_scalars_to_vector): Likewise.
23172 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
23174 * doc/extend.texi (Type Traits): Fix grammar.
23176 2016-01-15 Martin Jambor <mjambor@suse.cz>
23178 * tree-inline.c (remap_decl): Use existing dclarations if
23179 remapping a type and prevent_decl_creation_for_types.
23180 (replace_locals_stmt): Do an initial remapping of non-VLA typed
23181 decls first. Do real remapping with
23182 prevent_decl_creation_for_types set.
23183 * tree-inline.h (copy_body_data): New field
23184 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
23187 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
23189 * config/s390/s390.opt (mmvcle): More verbose help text.
23191 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
23193 * config/s390/s390.opt: Add period to -mzvector option text.
23195 2016-01-15 Richard Biener <rguenther@suse.de>
23197 PR tree-optimization/68961
23198 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
23199 of invariants in stores again.
23201 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
23203 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
23205 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
23207 * config/i386/i386.c (ix86_expand_branch): Don't split
23208 DI mode xor instruction to SI mode.
23210 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
23213 * ipa-icf.c (sem_function::merge): Virtual functions may become
23214 reachable even if they address is not taken and there are no
23217 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
23219 * lto-streamer-out.c (subtract_estimated_size): New function.
23220 (get_symbol_initial_value): Use it.
23222 2016-01-15 Christian Bruel <christian.bruel@st.com>
23225 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
23226 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
23227 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
23228 use add_builtin_function_ext_scope instead of add_builtin_function.
23229 (neon_set_p, neon_crypto_set_p): Remove.
23230 (arm_init_builtins): Always call arm_init_neon_builtins and
23231 arm_init_crypto_builtins.
23232 (arm_expand_builtin): Check that builtins are allowed for the arch.
23233 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
23234 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
23235 arm_init_neon_builtins call.
23237 2016-01-15 Richard Biener <rguenther@suse.de>
23239 PR tree-optimization/69117
23240 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
23241 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
23242 of the leader conservatively.
23243 (free_scc_vn): Restore original SSA name infos.
23245 2016-01-14 Jeff Law <law@redhat.com>
23247 PR tree-optimization/69270
23248 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
23249 single bit of precision, verify it's also unsigned.
23250 (record_edge_info): Use constant_boolean_node rather than fold_convert
23251 to convert boolean_true/boolean_false to the right type.
23253 2016-01-14 Richard Henderson <rth@redhat.com>
23256 * loop-doloop.c (record_reg_sets): New.
23257 (doloop_optimize): Reject the transform if the sequence
23258 clobbers registers live at the end of the loop block.
23259 (doloop_optimize_loops): Enable df_live if needed.
23261 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23263 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
23264 * config/rs6000/rs6000.c: Likewise.
23265 * config/rs6000/rs6000.h: Likewise.
23266 * config/rs6000/rs6000.md: Likewise.
23267 * doc/extend.texi: Likewsie.
23269 2016-01-14 Jeff Law <law@redhat.com>
23271 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
23274 2016-01-14 Richard Henderson <rth@redhat.com>
23278 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
23279 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
23280 instead of builtin_decl_declared_p to test for declaration.
23282 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
23284 * doc/loop.texi (Loop Analysis and Representation): Document
23285 loop_depth function.
23287 2016-01-14 Tom de Vries <tom@codesourcery.com>
23289 PR tree-optimization/68773
23290 * omp-low.c (expand_omp_target): Don't set force_output.
23291 * varpool.c (varpool_node::get_create): Same.
23292 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
23293 offload_funcs with force_output.
23295 2016-01-14 Jakub Jelinek <jakub@redhat.com>
23298 * lra-eliminations.c (move_plus_up): Don't change anything if either
23299 the outer or inner subreg mode is not MODE_INT.
23300 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
23301 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
23303 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
23305 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
23306 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
23307 reduc_uplus_@var{m}): Remove.
23308 * expr.c (expand_expr_real_2): Remove expansion path for
23309 reduc_[us](min|max|plus) optabs.
23310 * optabs-tree.c (scalar_reduc_to_vector): Remove.
23311 * optabs-tree.h (scalar_reduc_to_vector): Remove.
23312 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
23313 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
23314 * tree-vect-loop.c (vectorizable_reduction): Remove test for
23315 reduc_[us](min|max|plus) optabs.
23317 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
23319 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
23320 (reduc_plus_scal_v2sf): New.
23321 (reduc_smax_v2sf): Rename to...
23322 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
23323 (reduc_smin_v2sf): Rename to...
23324 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
23326 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
23328 * alias.c (compare_base_symbol_refs): New function.
23329 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
23332 2016-01-14 Jakub Jelinek <jakub@redhat.com>
23334 PR middle-end/68146
23335 PR tree-optimization/69155
23336 * tree-complex.c: Include cfganal.h.
23337 (phis_to_revisit): New variable.
23338 (extract_component): Add phiarg_p argument. Assert that returned
23339 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
23340 (update_phi_components): Partly rewrite to use loop over real/imag
23341 components instead of code duplication. If extract_component returns
23342 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
23343 create_tmp_reg into the PHI node instead, and mention the phi triplet
23344 in phis_to_revisit.
23345 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
23346 in phis_to_revisit at the end.
23348 2016-01-14 Richard Biener <rguenther@suse.de>
23350 PR tree-optimization/68060
23351 * tree-vect-loop.c (vect_is_simple_reduction): Check the
23352 outer loop reduction is only used in the inner loop before
23353 detecting a double reduction.
23355 2016-01-14 Jakub Jelinek <jakub@redhat.com>
23358 * combine.c (expand_field_assignment): Punt if compute_mode is
23359 unsupported scalar mode.
23361 2016-01-14 Richard Biener <rguenther@suse.de>
23363 PR tree-optimization/66856
23364 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
23365 SLP node only if it built successfully.
23366 (vect_analyze_slp_instance): Adjust.
23368 2016-01-14 Jeff Law <law@redhat.com>
23370 PR tree-optimization/69270
23371 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
23372 (record_edge_info): Use it. Convert boolean_{true,false}_node
23373 to the type of op0.
23375 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
23378 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
23379 use block_ultimate_origin
23380 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
23382 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
23384 * doc/invoke.texi (Submodel Options): Rename section to
23385 "Machine-Dependent Options" to better reflect its content.
23386 Rewrite introductory text to remove archaic CPU names.
23389 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
23391 * doc/invoke.texi (Code Gen Options): Move section up in file,
23392 before target-specific options. Update menu and option summary
23393 to reflect the new section ordering.
23395 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
23397 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
23398 (C++ Dialect Options): Add cross-reference to -std option.
23399 * doc/standards.texi (C++ Language): Document C++14 support.
23401 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
23403 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
23404 for pack/unpack functions for __ibm128.
23405 (PACK_IF): Likewise.
23406 (UNPACK_IF): Likewise.
23408 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23409 support for __ibm128 pack/unpack functions.
23410 (rs6000_invalid_builtin): Likewise.
23411 (rs6000_init_builtins): Likewise.
23412 (rs6000_opt_masks): Likewise.
23414 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
23415 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
23417 (RS6000_BTM_COMMON): Likewise.
23419 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
23420 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
23421 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
23422 128-bit floating point. Add support for the double values to be
23423 in Altivec registers for TF/IF packing and unpacking, but restrict
23424 TD packing sub-fields to be FPR registers. Don't allow overlapped
23425 register support for packing. Allow pack inputs to be memory
23426 locations. Don't build generator functions for unpack<mode>_dm
23427 and unpack<mode>_nodm.
23428 (unpack<mode>_dm): Likewise.
23429 (unpack<mode>_nodm): Likewise.
23430 (pack<mode>): Likewise.
23432 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
23433 built-in functions to pack/unpack explicit __ibm128 values.
23434 (__builtin_unpack_ibm128): Likewise.
23436 * doc/extend.texi (PowerPC Built-in Functions): Document
23437 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
23439 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
23442 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
23443 Add new arg loc and pass it down as context.
23444 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
23445 to the location to use for the warning.
23446 (check_function_arguments): New arg loc. All callers changed. Pass
23447 it to check_function_nonnull.
23448 * c-common.h (check_function_arguments): Adjust declaration.
23450 2016-01-13 Jakub Jelinek <jakub@redhat.com>
23452 PR tree-optimization/69156
23453 * gimple.c (validate_type): Removed.
23454 (gimple_builtin_call_types_compatible_p): Use
23455 useless_type_conversion_p instead of validate_type.
23456 * value-prof.c (gimple_stringop_fixed_value): Fold
23457 icall_size to correct type.
23459 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
23461 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
23464 2016-01-13 Richard Henderson <rth@redhat.com>
23467 * target.def (builtin_tm_load, builtin_tm_store): Remove.
23468 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
23469 (ix86_builtin_tm_store): Remove.
23470 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23471 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23472 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23473 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23474 * doc/tm.texi: Rebuild.
23476 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
23477 (BUILT_IN_TM_MEMCPY_RTWN): New.
23478 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
23479 fallback from vector to integer helpers.
23480 (build_tm_load): Handle vector types directly, instead of
23482 (build_tm_store): Likewise.
23483 (expand_assign_tm): Prepare for register types not handled by
23484 the above. Copy them to memory and use memcpy.
23485 * tree.c (tm_define_builtin): New.
23486 (find_tm_vector_type): New.
23487 (build_tm_vector_builtins): New.
23488 (build_common_builtin_nodes): Call it.
23490 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
23492 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
23493 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
23495 2016-01-13 Tom de Vries <tom@codesourcery.com>
23497 PR tree-optimization/69169
23498 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
23499 handled_struct_type param.
23500 (create_variable_info_for, intra_create_variable_infos): Call
23501 create_variable_info_for_1 with extra arg.
23503 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
23505 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
23506 and "armv8.1-a+crc" entries.
23508 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
23511 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
23512 Change first operand predicate from register_or_constm1_operand
23513 to register_operand.
23514 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
23515 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
23516 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
23517 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
23518 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
23519 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
23520 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
23521 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
23522 comparison with constm1_rtx from vec_prefetch_gen part.
23524 2016-01-13 Richard Biener <rguenther@suse.de>
23526 PR tree-optimization/69013
23527 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
23528 Exchange assert for a test.
23530 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23533 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
23535 2016-01-13 Richard Biener <rguenther@suse.de>
23537 PR tree-optimization/69242
23538 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
23539 assert with a check.
23541 2016-01-13 Richard Biener <rguenther@suse.de>
23543 PR tree-optimization/69186
23544 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23545 Properly guard vect_update_misalignment_for_peel call.
23547 2016-01-12 Jeff Law <law@redhat.com>
23549 PR tree-optimization/pr67755
23550 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
23551 "need_profile_correction".
23552 (thread_block_1): Initialize new field to false by default. If we
23553 have multiple thread paths through a common joiner to different
23554 final targets, then set new field to true.
23555 (compute_path_counts): Only do count adjustment when it's really
23558 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
23560 * doc/invoke.texi (Spec Files): Move section down in file, past
23561 all command-line option descriptions.
23563 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23565 PR middle-end/54809
23566 * doc/gty.texi: Remove documentation of mark_hook.
23567 * gengtype.c (struct write_types_data): Remove code to support
23568 mark_hook attribute.
23569 (walk_type): Likewise.
23570 (write_func_for_structure): Likewise.
23572 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
23574 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
23575 Directory Options, and -specs= to Overall Options.
23576 (Overall Options): Adjust similarly. Reorder to group related
23577 options together. Make -specs= cross-reference the spec file details.
23578 (Directory Options): Adjust similarly.
23580 2016-01-12 Jeff Law <law@redhat.com>
23582 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
23584 2016-01-12 Olivier Hainque <hainque@adacore.com>
23586 * gcc.c (spec_undefvar_allowed): New global.
23587 (process_command): Set to true when running for --version or --help,
23589 (getenv_spec_function): When the variable is not defined, use the
23590 variable name as the variable value if we're allowed not to issue
23593 2016-01-12 Bin Cheng <bin.cheng@arm.com>
23595 PR tree-optimization/68911
23596 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
23597 information computed for expression "init + nit * step".
23599 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
23601 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
23602 about name of GCC executable. Remove deleted node from menu.
23603 (Directory Options) <-B>: Remove cross-reference to deleted node.
23604 (Target Options): Delete section.
23606 2016-01-12 Christian Bruel <christian.bruel@st.com>
23609 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
23610 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
23612 2016-01-12 Jakub Jelinek <jakub@redhat.com>
23615 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
23616 aligned_mem is properly set for AVX512-VL floating point masked
23620 * ifcvt.c (cond_exec_process_if_block): When removing the last
23621 insn from then_bb, remove also any possible barriers that follow it.
23623 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
23627 * config/i386/iamcu.h (SIZE_TYPE): New macro.
23628 (PTRDIFF_TYPE): Likewise.
23629 (WCHAR_TYPE): Likewise.
23630 (WCHAR_TYPE_SIZE): Likewise.
23631 (STDINT_LONG32): Likewise.
23633 2016-01-12 Richard Biener <rguenther@suse.de>
23635 PR tree-optimization/69053
23636 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
23637 convert initial value for cond reductions.
23639 2016-01-12 Richard Biener <rguenther@suse.de>
23641 PR tree-optimization/69007
23642 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
23643 widen_sum after dot_prod and sad.
23645 2016-01-12 Richard Biener <rguenther@suse.de>
23647 PR tree-optimization/69168
23648 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
23649 pattern stmt SLP type.
23650 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
23651 end up unused so cope with that case.
23653 2016-01-12 Richard Biener <rguenther@suse.de>
23655 PR tree-optimization/69157
23656 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
23657 stmts def type only during analyze phase.
23658 (vectorizable_call): Likewise.
23659 (vectorizable_simd_clone_call): Likewise.
23660 (vectorizable_conversion): Likewise.
23661 (vectorizable_assignment): Likewise.
23662 (vectorizable_shift): Likewise.
23663 (vectorizable_operation): Likewise.
23664 (vectorizable_store): Likewise.
23665 (vectorizable_load): Likewise.
23667 2016-01-12 Richard Biener <rguenther@suse.de>
23669 PR tree-optimization/69174
23670 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
23672 (vectorizable_load): Properly compute the number of loads needed
23673 for permuted strided SLP loads and do not spuriously assign
23674 to SLP_TREE_VEC_STMTS.
23676 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
23678 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
23679 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
23680 (MD_EXEC_PREFIX): Remove.
23681 (MD_STARTFILE_PREFIX) Removee.
23682 (FILE_NAME_ABSOLUTE_P): Remove.
23683 (CPP_SPEC): Do not read macros from sys/version.h.
23684 (LINK_COMMAND_SPEC): Remove.
23685 (LOCAL_INCLUDE_DIR): Remove.
23686 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
23687 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
23688 (POST_LINK_SPEC): Define to invoke stubify after linker
23689 (LIBSTDCXX): Remove define
23690 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
23691 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
23692 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
23693 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
23694 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
23695 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
23696 (i386_djgpp_asm_named_section): Add propotype of new procedure
23698 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
23699 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
23700 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
23701 in config/i386/djgpp.h).
23702 (STANDARD_STARTFILE_PREFIX_2): Define identical to
23703 STANDARD_STARTFILE_PREFIX_1.
23704 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
23705 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
23706 installation errors.
23707 (MAX_OFILE_ALIGNMENT): Define to 128.
23708 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
23710 * config/i386/djgpp.c: New file. Add implementation of
23711 i386_djgpp_asm_named_section.
23713 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
23715 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
23716 Add rule for building djgpp.o.
23718 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23720 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
23721 (rtx_is_swappable_p): Reductions are swappable.
23722 (insn_is_swappable_p): V2DF reductions are swappable.
23724 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
23726 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
23727 reloads for other unsupported memory operands.
23729 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23730 Jim Wilson <jim.wilson@linaro.org>
23733 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
23734 copy_to_mode_reg instead of force_reg.
23736 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
23739 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
23740 TARGET_80387 is true.
23742 2016-01-11 Jakub Jelinek <jakub@redhat.com>
23745 * lra-eliminations.c (move_plus_up): Only move plus up
23746 if subreg of the constant can be simplified into constant
23747 and use the simplified subreg of the constant instead of
23748 the original constant.
23750 * fold-const.c (fold_convertible_p): Don't return true
23751 for conversion of VECTOR_TYPE to same sized integral type.
23752 (fold_convert_loc): Fix up formatting. Fold conversion of
23753 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
23754 instead of NOP_EXPR.
23756 PR tree-optimization/69214
23757 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
23758 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
23761 PR tree-optimization/69207
23762 * tree-vect-slp.c (vect_get_constant_vectors): For
23763 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
23764 fold_convertible_p to vector_type's element type, and always
23765 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
23767 2016-01-11 Richard Biener <rguenther@suse.de>
23769 PR tree-optimization/69173
23770 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
23771 fixup the cycle if all stmts are in a pattern.
23773 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
23775 PR middle-end/68999
23776 * alias.c (base_alias_check): Move check for addresses with
23777 alignment ANDs before the call for compare_base_decls.
23778 (memrefs_conflict_p): Return -1 for different decls
23779 that went through alignment adjustments.
23781 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23783 PR rtl-optimization/68796
23784 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
23785 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
23786 and QImode comparisons against zero with CC_NZmode.
23787 * config/aarch64/iterators.md (short_mask): New mode_attr.
23789 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
23791 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
23792 (<avx512>_store<mode>_mask): Likewise.
23794 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
23795 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23797 PR rtl-optimization/68841
23798 * ifcvt.c (struct noce_if_info): Add orig_x field.
23799 (bbs_ok_for_cmove_arith): Add to_rename parameter.
23800 Don't record conflicts on to_rename if it's present.
23801 Allow memory destinations in sets.
23802 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
23803 blocks, passing orig_x to the checks.
23804 (noce_process_if_block): Set if_info->orig_x appropriately.
23806 2016-01-11 Tom de Vries <tom@codesourcery.com>
23808 PR tree-optimization/69069
23809 * tree-parloops.c (create_parallel_loop): Add missing phi args.
23811 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
23813 PR rtl-optimization/68920
23814 * config/i386/i386.c (ix86_option_override_internal): Restrict number
23815 of conditional moves for RTL if-conversion to 1 for
23816 TARGET_ONE_IF_CONV_INSN.
23817 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
23818 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
23819 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
23820 parameter to restirct number of conditional moves for
23822 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
23823 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
23826 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
23829 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
23830 onepart vars. Fix typo in comment. Fix reversed condition in
23832 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
23835 * var-tracking.c (dump_onepart_variable_differences): New.
23836 (dataflow_set_different): If a detailed dump is requested,
23837 delay early returns and dump differences between onepart
23838 variables present before and after, and added variables.
23840 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
23843 * expr.c (expand_expr_real_1): For boolean vector constants
23844 with a scalar mode use const_scalar_mask_from_tree.
23845 (const_scalar_mask_from_tree): New.
23846 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
23847 assigned to a mask type to handle constants.
23849 2016-01-11 Martin Jambor <mjambor@suse.cz>
23852 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
23853 useless parameters if we cannot change function signature.
23855 2016-01-11 Martin Jambor <mjambor@suse.cz>
23858 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
23861 2016-01-11 Tom de Vries <tom@codesourcery.com>
23863 PR tree-optimization/69109
23864 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
23867 2016-01-11 Tom de Vries <tom@codesourcery.com>
23869 PR tree-optimization/69108
23870 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
23871 res is not used in a phi.
23873 2016-01-11 Yury Gribov <y.gribov@samsung.com>
23876 * common.opt (frandom-seed): Fix parameter name.
23877 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
23879 2016-01-11 Tom de Vries <tom@codesourcery.com>
23881 PR tree-optimization/69058
23882 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
23885 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
23887 * config/arc/arc.opt (mdiv-rem): Add period to the end.
23888 (mcode-density): Likewise.
23890 2016-01-10 Tom de Vries <tom@codesourcery.com>
23892 PR tree-optimization/69062
23893 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
23894 (parallelize_loops): Don't paralelize loop that has phi with address
23897 2016-01-10 Tom de Vries <tom@codesourcery.com>
23899 PR tree-optimization/69039
23900 * tree-parloops.c (try_create_reduction_list): Only allow single exit
23903 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
23905 PR middle-end/68743
23906 * match.pd: Require target has function_c99_misc before doing
23907 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
23909 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
23911 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
23913 * configure: Regenerate.
23915 2016-01-09 Jakub Jelinek <jakub@redhat.com>
23917 PR middle-end/50865
23918 PR tree-optimization/69097
23919 * fold-const.h (expr_not_equal_to): New prototype.
23920 * fold-const.c: Include stringpool.h and tree-ssanames.h.
23921 (expr_not_equal_to): New function.
23922 * match.pd (X % -Y is the same as X % Y): Don't optimize
23923 unless X is known not to be equal to minimum or Y is known
23924 not to be equal to -1.
23925 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
23926 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
23927 (simplify_stmt_using_ranges): Adjust caller.
23928 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
23929 substitute_and_fold.
23931 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
23933 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
23936 2016-01-08 Jakub Jelinek <jakub@redhat.com>
23938 PR tree-optimization/69167
23939 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
23940 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
23942 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
23944 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
23945 Richard Biener <rguenther@suse.de>
23947 PR tree-optimization/68707
23948 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
23949 instances that can be handled via vect_load_lanes.
23951 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
23953 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
23954 if we can't determine address equivalence.
23955 * alias.c (compare_base_decl): Update for changed return value of
23956 symtab_node::equal_address_to.
23958 2016-01-08 Jason Merrill <jason@redhat.com>
23962 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
23963 * expr.c (store_field): Not here.
23964 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
23965 call with TREE_ADDRESSABLE type.
23966 * tree-cfg.c (verify_gimple_call): Adjust.
23968 2016-01-08 Olivier Hainque <hainque@adacore.com>
23970 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
23973 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
23975 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
23976 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
23977 (reduc_smin_v2sf): Rename to...
23978 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
23979 (reduc_splus_v2sf): Rename to...
23980 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
23982 2016-01-08 Jakub Jelinek <jakub@redhat.com>
23984 PR tree-optimization/69162
23985 * gimplify.c (gimplify_va_arg_expr): Encode original type of
23986 valist argument in another argument.
23987 (gimplify_modify_expr): Adjust for the above change. Cleanup.
23988 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
23989 to determine the va_list type, build a MEM_REF instead of
23990 build_fold_indirect_ref.
23992 PR tree-optimization/69172
23993 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
23996 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
23998 PR tree-optimization/67781
23999 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24000 and cmpnop in two steps: first the ones not accessed in original
24001 gimple expression in a endian independent way and then the ones not
24002 accessed in the final result in an endian-specific way.
24004 2016-01-08 Jakub Jelinek <jakub@redhat.com>
24006 PR tree-optimization/69083
24007 * tree-vect-slp.c (vect_get_constant_vectors): For
24008 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24009 element type. If op is fold_convertible_p to vector_type's element
24010 type, use NOP_EXPR instead of VCE.
24012 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
24014 PR rtl-optimization/67778
24015 PR rtl-optimization/68634
24016 PR rtl-optimization/68909
24017 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
24018 block from the stack until done with it. Remove a superfluous
24019 bitmap set. Remove a superfluous bitmap test.
24021 2016-01-07 Martin Sebor <msebor@redhat.com>
24024 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24025 constraint on the type of arguments.
24027 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
24029 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24030 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24031 unaligned_access on the gcc_options set.
24032 * config/arm/arm.c (arm_option_override_internal): Use
24033 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24035 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
24038 * config/i386/i386.c (ix86_frame_pointer_required): Enable
24039 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24041 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
24044 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
24047 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24048 depending on frame_pointer_needed before remaining integer and SSE
24049 registers are saved.
24051 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
24054 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24056 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
24059 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24060 Use the "xBm" constraint.
24061 (float<sseintvecmodelower><mode>2<mask_name><round_name):
24063 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24064 (sse_cvtsi2ssq<round_name>): Likewise.
24065 (sse_cvtss2si<round_name>): Likewise.
24066 (sse_cvtss2siq<round_name>): Likewise.
24067 (sse2_cvtsi2sdq<round_name>): Likewise.
24068 (sse2_cvtsd2si<round_name>): Likewise.
24069 (sse2_cvtsd2siq<round_name>): Likewise.
24070 * config/i386/subst.md (round_nimm_scalar_predicate): New
24073 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
24075 PR middle-end/67639
24076 * varasm.c (make_decl_rtl): Mark invalid register vars as
24079 PR rtl-optimization/66206
24080 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24081 All callers changed.
24083 2016-01-07 Jakub Jelinek <jakub@redhat.com>
24085 PR tree-optimization/69141
24086 * tree-ssa-pre.c: Include langhooks.h.
24087 (eliminate_dom_walker::before_dom_children): Use
24088 lang_hooks.decl_printable_name instead of
24089 cgraph_node::get ()->name ().
24091 PR middle-end/68960
24092 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24093 it and DECL_ALIGN too.
24095 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
24097 * config/mips/mips-ftypes.def: Sort to lexicographical order.
24099 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
24102 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24103 depending on frame_pointer_needed before remaining integer and SSE
24104 registers are saved.
24106 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24108 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
24109 mode iterator with VSX_M2.
24110 (*p9_vecstore_<mode>): Likewise.
24111 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
24112 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
24113 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
24114 (define_split for VSX_LE128 stores): Likewise.
24115 (define_peephole2 for TImode LE swaps): Likewise.
24116 (define_split for VSX_LE128 post-reload stores): Likewise.
24118 2016-01-06 Marek Polacek <polacek@redhat.com>
24121 * convert.c (convert_to_integer_1): Adjust call to
24122 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
24123 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
24124 EXPR instead of ARG.
24125 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
24127 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
24130 * doc/extend.texi (RL78 Variable Attributes): New section.
24132 2016-01-05 Marek Polacek <polacek@redhat.com>
24135 * builtins.c (get_memmodel): Use expansion point location rather than
24136 the input location. Call warning_at rather than warning.
24137 (expand_builtin_atomic_compare_exchange): Likewise.
24138 (expand_builtin_atomic_load): Likewise.
24139 (expand_builtin_atomic_store): Likewise.
24140 (expand_builtin_atomic_clear): Likewise.
24142 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
24145 * config/i386/i386.c (ix86_expand_vector_logical_operator):
24146 Replace nonimmediate_operand with vector_operand.
24147 * config/i386/predicates.md (vector_operand): New predicate.
24148 (general_vector_operand): Replace nonimmediate_operand with
24150 * config/i386/sse.md: Replace nonimmediate_operand with
24151 vector_operand and m constraint with Bm constraint on SSE
24152 patterns with 16-byte memory operand.
24153 * config/i386/subst.md (round_nimm_predicate): Replace
24154 nonimmediate_operand with vector_operand.
24155 (round_saeonly_nimm_predicate): Likewise.
24156 (round_saeonly_nimm_scalar_predicate): New.
24158 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
24161 * config/i386/constraints.md (Bm): New constraint.
24162 * config/i386/predicates.md (vector_memory_operand): New
24164 * config/i386/sse.md: Replace xm with xBm in plusminus and
24165 any_logic patterns.
24167 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
24170 * doc/extend.texi (V850 Function Attributes): New section.
24171 (V850 Variable Attributes): New section.
24173 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
24176 * doc/extend.texi (MicroBlaze Function Attributes): Document
24177 interrupt_handler and fast_interrupt attributes.
24179 2016-01-05 Sergei Trofimovich <siarheit@google.com>
24182 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
24183 for local symbolic operands.
24184 * config/ia64/predicates.md (local_symbolic_operand64): New
24187 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24189 PR rtl-optimization/68651
24190 * combine.c (combine_simplify_rtx): Canonicalize x + x into
24193 2016-01-05 Nathan Sidwell <nathan@acm.org>
24195 * alias.c (compare_base_decls): Use symtab_node::get.
24197 2016-01-05 Nick Clifton <nickc@redhat.com>
24200 * ira-costs.c (copy_cost): Initialise the t_icode field of the
24201 secondary_reload_info structure.
24204 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
24205 decls if weak support is available.
24207 2016-01-04 Martin Sebor <msebor@redhat.com>
24209 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
24211 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
24213 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
24214 OPTION_MASK_P9_DFORM.
24216 * config/rs6000/constraints.md (wo constraint): New constraint for
24219 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
24221 (rs6000_init_hard_regno_mode_ok): Likewise.
24223 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
24226 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
24227 expanders not to have constraints. Add support for ISA 3.0 xxperm
24228 instruction. Add support for fusing xxlor with xxperm.
24229 (altivec_vperm_<mode>_internal): Likewise.
24230 (altivec_vperm_v8hiv16qi): Likewise.
24231 (altivec_vperm_<mode>v16q): Likewise.
24232 (altivec_vperm_<mode>_uns): Likewise.
24233 (vperm_v8hiv4si): Likewise.
24234 (vperm_v16qiv8hi): Likewise.
24236 * doc/md.texi (RS/6000 constraints): Document wo constraint.
24238 2016-01-04 Jakub Jelinek <jakub@redhat.com>
24240 Update copyright years.
24242 * gcc.c (process_command): Update copyright notice dates.
24243 * gcov-dump.c (print_version): Ditto.
24244 * gcov.c (print_version): Ditto.
24245 * gcov-tool.c (print_version): Ditto.
24246 * gengtype.c (create_file): Ditto.
24247 * doc/cpp.texi: Bump @copying's copyright year.
24248 * doc/cppinternals.texi: Ditto.
24249 * doc/gcc.texi: Ditto.
24250 * doc/gccint.texi: Ditto.
24251 * doc/gcov.texi: Ditto.
24252 * doc/install.texi: Ditto.
24253 * doc/invoke.texi: Ditto.
24255 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
24257 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
24258 modes larger than TImode as TImode if NEON is not enabled.
24260 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
24263 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
24264 mode for %f0-%f31 only if TARGET_FPU.
24266 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
24269 * config/sparc/sparc.c (scan_record_type): Take into account subfields
24270 to compute the PACKED_P predicate.
24271 (function_arg_record_value): Minor tweaks.
24273 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24275 * doc/install.texi (--with-multilib-list): Describe the meaning of the
24276 option for arm*-*-* targets.
24278 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
24280 * doc/extend.texi (Common Function Attributes): Move docs for
24281 MSP430-specific attributes to....
24282 (MSP430 Function Attributes): ...here. Delete the redundant
24283 entries and copy-edit the remaining text.
24284 (MSP430 Variable Attributes): Use uniform format for index
24285 entries and add a cross-reference to the corresponding function
24288 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
24290 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
24292 (x86 Options): Likewise.
24294 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
24298 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
24299 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
24300 to corresponding attribute.
24302 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
24304 * doc/extend.texi (Common Function Attributes) <noplt>: Move
24305 to correct alphabetization of table. Copy-edit and correct
24307 <stack_protect>: Likewise.
24308 <target_clones>: Likewise.
24310 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
24311 Correct punctuation.
24312 (Code Gen Options) <-fno-plt>: Copy-edit.
24314 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
24317 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
24318 SI values. Explicitly convert SI to DI and vice-versa.
24320 2016-01-01 Jakub Jelinek <jakub@redhat.com>
24322 PR tree-optimization/69070
24323 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
24324 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
24327 * ubsan.c (ubsan_instrument_float_cast): Call
24328 initialize_sanitizer_builtins.
24331 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
24333 Copyright (C) 2016 Free Software Foundation, Inc.
24335 Copying and distribution of this file, with or without modification,
24336 are permitted in any medium without royalty provided the copyright
24337 notice and this notice are preserved.