2016-09-30 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobd0a4199be3bf6c8f4192c3c8128765c98b19c3ff
1 2016-09-30  Richard Biener  <rguenther@suse.de>
3         PR tree-optimization/77399
4         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
5         float <-> int conversions.
7 2016-09-30  Alan Modra  <amodra@gmail.com>
9         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
11 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
13         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
14         ext_level before calling CPUID with 0x80000008.
15         Simplify xgetbv checks.
17 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
19         * Makefile.in (OBJS): Add print-rtl-function.o.
20         * print-rtl-function.c: New file.
21         * print-rtl.h (print_rtx_function): New decl.
23 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
25         PR target/77756
26         * config/i386/cpuid.h (__get_cpuid_count): New.
27         (__get_cpuid): Rename __level to __leaf.
29 2016-09-29  Marek Polacek  <polacek@redhat.com>
31         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
33 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
35         * builtins.c (expand_builtin_memcmp): don't swap args unless
36         result is only being compared with zero.
38 2016-09-29  Marek Polacek  <polacek@redhat.com>
40         * dwarf2out.c (loc_descriptor): Add fall through comment.
41         (add_const_value_attribute): Likewise.
43 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
45         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
46         with "v6t2".  Move "arch" attribute above "pool_range".
47         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
48         with "v6t2".
49         (*thumb2_movhi_vfp): Likewise.
50         (*arm_movhi_fp16): Likewise.
51         (*thumb2_movhi_fp16): Likewise.
52         (*arm_movsi_vfp): Remove "arch" attribute.
53         (*thumb2_movsi_vfp): Likewise.
55 2016-09-29  Martin Liska  <mliska@suse.cz>
57         * doc/extend.texi: Remove limitation of Objective C for
58         __attribute__((constructor)) and __attribute__((destructor)).
60 2016-09-29  Richard Biener  <rguenther@suse.de>
62         PR tree-optimization/77768
63         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
64         Handle stores to readonly memory when removing redundant stores.
66 2016-09-29  Richard Biener  <rguenther@suse.de>
68         PR middle-end/77407
69         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
70         X / -X -> -1 simplifications.
72 2016-09-29  Richard Biener  <rguenther@suse.de>
74         PR middle-end/55152
75         * match.pd: Add max(a,-a) -> abs(a) pattern.
76         * tree-ssa-phiopt.c (minmax_replacement): Disable for
77         HONOR_SIGNED_ZEROS types.
79 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
81         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
82         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
84 2016-09-29  Richard Biener  <rguenther@suse.de>
86         * tree-vrp.c (set_defs_to_varying): New helper avoiding
87         writing to vr_const_varying.
88         (vrp_initialize): Call it.
89         (vrp_visit_stmt): Likewise.
90         (evrp_dom_walker::before_dom_children): Likewise.
92 2016-09-29  Richard Biener  <rguenther@suse.de>
94         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
95         constructors with vector elements.
97 2016-09-29  Richard Biener  <rguenther@suse.de>
99         PR tree-optimization/77768
100         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
101         with stores to a place we know has a constant value.
103 2016-09-29  Alan Modra  <amodra@gmail.com>
105         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
106         * doc/invoke.texi: Document it.
107         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
108         (rs6000_passes_float): Comment.
109         (rs6000_passes_long_double): New static var.
110         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
111         (init_cumulative_args): Set up to emit fp .gnu_attribute for
112         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
113         to include fp values returned in vectors.
114         Set rs6000_passes_long_double.
115         (rs6000_function_arg_advance_1): Likewise for function args.
116         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
117         and SPE.  Emit long double tag value too.
118         (rs6000_opt_vars): Add gnu-attr.
119         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
120         * configure: Regenerate.
121         * config.in: Regenerate.
123 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
125         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
126         of 0 < x.
127         (format_floating, format_string, format_directive,
128         get_destination_size, pass_sprintf_length::handle_gimple_call):
129         Likewise.
131 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
133         * gimple-ssa-sprintf.c: Fix comment formatting.
134         (format_integer): Use is_gimple_assign.
135         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
136         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
137         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
138         (pass_sprintf_length::execute): Use is_gimple_call.
140 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
142         * gimple-fold.c (gimple_fold_builtin): After failing to fold
143         strchr, also try the generic folding.
145 2016-09-28  Martin Sebor  <msebor@redhat.com>
147         PR c/77762
148         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
149         Fix typos.
151 2016-09-28  Martin Sebor  <msebor@redhat.com>
153         PR middle-end/77683
154         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
155         length modifier is not expected.
156         (format_floating): Ignore l length modifier and fail gracefuly
157         when it isn't one of the other expected ones.
159 2016-09-28  Martin Sebor  <msebor@redhat.com>
161         PR bootstrap/77753
162         * varasm.c (assemble_addr_to_section): Increase local buffer size.
164 2016-09-27  Richard Biener  <rguenther@suse.de>
166         * dwarf2out.c (cu_die_list): New global.
167         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
168         main_comp_unit_die to cu_die_list if we created it.
169         Move break_out_includes ...
170         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
171         the cu_die_list.
173 2016-09-28  Richard Biener  <rguenther@suse.de>
175         * dwarf2out.c (struct die_struct): Add removed flag.
176         (lookup_type_die): If the DIE is marked as removed, clear
177         TYPE_SYMTAB_DIE and return NULL.
178         (lookup_decl_die): If the DIE is marked as removed, remove it
179         from the hash and return NULL.
180         (mark_removed): New helper.
181         (prune_unused_types_prune): Call it for removed DIEs.
182         (gen_subprogram_die): Move the premark_used_types call to after
183         DIEs for the functions scopes are generated.
184         (process_scope_var): Do not re-create pruned types or type decls.
185         Make sure to also re-parent type decls.
186         (dwarf2out_finish): Move unused type pruning and debug_types
187         handling ...
188         (dwarf2out_early_finish): ... here.
190 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
192         * config/arc/arc-c.c: New file.
193         * config/arc/arc-c.def: Likewise.
194         * config/arc/t-arc: Likewise.
195         * config.gcc: Include arc-c.o as c and cpp object.
196         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
197         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
198         arc_cpu_cpp_builtins.
200 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
202         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
203         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
205 2016-09-28  Nathan Sidwell  <nathan@acm.org>
207         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
208         printing.
210 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
212         PR tree-optimization/61056
213         * gimple-fold.c (gimple_fold_builtin_strchr):
214         New function to optimize strchr (s, 0) to strlen.
215         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
217 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
219         PR tree-optimization/77724
220         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
221         Add tree_fits_shwi_p check.
223 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
225         * auto-inc-dec.c (try_merge): Remove break after return.
226         * cselib.c (autoinc_split): Likewise.
227         * explow.c (promote_mode): Likewise.
228         * fixed-value.c (fixed_arithmetic): Likewise.
229         * hsa.c (hsa_internal_fn::get_arity): Likewise.
230         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
231         * trans-mem.c (get_attrs_for): Likewise.
232         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
233         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
234         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
235         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
236         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
237         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
238         * config/cris/cris.c (cris_op_str): Likewise.
239         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
240         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
242 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
244         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
245         IFN_GOACC_REDUCTION_CODES): New.
246         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
247         ifn_goacc_reduction_kind): Use them.
248         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
249         of internal functions, when applicable.
251 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
253         * config/mips/constraints.md (d): Fix documentation.
254         * doc/md.texi (Machine Constraints): Update accordingly.
256 2016-09-27  Richard Biener  <rguenther@suse.de>
258         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
259         cur_line_info_table initialization ...
260         (dwarf2out_assembly_start): ... here.
262 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
264         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
265         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
266         (*thumb2_movhi_vfp): Likewise.
267         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
268         template.  Expand predicable attribute to mark VMOV.F16 as not
269         predicable.  Add "arch" attribute.
270         (*thumb2_movhi_fp16): Likewise.
271         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
272         (*thumb2_movsi_vfp): Add "arch" attribute.
274 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
276         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
277         VAR_DECL string.
279 2016-09-27  Marek Polacek  <polacek@redhat.com>
281         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
282         comment.
284         * config/c6x/c6x.h: Adjust fall through comment.
285         * config/sh/sh.c (final_prescan_insn): Likewise.
286         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
287         (visium_expand_fp_cstore): Likewise.
289 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
291         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
292         expected by -Wimplicit-fallthrough.
293         (thumb1_size_rtx_costs): Likewise.
294         (thumb2_reorg): Likewise.
295         (tls_mentioned_p): Add "Fall through" comment.
296         (thumb2_reorg): Likewise.
297         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
298         comment form expected by -Wimplicit-fallthrough.
300 2016-09-27  Martin Liska  <mliska@suse.cz>
302         PR gcov-profile/46266
303         * input.h (RESERVED_LOCATION_P): New macro.
304         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
305         instread of comparison with UNKNOWN_LOCATION.
307 2016-09-27  Richard Biener  <rguenther@suse.de>
309         PR tree-optimization/77745
310         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
311         When removing redundant stores make sure to check compatibility
312         of the TBAA state for downstream accesses.
313         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
314         value-numbering virtual operands for store matches.
316 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
318         PR target/51244
319         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
320         movrt patterns.  Match them before anything else in the SET case.
322 2016-09-27  Martin Liska  <mliska@suse.cz>
324         PR gcov-profile/7970
325         PR gcov-profile/16855
326         PR gcov-profile/44779
327         * coverage.c (build_gcov_exit_decl): New function.
328         (coverage_obj_init): Call the function and generate __gcov_exit
329         destructor.
330         * doc/gcov.texi: Document when __gcov_exit function is called.
332 2016-09-27  Marek Polacek  <polacek@redhat.com>
334         PR bootstrap/77751
335         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
336         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
337         -Wno-error instead of -Wno-implicit-fallthrough.
339 2016-09-27  Martin Liska  <mliska@suse.cz>
341         PR bootstrap/77749
342         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
344 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
346         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
347         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
348         comments.  Remove break after return.
349         (ix86_fp_compare_code_to_integer, has_dispatch,
350         ix86_simd_clone_usable): Remove break after return.
352 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
354         PR rlt-optimization/77714
355         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
356         REG_EQUAL note.
358 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
360         PR ipa/77677
361         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
362         extract_range_from_unary_expr to convert value_range.
363         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
364         (extract_range_from_unary_expr): This.
365         * tree-vrp.h (extract_range_from_unary_expr): Declare.
367 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
369         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
371 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
373         * config/i386/i386.c (ix86_print_operand)
374         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
375         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
376         (epilogue_renumber): Likewise.
378 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
380         PR middle-end/77719
381         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
382         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
384 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
386         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
387         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
388         is_mm_seq_cst, is_mm_sync): Move to ...
389         * memmodel.h: This.  New file.
390         * builtins.c: Include memmodel.h.
391         * optabs.c: Likewise.
392         * tsan.c: Likewise.
393         * config/aarch64/aarch64.c: Likewise.
394         * config/alpha/alpha.c: Likewise.
395         * config/arm/arm.c: Likewise.
396         * config/i386/i386.c: Likewise.
397         * config/ia64/ia64.c: Likewise.
398         * config/mips/mips.c: Likewise.
399         * config/rs6000/rs6000.c: Likewise.
400         * config/sparc/sparc.c: Likewise.
401         * genconditions.c: Include memmodel.h in generated file.
402         * genemit.c: Likewise.
403         * genoutput.c: Likewise.
404         * genpeep.c: Likewise.
405         * genpreds.c: Likewise.
406         * genrecog.c: Likewise.
408 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
410         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
411         "c" instead when parsing characters.  Move operand parsing into...
412         (read_rtx_operand): ...this new function, renaming "i" to "idx",
413         and tightening the scope of various locals.
415 2016-09-26  Liu Hao  <lh_mouse@126.com>
417         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
419 2016-09-26  Marek Polacek  <polacek@redhat.com>
421         * system.h: Use __has_attribute to check whether the fallthrough
422         attribute is supported.
424 2016-09-26  Marek Polacek  <polacek@redhat.com>
426         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
427         gimple_call_internal_p.
428         * ipa-split.c (find_return_bb): Likewise.
429         (execute_split_functions): Likewise.
430         * omp-low.c (dump_oacc_loop_part): Likewise.
431         (oacc_loop_xform_head_tail): Likewise.
432         * predict.c (predict_loops): Likewise.
433         * sanopt.c (pass_sanopt::execute): Likewise.
434         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
435         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
436         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
437         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
438         (expand_ifn_va_arg): Likewise.
439         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
440         (optimize_mask_stores): Likewise.
441         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
442         (vect_transform_stmt): Likewise.
443         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
444         * tsan.c (instrument_memory_accesses): Likewise.
446 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
447             Alexander Monakov  <amonakov@ispras.ru>
449         * regrename.c (rename_chains): Check
450         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
451         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
452         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
454 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
456         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
457         (s390_sched_score): Likewise.
459 2016-09-26  Martin Liska  <mliska@suse.cz>
461         * doc/gcov.texi: Update program output of gcov tool.
463 2016-09-26  Martin Liska  <mliska@suse.cz>
465         PR gcov-profile/23332
466         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
467         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
468         * value-prof.c (dump_histogram_value): Do not handle
469         HIST_TYPE_CONST_DELTA.
470         (stream_in_histogram_value): Likewise.
471         (gimple_find_values_to_profile): Likewise.
472         * value-prof.h (enum hist_type): Likewise.
474 2016-09-26  Martin Liska  <mliska@suse.cz>
476         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
477         from default sanitize recover values.
478         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
479         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
480         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
481         consistent.
482         * opts.c (finish_options): Do a generic loop over options
483         that can be recovered.
484         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
485         SANITIZE_RETURN.
486         (common_handle_option): Likewise.
487         * opts.h: Declare can_recover to sanitizer_opts_s.
489 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
491         * target.def(elf_flags_numeric): Change documentation to present tense.
492         * doc/tm.texi: Regenerate.
494 2016-09-26  Marek Polacek  <polacek@redhat.com>
496         PR c/7652
497         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
498         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
499         -Wno-switch-fallthrough.
500         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
501         (expand_builtin): Likewise.
502         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
503         * convert.c (convert_to_real_1): Likewise.
504         (convert_to_integer_1): Likewise.
505         * final.c (output_alternate_entry_point): Likewise.
506         * genattrtab.c (make_canonical): Likewise.
507         (write_test_expr): Likewise.
508         * genpreds.c (validate_exp): Likewise.
509         * gimple-ssa-strength-reduction.c
510         (find_candidates_dom_walker::before_dom_children): Likewise.
511         * godump.c (go_format_type): Likewise.
512         * reload1.c (elimination_effects): Likewise.
513         * resource.c (mark_referenced_resources): Likewise.
514         (mark_set_resources): Likewise.
515         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
516         * varasm.c (output_addressed_constants): Likewise.
518 2016-09-26  Marek Polacek  <polacek@redhat.com>
520         PR c/7652
521         * common.opt (Wimplicit-fallthrough): New option.
522         * doc/extend.texi: Document statement attributes and the fallthrough
523         attribute.
524         * doc/invoke.texi: Document -Wimplicit-fallthrough.
525         * gimple.h (gimple_call_internal_p): New function.
526         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
527         (struct label_entry): New struct.
528         (find_label_entry): New function.
529         (case_label_p): New function.
530         (collect_fallthrough_labels): New function.
531         (last_stmt_in_scope): New function.
532         (should_warn_for_implicit_fallthrough): New function.
533         (warn_implicit_fallthrough_r): New function.
534         (maybe_warn_implicit_fallthrough): New function.
535         (expand_FALLTHROUGH_r): New function.
536         (expand_FALLTHROUGH): New function.
537         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
538         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
539         (gimplify_label_expr): New function.
540         (gimplify_case_label_expr): Set location.
541         (gimplify_expr): Call gimplify_label_expr.
542         * internal-fn.c (expand_FALLTHROUGH): New function.
543         * internal-fn.def (FALLTHROUGH): New internal function.
544         * langhooks.c (lang_GNU_OBJC): New function.
545         * langhooks.h (lang_GNU_OBJC): Declare.
546         * system.h (gcc_fallthrough): Define.
547         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
548         * tree.h (FALLTHROUGH_LABEL_P): Define.
550 2016-09-26  Richard Biener  <rguenther@suse.de>
552         * dwarf2out.c (stripattributes): Remove unused function.
553         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
554         Push dwarf_split_debug_info handling into init_sections_and_labels.
555         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
556         (DEBUG_MACRO_SECTION_FLAGS): Remove.
557         (debug_macinfo_section_name): New global.
558         (output_macinfo): Use debug_macinfo_section_name.
559         (init_sections_and_labels): Split out section and label generation
560         from dwarf2out_init.  Set debug_macinfo_section_name.
561         (dwarf2out_init): Move text section label generation and emission
562         to ...
563         (dwarf2out_assembly_start): ... here.
564         (dwarf2out_finish): Call init_sections_and_labels before DWARF
565         output starts.
567 2016-09-26  Richard Biener  <rguenther@suse.de>
569         PR debug/77692
570         * cgraphunit.c (analyze_functions): Before early removing
571         global vars calls the late_global_decl debug handler mark
572         the variable as readonly.
574 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
576         PR target/51244
577         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
578         (sh_rtx_costs): Handle SET of movt and movrt patterns.
579         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
580         declare new overloads.
581         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
582         operand.
584 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
586         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
587         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
589 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
591         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
592         * configure: Regenerate.
594 2016-09-24  Marek Polacek  <polacek@redhat.com>
596         PR c/77490
597         * doc/invoke.texi: Document -Wbool-operation.
599 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
601         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
602         * config/rs6000/rs6000.c (expand_block_compare): New function used by
603         cmpmemsi pattern to do builtin expansion of memcmp ().
604         (compute_current_alignment): Add helper function for
605         expand_block_compare used to compute alignment as the compare proceeds.
606         (select_block_compare_mode): Used by expand_block_compare to select
607         the mode used for reading the next chunk of bytes in the compare.
608         (do_load_for_compare): Used by expand_block_compare to emit the load
609         insns for the compare.
610         (rs6000_emit_dot_insn): Moved this function to avoid a forward
611         reference from expand_block_compare ().
612         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
613         prototype for this function.
614         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
615         target option for controlling how much code inline expansion of
616         memcmp() will be allowed to generate.
618 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
620         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
621         hook_bool_mode_false, hook_bool_mode_true,
622         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
623         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
624         hook_bool_const_rtx_insn_const_rtx_insn_true,
625         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
626         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
627         hook_bool_const_tree_hwi_hwi_const_tree_false,
628         hook_bool_const_tree_hwi_hwi_const_tree_true,
629         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
630         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
631         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
632         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
633         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
634         hook_bool_const_tree_true, hook_bool_tree_tree_false,
635         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
636         hook_bool_rtx_insn_true, hook_bool_rtx_false,
637         hook_bool_uintp_uintp_false,
638         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
639         hook_rtx_tree_int_null, hook_uint_mode_0,
640         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
641         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
642         hook_constcharptr_const_rtx_insn_null,
643         hook_constcharptr_const_tree_const_tree_null,
644         hook_constcharptr_int_const_tree_null,
645         hook_constcharptr_int_const_tree_const_tree_null,
646         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
647         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
648         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
650         * vec.h (vNULL): Extend comment to say = vNULL initialization
651         isn't needed for static vars.
653         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
654         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
655         = vNULL initialization of file scope vec.
656         * passes.c (pass_tab, enabled_pass_uid_range_tab,
657         disabled_pass_uid_range_tab): Likewise.
658         * haifa-sched.c (sched_luids, h_i_d): Likewise.
659         * tree-chkp-opt.c (check_infos): Likewise.
660         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
662         * vec.h (vnull::operator vec): Add constexpr keyword for
663         C++11 and later.
665 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
667         PR tree-optimization/77654
668         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
669         to duplicate_ssa_name_ptr_info.
671 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
673         PR preprocessor/77672
674         * input.c (selftest::test_lexer_string_locations_simple): Update
675         test to expect location information of the terminator character
676         at the location of the final closing quote.
677         (selftest::test_lexer_string_locations_hex): Likewise.
678         (selftest::test_lexer_string_locations_oct): Likewise.
679         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
680         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
681         (selftest::test_lexer_string_locations_ucn4): Likewise.
682         (selftest::test_lexer_string_locations_ucn8): Likewise.
683         (selftest::test_lexer_string_locations_u8): Likewise.
684         (selftest::test_lexer_string_locations_utf8_source): Likewise.
685         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
686         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
687         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
688         (selftest::test_lexer_string_locations_macro): Likewise.
689         (selftest::test_lexer_string_locations_long_line): Likewise.
691 2016-09-23  Richard Biener  <rguenther@suse.de>
693         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
694         virtual definition to virtual use if the call devirtualizes
695         to a const or pure function.
696         (visit_use): Also visit calls we can devirtualize to a
697         const or pure function.
699 2016-09-23  Richard Biener  <rguenther@suse.de>
701         PR tree-optimization/77697
702         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
703         signal error if we have sth ternary or unhandled.
705 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
707         * config/arm/arm_neon.h (vabd_f16): New.
708         (vabdq_f16): New.
709         (vabs_f16): New.
710         (vabsq_f16): New.
711         (vadd_f16): New.
712         (vaddq_f16): New.
713         (vcage_f16): New.
714         (vcageq_f16): New.
715         (vcagt_f16): New.
716         (vcagtq_f16): New.
717         (vcale_f16): New.
718         (vcaleq_f16): New.
719         (vcalt_f16): New.
720         (vcaltq_f16): New.
721         (vceq_f16): New.
722         (vceqq_f16): New.
723         (vceqz_f16): New.
724         (vceqzq_f16): New.
725         (vcge_f16): New.
726         (vcgeq_f16): New.
727         (vcgez_f16): New.
728         (vcgezq_f16): New.
729         (vcgt_f16): New.
730         (vcgtq_f16): New.
731         (vcgtz_f16): New.
732         (vcgtzq_f16): New.
733         (vcle_f16): New.
734         (vcleq_f16): New.
735         (vclez_f16): New.
736         (vclezq_f16): New.
737         (vclt_f16): New.
738         (vcltq_f16): New.
739         (vcltz_f16): New.
740         (vcltzq_f16): New.
741         (vcvt_f16_s16): New.
742         (vcvt_f16_u16): New.
743         (vcvt_s16_f16): New.
744         (vcvt_u16_f16): New.
745         (vcvtq_f16_s16): New.
746         (vcvtq_f16_u16): New.
747         (vcvtq_s16_f16): New.
748         (vcvtq_u16_f16): New.
749         (vcvta_s16_f16): New.
750         (vcvta_u16_f16): New.
751         (vcvtaq_s16_f16): New.
752         (vcvtaq_u16_f16): New.
753         (vcvtm_s16_f16): New.
754         (vcvtm_u16_f16): New.
755         (vcvtmq_s16_f16): New.
756         (vcvtmq_u16_f16): New.
757         (vcvtn_s16_f16): New.
758         (vcvtn_u16_f16): New.
759         (vcvtnq_s16_f16): New.
760         (vcvtnq_u16_f16): New.
761         (vcvtp_s16_f16): New.
762         (vcvtp_u16_f16): New.
763         (vcvtpq_s16_f16): New.
764         (vcvtpq_u16_f16): New.
765         (vcvt_n_f16_s16): New.
766         (vcvt_n_f16_u16): New.
767         (vcvtq_n_f16_s16): New.
768         (vcvtq_n_f16_u16): New.
769         (vcvt_n_s16_f16): New.
770         (vcvt_n_u16_f16): New.
771         (vcvtq_n_s16_f16): New.
772         (vcvtq_n_u16_f16): New.
773         (vfma_f16): New.
774         (vfmaq_f16): New.
775         (vfms_f16): New.
776         (vfmsq_f16): New.
777         (vmax_f16): New.
778         (vmaxq_f16): New.
779         (vmaxnm_f16): New.
780         (vmaxnmq_f16): New.
781         (vmin_f16): New.
782         (vminq_f16): New.
783         (vminnm_f16): New.
784         (vminnmq_f16): New.
785         (vmul_f16): New.
786         (vmul_lane_f16): New.
787         (vmul_n_f16): New.
788         (vmulq_f16): New.
789         (vmulq_lane_f16): New.
790         (vmulq_n_f16): New.
791         (vneg_f16): New.
792         (vnegq_f16): New.
793         (vpadd_f16): New.
794         (vpmax_f16): New.
795         (vpmin_f16): New.
796         (vrecpe_f16): New.
797         (vrecpeq_f16): New.
798         (vrnd_f16): New.
799         (vrndq_f16): New.
800         (vrnda_f16): New.
801         (vrndaq_f16): New.
802         (vrndm_f16): New.
803         (vrndmq_f16): New.
804         (vrndn_f16): New.
805         (vrndnq_f16): New.
806         (vrndp_f16): New.
807         (vrndpq_f16): New.
808         (vrndx_f16): New.
809         (vrndxq_f16): New.
810         (vrsqrte_f16): New.
811         (vrsqrteq_f16): New.
812         (vrecps_f16): New.
813         (vrecpsq_f16): New.
814         (vrsqrts_f16): New.
815         (vrsqrtsq_f16): New.
816         (vsub_f16): New.
817         (vsubq_f16): New.
819 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
821         * config.gcc (extra_headers): Add arm_fp16.h
822         * config/arm/arm_fp16.h: New.
823         * config/arm/arm_neon.h: Include "arm_fp16.h".
825 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
827         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
828         variants).
829         (vmulf): New (v8hf, v4hf variants).
830         (vfma): New (v8hf, v4hf variants).
831         (vfms): New (v8hf, v4hf variants).
832         (vsub): New (v8hf, v4hf variants).
833         (vcage): New (v8hf, v4hf variants).
834         (vcagt): New (v8hf, v4hf variants).
835         (vcale): New (v8hf, v4hf variants).
836         (vcalt): New (v8hf, v4hf variants).
837         (vceq): New (v8hf, v4hf variants).
838         (vcgt): New (v8hf, v4hf variants).
839         (vcge): New (v8hf, v4hf variants).
840         (vcle): New (v8hf, v4hf variants).
841         (vclt): New (v8hf, v4hf variants).
842         (vceqz): New (v8hf, v4hf variants).
843         (vcgez): New (v8hf, v4hf variants).
844         (vcgtz): New (v8hf, v4hf variants).
845         (vcltz): New (v8hf, v4hf variants).
846         (vclez): New (v8hf, v4hf variants).
847         (vabd): New (v8hf, v4hf variants).
848         (vmaxf): New (v8hf, v4hf variants).
849         (vmaxnm): New (v8hf, v4hf variants).
850         (vminf): New (v8hf, v4hf variants).
851         (vminnm): New (v8hf, v4hf variants).
852         (vpmaxf): New (v4hf variant).
853         (vpminf): New (v4hf variant).
854         (vpadd): New (v4hf variant).
855         (vrecps): New (v8hf, v4hf variants).
856         (vrsqrts): New (v8hf, v4hf variants).
857         (vabs): New (v8hf, v4hf variants).
858         (vneg): New (v8hf, v4hf variants).
859         (vrecpe): New (v8hf, v4hf variants).
860         (vrnd): New (v8hf, v4hf variants).
861         (vrnda): New (v8hf, v4hf variants).
862         (vrndm): New (v8hf, v4hf variants).
863         (vrndn): New (v8hf, v4hf variants).
864         (vrndp): New (v8hf, v4hf variants).
865         (vrndx): New (v8hf, v4hf variants).
866         (vrsqrte): New (v8hf, v4hf variants).
867         (vmul_lane): Add v4hf and v8hf variants.
868         (vmul_n): Add v4hf and v8hf variants.
869         (vext): New (v8hf, v4hf variants).
870         (vcvts): New (v8hi, v4hi variants).
871         (vcvts): New (v8hf, v4hf variants).
872         (vcvtu): New (v8hi, v4hi variants).
873         (vcvtu): New (v8hf, v4hf variants).
874         (vcvts_n): New (v8hf, v4hf variants).
875         (vcvtu_n): New (v8hi, v4hi variants).
876         (vcvts_n): New (v8hi, v4hi variants).
877         (vcvtu_n): New (v8hf, v4hf variants).
878         (vbsl): New (v8hf, v4hf variants).
879         (vcvtas): New (v8hf, v4hf variants).
880         (vcvtau): New (v8hf, v4hf variants).
881         (vcvtms): New (v8hf, v4hf variants).
882         (vcvtmu): New (v8hf, v4hf variants).
883         (vcvtns): New (v8hf, v4hf variants).
884         (vcvtnu): New (v8hf, v4hf variants).
885         (vcvtps): New (v8hf, v4hf variants).
886         (vcvtpu): New (v8hf, v4hf variants).
888 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
890         * config/arm/arm-builtins.c (hf_UP): New.
891         (si_UP): New.
892         (vfp_builtin_data): New.  Update comment.
893         (enum arm_builtins): Include "arm_vfp_builtins.def".
894         (ARM_BUILTIN_VFP_PATTERN_START): New.
895         (arm_init_vfp_builtins): New.
896         (arm_init_builtins): Add arm_init_vfp_builtins.
897         (arm_expand_vfp_builtin): New.
898         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
899         long line.
900         * config/arm/arm_vfp_builtins.def: New file.
901         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
902         (arm-builtins.o): Likewise.
904 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
906         PR ipa/77677
907         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
908         from constant while creating value range.
910 2016-09-23  Renlin Li  <renlin.li@arm.com>
912         * ira.c (ira): Move ira_use_lra_p initialization code to ...
913         (ira_init_once): Here.
915 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
916             Jakub Jelinek  <jakub@redhat.com>
918         * hooks.h (hook_uint_uintp_false): Rename to...
919         (hook_bool_uint_uintp_false): ... this.
920         * hooks.c (hook_uint_uintp_false): Rename to...
921         (hook_bool_uint_uintp_false): ... this.
922         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
923         instead of hook_uint_uintp_false.
925 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
927         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
928         (arm_init_builtins): Move body of a loop to the standalone
929         function arm_init_neon_builtin.
930         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
931         moved from arm_neon_builtin with some white-space fixes.
932         (arm_expand_neon_builtin): Move code into the standalone function
933         arm_expand_neon_builtin_1.
935 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
937         * config/arm/iterators.md (VCVTHI): New.
938         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
939         (NEON_VAGLTE): New.
940         (VFM_LANE_AS): New.
941         (VH_CVTTO): New.
942         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
943         (V_HALF): Add V4HF.  Fix white-space.
944         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
945         (V_s_elem): Likewise.
946         (V_sz_elem): Fix white-space.
947         (V_elem_ch): Likewise.
948         (VH_elem_ch): New.
949         (scalar_mul_constraint): Add V8HF and V4HF.
950         (Is_float_mode): Fix white-space.
951         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
952         (q): Add HF.  Fix white-space.
953         (float_sup): New.
954         (float_SUP): New.
955         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
956         (neon_vfm_lane_as): New.
957         * config/arm/neon.md (add<mode>3_fp16): New.
958         (sub<mode>3_fp16): New.
959         (mul<mode>3add<mode>_neon): New.
960         (fma<VH:mode>4_intrinsic): New.
961         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
962         (fmsub<VH:mode>4_intrinsic): New.
963         (<absneg_str><mode>2): New.
964         (neon_v<absneg_str><mode>): New.
965         (neon_v<fp16_rnd_str><mode>): New.
966         (neon_vrsqrte<mode>): New.
967         (neon_vpaddv4hf): New.
968         (neon_vadd<mode>): New.
969         (neon_vsub<mode>): New.
970         (neon_vmulf<mode>): New.
971         (neon_vfma<VH:mode>): New.
972         (neon_vfms<VH:mode>): New.
973         (neon_vc<cmp_op><mode>): New.
974         (neon_vc<cmp_op><mode>_fp16insn): New
975         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
976         (neon_vca<cmp_op><mode>): New.
977         (neon_vca<cmp_op><mode>_fp16insn): New.
978         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
979         (neon_vc<cmp_op>z<mode>): New.
980         (neon_vabd<mode>): New.
981         (neon_v<maxmin>f<mode>): New.
982         (neon_vp<maxmin>fv4hf: New.
983         (neon_<fmaxmin_op><mode>): New.
984         (neon_vrecps<mode>): New.
985         (neon_vrsqrts<mode>): New.
986         (neon_vrecpe<mode>): New (VH variant).
987         (neon_vdup_lane<mode>_internal): New.
988         (neon_vdup_lane<mode>): New.
989         (neon_vcvt<sup><mode>): New (VCVTHI variant).
990         (neon_vcvt<sup><mode>): New (VH variant).
991         (neon_vcvt<sup>_n<mode>): New (VH variant).
992         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
993         (neon_vcvt<vcvth_op><sup><mode>): New.
994         (neon_vmul_lane<mode>): New.
995         (neon_vmul_n<mode>): New.
996         * config/arm/unspecs.md (UNSPEC_VCALE): New
997         (UNSPEC_VCALT): New.
998         (UNSPEC_VFMA_LANE): New.
999         (UNSPECS_VFMS_LANE): New.
1001 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1003         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
1004         ("*extzv<mode><clobbercc_or_nocc>"):
1005         Correct a typo in a comment.
1006         Merged patterns.
1007         ("*insv<mode>_zEC12", "*insv<mode>_z10")
1008         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
1009         ("*insv<mode>_zEC12_appendbitsleft")
1010         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
1011         ("*insv<mode>_z10_appendbitsleft"): Ditto.
1012         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
1013         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
1014         Provide pattern with operands switched.
1015         ("*pre_z10_extv<mode>"):
1016         Use new subst patterns.
1017         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
1018         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
1019         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
1020         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
1021         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
1022         ("*<risbg_n>_sidi_ior_and_lshiftrt")
1023         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
1024         New patterns.
1025         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
1026         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1027         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
1028         on zEC12.
1029         ("SINT"): New mode_iterator with SI, HI, QI.
1030         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
1031         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
1032         duplication.
1034 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1036         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
1037         new interface of s390_contiguous_bitmask_p.
1038         ("contiguous_bitmask_nowrap_operand"): New predicate.
1039         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
1040         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
1041         of s390_contiguous_bitmask_p.
1042         ("NxxDw"): Rename NxxDq constraint to NxxDw.
1043         ("NxxSw"): New constraint.
1044         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
1045         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
1046         interface.
1047         (s390_contiguous_bitmask_nowrap_p): Export.
1048         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
1049         former s390_contiguous_bitmask_p.
1050         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
1051         detect contiguous bit ranges with wraparound.  Change signature to
1052         return START and END position instead of POS and LENGTH.
1053         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
1054         ranges with wraparound.
1055         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
1056         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
1057         Adapt to new signature of s390_contiguous_bitmask_p.
1059 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
1061         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
1062         (create_intersect_range_checks): New.
1063         (vect_create_cond_for_alias_checks): Call above function.
1065 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1067         * config/arm/iterators.md (Code iterators): Fix some white-space
1068         in the comments.
1069         (GLTE): New.
1070         (ABSNEG): New
1071         (FCVT): Moved from vfp.md.
1072         (VCVT_HF_US_N): New.
1073         (VCVT_SI_US_N): New.
1074         (VCVT_HF_US): New.
1075         (VCVTH_US): New.
1076         (FP16_RND): New.
1077         (absneg_str): New.
1078         (FCVTI32typename): Moved from vfp.md.
1079         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
1080         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
1081         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
1082         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
1083         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
1084         (vcvth_op): New.
1085         (fp16_rnd_str): New.
1086         (fp16_rnd_insn): New.
1087         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
1088         (UNSPEC_VCVT_HF_U_N): New.
1089         (UNSPEC_VCVT_SI_S_N): New.
1090         (UNSPEC_VCVT_SI_U_N): New.
1091         (UNSPEC_VCVTH_S): New.
1092         (UNSPEC_VCVTH_U): New.
1093         (UNSPEC_VCVTA_S): New.
1094         (UNSPEC_VCVTA_U): New.
1095         (UNSPEC_VCVTM_S): New.
1096         (UNSPEC_VCVTM_U): New.
1097         (UNSPEC_VCVTN_S): New.
1098         (UNSPEC_VCVTN_U): New.
1099         (UNSPEC_VCVTP_S): New.
1100         (UNSPEC_VCVTP_U): New.
1101         (UNSPEC_VCVTP_S): New.
1102         (UNSPEC_VCVTP_U): New.
1103         (UNSPEC_VRND): New.
1104         (UNSPEC_VRNDA): New.
1105         (UNSPEC_VRNDI): New.
1106         (UNSPEC_VRNDM): New.
1107         (UNSPEC_VRNDN): New.
1108         (UNSPEC_VRNDP): New.
1109         (UNSPEC_VRNDX): New.
1110         * config/arm/vfp.md (<absneg_str>hf2): New.
1111         (neon_vabshf): New.
1112         (neon_v<fp16_rnd_str>hf): New.
1113         (neon_vrndihf): New.
1114         (addhf3): New.
1115         (subhf3): New.
1116         (divhf3): New.
1117         (mulhf3): New.
1118         (*mulsf3neghf_vfp): New.
1119         (*negmulhf3_vfp): New.
1120         (*mulsf3addhf_vfp): New.
1121         (*mulhf3subhf_vfp): New.
1122         (*mulhf3neghfaddhf_vfp): New.
1123         (*mulhf3neghfsubhf_vfp): New.
1124         (fmahf4): New.
1125         (neon_vfmahf): New.
1126         (fmsubhf4_fp16): New.
1127         (neon_vfmshf): New.
1128         (*fnmsubhf4): New.
1129         (*fnmaddhf4): New.
1130         (neon_vsqrthf): New.
1131         (neon_vrsqrtshf): New.
1132         (FCVT): Move to iterators.md.
1133         (FCVTI32typename): Likewise.
1134         (neon_vcvth<sup>hf): New.
1135         (neon_vcvth<sup>si): New.
1136         (neon_vcvth<sup>_nhf_unspec): New.
1137         (neon_vcvth<sup>_nhf): New.
1138         (neon_vcvth<sup>_nsi_unspec): New.
1139         (neon_vcvth<sup>_nsi): New.
1140         (neon_vcvt<vcvth_op>h<sup>si): New.
1141         (neon_<fmaxmin_op>hf): New.
1143 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1145         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
1146         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
1147         ("*insv<mode>_zEC12_appendbitsleft")
1148         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
1149         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
1151 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1153         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
1154         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
1155         construct values without normalization.
1156         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
1157         static local lhs_ops to vNULL.
1159 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1160             Jiong Wang <jiong.wang@arm.com>
1162         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
1163         available when FP16 instructions are available.
1164         (output_move_vfp): Add support for 16-bit data moves.
1165         (arm_validize_comparison): Fix some white-space.  Support HFmode
1166         by conversion to SFmode.
1167         * config/arm/arm.md (truncdfhf2): Fix a comment.
1168         (extendhfdf2): Likewise.
1169         (cstorehf4): New.
1170         (movsicc): Fix some white-space.
1171         (movhfcc): New.
1172         (movsfcc): Fix some white-space.
1173         (*cmovhf): New.
1174         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
1175         instructions are available.
1176         (*thumb2_movhi_vfp): Likewise.
1177         (*arm_movhi_fp16): New.
1178         (*thumb2_movhi_fp16): New.
1179         (*movhf_vfp_fp16): New.
1180         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
1181         (*movhf_vfp): Likewise.
1182         (extendhfsf2): Enable when VFP FP16 instructions are available.
1183         (truncsfhf2):  Enable when VFP FP16 instructions are available.
1185 2016-09-23  Martin Liska  <mliska@suse.cz>
1187         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
1189 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1191         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
1192         V4HF modes.
1193         (arm_evpc_neon_vtrn): Likewise.
1194         (arm_evpc_neon_vrev): Likewise.
1195         (arm_evpc_neon_vext): Likewise.
1196         * config/arm/arm_neon.h (vbsl_f16): New.
1197         (vbslq_f16): New.
1198         (vdup_n_f16): New.
1199         (vdupq_n_f16): New.
1200         (vdup_lane_f16): New.
1201         (vdupq_lane_f16): New.
1202         (vext_f16): New.
1203         (vextq_f16): New.
1204         (vmov_n_f16): New.
1205         (vmovq_n_f16): New.
1206         (vrev64_f16): New.
1207         (vrev64q_f16): New.
1208         (vtrn_f16): New.
1209         (vtrnq_f16): New.
1210         (vuzp_f16): New.
1211         (vuzpq_f16): New.
1212         (vzip_f16): New.
1213         (vzipq_f16): New.
1214         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
1215         (vdup_lane): New (v8hf, v4hf variants).
1216         (vext): New (v8hf, v4hf variants).
1217         (vbsl): New (v8hf, v4hf variants).
1218         * config/arm/iterators.md (VDQWH): New.
1219         (VH): New.
1220         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
1221         (Scalar_mul_8_16): Fix white-space.
1222         (Is_d_reg): Add V4HF and V8HF.
1223         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
1224         (neon_vdup_lane<mode>): New.
1225         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
1226         (*neon_vtrn<mode>_insn): Likewise.
1227         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
1228         (*neon_vzip<mode>_insn): Likewise
1229         (neon_vuzp<mode>_internal): Likewise.
1230         (*neon_vuzp<mode>_insn): Likewise
1231         * config/arm/vec-common.md (vec_perm_const<mode>): New.
1233 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
1234             Matthew Wahab  <matthew.wahab@arm.com>
1236         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
1237         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
1238         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
1239         available.  Also fix some white-space.
1240         * config/arm/vfp.md (*arm_movhi_vfp): New.
1241         (*thumb2_movhi_vfp): New.
1243 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1245         * config/arm/arm-c.c (arm_cpu_builtins): Define
1246         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
1247         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
1249 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1251         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
1252         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
1253         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
1254         arm_v8_2a_fp16_neon_hw.
1255         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
1256         arm_v8_2a_neon.
1258 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1260         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
1261         arm_fp16_alternative_ok and arm_fp16_none_ok.
1263 2016-09-23  Martin Liska  <mliska@suse.cz>
1265         * ipa-icf.c (sem_variable::merge): Replace adress with address.
1267 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1269         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
1270         ("armv8.2-a"): New.
1271         ("armv8.2-a+fp16"): New.
1272         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
1273         (FL2_FP16INST): New.
1274         (FL2_FOR_ARCH8_2A): New.
1275         * config/arm/arm-tables.opt: Regenerate.
1276         * config/arm/arm.c (arm_arch8_2): New.
1277         (arm_fp16_inst): New.
1278         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
1279         for incompatible fp16-format settings.
1280         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
1281         (TARGET_NEON_FP16INST): New.
1282         (arm_arch8_2): Declare.
1283         (arm_fp16_inst): Declare.
1284         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
1285         march=armv8.2-a and march=armv8.2-a+fp16.
1286         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
1287         and armv8.2-a+fp16.
1288         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
1289         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
1291 2016-09-23  Martin Liska  <mliska@suse.cz>
1293         * doc/extend.texi: Remove fused-madd from i386 target options.
1295 2016-09-23  Martin Liska  <mliska@suse.cz>
1297         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1298         Handle movbe.
1300 2016-09-23  Martin Liska  <mliska@suse.cz>
1302         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1303         Handle crc32.
1305 2016-09-23  Martin Liska  <mliska@suse.cz>
1307         PR target/71652
1308         * config/i386/i386.c (ix86_option_override_internal): Change
1309         signature and return false when there's an error related to
1310         arch string.
1311         (release_options_strings): New function.
1312         (ix86_valid_target_attribute_tree): Call the function.
1314 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1316         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
1317         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
1318         (gen_hsa_ctor_assignment): Likewise.
1319         * print-tree.c (print_node): Likewise.
1320         * tree-dump.c (dequeue_and_dump): Likewise.
1321         * tree-sra.c (sra_modify_constructor_assign): Likewise.
1322         * expr.c (store_constructor): Likewise.
1323         * fold-const.c (operand_equal_p): Likewise.
1324         * tree-pretty-print.c (dump_generic_node): Likewise.
1325         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
1326         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
1328 2016-09-23  Richard Biener  <rguenther@suse.de>
1330         * hooks.h (hook_uint_uintp_false): Declare.
1332 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1334         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1335         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1337 2016-09-22  Martin Sebor  <msebor@redhat.com>
1339         PR target/77676
1340         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
1341         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
1342         (target_int_min): Correct computation.
1343         (format_integer): Use long long as the argument for the ll length
1344         modifier.
1345         (format_floating): Use target_int_max().
1346         (get_string_length): Same.
1347         (format_string): Avoid setting the bounded flag for strings
1348         of unknown length.
1349         (try_substitute_return_value): Avoid setting range info when
1350         the result isn't bounded.
1351         * varasm.c (assemble_name): Increase buffer size.
1353 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1354             Terry Guo  <terry.guo@arm.com>
1356         * target.def (elf_flags_numeric): New target hook.
1357         * targhooks.h (default_asm_elf_flags_numeric): New.
1358         * varasm.c (default_asm_elf_flags_numeric): New.
1359         (default_elf_asm_named_section): Use new target hook.
1360         * config/arm/arm.opt (mpure-code): New.
1361         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1362         * config/arm/arm.c (arm_asm_init_sections): Add section
1363         attribute to default text section if -mpure-code.
1364         (arm_option_check_internal): Diagnose use of option with
1365         non supported targets and/or options.
1366         (arm_asm_elf_flags_numeric): New.
1367         (arm_function_section): New.
1368         (arm_elf_section_type_flags): New.
1369         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1370         for -mpure-code.
1371         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1372         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1374 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
1376         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1378 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1380         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1381         * rtl.h: Adjust prototype.
1383 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1385         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
1386         (prev_active_insn): Likewise.
1387         (active_insn_p): Likewise.
1388         * rtl.h: Adjust prototypes.
1389         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1390         * config/arc/arc.md: Likewise.
1391         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1392         (branch_needs_nop_p): Likewise.
1393         (use_skip_p): Likewise.
1394         * config/sh/sh.c (gen_block_redirect): Likewise.
1395         (split_branches): Likewise.
1396         * reorg.c (optimize_skip): Likewise.
1397         (fill_simple_delay_slots): Likewise.
1398         (fill_slots_from_thread): Likewise.
1399         (relax_delay_slots): Likewise.
1400         * resource.c (mark_target_live_regs): Likewise.
1402 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1404         * config/cris/cris.c (cris_asm_output_case_end): Change argument
1405         type to rtx_insn *.
1406         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1407         (prev_nonnote_nondebug_insn): Likewise.
1408         * config/cris/cris-protos.h: Adjust prototype.
1409         * rtl.h: Likewise.
1410         * jump.c (rtx_renumbered_equal_p): Adjust.
1412 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1414         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1415         * rtl.h: Adjust prototype.
1416         * config/sh/sh.md: Adjust.
1417         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1419 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1421         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
1422         (prev_nondebug_insn): Likewise.
1423         * loop-doloop.c (doloop_condition_get): Likewise.
1424         * rtl.h: Adjust prototype.
1425         * cfgloop.h: Likewise.
1427 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1429         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
1430         (prev_nonnote_insn): Likewise.
1431         * jump.c (reversed_comparison_code_parts): Likewise.
1432         (reversed_comparison): Likewise.
1433         * rtl.h: Adjust prototypes.
1434         * config/arc/arc.md: Adjust.
1435         * cse.c (find_comparison_args): Likewise.
1436         * reorg.c (redundant_insn): Change return type to rtx_insn *.
1437         (fix_reg_dead_note): Change argument type to rtx_insn *.
1438         (delete_prior_computation): Likewise.
1439         (delete_computation): Likewise.
1440         (fill_slots_from_thread): Adjust.
1441         (relax_delay_slots): Likewise.
1442         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1443         (simplify_relational_operation_1): Likewise.
1444         (simplify_ternary_operation): Likewise.
1446 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1448         * config/arc/arc-protos.h (arc_label_align): Change type of
1449         variables from rtx to rtx_insn *.
1450         * config/arc/arc.c (arc_label_align): Likewise.
1451         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
1452         * config/bfin/bfin.c (workaround_speculation): Likewise.
1453         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
1454         (find_last_same_clock): Likewise.
1455         (reorg_split_calls): Likewise.
1456         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
1457         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
1458         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
1459         (same_cmp_following_p): Likewise.
1460         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
1461         (same_cmp_following_p): Likwise.
1462         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
1463         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
1464         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
1465         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
1466         (rl78_alloc_physical_registers_cmp): Likewise.
1467         (rl78_alloc_physical_registers_umul): Likewise.
1468         (rl78_calculate_death_notes): Likewise.
1469         * config/s390/s390-protos.h (s390_label_align): Likewise.
1470         * config/s390/s390.c (s390_label_align): Likewise.
1471         * config/sh/sh.c (barrier_align): Likewise.
1472         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
1473         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
1474         (emit_cbcond_nop): Likewise.
1476 2016-09-22  Martin Liska  <mliska@suse.cz>
1478         PR ipa/77653
1479         * ipa-icf.c (sem_variable::merge): Yield merge operation if
1480         alias address matters, not necessarily address of original.
1482 2016-09-22  Richard Biener  <rguenther@suse.de>
1484         PR middle-end/77697
1485         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1486         fold fails.
1488 2016-09-22  Richard Biener  <rguenther@suse.de>
1490         PR middle-end/77677
1491         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
1492         from constant folding results.
1493         (gimple_resimplify2): Likewise.
1494         (gimple_resimplify3): Likewise.
1496 2016-09-22  Richard Biener  <rguenther@suse.de>
1498         PR middle-end/77678
1499         * expr.c (expand_expr_real_1): Guard array access against negative
1500         offset.
1502 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1504         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
1505         of MPFR_RNDN.
1506         (format_floating): Likewise.
1508 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1510         PR fortran/77665
1511         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1512         for all IFN_GOMP_SIMD_* internal fns, not just for
1513         IFN_GOMP_SIMD_ORDERED_*.
1515 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1517         PR target/77670
1518         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1519         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1520         instructions when you want to invert the test.
1521         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1522         correct order for XXSEL.
1523         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1524         for using XSCMP{EQ,GT,GE}DP.
1526 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
1528         * genconstants.c (main): Introduce noop_reader and convert call
1529         to read_md_files to a method call.
1530         * genenums.c (main): Likewise.
1531         * genmddeps.c (main): Likewise.
1532         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
1533         rtx_reader_ptr->get_top_level_filename ().
1534         (write_tm_preds_h): Likewise.
1535         (write_insn_preds_c): Likewise.
1536         * gensupport.c (class gen_reader): New subclass of rtx_reader.
1537         (rtx_handle_directive): Convert to...
1538         (gen_reader::handle_unknown_directive): ...this.
1539         (init_rtx_reader_args_cb): Convert return type from bool to
1540         rtx_reader *.  Create a gen_reader instance, using it for the
1541         call to read_md_files.  Return it if no errors occur.
1542         (init_rtx_reader_args): Convert return type from bool to
1543         rtx_reader *.
1544         * gensupport.h (init_rtx_reader_args_cb): Likewise.
1545         (init_rtx_reader_args_cb): Likewise.
1546         * read-md.c (struct file_name_list): Move to class rtx_reader.
1547         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
1548         (read_md_filename): Delete in favor of
1549         rtx_reader::m_read_md_filename.
1550         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
1551         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
1552         (base_dir): Delete in favor of rtx_reader::m_base_dir.
1553         (first_dir_md_include): Delete in favor of
1554         rtx_reader::m_first_dir_md_include.
1555         (last_dir_md_include_ptr): Delete in favor of
1556         rtx_reader::m_last_dir_md_include_ptr.
1557         (max_include_len): Delete.
1558         (rtx_reader_ptr): New.
1559         (fatal_with_file_and_line): Use get_filename and get_lineno
1560         accessors of rtx_reader_ptr.
1561         (require_char_ws): Likewise.
1562         (rtx_reader::read_char): New method, based on ::read_char.
1563         (rtx_reader::unread_char): New method, based on ::unread_char.
1564         (read_escape): Use get_filename and get_lineno accessors of
1565         rtx_reader_ptr.
1566         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
1567         (read_string): Use get_filename and get_lineno accessors of
1568         rtx_reader_ptr.
1569         (rtx_reader::rtx_reader): New ctor.
1570         (rtx_reader::~rtx_reader): New dtor.
1571         (handle_include): Convert from a function to...
1572         (rtx_reader::handle_include): ...this method, converting
1573         handle_directive from a callback to a virtual function.
1574         (handle_file): Likewise, converting to...
1575         (rtx_reader::handle_file): ...this method.
1576         (handle_toplevel_file): Likewise, converting to...
1577         (rtx_reader::handle_toplevel_file): ...this method.
1578         (rtx_reader::get_current_location): New method.
1579         (parse_include): Convert from a function to...
1580         (rtx_reader::add_include_path): ...this method, dropping redundant
1581         update to unused max_include_len.
1582         (read_md_files): Convert from a function to...
1583         (rtx_reader::read_md_files): ...this method, converting
1584         handle_directive from a callback to a virtual function.
1585         (noop_reader::handle_unknown_directive): New method.
1586         * read-md.h (directive_handler_t): Delete this typedef.
1587         (in_fname): Delete.
1588         (read_md_file): Delete.
1589         (read_md_lineno): Delete.
1590         (read_md_filename): Delete.
1591         (class rtx_reader): New class.
1592         (rtx_reader_ptr): New decl.
1593         (class noop_reader): New subclass of rtx_reader.
1594         (read_char): Reimplement in terms of rtx_reader::read_char.
1595         (unread_char): Reimplement in terms of rtx_reader::unread_char.
1596         (read_md_files): Delete.
1597         * read-rtl.c (read_rtx_code): Update for deletion of globals
1598         read_md_filename and read_md_lineno.
1600 2016-09-21  Jason Merrill  <jason@redhat.com>
1602         * input.h (from_macro_definition_at): New.
1604 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1606         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1608 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1610         PR tree-optimization/77550
1611         * tree-vect-stmts.c (create_array_ref): Change parameters.
1612         (get_group_alias_ptr_type): New function.
1613         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1615 2016-09-21  Marek Polacek  <polacek@redhat.com>
1617         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1618         Add falls through comment.
1620 2016-09-21  Richard Biener  <rguenther@suse.de>
1622         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
1623         (replace_child): Likewise.
1624         (remove_child_TAG): Adjust.
1625         (move_marked_base_types): Likewise.
1626         (prune_unused_types_prune): Clear die_sib of removed children.
1628 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1630         PR target/77326
1631         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1632         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1634 2016-09-21  Richard Biener  <rguenther@suse.de>
1636         PR tree-optimization/77648
1637         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1638         with complex RHS.
1639         (make_transitive_closure_constraints): Adjust comment.
1640         (make_any_offset_constraints): New function.
1641         (handle_rhs_call): Make sure to first expand a pointer to all
1642         subfields before transitively closing it.
1643         (handle_const_call): Likewise.  Properly expand returned
1644         pointers as well.
1645         (handle_pure_call): Likewise.
1647 2016-09-21  Richard Biener  <rguenther@suse.de>
1648             Jakub Jelinek  <jakub@redhat.com>
1650         PR tree-optimization/77621
1651         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1652         group at non-vectorizable stmts.
1654 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1656         PR tree-optimization/72835
1657         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
1658         (make_new_ssa_for_all_defs): Likewise.
1659         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
1661 2016-09-20  Martin Sebor  <msebor@redhat.com>
1663         PR middle-end/49905
1664         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
1665         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
1666         * config/linux.c (gnu_libc_printf_pointer_format): New function.
1667         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
1668         * config/sol2.c (solaris_printf_pointer_format): New function.
1669         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
1670         options.
1671         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
1672         * doc/tm.texi: Regenerate.
1673         * gimple-fold.h (get_range_strlen): New function.
1674         (get_maxval_strlen): Declare existing function.
1675         * gimple-fold.c (get_range_strlen): Add arguments and compute both
1676         maximum and minimum.
1677          (get_range_strlen): Define overload.
1678         (get_maxval_strlen): Adjust.
1679         * gimple-ssa-sprintf.c: New file and pass.
1680         * passes.def (pass_sprintf_length): Add new pass.
1681         * targhooks.h (default_printf_pointer_format): Declare new function.
1682         (gnu_libc_printf_pointer_format): Same.
1683         (solaris_libc_printf_pointer_format): Same.
1684         * targhooks.c (default_printf_pointer_format): Define new function.
1685         * tree-pass.h (make_pass_sprintf_length): Declare new function.
1686         * print-tree.c: Increase buffer size.
1688 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1690         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
1692 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1694         * common.opt: New option -fipa-vrp.
1695         * ipa-cp.c (ipa_get_vr_lat): New.
1696         (ipcp_vr_lattice::print): Likewise.
1697         (print_all_lattices): Call ipcp_vr_lattice::print.
1698         (ipcp_vr_lattice::meet_with): New.
1699         (ipcp_vr_lattice::meet_with_1): Likewise.
1700         (ipcp_vr_lattice::top_p): Likewise.
1701         (ipcp_vr_lattice::bottom_p): Likewsie.
1702         (ipcp_vr_lattice::set_to_bottom): Likewise.
1703         (set_all_contains_variable): Call VR set_to_bottom.
1704         (initialize_node_lattices): Init VR lattices.
1705         (propagate_vr_accross_jump_function): New.
1706         (propagate_constants_accross_call): Call
1707         propagate_vr_accross_jump_function.
1708         (ipcp_store_vr_results): New.
1709         (ipcp_driver): Handle VR.
1710         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
1711         (ipa_set_jf_unknown): Likewise.
1712         (ipa_compute_jump_functions_for_edge): Likewise.
1713         (ipa_node_params_t::duplicate): Likewise.
1714         (ipa_write_jump_function): Likewise.
1715         (ipa_read_jump_function): Likewise.
1716         (write_ipcp_transformation_info): Likewise.
1717         (read_ipcp_transformation_info): Likewise.
1718         (ipcp_update_vr): New.
1719         (ipcp_transform_function): Handle VR.
1720         * ipa-prop.h (struct ipa_vr): New.
1721         * cgraph.c: Include tree-vrp.h.
1722         * cgraphunit.c: Likewise.
1723         * ipa-utils.c: Likewise.
1724         * ipa.c: Likewise.
1725         * opts.c: Likewise.
1726         * toplev.c: Likewise.
1727         * ipa-devirt.c: Likewise.
1728         * ipa-inline-transform.c: Likewise.
1729         * ipa-inline.c: Likewise.
1730         * ipa-profile.c: Likewise.
1732 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1734         * doc/invoke.texi: Document -fdump-tree-evrp.
1735         * passes.def: Define new pass_early_vrp.
1736         * timevar.def: Define new TV_TREE_EARLY_VRP.
1737         * tree-pass.h (make_pass_early_vrp): New.
1738         * tree-ssa-propagate.c: Make replace_uses_in non static.
1739         * tree-ssa-propagate.h: Export replace_uses_in.
1740         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
1741         (extract_range_from_assert): Factor out
1742         extract_range_for_var_from_comparison_expr.
1743         (vrp_initialize_lattice): New.
1744         (vrp_initialize): Factor out vrp_initialize_lattice.
1745         (vrp_valueize): Fix it to reject complex value ranges.
1746         (vrp_free_lattice): New.
1747         (evrp_dom_walker::before_dom_children): Likewise.
1748         (evrp_dom_walker::after_dom_children): Likewise.
1749         (evrp_dom_walker::push_value_range): Likewise.
1750         (evrp_dom_walker::pop_value_range): Likewise.
1751         (execute_early_vrp): Likewise.
1752         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
1753         (make_pass_early_vrp): New.
1755 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1757         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
1758         instead of exact_log2.
1760 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1762         PR target/77621
1763         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1764         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1765         (ix86_add_stmt_cost): Penalize DFmode vector operations
1766         for !TARGET_VECTORIZE_DOUBLE.
1768 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
1770         * doc/invoke.texi (Warning Options): Simplify language.
1771         (Optimize Options): Complete sentence.
1773 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
1775         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
1776         early_finish hook.
1778 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1780         PR target/71395
1781         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
1782         inits on power8 and above, use the VMRGEW instruction instead of a
1783         permute.
1785         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
1786         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
1787         initialization.
1789 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
1791         * config/aarch64/arm_neon.h
1792         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
1793         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
1794         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
1796 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1798         * config/var/vax.h (ELIMINABLE_REGS): Define.
1799         (INITIAL_ELIMINATION_OFFSET): Define.
1801 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
1803         PR middle-end/77624
1804         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
1805         cast to void * if the cast is from some other pointer type.
1807 2016-09-20  Richard Biener  <rguenther@suse.de>
1809         PR tree-optimization/77646
1810         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
1811         a VDEF.
1813 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
1815         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
1816         attributes to all inlined functions and make them extern.
1818 2016-09-20  Richard Biener  <rguenther@suse.de>
1820         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
1821         hook.
1822         * debug.c (do_nothing_debug_hooks): Adjust.
1823         * dbxout.c (dbx_debug_hooks): Likewise.
1824         * sdbout.c (sdb_debug_hooks): Likewise.
1825         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
1826         (dwarf2out_finish): Move producer, filename and
1827         path annotation ...
1828         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
1829         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
1831 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1833         PR c++/77434
1834         * doc/invoke.texi: Document -Wint-in-bool-context.
1836         PR middle-end/77421
1837         * dwarf2out.c (output_loc_operands): Fix an assertion.
1839 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1841         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
1842         (CR_DECIMAL_DIG): New macro.
1844 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1846         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
1847         element.
1849 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
1851         PR rtl-optimization/77416
1852         * lra-remat.c (operand_to_remat): Process hard coded insn
1853         registers.
1855 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1857         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
1858         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
1860 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
1862         * target.def (lra_p): Wordsmithing.
1863         * doc/tm.texi: Regenerate.
1865 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
1866             Jan Hubicka  <jh@suse.cz>
1868         PR target/77587
1869         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
1870         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
1871         Call ultimate_alias_target just once, not up to 4 times.
1873 2016-09-19  Richard Biener  <rguenther@suse.de>
1875         * dwarf2out.c (early_dwarf_finished): New global.
1876         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
1877         is false.
1878         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
1879         if called from LTO exit early.
1880         (dwarf2out_late_global_decl): When being during the early
1881         debug phase do not add locations but only const value attributes.
1882         Adjust the way we generate early DIEs for LTO.
1884 2016-09-19  Richard Biener  <rguenther@suse.de>
1886         PR middle-end/77605
1887         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1888         proper niter to bound the loops.
1890 2016-09-19  Richard Biener  <rguenther@suse.de>
1892         PR tree-optimization/77514
1893         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1894         search for folded stmt.
1896 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
1898         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
1899         * tree-pass.h (make_pass_early_thread_jumps): Declare.
1900         * tree-ssa-threadbackward.c (fsm_find_thread_path,
1901         fsm_find_thread_path, profitable_jump_thread_path,
1902         fsm_find_control_statement_thread_paths,
1903         find_jump_threads_backwards): Add speed_p parameter.
1904         (pass_data_early_thread_jumps): New pass.
1905         (make_pass_early_thread_jumps): New function.
1907 2016-09-17  Andreas Schwab  <schwab@suse.de>
1909         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
1910         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1912 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1914         * recog.c (rest_of_handle_split_after_reload): Delete.
1915         (pass_split_after_reload::gate): New method.
1916         (pass_split_after_reload::execute): Call split_all_insns directly.
1918 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
1920         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1921         parameters for functions taking long long arguments.
1923 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1925         PR target/77613
1926         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
1927         splat with truncate.
1929 2016-09-16  Jason Merrill  <jason@redhat.com>
1931         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
1932         New.
1933         * hwint.c (exact_log2): Use pow2p_hwi.
1934         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
1935         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
1936         * builtins.c (get_object_alignment_2, get_object_alignment)
1937         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
1938         least_bit_hwi.
1939         * calls.c (compute_argument_addresses, store_one_arg): Use
1940         least_bit_hwi.
1941         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
1942         * combine.c (force_to_mode): Use least_bit_hwi.
1943         (contains_muldiv, find_split_point, combine_simplify_rtx)
1944         (simplify_if_then_else, simplify_set, force_to_mode)
1945         (if_then_else_cond, simplify_and_const_int_1)
1946         (simplify_compare_const): Use pow2p_hwi.
1947         * cse.c (fold_rtx): Use pow2p_hwi.
1948         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
1949         Use least_bit_hwi.
1950         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
1951         (init_expmed_one_conv): Use pow2p_hwi.
1952         * expr.c (is_aligning_offset): Use pow2p_hwi.
1953         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
1954         (fold_binary_loc): Use pow2p_hwi.
1955         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
1956         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
1957         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
1958         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
1959         Use least_bit_hwi.
1960         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
1961         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
1962         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
1963         * omp-low.c (oacc_loop_fixed_partitions)
1964         (oacc_loop_auto_partitions): Use least_bit_hwi.
1965         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
1966         * stor-layout.c (place_field): Use least_bit_hwi.
1967         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
1968         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
1969         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
1970         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
1971         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
1972         * tree-vect-data-refs.c (vect_analyze_group_access_1)
1973         (vect_grouped_store_supported, vect_grouped_load_supported)
1974         (vect_permute_load_chain, vect_shift_permute_load_chain)
1975         (vect_transform_grouped_load): Use pow2p_hwi.
1976         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
1977         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
1978         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
1979         least_bit_hwi.
1980         * tsan.c (instrument_expr): Use least_bit_hwi.
1981         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
1983 2016-09-16  Andreas Schwab  <schwab@suse.de>
1985         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
1986         OFFSET, not offset.
1987         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1989 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1991         PR target/77526
1992         * combine.c (rest_of_handle_combine): If any edges have been purged,
1993         free dominators if available.
1995 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1996             Eric Botcazou  <ebotcazou@adacore.com>
1998         PR middle-end/77594
1999         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
2000         through into expand_addsub_overflow after expand_neg_overflow.
2002 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
2004         * diagnostic-show-locus.c
2005         (selftest::test_fixit_insert_containing_newline): New function.
2006         (selftest::test_fixit_replace_containing_newline): New function.
2007         (selftest::diagnostic_show_locus_c_tests): Call the above.
2009 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
2011         PR tree-optimization/77503
2012         * tree-vect-loop.c (vectorizable_reduction): Record reduction
2013         code for CONST_COND_REDUCTION at analysis stage and use it at
2014         transform stage.
2015         * tree-vectorizer.h (struct _stmt_vec_info): New field.
2016         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
2017         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
2018         field.
2020 2016-09-15  Richard Biener  <rguenther@suse.de>
2022         PR middle-end/77544
2023         * fold-const.c (split_tree): Do not split constant ~X.
2025 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
2027         PR rtl-optimization/77425
2028         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
2029         is NULL.
2031         PR middle-end/77475
2032         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
2033         use %qs instead of %s where desirable, use argument instead of arg in
2034         the diagnostic wording, add list of supported strategies and
2035         spellcheck hint.
2036         (ix86_option_override_internal): Emit target("m...") instead of
2037         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
2038         -march/-mtune option diagnostic.  Add list of supported arches/tunings
2039         and spellcheck hint.  Remove prefix, suffix and sw variables, use
2040         main_args_p ? "..." : "..." in diagnostics to make translation
2041         possible.
2043 2016-09-15  Richard Biener  <rguenther@suse.de>
2045         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
2046         extra offset argument.
2047         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
2048         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
2049         to reflect new offset parameter.
2050         * doc/tm.texi: Regenerate.
2051         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2052         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
2053         offset argument.
2054         (darwin_asm_output_dwarf_offset): Likewise.
2055         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
2056         argument.
2057         (darwin_asm_output_dwarf_offset): Pass offset argument through.
2058         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2059         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2061 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
2063         PR fortran/72743
2064         * ipa-icf.c (set_alias_uids): New function.
2065         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
2066         all the merged variable's referring aliases.
2068 2016-09-15  Richard Biener  <rguenther@suse.de>
2070         PR tree-optimization/77514
2071         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
2072         only forced_stmts sequence.
2074 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
2076         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
2077         * cfgexpand.c (update_alias_info_with_stack_vars): Use
2078         FOR_EACH_SSA_NAME to iterate over SSA variables.
2079         (pass_expand::execute): Likewise.
2080         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
2081         * tree-cfg.c (dump_function_to_file): Likewise.
2082         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
2083         (update_ssa): Likewise.
2084         * tree-ssa-alias.c (dump_alias_info): Likewise.
2085         * tree-ssa-ccp.c (ccp_finalize): Likewise.
2086         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2087         (create_outofssa_var_map): Likewise.
2088         (coalesce_ssa_name): Likewise.
2089         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
2090         * tree-ssa-pre.c (compute_avail): Likewise.
2091         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2092         (scc_vn_restore_ssa_info): Likewise.
2093         (free_scc_vn): Likwise.
2094         (run_scc_vn): Likewise.
2095         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2096         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
2097         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2098         * tree-ssa.c (verify_ssa): Likewise.
2100 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
2102         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
2103         and mips64r2 as default 32-bit and 64-bit architectures.
2104         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
2105         as default 32-bit and 64-bit architectures.
2107 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
2109         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
2110         of succ edge.
2112 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2114         * target.def (lra_p): Change commentary (for the manual) for the
2115         new default.
2116         * doc/tm.texi: Regenerate.
2118 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2120         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
2121         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
2122         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
2123         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
2125 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2127         * targhooks.c (default_lra_p): Return true instead of false.
2129 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2131         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
2132         hook_bool_void_false.
2133         * config/avr/avr.c: Ditto.
2134         * config/bfin/bfin.c: Ditto.
2135         * config/c6x/c6x.c: Ditto.
2136         * config/cr16/cr16.c: Ditto.
2137         * config/cris/cris.c: Ditto.
2138         * config/epiphany/epiphany.c: Ditto.
2139         * config/fr30/fr30.c: Ditto.
2140         * config/frv/frv.c: Ditto.
2141         * config/h8300/h8300.c: Ditto.
2142         * config/ia64/ia64.c: Ditto.
2143         * config/iq2000/iq2000.c: Ditto.
2144         * config/lm32/lm32.c: Ditto.
2145         * config/m32c/m32c.c: Ditto.
2146         * config/m32r/m32r.c: Ditto.
2147         * config/m68k/m68k.c: Ditto.
2148         * config/mcore/mcore.c: Ditto.
2149         * config/microblaze/microblaze.c: Ditto.
2150         * config/mmix/mmix.c: Ditto.
2151         * config/mn10300/mn10300.c: Ditto.
2152         * config/moxie/moxie.c: Ditto.
2153         * config/msp430/msp430.c: Ditto.
2154         * config/nios2/nios2.c: Ditto.
2155         * config/nvptx/nvptx.c: Ditto.
2156         * config/pa/pa.c: Ditto.
2157         * config/pdp11/pdp11.c: Ditto.
2158         * config/rl78/rl78.c: Ditto.
2159         * config/sparc/sparc.c: Ditto.
2160         * config/spu/spu.c: Ditto.
2161         * config/stormy16/stormy16.c: Ditto.
2162         * config/tilegx/tilegx.c: Ditto.
2163         * config/tilepro/tilepro.c: Ditto.
2164         * config/v850/v850.c: Ditto.
2165         * config/vax/vax.c: Ditto.
2166         * config/visium/visium.c: Ditto.
2167         * config/xtensa/xtensa.c: Ditto.
2169 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
2171         PR sanitizer/68260
2172         * tsan.c: Include target.h.
2173         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
2174         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
2175         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
2176         BUILT_IN_ATOMIC_TEST_AND_SET entries.
2177         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
2179 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2180             Martin Liska  <mliska@suse.cz>
2182         PR middle-end/77574
2183         * predict.c (force_edge_cold): Add braces to a condition.
2185 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2187         PR rtl-optimization/77289
2188         * lra-constraints.c (get_final_hard_regno): Removed.
2189         (get_hard_regno): Add new parameter final_p.
2190         (get_reg_class): Directly call lra_get_elimination_hard_regno.
2191         (operands_match_p): Adjust call to get_hard_regno.
2192         (uses_hard_regs_p): Likewise.
2193         (process_alt_operands): Likewise.
2195 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
2197         PR target/70713
2198         * config/msp430/msp430.c (msp430_start_function): Emit an error
2199         if a function is both weak and specifies an interrupt number.
2201 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2203         PR tree-optimization/77454
2204         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
2205         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
2206         Formatting fix.
2208 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
2210         * config/aarch64/aarch64-builtins.c
2211         (aarch64_init_simd_builtins): Fix builtin type signature printing.
2213 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
2215         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
2216         SFmode and SCmode arguments by reference.
2218 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2220         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
2221         Rename to...
2222         (selftest::test_one_liner_fixit_insert_before): ...this, and update
2223         for renaming of add_fixit_insert to add_fixit_insert_before.
2224         (selftest::test_one_liner_fixit_insert_after): New function.
2225         (selftest::test_one_liner_fixit_validation_adhoc_locations):
2226         Update for renaming of add_fixit_insert to add_fixit_insert_before.
2227         (selftest::test_one_liner_many_fixits): Likewise.
2228         (selftest::test_diagnostic_show_locus_one_liner): Update for
2229         renaming, call new test function.
2230         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
2231         renaming of add_fixit_insert to add_fixit_insert_before.
2232         (selftest::test_fixit_consolidation): Likewise.
2233         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
2234         Likewise.
2235         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
2236         (selftest::test_applying_fixits_insert_before): ...this.
2237         (selftest::test_applying_fixits_insert): Update for renaming of
2238         add_fixit_insert to add_fixit_insert_before.
2239         (selftest::test_applying_fixits_insert_after): New function.
2240         (selftest::test_applying_fixits_insert_after_at_line_end): New
2241         function.
2242         (selftest::test_applying_fixits_insert_after_failure): New function.
2243         (selftest::test_applying_fixits_multiple): Update for renaming of
2244         add_fixit_insert to add_fixit_insert_before.
2245         (selftest::change_line): Likewise.
2246         (selftest::test_applying_fixits_unreadable_file): Likewise.
2247         (selftest::test_applying_fixits_line_out_of_range): Likewise.
2248         (selftest::test_applying_fixits_column_validation): Likewise.
2249         (selftest::test_applying_fixits_column_validation): Likewise.
2250         (selftest::edit_context_c_tests): Update for renamed test function;
2251         call new test functions.
2253 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2255         PR tree-optimization/77536
2256         PR rtl-optimization/68212
2257         * config/rs6000/rs6000.md (div->recip splitter): Remove
2258         optimize_insn_for_speed_p condition.
2260 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
2262         * optabs.c (prepare_cmp_insn): Update documentation comment.
2264 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2265             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2267         PR middle-end/77475
2268         * opts.h (candidates_list_and_hint): Declare.
2269         * opts-common.c (candidates_list_and_hint): New function.
2270         (cmdline_handle_error): Use it.
2272 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
2274         * edit-context.c (edited_line::get_len): New accessor.
2275         (edited_file::print_diff): Split out hunk-printing into...
2276         (edited_file::print_diff_hunk): New method.
2277         (edited_file::print_diff_line): New method.
2279 2016-09-12  Andrew Pinski  <apinski@cavium.com>
2281         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
2282         New tuning option.
2283         * config/aarch64/aarch64.c (thunderx_tunings): Enable
2284         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
2285         (aarch64_operands_ok_for_ldpstp): Return false if
2286         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
2287         was SImode and the alignment is less than 8 byte.
2288         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2290 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
2292         PR target/77570
2293         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
2295 2016-09-12  Marek Polacek  <polacek@redhat.com>
2297         * doc/extend.texi: Use lowercase "boolean".
2298         * doc/invoke.texi: Likewise.
2299         * doc/md.texi: Likewise.
2300         * target.def: Likewise.
2301         * doc/tm.texi: Regenerated.
2303 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2305         PR middle-end/77426
2306         * expmed.c (synth_mult): Delete duplicate mode check.
2308 2016-09-10  Tom de Vries  <tom@codesourcery.com>
2310         PR C/71602
2311         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
2312         va_list type only.
2313         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
2314         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
2316 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
2318         PR rtl-optimization/77289
2319         * lra-constraints.c (get_final_hard_regno): Add support for non hard
2320         register numbers.  Remove support for subregs.
2321         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
2322         (get_reg_class): Delete removed get_final_hard_regno() argument.
2323         (uses_hard_regs_p): Call get_final_hard_regno().
2325 2016-09-09  Martin Sebor  <msebor@redhat.com>
2327         PR c/77520
2328         PR c/77521
2329         * pretty-print.c (pp_quoted_string): New function.
2330         (pp_format): Call it for %c and %s directives.
2332 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2334         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
2335         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
2336         INITIAL_ELIMINATION_OFFSET) : Update documentation.
2337         * target.def (frame_pointer_required, can_eliminate): Likewise.
2338         * doc/tm.texi: Regenerated.
2339         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
2340         ELIMINABLE_REGS.
2341         * df-scan.c (df_hard_reg_init): Likewise.
2342         * ira.c (ira_setup_eliminable_regset): Likewise.
2343         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
2344         init_elim_table): Likewise.
2345         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
2346         set_initial_elim_offsets, update_eliminables,
2347         init_elim_table): Likewise.
2348         * rtlanal.c (get_initial_register_offset): Likewise.
2349         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2350         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2351         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2352         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2353         * config/fr30/fr30.h: Fix comment.
2354         * config/frv/frv.c: Likewise.
2355         * config/frv/frv.h: Likewise.
2356         * config/ft32/ft32.h: Likewise.
2357         * config/visium/visium.h: Likewise.
2358         * config/pa/pa64-linux.h: Likewise.
2359         * config/v850/v850.h: Likewise.
2360         * config/cris/cris.c: Likewise.
2361         * config/ia64/ia64.h: Likewise.
2362         * config/moxie/moxie.h: Likewise.
2363         * config/m32r/m32r.h: Likewise.
2365 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2367         PR target/77267
2368         * config.in: Regenerate.
2369         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2370         New macro.
2371         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2372         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2373         static-libmpxwrappers case.
2374         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2375         MPX_LD_AS_NEEDED_GUARD_POP.
2376         * configure: Regenerate.
2377         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2378         defined if linker support "--push-state"/"--pop-state".
2380 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2382         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2384 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
2386         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2387         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2388         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2389         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2390         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2391         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2392         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2393         Document.
2394         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2395         width macros from TS 18661-1.
2396         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2398 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
2400         PR fortran/77516
2401         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2402         OMP_CLAUSE_SAFELEN_EXPR.
2404 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2406         * Makefile.in (OBJS): Add substring-locations.o.
2407         * langhooks-def.h (class substring_loc): New forward decl.
2408         (lhd_get_substring_location): New decl.
2409         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2410         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2411         * langhooks.c (lhd_get_substring_location): New function.
2412         * langhooks.h (class substring_loc): New forward decl.
2413         (struct lang_hooks): Add field get_substring_location.
2414         * substring-locations.c: New file, taking definition of
2415         format_warning_va and format_warning_at_substring from
2416         c-family/c-format.c, making them non-static.
2417         * substring-locations.h (class substring_loc): Move class here
2418         from c-family/c-common.h.  Add and rewrite comments.
2419         (format_warning_va): New decl.
2420         (format_warning_at_substring): New decl.
2421         (get_source_location_for_substring): Add comment.
2423 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
2425         * config/i386/i386.c: Add 'U' suffix to processor feature bits
2426         to avoid -Wnarrowing warning.
2427         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2428         * opts.c: Likewise for SANITIZER_OPT bitmasks.
2430 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
2432         * config/aarch64/aarch64.c (aarch64_legitimize_address):
2433         Avoid use of base_offset if offset already in range.
2435 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2437         * config/sh/sh-protos.h (struct sh_atomic_model,
2438         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2439         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2440         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2441         * config/sh/sh.h (struct sh_atomic_model,
2442         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2443         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2444         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2445         Guard with __cplusplus.
2447 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
2449         PR target/69255
2450         * config/i386/i386.c (ix86_expand_builtin): For builtin with
2451         unsupported or unknown ISA, use expand_call.
2453 2016-09-06  Martin Liska  <mliska@suse.cz>
2455         PR gcov-profile/77378
2456         PR gcov-profile/77466
2457         * tree-profile.c (tree_profiling): Detect whether target can use
2458         -fprofile-update=atomic.
2460 2016-09-06  Richard Biener  <rguenther@suse.de>
2462         PR tree-optimization/77479
2463         * tree-vrp.c (update_value_range): Extend overflow handling to
2464         VARYING.
2466 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2468         PR target/77476
2469         * config/i386/i386.md (isa): Add x64_avx512bw.
2470         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
2471         (kmov_isa): New mode attr.
2472         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
2473         (*zero_extend<mode>si2): Likewise.
2474         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
2476 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
2478         * doc/invoke.texi (SPU Options): nops -> NOPs.
2479         (x86 Options): Ditto.
2481 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2483         PR middle-end/77475
2484         * toplev.c (process_options): Temporarily set input_location
2485         to UNKNOWN_LOCATION around targetm.target_option.override () call.
2487 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
2489         PR rtl-optimization/77452
2490         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
2491         inner-mode reference to a CONST_VECTOR constant in the constant pool.
2493 2016-09-05  Marek Polacek  <polacek@redhat.com>
2495         PR c/77423
2496         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
2498 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2500         PR other/77421
2501         * gensupport.c (alter_output_for_subst_insn): Remove redundant
2502         *insn_out == '*' test.  Don't copy unnecessary to yet another
2503         memory buffer, and don't leak it.
2505         PR rtl-optimization/77425
2506         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2508 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2510         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2512 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2514         * common.opt (fdiagnostics-generate-patch): New option.
2515         * diagnostic.c: Include "edit-context.h".
2516         (diagnostic_initialize): Initialize context->edit_context_ptr.
2517         (diagnostic_finish): Delete context->edit_context_ptr.
2518         (diagnostic_report_diagnostic): Add fix-it hints from the
2519         diagnostic to context->edit_context_ptr, if any.
2520         * diagnostic.h (class edit_context): Add forward decl.
2521         (struct diagnostic_context): Add field "edit_context_ptr".
2522         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2523         -fdiagnostics-generate-patch.
2524         (-fdiagnostics-generate-patch): New item.
2525         * toplev.c: Include "edit-context.h".
2526         (process_options): Set global_dc->edit_context_ptr to a new
2527         edit_context if the options need one.
2528         (toplev::main): Handle -fdiagnostics-generate-patch by using
2529         global_dc->edit_context_ptr.
2531 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2533         PR c/65467
2534         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
2535         map and firstprivate clauses on target construct for _Atomic
2536         qualified decls.
2537         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
2538         on target construct for _Atomic qualified decls.
2539         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
2540         decls.
2541         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
2542         _Atomic qualified arguments not mentioned in uniform clause.
2544 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2546         * Makefile.in (OBJS-libcommon): Add edit-context.o.
2547         * diagnostic-color.c (color_dict): Add "diff-filename",
2548         "diff-hunk", "diff-delete", and "diff-insert".
2549         (parse_gcc_colors): Update default value of GCC_COLORS in comment
2550         to reflect above changes.
2551         * doc/invoke.texi (-fdiagnostics-color): Update description of
2552         default GCC_COLORS, and of the supported capabilities.
2553         * edit-context.c: New file.
2554         * edit-context.h: New file.
2555         * input.c (struct fcache): Add field "missing_trailing_newline".
2556         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
2557         true.
2558         (add_file_to_cache_tab): Likewise.
2559         (fcache::fcache): Likewise.
2560         (get_next_line): Update c->missing_trailing_newline.
2561         (location_missing_trailing_newline): New function.
2562         * input.h (location_missing_trailing_newline): New decl.
2563         * selftest-run-tests.c (selftest::run_tests): Call
2564         edit_context_c_tests.
2565         * selftest.h (edit_context_c_tests): New decl.
2567 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2568             Richard Biener  <rguenth@suse.de>
2570         PR tree-optimization/77444
2571         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
2572         as steptype, remove redundant initialization.
2574 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2576         PR sanitizer/77396
2577         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
2578         (sanopt_optimize_walker): Optimize away
2579         __asan_before_dynamic_init (...) followed by
2580         __asan_after_dynamic_init () without intervening memory loads/stores.
2581         * ipa-pure-const.c (special_builtin_state): Handle
2582         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
2583         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
2585 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2587         * cfg.c (free_original_copy_tables): Replace second assignment of
2588         bb_copy = NULL by bb_original = NULL. 
2590 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2592         PR other/77421
2593         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
2594         assignment added in r216794.
2596 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2598         * Makefile.in (OBJS): Add typed-splay-tree.o.
2599         * selftest-run-tests.c (selftest::run_tests): Call
2600         typed_splay_tree_c_tests.
2601         * selftest.h (typed_splay_tree_c_tests): New decl.
2602         * typed-splay-tree.c: New file.
2603         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
2604         (typed_splay_tree::max): New method.
2605         (typed_splay_tree::min): New method.
2606         (typed_splay_tree::foreach): New method.
2607         (typed_splay_tree::closure): New struct.
2608         (typed_splay_tree::inner_foreach_fn): New function.
2610 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2612         * ipa-cp.c (ipcp_store_bits_results): Change option name from
2613         -fipa-cp-bit to -fipa-bit-cp.
2615 2016-09-01  Martin Sebor  <msebor@redhat.com>
2617         PR tree-optimization/71831
2618         * tree-object-size.h: Return bool instead of the size and add
2619         argument for the size.
2620         * tree-object-size.c (compute_object_offset): Update signature.
2621         (addr_object_size): Same.
2622         (compute_builtin_object_size): Return bool instead of the size
2623         and add argument for the size.  Handle POINTER_PLUS_EXPR when
2624         optimization is disabled.
2625         (expr_object_size): Adjust.
2626         (plus_stmt_object_size): Adjust.
2627         (pass_object_sizes::execute): Adjust.
2628         * builtins.c (fold_builtin_object_size): Adjust.
2629         * doc/extend.texi (Object Size Checking): Update.
2630         * ubsan.c (instrument_object_size): Adjust.
2632 2016-09-01  Martin Sebor  <msebor@redhat.com>
2634         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
2635         it fits the output of the formatted function regardless of its
2636         arguments.
2637         * gcc/genmodes.c (parser::parse_expr): Same.
2638         * gimplify.c (gimplify_asm_expr): Same.
2639         * passes.c (pass_manager::register_one_dump_file): Same.
2640         * print-tree.c (print_node): Same.
2642 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2644         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
2646 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2648         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
2650 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2652         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
2653         * config/rs6000/vector.md: Ditto.
2654         * config/rs6000/vsx.md: Ditto.
2656 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2658         * ipa-inline-analysis.c (param_change_prob): Get to the base object
2659         first in all cases.
2661 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2663         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
2664         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
2665         *return_and_restore_gpregs_<mode>_r11,
2666         *return_and_restore_gpregs_<mode>_r12,
2667         *return_and_restore_gpregs_<mode>_r1,
2668         *return_and_restore_fpregs_<mode>_r11,
2669         *return_and_restore_fpregs_<mode>_r12,
2670         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
2671         directly instead of via the "l" constraint.  Renumber operands.
2672         Fix whitespace.
2674 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2676         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
2677         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
2678         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
2679         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
2680         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
2681         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
2682         *call_value_nonlocal_darwin64, reload_macho_picbase,
2683         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
2684         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
2685         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
2686         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
2687         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
2688         *save_fpregs_<mode>_r1): Ditto.
2689         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
2690         *return_and_restore_gpregs_spe): Ditto.
2692 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2694         * config/rs6000/rs6000.md
2695         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
2696         the use of the link register.
2697         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
2699 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2700             Michael Meissner  <meissner@linux.vnet.ibm.com>
2702         PR target/72827
2703         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
2704         reg+reg addressing for TImode.
2705         (rs6000_legitimate_address_p): Only allow register indirect
2706         addressing for TImode, even without TARGET_QUAD_MEMORY.
2708 2016-09-01  Richard Biener  <rguenther@suse.de>
2710         PR middle-end/77436
2711         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
2712         check whether the result fits the desired result type.
2714 2016-09-01  Nathan Sidwell  <nathan@acm.org>
2716         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
2718 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
2720         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
2721         New function.
2722         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
2724 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2726         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
2727         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
2728         for comparisons of integer ZERO_EXTEND against zero.
2730 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2732         * config/i386/i386.c (ix86_option_override_internal): Also disable the
2733         STV pass if -mstackrealign is enabled.
2735 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
2737         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
2738         AVX512IFMA.
2740 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
2742         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
2743         (layout_range::intersects_line_p): New method.
2744         (test_range_contains_point_for_single_point): Rename to...
2745         (test_layout_range_for_single_point): ...this, and add testing
2746         for layout_range::intersects_line_p.
2747         (test_range_contains_point_for_single_line): Rename to...
2748         (test_layout_range_for_single_line): ...this,  and add testing
2749         for layout_range::intersects_line_p.
2750         (test_range_contains_point_for_multiple_lines): Rename to...
2751         (test_layout_range_for_multiple_lines): ...this,  and add testing
2752         for layout_range::intersects_line_p.
2753         (layout::layout): Populate m_fixit_hints.
2754         (layout::get_expanded_location): Handle the case of a line-span
2755         for a fix-it hint.
2756         (layout::validate_fixit_hint_p): New method.
2757         (get_line_span_for_fixit_hint): New function.
2758         (layout::calculate_line_spans): Add spans for fixit-hints.
2759         (layout::should_print_annotation_line_p): New method.
2760         (layout::print_any_fixits): Drop param "richloc", instead using
2761         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
2762         (diagnostic_show_locus): Avoid printing blank annotation lines.
2763         (selftest::test_diagnostic_context::test_diagnostic_context):
2764         Initialize show_column and start_span.
2765         (selftest::test_diagnostic_context::start_span_cb): New static
2766         function.
2767         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
2768         (selftest::diagnostic_show_locus_c_tests): Update for function
2769         renamings.  Call test_diagnostic_show_locus_fixit_lines.
2771 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
2773         PR tree-optimization/73714
2774         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
2776 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
2778         * selftest.c: Move "namespace selftest {" to top of file,
2779         removing explicit "selftest::" qualifiers throughout.
2781 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
2783         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
2784         New types.
2785         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
2786         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
2787         Replace builtin with vector extension.
2788         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
2789         New types.
2790         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
2791         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
2792         Replace builtin with vector extension.
2793         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
2794         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
2795         Replace builtin with vector extension.
2796         * config/i386/xmmintrin.h (__m128_u): New type.
2797         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
2798         (_mm_load_ps, _mm_store_ps): Simplify.
2800 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
2802         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
2804 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
2806         * diagnostic-show-locus.c (colorizer::begin_state): Support more
2807         than 3 ranges per diagnostic by alternating between color 1 and
2808         color 2.
2809         (layout::layout): Replace use of rich_location::MAX_RANGES
2810         with richloc->get_num_locations ().
2811         (layout::calculate_line_spans): Replace use of
2812         rich_location::MAX_RANGES with m_layout_ranges.length ().
2813         (layout::print_annotation_line): Handle arbitrary numbers of
2814         ranges in caret-printing by defaulting to '^'.
2815         (selftest::test_one_liner_many_fixits): New function.
2816         (test_diagnostic_show_locus_one_liner): Call it.
2817         * diagnostic.c (diagnostic_initialize): Update for renaming
2818         of rich_location::MAX_RANGES to
2819         rich_location::STATICALLY_ALLOCATED_RANGES.
2820         * diagnostic.h (struct diagnostic_context): Likewise.
2822 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
2824         * selftest.c (selftest::named_temp_file::named_temp_file): New
2825         ctor.
2826         (selftest::temp_source_file::~temp_source_file): Move to...
2827         (selftest::named_temp_file::~named_temp_file): ...here.
2828         (selftest::test_named_temp_file): New function.
2829         (selftest::selftest_c_tests): Call test_named_temp_file.
2830         * selftest.h (class named_temp_file): New class.
2831         (class temp_source_file): Convert to a subclass of named_temp_file.
2833 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
2835         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
2836         USEs of LR_REGNO in returns and sibcalls.
2837         (rs6000_output_mi_thunk): Similar.
2838         (rs6000_sibcall_aix): Similar.
2839         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
2840         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
2841         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
2842         Remove the USE of LR_REGNO from the patterns as well.  Delete an
2843         obsolete comment.
2844         (return_internal_<mode>): Delete.
2846 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
2848         * gcc/config/aarch64/aarch64-simd.md
2849         (aarch64_ld2<mode>_dreg_le): New.
2850         (aarch64_ld2<mode>_dreg_be): New.
2851         (aarch64_ld2<mode>_dreg): Removed.
2852         (aarch64_ld3<mode>_dreg_le): New.
2853         (aarch64_ld3<mode>_dreg_be): New.
2854         (aarch64_ld3<mode>_dreg): Removed.
2855         (aarch64_ld4<mode>_dreg_le): New.
2856         (aarch64_ld4<mode>_dreg_be): New.
2857         (aarch64_ld4<mode>_dreg): Removed.
2858         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
2860 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
2862         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
2863         redundant location param.
2864         (test_one_liner_fixit_remove): Likewise.
2865         (test_one_liner_fixit_replace): Likewise.
2866         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
2867         * gcc-rich-location.c
2868         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
2869         get_range_from_loc.  Drop overload taking a const char *.
2870         * gcc-rich-location.h
2871         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
2872         a const char *.
2874 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2876         * config/linux.c (linux_libc_has_function): Return true on musl.
2878 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2880         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
2882 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
2884         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
2885         used for abnormal egdes.
2887 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
2889         PR tree-optimization/72866
2890         * tree-vect-patterns.c (search_type_for_mask): Turn into
2891         a small wrapper, move all code to ...
2892         (search_type_for_mask_1): ... this new function.  Add caching
2893         and adjust recursive calls.
2895         PR debug/77363
2896         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
2897         instead of lookup_type_die (type_main_variant (type)) even for array
2898         types.
2900         PR middle-end/77377
2901         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
2902         constant pool reference return x instead of c.
2904 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
2906         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
2907         include MQ.
2909 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2911         * input.c
2912         (selftest::test_make_location_nonpure_range_endpoints): Fix
2913         header comment.
2915 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2917         * diagnostic-show-locus.c
2918         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
2919         function.
2920         (selftest::test_diagnostic_show_locus_one_liner): Call it.
2921         * input.c (get_pure_location): Move to libcpp/line-map.c.
2922         * input.h (get_pure_location): Convert decl to an inline function
2923         calling implementation in libcpp.
2925 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
2927         PR target/77403
2928         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
2929         template for intel asm dialect.
2930         (vec_set_hi_<mode><mask_name>): Ditto.
2932 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2934         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
2935         (selftest::fail_formatted): Likewise.
2937 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2939         * input.c (make_location): Call get_start and get_finish
2940         on the endpoints to avoid storing packed ranges or ad-hoc
2941         ranges in them.
2942         (selftest::test_make_location_nonpure_range_endpoints): New function.
2943         (selftest::input_c_tests): Call it.
2944         * input.h (get_start): New inline function.
2946 2016-08-29  Tom de Vries  <tom@codesourcery.com>
2948         PR c/77398
2949         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
2950         with assert.
2952 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
2954         * Makefile.in (gcov-iov.h): Add dummy recipe.
2956 2016-08-29  Nathan Sidwell  <nathan@acm.org>
2958         * config/nvptx/nvptx.c: #include tree-vrp.h.
2960 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
2962         PR target/77324
2963         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
2964         HIGH+LO construct during reload.
2966 2016-08-28  Tom de Vries  <tom@codesourcery.com>
2968         PR lto/70955
2969         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
2970         'sysv_abi va_list' attribute.
2971         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
2972         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
2973         attributes.
2975 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2977         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
2978         * emit-rtl.c (unshare_all_rtl_1): Adjust.
2979         (unshare_all_rtl_again): Likewise.
2980         * function.c (assign_stack_local_1): Likewise.
2981         (assign_stack_temp_for_type): Likewise.
2983 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2985         * cfgbuild.c (make_edges): Adjust.
2986         * cfgrtl.c (can_delete_label_p): Likewise.
2987         * dwarf2cfi.c (create_trace_edges): Likewise.
2988         * except.c (sjlj_emit_dispatch_table): Likewise.
2989         * function.h (struct expr_status): make x_forced_labels a vector.
2990         * jump.c (rebuild_jump_labels_1): Adjust.
2991         * reload1.c (set_initial_label_offsets): Likewise.
2992         * stmt.c (force_label_rtx): Likewise.
2993         (expand_label): Likewise.
2995 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2997         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
2999 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
3001         PR tree-optimization/71077
3002         PR tree-optimization/68542
3003         * fold-const.c (fold_relational_const): Fix folding of
3004         VECTOR_CST comparisons that have a scalar boolean result type.
3005         (selftest::test_vector_folding): New static function.
3006         (selftest::fold_const_c_tests): Call it.
3008 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
3010         * doc/extend.texi (SPU Built-in Functions): Remove stale
3011         references to material formerly at IBM and Sony.
3013 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
3015         PR target/77349
3016         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3018 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3020         * diagnostic-show-locus.c
3021         (selftest::test_fixit_consolidation): New function.
3022         (selftest::diagnostic_show_locus_c_tests): Call it.
3023         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
3024         constructor based on source_range.
3026 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3028         * diagnostic-color.c (color_dict): Add "fixit-insert" and
3029         "fixit-delete".
3030         (parse_gcc_colors): Update description of default GCC_COLORS.
3031         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
3032         (colorizer::set_fixit_insert): New method.
3033         (colorizer::set_fixit_delete): New method.
3034         (colorizer::get_color_by_name): New method.
3035         (colorizer::STATE_FIXIT_INSERT): New constant.
3036         (colorizer::STATE_FIXIT_DELETE): New constant.
3037         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
3038         fields in favor of new field "m_stop_color".  Add fields
3039         "m_fixit_insert" and "m_fixit_delete".
3040         (colorizer::colorizer): Update for above changes.  Replace
3041         colorize_start calls with calls to get_color_by_name.
3042         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
3043         STATE_FIXIT_DELETE.  Update for field renamings.
3044         (colorizer::finish_state): Simplify by using m_stop_color,
3045         rather than multiple identical "*_ce" fields.
3046         (colorizer::get_color_by_name): New method.
3047         (layout::print_any_fixits): Print insertions and replacements
3048         using the "fixit-insert" color, and deletions using the
3049         "fixit-delete" color.
3050         * doc/invoke.texi (-fdiagnostics-color): Update description of
3051         default GCC_COLORS, and of the supported capabilities.
3053 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
3055         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
3056         current_function_static_stack_size variable with the static
3057         stack frame size of the current function when
3058         flag_stack_usage_info is enabled.
3060 2016-08-26  Nathan Sidwell  <nathan@acm.org>
3062         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
3063         assignment inside if condition.
3065 2016-08-26  Richard Biener  <rguenther@suse.de>
3067         PR tree-optimization/69047
3068         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
3069         extracts similar to what FRE does.
3070         (non_rewritable_mem_ref_base): Likewise.
3072 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
3074         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
3075         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3076         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3077         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3078         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
3079         Likewise.
3080         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3081         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3082         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3083         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
3084         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3086 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3088         PR target/70473
3089         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
3090         reservation duration to 15 cycles.
3091         (cortex_a8_vfp_macs): Likewise.
3092         (cortex_a8_vfp_macd): Likewise.
3093         (cortex_a8_vfp_divs): Likewise.
3094         (cortex_a8_vfp_divd): Likewise.
3096 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3098         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
3099         (aarch_macro_fusion_pair_p): Use above to avoid early return.
3101 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3102             Martin Jambhor  <mjambor@suse.cz>
3104         * common.opt: New option -fipa-bit-cp.
3105         * doc/invoke.texi: Document -fipa-bit-cp.
3106         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
3107         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
3108         * tree-ssa-ccp.h: New header file.
3109         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
3110         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
3111         Replace all occurences of tree parameter by two new params: signop, int.
3112         (bit_value_unop_1): Change to bit_value_unop and export it.
3113         Replace all occurences of tree parameter by two new params: signop,
3114         int.
3115         (bit_value_binop): Change call from bit_value_binop_1 to
3116         bit_value_binop.
3117         (bit_value_assume_aligned): Likewise.
3118         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
3119         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
3120         to ccp_finalize.
3121         (ccp_finalize): Skip processing if val->mask == 0.
3122         * ipa-cp.c: Include tree-ssa-ccp.h
3123         (ipcp_bits_lattice): New class.
3124         (ipcp_param_lattice (bits_lattice): New member.
3125         (print_all_lattices): Call ipcp_bits_lattice::print.
3126         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
3127         (initialize_node_lattices): Likewise.
3128         (propagate_bits_accross_jump_function): New function.
3129         (propagate_constants_accross_call): Call
3130         propagate_bits_accross_jump_function.
3131         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
3132         (ipcp_store_bits_results): New function.
3133         (ipcp_driver): Call ipcp_store_bits_results.
3134         * ipa-prop.h (ipa_bits): New struct.
3135         (ipa_jump_func): Add new member bits of type ipa_bits.
3136         (ipa_param_descriptor): Change decl to decl_or_type.
3137         (ipa_get_param): Change decl to decl_or_type and assert on
3138         PARM_DECL.
3139         (ipa_get_type): New function.
3140         (ipcp_transformation_summary): New member bits.
3141         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
3142         (ipa_populate_param_decls): Likewise.
3143         (ipa_dump_param): Likewise.
3144         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
3145         function.
3146         (ipa_set_jf_unknown): Set ipa_bits::known to false.
3147         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
3148         propagation.
3149         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
3150         (ipa_write_jump_function): Add streaming for ipa_bits.
3151         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
3152         (write_ipcp_transformation_info): Add streaming for ipa_bits
3153         summary for ltrans.
3154         (read_ipcp_transfomration_info): Add support for reading streamed
3155         ipa_bits.
3156         (ipcp_update_bits): New function.
3157         (ipcp_transform_function): Call ipcp_update_bits.
3159 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3161         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
3162         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
3164 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
3166         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
3168 2016-08-25  Richard Biener  <rguenther@suse.de>
3170         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3171         Only add locations in late dwarf.
3172         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
3173         (dwarf2out_early_finish): But do it here.
3175 2016-08-24  Michael Collison  <michael.collison@linaro.org>
3176             Michael Collison  <michael.collison@arm.com>
3178         * config/arm/arm-modes.def: Add new condition code mode CC_V
3179         to represent the overflow bit.
3180         * config/arm/arm.c (maybe_get_arm_condition_code):
3181         Add support for CC_Vmode.
3182         (arm_gen_unlikely_cbranch): New function to generate common
3183         rtl conditional branches for overflow patterns.
3184         * config/arm/arm-protos.h: Add prototype for
3185         arm_gen_unlikely_cbranch.
3186         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
3187         addsi3_compareV_upper): New patterns to support signed
3188         builtin overflow add operations.
3189         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
3190         New patterns to support unsigned builtin add overflow operations.
3191         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
3192         builtin overflow subtract operations,
3193         (usubv<mode>4): New patterns to support unsigned builtin subtract
3194         overflow operations.
3195         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
3196         to support builtin overflow negate operations.
3198 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3200         Revert
3201         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3203         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3204         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3205         needed.
3207 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3209         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
3210         MULTILIB_OPTIONS should be used.  Small wording fixes.
3211         * genmultilib: Memorize set of all option combinations in
3212         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
3213         found in MULTILIB_OPTIONS by checking if option set is listed in
3214         combination_space.  Output new and existing error message to stderr.
3216 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3218         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
3219         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
3220         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
3221         (MULTILIB_REUSE): Remove reuse rules for option set including
3222         -mfpu=fp-armv8 and -mfpu=vfpv4
3224 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3226         * config/arm/t-rtems: Add vfp multilib.
3228 2016-08-23  Ian Lance Taylor  <iant@golang.org>
3230         * config/s390/s390.c (s390_asm_file_start): Call
3231         default_file_start.
3233 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3235         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
3236         initialization of all 0's to the 0 constant, instead of directly
3237         generating XOR.  Add support for V4SImode vector initialization on
3238         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
3239         initialization.  Change variables used in V4SFmode vector
3240         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
3241         any memory addresses are in index form.  Add support for using
3242         VSPLTH/VSPLTB to initialize vector short and vector char vectors
3243         with all of the same element.
3244         (regno_or_subregno): New helper function to return a register
3245         number for either REG or SUBREG.
3246         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
3247         Use regno_or_subregno where possible.
3248         (rs6000_split_v4si_init_di_reg): New helper function to build up a
3249         DImode value from two SImode values in order to generate V4SImode
3250         vector initialization on 64-bit systems with direct move.
3251         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
3252         initialization.
3253         (rtx_is_swappable_p): V4SImode vector initialization insn is not
3254         swappable.
3255         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
3256         declaration.
3257         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
3258         attributes to initialize V8HImode and V16QImode vectors with the
3259         same element.
3260         (VSX_SPLAT_COUNT): Likewise.
3261         (VSX_SPLAT_SUFFIX): Likewise.
3262         (UNSPEC_VSX_VEC_INIT): New unspec.
3263         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
3264         Allow SFmode values to come from Altivec registers.
3265         (vsx_init_v4si): New insn/split for V4SImode vector initialization
3266         on 64-bit systems with direct move.
3267         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
3268         vector initializations, to allow V4SImode vector initializations
3269         on 64-bit systems with direct move.
3270         (vsx_splat_v4si): Likewise.
3271         (vsx_splat_v4si_di): Likewise.
3272         (vsx_splat_v4sf): Likewise.
3273         (vsx_splat_v4sf_internal): Likewise.
3274         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
3275         register classes.
3276         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
3277         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
3278         initializing V8HImode and V16QImode vectors with the same
3279         element.
3280         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
3281         optimization if -maltivec=be.
3283 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
3285         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
3286         attribute for alternatives 3 and 4.
3288 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
3290         * selftest.c (selftest::assert_str_contains): New function.
3291         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
3292         * selftest.h (selftest::assert_str_contains): New decl.
3293         (ASSERT_STR_CONTAINS): New macro.
3295 2016-08-23  Richard Biener  <rguenther@suse.de>
3297         PR tree-optimization/77286
3298         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
3299         the CFG here.
3300         (vect_transform_loop): Split exit edges of loop and scalar
3301         loop if required and at the appropriate time.
3303 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3305         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3306         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3307         needed.
3308         Correct a typo in a comment.
3310 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3312         * config/s390/s390.md ("*andc_split"): New splitter for and with
3313         complement.
3315 2016-08-23  Richard Biener  <rguenther@suse.de>
3317         PR tree-optimization/27336
3318         * tree-vrp.c (infer_value_range): Handle stmts that can throw
3319         by looking for a non-EH edge.
3320         (process_assert_insertions_for): Likewise.
3322 2016-08-23  Richard Biener  <rguenther@suse.de>
3324         PR middle-end/77305
3325         * statistics.c (statistics_counter_event): Robustify against
3326         NULL current_pass.
3328 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3330         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3331         for targets amdfam10 and barcelona.
3333 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
3335         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
3336         (zero_extend<mode>di2): Ditto.
3337         (*zero_extend<mode>si2): Ditto.
3338         (*zero_extendqihi2): Ditto.
3340 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3342         PR middle-end/77269
3343         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
3344         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
3346 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
3348         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
3349         identical consecutive elements.
3350         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
3351         the node's def stmt, avoid printing an unwanted trailing newline by
3352         replacing the call to print_gimple_stmt() with its inlined body and
3353         adjusting it to not set pp_needs_newline and to call pp_flush()
3354         instead of pp_newline_and_flush().
3356 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3358         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3359         (float32_type_node, float64_type_node, float32x_type_node)
3360         (float128x_type_node): New macros.
3361         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3362         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3363         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3364         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3365         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3366         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3367         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3368         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3369         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3370         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3371         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3372         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3373         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3374         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3375         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3376         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3377         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3378         (copysign, fabs, huge_val, inf, nan, nans): Use it.
3379         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3380         and copysign.
3381         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3382         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3383         * doc/extend.texi (Other Builtins): Document these built-in
3384         functions.
3385         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3386         for nan and nans.
3388 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
3390         * doc/install.texi (Binaries): www.opencsw.org now uses https.
3392 2016-08-22  Richard Biener  <rguenther@suse.de>
3394         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3396 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
3398         PR target/77270
3399         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3400         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3401         non-SSE2 athlons only, otherwise prefer SSE prefetches.
3403 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3405         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3406         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3407         (vrp_visit_switch_stmt): Likewise.
3408         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3409         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3410         (vrp_visit_stmt): Use extract_range_from_stmt.
3411         (vrp_visit_phi_node): Use extract_range_from_phi_node.
3413 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3415         * Makefile.in: Add tree-vrp.h to GTFILES.
3416         * gengtype.c (open_base_files): Add tree-vrp.h.
3417         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3418         * builtins.c: Likewise.
3419         * fold-const.c: Likewise.
3420         * gimple-builder.c: Likewise.
3421         * gimple-laddress.c: Likewise.
3422         * hsa-gen.c: Likewise.
3423         * internal-fn.c: Likewise.
3424         * ssa.h: Likewise.
3425         * targhooks.c: Liewise,
3426         * tree-ssa-address.c: Likewise.
3427         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3428         * tree-vrp.c (struct value_range): Move to tree-vrp.h
3429         * tree-vrp.h: New file.
3431 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3433         PR tree-optimization/61839
3434         * tree-vrp.c (two_valued_val_range_p): New.
3435         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3436         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3437         Also Convert VAR BINOP CST where VAR is two-valued to
3438         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3440 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
3442         * diagnostic-show-locus.c
3443         (layout::annotation_line_showed_range_p): New method.
3444         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3445         Reimplement case fixit_hint::REPLACE to cover removals, and
3446         replacements where the range of the replacement isn't one
3447         of the ranges in the rich_location.
3448         (test_one_liner_fixit_replace): Likewise.
3449         (selftest::test_one_liner_fixit_replace_non_equal_range): New
3450         function.
3451         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
3452         New function.
3453         (selftest::test_diagnostic_show_locus_one_liner): Call the new
3454         functions.
3455         * diagnostic.c (print_parseable_fixits): Remove case
3456         fixit_hint::REMOVE.
3458 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
3460         PR target/77270
3461         * config/i386/i386.c (ix86_option_override_internal): Remove
3462         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3463         Enable SSE prefetch also for TARGET_PREFETCHWT1.
3464         Do not try to enable TARGET_PRFCHW ISA flag here.
3465         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3466         Rewrite expander function body.
3467         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3469 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
3471         PR c/32187
3472         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
3473         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
3474         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
3475         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
3476         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
3477         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
3478         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
3479         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
3480         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
3481         tree_index values.
3482         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
3483         macros.
3484         (struct floatn_type_info): New structure type.
3485         (floatn_nx_types): New variable declaration.
3486         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
3487         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
3488         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
3489         * tree.c (floatn_nx_types): New variable.
3490         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
3491         corresponding complex types.
3492         * target.def (floatn_mode): New hook.
3493         * targhooks.c: Include "real.h".
3494         (default_floatn_mode): New function.
3495         * targhooks.h (default_floatn_mode): New prototype.
3496         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
3497         types.
3498         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
3499         effective-target and dg-add-options keywords.
3500         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
3501         Document new effective-target keywords.
3502         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
3503         * doc/tm.texi: Regenerate.
3504         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
3505         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
3506         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
3507         18661-3.
3508         * real.h (struct real_format): Add field ieee_bits.
3509         * real.c (ieee_single_format, mips_single_format)
3510         (motorola_single_format, spu_single_format, ieee_double_format)
3511         (mips_double_format, motorola_double_format)
3512         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
3513         (ieee_extended_intel_128_format)
3514         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
3515         (mips_extended_format, ieee_quad_format, mips_quad_format)
3516         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
3517         (decimal_double_format, decimal_quad_format, ieee_half_format)
3518         (arm_half_format, real_internal_format: Initialize ieee_bits
3519         field.
3520         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
3521         float128_type_node.  Set float80_type_node to float64x_type_node
3522         if appropriate and long_double_type_node not appropriate.
3523         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
3524         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
3525         Initialize ieee_bits field.
3526         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
3527         (rs6000_init_builtins): Set ieee128_float_type_node to
3528         float128_type_node.
3529         (rs6000_floatn_mode): New function.
3531 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
3533         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3534         _rdseed64_step): Uglify argument names and/or local variable names
3535         in inline functions.
3536         * config/i386/rtmintrin.h (_xabort): Likewise.
3537         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
3538         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
3539         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
3540         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
3541         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
3542         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
3543         _mm_maskz_ternarylogic_epi32): Likewise.
3544         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
3545         __lwpins32, __lwpins64): Likewise.
3546         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
3547         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
3548         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
3549         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
3550         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
3551         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
3552         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
3553         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
3554         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
3555         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
3556         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
3557         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
3558         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
3559         _mm256_mask_i64gather_epi32): Likewise.
3560         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3561         * config/i386/ia32intrin.h (__writeeflags): Likewise.
3562         * config/i386/pkuintrin.h (_wrpkru): Likewise.
3563         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
3564         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
3565         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
3566         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
3567         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
3568         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
3569         _mm512_mask_prefetch_i64scatter_ps): Likewise.
3570         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3571         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
3572         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
3573         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
3574         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
3575         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
3576         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
3577         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
3579         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
3580         returning void.
3581         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
3582         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
3583         Likewise.
3584         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
3585         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
3586         function name.
3587         (_rdpkru_u32): Add space after function name.
3589         * config/i386/t-i386 (i386-c.o): Don't depend on
3590         i386-builtin-types.inc.
3591         (i386.o): Depend on i386-builtin-types.inc.
3593 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
3595         PR target/77281
3596         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
3597         Use const_vec_duplicate to check for duplicated elements.
3599 2016-08-19  Richard Biener  <rguenther@suse.de>
3601         PR tree-optimization/77290
3602         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3603         Fix flag_tree_parallelize_loops check.
3605 2016-08-19  Richard Biener  <rguenther@suse.de>
3607         * match.pd (x | 0 -> x): Add.
3609 2016-08-19  Richard Biener  <rguenther@suse.de>
3611         PR tree-optimization/77286
3612         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3613         Deal with virtual PHIs being out-of-order.
3615 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3617         * doc/invoke.texi (fverbose-asm): Note that source code lines
3618         are emitted, and provide an example.
3619         * final.c (asm_show_source): New function.
3620         (final_scan_insn): Call asm_show_source.
3622 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3624         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
3625         param with diagnostic_kind.
3626         (class colorizer): Similarly replace field m_diagnostic with
3627         m_diagnostic_kind.
3628         (colorizer::colorizer): Replace diagnostic
3629         param with diagnostic_kind.
3630         (colorizer::begin_state): Update for above field change.
3631         (layout::layout): Replace diagnostic param with rich_location *
3632         and diagnostic_kind.
3633         (diagnostic_show_locus): Replace diagnostic param with richloc
3634         and diagnostic_kind.
3635         (class selftest::test_diagnostic_context): New class.
3636         (selftest::test_diagnostic_show_locus_unknown_location): New
3637         function.
3638         (selftest::test_one_liner_simple_caret): New function.
3639         (selftest::test_one_liner_caret_and_range): New function.
3640         (selftest::test_one_liner_multiple_carets_and_ranges): New
3641         function.
3642         (selftest::test_one_liner_fixit_remove): New function.
3643         (selftest::test_one_liner_fixit_replace): New function.
3644         (selftest::test_diagnostic_show_locus_one_liner): New function.
3645         (selftest::diagnostic_show_locus_c_tests): Call the new test
3646         functions.
3647         * diagnostic.c (diagnostic_initialize): Initialize
3648         colorize_source_p, show_ruler_p and parseable_fixits_p.
3649         (default_diagnostic_finalizer): Update for change to
3650         diagnostic_show_locus.
3651         (diagnostic_append_note): Likewise.
3652         * diagnostic.h (diagnostic_show_locus): Replace
3653         const diagnostic_info * param with location * and diagnostic_t.
3655 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3657         * input.c (saved_line_table): New global.
3658         (class selftest::temp_line_table): Rename to line_table_test and
3659         move declaration to selftest.h, and drop field m_old_line_table.
3660         (selftest::temp_line_table::temp_line_table): Rename ctor to...
3661         (selftest::line_table_test::line_table_test): ...this.  Add a
3662         default ctor.  Store current value of line_table within
3663         saved_line_table.
3664         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
3665         (selftest::line_table_test::~line_table_test): ...this, and
3666         restore line_table from the saved_line_table, rather than
3667         m_old_line_table.
3668         (selftest::test_accessing_ordinary_linemaps): Update for above
3669         renaming.
3670         (selftest::test_lexer): Likewise.
3671         (struct selftest::lexer_test): Likewise.
3672         (selftest::lexer_test::lexer_test): Likewise.
3673         (selftest::input_c_tests): Move the looping over test cases from
3674         here into...
3675         (selftest::for_each_line_table_case): New function.
3676         * input.h (saved_line_table): New decl.
3677         * selftest.h (struct selftest::line_table_case): New forward decl.
3678         (class selftest::line_table_test): New class, moved here from
3679         selftest::temp_line_table in input.c, and renamed.
3680         (selftest::for_each_line_table_case): New decl.
3682 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3684         PR target/72839
3685         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
3687 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
3689         PR middle-end/70895
3690         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
3691         enclosing parallel construct for reduction variables on OpenACC loop
3692         directives.
3694 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
3696         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
3697         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
3698         -gdwarf-3.
3699         (function_to_dwarf_procedure): Update comment.
3701 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3703         * input.c (diagnostics_file_cache_forcibly_evict_file): New
3704         function.
3705         * input.h (diagnostics_file_cache_forcibly_evict_file): New
3706         declaration.
3707         * selftest.c (selftest::temp_source_file::~temp_source_file):
3708         Evict m_filename from the diagnostic file cache.
3710 2016-08-18  Richard Biener  <rguenther@suse.de>
3712         * tree-pass.h (make_pass_materialize_all_clones): Declare.
3713         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
3714         make_pass_materialize_all_clones): New simple IPA pass encapsulating
3715         clone materialization.
3716         * passes.def (all_late_ipa_passes): Start with
3717         pass_materialize_all_clones.
3718         * cgraphunit.c (symbol_table::compile): Remove call to
3719         materialize_all_clones.
3720         * tree-into-ssa.c: Include statistics.h.
3721         (update_ssa): Count number of times we do incremental/rewrite
3722         SSA update.
3724 2016-08-18  Richard Biener  <rguenther@suse.de>
3726         PR tree-optimization/77282
3727         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3728         When doing auto-parallelizing also prevent use of PHIs that
3729         carry dependences across loop backedges.
3731 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
3732             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3734         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
3736 2016-08-18  Richard Biener  <rguenther@suse.de>
3738         * ssa-iterators.h (ssa_vuse_operand): New inline.
3739         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
3740         (predicate_all_scalar_phis): Use remove_phi_node to remove
3741         phi nodes predicated.  Delay removing virtual PHIs.
3742         (predicate_mem_writes): Update virtual operands.
3743         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
3744         (tree_if_conversion): Do not rewrite virtual SSA form.
3745         * tree-phinodes.c (release_phi_node): Make static.
3746         * tree-phinodes.h (release_phi_node): Remove.
3748 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
3750         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
3751         codes that appear in bdesc_* arrays, instead include i386-builtin.def
3752         twice to define those.
3753         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
3754         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
3755         bdesc_multi_arg): Define by including i386-builtin.def the third time.
3756         * config/i386/i386-builtin.def: New file.
3758 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
3760         * input.c (get_source_range_for_char): Rename to...
3761         (selftest::get_source_range_for_char): ...this, and move within
3762         the #if CHECKING_P guard.
3763         (get_num_source_ranges_for_substring): Rename to...
3764         (selftest::get_num_source_ranges_for_substring): ...this, move
3765         within the #if CHECKING_P guard, and make static.
3766         (selftest::assert_num_substring_ranges): Initialize
3767         actual_num_ranges.
3769 2016-08-18  Alan Modra  <amodra@gmail.com>
3771         PR rtl-optimization/72771
3772         * reload.c (find_reloads): Don't assume that a subreg mem is OK
3773         when find_reloads_toplev returns address_reloaded==-1.
3774         (alternative_allows_const_pool_ref): Update comment.
3776 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
3778         PR tree-optimization/71752
3779         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
3780         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
3782 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
3784         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
3785         instead of testing ECF_NORETURN bit in gimple_call_flags.
3786         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
3787         * predict.c (tree_bb_level_predictions): Likewise.
3788         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
3790         PR middle-end/77259
3791         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
3792         turning a call into __builtin_unreachable-like noreturn call, adjust
3793         gimple_call_set_fntype.
3794         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
3795         gimple_call_fntype has void return type.
3797 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
3799         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
3800         maybe_lookup_decl, to handle nested acc loop directives.
3802 2016-08-17  Richard Biener  <rguenther@suse.de>
3804         PR tree-optimization/76490
3805         * tree-vrp.c (update_value_range): Preserve overflow infinities
3806         when intersecting with ranges from get_range_info.
3807         (operand_less_p): Handle overflow infinities correctly.
3808         (value_range_constant_singleton): Use vrp_operand_equal_p
3809         to handle overflow max/min correctly.
3810         (vrp_valueize): Likewise.
3811         (union_ranges): Likewise.
3812         (intersect_ranges): Likewise.
3813         (vrp_visit_phi_node): Improve iteration limitation to only
3814         apply when we'll possibly re-visit the PHI via a changed argument
3815         on the backedge.
3817 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3819         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
3820         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
3821         rather than those that should not be built.
3823 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
3825         PR target/66488
3826         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
3828 2016-08-17  Richard Biener  <rguenther@suse.de>
3830         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
3831         (verify_vssa): New function verifying virtual SSA form.
3832         (verify_ssa): Call it.
3833         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
3834         Do not apply loop-closed SSA handling to virtuals.
3835         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
3836         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
3837         when rewriting their symbol.
3838         (prepare_def_site_for): Likewise.
3839         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
3840         operands of moved stmts.
3842 2016-08-17  Richard Biener  <rguenther@suse.de>
3844         PR tree-optimization/23855
3845         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
3846         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
3847         find guards to hoist.  Do not update SSA form but rewrite virtuals
3848         into loop closed SSA.
3849         (find_loop_guard): Adjust to skip already hoisted guards.  Do
3850         not mark virtuals for renaming or update SSA form.
3852 2016-08-17  Martin Liska  <mliska@suse.cz>
3854         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
3855         a LONG_LONG_TYPE_SIZE comparison.
3856         * gcov-io.h: Remove macro definitions.
3857         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
3858         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
3859         comparison.
3861 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
3863         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
3864         that builtins not mentioned in bdesc_* arrays come first, then
3865         the ones mentioned in bdesc_* arrays in the order they appear in
3866         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
3867         IX86_BUILTIN__BDESC_*_LAST enumerator.
3868         (bdesc_mpx): Fix up a comment typo.
3869         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
3870         __builtin_ia32_vpcomneu[bwdq] builtins.
3871         (BDESC_VERIFY, BDESC_VERIFYS): Define.
3872         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
3873         enum ix86_builtins ordering.
3874         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
3875         for direct bdesc_* array member access instead of searching all the
3876         arrays until an fcode match is found.
3878 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
3880         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
3881         pattern as define_insn_and_split.  Split insn before reload to
3882         ashl<mode>3_1.
3883         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
3884         <shift_insn><mode>3_1.
3885         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
3886         <rotate_insn><mode>3_1.
3888 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
3890         PR c/72857
3891         * input.c (get_source_range_for_substring): Rename to...
3892         (get_source_location_for_substring): ...this, adding param
3893         "caret_idx", and converting output param from source_range * to
3894         location_t *.
3895         (get_source_range_for_char): New function.
3896         (get_num_source_ranges_for_substring): Update comment to reflect
3897         above renaming.
3898         (assert_char_at_range): Update to use get_source_range_for_char
3899         rather than get_source_range_for_substring.
3900         (test_lexer_string_locations_concatenation_2): Likewise.
3901         * substring-locations.h (get_source_range_for_substring): Rename
3902         to...
3903         (get_source_location_for_substring): ...this, and adding param
3904         "caret_idx", and converting output param from source_range * to
3905         location_t *.
3907 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
3909         * input.c (class selftest::temp_source_file): Move to
3910         selftest.h.
3911         (selftest::temp_source_file::temp_source_file): Move to
3912         selftest.c.
3913         (selftest::temp_source_file::~temp_source_file): Likewise.
3914         * selftest.c (selftest::temp_source_file::temp_source_file): Move
3915         here from input.c.
3916         (selftest::temp_source_file::~temp_source_file): Likewise.
3917         * selftest.h (class selftest::temp_source_file): Move here from
3918         input.c
3920 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
3922         PR target/71910
3923         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
3924         inlining, add cgraph edge for the added __builtin_unreachable call.
3926         PR middle-end/67485
3927         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
3928         only cast it to SHWI for the final comparison.
3930 2016-08-16  Martin Liska  <mliska@suse.cz>
3932         PR gcov-profile/36412
3933         * doc/gcov.texi: Document --hash-filenames(-x).
3934         * gcov.c (print_usage): Add the option.
3935         (process_args): Process the option, sort options alphabetically.
3936         (md5sum_to_hex): New function.
3937         (make_gcov_file_name): Do the md5sum and append it to a
3938         filename.
3940 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
3942         PR tree-optimization/69848
3943         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
3944         and swtich operands to avoid additional NOT instruction.
3945         (vcond<v_cmp_mixed><mode>): Ditto.
3946         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
3948 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
3950         * doc/install.texi (*-*-solaris2*): Adjust latest change.
3952 2016-08-16  Richard Biener  <rguenther@suse.de>
3954         PR tree-optimization/76783
3955         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
3956         BB visited flags at start.
3958 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
3960         PR tree-optimization/72817
3961         PR tree-optimization/73450
3962         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
3963         multiple_of_p for adjusted IV.base.
3965 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
3967         PR target/72867
3968         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
3969         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
3970         for !flag_finite_math_only or flag_signed_zeros.
3971         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
3972         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
3973         depend on flag_finite_math_only.
3974         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
3975         New insn pattern.
3976         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
3977         (*ieee_smin<mode>3): Ditto.
3978         (*ieee_smax<mode>3): Ditto.
3979         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
3980         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
3981         flag_signed_zeros.
3982         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
3983         depend on flag_finite_math_only.
3984         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
3985         (*mmx_<code>v2sf3): Remove.
3986         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
3987         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
3988         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
3990 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3992         PR rtl-optimization/73650
3993         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
3994         it is not a simple move.
3996 2016-08-15  Martin Liska  <mliska@suse.cz>
3998         PR driver/72765
3999         * gcc.c (do_spec_1): Call save_string with the right size.
4000         (save_string): Do an assert about string we copy.
4002 2016-08-15  Richard Biener  <rguenther@suse.de>
4004         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
4005         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
4006         TV_MACH_DEP.
4007         (pass_data_stv): Likewise.
4009 2016-08-15  Richard Biener  <rguenther@suse.de>
4011         PR tree-optimization/73434
4012         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
4013         TBAA info on the base when forwarding a non-invariant address.
4015 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
4017         * dwarf2out.c (struct checksum_attributes): Add
4018         at_string_length_bit_size and at_string_length_byte_size fields.
4019         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
4020         and DW_AT_string_length_byte_size.
4021         (die_checksum_ordered): Handle at_string_length_bit_size and
4022         at_string_length_byte_size.
4023         (gen_array_type_die): For dwarf_version >= 5 emit
4024         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4025         (adjust_string_types): For dwarf_version >= 5 remove
4026         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4027         (resolve_addr): Likewise.
4029         PR debug/71906
4030         * dwarf2out.c (string_types): New variable.
4031         (gen_array_type_die): Change early_dwarf handling of
4032         DW_AT_string_length, create DW_OP_call4 referencing the
4033         length var temporarily.  Handle parameters that are pointers
4034         to string length.
4035         (adjust_string_types): New function.
4036         (gen_subprogram_die): Temporarily set string_types to local var,
4037         call adjust_string_types if needed.
4038         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
4039         New functions.
4040         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
4042 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4044         * doc/install.texi (*-*-solaris2*): Fix version number and document
4045         requirement on GNU make for building libjava with the Solaris linker.
4047 2016-08-15  Martin Liska  <mliska@suse.cz>
4048             Jakub Jelinek  <jakub@redhat.com>
4050         PR tree-optimization/72824
4051         * tree-loop-distribution.c (const_with_all_bytes_same)
4052         <case VECTOR_CST>: Fix a typo.
4054 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
4056         PR target/76342
4057         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
4058         Renamed from _mm512_undefined_si512.
4059         (_mm_undefined_si512): New definition.
4061 2016-08-13  Richard Biener  <rguenther@suse.de>
4063         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
4064         into PHIs and update the lattice for its def.
4066 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4068         PR c/71512
4069         * ubsan.c (instrument_si_overflow): Pass true instead of false
4070         to gsi_replace.
4071         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
4072         of bbs.  Return TODO_cleanup_cfg if any returned true.
4074 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4076         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
4077         ISA 3.0 MTVSRDD instruction.
4078         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
4079         vecperm.
4081 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4083         PR tree-optimization/71083
4084         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
4085         bitfield access when possible.
4087 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
4089         PR middle-end/71654
4090         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
4091         sign-changing cast from a shorter unsigned type to a wider
4092         signed type.
4094 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4096         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
4097         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
4098         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
4100 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4102         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4103         Correct costs for vec_construct.
4105 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
4107         PR tree-optimization/69848
4108         * tree-vectorizer.h (enum vect_def_type): New condition reduction
4109         type CONST_COND_REDUCTION.
4110         * tree-vect-loop.c (vectorizable_reduction): Support new condition
4111         reudction type CONST_COND_REDUCTION.
4113 2016-08-12  Richard Biener  <rguenther@suse.de>
4115         PR tree-optimization/57326
4116         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
4117         returning an SSA name.
4118         (phi_translate_1): When fully_constant_expression returns a NAME
4119         make sure we have a leader for it.
4121 2016-08-12  Martin Liska  <mliska@suse.cz>
4122             Adam Fineman  <afineman@afineman.com>
4124         * gcov.c (process_file): Create .gcov file when .gcda
4125         file is missing.
4127 2016-08-12  Marek Polacek  <polacek@redhat.com>
4129         PR c/7652
4130         * alias.c (find_base_value): Adjust fall through comment.
4131         * cfgexpand.c (expand_debug_expr): Likewise.
4132         * combine.c (find_split_point): Likewise.
4133         (expand_compound_operation): Likewise.  Add FALLTHRU.
4134         (make_compound_operation): Adjust fall through comment.
4135         (canon_reg_for_combine): Add FALLTHRU.
4136         (force_to_mode): Adjust fall through comment.
4137         (simplify_shift_const_1): Likewise.
4138         (simplify_comparison): Likewise.
4139         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
4140         FALLTHRU.
4141         * config/aarch64/predicates.md: Likewise.
4142         * config/i386/i386.c (function_arg_advance_32): Likewise.
4143         (ix86_gimplify_va_arg): Likewise.
4144         (print_reg): Likewise.
4145         (ix86_print_operand): Likewise.
4146         (ix86_build_const_vector): Likewise.
4147         (ix86_expand_branch): Likewise.
4148         (ix86_sched_init_global): Adjust fall through comment.
4149         (ix86_expand_args_builtin): Add FALLTHRU.
4150         (ix86_expand_builtin): Likewise.
4151         (ix86_expand_vector_init_one_var): Likewise.
4152         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4153         (rs6000_adjust_cost): Likewise.
4154         (insn_must_be_first_in_group): Likewise.
4155         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
4156         * dbxout.c (dbxout_symbol): Adjust fall through comment.
4157         * df-scan.c (df_uses_record): Likewise.
4158         * dojump.c (do_jump): Add FALLTHRU.
4159         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
4160         comment.
4161         (resolve_args_picking_1): Adjust fall through comment.
4162         (loc_list_from_tree_1): Likewise.
4163         * expmed.c (make_tree): Likewise.
4164         * expr.c (expand_expr_real_2): Add FALLTHRU.
4165         (expand_expr_real_1): Likewise.  Adjust fall through comment.
4166         * fold-const.c (const_binop): Adjust fall through comment.
4167         (fold_truth_not_expr): Likewise.
4168         (fold_cond_expr_with_comparison): Add FALLTHRU.
4169         (fold_binary_loc): Likewise.
4170         (contains_label_1): Adjust fall through comment.
4171         (multiple_of_p): Likewise.
4172         * gcov-tool.c (process_args): Add FALLTHRU.
4173         * genattrtab.c (check_attr_test): Likewise.
4174         (write_test_expr): Likewise.
4175         * genconfig.c (walk_insn_part): Likewise.
4176         * genpreds.c (validate_exp): Adjust fall through comment.
4177         (needs_variable): Likewise.
4178         * gensupport.c (get_alternatives_number): Add FALLTHRU.
4179         (subst_dup): Likewise.
4180         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
4181         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
4182         (gimplify_scan_omp_clauses): Add FALLTHRU.
4183         (goa_stabilize_expr): Likewise.
4184         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
4185         through comment.
4186         * hsa-gen.c (get_address_from_value): Likewise.
4187         * ipa-icf.c (sem_function::hash_stmt): Likewise.
4188         * ira.c (ira_setup_alts): Add FALLTHRU.
4189         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
4190         comment.
4191         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
4192         * opts.c (common_handle_option): Likewise.
4193         * read-rtl.c (read_rtx_code): Likewise.
4194         * real.c (round_for_format): Likewise.
4195         * recog.c (asm_operand_ok): Likewise.
4196         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
4197         * reload1.c (set_label_offsets): Likewise.
4198         (eliminate_regs_1): Likewise.
4199         (reload_reg_reaches_end_p): Likewise.
4200         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
4201         (rtx_cost): Likewise.
4202         * sched-rgn.c (is_exception_free): Likewise.
4203         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
4204         * stor-layout.c (int_mode_for_mode): Likewise.
4205         * toplev.c (print_to_asm_out_file): Likewise.
4206         (print_to_stderr): Likewise.
4207         * tree-cfg.c (gimple_verify_flow_info): Likewise.
4208         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
4209         (chrec_fold_multiply): Likewise.
4210         (evolution_function_is_invariant_rec_p): Likewise.
4211         (for_each_scev_op): Likewise.
4212         * tree-data-ref.c (siv_subscript_p): Likewise.
4213         (get_references_in_stmt): Likewise.
4214         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
4215         (substitute_in_expr): Likewise.
4216         (type_cache_hasher::equal): Likewise.
4217         (walk_type_fields): Likewise.
4218         * var-tracking.c (adjust_mems): Add FALLTHRU.
4219         (set_dv_changed): Adjust fall through comment.
4220         * varasm.c (default_function_section): Add FALLTHRU.
4222 2016-08-12  Marek Polacek  <polacek@redhat.com>
4224         PR c/7652
4225         * tree-complex.c (expand_complex_division): Add missing break.
4227 2016-08-12  Richard Biener  <rguenther@suse.de>
4229         * passes.c (execute_todo): Do not push/pop TV_TODO.
4230         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
4231         (execute_one_pass): Likewise.
4232         * common.opt (ftime-report-details): New switch.
4233         * doc/invoke.texi (ftime-report-details): Document.
4234         * timevar.h (timer::print_row): Adjust signature.
4235         (timer::all_zero): New static helper.
4236         (timer::child_map_t): New typedef.
4237         (timer::time_var_def): Add children field.
4238         * timevar.c (timer::named_items::print): Adjust.
4239         (timer::~timer): Free timevar recorded children.
4240         (timer::pop_internal): When -ftime-report-details record
4241         time spent in sub-timevars.
4242         (timer::print_row): Adjust.
4243         (timer::print): Print sub-timevar stats, use all_zero.
4244         * timevar.def (TV_TODO): Remove.
4246 2016-08-12  Richard Biener  <rguenther@suse.de>
4248         PR tree-optimization/72851
4249         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
4250         worklists to use bitmaps indexed in execution order.
4251         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
4252         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
4253         (cfg_blocks): Make a bitmap.
4254         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
4255         New globals.
4256         (cfg_blocks_empty_p): Adjust.
4257         (cfg_blocks_add): Likewise.
4258         (cfg_blocks_get): Likewise.
4259         (add_ssa_edge): Likewise.
4260         (add_control_edge): Likewise.
4261         (simulate_stmt): Likewise.
4262         (process_ssa_edge_worklist): Likewise.
4263         (simulate_block): Likewise.
4264         (ssa_prop_init): Compute PRE order and stmt UIDs.
4265         (ssa_prop_fini): Adjust.
4266         (ssa_propagate): Adjust.
4268 2016-08-12  Richard Biener  <rguenther@suse.de>
4270         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
4271         the currently executable edges have fixed ranges.  Always
4272         go through update_value_range.
4274 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
4276         PR debug/63240
4277         * langhooks-def.h
4278         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
4279         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
4280         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
4281         (LANG_HOOKS_DECLS): Add it.
4282         * langhooks.h (struct lang_hooks_for_decls): Add
4283         function_decl_defaulted.  Const_tree-ify
4284         function_decl_explicit_p and function_decl_deleted_p.
4285         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
4286         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
4287         also at strict DWARF v5.
4289         PR debug/55641
4290         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
4291         TYPE_QUAL_CONST in reference-typed decls.
4293         PR debug/49366
4294         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
4295         in DW_OP_pieces, just enough to handle pointers to member
4296         functions.
4297         (gen_remaining_tmpl_value_param_die_attribute): Use a location
4298         expression on DWARFv5 if a constant value doesn't work.
4300 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
4302         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
4303         * selftest.c (selftest::test_assertions): New function.
4304         (selftest::selftest_c_tests): New function.
4305         * selftest.h (selftest::selftest_c_tests): New declaration.
4307 2016-08-11  Richard Biener  <rguenther@suse.de>
4308             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4310         PR rtl-optimization/72855
4311         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
4313 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4315         PR target/72863
4316         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
4317         (vsx_store_<mode>): Likewise.
4319 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4321         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
4322         TImode CONST_WIDE_INT store.
4323         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
4325 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4327         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
4328         mode if unaligned SSE load and store are optimal.
4330 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4332         PR tree-optimization/71083
4333         * tree-predcom.c (ref_at_iteration): Correctly align the
4334         reference type.
4336 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4338         * config/s390/s390-builtin-types.def: Add INT128 types.
4339         * config/s390/s390-builtins.def: Add INT128 variants for the add
4340         sub low-level builtins dealing with TImode.
4341         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
4342         via subreg when expanding a builtin.
4343         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
4344         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
4345         Fix comment.
4346         * config/s390/vecintrin.h: Adjust builtin names accordingly.
4347         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
4348         ("vec_addc<mode>", "vec_addc_u128"): Merge to
4349         "vacc<bhfgq>_<mode>".
4350         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
4351         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
4352         ("vec_subc<mode>", "vec_subc_u128"): Merge to
4353         "vscbi<bhfgq>_<mode>".
4354         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4355         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4357 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4359         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4361 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4363         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4364         unused declaration.
4365         (vcond<v_cmp_mixed><mode>): Ditto.
4366         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4368 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4370         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4371         variable explicitly, also assert on it before use.
4373 2016-08-11  Richard Biener  <rguenther@suse.de>
4375         PR tree-optimization/72772
4376         * cfgloopmanip.c (create_preheader): Use split_edge if there
4377         is a single loop entry, avoiding degenerate PHIs.
4379 2016-08-11  Richard Biener  <rguenther@suse.de>
4381         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4382         unconditional TODO_cleanup_cfg.
4383         (pass_thread_jumps::execute): Initialize loops, perform a CFG
4384         cleanup only if we threaded a jump.
4386 2016-08-11  Alan Modra  <amodra@gmail.com>
4388         PR target/71680
4389         * lra-constraints.c (simplify_operand_subreg): Allow subreg
4390         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4391         slow.  Emit two reloads for slow mem case, first loading in
4392         fast innermode, then converting to required mode.
4394 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4396         * config/rs6000/altivec.h (vec_extract_exp): New macro.
4397         (vec_extract_sig): New macro.
4398         (vec_insert_exp): New macro.
4399         (vec_test_data_class): New macro.
4400         (scalar_extract_exp): New macro.
4401         (scalar_extract_sig): New macro.
4402         (scalar_insert_exp): New macro.
4403         (scalar_test_data_class): New macro.
4404         (scalar_test_neg): New macro.
4405         (scalar_cmp_exp_gt): New macro.
4406         (scalar_cmp_exp_lt): New macro.
4407         (scalar_cmp_exp_eq): New macro.
4408         (scalar_cmp_exp_unordered): New macro.
4409         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4410         to enforce constraint that operand is a 7-bit unsigned literal.
4411         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4412         for power9 built-ins.
4413         (BU_P9V_VSX_2): Likewise.
4414         (BU_P9V_64BIT_VSX_2): Likewise.
4415         (VSEEDP): Add scalar extract exponent support.
4416         (VSEESP): Add scalar extract signature support.
4417         (VSTDCNDP): Add scalar test negative support.
4418         (VSTDCNSP): Likewise.
4419         (VSIEDP): Add scalar insert exponent support.
4420         (VSCEDPGT): Add scalar compare exponent greater than support.
4421         (VSCEDPLT): Add scalar compare exponent less than support.
4422         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4423         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4424         (VSTDCDP): Add scalar test data class support.
4425         (VSTDCSP): Likewise.
4426         (VSEEDP): Add overload support for scalar extract exponent
4427         operation.
4428         (VSESDP): Add overload support for scalar extract signature
4429         operation.
4430         (VSTDCN): Add overload support for scalar test negative
4431         operation.
4432         (VSTDCNDP): Add overload support for scalar test negative
4433         operation.
4434         (VSTDCNSP): Add overload support for scalar test negative
4435         operation.
4436         (VSIEDP): Add overload support for scalar insert exponent
4437         operation.
4438         (VSTDC): Add overload support for scalar test data class
4439         operation.
4440         (VSTDCDP): Add overload support for scalar test data class
4441         operation.
4442         (VSTDCSP): Add overload support for scalar test data class
4443         opreation.
4444         (VSCEDPGT): Add overload support for scalar compare exponent
4445         greater than operation.
4446         (VSCEDPLT): Add overload support for scalar compare exponent
4447         less than operation.
4448         (VSCEDPEQ): Add overload support for scalar compare exponent
4449         test-for-equality operation.
4450         (VSCEDPUO): Add overload support for scalar compare exponent
4451         test-for-unordered operation.
4452         (VEEDP): Add vector extract exponent support.
4453         (VEESP): Likewise.
4454         (VESDP): Add vector extract significand support.
4455         (VESSP): Likewise.
4456         (VIEDP): Add vector insert exponent support.
4457         (VIESP): Likewise.
4458         (VTDCDP): Add vector test data class support.
4459         (VTDCSP): Likewise.
4460         (VES): Add overload support for vector extract significand operation.
4461         (VESDP): Likewise.
4462         (VESSP): Likewise
4463         (VEE): Add overload support for vector extract exponent operation.
4464         (VEEDP): Likewise.
4465         (VEESP): Likewise.
4466         (VTDC): Add overload support for vector test data class operation.
4467         (VTDCDP): Likewise.
4468         (VTDCSP): Likewise.
4469         (VIE): Add overload support for vector insert exponent operation.
4470         (VIEDP): Likewise.
4471         (VIESP): Likewise.
4472         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4473         overloaded binary floating point functions.
4474         (altivec_resolve_overloaded_builtin): Improve error messages to
4475         distinguish between functions not supported in the current
4476         compiler configuration and functions that were invoked with an
4477         invalid parameter combination, and include the built-in function
4478         name in both error messages.
4479         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
4480         New prototype.
4481         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
4482         function.
4483         (rs6000_expand_binop_builtin): Add check to enforce that argument
4484         2 of the test data class operations is a 7-bit unsigned literal.
4485         (rs6000_invalid_builtin): Add code to issue an error message if a
4486         built-in function that requires the power9_vector and -m32
4487         command-line options is compiled without these options.
4488         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
4489         (UNSPEC_VSX_SXSIGDP): New value.
4490         (UNSPEC_VSX_SXSIGPDP): New value.
4491         (UNSPEC_VSX_SIEXPDP): New value.
4492         (UNSPEC_VSX_SCMPEXPDP): New value.
4493         (UNSPEC_VSX_STSTDC): New value.
4494         (UNSPEC_VSX_VXEXP): New value.
4495         (UNSPEC_VSX_VXSIG): New value.
4496         (UNSPEC_VSX_VIEXP): New value.
4497         (UNSPEC_VSX_VTSTDC): New value.
4498         (xsxexpdp): New insn for scalar extract exponent.
4499         (xsxsigdp): New insn for scalar extract significand.
4500         (xsiexpdp): New insn for scalar insert exponent.
4501         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
4502         (*xscmpexpdp): New insn for scalar compare exponents.
4503         (xststdc<Fvsx): New expansion for both single- and
4504         double-precision scalar test data class operations.
4505         (xststdcneg<Fvsx>): New expansion for both single- and
4506         double-precision scalar test for negative value operations.
4507         (*xststdc<Fvsx>): New insn for scalar test data class
4508         operation.
4509         (xvxexp<VSs>): New insn for single- and double-precision
4510         vector extract exponent operation.
4511         (xvxsig<VSs>): New insn for single- and double-precision
4512         vector extract significand operation.
4513         (xviexp<VSs>): New insn for single- and double-precision
4514         vector insert exponent operation.
4515         (xvtstdc<VSs>): New insn for single- and double-precision
4516         vector test data class operation.
4517         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4518         built-in functions to represent the Power9 binary floating-point
4519         support instructions.
4521 2016-08-10  bin cheng  <bin.cheng@arm.com>
4523         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
4525 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4526             Renlin Li  <renlin.li@arm.com>
4527             Bin Cheng  <bin.cheng@arm.com>
4529         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
4530         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
4531         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
4532         (aarch64_vcond_internal<mode><mode>): Delete pattern.
4533         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
4534         (vcond<v_cmp_result><mode>): Ditto.
4535         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
4536         (vcondu<mode><mode>): Ditto.
4537         (vcond<v_cmp_mixed><mode>): New pattern.
4538         (vcondu<mode><v_cmp_mixed>): New pattern.
4539         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
4540         of aarch64_vcond_internal.
4542 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4543             Renlin Li  <renlin.li@arm.com>
4544             Bin Cheng  <bin.cheng@arm.com>
4546         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
4547         (vec_cmp<mode><v_cmp_result>): New pattern.
4548         (vec_cmpu<mode><mode>): New pattern.
4549         (vcond_mask_<mode><v_cmp_result>): New pattern.
4551 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
4553         PR tree-optimization/71734
4554         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
4555         REF_LOOP, invoke ref_indep_loop_p_1.
4556         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
4557         to ref_indep_loop_p.
4558         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
4559         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
4560         is inside LOOP, do not cache dpendence value for loops with
4561         non-zero SAFELEN.
4562         (ref_indep_loop_p_2): Delete function.
4563         (can_sm_ref_p): Pass LOOP as additional argument to
4564         ref_indep_loop_p.
4566 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4568         PR target/72853
4569         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
4570         being an offsettable address.
4572 2016-08-10  Martin Liska  <mliska@suse.cz>
4574         PR gcov-profile/58306
4575         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
4576         atomic variants of profile update functions.
4578 2016-08-10  Martin Liska  <mliska@suse.cz>
4580         Cherry picked (and modified) from google-4_7 branch
4581         2012-12-26  Rong Xu  <xur@google.com>
4582         * common.opt (fprofile-update): Add new flag.
4583         * coretypes.h: Define enum profile_update.
4584         * doc/invoke.texi: Document -fprofile-update.
4585         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
4586         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
4587         * tree-profile.c (gimple_init_edge_profiler): Generate
4588         also atomic profiler update.
4589         (gimple_gen_edge_profiler): Likewise.
4591 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
4593         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
4594         stack_usage_file to NULL after fclose calls.
4596 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4598         PR target/71873
4599         * reload.c (push_reload): Compute subreg_in_class for
4600         subregs of constants and plus expressions. Remove special
4601         handling of SYMBOL_REFs.
4603 2016-08-10  Alan Modra  <amodra@gmail.com>
4605         PR target/71680
4606         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
4607         SImode for TARGET_E500_DOUBLE when given SImode.
4609 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
4611         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
4612         unused variable __O.
4614 2016-08-09  Martin Liska  <mliska@suse.cz>
4616         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
4617         _gcov_reset to __gcov_reset.
4618         * doc/gcov-tool.texi: Fix typo.
4620 2016-08-09  Martin Liska  <mliska@suse.cz>
4622         * value-prof.c (gimple_divmod_values_to_profile): Do not
4623         instrument MOD histogram if a value is not a SSA name.
4625 2016-08-09  Martin Liska  <mliska@suse.cz>
4627         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
4628         values.
4630 2016-08-09  Renlin Li  <renlin.li@arm.com>
4632         PR middle-end/64971
4633         * calls.c (prepare_call_address): Convert funexp to Pmode when
4634         necessary.
4635         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
4636         (sibcall_value): Likewise.
4638 2016-08-09  Marek Polacek  <polacek@redhat.com>
4640         PR c/7652
4641         * cselib.c (cselib_expand_value_rtx_1): Add return.
4642         * gengtype.c (dbgprint_count_type_at): Likewise.
4643         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
4644         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
4646 2016-08-09  Martin Jambor  <mjambor@suse.cz>
4648         PR ipa/71981
4649         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
4650         if instance is a MEM_REF.
4652 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
4654         PR target/72843
4655         * config/i386/i386.md (*movtf_internal): Use
4656         lra_in_progress || reload_completed instead of !can_create_pseudo_p
4657         in the insn constraint.
4658         (*movxf_internal): Ditto.
4659         (*movdf_internal): Ditto.
4660         (*movsf_internal): Ditto.
4662 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4664         PR tree-optimization/72772
4665         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
4666         for expanded base.
4668 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4670         PR tree-optimization/72772
4671         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
4672         parameter STOP.
4673         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
4674         parameter STOP and update calls.  Move expand_simple_operations
4675         function call from here...
4676         (simplify_using_initial_conditions): ...to here.  Delete parameter
4677         STOP.
4678         (tree_simplify_using_condition): Delete parameter STOP.
4679         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
4680         simplify_using_initial_conditions.
4682 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
4684         PR c/65345
4685         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
4686         Use create_tmp_var_raw instead of create_tmp_var.
4688 2016-08-09  Richard Biener  <rguenther@suse.de>
4690         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
4691         Treat same SSA names related.
4693 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
4695         PR tree-optimization/72824
4696         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
4697         real_zerop is not negative.
4699 2016-08-09  Richard Biener  <rguenther@suse.de>
4701         PR tree-optimization/71802
4702         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
4703         all merge opportunities with the predecessor.
4705 2016-08-09  Richard Biener  <rguenther@suse.de>
4707         PR ipa/68273
4708         * ipa-prop.c (ipa_modify_formal_parameters): Build
4709         parameter types with natural alignment also for the
4710         over-aligned case.
4712 2016-08-08  Andi Kleen  <ak@linux.intel.com>
4714         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
4716 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
4718         PR c/64955
4719         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
4720         do-nothing langhook.
4721         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
4722         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
4723         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
4724         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
4726 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
4728         PR bootstrap/72844
4729         * input.c: Ensure that HAVE_ICONV is defined.
4731 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
4733         PR middle-end/72781
4734         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
4735         private vars for lastprivate and for linear iterator.
4737         PR middle-end/68762
4738         * omp-simd-clone.c: Include varasm.h.
4739         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
4740         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
4741         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
4742         update function name.
4744 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4746         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
4747         (avr_diagnose_devicespecs_error): Remove.
4748         (avr_devicespecs_file): Remove composing absolute path for specfile
4749         and its verbose info. Remove conditions to check specs-file,
4751 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
4753         PR rtl-optimization/72821
4754         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
4755         just return false for them.
4757 2016-08-08  Alan Modra  <amodra@gmail.com>
4759         PR target/72771
4760         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
4761         toc refs created during reload.  Update function comment.
4763 2016-08-08  Alan Modra  <amodra@gmail.com>
4765         PR target/72802
4766         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
4767         alternatives.  Put loads first, then stores, and reg/reg moves
4768         within same class later.  Delete attr length.
4770 2016-08-08  Alan Modra  <amodra@gmail.com>
4772         PR target/72802
4773         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
4774         (mem_operand_ds_form): New predicate.
4775         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
4776         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
4777         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
4778         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
4779         (extendsfdf2_fpr): Replace o constraint with wY.
4781 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
4783         * tree-ssa-threadbackward.c: Include tree-inline.h
4784         (profitable_jump_thread_path): Use estimate_num_insns to estimate
4785         size of copied block; for cold paths reduce duplication.
4786         (find_jump_threads_backwards): Remove redundant tests.
4787         (pass_thread_jumps::gate): Enable for -Os.
4789 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
4791         PR c/72816
4792         * stor-layout.c (layout_decl): Fix up formatting.
4793         (relayout_decl): Allow DECL to be FIELD_DECL.
4795 2016-08-07  Alan Modra  <amodra@gmail.com>
4797         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
4799 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4801         * data-streamer-in.c (streamer_read_wide_int): New.
4802         (streamer_read_widest_int): Renamed function.
4803         * data-streamer-out.c (streamer_write_wide_int): New
4804         (streamer_write_widest_int): Renamed function.
4805         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
4806         data-stream-in.c.
4807         (input_cfg): Call renamed function.
4808         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
4809         data-stream-out.c.
4810         (output_cfg): Call renamed function.
4811         * data-streamer.h: Add declarations.
4813 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4815         * tree-ssa-ccp.c (extend_mask): New param sgn.
4816         Remove ORing with wi::mask.
4817         (get_default_value): Adjust call to extend_mask to pass sign.
4818         (evaluate_stmt): Likewise.
4820 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
4822         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
4823         INT64_MAX.
4825 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4827         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
4828         transform if operand's type is pointer to function or method.
4830 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
4832         PR tree-optimization/18046
4833         * tree-ssa-threadedge.c: Include cfganal.h.
4834         (simplify_control_statement_condition): If simplifying a
4835         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
4836         with the dominating ASSERT_EXPR before handing it off to VRP.
4837         Mention that a CASE_LABEL_EXPR may be returned.
4838         (thread_around_empty_blocks): Adjust to handle
4839         simplify_control_statement_condition() returning a
4840         CASE_LABEL_EXPR.
4841         (thread_through_normal_block): Likewise.
4842         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
4843         a switch statement by trying to determine which case label
4844         will be taken.
4846 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
4848         PR rtl-optimization/69847
4849         * lra-constraints.c (process_invariant_for_inheritance): Save
4850         pattern instead of src.
4851         (remove_inheritance_pseudos): Use the pattern.  Add assert.
4853 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
4855         * input.c (string_concat::string_concat): New constructor.
4856         (string_concat_db::string_concat_db): New constructor.
4857         (string_concat_db::record_string_concatenation): New method.
4858         (string_concat_db::get_string_concatenation): New method.
4859         (string_concat_db::get_key_loc): New method.
4860         (class auto_cpp_string_vec): New class.
4861         (get_substring_ranges_for_loc): New function.
4862         (get_source_range_for_substring): New function.
4863         (get_num_source_ranges_for_substring): New function.
4864         (class selftest::lexer_test_options): New class.
4865         (struct selftest::lexer_test): New struct.
4866         (class selftest::ebcdic_execution_charset): New class.
4867         (selftest::ebcdic_execution_charset::s_singleton): New variable.
4868         (selftest::lexer_test::lexer_test): New constructor.
4869         (selftest::lexer_test::~lexer_test): New destructor.
4870         (selftest::lexer_test::get_token): New method.
4871         (selftest::assert_char_at_range): New function.
4872         (ASSERT_CHAR_AT_RANGE): New macro.
4873         (selftest::assert_num_substring_ranges): New function.
4874         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
4875         (selftest::assert_has_no_substring_ranges): New function.
4876         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
4877         (selftest::test_lexer_string_locations_simple): New function.
4878         (selftest::test_lexer_string_locations_ebcdic): New function.
4879         (selftest::test_lexer_string_locations_hex): New function.
4880         (selftest::test_lexer_string_locations_oct): New function.
4881         (selftest::test_lexer_string_locations_letter_escape_1): New function.
4882         (selftest::test_lexer_string_locations_letter_escape_2): New function.
4883         (selftest::test_lexer_string_locations_ucn4): New function.
4884         (selftest::test_lexer_string_locations_ucn8): New function.
4885         (selftest::uint32_from_big_endian): New function.
4886         (selftest::test_lexer_string_locations_wide_string): New function.
4887         (selftest::uint16_from_big_endian): New function.
4888         (selftest::test_lexer_string_locations_string16): New function.
4889         (selftest::test_lexer_string_locations_string32): New function.
4890         (selftest::test_lexer_string_locations_u8): New function.
4891         (selftest::test_lexer_string_locations_utf8_source): New function.
4892         (selftest::test_lexer_string_locations_concatenation_1): New
4893         function.
4894         (selftest::test_lexer_string_locations_concatenation_2): New
4895         function.
4896         (selftest::test_lexer_string_locations_concatenation_3): New
4897         function.
4898         (selftest::test_lexer_string_locations_macro): New function.
4899         (selftest::test_lexer_string_locations_stringified_macro_argument):
4900         New function.
4901         (selftest::test_lexer_string_locations_non_string): New function.
4902         (selftest::test_lexer_string_locations_long_line): New function.
4903         (selftest::test_lexer_char_constants): New function.
4904         (selftest::input_c_tests): Call the new test functions once per
4905         case within the line_table test matrix.
4906         * input.h (struct string_concat): New struct.
4907         (struct location_hash): New struct.
4908         (class string_concat_db): New class.
4909         * substring-locations.h: New header.
4911 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
4913         PR tree-optimization/72810
4914         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
4915         the type of the case labels when truncating.
4917 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
4919         PR Target/72819
4920         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
4921         (aarch64_fp16_ptr_type_node): Likewise.
4922         * config/aarch64/aarch64-simd-builtins.c
4923         (aarch64_fp16_ptr_type_node): Define.
4924         (aarch64_init_fp16_types): New, refactored out of...
4925         (aarch64_init_builtins): ...here, update to call
4926         aarch64_init_fp16_types.
4927         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
4928         HFmode.
4929         (aapcs_vfp_sub_candidate): Likewise.
4931 2016-08-05  Martin Liska  <mliska@suse.cz>
4932             Joshua Cranmer  <Pidgeot18@gmail.com>
4934         * gcov.c (line_t::has_block): New function.
4935         (enum loop_type): New enum.
4936         (handle_cycle): New function.
4937         (unblock): Likewise.
4938         (circuit): Likewise.
4939         (get_cycles_count): Likewise.
4940         (accumulate_line_counts): Use new loop detection algorithm.
4942 2016-08-05  Martin Liska  <mliska@suse.cz>
4944         * gcov.c (output_intermediate_file): Rename
4945         function_info::line_next to next_file_fn.
4946         (process_file): Likewise.
4947         (read_graph_file): Likewise.
4948         (accumulate_line_counts): Likewise.
4949         (output_lines): Likewise.
4951 2016-08-05  Richard Biener  <rguenther@suse.de>
4953         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
4954         restriction on threading to a loop header.
4956 2016-08-05  Richard Biener  <rguenther@suse.de>
4958         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
4959         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
4960         adjust loop info accordingly.
4962 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
4964         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
4965         before folding call to __builtin_constant_p with parameters to false.
4967 2016-08-05  Alan Modra  <amodra@gmail.com>
4969         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
4970         code accidentally committed 2016-05-02 providing class when given
4971         NO_REGS.
4973 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
4975         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
4976         the case label ranges that partially overlap with OP's value
4977         range.
4979 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
4981         PR target/72805
4982         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
4983         Cast builtin function result to __mmask16 instead of __mmask8.
4984         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4985         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
4986         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4988 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
4990         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
4991         (ASSERT_TRUE_AT): New macro.
4992         (ASSERT_FALSE): Reimplement in terms of...
4993         (ASSERT_FALSE_AT): New macro.
4994         (ASSERT_STREQ_AT): Fix typo in comment.
4996 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
4998         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
4999         labels are exhaustive, designate the label with the widest
5000         range to be the default label.
5002 2016-08-04  Andrew Pinski  <apinski@cavium.com>
5004         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
5005         (thunderx_tunings): Use thunderx_vector_cost instead of
5006         generic_vector_cost.
5008 2016-08-04  Martin Liska  <mliska@suse.cz>
5010         * gcov.c (main): Fix GNU coding style.
5011         (output_intermediate_file): Likewise.
5012         (process_file): Likewise.
5013         (generate_results): Likewise.
5014         (release_structures): Likewise.
5015         (create_file_names): Likewise.
5016         (find_source): Likewise.
5017         (read_graph_file): Likewise.
5018         (find_exception_blocks): Likewise.
5019         (canonicalize_name): Likewise.
5020         (make_gcov_file_name): Likewise.
5021         (mangle_name): Likewise.
5022         (accumulate_line_counts): Likewise.
5023         (output_branch_count): Likewise.
5024         (read_line): Likewise.
5026 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5028         PR rtl-optimization/71779
5029         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
5030         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
5031         or if it was truncated.
5033         PR rtl-optimization/70903
5034         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
5036 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5038         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
5039         accessing SSA_NAME_PTR_INFO.
5041 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5043         PR 70677
5044         * common/config/avr/avr-common.c (avr_option_optimization_table)
5045         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
5047 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5049         PR 55181
5050         * config/avr/avr.md: New pattern to work around do_store_flag
5051         generating shift instructions for bit extractions.
5053 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5055         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
5056         BITMAP_ALLOC.
5057         (add_equivalence): Likewise.
5058         (get_value_range): Allocate value range with vrp_value_range_pool.
5059         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
5060         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
5062 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5064         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
5065         the default for the rs6000 port.
5067 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5069         PR middle-end/71876
5070         * calls.c (special_function_p): Remove special handling of
5071         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
5072         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
5073         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
5075 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
5077         PR middle-end/72778
5078         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
5079         Don't stop on regular insns.
5081 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5083         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
5084         size to DImode boundary.
5085         (nvptx_propagate): Likewise.
5087 2016-08-03  Alan Modra  <amodra@gmail.com>
5089         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
5090         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
5091         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
5092         from -mefficient-unaligned-vector.  Note that this affects fp too.
5094 2016-08-03  Alan Modra  <amodra@gmail.com>
5096         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
5097         cost more.
5099 2016-08-03  Alan Modra  <amodra@gmail.com>
5101         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
5102         to a reg.  Localize vars.
5104 2016-08-03  Alan Modra  <amodra@gmail.com>
5106         * config/rs6000/rs6000.opt: Remove negatives from help strings
5107         and comments.
5109 2016-08-03  Alan Modra  <amodra@gmail.com>
5111         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5112         Delete duplicated code.
5114 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5116         PR middle-end/72778
5117         * lra-spills.c (regno_in_use_p): New.
5118         (lra_final_code_change): Use it.
5120 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5122         PR rtl-optimization/69847
5123         * lra-int.h (struct lra-reg): Use restore_rtx instead of
5124         restore_regno.
5125         (lra_rtx_hash): New.
5126         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
5127         of restore_regno.
5128         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
5129         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
5130         * lra-spills.c (lra_final_code_change): Don't delete insn when the
5131         next insn is USE with the same reg as the current insn source.
5132         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
5133         of restore_regno.
5134         (lra_constraints_init): Call initiate_invariants.
5135         (lra_constraints_finish): Call finish_invariants.
5136         (struct invariant, invariant_t, invariant_ptr_t): New.
5137         (const_invariant_ptr_t, invariants, invariants_pool): New.
5138         (invariant_table, invariant_hash, invariant_eq_p): New.
5139         (insert_invariant, initiate_invariants, finish_invariants): New.
5140         (clear_invariants, invalid_invariant_regs): New.
5141         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
5142         instead of restore_regno.
5143         (invariant_p, process_invariant_for_inheritance): New.
5144         (inherit_in_ebb): Implement invariant inheritance.
5145         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
5146         (remove_inheritance_pseudos): Implement undoing invariant
5147         inheritance.
5148         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
5149         instead of restore_regno.
5150         * lra-assigns.c (regno_live_length): New.
5151         (reload_pseudo_compare_func): Use regno_live_length.
5152         (assign_by_spills): Use restore_rtx instead of restore_regno.
5153         (lra_assign): Ditto.  Initiate regno_live_length.
5155 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
5157         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
5158         __builtin_aarch64_fmindf.
5160 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5162         PR tree-optimization/34114
5163         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
5164         information for more control IVs.
5166 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5168         PR tree-optimization/34114
5169         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
5170         PLUS_EXPR case.  Handle SSA_NAME case.
5172 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
5174         * config/aarch64/aarch64-simd-builtins.def
5175         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
5176         (__builtin_aarch64_fmaxdf): Likewise.
5177         (__builtin_aarch64_smin_nandf): Likewise.
5178         (__builtin_aarch64_smax_nandf): Likewise.
5179         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
5180         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
5181         (<fmaxmin><mode>3): ...this.
5182         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
5183         (vminnm_f64): Likewise.
5184         (vmin_f64): Likewise.
5185         (vmax_f64): Likewise.
5186         * config/aarch64/iterators.md (FMAXMIN): Merge with...
5187         (FMAXMIN_UNS): ...this.
5188         (fmaxmin): Merged with
5189         (fmaxmin_op): ...this...
5190         (maxmin_uns_op): ...in to this.
5192 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5194         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5195         Add support for vec_extract on vector float, vector int, vector
5196         short, and vector char vector types.
5197         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5198         vector float, vector int, vector short, and vector char
5199         optimizations on 64-bit ISA 2.07 systems for both constant and
5200         variable element numbers.
5201         (rs6000_split_vec_extract_var): Likewise.
5202         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
5203         Altivec registers on ISA 2.07 and above.
5204         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
5205         which never was matched due to the split occuring before register
5206         allocation (and the code would not have worked on little endian
5207         systems if it did match).  Allow extracts to go to the Altivec
5208         registers if ISA 2.07 (power8).  Change from using "" around the
5209         C++ code to using {}'s.
5210         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
5211         vec_extracts when the vector is in memory.
5212         (vsx_extract_v4sf_var): New insn to optimize vector float
5213         vec_extracts when the element number is variable on 64-bit ISA
5214         2.07 systems.
5215         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
5216         for 64-bit ISA 2.07 as well as ISA 3.0.
5217         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
5218         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
5219         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
5220         optimize vector int, vector short, and vector char vec_extracts
5221         when the vector is in memory.
5222         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
5223         optimize vector int, vector short, and vector char vec_extracts
5224         when the element number is variable.
5226 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5228         PR target/71948
5229         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
5230         does not overlap with other symbol flags.
5232 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
5234         * config/aarch64/aarch64.h (aarch64_frame):
5235         Remove padding0 and hardfp_offset.  Add locals_offset,
5236         initial_adjust, callee_adjust, callee_offset and final_adjust.
5237         * config/aarch64/aarch64.c (aarch64_layout_frame):
5238         Remove unused padding0 and hardfp_offset initializations.
5239         Choose frame layout and set frame variables accordingly.
5240         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
5241         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
5242         (aarch64_pop_regs): Likewise.
5243         (aarch64_expand_prologue): Remove all decision code, just emit
5244         prolog according to frame variables.
5245         (aarch64_expand_epilogue): Remove all decision code, just emit
5246         epilog according to frame variables.
5247         (aarch64_initial_elimination_offset): Use offset to local/arg area.
5249 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5251         PR target/72748
5252         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
5253         fix_debug_reg_uses after changing source register mode to
5254         V1TImode if source register is undefined.
5256 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
5258         PR tree-optimization/71818
5259         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
5260         with non invariant evolutions
5262 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5264         PR target/72767
5265         * config/avr/avr.md (length) [branch]: Correct insn length
5266         attribute for forward branches.
5268 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5270         * doc/extend.texi (AVR Built-in Functions): Document
5271         __builtin_avr_nops.
5272         * config/avr/builtins.def (NOPS): New.
5273         * config/avr/avr.c (avr_expand_nops): New static function.
5274         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
5276 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5278         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
5279         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
5280         addresses.
5282 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
5284         * config/aarch64/aarch64.c (vulcan_tunings): Update
5285         vulcan L1 cache_line_size.
5287 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5289         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
5290         function that takes a vector memory address, a hard register, an
5291         element number and a temporary base register, and recreates an
5292         address that points to the appropriate element within the vector.
5293         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
5294         (rs6000_split_vec_extract_var): Add support for the target of a
5295         vec_extract with variable element number being a scalar memory
5296         location.
5297         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
5298         swappable.
5299         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
5300         vsx_extract_<mode>_load insn with a new insn that optimizes
5301         storing either element to a memory location, using scratch
5302         registers to pick apart the vector and reconstruct the address.
5303         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
5304         (vsx_extract_<mode>_store): Rework alternatives to more correctly
5305         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
5306         store instruction.
5307         (vsx_extract_<mode>_var): Add support for extracting a variable
5308         element number from memory.
5310 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5312         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
5313         when testing for compares against constants of the form 0xabab.
5315 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5317         PR tree-optimization/57558
5318         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
5319         function.
5320         (vect_loop_versioning): Support versioning with niter assumptions.
5321         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
5322         (vect_get_loop_niters): New parameter.  Reimplement to support
5323         assumptions in loop niter info.
5324         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
5325         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
5326         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
5327         Support loop versioning for niters.
5328         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
5329         (vect_free_loop_info_assumptions): New function.
5330         (vectorize_loops): Free loop niter info for loops with flag
5331         LOOP_F_ASSUMPTIONS set if vectorization failed.
5332         * tree-vectorizer.h (struct _loop_vec_info): New field
5333         num_iters_assumptions.
5334         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
5335         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
5336         (LOOP_REQUIRES_VERSIONING): New macro.
5337         (vect_free_loop_info_assumptions): New decl.
5339 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5341         * cfgloop.h (struct loop): New field constraints.
5342         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
5343         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
5344         functions.
5345         * cfgloop.c (alloc_loop): Initialize new field.
5346         * cfgloopmanip.c (copy_loop_info): Copy constraints.
5347         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
5348         Adjust niter analysis wrto loop constraints.
5349         * doc/loop.texi (@node Number of iterations): Add description for loop
5350         constraints.
5352 2016-07-29  Marek Polacek  <polacek@redhat.com>
5354         PR c/7652
5355         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5356         (ix86_expand_round_builtin): Likewise.
5358 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
5359             Georg-Johann Lay  <avr@gjlay.de>
5361         PR rtl-optimization/71976
5362         * combine.c (get_last_value): Return 0 if the argument for which
5363         the function is called has a wider mode than the recorded value.
5365 2016-07-29  Marek Polacek  <polacek@redhat.com>
5367         PR c/7652
5368         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5369         (altivec_expand_st_builtin): Likewise.
5371 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5373         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5374         introduced in r238381.
5376 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5378         PR middle-end/68217
5379         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5380         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5382 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5384         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5385         New declaration.
5386         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5387         Add support for vec_extract of vector double or vector long having
5388         a variable element number on 64-bit ISA 2.07 systems or newer.
5389         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5390         Likewise.
5391         (rs6000_split_vec_extract_var): New function to split a
5392         vec_extract built-in function with variable element number.
5393         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5394         swappable.
5395         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5396         (UNSPEC_VSX_EXTRACT): Likewise.
5397         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5398         direct move instructions to be generated on 64-bit ISA 2.07
5399         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5400         instruction.
5401         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5402         arguments for vec_extract variable element.
5403         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5404         vec_extract with variable element on V2DFmode and V2DImode
5405         vectors.
5406         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5407         -mupper-regs-df requirement, since it isn't needed.
5408         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5409         do direct moves on 64-bit systems, which allows optimization of
5410         vec_extract on 64-bit ISA 2.07 systems and newer.
5412 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5413 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5415          * config/aarch64/aarch64.md
5416         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5417         statement and type.
5418         (<optab>qihi2_aarch64): Likewise, and split into two.
5419         (extendqihi2_aarch64): New.
5420         (zero_extendqihi2_aarch64): New.
5421         * config/aarch64/iterators.md (ldrxt): Remove.
5422         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5423         uxtb/uxth.
5425 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5427         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5429 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5431         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5432         (aarch64_push_reg): New function to push 1 or 2 registers.
5433         (aarch64_pop_reg): New function to pop 1 or 2 registers.
5434         (aarch64_expand_prologue): Use aarch64_push_regs.
5435         (aarch64_expand_epilogue): Use aarch64_pop_regs.
5437 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
5439         PR tree-optimization/71734
5440         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5441         attribute instead of REF_LOOP and use it.
5442         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5443         set it for Loops having non-zero safelen attribute.
5444         (ref_indep_loop_p): Pass zero as initial value for safelen.
5446 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
5448         PR middle-end/72657
5449         PR target/72683
5450         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
5451         call using chkp_gimple_call_builtin_p.
5452         (chkp_copy_bounds_for_assign): Likewise.
5454 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5456         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
5457         * config/arm/arm-protos.h (struct tune_params): Likewise.
5458         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5459         (cortex_a9_sched_adjust_cost): Likewise.
5460         (fa726te_sched_adjust_cost): Likewise.
5461         (arm_adjust_cost): Likewise.
5462         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
5463         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
5464         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
5465         * config/i386/i386.c (ix86_adjust_cost): Likewise.
5466         * config/ia64/ia64.c: Likewise.
5467         * config/m68k/m68k.c: Likewise.
5468         * config/mep/mep.c (mep_adjust_cost): Likewise.
5469         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5470         * Likewise.
5471         * config/mips/mips.c (mips_adjust_cost): Likewise.
5472         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
5473         * Likewise.
5474         * config/pa/pa.c (pa_adjust_cost): Likewise.
5475         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
5476         (rs6000_debug_adjust_cost): Likewise.
5477         * config/sh/sh.c (sh_adjust_cost): Likewise.
5478         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
5479         (hypersparc_adjust_cost): Likewise.
5480         (sparc_adjust_cost): Likewise.
5481         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
5482         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
5483         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
5484         * Likewise.
5485         * config/visium/visium.c (visium_adjust_cost): Likewise.
5486         * doc/tm.texi: Regenerate.
5487         * haifa-sched.c (dep_cost_1): Adjust.
5488         * target.def: Merge adjust_cost and adjust_cost_2.
5490 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5492         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
5494 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5496         * store-motion.c (struct st_expr): Make pattern_regs a vector.
5497         (extract_mentioned_regs): Append to a vector instead of
5498         returning a rtx_expr_list.
5499         (st_expr_entry): Adjust.
5500         (free_st_expr_entry): Likewise.
5501         (store_ops_ok): Likewise.
5502         (store_killed_in_insn): Likewise.
5503         (find_moveable_store): Likewise.
5505 2016-07-28  Martin Liska  <mliska@suse.cz>
5507         PR gcov-profile/68025
5508         * tree-profile.c (tree_profiling): Respect
5509         no_profile_instrument_function attribute.
5510         * doc/extend.texi: Document no_profile_instrument_function
5511         attribute.
5513 2016-07-28  Martin Liska  <mliska@suse.cz>
5515         PR rtl-optimization/70944
5516         * combine.c (make_compound_operation):
5517         Do not allow make_compound_operation for vector mode
5519 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
5521         PR middle-end/71994
5522         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
5523          before calling get_ops.
5525 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5527         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
5528         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
5529         (BITS_PER_UNIT_LOG): Remove.
5530         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
5531         * expr.c (expand_assignment): Likewise.
5532         * stor-layout.c (initialize_sizetypes): Likewise.
5534 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5536         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
5537         signature of rs6000_expand_vector_extract so that the element
5538         number is a RTX instead of a constant integer.
5539         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
5540         Likewise.
5541         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
5542         (altivec_expand_vec_ext_builtin): Likewise.
5543         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
5544         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
5545         MFVSRLD instruction.
5547 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5549         * input.c (get_pure_location): Move here from tree.c.
5550         (make_location): Likewise.  Add header comment.
5551         (selftest::test_accessing_ordinary_linemaps): Verify
5552         pure_location_p, make_location, get_location_from_adhoc_loc and
5553         get_range_from_loc.
5554         * input.h (get_pure_location): Move declaration here from tree.h.
5555         (get_finish): Likewise for inline function.
5556         (make_location): Likewise for declaration.
5557         * tree.c (get_pure_location): Move to input.c.
5558         (make_location): Likewise.
5559         * tree.h (get_pure_location): Move declaration to tree.h.
5560         (get_finish): Likewise for inline function.
5561         (make_location): Likewise for declaration.
5563 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5565         PR middle-end/71078
5566         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
5568 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5570         * system.h (STATIC_ASSERT): Use static_assert if building
5571         with C++11 onwards.
5573 2016-07-27  Richard Biener  <rguenther@suse.de>
5575         PR tree-optimization/72517
5576         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5577         Revert change to not compute read-read dependences.
5579 2016-07-27  Richard Biener  <rguenther@suse.de>
5581         * predict.c (set_even_probabilities): Make nedges unsigned.
5583 2016-07-27  Martin Liska  <mliska@suse.cz>
5585         * predict.c (set_even_probabilities): Handle unlikely edges.
5586         (combine_predictions_for_bb): Likewise.
5588 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5590         PR target/71869
5591         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
5592         __float128 support when we don't have hardware support, so that
5593         the IEEE built-in functions like isgreater, first call __unordkf3
5594         to make sure neither operand is a NaN, and if both operands are
5595         ordered, do the normal comparison.
5597 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5599         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
5600         name.
5601         (extract_code_and_val_from_cond_with_ops): Verify that name is
5602         either cond_op0 or cond_op1.
5604 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5606         PR tree-optimization/18046
5607         * genmodes.c (emit_mode_size_inline): Emit an assert that
5608         verifies that mode is a valid array index.
5609         (emit_mode_nuinits_inline): Likewise.
5610         (emit_mode_inner_inline): Likewise.
5611         (emit_mode_unit_size_inline): Likewise.
5612         (emit_mode_unit_precision_inline): Likewise.
5613         * tree-vrp.c: Include params.h.
5614         (find_switch_asserts): Register edge assertions for the default
5615         label which correspond to the anti-ranges of each case label.
5616         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
5617         * doc/invoke.texi: Document it.
5619 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5621         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
5622         and unnecessary call to gimple_bb.
5624 2016-07-26  Richard Biener  <rguenther@suse.de>
5626         PR rtl-optimization/71984
5627         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
5628         for VOIDmode.
5630 2016-07-26  Richard Biener  <rguenther@suse.de>
5632         PR middle-end/72517
5633         * expmed.c (extract_bit_field_1): Constrain the vector mode
5634         with element size matching the extraction mode size when
5635         choosing a better vector mode to do the extraction from.
5637 2016-07-26  Richard Biener  <rguenther@suse.de>
5638             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5640         PR middle-end/70920
5641         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
5642         pattern.
5644 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5646         * tree-ssa-structalias.c (struct scc_info): Change types of
5647         members to auto_sbitmap and auto_vec.
5648         (scc_info::scc_info): New constructor.
5649         (scc_info::~scc_info): New destructor.
5650         (init_scc_info): Remove.
5651         (free_scc_info): Remove.
5652         (find_indirect_cycles): Adjust.
5653         (perform_var_substitution): Likewise.
5654         (free_var_substitution_info): Likewise.
5656 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5658         * tree-outof-ssa.c (struct elim_graph): Change type of members
5659         to auto_vec and auto_sbitmap.
5660         (elim_graph::elim_graph): New constructor.
5661         (delete_elim_graph): Remove.
5662         (expand_phi_nodes): Adjust.
5664 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5666         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
5667         (new_elim_graph): Adjust.
5668         (clear_elim_graph): Likewise.
5669         (delete_elim_graph): Likewise.
5670         (elim_graph_size): Likewise.
5671         (elim_graph_add_node): Likewise.
5672         (elim_graph_add_edge): Likewise.
5673         (elim_graph_remove_succ_edge): Likewise.
5674         (eliminate_name): Likewise.
5675         (eliminate_build): Likewise.
5676         (elim_forward): Likewise.
5677         (elim_unvisited_predecessor): Likewise.
5678         (elim_backward): Likewise.
5679         (elim_create): Likewise.
5680         (eliminate_phi): Likewise.
5681         (expand_phi_nodes): Likewise.
5683 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5685         * bt-load.c (compute_out): Use auto_sbitmap class.
5686         (link_btr_uses): Likewise.
5687         * cfganal.c (mark_dfs_back_edges): Likewise.
5688         (post_order_compute): Likewise.
5689         (inverted_post_order_compute): Likewise.
5690         (pre_and_rev_post_order_compute_fn): Likewise.
5691         (single_pred_before_succ_order): Likewise.
5692         * cfgexpand.c (pass_expand::execute): Likewise.
5693         * cfgloop.c (verify_loop_structure): Likewise.
5694         * cfgloopmanip.c (fix_bb_placements): Likewise.
5695         (remove_path): Likewise.
5696         (update_dominators_in_loop): Likewise.
5697         * cfgrtl.c (break_superblocks): Likewise.
5698         * ddg.c (check_sccs): Likewise.
5699         (create_ddg_all_sccs): Likewise.
5700         * df-core.c (df_worklist_dataflow): Likewise.
5701         * dse.c (dse_step3): Likewise.
5702         * except.c (eh_region_outermost): Likewise.
5703         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5704         * gcse.c (prune_expressions): Likewise.
5705         (prune_insertions_deletions): Likewise.
5706         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
5707         * graph.c (draw_cfg_nodes_no_loops): Likewise.
5708         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
5709         * lcm.c (compute_earliest): Likewise.
5710         (compute_farthest): Likewise.
5711         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
5712         (unroll_loop_runtime_iterations): Likewise.
5713         (unroll_loop_stupid): Likewise.
5714         * lower-subreg.c (decompose_multiword_subregs): Likewise.
5715         * lra-lives.c: Likewise.
5716         * lra.c (lra): Likewise.
5717         * modulo-sched.c (schedule_reg_moves): Likewise.
5718         (optimize_sc): Likewise.
5719         (get_sched_window): Likewise.
5720         (sms_schedule_by_order): Likewise.
5721         (check_nodes_order): Likewise.
5722         (order_nodes_of_sccs): Likewise.
5723         (order_nodes_in_scc): Likewise.
5724         * recog.c (split_all_insns): Likewise.
5725         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
5726         * reload1.c (reload): Likewise.
5727         * sched-rgn.c (haifa_find_rgns): Likewise.
5728         (split_edges): Likewise.
5729         (compute_trg_info): Likewise.
5730         * sel-sched.c (init_seqno): Likewise.
5731         * store-motion.c (remove_reachable_equiv_notes): Likewise.
5732         * tree-into-ssa.c (update_ssa): Likewise.
5733         * tree-ssa-live.c (live_worklist): Likewise.
5734         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
5735         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5736         * Likewise.
5737         (try_peel_loop): Likewise.
5738         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
5739         * Likewise.
5740         * tree-ssa-pre.c (compute_antic): Likewise.
5741         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5742         * tree-stdarg.c (reachable_at_most_once): Likewise.
5743         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
5744         * var-tracking.c (vt_find_locations): Likewise.
5746 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5748         * sbitmap.h (auto_sbitmap): New class.
5750 2016-07-26  Alan Modra  <amodra@gmail.com>
5752         PR target/72103
5753         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
5754         sri->t_icode.
5756 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
5758         * input.c (selftest::temp_source_file::temp_source_file): Fix
5759         missing "%s" in fprintf.
5761 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
5763         PR middle-end/71732
5764         * cselib.c (cselib_process_insn): Invalidate argument slots for
5765         const/pure calls.
5767 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5769         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
5770         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
5771         vmulxh_lane_f16, vmulxh_laneq_f16): New.
5773 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5775         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5776         * config/aarch64/aarch64.md (fma, fnma): Support HF.
5777         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
5779 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5781         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5782         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
5783         New.
5784         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
5785         (add<mode>3): Likewise.
5786         (sub<mode>3): Likewise.
5787         (mul<mode>3): Likewise.
5788         (div<mode>3): Likewise.
5789         (*div<mode>3): Likewise.
5790         (<fmaxmin><mode>3): Extend to HF.
5791         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
5792         (fabd<mode>3): Likewise.
5793         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
5794         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
5795         (aarch64_fmulx<mode>): Likewise.
5796         (aarch64_fac<optab><mode>): Likewise.
5797         (aarch64_frecps<mode>): Likewise.
5798         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
5799         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
5800         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
5801         (VSDQ_HSDI): Support HI.
5802         (fcvt_target, FCVT_TARGET): Likewise.
5803         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
5804         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
5805         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
5806         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
5807         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
5808         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
5809         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
5810         vrsqrtsh_f16): New.
5812 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5814         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
5815         * config/aarch64/aarch64-builtins.c (hi_UP): New.
5816         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5817         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
5818         mode.
5819         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
5820         (aarch64_cm<optab><mode>): Likewise.
5821         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
5822         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
5823         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
5824         (sqrt<mode>2): Likewise.
5825         (*sqrt<mode>2): Likewise.
5826         (abs<mode>2): Likewise.
5827         (<optab><mode>hf2): New pattern for HF mode.
5828         (<optab>hihf2): Likewise.
5829         * config/aarch64/arm_neon.h: Include arm_fp16.h.
5830         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
5831         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
5832         Support HF mode.
5833         * config/aarch64/arm_fp16.h: New file.
5834         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
5835         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
5836         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
5837         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
5838         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
5839         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
5840         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
5841         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
5842         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
5843         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
5844         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
5845         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
5846         vsqrth_f16): New.
5848 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5850         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
5851         reduc_smin_scal_): Use VDQIF_F16.
5852         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
5853         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
5854         Use VHSDF.
5855         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
5856         * config/aarch64/iterators.md (VDQIF_F16): New.
5857         (vp): Support HF modes.
5858         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
5859         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
5861 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5863         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
5864         "*aarch64_mulx_elt_from_dup<mode>".
5865         (*aarch64_mul3_elt<mode>): Update schedule type.
5866         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
5867         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
5868         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5869         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
5870         (f, fp): Support HF modes.
5871         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
5872         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
5873         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
5874         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
5875         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
5876         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
5878 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5880         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5881         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
5882         modes.
5883         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
5884         vfmsq_f16): New.
5886 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5888         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5889         * config/aarch64/aarch64-simd.md
5890         (aarch64_rsqrts<mode>): Extend to HF modes.
5891         (fabd<mode>3): Likewise.
5892         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
5893         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
5894         (aarch64_<maxmin_uns>p<mode>): Likewise.
5895         (<su><maxmin><mode>3): Likewise.
5896         (<maxmin_uns><mode>3): Likewise.
5897         (<fmaxmin><mode>3): Likewise.
5898         (aarch64_faddp<mode>): Likewise.
5899         (aarch64_fmulx<mode>): Likewise.
5900         (aarch64_frecps<mode>): Likewise.
5901         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
5902         (add<mode>3): Extend to HF modes.
5903         (sub<mode>3): Likewise.
5904         (mul<mode>3): Likewise.
5905         (div<mode>3): Likewise.
5906         (*div<mode>3): Likewise.
5907         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
5908         HF, V4HF and V8HF.
5909         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
5910         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
5911         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
5912         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
5913         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
5914         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
5915         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
5916         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
5917         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
5918         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
5919         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
5920         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
5921         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
5922         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
5924 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5926         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
5927         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5928         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
5929         (neg<mode>2): Likewise.
5930         (abs<mode>2): Likewise.
5931         (<frint_pattern><mode>2): Likewise.
5932         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
5933         (<optab><VDQF:mode><fcvt_target>2): Likewise.
5934         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
5935         (ftrunc<VDQF:mode>2): Likewise.
5936         (<optab><fcvt_target><VDQF:mode>2): Likewise.
5937         (sqrt<mode>2): Likewise.
5938         (*sqrt<mode>2): Likewise.
5939         (aarch64_frecpe<mode>): Likewise.
5940         (aarch64_cm<optab><mode>): Likewise.
5941         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
5942         HF, V4HF and V8HF.
5943         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
5944         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
5945         (stype): New.
5946         * config/aarch64/arm_neon.h (vdup_n_f16): New.
5947         (vdupq_n_f16): Likewise.
5948         (vld1_dup_f16): Use vdup_n_f16.
5949         (vld1q_dup_f16): Use vdupq_n_f16.
5950         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
5951         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
5952         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
5953         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
5954         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
5955         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
5956         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
5957         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
5958         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
5959         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
5960         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
5961         vsqrt_f16, vsqrtq_f16): New.
5963 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5965         * config/aarch64/aarch64-simd.md
5966         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
5967         (aarch64_ext<mode>): Likewise.
5968         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
5969         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
5970         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
5971         and V8HFmode.
5972         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
5973         float16x8_t.
5974         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
5975         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
5976         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
5977         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
5978         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
5979         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
5980         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
5981         New.
5982         (vmov_n_f16): Reimplement using vdup_n_f16.
5983         (vmovq_n_f16): Reimplement using vdupq_n_f16..
5985 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5987         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
5988         "frame_related_p".  Generate CFA annotation when it's necessary.
5989         (aarch64_expand_prologue): Use aarch64_add_constant.
5990         (aarch64_expand_epilogue): Likewise.
5991         (aarch64_output_mi_thunk): Pass "false" when calling
5992         aarch64_add_constant.
5994 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5996         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
5997         sequences.
5999 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6001         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
6002         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
6003         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
6004         (aarch64_build_constant): Delete.
6006 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
6008         Revert
6009         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6011         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6012         flag_toplevel_reorder.
6014 2016-07-25  Richard Biener  <rguenther@suse.de>
6016         * cgraph.c (cgraph_node::verify_node): Compare against builtin
6017         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
6018         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
6019         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
6020         (streamer_get_builtin_tree): Likewise.
6021         (streamer_write_builtin): Likewise.
6022         * lto-streamer.h (LTO_builtin_decl): Remove.
6023         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
6024         (lto_input_scc): Remove LTO_builtin_decl handling.
6025         (lto_input_tree_1): Liekwise.
6026         * lto-streamer-out.c (lto_output_tree_1): Remove special
6027         handling of builtins.
6028         (DFS::DFS): Likewise.
6029         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
6030         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
6031         assert.
6032         (streamer_write_builtin): Remove.
6034 2016-07-25  Martin Liska  <mliska@suse.cz>
6036         * lto-cgraph.c (input_symtab): Don't call get_working_sets
6037         if flag_auto_profile is set to true.
6039 2016-07-25  Martin Liska  <mliska@suse.cz>
6041         PR gcov-profile/71868
6042         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
6043         have a function with multiple latches, count them all.
6045 2016-07-25  Martin Liska  <mliska@suse.cz>
6047         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
6049 2016-07-25  Martin Liska  <mliska@suse.cz>
6051         PR tree-optimization/71987
6052         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
6053         just for SSA_NAMEs. Fix GNU coding style.
6055 2016-07-25  Martin Liska  <mliska@suse.cz>
6057         PR gcov-profile/64874
6058         * gcov-io.h: Update command about file format.
6059         * gcov-iov.c (main): Adapt the numbering scheme.
6061 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6063         PR middle-end/66726
6064         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
6065         whose result is used in PHI.
6066         (final_range_test_p): Likewise.
6067         (maybe_optimize_range_tests): Likewise.
6069 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6071         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6072         Reformat two multi-line strings.
6074 2016-07-22  Martin Sebor  <msebor@redhat.com>
6076         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
6078 2016-07-22  Martin Sebor  <msebor@redhat.com>
6080         PR c/71560
6081         * doc/extend.texi (Compound Literals): Correct and clarify.
6082         (Cast to Union): Same.
6084 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6086         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6087         comments to explain why certain error messages make mention of
6088         undocumented options.
6089         (rs6000_invalid_builtin): Change error messages to replace mention
6090         of undocumented options with mention of the -mcpu=power9 option
6091         that enables those undocumented options.
6092         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
6093         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
6094         definition of this macro to correct an existing error.
6095         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
6096         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
6097         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
6098         descriptions of built-in functions so that they depend on
6099         -mcpu=power9 instead of on the corresponding undocumented flags.
6100         * doc/invoke.texi (Option Summary):  Remove all mention of newly
6101         undocumented flags.
6102         (IBM RS/6000 and PowerPC Options): Likewise.
6103         * doc/md.texi (Constraints for Particuliar Machines): Remove all
6104         mention of newly undocumented flags.
6106 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
6108         * ipa-cp.c (determine_versionability): Do not create constprop clones,
6109         when target_clones attribute is set.
6111 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6113         * common.opt (funsafe-loop-optimizations): Mark ignore.
6114         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
6115         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
6116         related code.
6117         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
6118         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
6120 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6122         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6123         Parameter.
6124         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6125         Parameter.
6126         (number_of_iterations_exit): Warn missed loop optimization for
6127         possible infinite loops.
6129 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
6131         PR target/71216
6132         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
6133         when to emit a ".machine" pseudo-op.
6135 2016-07-22  Martin Liska  <mliska@suse.cz>
6137         PR gcov-profile/69028
6138         PR gcov-profile/62047
6139         * coverage.c (coverage_compute_lineno_checksum): Do not
6140         calculate checksum for fns w/o xloc.file.
6141         (coverage_compute_profile_id): Likewise.
6143 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
6145         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
6146         (avr_secondary_reload): ...and implementation.
6147         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
6148         * config/avr/avr.md (reload_in<mode>): Remove insns.
6149         (adjust_len) [lpm]: Remove insn attribute value.
6150         * config/avr/predicates.md (flash_operand): Remove insn predicate.
6152 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6154         PR middle-end/71876
6155         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
6156         attribute.
6157         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
6158         * calls.c (special_function_p): Remove the special handling of the
6159         "__builtin_" prefix.
6161 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6163         PR middle-end/71876
6164         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
6165         if STMT may be an alloca call.
6166         (gimple_alloca_call_p, alloca_call_p): Return only true for the
6167         builtin alloca call.
6168         * calls.h (gimple_maybe_alloca_call_p): New function.
6169         * tree-inline.c (inline_forbidden_p_stmt): Use
6170         gimple_maybe_alloca_call_p here.
6172 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
6174         * spellcheck-tree.c (best_macro_match::best_macro_match):
6175         Explictly specify the template arguments when invoking the base
6176         class constructor, to help older C++ compilers.
6178 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6180         PR sanitizer/71953
6181         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
6182         before builtin_decl_implicit.
6184 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6186         * optabs.c (emit_condiitonal_move): Short circuit for identical
6187         sources.
6189 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6191         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
6192         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
6193         (noce_conversion_profitable_p): New.
6194         (noce_try_store_flag_constants): Use it.
6195         (noce_try_addcc): Likewise.
6196         (noce_try_store_flag_mask): Likewise.
6197         (noce_try_cmove): Likewise.
6198         (noce_try_cmove_arith): Likewise.
6199         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
6200         overwriting it.
6201         (noce_convert_multiple_sets): Move cost model to here, from...
6202         (bb_ok_for_noce_convert_multiple_sets) ...here.
6203         (noce_process_if_block): Update calls for above changes.
6204         (noce_find_if_block): Record new noce_if_info parameters.
6206 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6208         * target.def (max_noce_ifcvt_seq_cost): New.
6209         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
6210         * doc/tm.texi: Regenerate.
6211         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
6212         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
6213         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
6214         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
6215         * doc/invoke.texi: Document new params.
6217 2016-07-21  Richard Biener  <rguenther@suse.de>
6219         PR tree-optimization/71947
6220         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
6221         ranges have useful limit_vr information.
6223 2016-07-21  Richard Biener  <rguenther@suse.de>
6225         * function-tests.c (build_trivial_generic_function): Set
6226         BLOCK_SUPERCONTEXT of DECL_INITIAL.
6227         * omp-low.c (create_omp_child_function): Likewise.
6228         (grid_expand_target_grid_body): Likewise.
6229         * cgraphunit.c (init_lowered_empty_function): Likewise.
6230         (cgraph_node::expand_thunk): Likewise.
6231         * tree-parloops.c (create_loop_fn): Likewise.
6232         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
6234 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6236         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
6237         in comment.
6239 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
6241         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
6242         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
6243         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
6244         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
6245         values for insn attribute.
6246         * config/avr/avr.c (avr_out_insert_notbit): New function.
6247         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
6248         ADJUST_LEN_INSV_NOTBIT_0/_7.
6249         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
6251 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6253         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
6254         (chrec_convert_1, chrec_convert): Ditto.
6255         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
6256         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
6257         * tree-vrp.c (adjust_range_with_scev): Ditto.
6258         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
6259         (scev_var_range_cant_overflow): New function.
6260         (scev_probably_wraps_p): New parameter.  Call above function.
6261         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
6263 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6265         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6266         by removing computation of may_be_zero.
6268 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6270         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
6272 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
6274         Improving concepts performance and diagnostics.
6275         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
6276         for constraint satisfaction and subsumption.
6277         * timevar.h (auto_timevar): New constructor that matches the push/pop
6278         pattern of usage in pt.c.
6280 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6282         * hwint.h (HOST_WIDE_INT_0): New define.
6283         (HOST_WIDE_INT_0U): Ditto.
6284         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
6285         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
6286         * simplify-rtx.c: Ditto.
6287         * tree-object-size.c: Ditto.
6289 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6291         * config/s390/s390.c (s390_encode_section_info): Remove mode size
6292         check.
6294 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6296         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
6297         * combine.c: Use HOST_WIDE_INT_M1U instead of
6298         ~(unsigned HOST_WIDE_INT) 0.
6299         * double-int.h: Ditto.
6300         * dse.c: Ditto.
6301         * dwarf2asm.c:Ditto.
6302         * expmed.c: Ditto.
6303         * genmodes.c: Ditto.
6304         * match.pd: Ditto.
6305         * read-rtl.c: Ditto.
6306         * tree-ssa-loop-ivopts.c: Ditto.
6307         * tree-ssa-loop-prefetch.c: Ditto.
6308         * tree-vect-generic.c: Ditto.
6309         * tree-vect-patterns.c: Ditto.
6310         * tree.c: Ditto.
6312 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6314         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
6315         constant addresses outside [0,0xc0] into a register.
6316         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
6317         cases where the base address register is unused after.
6318         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
6319         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
6320         (avr_out_store_psi_reg_disp_tiny): Same.
6322 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6324         Implement attribute progmem on reduced Tiny cores by adding
6325         flash offset 0x4000 to respective symbols.
6327         PR target/71948
6328         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
6329         documentation how it works on reduced Tiny cores.
6330         (AVR Named Address Spaces): No support for reduced Tiny.
6331         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
6332         (avr_address_tiny_pm_p): New static function.
6333         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
6334         if the address is in progmem.
6335         (avr_assemble_integer): Same.
6336         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
6337         for symbol_ref in progmem.
6338         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
6339         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
6340         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
6342 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
6344         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
6345         * configure: Regenerate.
6346         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
6347         (USE_THIN_ARCHIVES): New variable.
6348         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
6349         this archive as a thin archive.
6351 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6353         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
6354         same location as last time, don't skip if we have fix-it hints.
6355         Clarify the skipping logic by converting it from one "if" clause
6356         to repeated "if" clauses.
6357         * spellcheck-tree.c: Include "cpplib.h".
6358         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6359         (best_macro_match::best_macro_match): New constructor.
6360         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6361         Move here from c/c-decl.c.
6362         (class best_macro_match): Move here from c/c-decl.c, converting
6363         from a typedef to a subclass, gaining a ctor.
6365 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6367         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6368         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6369         define...
6370         (avr_addr_space_diagnose_usage): ...and implementation.
6371         (avr_addr_space_supported_p): New function.
6372         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6373         report bad address space usage if that space is supported.
6374         (avr_insert_attributes): Same.  No more complain about unsupported
6375         address spaces.
6376         * config/avr/avr-c.c (tm_p.h): Include it.
6377         (avr_cpu_cpp_builtins): Only define addr-space related built-in
6378         macro if avr_addr_space_supported_p.
6380 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6382         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6383         flag_toplevel_reorder.
6385 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6387         * gcc-rich-location.c
6388         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6389         a const char *.
6390         * gcc-rich-location.h
6391         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6393 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6395         * target.def (addr_space): Add new diagnose_usage to hook vector.
6396         * targhooks.c (default_addr_space_diagnose_usage): Add default
6397         implementation and...
6398         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6399         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6400         is some address space, call targetm.addr_space.diagnose_usage.
6401         * doc/tm.texi.in (Named Address Spaces): Add anchor for
6402         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6403         * doc/tm.texi: Regenerate.
6405 2016-07-20  Martin Liska  <mliska@suse.cz>
6407         PR middle-end/71898
6408         * graphite-isl-ast-to-gimple.c (later_of_the_two):
6409         Properly handly PHI stmts.
6411 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
6413         PR tree-optimization/71503
6414         PR tree-optimization/71683
6415         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6416         and break.
6418 2016-07-20  Martin Liska  <mliska@suse.cz>
6420         * doc/invoke.texi (-fipa-ra): Document when the option is
6421         disabled. Fix a typo.
6423 2016-07-20  Martin Liska  <mliska@suse.cz>
6425         * Makefile.in: Include fibonacci_heap.c
6426         * fibonacci_heap.c: New file.
6427         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6428         (fibonacci_heap::union_with): Fix deletion of the second heap.
6429         * selftest-run-tests.c (selftest::run_tests): Incorporate
6430         fibonacci heap tests.
6431         * selftest.h: Declare fibonacci_heap_c_tests.
6433 2016-07-20  Martin Liska  <mliska@suse.cz>
6435         * selftest-run-tests.c (selftest::run_tests): New function.
6436         * selftest.h (sreal_c_tests): Declare.
6437         * sreal.c (sreal_verify_basics): New function.
6438         (verify_aritmetics): Likewise.
6439         (sreal_verify_arithmetics): Likewise.
6440         (verify_shifting): Likewise.
6441         (sreal_verify_shifting): Likewise.
6442         (void sreal_c_tests): Likewise.
6444 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6446         PR rtl-optimization/71916
6447         * cfgrtl.c (contains_no_active_insn_p): Return false also for
6448         bb which have a single succ fake edge.
6450 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
6452         PR debug/71855
6453         * dwarf2out.c (gen_subprogram_die): Only call
6454         gen_unspecified_parameters_die while dumping early dwarf.
6456 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6458         PR middle-end/71874
6459         * gimple-fold.c (fold_builtin_memory_op): Use
6460         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6462 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
6464         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
6465         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
6466         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
6467         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
6468         * combine.c: Ditto.
6469         * cse.c: Ditto.
6470         * dojump.c: Ditto.
6471         * double-int.c: Ditto.
6472         * dse.c: Ditto.
6473         * dwarf2out.c: Ditto.
6474         * expmed.c: Ditto.
6475         * expr.c: Ditto.
6476         * fold-const.c: Ditto.
6477         * function.c: Ditto.
6478         * fwprop.c: Ditto.
6479         * genmodes.c: Ditto.
6480         * hwint.c: Ditto.
6481         * hwint.h: Ditto.
6482         * ifcvt.c: Ditto.
6483         * loop-doloop.c: Ditto.
6484         * loop-invariant.c: Ditto.
6485         * loop-iv.c: Ditto.
6486         * match.pd: Ditto.
6487         * optabs.c: Ditto.
6488         * real.c: Ditto.
6489         * reload.c: Ditto.
6490         * rtlanal.c: Ditto.
6491         * simplify-rtx.c: Ditto.
6492         * stor-layout.c: Ditto.
6493         * toplev.c: Ditto.
6494         * tree-ssa-loop-ivopts.c: Ditto.
6495         * tree-vect-generic.c: Ditto.
6496         * tree-vect-patterns.c: Ditto.
6497         * tree.c: Ditto.
6498         * tree.h: Ditto.
6499         * ubsan.c: Ditto.
6500         * varasm.c: Ditto.
6501         * wide-int-print.cc: Ditto.
6502         * wide-int.cc: Ditto.
6503         * wide-int.h: Ditto.
6505 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6507         * selftest.c (selftest::assert_streq): Handle NULL values of
6508         val_actual and val_expected.
6510 2016-07-19  Martin Jambor  <mjambor@suse.cz>
6512         PR fortran/71688
6513         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
6514         rather than cgraph_create_node to get a call graph node.
6516 2016-07-19  Richard Biener  <rguenther@suse.de>
6518         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
6519         handle all tcc_constant bases and valueize SSA names.
6520         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
6521         tcc_constant bases.
6523 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6525         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
6526         the flags of the exit block and bb2, not just the entry block.
6528 2016-07-19  Richard Biener  <rguenther@suse.de>
6530         PR tree-optimization/71901
6531         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6532         align member, group stuff with the bitfield.
6533         (vn_ref_op_align_unit): New inline.
6534         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
6535         record element alignment and operand 3 unchanged.
6536         (ao_ref_init_from_vn_reference): Adjust.
6537         (valueize_refs_1): Likewise.
6538         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6540 2016-07-19  Richard Biener  <rguenther@suse.de>
6542         PR tree-optimization/71908
6543         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
6544         symbolic constants in a more reliable way.
6546 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6548         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
6549         comment.
6550         (vect_update_inits_of_drs): Likewise.
6551         (vect_create_cond_for_alias_checks): Likewise.
6552         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
6554 2016-07-19  Richard Biener  <rguenther@suse.de>
6556         PR lto/71907
6557         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
6558         with an abstract origin that is not an inlined function outer
6559         scope add a self-reference as abstract origin.
6560         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
6562 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6564         PR target/71493
6565         * config/rs6000/rs6000.c (rs6000_function_value): Fix
6566         unintentional System V.4 structure return breakage for structures
6567         with a single floating point element.
6569 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
6571         PR tree-optimization/71734
6572         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
6573         contains REF, use it to check safelen, assume that safelen value
6574         must be greater 1, fix style.
6575         (ref_indep_loop_p_2): Add REF_LOOP argument.
6576         (ref_indep_loop_p): Pass LOOP as additional argument to
6577         ref_indep_loop_p_2.
6579 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6581         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
6582         allocation in the prologue.
6583         * explow.c (get_dynamic_stack_base): New function to return an address
6584         expression for the dynamic stack base.
6585         (get_dynamic_stack_size): New function to do the required dynamic stack
6586         space size calculations.
6587         (allocate_dynamic_stack_space): Use new functions.
6588         (align_dynamic_address): Move some code from
6589         allocate_dynamic_stack_space to new function.
6590         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
6592 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6594         * config/s390/s390.c (s390_encode_section_info): Always set
6595         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
6596         found.
6598 2016-07-18  Richard Biener  <rguenther@suse.de>
6600         PR tree-optimization/71893
6601         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
6602         for sizetype cast added by array_ref_element_size.
6603         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6605 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
6607         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
6608         register parameters.  Remove code to initialize argument pointer
6609         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
6610         using a pc-relative branch.  Cleanup conditional code.
6611         * config/pa/pa.md (call_mcount): New expander.
6612         (call_mcount_nonpic): New insn.
6613         (call_mcount_pic): New insn and split.
6614         (call_mcount_pic_post_reload): New insn.
6615         (call_mcount_64bit): New insn and split.
6616         (call_mcount_64bit_post_reload): New insn.
6618 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
6620         * config/avr/predicates.md (const_m255_to_m1_operand): New.
6621         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
6622         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
6623         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
6624         (*usum_widenqihi3, *udiff_widenqihi3)
6625         (*addhi3_zero_extend.const): New combiner insns.
6626         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
6627         just 1 bit is affected.
6628         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
6629         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
6631 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
6633         * omp-low.c (lower_omp_target): Mark data clauses with
6634         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
6635         zero-length subarrays.
6637 2016-07-15  Richard Biener  <rguenther@suse.de>
6639         PR tree-optimization/71881
6640         * tree-loop-distribution.c (destroy_loop): Remove blocks in
6641         reverse DOM order to make debug temp generation happy.
6643 2016-07-15  Richard Biener  <rguenther@suse.de>
6645         PR tree-optimization/71887
6646         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
6647         verify it is not zero for division / modulo handling.
6648         (value_replacement): Adjust.
6650 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
6651             Julian Brown  <julian@codesourcery.com>
6653         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
6654         * config/aarch64/aarch64-cost-tables.h
6655         (vulcan_extra_costs): New variable.
6656         * config/aarch64/aarch64.c
6657         (vulcan_addrcost_table): Likewise.
6658         (vulcan_regmove_cost): Likewise.
6659         (vulcan_vector_cost): Likewise.
6660         (vulcan_branch_cost): Likewise.
6661         (vulcan_tunings): Likewise.
6663 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
6665         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
6666         (output_in_order): Loop over undefined variables too.  Output them
6667         via assemble_undefined_decl.  Skip variables that correspond to hard
6668         registers or have value-exprs.
6669         * varpool.c (symbol_table::output_variables): Handle undefined
6670         variables together with defined ones.
6672 2016-07-15  Richard Biener  <rguenther@suse.de>
6674         * tree-ssa-pre.c (get_representative_for): Make sure to return
6675         the value number of SSA names.
6676         (phi_translate_1): get_representative_for cannot return NULL.
6677         (do_pre_regular_insertion): Remove redundant call to
6678         fully_constant_expression.
6679         (do_pre_partial_partial_insertion): Likewise.
6681 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
6683         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
6684         (derive_simple_iv_with_niters): New function.
6685         (simple_iv): Rewrite using simple_iv_with_niters.
6686         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
6687         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6688         function.
6689         (number_of_iterations_exit): Rewrite using above function.
6690         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6691         Decl.
6693 2016-07-15  Richard Biener  <rguenther@suse.de>
6695         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
6696         vec_construct cost.
6698 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
6700         PR tree-optimization/71872
6701         * tree-data-ref.c (get_references_in_stmt): Ignore references
6702         with is_gimple_constant get_base_address.
6704 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6706         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
6707         (TARGET_HAVE_LDACQD): New macro.
6708         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
6709         than TARGET_HAVE_LDACQ.
6710         (arm_load_acquire_exclusivedi): Likewise.
6711         (arm_store_release_exclusivedi): Likewise.
6713 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6715         PR rtl-optimization/71878
6716         * lra-constraints.c (match_reload): Pass information about other
6717         output operands.  Create new unique register value if matching input
6718         operand shares same register value as output operand being considered.
6719         (curr_insn_transform): Record output operands already processed.
6721 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6723         PR target/65951
6724         PR tree-optimization/70923
6725         * tree-vect-patterns.c: Include mult-synthesis.h.
6726         (target_supports_mult_synth_alg): New function.
6727         (synth_lshift_by_additions): Likewise.
6728         (apply_binop_and_append_stmt): Likewise.
6729         (vect_synth_mult_by_constant): Likewise.
6730         (target_has_vecop_for_code): Likewise.
6731         (vect_recog_mult_pattern): Use above functions to synthesize vector
6732         multiplication by integer constants.
6734 2016-07-14  Alan Modra  <amodra@gmail.com>
6736         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
6737         gpr alternatives.  Correct '*' placement on Y,r alternative.
6738         Add '*' on operand 1 of r,r alternative.
6740 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6742         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
6743         * expmed.h: ... Here.
6745 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
6747         * gimple.h (stmt_can_terminate_bb_p): New function.
6748         * tree-cfg.c (need_fake_edge_p): Rename to ...
6749         (stmt_can_terminate_bb_p): ... this; return true if stmt can
6750         throw external; handle const and pure calls.
6751         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
6753 2016-07-14  Richard Biener  <rguenther@suse.de>
6755         PR tree-optimization/71866
6756         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
6757         (do_hoist_insertion): Avoid endless recursion when we
6758         didn't insert anything because we managed to simplify
6759         things down to a constant or SSA name.
6760         (fully_constant_expression): Re-write in terms of ...
6761         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
6762         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
6763         vn_nary_build_or_lookup_1.
6764         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
6765         (vn_nary_build_or_lookup): ... this which now wraps it.
6767 2016-07-14  Alan Modra  <amodra@gmail.com>
6769         PR target/71733
6770         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
6771         with p9_vector override before power9-dform override.
6773 2016-07-13  Andi Kleen  <ak@linux.intel.com>
6775         * value-prof.c (gimple_value_profile_transformations): Don't run
6776         when auto_profile is on.
6778 2016-07-13  Andi Kleen  <ak@linux.intel.com>
6780         * auto-profile.c (update_inlined_ind_target,
6781         afdo_indirect_call): Print information to dump file.
6783 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6785         * genrecog.c (special_predicate_operand_p): New function.
6786         (predicate_name): Move function.
6787         (validate_pattern): Don't warn about missing mode for all
6788         define_special_predicate predicates.
6790 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
6792         * tree-vect-data-refs.c (vect_no_alias_p): New function.
6793         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
6794         resolve alias checks which are known at compilation time.
6795         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
6796         alias checks are resolved.  Move dump info for too many runtime
6797         alias checks to here...
6798         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
6800 2016-07-13  Richard Biener  <rguenther@suse.de>
6802         PR tree-optimization/24574
6803         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
6804         position and add shift, rotate, divison and modulo support
6805         for left zero.
6806         (value_replacement): Pass in argument position to absorbing_element_p.
6808 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6810         PR ipa/71633
6811         * ipa-inline-transform.c (inline_call): Support
6812         instrumented thunks.
6814 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6816         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
6817         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
6818         divide feature.
6819         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
6820         Baseline.  Make initial alternative TARGET_32BIT only.
6821         (udivsi3): Likewise.
6822         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
6823         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
6824         target.
6826 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6828         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
6829         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
6830         availability with TARGET_HAVE_MOVT.
6831         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
6832         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
6833         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
6834         UINTVAL.
6835         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
6836         extra instruction if MOVW is available.  Use a cost variable
6837         incremented by COSTS_N_INSNS (1) when the condition match rather than
6838         returning an arithmetic expression based on COSTS_N_INSNS.  Make
6839         constant with bottom half word zero cost 2 instruction if MOVW is
6840         available.
6841         * config/arm/arm.md (define_attr "arch"): Add v8mb.
6842         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
6843         target is ARMv8-M Baseline.
6844         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
6845         (arm_movtas_ze): Likewise.
6846         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
6847         alternative for constants satisfying j constraint.
6848         (thumb1_movsi_insn): Likewise.
6849         (movsi splitter for K alternative): Tighten condition to not trigger
6850         if movt is available and j constraint is satisfied.
6851         (Pe immediate splitter): Likewise.
6852         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
6853         constant fitting in an halfword to use MOVW.
6854         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
6855         effective target.
6857 2016-07-13  Richard Biener  <rguenther@suse.de>
6859         PR middle-end/71104
6860         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
6861         gimplifying the LHS.  Make sure to gimplify a returning twice
6862         call LHS without using SSA names.
6864 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6866         * tree-data-ref.c (find_data_references_in_stmt): Remove
6867         unnecessary call to vec::release.
6868         (graphite_find_data_references_in_stmt): Likewise.
6869         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
6870         * tree-vect-stmts.c (vectorizable_condition): Likewise.
6872 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6874         * cfgexpand.c (expand_used_vars): Make the type of a local
6875         variable auto_vec.
6876         * genmatch.c (lower_for): Likewise.
6877         * haifa-sched.c (haifa_sched_init): Likewise.
6878         (add_to_speculative_block): Likewise.
6879         (create_check_block_twin): Likewise.
6880         * predict.c (handle_missing_profiles): Likewise.
6881         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
6882         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
6883         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6884         Likewise.
6885         (maybe_lower_iteration_bound): Likewise.
6886         * tree-ssa-sccvn.c (DFS): Likewise.
6887         * tree-stdarg.c (reachable_at_most_once): Likewise.
6888         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
6889         (vectorizable_store): Likewise.
6891 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6893         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
6894         (sccvn_dom_walker): make cond_stack an auto_vec.
6896 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6898         * ree.c (struct ext_state): Make type of members auto_vec.
6899         (find_and_remove_re): Adjust.
6901 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6903         * cfgexpand.c (struct stack_vars_data): Make type of fields
6904         auto_vec.
6905         (expand_used_vars): Adjust.
6907 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6909         * ipa.c (record_cdtor_fn): Adjust.
6910         (build_cdtor_fns): Likewise.
6911         (ipa_cdtor_merge): Make static_ctors and static_dtors local
6912         variables.
6914 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6916         * genextract.c (struct accum_extract): Add constructor and make
6917         members auto_vec.
6918         (gen_insn): Adjust.
6920 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6922         * tree.c (struct free_lang_data_d): Add constructor and change
6923         types of members to ones that automatically manage resources.
6924         (fld_worklist_push): Adjust.
6925         (find_decls_types): Likewise.
6926         (find_decls_types_in_eh_region): Likewise.
6927         (free_lang_data_in_cgraph): Stop manually creating and
6928         destroying members of free_lang_data_d.
6930 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
6932         PR rtl-optimization/68961
6933         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
6934         peephole variant.  Use sse_reg_operand predicates.
6936 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
6938         * config/i386/predicates.md (x86_64_immediate_operand)
6939         <case CONST_INT>: Remove unneeded truncation to DImode.
6940         <case CONST>: Ditto.
6941         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
6943 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6945         PR target/71805
6946         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
6947         The xxperm and xxpermr instructions require that the 2nd input
6948         operand overlap with the output operand, and not the 1st.
6949         (altivec_vperm_v8hiv16qi): Likewise.
6950         (altivec_vperm_<mode>_uns_internal): Likewise.
6951         (altivec_vpermr_<mode>_internal): Likewise.
6952         (vperm_v8hiv4si): Likewise.
6953         (vperm_v16qiv8hi): Likewise.
6955 2016-07-12  Nathan Sidwell  <nathan@acm.org>
6957         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
6958         when -mno-pic-data-is-text-relative is in effect, by default.
6959         * doc/invoke.texi (mpic-data-is-text-relative): Document new
6960         behavior and clarify.
6962 2016-07-12  Martin Liska  <mliska@suse.cz>
6964         * params.def: Add avg-loop niter.
6965         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
6966         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
6967         * doc/invoke.texi: Document the new parameter.
6969 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6971         PR middle-end/71700
6972         * expr.c (store_constructor): Mask sign-extended bits when widening
6973         sub-word constructor element at the start of a word.
6975 2016-07-12  Martin Liska  <mliska@suse.cz>
6977         * Makefile.in: Append rule for params-options.h.
6978         * params-options.h: New file.
6980 2016-07-12  Martin Liska  <mliska@suse.cz>
6982         * ira-build.c (mark_loops_for_removal): Properly iterate
6983         loops.
6985 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
6986             Richard Biener  <rguenther@suse.de>
6988         PR tree-optimization/23286
6989         PR tree-optimization/70159
6990         * doc/invoke.texi: Document -fcode-hoisting.
6991         * common.opt (fcode-hoisting): New flag.
6992         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
6993         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
6994         (do_regular_insertion): Rename to ...
6995         (do_pre_regular_insertion): ... this and amend general comments
6996         on insertion strathegy.
6997         (do_partial_partial_insertion): Rename to ...
6998         (do_pre_partial_partial_insertion): ... this.
6999         (do_hoist_insertion): New function.
7000         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
7001         and call do_hoist_insertion properly.
7002         (insert): Adjust.
7003         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
7004         (pass_pre::execute): Register hoist_insert stats.
7006 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
7008         PR middle-end/71716
7009         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
7010         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
7011         is different from mode's bitsize.  Small cleanup.
7013 2016-07-12  Richard Biener  <rguenther@suse.de>
7015         PR rtl-optimization/68961
7016         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
7017         to simplify to a non-constant.
7019 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
7021         PR middle-end/71758
7022         * omp-low.c (expand_omp_target): Gimplify device.
7024         PR tree-optimization/71823
7025         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
7026         to get vec_oprnds2 from op2.
7028 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
7030         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
7031         Hoist common subexpressions.
7032         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7034 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
7036         PR target/71800
7037         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
7038         prevent generation of 'stxsiwx' on pre Power8 hardware.
7040 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7042         * input.c: Include cpplib.h.
7043         (selftest::temp_source_file): New class.
7044         (selftest::temp_source_file::temp_source_file): New ctor.
7045         (selftest::temp_source_file::~temp_source_file): New dtor.
7046         (selftest::should_have_column_data_p): New function.
7047         (selftest::test_should_have_column_data_p): New function.
7048         (selftest::temp_line_table): New class.
7049         (selftest::temp_line_table::temp_line_table): New ctor.
7050         (selftest::temp_line_table::~temp_line_table): New dtor.
7051         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
7052         it to create a temp_line_table.
7053         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
7054         locations that are known to have column data.
7055         (selftest::line_table_case): New struct.
7056         (selftest::test_reading_source_line): Move tempfile handling
7057         to class temp_source_file.
7058         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
7059         (selftest::assert_token_loc_eq): New function.
7060         (ASSERT_TOKEN_LOC_EQ): New macro.
7061         (selftest::test_lexer): New function.
7062         (selftest::boundary_locations): New array.
7063         (selftest::input_c_tests): Call test_should_have_column_data_p.
7064         Loop over a test matrix of interesting values of location and
7065         default_range_bits, calling test_lexer on each case in the matrix.
7066         Move call to test_accessing_ordinary_linemaps into the matrix.
7067         * selftest.h (ASSERT_EQ): Reimplement in terms of...
7068         (ASSERT_EQ_AT): New macro.
7070 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
7072         PR target/71801
7073         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
7074         Don't convert TImode in debug insn.
7076 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7078         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
7079         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
7080         (tree_type_common::lang_flag_7): New.
7081         (tree_type_common::spare): Reduce size.
7082         * tree.h (TYPE_ALIGN_OK): Remove.
7083         (TYPE_LANG_FLAG_7): New.
7084         (get_inner_reference): Adjust header.
7085         * print-tree.c (print_node): Adjust.
7086         * expr.c (get_inner_reference): Remove parameter keep_aligning.
7087         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
7088         calls to get_inner_reference.
7089         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
7090         handling of TYPE_ALIGN_OK.
7091         * builtins.c (get_object_alignment_2): Adjust call to
7092         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
7093         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
7094         TYPE_ALIGN_OK.
7095         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
7096         * cfgexpand.c (expand_debug_expr): Likewise.
7097         * dbxout.c (dbxout_expand_expr): Likewise.
7098         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
7099         loc_list_from_tree, fortran_common): Likewise.
7100         * fold-const.c (optimize_bit_field_compare,
7101         decode_field_reference, fold_unary_loc, fold_comparison,
7102         split_address_to_core_and_offset): Likewise.
7103         * gimple-laddress.c (execute): Likewise.
7104         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
7105         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
7106         * hsa-gen.c (gen_hsa_addr): Likewise.
7107         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
7108         * tsan.c (instrument_expr): Likewise.
7109         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
7110         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
7111         * tree-affine.c (tree_to_aff_combination,
7112         get_inner_reference_aff): Adjust calls to get_inner_reference.
7113         * tree-data-ref.c (split_constant_offset_1,
7114         dr_analyze_innermost): Likewise.
7115         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
7116         * tree-sra.c (ipa_sra_check_caller): Likewise.
7117         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
7118         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
7119         bswap_replace): Likewise.
7120         * tree-vect-data-refs.c (vect_check_gather,
7121         vect_analyze_data_refs): Likewise.
7122         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
7123         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
7124         TYPE_ALIGN_OK.
7126 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7128         * Makefile.in (selftest-valgrind): New phony target.
7129         * function-tests.c (selftest::build_cfg): Delete pass instances
7130         created by the test.
7131         (selftest::convert_to_ssa): Likewise.
7132         (selftest::test_expansion_to_rtl): Likewise.
7133         * tree-cfg.c (selftest::test_linear_chain): Release dominator
7134         vectors.
7135         (selftest::test_diamond): Likewise.
7137 2016-07-11  Richard Biener  <rguenther@suse.de>
7139         PR tree-optimization/71816
7140         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
7141         than replacing all of its operands.
7143 2016-07-11  Alan Modra  <amodra@gmail.com>
7145         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
7146         (ctr<mode>): Add unspec.
7147         (ctr<mode>_internal*): Likewise.
7149 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
7151         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
7152         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
7154 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
7156         PR rtl-optimization/71621
7157         * lra-constraints.c (process_alt_operands): Check combination of
7158         reg class and mode.
7160 2016-07-08  Jason Merrill  <jason@redhat.com>
7161             Richard Biener  <rguenther@suse.de>
7163         P0145: Refining Expression Order for C++.
7164         * gimplify.c (initial_rhs_predicate_for): New.
7165         (gimplfy_modify_expr): Gimplify RHS before LHS.
7167 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7169         PR target/71297
7170         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7171         Allow standard error handling to take over when a wrong number
7172         of arguments is presented to __builtin_vec_ld () or
7173         __builtin_vec_st ().
7175 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
7177         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
7178         variants.
7179         (smin): Likewise.
7180         (fmax): New entry.
7181         (fmin): Likewise.
7182         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
7183         __builtin_aarch64_fmaxv2sf.
7184         (vmaxnmq_f32): Likewise.
7185         (vmaxnmq_f64): Likewise.
7186         (vminnm_f32): Likewise.
7187         (vminnmq_f32): Likewise.
7188         (vminnmq_f64): Likewise.
7190 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7192         PR target/71806
7193         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
7194         enable -mfloat128-hardware by default.
7195         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
7196         that IEEE 128-bit hardware support needs.
7197         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7198         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
7199         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
7200         floating point requires.
7201         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7202         -mfloat128 and -mfloat128-hardware changes.
7204 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
7206         PR tree-optimization/71667
7207         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
7209 2016-07-08  Martin Liska  <mliska@suse.cz>
7211         PR middle-end/71606
7212         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
7213         folding produces SAVE_EXPRs, thus return false for the type.
7215 2016-07-07  Martin Liska  <mliska@suse.cz>
7217         * file-find.c (remove_prefix): New function.
7218         * file-find.h (remove_prefix): Declare the function.
7219         * gcc-ar.c (main): Skip a folder of the wrapper if
7220         a wrapped binary would point to the same file.
7222 2016-07-07  Jan Hubicka  <jh@suse.cz>
7224         * tree-scalar-evolution.c (iv_can_overflow_p): export.
7225         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
7226         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
7228 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7230         PR ipa/71624
7231         * ipa-inline-analysis.c (compute_inline_parameters): Set
7232         local.can_change_signature to false for intrumentation
7233         thunk callees.
7235 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7237         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
7238         with TARGET_HAVE_MOVT.
7239         (TARGET_HAVE_MOVT): Define.
7240         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
7241         availability with TARGET_HAVE_MOVT.
7242         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
7243         availability.
7244         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
7245         TARGET_THUMB2.
7246         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
7247         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
7248         * config/arm/constraints.md (define_constraint "j"): Use
7249         TARGET_HAVE_MOVT to check MOVT availability.
7251 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7253         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
7255 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7257         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
7258         (armv8-m.main): Likewise.
7259         (armv8-m.main+dsp): Likewise.
7260         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
7261         (FL_FOR_ARCH8M_MAIN): Likewise.
7262         * config/arm/arm-tables.opt: Regenerate.
7263         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
7264         armv8-m.main+dsp to BE8_LINK_SPEC.
7265         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
7266         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
7267         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
7268         Baseline and Mainline.
7269         (arm_option_override_internal): Also disable arm_restrict_it when
7270         !arm_arch_notm.  Update comment for -munaligned-access to also cover
7271         ARMv8-M Baseline.
7272         (arm_file_start): Increase buffer size for printing architecture name.
7273         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
7274         and armv8-m.main+dsp.
7275         (mno-unaligned-access): Clarify that this is disabled by default for
7276         ARMv8-M Baseline architectures as well.
7278 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7280         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
7281         decide whether to prevent some libgcc routines being included for some
7282         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
7283         link between this condition and the one in
7284         libgcc/config/arm/lib1func.S.
7286 2016-07-07  Richard Biener  <rguenther@suse.de>
7288         * tree-ssa-pre.c: Include alias.h.
7289         (compute_avail): If we have multiple VN_REFERENCEs with the
7290         same hashtable entry adjust that to make it a valid replacement
7291         for all of them with respect to alignment and aliasing
7292         when doing insertion.
7293         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
7294         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
7296 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
7298         PR target/70098
7299         PR target/71763
7300         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7301         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
7302         constraint.
7304 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7306         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
7307         (adjust_mems): Adjust.
7308         (adjust_insn): Likewise.
7309         (prepare_call_arguments): Likewise.
7311 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7313         * gcse.c (struct ls_expr): Make stores field a vector.
7314         (ldst_entry): Adjust.
7315         (free_ldst_entry): Likewise.
7316         (print_ldst_list): Likewise.
7317         (compute_ld_motion_mems): Likewise.
7318         (update_ld_motion_stores): Likewise.
7320 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7322         * gcse.c (struct ls_expr): Remove loads field.
7323         (ldst_entry): Adjust.
7324         (free_ldst_entry): Likewise.
7325         (print_ldst_list): Likewise.
7326         (compute_ld_motion_mems): Likewise.
7328 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7330         * store-motion.c (struct st_expr): Make antic_stores a vector.
7331         (st_expr_entry): Adjust.
7332         (free_st_expr_entry): Likewise.
7333         (print_store_motion_mems): Likewise.
7334         (find_moveable_store): Likewise.
7335         (compute_store_table): Likewise.
7336         (remove_reachable_equiv_notes): Likewise.
7337         (replace_store_insn): Likewise.
7338         (build_store_vectors): Likewise.
7340 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7342         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
7343         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
7345 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7347         PR tree-optimization/71518
7348         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
7349         misalign also for outer loops with negative step.
7351 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
7353         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
7354         (cortex_a53_shift): Add mov_shift.
7355         (cortex_a53_shift_reg): Add new reservation for register shifts.
7356         (cortex_a53_alu): Remove bfm.
7357         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7358         (cortex_a53_alu_extr): Add new reservation for EXTR.
7359         (bypasses): Improve bypass modelling.
7361 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7363         PR target/50739
7364         * config/avr/avr.c (avr_asm_select_section): Strip off
7365         SECTION_DECLARED from flags when calling get_section.
7367 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7369         * tree-vectorizer.h (vect_memory_access_type): Add
7370         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7371         * tree-vect-stmts.c (compare_step_with_zero): New function.
7372         (perm_mask_for_reverse): Move further up file.
7373         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7374         step is negative.
7375         (get_negative_load_store_type): New function.
7376         (get_load_store_type): Call it.  Add an ncopies argument.
7377         (vectorizable_mask_load_store): Update call accordingly and
7378         remove tests for negative steps.
7379         (vectorizable_store, vectorizable_load): Likewise.  Handle new
7380         memory_access_types.
7382 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7384         * tree-vectorizer.h (vect_memory_access_type): New enum.
7385         (_stmt_vec_info): Add a memory_access_type field.
7386         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7387         (vect_model_store_cost): Take an access type instead of a boolean.
7388         (vect_model_load_cost): Likewise.
7389         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7390         vect_model_store_cost and vect_model_load_cost.
7391         * tree-vect-stmts.c (vec_load_store_type): New enum.
7392         (vect_model_store_cost): Take an access type instead of a
7393         store_lanes_p boolean.  Simplify tests.
7394         (vect_model_load_cost): Likewise, but for load_lanes_p.
7395         (get_group_load_store_type, get_load_store_type): New functions.
7396         (vectorizable_store): Use get_load_store_type.  Record the access
7397         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7398         (vectorizable_load): Likewise.
7399         (vectorizable_mask_load_store): Likewise.  Replace is_store
7400         variable with vls_type.
7402 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7404         * tree-vectorizer.h (vect_grouped_load_supported): Add a
7405         single_element_p parameter.
7406         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7407         Check the PR65518 case here rather than in vectorizable_load.
7408         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7409         * tree-vect-stmts.c (vectorizable_load): Likewise.
7411 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7413         * tree-vectorizer.h (gather_scatter_info): New structure.
7414         (vect_check_gather_scatter): Return a bool rather than a decl.
7415         Replace return-by-pointer arguments with a single
7416         gather_scatter_info *.
7417         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7418         (vect_analyze_data_refs): Update call accordingly.
7419         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7420         (vectorizable_mask_load_store): Likewise.  Also record the
7421         offset dt and vectype in the gather_scatter_info.
7422         (vectorizable_store): Likewise.
7423         (vectorizable_load): Likewise.
7425 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7427         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7428         strided groups, use the cost of N scalar accesses instead
7429         of ncopies vector accesses.
7430         (vect_model_load_cost): Likewise.
7432 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7434         * tree-vect-stmts.c (vect_cost_group_size): Delete.
7435         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
7436         variable to indicate when once-per-group costs are being used.
7437         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
7439 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7441         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7442         peeling-for-gaps condition.
7444 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7446         * config/s390/s390.c (s390_expand_vec_init): Force initializer
7447         element to register if it doesn't match general_operand.
7449 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7450             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7452         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
7453         prototype.
7454         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
7455         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
7456         (SIGNBIT): New mode iterator.
7457         (Fsignbit): New mode attribute.
7458         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
7459         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
7460         when direct moves are available.
7461         (signbit<mode>2_dm): New define_insn_and_split).
7462         (signbit<mode>2_dm2): New define_insn.
7464 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7466         PR rtl-optimization/71594
7467         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
7468         into subregs of appropriate mode before trying to emit a conditional
7469         move.
7471 2016-07-05  Jan Hubicka  <jh@suse.cz>
7473         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
7474         (simple_iv): Use it.
7476 2016-07-05  Jan Hubicka  <jh@suse.cz>
7478         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
7480 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
7482         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
7483         "offmemok".
7485 2016-07-05  Jan Hubicka  <jh@suse.cz>
7487         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
7488         IV can overflow.
7490 2016-07-05  Richard Biener  <rguenther@suse.de>
7492         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
7493         Handle empty else block.
7494         (is_feasible_trace): Likewise.
7495         (split_paths): Likewise.
7497 2016-07-05  Richard Biener  <rguenther@suse.de>
7499         * tree-loop-distribution.c (distribute_loop): Fix issue with
7500         the cost model loop.
7502 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
7504         * config/arm/neon-testgen.ml: Delete.
7505         * config/arm/neon.ml: Delete.
7507 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
7509         PR c++/71739
7510         * tree.c (attribute_value_equal): Use get_attribute_name instead of
7511         directly using TREE_PURPOSE.
7513 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
7515         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
7516         * config/aarch64/aarch64_neon.h: Likewise.
7517         * config/aarch64/arm_neon.h: Likewise.
7518         * config/aarch64/atomics.md: Likewise.
7519         * config/aarch64/aarch64-simd-builtins.def: Likewise.
7520         * doc/invoke.texi: Likewise.
7522 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7524         * config/s390/s390.md: Add "z13" cpu_facility.
7525         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
7526         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
7527         condition" type instructions.
7529 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7530             Jeff Law  <law@redhat.com>
7532         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
7533         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
7535 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
7537         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
7538         permutation for TARGET_AVX512F.
7539         (ix86_expand_vec_one_operand_perm_avx512): New function.
7540         (expand_vec_perm_1): Invoke introduced function.
7541         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7542         it may be not valid after vectorization.
7544 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7546         PR target/63874
7547         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
7548         typo in comment.  Only force to memory if it is a weak
7549         external reference.
7551 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
7552             Jiong Wang  <jiong.wang@arm.com>
7554         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
7555         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
7556         (AARCH64_FL_F16): New.
7557         (AARCH64_FL_FOR_ARCH8_2): New.
7558         (AARCH64_ISA_8_2): New.
7559         (AARCH64_ISA_F16): New.
7560         (TARGET_FP_F16INST): New.
7561         (TARGET_SIMD_F16INST): New.
7562         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
7563         ("fp"): Disabling "fp" also disables "fp16".
7564         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
7565         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
7566         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
7567         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
7569 2016-07-04  Jan Beulich  <jbeulich@suse.com>
7571         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
7573 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7575         PR target/71720
7576         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
7577         the insns, use an insn form that does not adjust the offset on
7578         little endian systems.
7580 2016-07-01  Jan Beulich  <jbeulich@suse.com>
7582         * varasm.c (get_variable_section): Validate initializer in
7583         named .bss-like sections.
7585 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7587         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
7588         Exchange the order of the second and third operands in the vpermr
7589         instruction tmeplate.
7591 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
7593         PR target/71698
7594         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
7595         Disallow TDmode values.
7597 2016-07-01  Alan Modra  <amodra@gmail.com>
7599         PR rtl-optimization/71709
7600         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
7601         being set, not referenced.
7603 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
7605         PR tree-optimization/70729
7606         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
7607         of loop since it can be not valid after transformation.
7609 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7611         * config/arm/arm.c (thumb_reload_in_hi): Delete.
7612         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
7614 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
7616         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
7617         for NULL decl.
7619 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7621         PR target/71677
7622         * config/rs6000/constraints.md (wY constraint): New constraint to
7623         match the requirements for the LXSD and STXSD instructions.
7624         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
7625         predicate to match the requirements for the LXSD and STXSD
7626         instructions.
7627         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
7628         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
7629         to make sure that the bottom 2 bits of offset are 0, the address
7630         form is offsettable, and no updating is done in the address mode.
7631         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
7632         (movdi_internal32): Likewise
7633         (movdi_internal64): Likewise.
7635 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
7637         PR tree-optimization/71707
7638         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
7639         strinfo even for ADDR_EXPR ptr.
7641 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7643         * config/rs6000/altivec.md (darn_32): Change the condition to
7644         TARGET_P9_MISC instead of TARGET_MODULO.
7645         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
7646         condition expression.
7647         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
7648         condition expression.
7649         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
7650         (DFP_TEST): New code iterator.
7651         (dfptstsfi_<code>_mode>): New define_expand.
7652         (*dfp_sgnfcnc_<mode>): New define_insn.
7653         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
7654         definition next to BU_P9_MISC_1 definition and change the MASK
7655         value to RS6000_BTM_P9_MISC.
7656         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
7657         (BU_P9_64BIT_MISC_0): Likewise.
7658         (BU_P9_DFP_MISC_0): New macro definition.
7659         (BU_P9_DFP_MISC_1): New macro definition.
7660         (BU_P9_DFP_MISC_2): New macro definition.
7661         (BU_P9_DFP_OVERLOAD_1): New macro definition.
7662         (BU_P9_DFP_OVERLOAD_2): New macro definition.
7663         (BU_P9_DFP_OVERLOAD_3): New macro definition.
7664         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
7665         (TSTSFI_LT_TD): Likewise.
7666         (TSTSFI_EQ_DD): Likewise.
7667         (TSTSFI_EQ_TD): Likewise.
7668         (TSTSFI_GT_DD): Likewise.
7669         (TSTSFI_GT_TD): Likewise.
7670         (TSTSFI_OV_DD): Likewise.
7671         (TSTSFI_OV_TD): Likewise.
7672         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
7673         (TSTSFI_LT_DD): Likewise.
7674         (TSTSFI_LT_TD): Likewise.
7675         (TSTSFI_EQ): Likewise.
7676         (TSTSFI_EQ_DD): Likewise.
7677         (TSTSFI_EQ_TD): Likewise.
7678         (TSTSFI_GT): Likewise.
7679         (TSTSFI_GT_DD): Likewise.
7680         (TSTSFI_GT_TD): Likewise.
7681         (TSTSFI_OV): Likewise.
7682         (TSTSFI_OV_DD): Likewise.
7683         (TSTSFI_OV_TD): Likewise.
7684         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7685         overloaded test significance functions.
7686         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7687         OPTION_MASK_P9_MISC into the representation of this mask.
7688         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
7689         of this mask.
7690         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
7691         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
7692         non-zero.
7693         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
7694         argument is a 6-bit unsigned literal value if the icode argument
7695         represents a DFP test significance built-in call.
7696         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
7697         flag used independently and in combination with the
7698         RS6000_BTM_64BIT flag.
7699         (rs6000_opt_masks): Add entry for power9-misc command-line option.
7700         (rs6000_builtin_mask_names): Add entry for power9-misc
7701         command-line option.
7702         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
7703         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
7704         RS6000_BTM_P9_MISC macros.
7705         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
7706         option and change the description of the -mpower9-vector option to
7707         enable only vector instructions, removing its erroneously claimed
7708         support for scalar instructions.
7709         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7710         the ISA 3.0 digital floating point test significance built-in
7711         functions.
7713 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
7715         * config/aarch64/aarch64.c (cortexa35_tunings):
7716         Enable AES fusion.  Use cortexa57_branch_cost.
7717         (cortexa53_tunings): Use cortexa57_branch_cost.
7718         (cortexa72_tunings): Use cortexa57_branch_cost.
7719         Use AUTOPREFETCHER_WEAK.
7720         (cortexa73_tunings): Use cortexa57_branch_cost.
7722 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7723             James Greenhalgh  <james.greenhalgh@arm.com>
7725         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
7726         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
7727         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
7728         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
7729         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
7730         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
7731         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
7732         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
7733         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
7734         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
7735         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
7736         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
7737         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
7738         New intrinsics.
7740 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
7741             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7743         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
7744         New define_insn.
7745         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
7747 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
7749         PR driver/71651
7750         * gcc.c (driver::build_option_suggestions): Pass "option" to
7751         add_misspelling_candidates.
7752         * opts-common.c (add_misspelling_candidates): Add "option" param;
7753         use it to avoid adding negated forms for options marked with
7754         RejectNegative.
7755         * opts.h (add_misspelling_candidates): Add "option" param.
7757 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
7759         PR middle-end/71693
7760         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
7761         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
7762         first when permuting bitwise operation with rotate.  Cast
7763         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
7765 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
7767         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
7768         for misspelled param names.
7769         * params.c: Include spellcheck.h.
7770         (find_param_fuzzy): New function.
7771         * params.h (find_param_fuzzy): New prototype.
7772         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
7773         * spellcheck.h (struct edit_distance_traits<const char *>):
7774         ...here.
7776 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7778         * config/rs6000/predicates.md (const_0_to_7_operand): New
7779         predicate, recognize 0..7.
7780         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7781         support for doing extracts from V16QImode, V8HImode, V4SImode
7782         under ISA 3.0.
7783         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
7784         vector extract support.
7785         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
7786         for ISA 3.0 vector extract.
7787         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
7788         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
7789         extracts of a constant element number from small integer vectors
7790         on 64-bit ISA 3.0 systems.
7791         (vsx_extract_<mode>_di): Likewise.
7792         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
7793         say when we can do ISA 3.0 vector extracts.
7794         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
7795         registers, using the stxsiwx instruction.
7797 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
7799         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
7800         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
7801         qdf24xx_regmove_cost, qdf24xx_tunings): New.
7802         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
7803         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
7804         * config/arm/arm.c (arm_qdf24xx_tune): New.
7806 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
7808         * config/aarch64/aarch64.c (cortexa53_tunings):
7809         Increase loop alignment to 8.  Set function alignment to 16.
7810         (cortexa35_tunings): Likewise.
7811         (cortexa57_tunings): Increase loop alignment to 8.
7812         (cortexa72_tunings): Likewise.
7813         (cortexa73_tunings): Likewise.
7815 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
7817         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
7818         for arm_fp16_ok and arm_fp16_hw.
7819         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
7820         arm_fp16_alternative.
7822 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7824         PR tree-optimization/71655
7825         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
7826         types when swapping operands.
7828 2016-06-29  Martin Liska  <mliska@suse.cz>
7830         PR middle-end/71585
7831         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
7832         * ipa-inline-transform.c (inline_call): Remove unnecessary call
7833         of build_optimization_node.
7835 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
7837         PR tree-optimization/70729
7838         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
7839         independent in loops having positive safelen value.
7840         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7841         it may be not valid after vectorization.
7843 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
7845         PR tree-optimization/71625
7846         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
7847         is sorted by ascending list->offset.  If PTR is non-NULL and there is
7848         previous strinfo, call get_stridx_plus_constant.
7849         (get_stridx): Pass exp as second argument to get_addr_stridx.
7850         (addr_stridxptr): Add missing list = list->next, so that there can be
7851         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
7852         the list is sorted by ascending list->offset.
7853         (get_stridx_plus_constant): Adjust so that it can be also called with
7854         ADDR_EXPR instead of SSA_NAME as PTR.
7855         (handle_char_store): Pass NULL_TREE as second argument to
7856         get_addr_stridx.
7858 2016-06-29  Richard Biener  <rguenther@suse.de>
7860         PR rtl-optimization/68961
7861         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
7863 2016-06-29  Richard Biener  <rguenther@suse.de>
7865         PR middle-end/71002
7866         * alias.c (component_uses_parent_alias_set_from): Handle
7867         type punning through union accesses by using the union alias set.
7868         * gimple.c (gimple_get_alias_set): Remove union type punning case.
7870 2016-07-29  Richard Biener  <rguenther@suse.de>
7872         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
7873         precision not matching mode precision.
7875 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
7877         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
7878         pa_output_arg_descriptor.
7879         (call_val_symref_64bit_post_reload): Likewise.
7880         (call_val_powf_64bit_post_reload): Likewise.
7881         (sibcall_internal_symref_64bit): Likewise.
7882         (sibcall_value_internal_symref_64bit): Likewise.
7884 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
7886         PR middle-end/71626
7887         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
7888         a constant, force its SUBREG_REG into memory or register instead
7889         of whole op1.
7891 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7893         PR target/58655
7894         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
7895         * doc/invoke.texi (AVR Options): Document it.
7897 2016-06-28  Walter Lee  <walt@tilera.com>
7899         * config/tilegx/linux.h: Do not include arch/icache.h
7900         (CLEAR_INSN_CACHE): Provide inlined definition directly.
7901         * config/tilepro/linux.h: Do not include arch/icache.h
7902         (CLEAR_INSN_CACHE): Provide inlined definition directly.
7904 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
7906         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
7907         for big-endian BIT_FIELD_REF.
7909 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
7911         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
7912         ('size' attribute): Add '128'.
7913         Include power9.md.
7914         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
7915         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
7916         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
7917         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
7918         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
7919         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
7920         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
7921         *trunc<mode>df2_odd): Set size attribute to '128'.
7922         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
7923         * config/rs6000/power6.md (power6-fp): Include dfp type.
7924         * config/rs6000/power7.md (power7-fp): Likewise.
7925         * config/rs6000/power8.md (power8-fp): Likewise.
7926         * config/rs6000/power9.md: New file.
7927         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
7928         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
7929         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
7930         htmsimple.
7931         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
7932         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
7933         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
7934         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
7935         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
7936         dfp_dscri_<mode>): Change type attribute to dfp.
7937         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
7938         attribute to vecsimple.
7939         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
7940         and prefetch streams.
7941         (rs6000_option_override_internal): Remove temporary code setting
7942         tuning to power8.  Don't set rs6000_sched_groups for power9.
7943         (last_scheduled_insn): Change to rtx_insn *.
7944         (divide_cnt, vec_load_pendulum): New variables.
7945         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
7946         (rs6000_issue_rate): Set issue rate for Power9.
7947         (is_power9_pairable_vec_type): New.
7948         (power9_sched_reorder2): New.
7949         (rs6000_sched_reorder2): Call new function for Power9 specific
7950         reordering.
7951         (insn_must_be_first_in_group): Remove Power9.
7952         (insn_must_be_last_in_group): Likewise.
7953         (force_new_group): Likewise.
7954         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
7955         Initialize divide_cnt/vec_load_pendulum.
7956         (_rs6000_sched_context, rs6000_init_sched_context,
7957         rs6000_set_sched_context): Handle context save/restore of new
7958         variables.
7960 2016-06-28  Richard Biener  <rguenther@suse.de>
7962         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7963         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
7964         COMPONENT_REF operand.
7965         (nonoverlapping_component_refs_p): Likewise.
7966         * stor-layout.c (start_bitfield_representative): Mark
7967         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
7969 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
7971         * Makefile.in: Don't cat ../stage_current if it does not exist.
7973         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
7974         last argument is a bit-field.
7976         PR rtl-optimization/71673
7977         * internal-fn.c (expand_arith_overflow_result_store): Use
7978         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
7979         expand_simple_binop.
7981         PR middle-end/66867
7982         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
7983         expand_ifn_atomic_compare_exchange): New functions.
7984         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
7985         * tree.h (build_call_expr_internal_loc): Rename to ...
7986         (build_call_expr_internal_loc_array): ... this.  Fix up type of
7987         last argument.
7988         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
7989         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
7990         ATOMIC_COMPARE_EXCHANGE result.
7991         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
7992         * gimple-fold.h (optimize_atomic_compare_exchange_p,
7993         fold_builtin_atomic_compare_exchange): New prototypes.
7994         * gimple-fold.c (optimize_atomic_compare_exchange_p,
7995         fold_builtin_atomic_compare_exchange): New functions..
7996         * tree-ssa.c (execute_update_addresses_taken): If
7997         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
7998         of call when finding addressable vars, and if such var becomes
7999         non-addressable, call fold_builtin_atomic_compare_exchange.
8001 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
8003         PR target/71670
8004         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
8005         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
8007 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
8009         * config/rs6000/rs6000.md ('type' attribute): Add
8010         veclogical,veccmpfx,vecexts,vecmove insn types.
8011         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
8012         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
8013         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
8014         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
8015         *nabs<mode>2_hw): Change type to vecmove.
8016         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
8017         *boolcc<mode>3_internal, *eqv<mode>3_internal,
8018         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
8019         *ieee_128bit_vsx_abs<mode>2_internal,
8020         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
8021         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
8022         *ieee128_mtvsrd_32bit): Change type to veclogical.
8023         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
8024         *movdi_internal32, *movdi_internal64): Update insn types.
8025         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
8026         vsx_extract_<mode>): Change type to veclogical.
8027         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
8028         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
8029         *vsx_sign_extend_si_v2di): Change type to vecexts.
8030         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
8031         type to veclogical.
8032         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
8033         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
8034         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
8035         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
8036         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8037         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
8038         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
8039         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
8040         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
8041         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
8042         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
8043         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
8044         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
8045         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
8046         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
8047         (ppc7450-vecsimple): Add veclogical, vecmove.
8048         (ppc7450-veccmp): Add veccmpfx.
8049         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
8050         vecmove.
8051         (ppc8540_vector_compare): Add veccmpfx.
8052         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
8053         * config/rs6000/cell.md (cell-fp): Add fpsimple.
8054         (cell-vecsimple): Add veclogical, vecmove.
8055         (cell-veccmp): Add veccmpfx.
8056         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
8057         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
8058         veccmpfx.
8059         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
8060         * config/rs6000/power4.md (power4-fp): Add fpsimple.
8061         (power4-vecsimple): Add veclogical, vecmove.
8062         (power4-veccmp): Add veccmpfx.
8063         * config/rs6000/power5.md (power5-fp): Add fpsimple.
8064         * config/rs6000/power6.md (power6-fp): Add fpsimple.
8065         (power6-vecsimple): Add veclogical, vecmove.
8066         (power6-veccmp): Add veccmpfx.
8067         * config/rs6000/power7.md (power7-fp): Add fpsimple.
8068         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
8069         * config/rs6000/power8.md (power8-fp): Add fpsimple.
8070         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
8071         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
8072         * config/rs6000/titan.md (titan_fp): Add fpsimple.
8073         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
8074         fpsimple.
8075         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
8077 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
8079         PR target/71656
8080         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8081         OPTION_MASK_P9_DFORM_VECTOR.
8082         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8083         disable -mpower9-dform-vector when using reload.
8084         (quad_address_p): Remove 'gpr_p' argument and all associated code.
8085         New 'strict' argument.  Update all callers.  Add strict addressing
8086         support.
8087         (rs6000_legitimate_offset_address_p): Remove call to
8088         virtual_stack_registers_memory_p.
8089         (rs6000_legitimize_reload_address): Add quad address support.
8090         (rs6000_legitimate_address_p): Move call to quad_address_p above
8091         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
8092         to account for new strict usage.
8093         (rs6000_output_move_128bit): Adjust quad_address_p args to account
8094         for new strict usage.
8095         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
8097 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
8099         PR target/70902
8100         PR target/71453
8101         PR target/71555
8102         PR target/71596
8103         PR target/71657
8104         * config/i386/i386.c (ix86_spill_class): Disable condition to
8105         always return NO_REGS.
8107 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
8109         * predict.c: Include gimple-pretty-print.h
8110         (predicted_by_loop_heuristics_p): Check also
8111         PRED_LOOP_EXIT_WITH_RECURSION
8112         (predict_loops): Find self recursive calls and use special purpose
8113         predictors for them; dump log about decisions.
8114         (pass_profile::execute): Dump info about #of iterations.
8115         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
8116         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
8118 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
8120         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
8121         output_asm_insn calls and shorten long lines.  Output .CALL
8122         argument descriptor using pa_output_arg_descriptor.  Add various
8123         inline $$dyncall and other optimizations.
8124         (pa_attr_length_indirect_call): Adjust ordering and lengths.
8126 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
8128         PR tree-optimization/71643
8129         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
8130         EH preds.
8132         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
8133         leak a bitmap if dep_bb is NULL.
8135         PR tree-optimization/71631
8136         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
8137         to rewrite_expr_tree even if negate_result, move new_lhs var
8138         declaration and initialization earlier, for powi_result set afterwards
8139         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
8140         if new_lhs != lhs, and don't shadow gsi var.
8142 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8144         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
8145         Add in_loop parameter.
8146         (predict_loops): Add loop guard heuristics.
8147         * predict.def (PRED_LOOP_GUARD): New heuristics.
8149 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8151         * predict.c: Include ipa-utils.h
8152         (tree_bb_level_prediction): Predict recursive calls.
8153         (tree_estimate_probability_bb): Skip inexpensive calls for call
8154         predictor.
8155         * predict.def (PRED_RECURSIVE_CALL): New.
8157 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8159         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
8160         (BU_FLOAT128_1): Likewise.
8161         (FABSQ): Likewise.
8162         (COPYSIGNQ): Likewise.
8163         (RS6000_BUILTIN_NANQ): Likewise.
8164         (RS6000_BUILTIN_NANSQ): Likewise.
8165         (RS6000_BUILTIN_INFQ): Likewise.
8166         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
8167         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
8168         (TARGET_FOLD_BUILTIN): New #define.
8169         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
8170         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
8171         (rs6000_fold_builtin): New target hook implementation, handling
8172         folding of 128-bit NaNs and infinities.
8173         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
8174         entries are filled in to avoid problems during bootstrap
8175         self-test; define builtins for 128-bit NaNs and infinities.
8176         (rs6000_opt_mask): Add entry for float128.
8177         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
8178         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
8179         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
8180         (const_str_type_node): New #define.
8181         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
8182         to a define_expand that dispatches to either copysign<mode>3_soft
8183         or copysign<mode>3_hard.
8184         (copysign<mode>3_hard): Rename from copysign<mode>3.
8185         (copysign<mode>3_soft): New define_insn.
8186         * doc/extend.texi: Document new builtins.
8188 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8190         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
8191         PRIu64 instead of lu.
8193 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
8195         PR debug/71642
8196         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
8197         copy the type name.
8199 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8201         PR tree-optimization/71647
8202         * omp-low.c (lower_rec_input_clauses): Convert
8203         omp_clause_aligned_alignment (c) to size_type_node for the
8204         last argument of __builtin_assume_aligned.
8206 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8208         * configure.ac (calling ___tls_get_addr via GOT): New
8209         assembler/linker check.
8210         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
8211         assembler and linker supports calling ___tls_get_addr via GOT.
8212         Otherise, defined to 0.
8213         * config.in: Regenerated.
8214         * configure: Likewise.
8215         * config/i386/constraints.md (Yb): New constraint.
8216         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
8217         (REG_CLASS_NAMES): Likewise.
8218         (REG_CLASS_CONTENTS): Likewise.
8219         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
8220         the b constraint with the Yb constraint.  Call ___tls_get_addr
8221         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
8222         is 1.
8223         (*tls_local_dynamic_base_32_gnu): Likewise.
8224         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
8225         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
8226         (*tls_local_dynamic_base_64_<mode>): Likewise.
8228 2016-06-24  Martin Liska  <mliska@suse.cz>
8230         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
8231         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
8232         few functions.
8233         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
8234         argument to true if the expected number of iterations is
8235         loop-based.
8237 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
8239         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
8240         assemble for 32bit target.
8241         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
8242         and $ld_ix86_gld_32_opt to link for 32bit target.
8243         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
8244         * configure: Regenerate.
8246 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8248         * config/arm/arm.c (int_log2): Delete definition and prototype.
8249         (shift_op): Use exact_log2 instead of int_log2.
8250         (vfp3_const_double_for_fract_bits): Likewise.
8252 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8254         * internal-fn.c (expand_arith_set_overflow): New function.
8255         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
8256         Use it.
8257         (expand_arith_overflow_result_store): Likewise.  Handle precision
8258         smaller than mode precision.
8259         * tree-vrp.c (extract_range_basic): For imag part, handle
8260         properly signed 1-bit precision result.
8261         * doc/extend.texi (__builtin_add_overflow): Document that last
8262         argument can't be pointer to enumerated or boolean type.
8263         (__builtin_add_overflow_p): Document that last argument can't
8264         have enumerated or boolean type.
8266 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8267             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8269         * config/rs6000/predicates.md (splat_input_operand): Rework.
8270         Don't allow constants, since the insns that use this predicate
8271         don't support constants.  Constants are handled by other insns
8272         that are created via combine.  During and after register
8273         allocation, only allow indexed or indirect addresses, and not
8274         general addresses.  Only allow modes supported by the hardware.
8275         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
8276         comment.  Move check for using VSPLTIS<x> to a common location,
8277         instead of doing it in two different places.
8279 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
8281         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8282         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
8283         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
8284         signature_CENTAUR_ebx.
8286 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8288         PR target/66232
8289         PR target/67400
8290         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
8291         (as_ix86_gas_32_opt): This.
8292         (ld_ix86_tls_ldm_opt): Renamed to ...
8293         (ld_ix86_gld_32_opt): This.
8294         (R_386_TLS_LDM reloc): Updated.
8295         (R_386_GOT32X reloc): New assembler/linker check.
8296         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
8297         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
8298         defined to 0.
8299         * config.in: Regenerated.
8300         * configure: Likewise.
8301         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
8302         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
8303         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
8304         if ix86_force_load_from_GOT_p returns true.
8305         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
8306         ix86_force_load_from_GOT_p returns true.
8307         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
8308         the external function address via the GOT slot.
8309         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
8310         HAVE_AS_IX86_GOT32X before returning false.
8311         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
8312         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
8314 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
8316         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
8318 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8320         * Makefile.in: Regenerate.
8321         * doc/install.texi: Document autoprofiledbootstrap.
8323 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8325         * config/i386/gcc-auto-profile: New file.
8327 2016-06-23  Martin Liska  <mliska@suse.cz>
8329         PR middle-end/71619
8330         * predict.c (predict_loops): Revert the hunk that was removed
8331         in r237103.
8333 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
8335         * config.gcc: Add support for arm*-*-phoenix* targets.
8336         * config/arm/t-phoenix: New.
8337         * config/phoenix.h: New.
8339 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
8340             H.J. Lu  <hongjiu.lu@intel.com>
8342         PR target/67400
8343         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
8344         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
8345         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
8346         ix86_force_load_from_GOT_p returns true.
8347         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
8348         ix86_force_load_from_GOT_p returns true.
8349         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
8350         ix86_force_load_from_GOT_p returns true.
8351         (ix86_expand_move): Load the external function address via the
8352         GOT slot if ix86_force_load_from_GOT_p returns true.
8353         * config/i386/predicates.md (x86_64_immediate_operand): Return
8354         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
8355         (x86_64_zext_immediate_operand): Ditto.
8357 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
8359         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8361 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8363         PR c/70339
8364         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8365         * diagnostic.c (pedwarn_at_rich_loc): New function.
8366         * spellcheck.h (best_match::best_match): Add a
8367         "best_distance_so_far" optional parameter.
8368         (best_match::set_best_so_far): New method.
8369         (best_match::get_best_distance): New accessor.
8370         (best_match::get_best_candidate_length): New accessor.
8372 2016-06-22  Nick Clifton  <nickc@redhat.com>
8374         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8375         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8376         modes are accepted as well.
8377         (ucompare_loc_descriptor): Likewise.
8378         (minmax_loc_descriptor): Likewise.
8379         (clz_loc_descriptor): Likewise.
8380         (popcount_loc_descriptor): Likewise.
8381         (bswap_loc_descriptor): Likewise.
8382         (rotate_loc_descriptor): Likewise.
8383         (mem_loc_descriptor): Likewise.
8384         (loc_descriptor): Likewise.
8386 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8388         * common.opt (fdiagnostics-parseable-fixits): New option.
8389         * diagnostic.c: Include "selftest.h".
8390         (print_escaped_string): New function.
8391         (print_parseable_fixits): New function.
8392         (diagnostic_report_diagnostic): Call print_parseable_fixits.
8393         (selftest::assert_print_escaped_string): New function.
8394         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8395         (selftest::test_print_escaped_string): New function.
8396         (selftest::test_print_parseable_fixits_none): New function.
8397         (selftest::test_print_parseable_fixits_insert): New function.
8398         (selftest::test_print_parseable_fixits_remove): New function.
8399         (selftest::test_print_parseable_fixits_replace): New function.
8400         (selftest::diagnostic_c_tests): New function.
8401         * diagnostic.h (struct diagnostic_context): Add field
8402         "parseable_fixits_p".
8403         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8404         -fdiagnostics-parseable-fixits.
8405         (-fdiagnostics-parseable-fixits): New option.
8406         * opts.c (common_handle_option): Handle
8407         -fdiagnostics-parseable-fixits.
8408         * selftest-run-tests.c (selftest::run_tests): Call
8409         selftest::diagnostic_c_tests.
8410         * selftest.h (selftest::diagnostic_c_tests): New prototype.
8412 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
8414         PR tree-optimization/71488
8415         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8416         comparison of boolean vectors.
8417         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8418         of boolean vectors using bitwise operations.
8420 2016-06-22  Andreas Schwab  <schwab@suse.de>
8422         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8423         Remove declaration.
8425 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8427         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8429 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8431         * config/i386/i386.c (print_reg): Emit an error message on attempt to
8432         print FLAGS_REG.
8434 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8436         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8437         * config/arm/arm-cores.def (cortex-a73): New entry.
8438         (cortex-a73.cortex-a35): Likewise.
8439         (cortex-a73.cortex-a53): Likewise.
8440         * config/arm/arm-tables.opt: Regenerate.
8441         * config/arm/arm-tune.md: Likewise.
8442         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8443         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8444         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8445         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8446         * doc/invoke.texi (ARM Options): Document cortex-a73,
8447         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8449 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8451         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
8452         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
8453         (cortex-a73.cortex-a35): Likewise.
8454         (cortex-a73.cortex-a53): Likewise.
8455         * config/aarch64/aarch64-tune.md: Regenerate.
8456         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
8457         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
8458         -mcpu and -mtune.
8460 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8462         * configure.ac (gcc_cv_as_compress_debug): Remove
8463         --compress-debug-sections as extra as switch.
8464         Handle gas --compress-debug-sections=type.
8465         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
8466         Handle gld --compress-debug-sections=type.
8467         * configure: Regenerate.
8469 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8471         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
8473 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
8475         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
8476         (do_rewrite): likewise.
8478 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8480         * common/config/mep/mep-common.c: Remove.
8481         * config.gcc: Remove mep-* support.
8482         * config/mep/constraints.md: Remove.
8483         * config/mep/default.h: Remove.
8484         * config/mep/intrinsics.h: Remove.
8485         * config/mep/intrinsics.md: Remove.
8486         * config/mep/ivc2-template.h: Remove.
8487         * config/mep/mep-c5.cpu: Remove.
8488         * config/mep/mep-core.cpu: Remove.
8489         * config/mep/mep-default.cpu: Remove.
8490         * config/mep/mep-ext-cop.cpu: Remove.
8491         * config/mep/mep-intrin.h: Remove.
8492         * config/mep/mep-ivc2.cpu: Remove.
8493         * config/mep/mep-pragma.c: Remove.
8494         * config/mep/mep-protos.h: Remove.
8495         * config/mep/mep.c: Remove.
8496         * config/mep/mep.cpu: Remove.
8497         * config/mep/mep.h: Remove.
8498         * config/mep/mep.md: Remove.
8499         * config/mep/mep.opt: Remove.
8500         * config/mep/predicates.md: Remove.
8501         * config/mep/t-mep: Remove.
8502         * doc/install.texi: Remove mep-* documentation.
8503         * doc/md.texi: Likewise.
8505 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8507         * config.gcc: Remove support for avr-rtems.
8508         * config/avr/gen-avr-mmcu-specs.c: Likewise.
8509         * config/avr/rtems.h: Remove.
8510         * config/avr/t-rtems: Remove.
8512 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8514         * config.gcc: Remove m32r-rtems support.
8515         * config/m32r/rtems.h: Remove.
8517 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8519         * config.gcc: Remove h8300-rtems support.
8520         * config/h8300/rtems.h: Remove.
8521         * config/h8300/t-rtems: Remove.
8523 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8525         * config.gcc: Remove support for knetbsd.
8526         * configure.ac: Likewise.
8527         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
8528         * config/knetbsd-gnu.h: Remove.
8529         * configure: Regenerate.
8531 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8533         * config.gcc: Remove support for openbsd 2 and 3.
8534         * config/openbsd-oldgas.h: Remove.
8536 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8538         * config.gcc: Remove interix support.
8539         * config/i386/i386-interix.h: Remove.
8540         * config/i386/interix.opt: Remove.
8541         * config/i386/t-interix: Remove.
8542         * configure: Regenerate.
8543         * configure.ac: Remove interix support.
8544         * doc/install.texi: Remove interix documentation.
8546 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8548         * config/rs6000/rs6000.h: Add conditional preprocessing directives
8549         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
8550         not defined.
8552 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8554         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
8555         they are both PLACEHOLDER_EXPRs.
8557 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8559         * stor-layout.c (layout_type): Move setting complex MODE to
8560         layout_type, instead of setting it ahead of time by the caller.
8561         * tree.c (build_complex_type): Likewise.
8563 2016-06-21  Martin Liska  <mliska@suse.cz>
8565         * predict.c (force_edge_cold): Replace imposisble with
8566         impossible.
8568 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8570         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
8571         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
8573 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8575         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
8577 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8578             Ilya Enkovich  <ilya.enkovich@intel.com>
8580         PR target/71549
8581         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8582         New member function to convert V1TImode register to SUBREG
8583         TImode in debug insn.
8584         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
8585         after changing register mode to V1TImode.
8587 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
8589         * config/aarch64/aarch64-cores.def (vulcan): New core.
8590         * config/aarch64/aarch64-tune.md: Regenerate.
8591         * doc/invoke.texi: Document vulcan as an available option.
8593 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8595         * cse.c (canon_asm_operands): New function extracted from...
8596         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
8597         either standalone or member of a PARALLEL.
8599 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8601         PR target/30417
8602         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
8603         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
8604         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
8606 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8608         PR target/71103
8609         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
8610         constant addresses if can_create_pseudo_p.
8612 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
8614         PR tree-optimization/71588
8615         * tree-ssa-strlen.c (valid_builtin_call): New function.
8616         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
8617         it.
8619 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8621         PR middle-end/71581
8622         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
8623         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
8624         for conversion of scalar user var to complex type and use the
8625         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
8626         punt.
8628         PR rtl-optimization/71591
8629         * toplev.c (toplev::run_self_tests): If no_backend, complain and
8630         don't run any tests.
8632 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
8634         PR target/71571
8635         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
8636         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
8637         space for PIC with non-v32 and the common non-PIC "jump".
8639 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8641         PR target/71559
8642         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
8643         returned values and add UN*/LTGT/*ORDERED cases with values matching
8644         D operand modifier on vcmp for AVX.
8646 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8648         * config/aarch64/aarch64.opt
8649         (mpc-relative-literal-loads): Rename internal option name.
8650         * config/aarch64/aarch64.c
8651         (aarch64_nopcrelative_literal_loads): Rename to
8652         aarch64_pcrelative_literal_loads.
8653         (aarch64_expand_mov_immediate): Likewise.
8654         (aarch64_secondary_reload): Likewise.
8655         (aarch64_can_use_per_function_literal_pools_p): Likewise.
8656         (aarch64_override_options_after_change_1): Rename and simplify logic.
8657         (aarch64_classify_symbol): Merge large model checks into switch,
8658         remove pc-relative load check.
8660 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8662         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
8663         costs relative to the cost of a register move.
8665 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8667         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
8668         (vcvt_n_f64_u64): Likewise.
8669         (vcvt_n_s64_f64): Likewise.
8670         (vcvt_n_u64_f64): Likewise.
8671         (vcvt_f64_s64): Likewise.
8672         (vrecpe_f64): Likewise.
8673         (vcvt_f64_u64): Likewise.
8674         (vrecps_f64): Likewise.
8676 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8678         * config/aarch64/aarch64.md
8679         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
8680         iterators.
8681         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
8682         attributes.
8683         * config/aarch64/aarch64-builtins.c
8684         (aarch64_types_binop_uss_qualifiers): Delete.
8685         (TYPES_BINOP_USS): Likewise.
8686         (aarch64_types_binop_sus_qualifiers): Likewise.
8687         (TYPES_BINOP_SUS): Likewise.
8688         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
8689         (TYPES_FCVTIMM_SUS): Likewise.
8690         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
8691         rather than BINOP.
8692         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
8693         (fcvtzs): Use SHIFTIMM rather than BINOP.
8694         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
8696 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8698         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
8699         costs relative to the cost of a register move.
8701 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8703         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
8704         Allow scalar/single vector modes to be tieable.
8706 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8708         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
8710 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8712         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
8713         "alignement".
8714         * tree.h (TYPE_ALIGN): Likewise.
8716 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
8718         PR target/71103
8719         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
8721 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
8723         * config/avr/avr.c (avr_print_operand): Fix "format not a string
8724         literal" build warnings.
8725         (avr_print_operand_address): Dito.
8727 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
8729         PR target/71375
8730         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
8731         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
8733 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
8735         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
8737 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8739         PR bootstrap/71435
8740         * reload1.c (reload): Pass 0 to finish_spills when called because
8741         update_eliminables_and_spill returns true and remove did_spill.
8742         (finish_spills): Adjust comment and document GLOBAL parameter.
8744 2016-06-17  DJ Delorie  <dj@redhat.com>
8746         PR target/71338
8747         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
8748         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
8749         (umulqihi3_virt): Likewise.
8750         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
8751         (umulqihi3_real): Likewise.
8753 2016-06-17  Martin Liska  <mliska@suse.cz>
8755         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
8757 2016-06-17  Martin Liska  <mliska@suse.cz>
8759         * predict.def: PRED_LOOP_EXIT from 92 to 85.
8761 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
8763         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
8764         __FAST_MATH__.
8765         (vaddq_f32): Likewise.
8766         (vmul_f32): Likewise.
8767         (vmulq_f32): Likewise.
8768         (vsub_f32): Likewise.
8769         (vsubq_f32): Likewise.
8771 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
8773         PR tree-optimization/71347
8774         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
8775         cost for all uses in group.
8777 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
8779         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
8780         insert gimple seq if it's not empty.
8782 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
8784         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
8785         member OFFSET.
8786         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
8787         rather than OFFSET.
8788         (comp_dr_with_seg_len_pair): Ditto.
8789         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
8790         struct dr_with_seg_len_pair against DR_OFFSET.
8791         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
8792         DR_OFFSET directly.
8794 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8796         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
8798 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
8800         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
8801         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
8802         (pa_output_millicode_call): Likewise.
8803         (pa_output_call): Likewise.
8804         (pa_output_indirect_call): Likewise.
8805         (pa_asm_output_mi_thunk): Likewise.
8807 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8809         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
8811 2016-06-16  Martin Liska  <mliska@suse.cz>
8813         * predict.c (combine_predictions_for_insn): When we find a first
8814         match predictor, we should consider just predictors with
8815         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
8816         DS theory predictor.
8817         (combine_predictions_for_bb): Likewise.
8819 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8821         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
8822         with base of reference to struct.
8824 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
8826         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
8828 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8830         PR target/71151
8831         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
8832         progmem_swtable_section.
8833         (progmem_swtable_section): Remove.
8834         (avr_asm_function_rodata_section): Remove.
8835         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
8836         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
8838 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
8840         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8841         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
8842         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
8843         signature_CENTAUR_ebx.
8844         * config/i386/i386.c (ix86_option_override_internal): Add
8845         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
8846         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
8847         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
8849 2016-06-16  Martin Liska  <mliska@suse.cz>
8851         * predict.def: Add fortran loop preheader predictor.
8852         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
8853         fold IFN_BUILTIN_EXPECT with a known constant argument.
8855 2016-06-16  Martin Liska  <mliska@suse.cz>
8857         * predict.def: Add 'Fortran' to display text of all
8858         PRED_FORTRAN_* predictors.
8860 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
8862         PR target/71242
8863         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
8864         [IA64_BUILTIN_NANSQ]: Ditto.
8865         (ia64_fold_builtin): New function.
8866         (TARGET_FOLD_BUILTIN): New define.
8867         (ia64_init_builtins) Declare const_string_type node.
8868         Add __builtin_nanq and __builtin_nansq builtin functions.
8869         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
8871 2016-06-16  Nick Clifton  <nickc@redhat.com>
8873         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
8874         MSP430_HWMULT_ prefix to enum values.
8875         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
8876         * config/msp430/msp430.c: Update use of enum values.
8877         * config/msp430/msp430.md: Likewise.
8878         * config/msp430/msp430.opt: Likewise.
8880 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
8882         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
8883         of comparsions in the last iteration.
8885 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
8886             Joern Rennecke  <joern.rennecke@embecosm.com>
8888         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
8889         addresses.
8890         (arc_needs_pcl_p): Add GOTOFFPC.
8891         (arc_legitimate_pic_addr_p): Likewise.
8892         (arc_output_pic_addr_const): Likewise.
8893         (arc_legitimize_pic_address): Generate a pc-relative address using
8894         GOTOFFPC.
8895         (arc_output_libcall): Use @pcl syntax.
8896         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
8897         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
8898         (*movsi_insn): Use @pcl syntax.
8899         (doloop_begin_i): Likewise.
8901 2016-06-16  Martin Liska  <mliska@suse.cz>
8903         * predict.def: Define a new predictor.
8905 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
8907         * config/arc/arc.opt (mtp-regno): Update text.
8909 2016-06-16  Renlin Li  <renlin.li@arm.com>
8911         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
8913 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8915         PR target/71554
8916         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
8917         (setcc + and peephole2): Likewise.
8919         PR rtl-optimization/71532
8920         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
8921         memory slots.
8923 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8925         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
8926         DImode constants with XXSPLTIB in vector registers.
8927         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
8928         vsx_extract_<mode>_internal{1,2} into a single insn that handles
8929         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
8930         extraction of the element at the top of the register as a scalar
8931         value.
8932         (vsx_extract_<mode>_internal1): Likewise.
8933         (vsx_extract_<mode>_internal2): Likewise.
8934         * config/rs6000/constraints.md (wi constraint): Remove a comment
8935         about DImode not being allowed in Altivec registers.
8936         (wB constraint): New constraint for constants that can be
8937         generated in Altivec registers with VSPLTISW/VUPKHSW.
8938         * config/rs6000/predicates.md (xxspltib_constant_split): Update
8939         comments.
8940         (xxspltib_constant_nosplit): Likewise.
8941         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
8942         support for -mupper-regs-di to enable DImode to go into Altivec
8943         registers.
8944         (POWERPC_MASKS): Likewise.
8945         (power7 cpu): Likewise.
8946         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
8947         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
8948         for DImode being allowed in Altivec registers.  Update wi/wj
8949         constraints.  Set scalar_in_vmx_p flag.
8950         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
8951         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
8952         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
8953         (rs6000_opt_masks): Add -mupper-regs-di.
8954         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
8955         direct move to use wi and not wj.
8956         (lfiwzx): Likewise.
8957         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
8958         alternative.
8959         (floatunssi<mode>2_lfiwzx_mem): Likewise.
8960         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
8961         any VSX register, instead of just Altivec registers, to allow
8962         either operand to be an Altivec register or both.
8963         (fixuns_trunc<mode>di2_fctiduz): Likewise.
8964         (movdi_internal32): Add support for -mupper-regs-di.  Add support
8965         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
8966         the alternatives and attributes to be lined up to be easier to
8967         read.
8968         (movdi_internal64): Likewise.
8969         (64-bit DImode splitters): Change predicates to only split loading
8970         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
8971         load constants in ISA 3.0 or ISA 2.07 respectively.
8972         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8973         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
8974         mention -mcpu=power9 sets these options.
8975         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
8976         wB constraint.
8978 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8980         PR target/67353
8981         * config/avr/avr.c (avr_set_current_function): Warn misspelled
8982         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
8983         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
8984         by default to warn misspelled interrupt/ signal handler.
8985         * doc/invoke.texi (AVR Options): Document it. Update description
8986         for -nodevicelib option.
8988 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8990         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
8991         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
8992         (aarch64_<sur>shll2_n<mode>): Likewise.
8994 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
8996         PR middle-end/71529
8997         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
8998         DECL_CONTEXT for copied arguments.
9000 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9002         PR tree-optimization/71483
9003         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
9004         for slp
9006 2016-06-15  Martin Liska  <mliska@suse.cz>
9008         * predict.c (tree_predict_by_opcode): Call predict_edge_def
9009         instead of predict_edge w/o a probability.
9011 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
9013         PR tree-optimization/71439
9014         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
9015         live PHIs.
9017 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9019         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
9020         register subregs in SET_SRC.
9022 2016-06-15  Richard Biener  <rguenther@suse.de>
9024         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
9025         store restrictions.
9027 2016-06-15  Richard Biener  <rguenther@suse.de>
9029         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
9030         not consider dependences between accesses that belong to the
9031         same group.
9032         (vect_analyze_data_ref_dependences): Do not analyze read-read
9033         or self-dependences.
9035 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9037         * spellcheck-tree.c: Include spellcheck-tree.h rather than
9038         spellcheck.h.
9039         (find_closest_identifier): Reimplement in terms of
9040         best_match<tree,tree>.
9041         * spellcheck-tree.h: New file.
9042         * spellcheck.c (struct edit_distance_traits<const char *>): New
9043         struct.
9044         (find_closest_string): Reimplement in terms of
9045         best_match<const char *, const char *>.
9046         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
9047         overload to spellcheck-tree.h.
9048         (find_closest_identifier): Likewise.
9049         (struct edit_distance_traits<T>): New template.
9050         (class best_match): New class.
9052 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9054         * selftest-run-tests.c (selftest::run_tests): Call
9055         selftest::spellcheck_tree_c_tests.
9056         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
9057         * spellcheck-tree.c: Include selftest.h and stringpool.h.
9058         (selftest::test_find_closest_identifier): New function.
9059         (selftest::spellcheck_tree_c_tests): New function.
9060         * spellcheck.c (selftest::test_find_closest_string): Verify that
9061         the order of the vec does not affect the results for this case.
9062         (selftest::test_data): New array.
9063         (selftest::test_metric_conditions): New function.
9064         (selftest::spellcheck_c_tests): Add a test of case-comparison.
9065         Call selftest::test_metric_conditions.
9067 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9069         * config/rs6000/rs6000-builtin.def (commentary): Typo.
9070         (BU_P9_MISC_1): Likewise.
9071         (BU_P9_64BIT_MISC_0): Likewise.
9072         (BU_P9_MISC_0): Likewise.
9074 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9076         * gcc-rich-location.c
9077         (gcc_rich_location::add_fixit_misspelled_id): New method.
9078         * gcc-rich-location.h
9079         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
9081 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
9083         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
9084         FreeBSD 11 and above.
9086 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
9088         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
9090 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9092         * expmed.h: Close parenthesis in "at your option" in copyright
9093         boilerplate.
9094         * lower-subreg.h: Likewise.
9096 2016-06-14  Richard Biener  <rguenther@suse.de>
9098         PR middle-end/71526
9099         * genmatch.c (expr::gen_transform): Use in_type for comparisons
9100         if available.
9102 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9104         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9105         New function.
9106         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
9107         mask+shift version.
9108         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
9109         New prototype.
9110         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
9111         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
9113 2016-06-14  Richard Biener  <rguenther@suse.de>
9115         PR tree-optimization/71522
9116         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
9117         copying into float copying.
9119 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
9121         PR tree-optimization/71520
9122         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
9123         (replace_block_by): Move user labels from bb1 to bb2.
9125 2016-06-14  Richard Biener  <rguenther@suse.de>
9127         PR middle-end/71310
9128         PR bootstrap/71510
9129         * expr.h (get_bit_range): Declare.
9130         * expr.c (get_bit_range): Export.
9131         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
9132         word_mode again to constrain the bitfield access.
9134 2016-06-14  Richard Biener  <rguenther@suse.de>
9136         PR tree-optimization/71521
9137         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
9138         division int_const_binop against zero divisor.
9140 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9142         * config/i386/i386.md (signbittf2): New expander.
9143         * config/i386/sse.md (ptesttf2): New insn pattern.
9145 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9147         PR bootstrap/71481
9148         * input.c (selftest::test_reading_source_line): Avoid reading from
9149         __FILE__ by creating a tempfile with known content and reading
9150         from that instead.
9152 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9154         * pretty-print.c (assert_pp_format_colored): Skip the test if
9155         GCC_COLORS is set.
9156         (test_pp_format): Remove comment about GCC_COLORS.
9158 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9160         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
9161         * pretty-print.c (assert_pp_format_va): Add location param and use
9162         it with ASSERT_STREQ_AT.
9163         (assert_pp_format): Add location param and pass it to
9164         assert_pp_format_va.
9165         (assert_pp_format_colored): Likewise.
9166         (ASSERT_PP_FORMAT_1): New.
9167         (ASSERT_PP_FORMAT_2): New.
9168         (ASSERT_PP_FORMAT_3): New.
9169         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
9170         explicitly, or implicitly via the above macros.
9171         * selftest.c (selftest::pass): Use a selftest::location rather
9172         than file and line.
9173         (selftest::fail): Likewise.  Print the function name.
9174         (selftest::fail_formatted): Likewise.
9175         (selftest::assert_streq): Use a selftest::location rather than
9176         file and line.
9177         * selftest.h (selftest::location): New struct.
9178         (SELFTEST_LOCATION): New macro.
9179         (selftest::pass): Accept a const location & rather than file
9180         and line.
9181         (selftest::fail): Likewise.
9182         (selftest::fail_formatted): Likewise.
9183         (selftest::assert_streq): Likewise.
9184         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
9185         (ASSERT_FALSE): Likewise.
9186         (ASSERT_EQ): Likewise.
9187         (ASSERT_NE): Likewise.
9188         (ASSERT_STREQ): Likewise.
9189         (ASSERT_PRED1): Likewise.
9190         (ASSERT_STREQ_AT): New macro.
9192 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9194         * selftest.c (selftest::fail_formatted): New function.
9195         (selftest::assert_streq): New function.
9196         * selftest.h (selftests::fail_formatted): New decl.
9197         (selftest::assert_streq): New decl.
9198         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
9200 2016-06-13  Jeff Law  <law@redhat.com>
9202         PR tree-optimization/71403
9203         * tree-ssa-threadbackward.c
9204         (convert_and_register_jump_thread_path): No longer accept reference
9205         to path.  Do not pop items off the path anymore.
9206         (fsm_find_control_statement_thread_paths): Do not allow threading
9207         to a deeper loop nest.  Pop the last item off the path here rather
9208         than in convert_and_register_jump_thread_path.
9210 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9211             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
9213         [AArch64] Emit division using the Newton series
9215         * config/aarch64/aarch64-protos.h
9216         (cpu_approx_modes): Add new member "division".
9217         (aarch64_emit_approx_div): Declare new function.
9218         * config/aarch64/aarch64.c
9219         (generic_approx_modes): New member "division".
9220         (exynosm1_approx_modes): Likewise.
9221         (xgene1_approx_modes): Likewise.
9222         (aarch64_emit_approx_div): Define new function.
9223         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
9224         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
9225         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
9226         * doc/invoke.texi (-mlow-precision-div): Describe new option.
9228 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9229             Wilco Dijkstra  <wilco.dijkstra@arm.com>
9231         [AArch64] Emit square root using the Newton series
9233         * config/aarch64/aarch64-protos.h
9234         (aarch64_emit_approx_rsqrt): Replace with new function
9235         "aarch64_emit_approx_sqrt".
9236         (cpu_approx_modes): New member "sqrt".
9237         * config/aarch64/aarch64.c
9238         (generic_approx_modes): New member "sqrt".
9239         (exynosm1_approx_modes): Likewise.
9240         (xgene1_approx_modes): Likewise.
9241         (aarch64_emit_approx_rsqrt): Replace with new function
9242         "aarch64_emit_approx_sqrt".
9243         (aarch64_override_options_after_change_1): Handle new option.
9244         * config/aarch64/aarch64-simd.md
9245         (rsqrt<mode>2): Use new function instead.
9246         (sqrt<mode>2): New expansion and insn definitions.
9247         * config/aarch64/aarch64.md: Likewise.
9248         * config/aarch64/aarch64.opt
9249         (mlow-precision-sqrt): Add new option description.
9250         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
9252 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9254         [AArch64] Add more choices for the reciprocal square root approximation
9256         Allow a target to prefer such operation depending on the operation mode.
9258         * config/aarch64/aarch64-protos.h
9259         (AARCH64_APPROX_MODE): New macro.
9260         (AARCH64_APPROX_{NONE,ALL}): Likewise.
9261         (cpu_approx_modes): New structure.
9262         (tune_params): New member "approx_modes".
9263         * config/aarch64/aarch64-tuning-flags.def
9264         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
9265         * config/aarch64/aarch64.c
9266         (generic_approx_modes): New core "cpu_approx_modes" structure.
9267         (exynosm1_approx_modes): Likewise.
9268         (xgene1_approx_modes): Likewise.
9269         (generic_tunings): New member "approx_modes".
9270         (cortexa35_tunings): Likewise.
9271         (cortexa53_tunings): Likewise.
9272         (cortexa57_tunings): Likewise.
9273         (cortexa72_tunings): Likewise.
9274         (exynosm1_tunings): Likewise.
9275         (thunderx_tunings): Likewise.
9276         (xgene1_tunings): Likewise.
9277         (use_rsqrt_p): New argument for the mode and use new member from
9278         "tune_params".
9279         (aarch64_builtin_reciprocal): Devise mode from builtin.
9280         (aarch64_optab_supported_p): New argument for the mode.
9281         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
9283 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9285         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
9286         RS6000_BTM_MODULO flag into the set of flags that are considered
9287         to be part of the common configuration.
9289 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9291         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
9292         difference unsigned.
9293         (vec_absdb): New macro for vector absolute difference unsigned
9294         byte.
9295         (vec_absdh): New macro for vector absolute difference unsigned
9296         half-word.
9297         (vec_absdw): New macro for vector absolute difference unsigned word.
9298         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
9299         (vadu<mode>3): New insn.
9300         (*p9_vadu<mode>3): New insn.
9301         * config/rs6000/rs6000-builtin.def (vadub): New built-in
9302         definition.
9303         (vaduh): New built-in definition.
9304         (vaduw): New built-in definition.
9305         (vadu): New overloaded built-in definition.
9306         (vadub): New overloaded built-in definition.
9307         (vaduh): New overloaded built-in definition.
9308         (vaduw): New overloaded built-in definition.
9309         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9310         overloaded vector absolute difference unsigned functions.
9311         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9312         the ISA 3.0 vector absolute difference unsigned built-in functions.
9314 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9316         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
9317         update shared_lookup_references only once after changing operands.
9319 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
9321         PR middle-end/71373
9322         * tree-nested.c (convert_nonlocal_omp_clauses)
9323         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
9325         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
9326         * tree.def (CASE_LABEL_EXPR): Likewise.
9328 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9330         PR bootstrap/71481
9331         * input.c (test_builtins): Fix an assertion.
9333 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9335         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
9336         (paritysi2): Ditto.
9337         (isinfxf2): Ditto.
9338         (isinf<mode>2): Ditto.
9340 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9342         * ggc-tests.c (test_finalization): Only test need_finalization_p
9343         for GCC_VERSION >= 4003.
9345 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9347         * config/s390/vecintrin.h: Fix file description in comment.
9349 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9351         * config/s390/s390-builtin-types.def: Change builtin type naming
9352         scheme to match builtin-types.def.
9354 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
9356         * fold-const.c (optimize_minmax_comparison): Remove.
9357         (fold_comparison): Remove call to the above.
9358         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9359         New transformations.
9361 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
9363         PR tree-optimization/71416
9364         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9365         multiple entries
9367 2016-06-13  Martin Liska  <mliska@suse.cz>
9369         * predict.c (enum predictor_reason): Prefix enum with REASON_.
9370         (combine_predictions_for_insn): Likewise.
9371         (prune_predictions_for_bb): Likewise.
9372         (combine_predictions_for_bb): Likewise.
9374 2016-06-13  Richard Biener  <rguenther@suse.de>
9376         PR tree-optimization/71505
9377         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9378         assert match comment.
9380 2016-06-13  Marek Polacek  <polacek@redhat.com>
9382         PR middle-end/71476
9383         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9384         gimplify_switch_expr.
9385         (warn_switch_unreachable_r): New function.
9387 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9389         PR target/71379
9390         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9391         one.
9393 2016-06-13  Richard Biener  <rguenther@suse.de>
9395         PR middle-end/64516
9396         * fold-const.c (fold_unary_loc): Preserve alignment when
9397         folding a VIEW_CONVERT_EXPR into a MEM_REF.
9399 2016-06-13  Martin Liska  <mliska@suse.cz>
9401         PR sanitizer/71458
9402         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9403         w/ -fsanitize=bounds.
9405 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9407         * config/i386/i386.c (ix86_init_builtins): Calculate
9408         FLOAT128_FTYPE_CONST_STRING function type only once.
9409         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9410         built-in functions are available for x86-32 and x86-64 targets.
9412 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9414         PR target/71241
9415         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9416         New primitive type.
9417         (FLOAT128_FTYPE_CONST_STRING): New function type.
9418         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9419         [IX86_BUILTIN_NANSQ]: Ditto.
9420         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9421         (ix86_init_builtin_types): Declare const_string_type_node.
9422         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9423         builtin functions.
9424         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9425         * doc/extend.texi (x86 Built-in Functions): Document
9426         __builtin_nanq and __builtin_nansq.
9428 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
9430         PR target/71061
9431         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9432         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9433         length for pop patterns.
9434         (arm_attr_length_push_multi): Update comments.
9435         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9436         attribute.
9437         (*pop_multiple_with_writeback_and_return): Likewise.
9438         (*pop_multiple_with_return): Likewise.
9440 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
9442         PR middle-end/71310
9443         * fold-const.c (optimize_bit_field_compare): Don't try to use
9444         word_mode unconditionally for reading the bit field, look at
9445         DECL_BIT_FIELD_REPRESENTATIVE instead.
9447 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
9449         PR middle-end/71478
9450         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
9451         vector integer type.
9453 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
9455         PR middle-end/71494
9456         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
9457         without LABEL_DECL, set *handled_ops_p to false instead of true.
9459 2016-06-10  Martin Sebor  <msebor@redhat.com>
9461         PR c/71392
9462         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
9463         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
9464         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
9465         them.
9466         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
9467         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
9468         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
9469         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
9470         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
9471         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
9472         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
9473         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
9475 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9477         * config/arm/arm.h (pool_vector_label,
9478         return_used_this_function): Remove.
9480 2016-06-10  Jeff Law  <law@redhat.com>
9482         PR tree-optimization/71335
9483         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
9484         zero length paths here.
9485         (convert_and_register_jump_thread_path): Remove hacks related to
9486         duplicated blocks in the jump thread path.
9487         (fsm_find_control_statement_thread_paths): Avoid putting the same
9488         block on the thread path twice, but ensure the thread path is
9489         unchanged from the caller's point of view.
9491 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9493         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
9494         * predict.def (PRED_LOOP_BRANCH): Remove.
9496 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
9498         * Makefile.in (OBJS): Add ggc-tests.o.
9499         (GTFILES): Add ggc-tests.c.
9500         * ggc-tests.c: New file.
9501         * selftest-run-tests.c (selftest::run_tests): Call
9502         selftest::ggc_tests_c_tests.
9503         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
9505 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
9507         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
9509 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
9511         PR sanitizer/71480
9512         * varasm.c (place_block_symbol): Adjust alignment for asan protected
9513         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
9515 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9517         * profile.c: Include cfgloop.h.
9518         (branch_prob): Compute estimated number of iterations.
9519         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
9520         recompute estimate number of iterations from profile.
9522 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9524         PR inline-asm/68843
9525         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
9526         must be grouped on top of stack.  Don't force early clobber
9527         on ordinary reg outputs.
9529 2016-06-10  Richard Biener  <rguenther@suse.de>
9531         * targhooks.c (default_builtin_vectorization_cost): Adjust
9532         vec_construct cost.
9534 2016-06-10  Richard Biener  <rguenther@suse.de>
9536         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
9537         to fold the RHS to a constant if possible.
9539 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9541         PR middle-end/71373
9542         * tree-nested.c (convert_nonlocal_omp_clauses)
9543         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
9544         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9545         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
9547         * gimplify.c (gimplify_adjust_omp_clauses): Discard
9548         OMP_CLAUSE_TILE.
9549         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
9551         * omp-low.c (scan_sharing_clauses): Don't expect
9552         OMP_CLAUSE__CACHE_.
9554 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
9556         PR tree-optimization/71407
9557         PR tree-optimization/71416
9558         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
9559         BIT_FIELD_REF type.
9561 2016-06-10  Richard Biener  <rguenther@suse.de>
9563         PR middle-end/71477
9564         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
9566 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9568         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
9570 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
9571             Jiong Wang  <jiong.wang@arm.com>
9573         PR rtl-optimization/70751
9574         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
9575         spilled into memory.
9577 2016-06-09  Jonathan Yong  <10walls@gmail.com>
9579         Revert:
9580         2015-09-21  Jonathan Yong  <10walls@gmail.com>
9582         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9583         sysroot/usr/lib/32api for additional win32 libraries,
9584         fixes failing Cygwin bootstrapping.
9586 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
9588         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
9589         Delete.
9591 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
9593         PR bootstrap/71471
9594         * pretty-print.c (pp_indent): Specify that %p is printed in a
9595         host-dependent manner.
9596         (test_pp_format): Remove the test for %p.
9598 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
9600         * config/mips/mips.c (mips_output_jump): Fix formatting.
9602 2016-06-09  Richard Biener  <rguenther@suse.de>
9604         PR tree-optimization/71462
9605         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
9606         removed blocks.
9608 2016-06-09  Martin Liska  <mliska@suse.cz>
9610         * predict.c (dump_prediction): Add new argument.
9611         (enum predictor_reason): New enum.
9612         (struct predictor_hash): New struct.
9613         (predictor_hash::hash): New function.
9614         (predictor_hash::equal): Likewise.
9615         (not_removed_prediction_p): New function.
9616         (prune_predictions_for_bb): Likewise.
9617         (combine_predictions_for_bb): Prune predictions.
9619 2016-06-09  Martin Liska  <mliska@suse.cz>
9621         * predict.c (filter_predictions): New function.
9622         (remove_predictions_associated_with_edge): Use the filter
9623         function.
9624         (equal_edge_p): New function.
9626 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
9628         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
9629         Correct usage of @samp vs @option, add @samp where appropriate.
9630         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
9631         Add armv6s-m and document it, as it is no official ARM name.
9633 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9635         * ifcvt.c (struct noce_if_info): Add transform_name field.
9636         (noce_try_move): Set if_info->transform_name to the function name.
9637         (noce_try_ifelse_collapse): Likewise.
9638         (noce_try_store_flag): Likewise.
9639         (noce_try_inverse_constants): Likewise.
9640         (noce_try_store_flag_constants): Likewise.
9641         (noce_try_addcc): Likewise.
9642         (noce_try_store_flag_mask): Likewise.
9643         (noce_try_cmove): Likewise.
9644         (noce_try_cmove_arith): Likewise.
9645         (noce_try_minmax): Likewise.
9646         (noce_try_abs): Likewise.
9647         (noce_try_sign_mask): Likewise.
9648         (noce_try_bitop): Likewise.
9649         (noce_convert_multiple_sets): Likewise.
9650         (noce_process_if_block): Print if_info->transform_name to
9651         dump_file if transformation succeeded.
9653 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9655         * config/arm/cortex-a57.md (cortex_a57_alu):
9656         Handle csel type.
9658 2016-06-08  Martin Sebor  <msebor@redhat.com>
9659             Jakub Jelinek  <jakub@redhat.com>
9661         PR c++/70507
9662         PR c/68120
9663         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
9664         BUILT_IN_MUL_OVERFLOW_P): New builtins.
9665         * builtins.c: Include gimple-fold.h.
9666         (fold_builtin_arith_overflow): Handle
9667         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
9668         (fold_builtin_3): Likewise.
9669         * doc/extend.texi (Integer Overflow Builtins): Document
9670         __builtin_{add,sub,mul}_overflow_p.
9672 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
9674         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
9675         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
9677 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
9679         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
9680         Rewrite, looking one level down for records and arrays.
9682 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
9684         * pretty-print.c: Include "selftest.h".
9685         (pp_format): Fix comment.
9686         (identifier_to_locale): Likewise.
9687         (selftest::test_basic_printing): New function.
9688         (selftest::assert_pp_format): New function.
9689         (selftest::test_pp_format): New function.
9690         (selftest::pretty_print_c_tests): New function.
9691         * selftest-run-tests.c (selftest::run_tests): Call
9692         selftest::pretty_print_c_tests.
9693         * selftest.h (pretty_print_c_tests): New declaration.
9695 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9697         * invoke.texi (max-loop-headers-insns): Document.
9698         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
9699         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
9700         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
9702 2016-06-08  Richard Biener  <rguenther@suse.de>
9704         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
9705         on strided SLP loads and fall back to scalar loads in case
9706         we can't chunk them.
9708 2016-06-08  Richard Biener  <rguenther@suse.de>
9710         PR tree-optimization/71452
9711         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
9712         type used for the SSA rewrite has enough precision to cover
9713         the dynamic type of the location.
9715 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
9716             Richard Biener  <rguenther@suse.de>
9718         PR c++/71448
9719         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
9720         the same as DECL_P (base0) for indirect_base0.  Use equality_code
9721         in one further place.
9723 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
9725         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
9726         to one word if the field is known to overlap other words.
9727         (extract_bit_field_1): Likewise.
9728         (store_split_bit_field): Remove compensating code.
9729         (extract_split_bit_field): Likewise.
9731 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
9733         PR debug/71432
9734         PR ada/71413
9735         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
9737 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9739         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
9740         VDQF.
9741         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
9742         (arch64_addpv4sf): Delete.
9743         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
9744         "gen_aarch64_addpv4sf".
9745         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
9746         builtin.
9747         (vpadds_f32): Likewise.
9748         (vpaddq_f32): Likewise.
9749         (vpaddq_f64): Likewise.
9751 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9753         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
9754         VALLF.
9755         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
9756         to VALLF.  Rename to "fabd<mode>3".
9757         "*fabd_scalar<mode>3): Delete.
9758         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
9759         Use builtin.
9760         (vabdd_f64): Likewise.
9761         (vabd_f32): Likewise.
9762         (vabd_f64): Likewise.
9763         (vabdq_f32): Likewise.
9764         (vabdq_f64): Likewise.
9766 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9768         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
9769         VALLF.
9770         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
9771         "aarch64_rsqrts<mode>".
9772         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
9773         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
9774         builtin.
9775         (vrsqrtsd_f64): Likewise.
9776         (vrsqrts_f32): Likewise.
9777         (vrsqrts_f64): Likewise.
9778         (vrsqrtsq_f32): Likewise.
9779         (vrsqrtsq_f64): Likewise.
9781 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9783         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
9784         VALLF.
9785         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
9786         "aarch64_rsqrte<mode>".
9787         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
9788         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
9789         builtin.
9790         (vrsqrted_f64): Likewise.
9791         (vrsqrte_f32): Likewise.
9792         (vrsqrte_f64): Likewise.
9793         (vrsqrteq_f32): Likewise.
9794         (vrsqrteq_f64): Likewise.
9796 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9798         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
9799         (ucvtf): Likewise.
9800         (fcvtzs): Likewise.
9801         (fcvtzu): Likewise.
9802         * config/aarch64/aarch64-simd.md
9803         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
9804         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
9805         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
9806         Use builtin.
9807         (vcvt_n_f32_u32): Likewise.
9808         (vcvt_n_s32_f32): Likewise.
9809         (vcvt_n_u32_f32): Likewise.
9810         (vcvtq_n_f32_s32): Likewise.
9811         (vcvtq_n_f32_u32): Likewise.
9812         (vcvtq_n_f64_s64): Likewise.
9813         (vcvtq_n_f64_u64): Likewise.
9814         (vcvtq_n_s32_f32): Likewise.
9815         (vcvtq_n_s64_f64): Likewise.
9816         (vcvtq_n_u32_f32): Likewise.
9817         (vcvtq_n_u64_f64): Likewise.
9818         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
9819         (VSDQ_SDI): Likewise.
9820         (fcvt_target): Support V4DI, V4SI and V2SI.
9821         (FCVT_TARGET): Likewise.
9823 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9825         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
9826         (TYPES_BINOP_SUS): Likewise.
9827         (aarch64_simd_builtin_data): Update include file name.
9828         (aarch64_builtins): Likewise.
9829         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
9830         for conversion between scalar float-point and fixed-point.
9831         (ucvtf): Likewise.
9832         (fcvtzs): Likewise.
9833         (fcvtzu): Likewise.
9834         * config/aarch64/aarch64.md
9835         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
9836         pattern for conversion between scalar float to fixed-pointer.
9837         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
9838         (UNSPEC_FCVTZS): New UNSPEC enumeration.
9839         (UNSPEC_FCVTZU): Likewise.
9840         (UNSPEC_SCVTF): Likewise.
9841         (UNSPEC_UCVTF): Likewise.
9842         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
9843         Use builtin.
9844         (vcvtd_n_f64_u64): Likewise.
9845         (vcvtd_n_s64_f64): Likewise.
9846         (vcvtd_n_u64_f64): Likewise.
9847         (vcvtd_n_f32_s32): Likewise.
9848         (vcvts_n_f32_u32): Likewise.
9849         (vcvtd_n_s32_f32): Likewise.
9850         (vcvts_n_u32_f32): Likewise.
9851         * config/aarch64/iterators.md (fcvt_target): Support integer to float
9852         mapping.
9853         (FCVT_TARGET): Likewise.
9854         (FCVT_FIXED2F): New iterator.
9855         (FCVT_F2FIXED): Likewise.
9856         (fcvt_fixed_insn): New define_int_attr.
9858 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9860         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
9861         some statements was removed.
9863 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
9865         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
9866         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
9867         (vect_can_advance_ivs_p): likewise.
9868         (vect_update_ivs_after_vectorizer): likewise.
9869         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
9870         (vect_analyze_scalar_cycles_1): likewise.
9871         (vect_analyze_loop_operations): likewise.
9872         (report_vect_op): likewise.
9873         (vect_is_slp_reduction): likewise.
9874         (vect_is_simple_reduction): likewise.
9875         (get_initial_def_for_induction): likewise.
9876         (vect_transform_loop): likewise.
9877         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
9878         (vect_recog_sad_pattern): likewise.
9879         (vect_recog_widen_sum_pattern): likewise.
9880         (vect_recog_widening_pattern): likewise.
9881         (vect_recog_divmod_pattern): likewise.
9882         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
9883         (vect_analyze_slp_instance): likewise.
9884         (vect_transform_slp_perm_load): likewise.
9885         (vect_schedule_slp_instance): likewise.
9887 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9889         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
9890         (return_prediction): PRED_CONST_RETURN predict return as not taken.
9891         * predict.def (PRED_CONTINUE): Change hitrate 50->67
9892         (PRED_LOOP_BRANCH): Document predictor as broken.
9893         (PRED_LOOP_EXIT): Change hitrate 91->92.
9894         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
9895         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
9896         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
9897         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
9898         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
9899         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
9900         (PRED_CALL): Chane hitrate 71->67.
9901         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
9902         (PRED_GOTO): Document as unused right now.
9903         (PRED_CONST_RETURN): Change hitrate 67->69
9904         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
9905         (PRED_NULL_RETURN): Change hitrate 91->90.
9906         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
9907         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
9908         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
9910 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
9912         * config/rs6000/altivec.h: Add __builtin_vec_mul.
9913         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
9914         special case Altivec builtin.
9915         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9916         VSX_BUILTIN_VEC_MUL (replaced with special case code).
9917         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9918         code for ALTIVEC_BUILTIN_VEC_MUL.
9919         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9920         for __builtin_vec_mul.
9922 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
9924         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
9925         -mno-htm.
9927 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
9929         * spellcheck.c (selftest::test_find_closest_string): New function.
9930         (spellcheck_c_tests): Call the above.
9932 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9934         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
9936 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
9938         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
9939         Yv=Yv,C alternatives.
9941 2016-06-07  Richard Biener  <rguenther@suse.de>
9943         PR c/61564
9944         * common.opt (ffast-math): Make Optimization.
9946 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
9947             Prachi Godbole  <prachi.godbole@imgtec.com>
9949         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
9950         `fabs' and `fneg' type attributes.
9951         (p5600_fpu_fabs): Add `fmove' to the comment.
9953 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9955         * gimple.c: Include builtins.h
9956         (gimple_inexpensive_call_p): New function.
9957         * gimple.h (gimple_inexpensive_call_p): Declare.
9958         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
9959         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
9960         fix formatting.
9962 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
9964         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
9965         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
9966         warning_at_rich_loc, warning_n, pedwarn, permerror,
9967         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
9968         sorry, fatal_error, internal_error, internal_error_no_backtrace):
9969         Use the above.
9971 2016-06-07  Richard Biener  <rguenther@suse.de>
9973         PR tree-optimization/71428
9974         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
9975         BIT_FIELD_REF op vs. load.
9977 2016-06-07  Richard Biener  <rguenther@suse.de>
9979         PR middle-end/71423
9980         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
9981         for signed ops.
9983 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
9985         * config/pa/pa.md (call): Generate indirect long calls to non-local
9986         functions on TARGET_64BIT.
9987         (call_value): Likewise.
9989 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
9991         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
9992         pattern and subsequent splitters.
9993         (call_val_reg_64bit_post_reload): Likewise.
9995 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9997         PR middle-end/71408
9998         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
9999         propagate_op_to_single_use.
10001 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
10003         PR middle-end/71281
10004         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
10006 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
10008         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
10009         (enum x86_dirflag_state): New enum.
10010         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
10011         (machine_function): Remove needs_cld.
10012         (ix86_current_function_needs_cld): Remove.
10013         * config/i386/i386.c (ix86_set_func_type): Set
10014         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
10015         (ix86_expand_prologue): Do not emit CLD here.
10016         (ix86_dirflag_mode_needed): New function.
10017         (ix86_dirflag_mode_entry): Ditto.
10018         (ix86_mode_needed): Handle X86_DIRFLAG entity.
10019         (ix86_mode_after): Ditto.
10020         (ix86_mode_entry): Ditto.
10021         (ix86_mode_exit): Ditto.
10022         (ix86_emit_mode_set): Ditto.
10023         * config/i386/i386.md (strmov_singleop): Set
10024         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
10025         Do not set ix86_current_function_needs_cld.
10026         (rep_mov): Ditto.
10027         (strset_singleop): Ditto.
10028         (rep_stos): Ditto.
10029         (cmpstrnqi_nz_1): Ditto.
10030         (cmpstrnqi_1): Ditto.
10031         (strlenqi_1): Ditto.
10033 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
10035         PR tree-optimization/71259
10036         * tree-vect-slp.c (vect_get_constant_vectors): For
10037         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
10038         one for constant op, and use COND_EXPR for non-constant.
10040 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
10042         * Makefile.in (OBJS): Add function-tests.o,
10043         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
10044         selftest-run-tests.o.
10045         (OBJS-libcommon): Add selftest.o.
10046         (OBJS-libcommon-target): Add selftest.o.
10047         (all.internal): Add "selftest".
10048         (all.cross): Likewise.
10049         (selftest): New phony target.
10050         (s-selftest): New target.
10051         (selftest-gdb): New phony target.
10052         (COLLECT2_OBJS): Add selftest.o.
10053         * bitmap.c: Include "selftest.h".
10054         (selftest::test_gc_alloc): New function.
10055         (selftest::test_set_range): New function.
10056         (selftest::test_clear_bit_in_middle): New function.
10057         (selftest::test_copying): New function.
10058         (selftest::test_bitmap_single_bit_set_p): New function.
10059         (selftest::bitmap_c_tests): New function.
10060         * common.opt (fself-test): New.
10061         * diagnostic-show-locus.c: Include "selftest.h".
10062         (make_range): New function.
10063         (test_range_contains_point_for_single_point): New function.
10064         (test_range_contains_point_for_single_line): New function.
10065         (test_range_contains_point_for_multiple_lines): New function.
10066         (assert_eq): New function.
10067         (test_get_line_width_without_trailing_whitespace): New function.
10068         (selftest::diagnostic_show_locus_c_tests): New function.
10069         * et-forest.c: Include "selftest.h".
10070         (selftest::test_single_node): New function.
10071         (selftest::test_simple_tree): New function.
10072         (selftest::test_disconnected_nodes): New function.
10073         (selftest::et_forest_c_tests): New function.
10074         * fold-const.c: Include "selftest.h".
10075         (selftest::assert_binop_folds_to_const): New function.
10076         (selftest::assert_binop_folds_to_nonlvalue): New function.
10077         (selftest::test_arithmetic_folding): New function.
10078         (selftest::fold_const_c_tests): New function.
10079         * function-tests.c: New file.
10080         * gimple.c: Include "selftest.h".
10081         Include "gimple-pretty-print.h".
10082         (selftest::verify_gimple_pp): New function.
10083         (selftest::test_assign_single): New function.
10084         (selftest::test_assign_binop): New function.
10085         (selftest::test_nop_stmt): New function.
10086         (selftest::test_return_stmt): New function.
10087         (selftest::test_return_without_value): New function.
10088         (selftest::gimple_c_tests): New function.
10089         * hash-map-tests.c: New file.
10090         * hash-set-tests.c: New file.
10091         * input.c: Include "selftest.h".
10092         (selftest::assert_loceq): New function.
10093         (selftest::test_accessing_ordinary_linemaps): New function.
10094         (selftest::test_unknown_location): New function.
10095         (selftest::test_builtins): New function.
10096         (selftest::test_reading_source_line): New function.
10097         (selftest::input_c_tests): New function.
10098         * rtl-tests.c: New file.
10099         * selftest-run-tests.c: New file.
10100         * selftest.c: New file.
10101         * selftest.h: New file.
10102         * spellcheck.c: Include "selftest.h".
10103         (selftest::levenshtein_distance_unit_test_oneway): New function,
10104         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
10105         (selftest::levenshtein_distance_unit_test): Likewise.
10106         (selftest::spellcheck_c_tests): Likewise.
10107         * toplev.c: Include selftest.h.
10108         (toplev::run_self_tests): New.
10109         (toplev::main): Handle -fself-test.
10110         * toplev.h (toplev::run_self_tests): New.
10111         * tree.c: Include "selftest.h".
10112         (selftest::test_integer_constants): New function.
10113         (selftest::test_identifiers): New function.
10114         (selftest::test_labels): New function.
10115         (selftest::tree_c_tests): New function.
10116         * tree-cfg.c: Include "selftest.h".
10117         (selftest::push_fndecl): New function.
10118         (selftest::test_linear_chain): New function.
10119         (selftest::test_diamond): New function.
10120         (selftest::test_fully_connected): New function.
10121         (selftest::tree_cfg_c_tests): New function.
10122         * vec.c: Include "selftest.h".
10123         (selftest::safe_push_range): New function.
10124         (selftest::test_quick_push): New function.
10125         (selftest::test_safe_push): New function.
10126         (selftest::test_truncate): New function.
10127         (selftest::test_safe_grow_cleared): New function.
10128         (selftest::test_pop): New function.
10129         (selftest::test_safe_insert): New function.
10130         (selftest::test_ordered_remove): New function.
10131         (selftest::test_unordered_remove): New function.
10132         (selftest::test_block_remove): New function.
10133         (selftest::reverse_cmp): New function.
10134         (selftest::test_qsort): New function.
10135         (selftest::vec_c_tests): New function.c.
10136         * wide-int.cc: Include selftest.h and wide-int-print.h.
10137         (selftest::from_int <wide_int>): New function.
10138         (selftest::from_int <offset_int>): New function.
10139         (selftest::from_int <widest_int>): New function.
10140         (selftest::assert_deceq): New function.
10141         (selftest::assert_hexeq): New function.
10142         (selftest::test_printing <VALUE_TYPE>): New function template.
10143         (selftest::test_ops <VALUE_TYPE>): New function template.
10144         (selftest::test_comparisons <VALUE_TYPE>): New function template.
10145         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
10146         template.
10147         (selftest::wide_int_cc_tests): New function.
10149 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10151         PR middle-end/37780
10152         * ifcvt.c (noce_try_ifelse_collapse): New function.
10153         Declare prototype.
10154         (noce_process_if_block): Call noce_try_ifelse_collapse.
10155         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
10156         (simplify_ternary_operation): Use the above to simplify
10157         conditional CLZ/CTZ expressions.
10159 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10161         PR middle-end/37780
10162         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
10163         define_insn_and_split.
10165 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10167         PR middle-end/37780
10168         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
10170 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10172         PR c/24414
10173         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
10174         Implicitly clobber memory for basic asm with non-empty assembler
10175         string.  Use targetm.md_asm_adjust also here.
10176         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
10177         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
10178         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
10179         non-empty assembler string.
10180         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
10181         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
10182         (decode_asm_operands): Handle basic asm in PARALLEL block.
10183         (extract_insn): Handle basic asm in PARALLEL block.
10184         * doc/extend.texi: Mention new behavior of basic asm.
10185         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
10186         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
10187         branch_needs_nop_p): Use asm_noperands.
10189 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
10191         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
10192         Include the M7 SPARC DFA scheduler.
10193         New attribute v3pipe.
10194         Annotate insns with v3pipe where appropriate.
10195         Define cpu_feature vis4.
10196         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
10197         Add (V8QI "8") to vbits.
10198         Add insns {add,sub}v8qi3
10199         Add insns ss{add,sub}v8qi3
10200         Add insns us{add,sub}{v8qi,v4hi}3
10201         Add insns {min,max}{v8qi,v4hi,v2si}3
10202         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
10203         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
10204         * config/sparc/niagara4.md: Add a comment explaining the
10205         discrepancy between the documented latenty numbers and the
10206         implemented ones.
10207         * config/sparc/niagara7.md: New file.
10208         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
10209         supports SPARC5 and VIS 4.0 instructions.
10210         * configure: Regenerate.
10211         * config.in: Likewise.
10212         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
10213         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
10214         TARGET_CPU_niagara7.
10215         (ASM_CPU64_DEFAULT_SPEC): Likewise.
10216         (CPP_CPU_SPEC): Handle niagara7.
10217         (ASM_CPU_SPEC): Likewise.
10218         * config/sparc/sparc-opts.h (processor_type): Add
10219         PROCESSOR_NIAGARA7.
10220         (mvis4): New option.
10221         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
10222         (AS_NIAGARA7_FLAG): Define.
10223         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
10224         (CPP_CPU64_DEFAULT_SPEC): Likewise.
10225         (CPP_CPU_SPEC): Handle niagara7.
10226         (ASM_CPU_SPEC): Likewise.
10227         * config/sparc/sparc.c (niagara7_costs): Define.
10228         (sparc_option_override): Handle niagara7 and adjust cache-related
10229         parameters with better values for niagara cpus.  Also support VIS4.
10230         (sparc32_initialize_trampoline): Likewise.
10231         (sparc_use_sched_lookahead): Likewise.
10232         (sparc_issue_rate): Likewise.
10233         (sparc_register_move_cost): Likewise.
10234         (dump_target_flag_bits): Support VIS4.
10235         (sparc_vis_init_builtins): Likewise.
10236         (sparc_builtins): Likewise.
10237         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
10238         VIS4 4.0.
10239         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
10240         UltraSparc M7.
10241         * config/sparc/sparc.opt (sparc_processor_type): New value
10242         niagara7.
10243         * config/sparc/visintrin.h (__attribute__): Prototypes for the
10244         VIS4 builtins.
10245         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
10246         -mvis4.
10247         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
10248         VIS4 builtins.
10250 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
10252         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
10254 2016-06-06  Richard Biener  <rguenther@suse.de>
10256         PR tree-optimization/71398
10257         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
10258         remove edges.
10260 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
10262         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
10263         ft32_expand_prolog, ft32_expand_epilogue):
10264         Handle pretend_args.
10265         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
10266         * config/ft32/ft32.md: Add pretend_returner.
10268 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
10270         PR target/71389
10271         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10272         Copy op1 RTX to avoid invalid sharing.
10273         (ix86_expand_vector_move_misalign): Ditto.
10275 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
10277         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
10278         ATTRIBUTE_UNUSED.
10280 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10282         * predict.c (predicted_by_loop_heuristics_p): New function.
10283         (predict_iv_comparison): Use it.
10284         (predict_loops): Walk from innermost loops; do not predict edges
10285         leaving multiple loops multiple times; implement
10286         PRED_LOOP_ITERATIONS_MAX heuristics.
10287         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
10289 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10291         * cfg.c (check_bb_profile): Do not report mismatched profiles when
10292         only edges out of BB are EH edges.
10294 2016-06-04  Martin Sebor  <msebor@redhat.com>
10295             Marcin Baczyński  <marbacz@gmail.com>
10297         PR c/48116
10298         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
10299         a void expression in a void function.
10301 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10303         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
10304         aux; dump reasons of decisions.
10305         (should_duplicate_loop_header_p): Likewise.
10306         (do_while_loop_p): Likewise.
10307         (ch_base::copy_headers): Dump asi num insns duplicated.
10309 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
10311         PR tree-optimization/71405
10312         * tree-ssa.c (execute_update_addresses_taken): For clobber with
10313         incompatible type, build a new clobber with the right type instead
10314         of building a VIEW_CONVERT_EXPR around it.
10316 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10318         PR tree-optimization/52171
10319         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
10320         by_pieces_ninsns instead of move_by_pieces_ninsns.
10322 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10324         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
10325         for reg+reg addressing mode.
10327 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10329         * rs6000-c.c (c/c-tree.h): Add #include.
10330         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
10331         in C++ when found in the base position of vec_ld or vec_st.
10333 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10335         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
10336         use of profile unless profile status is PROFILE_READ.
10337         * profile.c (compute_branch_probabilities): Set profile status
10338         only after reporting predictor hitrates.
10340 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
10342         PR target/71276
10343         PR target/71277
10344         * common.opt (ffp-int-builtin-inexact): New option.
10345         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
10346         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
10347         (ceil@var{m}2): Document dependence on this option.
10348         * ipa-inline-transform.c (inline_call): Handle
10349         flag_fp_int_builtin_inexact.
10350         * ipa-inline.c (can_inline_edge_p): Likewise.
10351         * config/i386/i386.md (rintxf2): Do not test
10352         flag_unsafe_math_optimizations.
10353         (rint<mode>2_frndint): New define_insn.
10354         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
10355         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
10356         for 387 instead of extending and truncating.
10357         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10358         !flag_trapping_math instead of flag_unsafe_math_optimizations.
10359         Change to frndint<mode>2_<rounding>.
10360         (frndintxf2_<rounding>_i387): Likewise.  Change to
10361         frndint<mode>2_<rounding>_i387.
10362         (<rounding_insn>xf2): Likewise.
10363         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10364         !flag_trapping_math instead of flag_unsafe_math_optimizations for
10365         x87.  Test TARGET_ROUND || !flag_trapping_math ||
10366         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10367         SSE.  Use ROUND_NO_EXC in constant operand of
10368         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
10369         for 387 instead of extending and truncating.
10371 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10372             Julia Koval  <julia.koval@intel.com>
10374         PR target/66960
10375         PR target/67630
10376         PR target/67634
10377         PR target/67841
10378         PR target/68037
10379         PR target/68618
10380         PR target/68661
10381         PR target/69575
10382         PR target/69596
10383         PR target/69734
10384         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10385         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10386         all registers, except for function return registers if there are
10387         no caller-saved registers.
10388         (ix86_set_func_type): New function.
10389         (ix86_set_current_function): Call ix86_set_func_type to set
10390         no_caller_saved_registers and func_type.  Call reinit_regs if
10391         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
10392         nor x87 instructions in interrupt handler nor function with
10393         no_caller_saved_registers attribute.
10394         (ix86_function_ok_for_sibcall): Return false if there are no
10395         caller-saved registers.
10396         (type_natural_mode): Don't warn ABI change for MMX in interrupt
10397         handler.
10398         (ix86_function_arg_advance): Skip for callee in interrupt handler.
10399         (ix86_function_arg): Return special arguments in interrupt handler.
10400         (ix86_promote_function_mode): Promote pointer to word_mode only
10401         for normal functions.
10402         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10403         interrupt handler.
10404         (ix86_epilogue_uses): New function.
10405         (ix86_hard_regno_scratch_ok): Likewise.
10406         (ix86_save_reg): Preserve all registers in interrupt handler
10407         after reload.  Preserve all registers, except for function return
10408         registers, if there are no caller-saved registers after reload.
10409         (find_drap_reg): Always use callee-saved register if there are
10410         no caller-saved registers.
10411         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10412         for interrupt handler.
10413         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10414         Emit cld instruction if stringops are used in interrupt handler
10415         or interrupt handler isn't a leaf function.
10416         (ix86_expand_epilogue): Generate interrupt return for interrupt
10417         handler and pop the 'ERROR_CODE' off the stack before interrupt
10418         return in exception handler.
10419         (ix86_expand_call): Disallow calling interrupt handler directly.
10420         If there are no caller-saved registers, mark all registers that
10421         are clobbered by the call which returns as clobbered.
10422         (ix86_handle_no_caller_saved_registers_attribute): New function.
10423         (ix86_handle_interrupt_attribute): Likewise.
10424         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10425         attributes.
10426         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10427         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10428         accumulation in interrupt function if stack may be realigned to
10429         avoid DRAP.
10430         (EPILOGUE_USES): New.
10431         (function_type): New enum.
10432         (machine_function): Add func_type and no_caller_saved_registers.
10433         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10434         (interrupt_return): New pattern.
10435         * doc/extend.texi: Document x86 interrupt and
10436         no_caller_saved_registers attributes.
10438 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
10440         PR tree-optimization/52171
10441         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10442         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
10443         Look for constant strings.  Move some code to emit_block_cmp_hints
10444         and use it.
10445         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10446         * defaults.h (COMPARE_MAX_PIECES): New macro.
10447         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10448         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10449         (clear_by_pieces_1): Don't declare.  Move definition before use.
10450         (can_do_by_pieces): New static function.
10451         (can_move_by_pieces): Use it.  Return bool.
10452         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
10453         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
10454         (class pieces_addr); New.
10455         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
10456         pieces_addr::adjust, pieces_addr::increment_address,
10457         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
10458         functions for it.
10459         (class op_by_pieces_d): New.
10460         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
10461         functions for it.
10462         (class move_by_pieces_d, class compare_by_pieces_d,
10463         class store_by_pieces_d): New subclasses of op_by_pieces_d.
10464         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
10465         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
10466         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
10467         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
10468         compare_by_pieces_d::finish_mode): New member functions.
10469         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
10470         functions.
10471         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
10472         (emit_block_cmp_hints): New function.
10473         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
10474         use the newly defined classes.
10475         * expr.h (by_pieces_constfn): New typedef.
10476         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
10477         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
10478         (move_by_pieces_ninsns): Don't declare.
10479         (can_move_by_pieces): Change return value to bool.
10480         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
10481         (compare_by_pieces_branch_ratio): New hook.
10482         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
10483         (by_pieces_ninsns): Declare.
10484         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
10485         COMPARE_BY_PIECES.
10486         (default_compare_by_pieces_branch_ratio): New function.
10487         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
10488         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
10489         * doc/tm.texi: Regenerate.
10490         * tree-ssa-strlen.c: Include "builtins.h".
10491         (handle_builtin_memcmp): New static function.
10492         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
10493         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
10495 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10497         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
10498         relevant stmts which are simple and invariant.
10499         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
10500         instead of simple and invariant
10502 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10504         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
10505         (vectorizable_reduction): Check for new relevant state.
10506         (vectorizable_live_operation): vectorize live stmts using
10507         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
10508         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
10509         (vect_stmt_relevant_p): Check for stmts which are only used live.
10510         (process_use): Use of a stmt does not inherit it's live value.
10511         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
10512         (vect_analyze_stmt): Check for new relevant state.
10513         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
10514         outside the loop, but not inside it.
10516 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10518         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
10519         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
10520         (vect_get_vec_def_for_operand): Split out code.
10522 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
10524         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
10526 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10528         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
10530 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10532         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
10534 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
10536         PR middle-end/71387
10537         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
10538         to noreturn e->callee->decl that has void return type and void
10539         arguments, adjust gimple_call_fntype and remove lhs even if it had
10540         previously addressable type.
10542 2016-06-02  Jeff Law  <law@redhat.com>
10544         PR tree-optimization/71328
10545         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
10546         error when checking for a jump back onto the copied path.
10548 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
10550         * config/microblaze/microblaze.c (get_branch_target): Add return
10551         NULL_RTX for the non-CALL_P case.
10552         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
10553         (insert_wic): Remove unused local "j".
10555 2016-06-02  Martin Liska  <mliska@suse.cz>
10557         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
10559 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10560             Julia Koval  <julia.koval@intel.com>
10562         * function.c (assign_parm_setup_stack): Force source into a
10563         register if needed.
10564         * target.def (function_incoming_arg): Update documentation to
10565         allow arbitrary address computation based on hard register.
10566         * doc/tm.texi: Regenerated.
10568 2016-06-02  Martin Liska  <mliska@suse.cz>
10570         * predict.c (combine_predictions_for_bb): Fix first match in
10571         cases where a first predictor contains more than one occurence
10572         in list of predictors.  Take the best value in such case.
10574 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10576         PR rtl-optimization/71295
10577         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
10578         offset would go over the size of the inner mode reject it.
10580 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
10582         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
10583         x=x,x and v=v,m instead of x=x,m.
10585         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
10586         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
10587         alternative to v=rm,C.
10589         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
10590         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
10591         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
10592         instead of vex for the last two above mentioned alternatives.
10594 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10596         PR target/70830
10597         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
10599 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
10601         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
10603 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
10605         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
10606         from int to unsigned.
10608 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10610         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
10611         alternatives, eliminating preferred register class.  Add support
10612         for the MTVSRDD instruction in ISA 3.0.
10613         (vsx_splat_v4si_internal): Use splat_input_operand instead of
10614         reg_or_indexed_operand.
10615         (vsx_splat_v4sf_internal): Likewise.
10617 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10619         PR target/71186
10620         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
10621         for loading up all 0's or all 1's.
10623 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10625         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
10627 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
10629         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
10630         extension.
10631         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
10632         * gcc.c (set_source_date_epoch_envvar): New function, sets
10633         the SOURCE_DATE_EPOCH environment variable to the current time.
10635 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10637         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
10638         the factor for live Phi nodes.
10640 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
10642         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
10643         * tree-parloops.c (parallelize_loops): likewise.
10644         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
10645         tree_unswitch_outer_loop): likewise.
10647 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
10649         PR middle-end/71371
10650         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
10651         around creation of the temporary.
10653 2016-06-01  Richard Biener  <rguenther@suse.de>
10655         PR tree-optimization/71366
10656         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
10657         (unloop_loops): Move removing edges here ...
10658         (try_unroll_loop_completely): ... from here.
10659         (try_peel_loop): ... and here.
10660         (tree_unroll_loops_completely_1): Track parent loops via
10661         bitmap of header BBs.
10662         (tree_unroll_loops_completely): Adjust for that.
10664 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10666         * config/rs6000/altivec.h (vec_slv): New macro.
10667         (vec_srv): New macro.
10668         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
10669         (UNSPEC_VSRV): New value.
10670         (vslv): New insn.
10671         (vsrv): New insn.
10672         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
10673         (vsrv): New builtin definition.
10674         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
10675         define argument types for new builtin.
10676         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
10677         new builtin.
10678         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
10679         functions.
10681 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
10682             Jocelyn Mayer  <l_indien@magic.fr>
10684         PR target/67310
10685         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
10686         detect processor family for signature_CENTAUR_ebx.
10687         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
10688         signature_CENTAUR_ebx.
10689         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
10690         <default>: Pass x86-64 for has_longmode.
10692 2016-06-01  Nathan Sidwell  <nathan@acm.org>
10694         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
10695         undefined weak.
10697 2016-06-01  Richard Biener  <rguenther@suse.de>
10699         PR tree-optimization/71261
10700         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
10701         of stmts successfully put in the bool pattern.  Remove
10702         single-use restriction.
10703         (adjust_bool_pattern_cast): Add cast at the use site via the
10704         pattern def sequence.
10705         (adjust_bool_pattern): Remove recursion, maintain a hash-map
10706         of patterned defs.  Use the pattern def seqence instead of
10707         multiple independent patterns.
10708         (sort_after_uid): New qsort compare function.
10709         (adjust_bool_stmts): New function to process stmts in the bool
10710         pattern in IL order.
10711         (vect_recog_bool_pattern): Adjust.
10712         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
10713         (ifcvt_walk_pattern_tree): Likewise.
10714         (stmt_is_root_of_bool_pattern): Likewise.
10715         (ifcvt_repair_bool_pattern): Likewise.
10716         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
10718 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
10720         * loop-unroll.c (decide_unroll_constant_iterations,
10721         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
10722         likely upper bounds.
10723         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
10725 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
10727         * tree-core.h (enum omp_clause_code): Remove
10728         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
10730 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10732         * config/arm/sync.md (arm_store_exclusive<mode>):
10733         Use 'H' output modifier on operands[2] rather than creating a new
10734         entry in out-of-bounds memory of the operands array.
10735         (arm_store_release_exclusivedi): Likewise.
10737 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10739         * config/arm/arm.c (arm_fusion_enabled_p): New function.
10740         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
10741         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
10742         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
10744 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10746         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
10747         into account live statements for mask producers.
10749 2016-06-01  Richard Biener  <rguenther@suse.de>
10751         PR tree-optimization/71311
10752         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
10753         restrict to non-INTEGER_CST @0.
10755 2016-06-01  Richard Biener  <rguenther@suse.de>
10757         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
10758         (relational patterns): Use :c to avoid pattern duplications.
10760 2016-06-01  Richard Biener  <rguenther@suse.de>
10762         * genmatch.c (comparison_code_p): New predicate.
10763         (swap_tree_comparison): New function.
10764         (commutate): Add for_vec parameter to append new for entries.
10765         Support commutating relational operators by swapping it alongside
10766         operands.
10767         (lower_commutative): Adjust.
10768         (dt_simplify::gen): Do not pass artificial operators to gen
10769         functions.
10770         (decision_tree::gen): Do not add artificial operators as parameters.
10771         (parser::parse_expr): Verify operator commutativity when :c is
10772         applied.  Allow :C to override this.
10773         * match.pd: Adjust patterns to use :C instead of :c where required.
10775 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
10777         PR tree-optimization/71077
10778         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
10779         the combining step, use boolean_false_node and boolean_true_node
10780         as the designated false/true return values.
10782 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
10784         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
10785         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
10786         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
10787         PRED_LOOP_EXIT.
10789 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
10791         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
10792         of flags impliying the register renaming.
10793         * toplev.c (process_options): Do not imply flag_rename_registers with
10794         loop peeling.
10796 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10798         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
10799         default implementation.
10801 2016-05-31  Nathan Sidwell  <nathan@acm.org>
10803         * dwarf2out.c (cur_line_info_table): Add GTY marker.
10805 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10807         * config/sh/constraints.md (b): Remove constraint.
10808         * config/sh/predicates.md (arith_reg_operand): Remove
10809         TARGET_REGISTER_P.
10810         * config/sh/sh-modes.def (PDI): Remove.
10811         * config/sh/sh.c (sh_target_reg_class,
10812         sh_optimize_target_register_callee_saved): Remove functions.
10813         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
10814         (sh_expand_epilogue): Update comment.
10815         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
10816         sh_secondary_reload): Remove TARGET_REGS related code.
10817         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
10818         TARGET_REGISTER_P): Remove macros.
10819         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
10820         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
10821         TR1_REG, TR2_REG): Remove constants.
10822         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
10824 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10826         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
10827         define_expand patterns.
10828         (adddi3_compact): Rename to adddi3.
10829         (subdi3_compact): Rename to subdi3.
10830         (*negdi2): Rename to negdi2.
10831         (*abs<mode>2): Rename to abs<mode>2.
10833 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10835         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
10836         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
10837         (atomic_sub_fetchsi): ... this new pattern.
10838         (mvtc): Add CC_REG clobber.
10840 2016-05-31  Marek Polacek  <polacek@redhat.com>
10842         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
10844 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10846         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
10847         aarch64_fusion_enabled_p to check for fusion capabilities.
10849 2016-05-31  Richard Biener  <rguenther@suse.de>
10851         PR tree-optimization/71352
10852         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
10853         minus one and a negate.
10855 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10857         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
10858         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
10859         Delete prototype.
10860         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
10861         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
10862         Remove use of aarch64_simd_attr_length_move, set length attribute
10863         directly.
10864         (*aarch64_be_movoi): Likewise.
10865         (*aarch64_be_movci): Likewise.
10866         (*aarch64_be_movxi): Likewise.
10868 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
10870         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
10871         It no longer does that.
10872         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
10874 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
10876         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
10877         attribute __unused__.
10879 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10881         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
10882         * config/arm/arm.c (arm_arch_thumb1): Define.
10883         (arm_option_override): Initialize arm_arch_thumb1.
10884         * config/arm/arm.h (arm_arch_thumb1): Declare.
10885         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
10886         support Thumb-1 ISA.
10888 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
10890         PR target/71346
10891         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
10892         `Yv' for scalar operand.
10894 2016-05-31  Tom de Vries  <tom@codesourcery.com>
10896         PR tree-optimization/69068
10897         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
10898         phis with more than two args.
10900 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
10902         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
10903         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
10904         target.
10906 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
10908         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
10909         tune_64.
10910         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10911         support on SPARC.
10912         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
10913         cpu_32, cpu_64, tune_32 and tune_64.
10914         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
10916 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
10918         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
10920 2016-05-30  Andi Kleen  <ak@linux.intel.com>
10922         * auto-profile.c (read_profile): Replace asserts with errors
10923         when file does not exist.
10924         * gcov-io.c (gcov_read_words): Dito.
10926 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10928         * tree-cfg.c (print_loop): Print likely upper bounds.
10930 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10932         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
10933         * opts.c (default_options): Enable peel loops at -O3.
10934         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
10935         (try_peel_loop): Do not re-peel already peeled loops;
10936         use likely upper bounds; fix profile updating.
10937         (pass_complete_unroll::execute): Initialize peeled_loops.
10939 2016-05-30  Martin Liska  <mliska@suse.cz>
10941         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
10942         computed costs by frequency of BB they belong to.
10943         (get_scaled_computation_cost_at): New function.
10945 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
10946             Marc Glisse  <marc.glisse@inria.fr>
10948         PR tree-optimization/71289
10949         * match.pd (-1 / B < A, A > -1 / B): New transformations.
10951 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10953         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
10955 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10957         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
10958         for peeled copies; avoid underflow when updating estimates; correctly
10959         scale loop profile.
10961 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
10963         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
10964         r236875. Corrected oe3 to oe2 as obvious.
10966 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
10968         PR middle-end/71269
10969         PR middle-end/71252
10970         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
10971         that inserted stmt will not dominate stmts that defines its operand.
10972         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
10973         (rewrite_expr_tree_parallel): Likewise.
10975 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
10977         PR middle-end/71252
10978         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
10979         all fields including stmt_to_insert are swapped.
10981 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10983         * predict.h (force_edge_cold): Declare.
10984         * predict.c (force_edge_cold): New function.
10985         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
10986         updating.
10987         (canonicalize_loop_induction_variables): Fix formating.
10989 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
10991         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
10992         (visium_expand_copysign): Use gen_int_mode directly.
10993         (visium_compute_frame_size): Minor tweaks.
10995 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10997         * tree-vect-loop.c (vect_analyze_loop_2): Use
10998         likely_max_stmt_executions_int.
11000 2016-05-30  Tom de Vries  <tom@codesourcery.com>
11002         PR tree-optimization/69067
11003         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
11005 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
11007         PR target/71245
11008         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
11009         New peepholes to remove unneeded fild/fistp pairs.
11010         (define_peephole2 atomic_loaddi_fpu): Ditto.
11012 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11014         * predict.c (maybe_hot_frequency_p): Avoid division.
11016 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
11018         * doc/install.texi: Use https for shop.fsf.org.
11020 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11022         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
11023         likely_max_stmt_executions_int.
11025 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11027         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
11028         likely_max_stmt_executions_int.
11030 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11032         * profile.c (compute_branch_probabilities): Do not report hitrates
11033         here.
11034         (branch_prob): Report hitrates here.
11035         * predict.c (gimple_predict_edge): Do not assert profile status;
11036         fix formatting issues.
11038 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11040         * predict.c (edge_predicted_by_p): New function.
11041         (predict_paths_for_bb): Do not put multiple predictions of the same type
11042         on one edge.
11044 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11046         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
11047         commit.
11049 2016-05-28  Alan Modra  <amodra@gmail.com>
11051         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
11053 2016-05-28  Alan Modra  <amodra@gmail.com>
11055         PR rtl-optimization/71275
11056         * ira.c (ira): Free dominance info.
11058 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
11060         * doc/sourcebuild.texi: New address for upstream Go repository.
11062 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11064         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
11065         (TARGET_ARM_V7M): Likewise.
11067 2016-05-26  Jeff Law  <law@redhat.com>
11069         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
11070         (thread_across_edge): Remove calls to find_jump_threads_backwards.
11071         * passes.def: Add jump threading passes before DOM/VRP.
11072         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
11073         argument to a basic block from an edge.  Remove tests which are
11074         handled elsewhere.
11075         (pass_data_thread_jumps, class pass_thread_jumps): New.
11076         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
11077         (make_pass_thread_jumps): Likewise.
11078         * tree-pass.h (make_pass_thread_jumps): Declare.
11080 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11082         * config/visium/visium-protos.h (split_double_move): Rename into...
11083         (visium_split_double_move): ...this.
11084         (visium_split_double_add): Declare.
11085         * config/visium/visium.c (split_double_move): Rename into...
11086         (visium_split_double_move): ...this.
11087         (visium_split_double_add): New function.
11088         (visium_expand_copysign): Renumber operands for consistency.
11089         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
11090         (DFmode move splitter): Likewise.
11091         (*addi3_insn): Split by means of visium_split_double_add.
11092         (*adddi3_insn_flags): Delete.
11093         (*plus_plus_sltu<subst_arith>): New insn.
11094         (*subdi3_insn): Split by means of visium_split_double_add.
11095         (subdi3_insn_flags): Delete.
11096         (*minus_minus_sltu<subst_arith>): New insn.
11097         (*negdi2_insn): Split by means of visium_split_double_add.
11098         (*negdi2_insn_flags): Delete.
11100 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
11102         * configure.ac: Treat a --with-headers option without argument
11103         the same as the default (i.e. consult sys-include directory).
11104         * configure: Regenerate.
11106 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11108         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
11109         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
11110         prototype.
11111         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
11112         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11114 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11116         PR target/63596
11117         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
11118         tree-stdarg analysis results.
11119         (aarch64_setup_incoming_varargs): Likewise.
11121 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11123         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
11124         va_list_gpr_counter_field and va_list_fpr_counter_field.
11126 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
11128         PR67609
11129         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
11130         * config/aarch64/aarch64.c
11131         (aarch64_cannot_change_mode_class): Remove function.
11132         * config/aarch64/aarch64-protos.h
11133         (aarch64_cannot_change_mode_class): Remove.
11135 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11137         * cfgloop.c (record_niter_bound): Record likely upper bounds.
11138         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
11139         get_likely_max_loop_iterations_int): New.
11140         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
11141         any_likely_upper_bound.
11142         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
11143         Declare.
11144         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
11145         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
11146         upper bound.
11147         (unroll_loop_constant_iterations): Likewise.
11148         (unroll_loop_runtime_iterations): Likewise.
11149         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
11150         * lto-streamer-out.c (output_cfg): Likewise.
11151         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
11152         bounds.
11153         (canonicalize_loop_induction_variables): Dump likely upper bounds.
11154         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
11155         (likely_max_loop_iterations): New.
11156         (likely_max_loop_iterations_int): New.
11157         (likely_max_stmt_executions): New.
11158         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
11159         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
11160         likely_max_stmt_executions): Declare.
11162 2016-05-27  Marek Polacek  <polacek@redhat.com>
11164         PR middle-end/71308
11165         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
11167 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11169         * config/s390/s390.md (2x risbg splitters): Use
11170         reg_overlap_mentioned_p instead of rtx_equal_p.
11172 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11174         * combine.c (make_compound_operation): Take known zero bits into
11175         account when checking for possible zero_extend.
11177 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11179         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
11180         Use const_int_operand for operand 2 predicate.  Simplify expand code
11181         as a result.
11183 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11185         PR middle-end/71279
11186         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
11187         into comparison.
11189 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11191         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
11192         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
11193         that returns CC_SESWPmode and CC_ZESWPmode.
11194         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
11195         and CC_SESWPmode.
11196         (aarch64_rtx_costs): Likewise.
11198 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11200         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
11201         for ISA 3.0 min/max support.
11202         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
11203         conditional move support.
11204         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
11205         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
11206         available.
11207         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
11208         conditional moves where the comparison type is different from move
11209         type.
11210         (fp_minmax): New code iterator for smin/smax.
11211         (minmax): New code attributes for min/max.
11212         (SMINMAX): Likewise.
11213         (smax<mode>3): Combine min, max insns into one insn using the
11214         fp_minmax code iterator.  Add support for ISA 3.0 min/max
11215         instructions that don't need -ffast-math.
11216         (s<minmax><mode>3): Likewise.
11217         (smax<mode>3_vsx): Likewise.
11218         (smin<mode>3): Likewise.
11219         (s<minmax><mode>3_vsx): Likewise.
11220         (smin<mode>3_vsx): Likewise.
11221         (pre-VSX min/max splitters): Likewise.
11222         (s<minmax><mode>3_fpr): Likewise.
11223         (movsfcc): Rewrite floating point conditional moves to combine
11224         SFmode/DFmode into a single insn.
11225         (mov<mode>cc): Likewise.
11226         (movdfcc): Likewise.
11227         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
11228         SFDF2 iterators to handle all combinations.
11229         (fseldfsf4): Likewise.
11230         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
11231         (fseldfdf4): Likewise.
11232         (fselsfdf4): Likewise.
11233         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
11234         comparison instructions that set a 0/-1 mask, and use it for
11235         floating point conditional move via XXSEL.
11236         (fpmask<mode>): Likewise.
11237         (xxsel<mode>): Likewise.
11238         * config/rs6000/predicates.md (min_max_operator): Delete, no
11239         longer used.
11240         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
11241         instructions that generate a 0/-1 mask for use with XXSEL.
11242         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
11243         say whether floating point min/max is available, either through
11244         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
11245         (TARGET_MINMAX_DF): Likewise.
11247 2016-05-27  Alan Modra  <amodra@gmail.com>
11249         PR rtl-optimization/71275
11250         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
11251         for update_equiv_regs and combine_and_move_insns.
11253 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
11255         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
11256         if_then_else or cond RTXes to calculate attribute value.
11257         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
11258         <attr "length_immediate>: Ditto.
11259         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
11260         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
11261         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
11262         <attr "type">: Ditto.
11263         <attr "prefix_data16">: Ditto.
11264         <attr "prefix_extra">: Ditto.
11265         <attr "length_immediate">: Ditto.
11266         <attr "prefix">: Ditto.
11267         (vec_set<mode>_0) <attr "isa">: Ditto.
11268         <attr "prefix_extra">: Ditto.
11269         <attr "length_immediate">: Ditto.
11270         <attr "prefix">: Ditto.
11271         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
11272         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
11273         (sse2_storelpd) <attr "prefix_data16">: Ditto.
11274         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
11275         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
11276         <attr "length_immediate">: Ditto.
11277         <attr "prefix">: Ditto.
11278         (sse2_movsd) <attr "length_immediate">: Ditto.
11279         <attr "prefix">: Ditto.
11280         (vec_concatv2df)  <attr "isa">: Ditto.
11281         <attr "prefix">: Ditto.
11282         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
11283         (*vec_extractv2di_1) <attr "isa">: Ditto.
11284         <attr "type">: Ditto.
11285         <attr "length_immediate">: Ditto.
11286         <attr "prefix_rex">: Ditto.
11287         <attr "prefix_extra">: Ditto.
11288         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
11289         <attr "prefix_extra">: Ditto.
11290         <attr "length_immediate">: Ditto.
11291         (vec_concatv2di) <attr "isa">: Ditto.
11292         <attr "prefix_extra">: Ditto.
11293         <attr "length_immediate">: Ditto.
11294         <attr "prefix">: Ditto.
11296 2016-05-26  Martin Liska  <mliska@suse.cz>
11298         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
11299         function.
11300         (operator+): Likewise.
11301         (operator-): Likewise.
11302         (comp_cost::operator+=): Likewise.
11303         (comp_cost::operator-=): Likewise.
11304         (comp_cost::operator/=): Likewise.
11305         (comp_cost::operator*=): Likewise.
11306         (operator<): Likewise.
11307         (operator==): Likewise.
11308         (operator<=): Likewise.
11309         (new_cost): Remove.
11310         (infinite_cost_p): Likewise.
11311         (add_costs): Likewise.
11312         (sub_costs): Likewise.
11313         (compare_costs): Likewise.
11314         (set_group_iv_cost): Use the newly introduced functions.
11315         (get_address_cost): Likewise.
11316         (get_shiftadd_cost): Likewise.
11317         (force_expr_to_var_cost): Likewise.
11318         (split_address_cost): Likewise.
11319         (ptr_difference_cost): Likewise.
11320         (difference_cost): Likewise.
11321         (get_computation_cost_at): Likewise.
11322         (determine_group_iv_cost_generic): Likewise.
11323         (determine_group_iv_cost_address): Likewise.
11324         (determine_group_iv_cost_cond): Likewise.
11325         (autoinc_possible_for_pair): Likewise.
11326         (determine_group_iv_costs): Likewise.
11327         (cheaper_cost_pair): Likewise.
11328         (iv_ca_recount_cost): Likewise.
11329         (iv_ca_set_no_cp): Likewise.
11330         (iv_ca_set_cp): Likewise.
11331         (iv_ca_cost): Likewise.
11332         (iv_ca_new): Likewise.
11333         (iv_ca_dump): Likewise.
11334         (iv_ca_narrow): Likewise.
11335         (iv_ca_prune): Likewise.
11336         (iv_ca_replace): Likewise.
11337         (try_add_cand_for): Likewise.
11338         (try_improve_iv_set): Likewise.
11339         (find_optimal_iv_set): Likewise.
11341 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11343         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
11344         that internal functions will clobber all caller-saved registers.
11346 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11348         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
11349         Return a better case_values_threshold when optimizing.
11351 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11353         * config/aarch64/aarch64-simd.md (aarch64_combinez):
11354         Add ? to integer variant.
11355         (aarch64_combinez_be): Likewise.
11357 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11359         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11360         instead of x constraint.
11361         (vcvtps2ph256<mask_name>): Likewise.
11363         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11364         alternative.  Formatting fix.
11366         * config/i386/sse.md
11367         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11368         to ...
11369         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11370         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
11371         maybe_evex prefix instead of vex.
11372         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
11373         EXT_REX_SSE_REG_P (op0) case in the splitter.
11375 2016-05-25  Jeff Law  <law@redhat.com>
11377         PR tree-optimization/71272
11378         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11379         Update comments.  Add test for empty path.
11381 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
11383         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11384         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11385         special case builtin.
11386         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11387         code for ALTIVEC_BUILTIN_VEC_CMPNE.
11388         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11389         for __builtin_vec_cmpne.
11391 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11393         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11394         redundant test and bail out if the type of the new operand is not
11395         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11397 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11399         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11400         (x_ix86_target_flags_explicit): Remove.
11401         * config/i386/i386.c (ix86_function_specific_save): Do not copy
11402         x_ix86_target_flags_explicit.
11403         (ix86_function_specific_restore): Ditto.
11405 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11406             H.J. Lu  <hongjiu.lu@intel.com>
11408         PR target/70738
11409         * common/config/i386/i386-common.c
11410         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11411         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11412         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11413         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11414         (-mgeneral-regs-only): Add new option.
11415         * config/i386/i386.c (ix86_option_override_internal): Don't enable
11416         x87 instructions if only general registers are allowed.
11417         (ix86_target_string): Add ix86_flags argument. Handle additional
11418         flags options through ix86_flags argument.  Update all callers.
11419         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11421 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11423         PR rtl-optimization/66940
11424         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11425         decrementing desired_val will not overflow before performing these
11426         operations.
11428 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
11430         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11431         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11432         * config/i386/i386.c (enum ix86_builtins): Add
11433         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11434         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11435         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11436         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11437         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11438         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11439         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11440         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11441         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11442         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11443         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11444         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11445         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11446         __builtin_ia32_cvtps2dq512_mask.
11447         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11448         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11449         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11450         * config/i386/sse.md
11451         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
11452         Rename to ...
11453         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
11454         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
11455         to ...
11456         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
11457         (avx512f_vec_pack_sfix_v8df): New define_expand.
11458         (avx512f_roundpd512): Rename to ...
11459         (avx512f_round<castmode>512): ... this.  Change iterator.
11460         (avx512f_roundps512_sfix): New define_expand.
11461         (round<mode>2_sfix): Change iterator.
11463 2016-05-25  Nick Clifton  <nickc@redhat.com>
11465         * config/msp430/msp430.c (msp430_attr): Produce an error if a
11466         static interrupt handler is detected.
11467         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
11468         default linker script.
11469         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
11470         the low part of a symbolic pointer.
11472 2016-05-25  Richard Biener  <rguenther@suse.de>
11474         PR tree-optimization/71261
11475         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
11476         interesting stmt instead of immediate uses when looking
11477         for the use operand to replace.
11479 2016-05-25  Martin Liska  <mliska@suse.cz>
11481         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
11483 2016-05-25  Richard Biener  <rguenther@suse.de>
11485         PR tree-optimization/71264
11486         * tree-vect-stmts.c (vect_init_vector): Properly deal with
11487         vector type val.
11489 2016-05-25  Martin Liska  <mliska@suse.cz>
11491         PR tree-optimization/71239
11492         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
11493         if DECL_SIZE is NULL.
11495 2016-05-25  Richard Biener  <rguenther@suse.de>
11497         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
11498         * tree-if-conv.c (pass_data_if_conversion): Use it.
11500 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11502         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
11503         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
11504         * varpool.c (varpool_node::get_availability): Likewise.
11506 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11508         * config/rs6000/altivec.md (VNEG iterator): New iterator for
11509         VNEGW/VNEGD instructions.
11510         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
11511         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
11512         support for ISA 3.0 VNEGW/VNEGD instructions.
11514 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
11516         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
11517         pointers inside OACC_DATA regions.
11518         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
11519         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
11520         (gimplify_adjust_omp_clauses): Fix typo in comment.
11522 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11524         * config/rs6000/altivec.md (VParity): New mode iterator for vector
11525         parity built-in functions.
11526         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
11527         zeros.
11528         (p9v_parity<mode>2): Likewise.
11529         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
11530         parity.
11531         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
11532         (parity<mode>2): ISA 3.0 expander for vector parity.
11533         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
11534         power9 built-ins.
11535         (BU_P9_64BIT_MISC_0): Likewise.
11536         (BU_P9_MISC_0): Likewise.
11537         (BU_P9V_AV_1): Likewise.
11538         (BU_P9V_AV_2): Likewise.
11539         (BU_P9V_AV_3): Likewise.
11540         (BU_P9V_AV_P): Likewise.
11541         (BU_P9V_VSX_1): Likewise.
11542         (BU_P9V_OVERLOAD_1): Likewise.
11543         (BU_P9V_OVERLOAD_2): Likewise.
11544         (BU_P9V_OVERLOAD_3): Likewise.
11545         (VCTZB): Add vector count trailing zeros support.
11546         (VCTZH): Likewise.
11547         (VCTZW): Likewise.
11548         (VCTZD): Likewise.
11549         (VPRTYBD): Add vector parity support.
11550         (VPRTYBQ): Likewise.
11551         (VPRTYBW): Likewise.
11552         (VCTZ): Add overloaded vector count trailing zeros support.
11553         (VPRTYB): Add overloaded vector parity support.
11554         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11555         overloaded vector count trailing zeros and parity instructions.
11556         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
11557         vector parity support.
11558         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
11559         trailing zeros support.
11560         (vec_cntlz): Likewise.
11561         (vec_vctzb): Likewise.
11562         (vec_vctzd): Likewise.
11563         (vec_vctzh): Likewise.
11564         (vec_vctzw): Likewise.
11565         (vec_vprtyb): Add ISA 3.0 vector parity support.
11566         (vec_vprtybd): Likewise.
11567         (vec_vprtybw): Likewise.
11568         (vec_vprtybq): Likewise.
11569         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11570         the ISA 3.0 vector count trailing zeros and vector parity built-in
11571         functions.
11573 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11575         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
11576         when there is stmt_to_insert.
11578 2016-05-24  Martin Sebor  <msebor@redhat.com>
11580         PR c++/71147
11581         * tree.h (complete_or_array_type_p): New inline function.
11583 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11585         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
11586         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
11587         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
11589         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
11590         Limit 1st alternative to noavx isa, split 2nd alternative into one
11591         noavx and one avx alternative, use *x and Bm in the former and
11592         x and m in the latter.
11594         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
11595         of sse4 for the first alternative, drop %v from the template
11596         and d operand modifier.  Split second alternative into one sse4_noavx
11597         and one avx alternative, use *x instead of *v in the former and v
11598         instead of *v in the latter.
11599         (*sse4_1_extractps): Use noavx isa instead of * for the first
11600         alternative, drop %v from the template.  Split second alternative into
11601         one noavx and one avx alternative, use *x instead of *v in the
11602         former and v instead of *v in the latter.
11603         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
11604         with noavx and the last one with avx.
11605         (sse4_1_phminposuw): Guard first alternative with noavx isa,
11606         split the second one into one noavx and one avx alternative,
11607         use *x and Bm in the former and x and m in the latter one.
11608         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
11609         alternatives.
11611         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
11612         first two alternatives to noavx, use *x instead of *v in the second
11613         one, add avx alternative without *.
11614         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
11615         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
11616         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
11618 2016-05-24  Jeff Law  <law@redhat.com>
11620         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
11621         New function, extracted from...
11622         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
11623         Allow simple copies and constant initializations in the SSA chain.
11625 2016-05-24  Marek Polacek  <polacek@redhat.com>
11627         PR c/71249
11628         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
11629         scope.
11631 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11633         PR c++/71257
11634         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11635         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11636         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
11637         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
11638         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
11640 2016-05-24  Richard Biener  <rguenther@suse.de>
11642         PR tree-optimization/71240
11643         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
11644         has integral type.
11646 2016-05-24  Richard Biener  <rguenther@suse.de>
11648         PR tree-optimization/71230
11649         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
11651 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11653         * tree-vectorizer.h (vectorizable_comparison): Delete.
11654         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
11655         PURE_SLP_STMT check.
11656         * tree-vect-stmts.c (vectorizable_call): Likewise.
11657         (vectorizable_simd_clone_call): Likewise.
11658         (vectorizable_conversion): Likewise.
11659         (vectorizable_assignment): Likewise.
11660         (vectorizable_shift): Likewise.
11661         (vectorizable_operation): Likewise.
11662         (vectorizable_load): Likewise.
11663         (vectorizable_condition): Likewise.
11664         (vectorizable_store): Likewise.  Assert that we don't have
11665         hybrid SLP.
11666         (vectorizable_comparison): Make static.  Remove redundant
11667         PURE_SLP_STMT check.
11668         (vect_transform_stmt): Assert that we always have an slp_node
11669         if PURE_SLP_STMT.
11671 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11673         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
11674         operands[2] against 1 with comparison against CONST1_RTX.
11675         (<shift>di3_neon): Likewise.
11676         * config/arm/predicates.md (const0_operand): Replace with comparison
11677         against CONST0_RTX.
11679 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11681         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
11682         operands[2] against 1 with comparison against CONST1_RTX.
11683         (ashrdi3): Likewise.
11684         (lshrdi3): Likewise.
11685         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
11686         UINTVAL.
11687         (ashrsi3): Likewise.
11688         (lshrsi3): Likewise.
11689         (rotrsi3): Likewise.
11690         (define_split above *compareqi_eq0): Likewise.
11691         (define_split above "prologue"): Likewise.
11692         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
11693         * config/arm/predicates.md (shift_operator): Likewise.
11694         (shift_nomul_operator): Likewise.
11695         (sat_shift_operator): Likewise.
11696         (thumb1_cmp_operand): Likewise.
11697         (const_neon_scalar_shift_amount_operand): Replace manual range
11698         check with IN_RANGE.
11699         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
11700         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
11702 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11704         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
11705         with HOST_WIDE_INT_1.
11706         (insv): Likewise.
11707         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
11708         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
11709         (arm_canonicalize_comparison): Likewise.
11710         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
11711         HOST_WIDE_INT_1.
11712         (thumb1_size_rtx_costs): Likewise.
11713         (vfp_const_double_index): Replace cast of 1 to unsigned
11714         HOST_WIDE_INT with HOST_WIDE_INT_1U.
11715         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
11716         HOST_WIDE_INT_1.
11717         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
11718         HOST_WIDE_INT with HOST_WIDE_INT_1U.
11719         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
11720         HOST_WIDE_INT with HOST_WIDE_INT_1.
11722 2016-05-24  Marek Polacek  <polacek@redhat.com>
11724         * tree-cfg.h (should_remove_lhs_p): New predicate.
11725         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
11726         * gimplify.c (gimplify_modify_expr): Likewise.
11727         * tree-cfg.c (verify_gimple_call): Likewise.
11728         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
11729         * gimple-fold.c: Include "tree-cfg.h".
11730         (gimple_fold_call): Use should_remove_lhs_p.
11732 2016-05-24  Richard Biener  <rguenther@suse.de>
11734         PR tree-optimization/71253
11735         * cfganal.h (control_dependences): Make robust against edge
11736         and BB removal.
11737         (control_dependences::control_dependences): Remove edge_list argument.
11738         (control_dependences::get_edge): Remove.
11739         (control_dependences::get_edge_src): Add.
11740         (control_dependences::get_edge_dest): Likewise.
11741         (control_dependences::m_el): Make a vector of edge src/dest index.
11742         * cfganal.c (control_dependences::find_control_dependence): Adjust.
11743         (control_dependences::control_dependences): Likewise.
11744         (control_dependences::~control_dependence): Likewise.
11745         (control_dependences::get_edge): Remove.
11746         (control_dependences::get_edge_src): Add.
11747         (control_dependences::get_edge_dest): Likewise.
11748         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
11749         get_edge_src.
11750         (perform_tree_ssa_dce): Adjust.
11751         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
11752         get_edge_src.
11753         (pass_loop_distribution::execute): Adjust.  Do loop destroying
11754         conditional on changed.
11756 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11758         PR target/69857
11759         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
11760         return.  Reindent transformation comment and mention the ARM state
11761         behavior.
11763 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11765         PR middle-end/71252
11766         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
11767         after build_and_add_sum creates new use stmt.
11769 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11771         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
11772         load_lanes/grouped_load classification comes first.  Don't check
11773         whether the vectorization factor is a multiple of the group size
11774         for load_lanes.
11776 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11778         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
11779         GROUP_GAP for single-element interleaving.
11780         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
11781         variable.
11783 2016-05-24  Richard Biener  <rguenther@suse.de>
11785         PR middle-end/70434
11786         PR c/69504
11787         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
11788         bases which are accessed with non-invariant indices.
11789         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
11790         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
11792 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11794         PR middle-end/71170
11795         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
11796         (add_to_ops_vec): Add stmt_to_insert.
11797         (add_repeat_to_ops_vec): Init stmt_to_insert.
11798         (insert_stmt_before_use): New.
11799         (transform_add_to_multiply): Remove mult_stmt insertion and add it
11800         to ops vector.
11801         (get_ops): Init stmt_to_insert.
11802         (maybe_optimize_range_tests): Likewise.
11803         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
11804         (rewrite_expr_tree_parallel): Likewise.
11805         (reassociate_bb): Likewise.
11807 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11809         PR target/71201
11810         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
11811         ISA 3.0 xxperm fusion alternative.
11812         (altivec_vperm_v8hiv16qi): Likewise.
11813         (altivec_vperm_<mode>_uns_internal): Likewise.
11814         (vperm_v8hiv4si): Likewise.
11815         (vperm_v16qiv8hi): Likewise.
11817 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11818             Kelvin Nilsen  <kelvin@gcc.gnu.org>
11820         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
11821         vpermr/xxpermr on ISA 3.0.
11822         (altivec_expand_vec_perm_le): Likewise.
11823         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
11824         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
11825         ISA 3.0.
11827 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
11829         * config/i386/i386.h (IS_STACK_MODE): Enable for
11830         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
11831         SSE_FLOAT_MODE_P macros.
11832         * config/i386/i386.c (ix86_preferred_reload_class): Use
11833         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
11834         Cleanup regclass processing for CONST_DOUBLE_P.
11835         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
11836         (ix86_rtx_costs): Remove redundant TARGET_80387 check
11837         with IS_STACK_MODE macro.
11838         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
11839         with TARGET_SSE2.
11840         (*movdf_internal): Use IS_STACK_MODE macro.
11841         (*movsf_internal): Ditto.
11843 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
11845         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
11846         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
11848 2016-05-23  Jeff Law  <law@redhat.com>
11850         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
11851         extracted from ...
11852         (fsm_find_control_statement_thread_paths): Call it.
11854 2016-05-23  Martin Jambor  <mjambor@suse.cz>
11856         PR ipa/71234
11857         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
11858         from_global_constant if t is not NULL.
11860 2016-05-23  Marek Polacek  <polacek@redhat.com>
11862         PR c/49859
11863         * common.opt (Wswitch-unreachable): New option.
11864         * doc/invoke.texi: Document -Wswitch-unreachable.
11865         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
11866         warning.
11868 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
11870         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
11871         TMR_INDEX is non-NULL.
11873 2016-05-23  Richard Biener  <rguenther@suse.de>
11875         PR tree-optimization/71230
11876         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
11877         (try_special_add_to_ops): ... here.  Always test for single-use.
11879 2016-05-23  Martin Jambor  <mjambor@suse.cz>
11881         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
11882         default block if a PHI node in the original one would be resized.
11884 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11886         PR tree-optimization/58135
11887         * tree-vect-slp.c: When group size is not multiple
11888         of vector size, allow splitting of store group at
11889         vector boundary.
11891 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
11893         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
11895 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
11897         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
11898         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
11899         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
11900         of 64x2.
11902         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
11903         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
11904         v constraint instead of x and vinserti32x4 insn.
11906         * config/i386/sse.md (i128vldq): New mode iterator.
11907         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
11908         avx512dq and avx512vl alternatives.
11910         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
11911         constraint, use maybe_evex prefix instead of vex.
11912         (vec_dupv4sf): Use v constraint instead of x for output
11913         operand except for noavx alternative, use Yv constraint
11914         instead of x for input.  Use maybe_evex prefix instead of vex.
11915         (*vec_dupv4si): Likewise.
11916         (*vec_dupv2di): Likewise.
11918 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
11920         PR middle-end/40921
11921         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
11922         (linearize_expr_tree): Call try_special_add_to_ops.
11923         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
11925 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11927         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
11928         to computed stack_usage.
11930 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11932         PR target/71103
11933         * config/avr/avr.md (define_expand "mov<mode>"): If the source
11934         operand is subreg (symbol_ref) then move the symbol ref to register.
11936 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
11938         * tree.c (array_at_struct_end_p): Look through MEM_REF.
11940 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
11942         PR middle-end/71179
11943         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
11944         VECTOR type.
11946 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
11948         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
11949         ranges by calling get_single_symbol and tidy up.  Look more closely
11950         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
11952 2016-05-20  Jeff Law  <law@redhat.com>
11954         * bitmap.c (bitmap_find_bit): Remove useless test.
11956 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
11958         * function.c (thread_prologue_and_epilogue_insns): Commit the
11959         insertion of the epilogue.
11961 2016-05-20  Martin Jambor  <mjambor@suse.cz>
11963         PR tree-optimization/70884
11964         * tree-sra.c (initialize_constant_pool_replacements): Do not check
11965         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
11966         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
11967         of constant pool data as a reason for scalarization.
11969 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
11971         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
11972         for naked functions.
11973         (thumb1_expand_prologue): Likewise.
11975 2016-05-20  Nathan Sidwell  <nathan@acm.org>
11977         * config/nvptx/nptx.c (nvptx_option_override): Only set
11978         flag_toplevel_reorder, if not explicitly specified.  Set
11979         flag_no_common, unless explicitly specified.
11981 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
11983         * calls.c (can_implement_as_sibling_call_p): Mark param
11984         reg_parm_stack_space with ATTRIBUTE_UNUSED.
11986 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
11988         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
11989         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
11990         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
11991         constants.
11992         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
11993         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
11994         and CASE_CONST_ANY.
11996 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
11998         * config/nvptx/nvptx.md (sincossf3): New pattern.
12000 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12002         * calls.c (maybe_complain_about_tail_call): New function.
12003         (initialize_argument_information): Call
12004         maybe_complain_about_tail_call when clearing *may_tailcall.
12005         (can_implement_as_sibling_call_p): Call
12006         maybe_complain_about_tail_call when returning false.
12007         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
12008         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
12009         if tail-call optimization fails.
12010         * cfgexpand.c (expand_call_stmt): Initialize
12011         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
12012         * gimple-pretty-print.c (dump_gimple_call): Dump
12013         gimple_call_must_tail_p.
12014         * gimple.c (gimple_build_call_from_tree): Call
12015         gimple_call_set_must_tail with the value of
12016         CALL_EXPR_MUST_TAIL_CALL.
12017         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
12018         (gimple_call_set_must_tail): New function.
12019         (gimple_call_must_tail_p): New function.
12020         * print-tree.c (print_node): Update printing of TREE_STATIC
12021         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
12022         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
12023         trailing comment listing applicable flags.
12024         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
12026 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12028         * calls.c (expand_call): Move "Rest of purposes for tail call
12029         optimizations to fail" to...
12030         (can_implement_as_sibling_call_p): ...this new function, and
12031         split into multiple "if" statements.
12033 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12035         * cfgloop.h (expected_loop_iterations_unbounded,
12036         expected_loop_iterations): Unconstify.
12037         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
12038         profile with known upper bound; return 3 when profile is absent.
12039         (expected_loop_iterations): Update.
12041 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12043         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
12044         and get_max_loop_iterations_int.
12046 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12048         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
12049         realistic upper bounds here.
12051 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
12053         PR c++/71210
12054         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
12055         calls if the LHS is variable length or has addressable type.
12056         If targets[0]->decl is a noreturn call with void return type and
12057         zero arguments, adjust fntype and remove lhs in that case.
12059 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
12061         PR tree-optimization/71079
12062         PR tree-optimization/71206
12063         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
12065 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12067         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
12068         (get_vec_alignment_for_array_decl): Likewise.
12069         (get_vec_alignment_for_record_decl): Likewise.
12070         (increase_alignment::execute): Move code to find alignment to
12071         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
12072         (type_align_map): New hash_map.
12074 2016-05-20  Richard Guenther  <rguenther@suse.de>
12076         PR tree-optimization/29756
12077         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
12078         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
12079         * fold-const.c (operand_equal_p): Likewise.
12080         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
12081         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
12082         * tree-inline.c (estimate_operator_cost): Likewise.
12083         * tree-pretty-print.c (dump_generic_node): Likewise.
12084         * tree-ssa-operands.c (get_expr_operands): Likewise.
12085         * cfgexpand.c (expand_debug_expr): Likewise.
12086         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12087         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
12088         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
12089         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
12090         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
12091         (execute_update_addresses_taken): Do it.
12093 2016-05-20  Richard Biener  <rguenther@suse.de>
12095         PR tree-optimization/71185
12096         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
12097         register operations.
12099 2016-05-20  Richard Biener  <rguenther@suse.de>
12101         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
12102         gimple_seq_add_seq_without_update.
12103         (release_bb_predicate): Assert we have no operands to free.
12104         (if_convertible_loop_p_1): Calculate post dominators later.
12105         Do not free BB predicates here.
12106         (combine_blocks): Do not recompute BB predicates.
12107         (version_loop_for_if_conversion): Save BB predicates around
12108         loop versioning.
12110 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12112         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
12113         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
12114         code.  Ignore sibcalls on EDGE_IGNORE edges.
12115         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
12116         on edges for sibcalls that run without prologue.  The rest of the
12117         function is combined from...
12118         (fix_fake_fallthrough_edge): ... this, and ...
12119         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
12120         function argument, make it a local variable.
12122 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12124         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
12125         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
12126         for 32-bit mode and SEH for 64-bit.
12127         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
12128         TARGET_64BIT_DEFAULT.
12130 2016-05-19  Ryan Burn  <contact@rnburn.com>
12132         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
12133         * gengtype.c (open_base_files): Add cilk.h to ifiles.
12135 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
12137         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
12138         force pending loads from memory.
12140 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12142         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
12143         (UNSPEC_DARN_32): New unspec constant.
12144         (UNSPEC_DARN_RAW): New unspec constant.
12145         (darn_32): New instruction.
12146         (darn_raw): New instruction.
12147         (darn): New instruction.
12148         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
12149         support and documentation for this macro.
12150         (BU_P9_MISC_1): New macro definition.
12151         (BU_P9_64BIT_MISC_0): New macro definition.
12152         (BU_P9_MISC_0): New macro definition.
12153         (darn_32): New builtin definition.
12154         (darn_raw): New builtin definition.
12155         (darn): New builtin definition.
12156         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
12157         RS6000_BUILTIN_0 directives to surround each occurrence of
12158         #include "rs6000-builtin.def".
12159         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
12160         RS6000_BTM_64BIT flags to the returned mask, depending on
12161         configuration.
12162         (def_builtin): Correct an error in the assignments made to the
12163         debugging variable attr_string.
12164         (rs6000_expand_builtin): Add support for no-operand built-in
12165         functions.
12166         (builtin_function_type): Remove fatal_error assertion that is no
12167         longer valid.
12168         (rs6000_common_init_builtins): Add support for no-operand built-in
12169         functions.
12170         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
12171         definition.
12172         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
12173         definition.
12174         (RS6000_BTM_64BIT): New macro definition.
12175         * doc/extend.texi: Document __builtin_darn (void),
12176         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
12177         functions.
12179 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
12181         * tree-vect-loop.c (vect_analyze_loop_2): Use also
12182         max_loop_iterations_int.
12184 2016-05-19  Marek Polacek  <polacek@redhat.com>
12186         PR tree-optimization/71031
12187         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
12188         condition and adjust the code a bit.
12190 2016-05-19  Martin Liska  <mliska@suse.cz>
12192         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
12193         auto_vec instead of vec.
12195 2016-05-19  Martin Liska  <mliska@suse.cz>
12197         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
12199 2016-05-19  Martin Liska  <mliska@suse.cz>
12201         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
12203 2016-05-19  Martin Liska  <mliska@suse.cz>
12205         * ipa-pure-const.c (set_function_state): Remove an existing
12206         funct_state.
12207         (remove_node_data): Do not free it as it's released
12208         in set_function_state.
12210 2016-05-19  Martin Liska  <mliska@suse.cz>
12212         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
12213         bitmap.
12215 2016-05-19  Martin Liska  <mliska@suse.cz>
12217         * omp-simd-clone.c (simd_clone_adjust): Release vector.
12219 2016-05-19  Martin Liska  <mliska@suse.cz>
12221         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
12222         an auto_vec instead of re-creating it.
12224 2016-05-19  Martin Liska  <mliska@suse.cz>
12226         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
12227         auto_vec instead of vec.
12229 2016-05-19  Martin Liska  <mliska@suse.cz>
12231         * lto-section-in.c (lto_get_section_data): Call
12232         lto_check_version with additional argument.
12233         * lto-streamer.c (lto_check_version): Add new argument.
12234         * lto-streamer.h (lto_check_version): Likewise.
12236 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12238         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
12239         Don't add cost of inner memory when handling sign-extended loads.
12241 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12243         PR rtl-optimization/71148
12244         * cse.c (cse_main): Free dominance info.
12245         (rest_of_handle_cse): Don't free dominance info.
12246         (rest_of_handle_cse2): Likewise.
12247         (rest_of_handle_cse_after_global_opts): Likewise.
12249 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12251         PR target/71056
12252         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
12253         NULL_TREE early if NEON is not available.  Remove now redundant check
12254         in ARM_CHECK_BUILTIN_MODE.
12256 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
12258         PR sanitizer/64354
12259         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
12260         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
12261         * doc/cpp.texi: Document new macros.
12263 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
12265         PR tree-optimization/69848
12266         * tree-vect-loop.c (vectorizable_reduction): Don't factor
12267         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
12269 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12271         * function.c (thread_prologue_and_epilogue_insn): Move the
12272         "goto epilogue_done" one block later.
12274 2016-05-19  Richard Biener  <rguenther@suse.de>
12276         PR tree-optimization/70729
12277         * passes.def: Move LIM pass before PRE.  Remove no longer
12278         required copyprop and move first DCE out of the loop pipeline.
12280 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
12282         PR driver/69265
12283         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
12284         (OBJS-libcommon-target): ...here.
12285         * opts-common.c: Include spellcheck.h.
12286         (cmdline_handle_error): Build a vec of valid options and use it
12287         to suggest provide hints for misspelled arguments.
12289 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12291         PR c++/71100
12292         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
12293         lhs if it has TREE_ADDRESSABLE type.
12295 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
12297         PR target/71145
12298         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
12299         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
12301 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12303         PR ipa/69708
12304         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
12305         input for NOP_EXPR pass-through functions.
12306         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
12307         aggregate global constant VAR_DECLs in constant jump functions.
12309 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12311         PR ipa/69708
12312         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
12313         from TREE_READONLY parameters.
12315 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12317         PR ipa/69708
12318         * cgraph.h (cgraph_indirect_call_info): New field
12319         guaranteed_unmodified.
12320         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
12321         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12322         appropriate.
12323         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
12324         pass the parameter value to ipa_find_agg_cst_for_param.
12325         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
12326         guaranteed_unmodified, store AA results there instead of bailing out
12327         if present.
12328         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
12329         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
12330         (find_constructor_constant_at_offset): New function.
12331         (ipa_find_agg_cst_from_init): Likewise.
12332         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
12333         static initializers of contants, report back through a new paameter
12334         from_global_constant if that was the case.
12335         (try_make_edge_direct_simple_call): Also pass parameter value to
12336         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12337         appropriate.
12338         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
12339         (ipa_read_indirect_edge_info): Likewise.
12340         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
12341         (ipa_load_from_parm_agg): Likewise.
12343 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
12345         PR rtl-optimization/71150
12346         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
12347         check.
12349 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12351         PR target/70915
12352         * config/rs6000/constraints.md (wE constraint): New constraint
12353         for a vector constant that can be loaded with XXSPLTIB.
12354         (wM constraint): New constraint for a vector constant of a 1's.
12355         (wS constraint): New constraint for a vector constant that can be
12356         loaded with XXSPLTIB and a vector sign extend instruction.
12357         * config/rs6000/predicates.md (xxspltib_constant_split): New
12358         predicates for wE/wS constraints.
12359         (xxspltib_constant_nosplit): Likewise.
12360         (easy_vector_constant): Add support for constants that can be
12361         loaded via XXSPLTIB.
12362         (all_ones_constant): New predicate for vector constant with all
12363         1's set.
12364         (splat_input_operand): Add support for ISA 3.0 word splat operations.
12365         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12366         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12367         instruction and possibly with a sign extension.
12368         (output_vec_const_move): Add support for XXSPLTIB. If we are
12369         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12370         instead of XXLXOR/XXLORC.
12371         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12372         operations.
12373         (rs6000_legitimize_reload_address): Likewise.
12374         (rs6000_output_move_128bit): Use output_vec_const_move to emit
12375         constants.
12376         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12377         combine VSX_M and VSX_M2 into one iterator.
12378         (VSX_M2): Likewise.
12379         (VSINT_84): New iterators for loading constants with XXSPLTIB.
12380         (VSINT_842): Likewise.
12381         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12382         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12383         XXSPLTIB instruction.
12384         (xxspltib_<mode>_nosplit): Likewise.
12385         (xxspltib_<mode>_split): New insn to load up constants with
12386         XXSPLTIB and a sign extend instruction.
12387         (vsx_mov<mode>): Replace single move that handled all vector types
12388         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
12389         moves (when -mvsx-timode is in effect) into the main vector
12390         moves.  Eliminate separate moves for <VSr> <VSa>, where the
12391         preferred register class (<VSr>) is listed first, and the
12392         secondary register class (<VSa>) is listed second with a '?' to
12393         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
12394         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12395         that if the register was involved in a slow operation, the
12396         clear/set operation does not wait for the slow operation to
12397         finish.  Adjust the length attributes for 32-bit mode.  Use
12398         rs6000_output_move_128bit and drop the use of the string
12399         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
12400         spacing so that the alternatives and attributes don't generate
12401         long lines, and put things in columns, so that it is easier to
12402         match up the operands and attributes with the insn alternatives.
12403         (vsx_mov<mode>_64bit): Likewise.
12404         (vsx_mov<mode>_32bit): Likewise.
12405         (vsx_movti_64bit): Fold movti into normal vector moves.
12406         (vsx_movti_32bit): Likewise.
12407         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12408         splat instructions.
12409         (vsx_splat_v4si_internal): Likewise.
12410         (vsx_splat_v4sf_internal): Likewise.
12411         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12412         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12413         extend vector elements.
12414         (vsx_sign_extend_hi_<mode>): Likewise.
12415         (vsx_sign_extend_si_v2di): Likewise.
12416         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12417         declaration.
12418         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12419         constraints.  Add trailing period to wL documentation.
12421 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
12423         PR middle-end/71020
12424         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12425         * tree-dfa.c (replace_abnormal_ssa_names): New function.
12426         * tree-call-cdce.c: Include tree-dfa.h.
12427         (can_guard_call_p): New function, extracted from...
12428         (can_use_internal_fn): ...here.
12429         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12430         and return void.
12431         (shrink_wrap_one_built_in_call): Likewise.
12432         (use_internal_fn): Likewise.
12433         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12434         and return void.  Call replace_abnormal_ssa_names.
12435         (pass_call_cdce::execute): Check can_guard_call_p during the
12436         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
12437         will always change something.
12439 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12441         PR ipa/70646
12442         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12443         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12445 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12447         PR ipa/70646
12448         * ipa-inline.h (condition): New field size.
12449         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12450         for comaprison and store it into the new condition.
12451         (evaluate_conditions_for_known_args): Use condition size to check
12452         access sizes for all but CHANGED conditions.
12453         (unmodified_parm_1): New parameter size_p, store access size into it.
12454         (unmodified_parm): Likewise.
12455         (unmodified_parm_or_parm_agg_item): Likewise.
12456         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
12457         (set_cond_stmt_execution_predicate): Extract access sizes and store
12458         them to conditions.
12459         (set_switch_stmt_execution_predicate): Likewise.
12460         (will_be_nonconstant_expr_predicate): Likewise.
12461         (will_be_nonconstant_predicate): Likewise.
12462         (inline_read_section): Stream condition size.
12463         (inline_write_summary): Likewise.
12465 2016-05-18  Richard Biener  <rguenther@suse.de>
12467         * tree-ssa-loop-im.c (determine_max_movement): Properly add
12468         condition cost to PHI cost instead of total_cost.
12470 2016-05-18  Martin Liska  <mliska@suse.cz>
12472         PR fortran/70856
12473         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
12474         merged variables.
12476 2016-05-18  Richard Biener  <rguenther@suse.de>
12478         * lto-streamer.h (LTO_major_version): Bump to 6.
12480 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12482         * function.c (make_split_prologue_seq, make_prologue_seq,
12483         make_epilogue_seq): New functions, factored out from...
12484         (thread_prologue_and_epilogue_insns): Here.
12486 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12488         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12489         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
12490         of before.  Add a comment.
12492 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
12494         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
12495         expression pointer, not pointer to the pointer.
12497 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12499         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
12500         (avx2_pbroadcast<mode>): Add another alternative with v instead
12501         of x constraints in it, using <pbroadcast_evex_isa> isa.
12502         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
12504         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
12505         constraint x instead of v in second alternative, add avx512bw
12506         alternative.
12508         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
12509         constraint x instead of v in second alternative, add avx512bw
12510         alternative.
12512         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
12513         constraint x instead of v in second alternative, add avx512bw
12514         alternative.
12516         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
12517         avx512bw alternative.
12519 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12521         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
12522         array to 128 chars.
12523         (define_insn "*andnottf3"): Ditto.
12524         (define_insn "*<code><mode>3"/any_logic): Ditto.
12525         (define_insn "*<code>tf3"/any_logic): Ditto.
12526         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
12527         operand to block AVX-512VL insn variant emit when it is not enabled.
12529 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12531         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
12532         constraint fot SF mode.
12534 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
12535             Kirill Yukhin  <kirill.yukhin@intel.com>
12537         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
12538         modifiers.
12539         (define_insn "rsqrt14<mode>"): Ditto.
12540         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12541         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
12542         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
12543         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
12544         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
12545         Ditto.
12546         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
12547         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
12548         * config/i386/i386.c (ix86_print_operand): Expand check for size
12549         override codes for Intel syntax.
12551 2016-05-18  Richard Biener  <rguenther@suse.de>
12553         PR tree-optimization/71168
12554         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
12555         initialization earlier.
12557 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
12559         * config/aarch64/aarch64-simd.md
12560         (aarch64_reduc_plus_internal<mode>): Rename to...
12561         (reduc_plus_scal): ...This, and remove previous implementation.
12563 2016-05-18  Richard Biener  <rguenther@suse.de>
12565         * passes.def: Put late dse and cd_dce in canonical order.
12567 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
12569         * ipa-inline-transform.c (preserve_function_body_p): Look for
12570         first non-thunk clone.
12571         (save_function_body): Save into first non-thunk.
12572         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
12573         up call stmt id.
12574         (lto_output_node): Inline thunks don't need body in every
12575         partition.
12576         * lto-streamer-in.c: Do not fixup thunk clones.
12577         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
12578         thunks.
12579         * tree-inline.c (copy_bb): Be prepared for target node to be new after
12580         folding suceeds.
12582 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12584         PR middle-end/63586
12585         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
12586         (reassociate_bb): Call transform_add_to_multiply.
12588 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12590         * config/aarch64/aarch64.c (all_extensions): Removed unused
12591         static variable.
12593 2016-05-17  Nathan Sidwell  <nathan@acm.org>
12595         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
12596         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
12598 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
12600         PR tree-optimization/54579
12601         PR middle-end/55299
12602         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
12604 2016-05-17  Marek Polacek  <polacek@redhat.com>
12606         PR ipa/71146
12607         * tree-inline.c (expand_call_inline): Call
12608         maybe_remove_unused_call_args.
12610 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
12612         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
12613         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
12614         * doc/md.texi (fmin@var{m}3): Likewise.
12616 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12618         * match.pd (X & C): New transformation.
12620 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12622         * match.pd (~X & Y): New transformation.
12624 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12626         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
12627         information for new SSA_NAME.
12628         (simplify_conversion_using_ranges): Get range through get_range_info
12629         instead of get_value_range.
12631 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12633         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
12634         Remove inline assembly.
12635         (vmvn_s16): Likewise.
12636         (vmvn_s32): Likewise.
12637         (vmvn_u8): Likewise.
12638         (vmvn_u16): Likewise.
12639         (vmvn_u32): Likewise.
12640         (vmvnq_s8): Likewise.
12641         (vmvnq_s16): Likewise.
12642         (vmvnq_s32): Likewise.
12643         (vmvnq_u8): Likewise.
12644         (vmvnq_u16): Likewise.
12645         (vmvnq_u32): Likewise.
12646         (vmvn_p8): Likewise.
12647         (vmvnq_p16): Likewise.
12649 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12651         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
12652         Use builtin.
12653         (vmul_n_s16): Likewise.
12654         (vmul_n_s32): Likewise.
12655         (vmul_n_u16): Likewise.
12656         (vmul_n_u32): Likewise.
12657         (vmulq_n_f32): Likewise.
12658         (vmulq_n_f64): Likewise.
12659         (vmulq_n_s16): Likewise.
12660         (vmulq_n_s32): Likewise.
12661         (vmulq_n_u16): Likewise.
12662         (vmulq_n_u32): Likewise.
12664 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12666         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
12667         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
12669 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12671         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
12672         to *aarch64_fma4_elt_from_dup<mode>.
12673         (*aarch64_fnma4_elt_to_128df): Rename to
12674         *aarch64_fnma4_elt_from_dup<mode>.
12675         * config/aarch64/arm_neon.h (vfma_n_f64): New.
12676         (vfms_n_f32): Likewise.
12677         (vfms_n_f64): Likewise.
12678         (vfmsq_n_f32): Likewise.
12679         (vfmsq_n_f64): Likewise.
12681 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
12683         * wide-int.h: Change fixed_wide_int_storage from class to struct.
12685 2016-05-17  Richard Biener  <rguenther@suse.de>
12687         PR tree-optimization/71132
12688         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
12689         Only add control dependences for blocks in the loop.
12690         (build_rdg): Adjust.
12691         (generate_code_for_partition): Return whether loop should
12692         be destroyed and delay that.
12693         (distribute_loop): Likewise.
12694         (pass_loop_distribution::execute): Record loops to be destroyed
12695         and perform delayed destroying of loops.
12697 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12699         PR target/70809
12700         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
12702 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
12704         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
12706 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
12708         PR target/71114
12709         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
12710         insertion point for instructions generated by validize_mem.
12712 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
12714         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
12715         in brackets.
12717 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
12719         * config/aarch64/aarch64.c
12720         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
12721         rather than a macro.
12723 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
12725         * doc/invoke.texi (AArch64 Options): Various updates.
12727 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12729         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
12730         into instrumentation thunks.
12731         * cif-code.def (CIF_CHKP): New.
12733 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
12735         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
12737 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12739         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
12740         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
12742 2016-05-16  Marek Polacek  <polacek@redhat.com>
12744         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
12745         commentary.
12747 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12749         PR hsa/70857
12750         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
12751         the outlined kernel function.
12753 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
12755         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
12756         (ISA_HAS_DLSA): Ditto.
12758 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
12760         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
12762 2016-05-16  Nathan Sidwell  <nathan@acm.org>
12764         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
12765         (nvptx_name_replacement): Restore.  Add comment.
12766         (write_fn_proto, write_fn_proto_from_insn,
12767         nvptx_output_call_insn): Restore
12768         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
12770 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
12772         * config/aarch64/aarch64.md
12773         (add<mode>3_compareC_cconly_imm): Remove use of %w.
12774         (add<mode>3_compareC_imm): Likewise.
12775         (<optab>si3_uxtw): Split into register and immediate variants.
12776         (andsi3_compare0_uxtw): Likewise.
12777         (and<mode>3_compare0): Likewise.
12778         (and<mode>3nr_compare0): Likewise.
12779         (stack_protect_test_<mode>): Don't use %x for memory operands.
12781 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
12783         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
12785 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
12787         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12788         Split integer shifts into shift_reg and bfm.
12789         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
12790         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12791         (ror<mode>3_insn): Likewise.
12792         (<optab>si3_insn_uxtw): Likewise.
12793         (<optab><mode>3_insn): Change to rotate_imm.
12794         (extr<mode>5_insn_alt): Likewise.
12795         (extrsi5_insn_uxtw): Likewise.
12796         (extrsi5_insn_uxtw_alt): Likewise.
12798 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
12800         * doc/tm.texi: Regenerate.
12801         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
12802         (TARGET_INVALID_RETURN_TYPE): Remove.
12803         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
12804         TARGET_INVALID_RETURN_TYPE.
12805         * target.def (invalid_parameter_type): Remove.
12806         (invalid_return_type): Remove.
12808 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12810         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
12811         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
12812         calls from thunk.
12813         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
12814         gimple body.
12815         (preserve_function_body_p): No need to preserve function body
12816         * cif-codes.def (CIF_THUNK): Remove.
12817         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
12819 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12821         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
12823 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12825         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
12826         for thunks.
12828 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12830         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
12831         (inline_small_functions): Do not look for function symbol when
12832         resetting caches.
12834 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12836         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
12837         of inline thunks
12839 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
12840             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12841             Jiong Wang  <jiong.wang@arm.com>
12843         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
12844         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
12845         Define __ARM_FP16_ARGS when appropriate.
12846         * config/arm/arm.c (arm_invalid_parameter_type): Remove
12847         declaration.
12848         (arm_invalid_return_type): Likewise.
12849         (TARGET_INVALID_PARAMETER_TYPE): Remove.
12850         (TARGET_INVALID_RETURN_TYPE): Remove.
12851         (aapcs_vfp_sub_candidate): Allow HFmode.
12852         (aapcs_vfp_allocate): Add comment.  Support HFmode.
12853         (aapcs_vfp_allocate_return_reg): Likewise.
12854         (struct aapcs_cp_arg_layout): Slightly reword comments for
12855         is_return_candidate and allocate_return_reg.
12856         (output_mov_vfp): Update assert.
12857         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
12858         condition.
12859         (arm_invalid_parameter_type): Remove.
12860         (amr_invalid_return_type): Remove.
12861         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
12862         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
12863         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
12865 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
12867         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
12868         * config/aarch64/arch64-protos.h
12869         (aarch64_legitimize_reload_address): Remove.
12870         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
12871         Remove.
12873 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12875         * configure.ac: Add ACX_NONCANONICAL_HOST.
12876         * configure: Regenerate.
12877         * Makefile.in: Set host_noncanonical.
12879 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
12881         PR target/71097
12882         * config/i386/i386.md (*movtf_internal): Before register allocation,
12883         do not allow FP constants for CM_MEDIUM memory model, allow only
12884         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
12885         (*movxf_internal): Ditto.
12886         (*movdf_internal): Ditto.
12887         (*movsf_internal): Ditto.
12889 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
12891         PR rtl-optimization/67483
12892         * combine.c (make_compound_operation): Don't call extract_left_shift
12893         with negative shift amounts.
12895 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
12897         PR bootstrap/71071
12898         * fold-const.c (fold_checksum_tree): Allow modification
12899         of TYPE_ALIAS_SET during folding.
12901         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
12902         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
12903         (ix86_split_to_parts): Likewise.  Fix up formatting.
12905 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
12907         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
12908         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
12909         printf format.
12911 2016-05-13  Nathan Sidwell  <nathan@acm.org>
12913         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
12914         (nvptx_name_replacement): Delete.
12915         (write_fn_proto, write_fn_proto_from_insn,
12916         nvptx_output_call_insn): Remove nvptx_name_replacement call.
12917         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
12918         * langhooks.c (add_builtin_funcction_common): Call
12919         targetm.mangle_decl_assembler_name.
12921         * config/nvptx/nvptx.c (write_fn_proto): Handle
12922         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
12924 2016-05-13  Martin Liska  <mliska@suse.cz>
12926         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
12927         and PRIu64 in printf format.
12929 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12931         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
12932         comment.
12934 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12936         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12937         Change --param max-completely-peeled-times to
12938         --param max-completely-peel-times in dump file printing.
12940 2016-05-13  Richard Biener  <rguenther@suse.de>
12942         PR tree-optimization/42587
12943         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
12944         (find_bswap_or_nop_1): Likewise.
12945         (bswap_replace): Likewise.
12947 2016-05-13  Martin Liska  <mliska@suse.cz>
12949         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
12950         Initialize a variable with default value.
12952 2016-05-13  Martin Liska  <mliska@suse.cz>
12954         * doc/invoke.texi: Enhance explanation of error recovery
12955         of sanitizers.
12957 2016-05-13  Martin Liska  <mliska@suse.cz>
12959         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
12960         (struct cost_pair): Change inv_expr_id (int) to inv_expr
12961         (iv_inv_expr_ent *).
12962         (struct iv_inv_expr_ent): Comment struct fields.
12963         (sort_iv_inv_expr_ent): New function.
12964         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
12965         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
12966         a hash_map between iv_inv_expr_ent and number of usages.
12967         (niter_for_exit): Fix coding style.
12968         (tree_ssa_iv_optimize_init): Use renamed variable.
12969         (determine_base_object): Fix coding style.
12970         (alloc_iv): Likewise.
12971         (find_interesting_uses_outside): Likewise.
12972         (add_candidate_1): Likewise.
12973         (add_standard_iv_candidates): Likewise.
12974         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
12975         (prepare_decl_rtl): Fix coding style.
12976         (get_address_cost): Likewise.
12977         (get_shiftadd_cost): Likewise.
12978         (force_expr_to_var_cost): Likewise.
12979         (compare_aff_trees): Likewise.
12980         (get_expr_id): Restructure the function.
12981         (get_loop_invariant_expr_id): Renamed to
12982         get_loop_invariant_expr.
12983         (get_computation_cost_at): Replace usage of inv_expr_id with
12984         inv_expr.
12985         (get_computation_cost): Likewise.
12986         (determine_group_iv_cost_generic): Likewise.
12987         (determine_group_iv_cost_address): Likewise.
12988         (iv_period): Fix coding style.
12989         (iv_elimination_compare_lt): Likewise.
12990         (may_eliminate_iv): Likewise.
12991         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
12992         inv_expr.
12993         (determine_group_iv_costs): Dump invariant expressions.
12994         (iv_ca_recount_cost): Use the newly added hash_map.
12995         (iv_ca_set_remove_invariants): Fix coding style.
12996         (iv_ca_set_add_invariants): Fix coding style.
12997         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
12998         invariants.
12999         (iv_ca_set_cp): Likewise.
13000         (iv_ca_new): Initialize the newly added hash_map and remove
13001         initialization of fields.
13002         (iv_ca_free): Delete the hash_map.
13003         (iv_ca_dump): Dump invariant expressions.
13004         (iv_ca_extend): Fix coding style.
13005         (try_add_cand_for): Likewise.
13006         (create_new_ivs): Dump information about # of avg iterations and
13007         # of used invariant expressions.
13008         (rewrite_use_compare): Fix coding style.
13009         (free_loop_data): Set default value for max_inv_expr_id.
13011 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13013         * cse.c (rest_of_handle_cse): Use cleanup_cfg
13014         returned value cse_cfg_altered computation.
13015         (rest_of_handle_cse2): Likewise.
13016         (rest_of_handle_cse_after_global_opts): Likewise.
13018 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13020         PR target/53440
13021         * config/arm/arm.c (arm32_output_mi_thunk): New.
13022         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
13023         to split Thumb1 vs TARGET_32BIT functionality.
13024         (arm_thumb1_mi_thunk): New.
13026 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13028         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
13029         to true.
13031 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13033         PR target/71080
13034         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
13036 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13038         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
13039         (expand_builtin_trap): Emit a regular call.
13040         (set_builtin_user_assembler_name): Remove obsolete cases.
13041         * dse.c (scan_insn): Adjust.
13042         * except.c: Include calls.h.
13043         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
13044         emit a regular call to setjmp.
13045         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
13046         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
13047         (emit_block_move_via_libcall): Delete.
13048         (block_move_fn): Delete.
13049         (init_block_move_fn): Likewise.
13050         (emit_block_move_libcall_fn): Likewise.
13051         (emit_block_op_via_libcall): New function.
13052         (set_storage_via_libcall): Tidy up and use memset builtin.
13053         (block_clear_fn): Delete.
13054         (init_block_clear_fn): Likewise.
13055         (clear_storage_libcall_fn): Likewise.
13056         (expand_assignment): Call emit_block_move_via_libcall.
13057         Do not include gt-expr.h.
13058         * expr.h (emit_block_op_via_libcall): Declare.
13059         (emit_block_copy_via_libcall): New inline function.
13060         (emit_block_move_via_libcall): Likewise.
13061         (emit_block_comp_via_libcall): Likewise.
13062         (block_clear_fn): Delete.
13063         (init_block_move_fn): Likewise.
13064         (init_block_clear_fn): Likewise.
13065         (emit_block_move_via_libcall): Likewise.
13066         (set_storage_via_libcall): Add default parameter value.
13067         * libfuncs.h (enum libfunc_index): Remove obsolete values.
13068         (abort_libfunc): Delete.
13069         (memcpy_libfunc): Likewise.
13070         (memmove_libfunc): Likewise.
13071         (memcmp_libfunc): Likewise.
13072         (memset_libfunc): Likewise.
13073         (setbits_libfunc): Likewise.
13074         (setjmp_libfunc): Likewise.
13075         (longjmp_libfunc): Likewise.
13076         (profile_function_entry_libfunc): Likewise.
13077         (profile_function_exit_libfunc): Likewise.
13078         (gcov_flush_libfunc): Likewise.
13079         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
13080         and DECL_VISIBILITY on the declaration.
13081         (init_optabs): Do not initialize obsolete libfuncs.
13082         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
13083         * tree-core.h (ECF_RET1): Define.
13084         (ECF_TM_PURE): Adjust.
13085         (ECF_TM_BUILTIN): Likewise.
13086         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
13087         (build_common_builtin_nodes): Initialize abort builtin.
13088         Add ECF_RET1 on memcpy, memmove and memset builtins.
13089         Pass final flags for alloca and alloca_with_align builtins.
13090         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
13091         obsolete builtins.
13092         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
13093         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
13094         set_storage_via_libcall and call emit_block_copy_via_libcall.
13096 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
13098         * config/i386/i386.md (*call_got_x32): Change operand 0 to
13099         DImode before it is passed to ix86_output_call_operand.
13100         (*call_value_got_x32): Ditto for operand 1.
13102 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
13104         PR rtl-optimization/70904
13105         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
13106         reload for wide mode.
13108 2016-05-12  Marek Polacek  <polacek@redhat.com>
13110         PR c/70756
13111         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
13112         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
13113         * langhooks.h (incomplete_type_error): Likewise.
13114         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
13115         parameter, pass it down to incomplete_type_error.
13116         * tree.h (size_in_bytes): New inline overload.
13117         (size_in_bytes_loc): Renamed from size_in_bytes.
13119 2016-05-12  Richard Biener  <rguenther@suse.de>
13121         PR tree-optimization/71059
13122         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
13123         nary before looking up or entering the expression into the VN
13124         hashes.
13125         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
13126         Make sure to re-use NARYs without result as inserted by
13127         phi-translation.
13129 2016-05-12  Richard Biener  <rguenther@suse.de>
13131         PR tree-optimization/71062
13132         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13133         field.
13134         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13135         vars_contains_restrict if the var is a restrict tag.
13136         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
13137         do not disambiguate pointers against it.
13138         (dump_points_to_solution): Re-structure and adjust for new
13139         vars_contains_restrict flag.
13140         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
13142 2016-05-12  Martin Liska  <mliska@suse.cz>
13144         * doc/invoke.texi: Explain connection between
13145         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
13147 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13149         PR tree-optimization/71006
13150         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13151         consider COND_EXPR as a mask producer.
13153 2016-05-12  Marek Polacek  <polacek@redhat.com>
13155         PR driver/71063
13156         * opts.c (common_handle_option): Detect missing argument for --help^.
13158 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13160         PR target/70830
13161         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
13162         when popping the PC and within an interrupt handler routine.
13163         Add missing tab to output of "ldmfd".
13164         (output_return_instruction): Output LDMFD with SP update rather
13165         than POP when returning from interrupt handler.
13167 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
13169         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
13170         TARGET_64BIT && TARGET_AVX512DQ.
13171         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
13172         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
13173         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
13174         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
13175         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
13176         (*vec_extractv4si_zext): Add avx512dq alternative.
13177         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
13178         use v instead of x constraint in other alternatives where possible.
13180         * config/i386/sse.md (sse2_loadld): Use v instead of x
13181         constraint in alternatives 0,1,4.
13183         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
13184         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
13185         v constraints instead of x and <pinsr_evex_isa> isa attribute.
13187         PR target/71019
13188         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
13189         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
13190         is not emitted unless TARGET_AVX512BW.
13191         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
13192         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
13193         for the result operand.
13195         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
13196         constraint instead of x in avx alternatives.  Use maybe_evex instead
13197         of vex prefix.
13199         * config/i386/constraints.md (Yv): New constraint.
13200         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
13201         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
13202         * config/i386/i386.md (avx512fvecmode): New mode attr.
13203         (*pushtf): Use v constraint instead of x.
13204         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
13205         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
13206         (*absneg<mode>2): Use Yv constraint instead of x constraint.
13207         (*absnegtf2_sse): Likewise.
13208         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
13209         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
13210         avx512f alternatives.
13211         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
13213 2016-05-12  Richard Biener  <rguenther@suse.de>
13215         PR tree-optimization/71060
13216         * tree-data-ref.c (initialize_data_dependence_relation): Do not
13217         require exact match of DR_BASE_OBJECT but only matching address and
13218         type.
13220 2016-05-12  Richard Biener  <rguenther@suse.de>
13222         PR tree-optimization/70986
13223         * cfganal.c: Include cfgloop.h.
13224         (dfs_find_deadend): Prefer to take edges exiting loops.
13226 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13228         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
13229         compile and run time.
13231 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
13233         PR c/43651
13234         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
13236 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
13238         * config/i386/i386.c (legitimize_pic_address): Use
13239         copy_to_suggested_reg instead of gen_movsi.
13241 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13243         * config/rs6000/predicates.md (quad_memory_operand): Move most of
13244         the code into quad_address_p and call it to share code with
13245         vsx_quad_dform_memory_operand.
13246         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
13247         d-form support.
13248         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
13249         bit instead of being a separate word.  Split -mpower9-dform into
13250         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13251         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
13252         for the register class supporting 128-bit quad word memory offsets.
13253         (mode_supports_vsx_dform_quad): Helper function to return if the
13254         register class uses quad word memory offsets.
13255         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
13256         (rs6000_debug_reg_global): Always print if we are using LRA or not.
13257         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
13258         instructions are enabled, set up the appropriate addr_masks for
13259         128-bit types.
13260         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
13261         -mpower9-dform-scalar, instead of -mpower9-dform.
13262         (rs6000_option_override_internal): Split -mpower9-dform into two
13263         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
13264         -mpower9-dform switch sets or clears both.  If we are not using
13265         the LRA register allocator, do not enable -mpower9-dform-vector by
13266         default.  If we are using LRA, enable -mpower9-dform-vector and
13267         -mvsx-timode if it is appropriate.  Issue a warning if either
13268         -mpower9-dform-vector or -mvsx-timode are explicitly used without
13269         enabling LRA.
13270         (quad_address_offset_p): New helper function to return if the
13271         offset is legal for quad word memory instructions.
13272         (quad_address_p): New function to determin if GPR or vector
13273         register quad word memory addresses are legal.
13274         (mem_operand_gpr): Validate quad word address offsets.
13275         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
13276         d-form (register + offset) instructions.
13277         (offsettable_ok_by_alignment): Likewise.
13278         (rs6000_legitimate_offset_address_p): Likewise.
13279         (legitimate_lo_sum_address_p): Likewise.
13280         (rs6000_legitimize_address): Likewise.
13281         (rs6000_legitimize_reload_address): Add more debug statements for
13282         -mdebug=addr.
13283         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
13284         d-form instructions.
13285         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
13286         d-form instructions.  Distinguish different cases in debug
13287         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
13288         d-form instructions.
13289         (rs6000_preferred_reload_class): Likewise.
13290         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
13291         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
13292         of the ISA 2.06 indexed memory instructions.
13293         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
13294         use them to save/restore the saved vector registers instead of
13295         using Altivec instructions.
13296         (rs6000_emit_epilogue): Likewise.
13297         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
13298         (rs6000_opt_masks): Split -mpower9-dform into
13299         -mpower9-dform-scalar and -mpower9-dform-vector.
13300         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
13301         was not selected.
13302         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
13303         ISA 3.0 vector indexed memory instructions, and fold the code into
13304         the normal mov<mode> patterns.
13305         (p9_vecstore_<mode>): Likewise.
13306         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
13307         instructions.
13308         (vsx_movti_64bit): Likewise.
13309         (vsx_movti_32bit): Likewise.
13310         * config/rs6000/constraints.md (wO constraint): New constraint for
13311         ISA 3.0 vector d-form support.
13312         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
13313         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
13314         include -mpower9-dform-vector until we switch over to LRA.
13315         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
13316         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13317         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
13318         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13319         for -mpower9-dform and -mlra.
13320         * doc/md.texi (wO constraint): Document wO constraint.
13322 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
13324         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
13325         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
13326         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
13327         Move handling of non-insn arguments inline into the sole user:
13328         (output_trans_func): ...here.
13329         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
13330         in emitted function prototype.
13331         (output_internal_insn_latency_func): Ditto.  Simplify.
13332         (output_internal_maximal_insn_latency_func): Ditto.  Delete
13333         always-unused argument.
13334         (output_insn_latency_func): Ditto.
13335         (output_maximal_insn_latency_func): Ditto.
13337 2016-05-11  Richard Biener  <rguenther@suse.de>
13339         PR tree-optimization/71055
13340         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
13341         sth with precision not equal to access size verify we don't chop
13342         off bits.
13344 2016-05-11  Richard Biener  <rguenther@suse.de>
13346         PR debug/71057
13347         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
13348         (dwarf2out_finish): Move retry_incomplete_types call ...
13349         (dwarf2out_early_finish): ... here.
13351 2016-05-11  Richard Biener  <rguenther@suse.de>
13353         PR middle-end/71002
13354         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
13355         if the langhook insists on it.
13356         * fold-const.c (make_bit_field_ref): Add arg for the original
13357         reference and preserve its alias-set.
13358         (decode_field_reference): Take exp by reference and adjust it
13359         to the original memory reference.
13360         (optimize_bit_field_compare): Adjust callers.
13361         (fold_truth_andor_1): Likewise.
13362         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13364 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
13366         PR middle-end/70807
13367         * cfgrtl.h (delete_insn_and_edges): Now return bool.
13368         * cfgrtl.c (delete_insn_and_edges): Likewise.
13369         * config/i386/i386.c (convert_scalars_to_vector): Remove
13370         redundant code.
13371         * cse.c (cse_insn): Compute cse_cfg_altered.
13372         (delete_trivially_dead_insns): Likewise.
13373         (cse_cc_succs): Likewise.
13374         (rest_of_handle_cse): Free dominance info if required.
13375         (rest_of_handle_cse2): Likewise.
13376         (rest_of_handle_cse_after_global_opts): Likewise.
13378 2016-05-11  Alan Modra  <amodra@gmail.com>
13380         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13381         abi_v4_pass_in_fpr): New functions.
13382         (rs6000_function_arg_boundary): Exclude complex IBM long double
13383         from 64-bit alignment when ABI_V4.
13384         (rs6000_function_arg, rs6000_function_arg_advance_1,
13385         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13387 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
13389         PR rtl-optimization/71028
13390         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13391         jump with just a return in the fallthrough block if the branch
13392         block contains just a return as well.
13394 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
13396         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13397         * match.pd ((X & Y) ^ Y): ... this.
13398         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13399         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13401 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13403         * read-md.c (require_char_ws): New function.
13404         (read_string): Simplify using require_char_ws.
13405         (handle_constants): Likewise.
13406         (handle_enum): Likewise.
13407         (handle_file): Likewise.
13408         * read-md.h (require_char_ws): New declaration.
13409         * read-rtl.c (read_conditions): Simplify using require_char_ws.
13410         (read_mapping): Likewise.
13411         (read_rtx_code): Likewise.
13412         (read_nested_rtx): Likewise.
13414 2016-05-10  James Norris  <jnorris@codesourcery.com>
13416         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13417         if offloading is enabled and -fopenacc or -fopenmp is specified.
13418         (CRTOFFLOADEND): Likewise.
13419         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13420         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13422 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
13424         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13425         gotoff_operand code paths.  Use copy_to_suggested_regs and
13426         expand_simple_binop where appropriate.  Cleanup.
13428 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13430         PR target/70799
13431         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13432         integer constants.
13433         (dimode_scalar_chain::vector_const_cost): New.
13434         (dimode_scalar_chain::compute_convert_gain): Handle constants.
13435         (dimode_scalar_chain::convert_op): Likewise.
13436         (dimode_scalar_chain::convert_insn): Likewise.
13438 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13440         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13441         unary operation, not a binary one.
13443 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13445         PR middle-end/70877
13446         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13447         calls with type casted fndecl.
13449 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13451         PR tree-optimization/70786
13452         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
13453         * calls.c (initialize_argument_information): Bind bounds
13454         with corresponding args passed by reference.
13456 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
13458         PR target/70927
13459         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
13460         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
13461         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
13462         accordingly.
13464 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13466         PR target/70963
13467         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
13468         code for a zero scale factor.
13469         (vsx_xvcvdpuxds_scale): Likewise.
13471 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13473         * diagnostic-show-locus.c (layout::layout): Call show_ruler
13474         if show_ruler_p was set on the context.
13475         (layout::show_ruler): New method.
13476         * diagnostic.h (struct diagnostic_context): Add field
13477         "show_ruler_p".
13479 2016-05-10  Richard Biener  <rguenther@suse.de>
13481         PR tree-optimization/71039
13482         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
13483         (chk_uses): New function.
13484         (propagate_with_phi): Verify we can safely replicate the lhs of an
13485         aggregate assignment on all incoming edges.
13487 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
13489         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
13490         Forward declare.
13491         (rx_atomic_sequence): New class.
13492         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
13493         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
13494         non-inline.
13495         (rx_atomic_sequence::rx_atomic_sequence,
13496         rx_atomic_sequence::~rx_atomic_sequence): New functions.
13497         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
13498         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
13499         CTRLREG_INTB): New constants.
13500         (FETCHOP): New code iterator.
13501         (fethcop_name, fetchop_name2): New iterator code attributes.
13502         (QIHI): New mode iterator.
13503         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
13504         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
13505         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
13507 2016-05-10  Martin Liska  <mliska@suse.cz>
13509         * tree-inline.c (remap_dependence_clique): Do not remap
13510         debugging statements.
13512 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13514         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
13515         ("*fixuns_truncdfdi2_z13")
13516         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
13517         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
13518         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
13520 2016-05-10  Richard Biener  <rguenther@suse.de>
13522         PR tree-optimization/70497
13523         PR tree-optimization/28367
13524         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
13525         split out from ...
13526         (visit_reference_op_load): ... here.
13527         (vn_reference_lookup_3): Use it to handle subreg-like accesses
13528         with simplified BIT_FIELD_REFs.
13529         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
13530         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
13531         correctly.
13533 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13535         * dwarf2out.c (add_abstract_origin_attribute): Adjust
13536         documentation comment.  For BLOCK nodes, add a
13537         DW_AT_abstract_origin attribute that points to the DIE generated
13538         for the origin BLOCK.
13539         (gen_lexical_block_die): Call add_abstract_origin_attribute for
13540         blocks from inlined functions.
13542 2016-05-10  Alan Modra  <amodra@gmail.com>
13544         PR target/70947
13545         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
13546         regrename modifying insns saving lr before __morestack call.
13547         * config/rs6000/rs6000.md (split_stack_return): Similarly for
13548         insns restoring lr after __morestack call.
13550 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
13552         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
13553         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
13554         expanders.
13555         * config/i386/sse.md (vec_interleave_high<mode>,
13556         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
13557         <avx512>_vpermt2var<mode>3_maskz): Likewise.
13559 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13561         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
13562         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
13563         parallel reassociation for power8 and forward.
13565 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
13567         * config/i386/i386.md (absneg splitters with general regs): Use
13568         general_reg_operand predicate.
13569         (btsq peephole2): Use x86_64_immediate_operand to check if new
13570         value is suitable for immediate operand.  Generate emitted insn
13571         using RTL expressions.
13572         (btcq peephole2): Ditto.
13573         (btrq peephole2): Ditto.  Generate correct immediate operand
13574         for AND masking.
13576 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13578         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
13579         bitpos.
13581 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13583         * tree-affine.c (wide_int_constant_multiple_p): Add missing
13584         pointer dereference.
13586 2016-05-09  Richard Biener  <rguenther@suse.de>
13588         PR tree-optimization/70985
13589         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
13590         op0 isn't a gimple register.
13592 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
13594         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
13595         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
13596         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
13597         (i6400_fpu_mult): New cpu units.
13598         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
13599         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
13600         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
13601         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
13602         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
13603         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
13604         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
13605         (i6400_msa_long_float4, i6400_msa_long_float5)
13606         (i6400_msa_long_float8, i6400_msa_fdiv_df)
13607         (i6400_msa_fdiv_sf): New reservations.
13608         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
13609         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
13610         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
13611         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
13612         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
13613         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
13614         (msa_short_cmp, msa_short_float2, msa_short_logic3)
13615         (msa_short_store4, msa_long_load, msa_short_store)
13616         (msa_long_logic, msa_long_float2, msa_long_float4)
13617         (msa_long_float5, msa_long_float8, msa_long_mult)
13618         (msa_long_fdiv, msa_long_div): New reservations.
13620 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
13621             Sameera Deshpande  <sameera.deshpande@imgtec.com>
13622             Matthew Fortune  <matthew.fortune@imgtec.com>
13623             Graham Stott  <graham.stott@imgtec.com>
13624             Chao-ying Fu  <chao-ying.fu@imgtec.com>
13626         * config.gcc: Add MSA header file for mips*-*-* target.
13627         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
13628         (Ubv8i, Urv8):  New constraints.
13629         * config/mips/mips-ftypes.def: Add function types for MSA
13630         builtins.
13631         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
13632         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
13633         * config/mips/mips-msa.md: New file.
13634         * config/mips/mips-protos.h
13635         (mips_split_128bit_const_insns): New prototype.
13636         (mips_msa_idiv_insns): Likewise.
13637         (mips_split_128bit_move): Likewise.
13638         (mips_split_128bit_move_p): Likewise.
13639         (mips_split_msa_copy_d): Likewise.
13640         (mips_split_msa_insert_d): Likewise.
13641         (mips_split_msa_fill_d): Likewise.
13642         (mips_expand_msa_branch): Likewise.
13643         (mips_const_vector_same_val_p): Likewise.
13644         (mips_const_vector_same_bytes_p): Likewise.
13645         (mips_const_vector_same_int_p): Likewise.
13646         (mips_const_vector_shuffle_set_p): Likewise.
13647         (mips_const_vector_bitimm_set_p): Likewise.
13648         (mips_const_vector_bitimm_clr_p): Likewise.
13649         (mips_msa_vec_parallel_const_half): Likewise.
13650         (mips_msa_output_division): Likewise.
13651         (mips_ldst_scaled_shift): Likewise.
13652         (mips_expand_vec_cond_expr): Likewise.
13653         * config/mips/mips.c (enum mips_builtin_type): Add
13654         MIPS_BUILTIN_MSA_TEST_BRANCH.
13655         (mips_gen_const_int_vector_shuffle): New prototype.
13656         (mips_const_vector_bitimm_set_p): New function.
13657         (mips_const_vector_bitimm_clr_p): Likewise.
13658         (mips_const_vector_same_val_p): Likewise.
13659         (mips_const_vector_same_bytes_p): Likewise.
13660         (mips_const_vector_same_int_p): Likewise.
13661         (mips_const_vector_shuffle_set_p): Likewise.
13662         (mips_symbol_insns): Forbid loading symbols via immediate for
13663         MSA.
13664         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
13665         stores.
13666         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
13667         MSA.
13668         (mips_lx_address_p): Add support load indexed address for MSA.
13669         (mips_address_insns): Add calculation of instructions needed for
13670         stores and loads for MSA.
13671         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
13672         CONST_VECTOR for MSA and let it fall through.
13673         (mips_ldst_scaled_shift): New function.
13674         (mips_subword_at_byte): Likewise.
13675         (mips_msa_idiv_insns): Likewise.
13676         (mips_legitimize_move): Validate MSA moves.
13677         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
13678         calculation of costs for MSA division.
13679         (mips_split_move_p): Check if MSA moves need splitting.
13680         (mips_split_move): Split MSA moves if necessary.
13681         (mips_split_128bit_move_p): New function.
13682         (mips_split_128bit_move): Likewise.
13683         (mips_split_msa_copy_d): Likewise.
13684         (mips_split_msa_insert_d): Likewise.
13685         (mips_split_msa_fill_d): Likewise.
13686         (mips_output_move): Handle MSA moves.
13687         (mips_expand_msa_branch): New function.
13688         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
13689         Reinstate 'y' modifier.
13690         (mips_file_start): Add MSA .gnu_attribute.
13691         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
13692         FPRs.
13693         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
13694         (mips_class_max_nregs): Add register size for MSA supported mode.
13695         (mips_cannot_change_mode_class): Allow conversion between MSA
13696         vector modes and TImode.
13697         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
13698         instruction.
13699         (mips_secondary_reload_class): Force MSA loads/stores via memory.
13700         (mips_preferred_simd_mode): Add preffered modes for MSA.
13701         (mips_vector_mode_supported_p): Add MSA supported modes.
13702         (mips_autovectorize_vector_sizes): New function.
13703         (mips_msa_output_division): Likewise.
13704         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
13705         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
13706         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
13707         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
13708         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
13709         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
13710         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
13711         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
13712         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
13713         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
13714         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
13715         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
13716         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
13717         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
13718         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
13719         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
13720         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
13721         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
13722         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
13723         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
13724         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
13725         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
13726         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
13727         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
13728         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
13729         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
13730         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
13731         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
13732         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
13733         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
13734         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
13735         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
13736         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
13737         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
13738         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
13739         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
13740         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
13741         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
13742         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
13743         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
13744         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
13745         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
13746         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
13747         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
13748         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13749         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13750         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13751         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13752         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13753         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13754         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13755         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13756         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
13757         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
13758         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
13759         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
13760         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
13761         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
13762         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
13763         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
13764         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
13765         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
13766         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
13767         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
13768         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
13769         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
13770         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
13771         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
13772         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
13773         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
13774         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
13775         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
13776         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
13777         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
13778         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
13779         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
13780         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
13781         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
13782         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
13783         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
13784         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
13785         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
13786         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
13787         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
13788         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
13789         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
13790         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
13791         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
13792         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
13793         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
13794         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
13795         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
13796         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
13797         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
13798         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
13799         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
13800         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
13801         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
13802         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
13803         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
13804         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
13805         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
13806         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
13807         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
13808         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
13809         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
13810         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
13811         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
13812         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
13813         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
13814         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
13815         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
13816         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
13817         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
13818         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
13819         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
13820         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
13821         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
13822         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
13823         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
13824         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
13825         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
13826         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
13827         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
13828         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
13829         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
13830         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
13831         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
13832         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
13833         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
13834         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
13835         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
13836         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
13837         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
13838         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
13839         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
13840         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
13841         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
13842         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
13843         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
13844         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
13845         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
13846         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
13847         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
13848         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
13849         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
13850         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
13851         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
13852         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
13853         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
13854         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
13855         move_v builtins.
13856         (mips_get_builtin_decl_index): New array.
13857         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
13858         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
13859         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
13860         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
13861         (mips_init_builtins): Initialize mips_get_builtin_decl_index
13862         array.
13863         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13864         hook.
13865         (mips_expand_builtin_insn): Prepare operands for
13866         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
13867         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
13868         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
13869         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
13870         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
13871         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
13872         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
13873         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
13874         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
13875         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
13876         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
13877         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
13878         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
13879         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
13880         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
13881         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
13882         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
13883         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
13884         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
13885         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
13886         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
13887         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
13888         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
13889         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
13890         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
13891         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
13892         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
13893         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
13894         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
13895         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
13896         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
13897         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
13898         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
13899         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
13900         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
13901         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
13902         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
13903         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
13904         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
13905         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
13906         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
13907         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
13908         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
13909         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
13910         These are set implicitly and an error is reported if overridden.
13911         (mips_expand_builtin_msa_test_branch): New function.
13912         (mips_expand_msa_shuffle): Likewise.
13913         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
13914         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
13915         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
13916         (mips_expand_vec_unpack): Add support for MSA.
13917         (mips_expand_vector_init): Likewise.
13918         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
13919         instead of const0_rtx.
13920         (mips_msa_vec_parallel_const_half): New function.
13921         (mips_gen_const_int_vector): Likewise.
13922         (mips_gen_const_int_vector_shuffle): Likewise.
13923         (mips_expand_msa_cmp): Likewise.
13924         (mips_expand_vec_cond_expr): Likewise.
13925         * config/mips/mips.h
13926         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
13927         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
13928         specified.
13929         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
13930         (ISA_HAS_MSA): New macro.
13931         (UNITS_PER_MSA_REG): Likewise.
13932         (BITS_PER_MSA_REG): Likewise.
13933         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
13934         (MSA_REG_FIRST): New macro.
13935         (MSA_REG_LAST): Likewise.
13936         (MSA_REG_NUM): Likewise.
13937         (MSA_REG_P): Likewise.
13938         (MSA_REG_RTX_P): Likewise.
13939         (MSA_SUPPORTED_MODE_P): Likewise.
13940         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
13941         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
13942         * config/mips/mips.md: Include mips-msa.md.
13943         (alu_type): Add simd_add.
13944         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
13945         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
13946         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
13947         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
13948         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
13949         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
13950         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
13951         simd_move, simd_load, simd_store.  Choose "multi" for moves
13952         for "qword_mode".
13953         (qword_mode): New attribute.
13954         (insn_count): Add instruction count for quad moves.
13955         Increase the count for MIPS SIMD division.
13956         (UNITMODE): Add UNITMODEs for vector types.
13957         (addsub): New code iterator.
13958         * config/mips/mips.opt (mmsa): New option.
13959         * config/mips/msa.h: New file.
13960         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
13961         specified.
13962         * config/mips/mti-linux.h: Likewise.
13963         * config/mips/predicates.md
13964         (const_msa_branch_operand): New constraint.
13965         (const_uimm3_operand): Likewise.
13966         (const_uimm4_operand): Likewise.
13967         (const_uimm5_operand): Likewise.
13968         (const_uimm8_operand): Likewise.
13969         (const_imm5_operand): Likewise.
13970         (aq10b_operand): Likewise.
13971         (aq10h_operand): Likewise.
13972         (aq10w_operand): Likewise.
13973         (aq10d_operand): Likewise.
13974         (const_m1_operand): Likewise.
13975         (reg_or_m1_operand): Likewise.
13976         (const_exp_2_operand): Likewise.
13977         (const_exp_4_operand): Likewise.
13978         (const_exp_8_operand): Likewise.
13979         (const_exp_16_operand): Likewise.
13980         (const_vector_same_val_operand): Likewise.
13981         (const_vector_same_simm5_operand): Likewise.
13982         (const_vector_same_uimm5_operand): Likewise.
13983         (const_vector_same_uimm6_operand): Likewise.
13984         (const_vector_same_uimm8_operand): Likewise.
13985         (par_const_vector_shf_set_operand): Likewise.
13986         (reg_or_vector_same_val_operand): Likewise.
13987         (reg_or_vector_same_simm5_operand): Likewise.
13988         (reg_or_vector_same_uimm6_operand): Likewise.
13989         * doc/extend.texi (MIPS SIMD Architecture Functions): New
13990         section.
13991         * doc/invoke.texi (-mmsa): Document new option.
13993 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13995         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
13996         * configure: Regenerate.
13997         * config.in: Regenerate.
13998         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
13999         on -fvtable-verify.
14000         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
14001         (ENDFILE_VTV_SPEC): Define.
14003 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
14005         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
14006         registers in all interrupt handlers if necessary.
14007         (rl78_option_override): Add warning.
14008         (MUST_SAVE_MDUC_REGISTERS): New macro.
14009         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
14010         * config/rl78/rl78.c (check_mduc_usage): New function.
14011         (mduc_regs): New structure to hold MDUC register data.
14012         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
14013         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
14014         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
14015         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
14016         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
14017         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
14019 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
14021         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
14022         (tree-ssa-loop-niter.h): Ditto.
14023         (idx_within_array_bound, ref_within_array_bound): New functions.
14024         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
14025         Factor out check on writable base object to ...
14026         (base_object_writable): ... here.
14028 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14030         * config/arm/arm.md (probe_stack): Add modes to set source
14031         and destination.
14033 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
14035         * regrename.c (base_reg_class_for_rename): New static function.
14036         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
14038 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
14040         * cgraph.c (thunk_adjust): Export.
14041         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
14042         * cgraphunit.c (thunk_adjust): Export.
14043         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
14044         thunks.
14045         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
14046         inlinable.
14047         * tree-inline.c (expand_call_inline): Expand thunks inline.
14049 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
14051         PR target/70998
14052         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
14053         (*sse2_vd_cvtss2sd): Ditto.
14054         * config/i386/i386.md
14055         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
14056         Generate *sse2_vd_cvtsd2ss pattern.
14057         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
14058         Generate *sse2_vd_cvtss2sd pattern.
14060 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14062         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
14063         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
14064         users.
14066 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14068         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
14069         * config/sh/sh.c: Define and declare variables on first use throughout
14070         the file.
14071         (current_function_interrupt): Change to bool type.
14072         (frame_insn): Rename to emit_frame_insn and update users.
14073         (push_regs): Use bool for 'interrupt_handler' argument.
14074         (save_schedule_s): Remove.
14075         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
14076         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
14077         targetm.asm_out.unaligned_op.di.
14078         (gen_far_branch): Remove redundant forward declaration.
14079         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
14080         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
14081         (sh_set_return_address, sh_function_ok_for_sibcall,
14082         scavenge_reg): Update comments.
14083         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
14084         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
14085         (sh_attr_renesas_p): Remove unnecessary parentheses.
14086         (branch_dest): Simplify.
14087         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
14088         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
14089         (CUMULATIVE_ARGS): Change macro to typedef.
14090         (current_function_interrupt): Change to bool type.
14091         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
14092         Surround with __cplusplus ifdef.
14093         (sh_compare_op0, sh_compare_op1): Remove.
14094         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
14096 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
14098         * config/arm/arm.md: (arch): Add neon.
14099         (arch_enabled): Return yes for arch neon when TARGET_NEON.
14100         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
14101         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
14102         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
14103         attributes for alt renumbering.  Mark alt 3 as non-predicable.
14104         (thumb2_movdf_vfp): Likewise.
14106 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
14108         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
14109         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
14110         (*andqi_1): Add preferred_for_speed attribute to disparage
14111         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
14112         (*<code>qi_1): Ditto.
14113         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
14114         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
14115         (*ashlqi3_1): Ditto.
14116         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
14117         Add preferred_for_size attribute to disparage alternative 0 and
14118         preferred_for_speed attribute to disparage alternative 1 for
14119         TARGET_PARTIAL_REG_STALL targets.
14121 2016-05-07  Tom de Vries  <tom@codesourcery.com>
14123         PR tree-optimization/70956
14124         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
14125         def.
14127 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
14129         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
14130         * config/sh/sh.c (sh_cbranch_distance): Implement it.
14131         * config/sh/sh.md (branch_zero): Remove define_attr.
14132         (define_delay): Disable delay slot if branch distance is one insn.
14134 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14136         * config/i386/i386.md (LEAMODE): New mode attribute.
14137         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
14138         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
14139         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
14140         operand 2 predicate.
14141         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
14142         (*lea<mode>_general_3): Ditto.
14143         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
14145 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14147         * genmddump.c (main): Convert argv from char ** to const char **.
14149 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14151         * coretypes.h (OVERRIDE): New macro.
14152         (FINAL): New macro.
14154 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
14156         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
14157         allow coalescing if the types are compatible.
14159 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14161         * pass_manager.h (pass_manager::register_pass_name): New method.
14162         (pass_manager::get_pass_by_name): New method.
14163         (pass_manager::create_pass_tab): New method.
14164         (pass_manager::m_name_to_pass_map): New field.
14165         * passes.c (name_to_pass_map): Delete global in favor of field
14166         "m_name_to_pass_map" of pass_manager.
14167         (register_pass_name): Rename from a function to...
14168         (pass_manager::register_pass_name): ...this method, updating
14169         for renaming of global "name_to_pass_map" to field
14170         "m_name_to_pass_map".
14171         (create_pass_tab): Rename from a function to...
14172         (pass_manager::create_pass_tab): ...this method, updating
14173         for renaming of global "name_to_pass_map" to field.
14174         (get_pass_by_name): Rename from a function to...
14175         (pass_manager::get_pass_by_name): ...this method.
14176         (enable_disable_pass): Convert use of get_pass_by_name to
14177         a method call, locating the pass_manager singleton.
14179 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14181         * genattr-common.c (main): Convert argv from char ** to const char **.
14182         * genattr.c (main): Likewise.
14183         * genattrtab.c (main): Likewise.
14184         * genautomata.c (initiate_automaton_gen): Likewise.
14185         (main): Likewise.
14186         * gencodes.c (main): Likewise.
14187         * genconditions.c (main): Likewise.
14188         * genconfig.c (main): Likewise.
14189         * genconstants.c (main): Likewise.
14190         * genemit.c (main): Likewise.
14191         * genenums.c (main): Likewise.
14192         * genextract.c (main): Likewise.
14193         * genflags.c (main): Likewise.
14194         * genmddeps.c (main): Likewise.
14195         * genopinit.c (main): Likewise.
14196         * genoutput.c (main): Likewise.
14197         * genpeep.c (main): Likewise.
14198         * genpreds.c (main): Likewise.
14199         * genrecog.c (main): Likewise.
14200         * gensupport.c (init_rtx_reader_args_cb): Likewise.
14201         (init_rtx_reader_args): Likewise.
14202         * gensupport.h (init_rtx_reader_args_cb): Likewise.
14203         (init_rtx_reader_args): Likewise.
14204         * gentarget-def.c (main): Likewise.
14205         * read-md.c (read_md_files): Likewise.
14206         * read-md.h (read_md_files): Likewise.
14208 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14210         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
14211         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
14212         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
14213         Remove unused predicate.
14214         (register_and_not_fp_reg_operand): Ditto.
14216 2016-05-06  Martin Liska  <mliska@suse.cz>
14218         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
14219         instead of vec as the vector is local to the function.
14221 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14223         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
14224         avx512bw alternative.
14226         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
14227         before the ashr<mode>3 pattern.
14229         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
14230         v instead of x in vex or maybe_vex alternatives, use
14231         maybe_evex instead of vex in prefix.
14233         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
14234         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
14235         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
14236         in vex or maybe_vex alternatives, use maybe_evex instead of vex
14237         in prefix.
14239         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
14240         v instead of x in vex or maybe_vex alternatives, use
14241         maybe_evex instead of vex in prefix.
14243         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
14244         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
14245         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
14246         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
14247         alternatives, use maybe_evex instead of vex in prefix.
14249         * config/i386/sse.md (vec_interleave_lowv4sf,
14250         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
14251         v instead of x in vex or maybe_vex alternatives, use
14252         maybe_evex instead of vex in prefix.
14254         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
14255         v instead of x in vex or maybe_vex alternatives, use
14256         maybe_evex instead of vex in prefix.
14258         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
14259         v constraint instead of x.
14261 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
14263         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
14264         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
14265         equality first.
14267 2016-05-06  Richard Biener  <rguenther@suse.de>
14269         PR tree-optimization/70948
14270         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14271         Properly clobber all fields of va_list for __builtin_va_start.
14273 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
14275         PR debug/70935
14276         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
14277         loop latch destination.
14279 2016-05-06  Martin Liska  <mliska@suse.cz>
14281         * tree-ssa-uninit.c: Apply manual changes
14282         to the GNU coding style.
14283         (prune_uninit_phi_opnds): Rename from
14284         prune_uninit_phi_opnds_in_unrealizable_paths.
14286 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14288         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
14289         mspace): Remove deprecated options.
14290         * doc/invoke.texi (SH options): Remove -mspace.
14292 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14294         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
14296 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14298         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
14299         corresponding combine split pattern.
14301 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14303         PR target/58219
14304         * config/sh/predicates.md (long_displacement_mem_operand): New.
14305         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
14306         Add movi20, movi20s alternatives.  Adjust length attribute for
14307         alternatives.
14308         (movsi_ie): Allow for any FPU.  Adjust length attribute for
14309         alternatives.
14310         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
14311         attribute for alternatives.
14312         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
14313         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
14314         length attribute for alternatives.
14316 2016-05-06  Richard Biener  <rguenther@suse.de>
14318         PR tree-optimization/70960
14319         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
14321 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14323         PR target/52933
14324         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
14325         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
14327 2016-05-06  Marek Polacek  <polacek@redhat.com>
14329         PR sanitizer/70875
14330         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
14332 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14334         PR target/54089
14335         * config/sh/sh.md (*rotcr): Add another variant.
14337 2016-05-06  Richard Biener  <rguenther@suse.de>
14339         PR middle-end/70931
14340         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
14342 2016-05-06  Richard Biener  <rguenther@suse.de>
14344         PR middle-end/70941
14345         * fold-const.c (split_tree): Always convert to the original type
14346         before negating.
14348 2016-05-06  Richard Biener  <rguenther@suse.de>
14350         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
14351         (fwprop_addr): Likewise.
14353 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14355         PR target/70873
14356         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14357         New prototype.
14358         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14359         * config/i386/i386.md (push mem splitter): Use find_constant_src in
14360         the splitter condition.
14361         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14362         the splitter condition.
14363         (FP float_extend load splitter): Ditto.
14365 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
14367         * config/i386/i386.md (peehole2 patterns): Change true_regnum
14368         to REGNO in all peephole2 patterns.
14369         (post-reload splitters): Change true_regnum to REGNO in
14370         post-reload splitters.
14371         (zero_extend splitters): Use general_reg_operand and
14372         nonimmediate_gr_operand predicates.
14374 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
14376         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14377         v constraint instead of x.
14379 2016-05-05  Alan Modra  <amodra@gmail.com>
14381         PR target/68662
14382         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14383         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
14384         TARGET_NO_FP_IN_TOC for -mrelocatable.
14385         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14386         TARGET_RELOCATABLE test.
14387         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14388         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14389         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14390         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14391         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14392         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14393         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14394         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14395         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14396         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14397         Likewise.
14398         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14399         (rs6000_stack_info): Likewise.
14400         (rs6000_elf_asm_out_constructor): Likewise.
14401         (rs6000_elf_asm_out_destructor): Likewise.
14402         (rs6000_elf_declare_function_name): Likewise.
14403         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14404         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14405         Don't define.
14407 2016-05-05  Alan Modra  <amodra@gmail.com>
14409         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14411 2016-05-05  Alan Modra  <amodra@gmail.com>
14413         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14414         out-of-line gpr restore for one or two regs if that would add
14415         a save of lr.
14417 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
14419         PR target/70873
14420         * config/i386/i386.md
14421         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14422         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
14423         as operand 0 predicate.
14424         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14425         Ditto.
14426         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14427         Ditto.  Emit the pattern using RTX.
14429         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14430         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
14431         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
14432         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14433         Ditto.
14434         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14435         sse_reg_operand as operand 0 predicate.
14437         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14438         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
14439         instead of gen_rtx_REG.
14440         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14441         Ditto.
14443 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14445         * function.c (emit_use_return_register_into_block): Delete.
14446         (gen_return_pattern): Delete.
14447         (emit_return_into_block): Delete.
14448         (active_insn_between): Delete.
14449         (convert_jumps_to_returns): Delete.
14450         (emit_return_for_exit): Delete.
14451         (thread_prologue_and_epilogue_insns): Delete all code dealing with
14452         simple_return for shrink-wrapped blocks.
14453         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
14454         end of blocks that need one.
14455         (get_unconverted_simple_return): Delete.
14456         (convert_to_simple_return): Delete.
14457         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
14458         (convert_to_simple_return): Ditto.
14460 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14462         * cfgcleanup.c (bb_is_just_return): New function.
14463         (try_optimize_cfg): Simplify jumps to return, branches to return,
14464         and branches around return.
14466 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14468         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
14469         branch to a return.
14471 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14473         PR c++/70906
14474         PR c++/70933
14475         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
14476         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
14477         assert flags & OEP_HASH_CHECK, instead of asserting it
14478         never happens.  Handle TARGET_EXPR.
14479         * fold-const.c (operand_equal_p): For hash verification,
14480         or in OEP_HASH_CHECK into flags.
14482 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14484         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
14485         comment.
14486         (compute_samebase_partition_bases): Fix typo.
14488 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14490         * config/i386/sse.md (vec_interleave_highv8sf,
14491         vec_interleave_lowv8sf, vec_interleave_highv4df,
14492         vec_interleave_lowv4df): Remove constraints from expanders.
14494         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
14496 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14498         * tree-inline.c (expand_call_inline): Fix path dealing with
14499         making lhs of call statement undefined.
14501 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14503         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14504         Check availability on NODE, too.
14505         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
14506         (cgraph_node::call_for_symbol_and_aliases): Likewise.
14507         (varpool_node::call_for_symbol_and_aliase): Likewise.
14508         * ipa-pure-const.c (add_new_function): Analyze all bodies.
14509         (propagate_pure_const): Propagate across interposable functions, too.
14510         (skip_function_for_local_pure_const): Do not skip interposable bodies
14511         with aliases.
14512         (pass_local_pure_const::execute): Update.
14514 2016-05-04  Marek Polacek  <polacek@redhat.com>
14516         * doc/invoke.texi: Document -Wdangling-else.
14518 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14520         * config.gcc: Error out when conflicting multilib is detected.  Do not
14521         loop over multilibs since no combination is legal.
14523 2016-05-04  Alan Modra  <amodra@gmail.com>
14525         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
14526         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
14527         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14528         Align .toc.
14530 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
14532         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
14533         Clean up p5600 comments.
14535 2016-05-04  Richard Biener  <rguenther@suse.de>
14537         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
14538         constructor simplifications.
14539         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
14541 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
14543         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
14544         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
14545         result.set_rtx is null instead of aborting.
14546         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
14547         Always enable.
14548         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
14549         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
14550         *mov<mode>_store_postinc): New patterns.
14552 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
14554         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
14555         as commutative.  Check both conversions are NOP.
14556         ((A & B) OP (C & B)): Remove.
14558 2016-05-04  Alan Modra  <amodra@gmail.com>
14560         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
14562 2016-05-04  Alan Modra  <amodra@gmail.com>
14564         PR target/70866
14565         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
14566         when cr2,3,4 are all fixed regs.
14568 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
14570         PR rtl-optimization/57193
14571         * opts.c (default_options_table): Revert OPT_frename_registers change.
14572         * doc/invoke.texi (-frename-registers, -O2): Likewise.
14574 2016-05-03  Martin Sebor  <msebor@redhat.com>
14576         PR c++/66561
14577         * builtins.c (fold_builtin_FILE): New function.
14578         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
14579         (fold_builtin_0): Call them.
14580         * gimplify.c (gimplify_call_expr): Remove the handling of
14581         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
14583         PR c++/66561
14584         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
14585         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
14586         constants.
14588         PR c++/66639
14589         * doc/extend.texi (Function Names as Strings): Update __func__,
14590         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
14591         constants.
14593 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14594             Richard Biener  <rguenther@suse.de>
14596         PR tree-optimization/70916
14597         * tree-if-conv.c: Include cfganal.h.
14598         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
14599         and remove_fake_exit_edges around the optimization pass.
14601 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
14603         * cgraph.c (symbol_table::create_edge): Set inline_failed.
14604         (cgraph_edge::make_direct): Likewise.
14605         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
14606         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
14607         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
14608         (CIF_THUNK): New code.
14609         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
14610         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
14611         (compute_inline_parameters): Set inline_failed for thunks.
14612         (inline_analyze_function): Cleanup.
14613         * ipa-inline.c (can_inline_edge_p): Do not deal with
14614         call_stmt_cannot_inline_p.
14615         (can_early_inline_edge_p): Likewise.
14616         (early_inliner): Initialize inline_failed.
14617         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
14619 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
14621         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
14622         from nonimm_ssenomem_operand.
14623         (nonimm_ssenomem_operand): New predicate.
14624         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
14625         as operand 0 predicate.
14626         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
14627         Disable unsupported alternatives using "enabled" attribute.
14628         Use register_ssemem_operand as operand 0 predicate.
14629         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
14631 2016-05-03  Marek Polacek  <polacek@redhat.com>
14633         PR c/70859
14634         * input.c (expansion_point_location): New function.
14635         * input.h (expansion_point_location): Declare.
14637 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
14639         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
14640         occurence with frame_offset_ ones.
14642 2016-05-03  Alan Modra  <amodra@gmail.com>
14644         PR rtl-optimization/70890
14645         * ira.c (combine_and_move_insns): When moving def_insn, remove
14646         equivs on use_insn.
14648 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14650         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
14651         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
14652         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
14653         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
14655 2016-05-03  Alan Modra  <amodra@gmail.com>
14657         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
14658         for SAVE_MULTIPLE/STORE_MULTIPLE.
14660 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14662         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
14663         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
14665 2016-05-03  Richard Biener  <rguenther@suse.de>
14667         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
14668         default true.
14669         (gimplify_arg): Likewise.
14670         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
14671         re-writing the result to a decl if required.
14672         (internal_get_tmp_var): Add allow_ssa parameter
14673         and override into_ssa with it.
14674         (get_formal_tmp_var): Adjust.
14675         (get_initialized_tmp_var): Add allow_ssa parameter.
14676         (gimplify_arg): Add allow_ssa parameter and avoid generating
14677         SSA names for the result false.
14678         (gimplify_call_expr): If the call may return twice do not
14679         gimplify parameters into SSA.
14680         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
14681         (gimplify_modify_expr): Adjust assert.  For noreturn calls
14682         with a SSA name LHS adjust its def.
14683         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
14684         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
14685         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
14686         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
14687         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
14688         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
14689         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
14690         (optimize_target_teams): Do not allow SSA names for clause operands.
14691         (gimplify_expr): Likewise for where we mark the result addressable.
14692         * passes.def (pass_init_datastructures): Remove.
14693         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
14694         (rewrite_stmt): Likewise.
14695         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
14696         (replace_locals_op): Replace SSA names.
14697         (copy_gimple_seq_and_replace_locals): Init src_cfun.
14698         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
14699         * cgraph.c (release_function_body): Free CFG annotations only
14700         when we have a CFG.  Simplify.
14701         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
14702         force_gimple_operand instead of get_initialized_tmp_var.
14703         * tree-pass.h (make_pass_init_datastructures): Remove.
14704         * tree-ssa.c (execute_init_datastructures): Remove.
14705         (pass_data_init_datastructures): Likewise.
14706         (class pass_init_datastructures): Likewise.
14707         (make_pass_init_datastructures): Likewise.
14708         * omp-low.c (create_omp_child_function): Init SSA data structures.
14709         (grid_expand_target_grid_body): Likewise.
14710         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
14711         name before adding it to names_to_release.
14712         (remove_bb): Always release SSA defs.
14713         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
14714         before dereferencing it.
14715         * cgraphunit.c (init_lowered_empty_function): Always
14716         int SSA data structures.
14717         * tree-ssanames.c (release_defs): Remove assert that we are in
14718         SSA form.
14719         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
14721 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14722             Uros Bizjak  <ubizjak@gmail.com>
14724         PR rtl-optimization/70467
14725         * config/i386/predicates.md (x86_64_hilo_int_operand,
14726         x86_64_hilo_general_operand): New predicates.
14727         * config/i386/constraints.md (Wd): New constraint.
14728         * config/i386/i386.md (mode attr di): Use Wd instead of e.
14729         (general_hilo_operand): New mode attr.
14730         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
14731         instead of <general_operand>.
14732         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
14733         x86_64_hilo_general_operand instead of <general_operand>.
14735 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14737         PR tree-optimization/70916
14738         * tree-if-conv.c (constant_or_ssa_name): Removed.
14739         (fold_build_cond_expr): Use is_gimple_val instead of
14740         constant_or_ssa_name.
14742         PR tree-optimization/70916
14743         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
14744         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
14746         PR target/49244
14747         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
14748         (optimize_atomic_bit_test_and): New function.
14749         (pass_fold_builtins::execute): Use it.
14750         * optabs.def (atomic_bit_test_and_set_optab,
14751         atomic_bit_test_and_complement_optab,
14752         atomic_bit_test_and_reset_optab): New optabs.
14753         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
14754         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
14755         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
14756         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
14757         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
14758         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
14759         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
14760         * doc/md.texi (atomic_bit_test_and_set@var{mode},
14761         atomic_bit_test_and_complement@var{mode},
14762         atomic_bit_test_and_reset@var{mode}): Document.
14763         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
14764         atomic_bit_test_and_complement<mode>,
14765         atomic_bit_test_and_reset<mode>): New expanders.
14766         (atomic_bit_test_and_set<mode>_1,
14767         atomic_bit_test_and_complement<mode>_1,
14768         atomic_bit_test_and_reset<mode>_1): New insns.
14770 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
14772         PR rtl-optimization/70687
14773         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
14774         instead of unsigned HOST_WIDE_INT.
14776 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
14778         PR rtl-optimization/44281
14779         * hard-reg-set.h (struct target_hard_regs): New field
14780         x_fixed_nonglobal_reg_set.
14781         (fixed_nonglobal_reg_set): New macro.
14782         * reginfo.c (init_reg_sets_1): Initialize it.
14783         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
14784         of fixed_reg_set.
14785         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
14787 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
14789         PR tree-optimization/56541
14790         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
14791         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
14792         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
14793         (any_complicated_phi): new static variable.
14794         (aggressive_if_conv): delete.
14795         (if_convertible_phi_p): support phis with more than two arguments.
14796         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
14797         critical pred edges.
14798         (ifcvt_split_critical_edges): support phis with more than two
14799         arguments by checking new parameter.  only split critical edges
14800         if needed.
14801         (tree_if_conversion): handle simd pragma marked loop using new
14802         local variable aggressive_if_conv.  check any_complicated_phi.
14804 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
14806         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
14807         before using it.
14809 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
14811         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
14812         cbase.
14814 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
14816         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
14817         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
14818         define_insn_and_split.
14819         (mulsi3_i): New define_insn_and_split.
14820         (mulsi3_call): Convert to define_insn.
14821         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
14822         Remove constraints.
14824 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14826         * machmode.h (mode_complex): Add support to give the complex mode
14827         for a given mode.
14828         (GET_MODE_COMPLEX_MODE): Likewise.
14829         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
14830         stored by build_complex_type and gfc_build_complex_type instead of
14831         trying to figure out the appropriate mode based on the size. Raise
14832         an assertion error, if the type was not set.
14833         * genmodes.c (struct mode_data): Add field for the complex type of
14834         the given type.
14835         (blank_mode): Likewise.
14836         (make_complex_modes): Remember the complex mode created in the
14837         base type.
14838         (emit_mode_complex): Write out the mode_complex array to map a
14839         type mode to the complex version.
14840         (emit_insn_modes_c): Likewise.
14841         * tree.c (build_complex_type): Set the complex type to use before
14842         calling layout_type.
14843         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
14844         support for __float128 complex datatypes.
14845         (rs6000_hard_regno_mode_ok): Likewise.
14846         (rs6000_setup_reg_addr_masks): Likewise.
14847         (rs6000_complex_function_value): Likewise.
14848         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
14849         __float128 and __ibm128 complex.
14850         (FLOAT128_IBM_P): Likewise.
14851         (ALTIVEC_ARG_MAX_RETURN): Likewise.
14852         * doc/extend.texi (Additional Floating Types): Document that
14853         -mfloat128 must be used to enable __float128.  Document complex
14854         __float128 and __ibm128 support.
14856 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
14858         PR target/49244
14859         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
14860         char/short arguments promoted to int because of promote_prototypes.
14862 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
14864         * config/i386/predicates.md (register_ssemem_operand): New predicate.
14865         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
14866         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
14867         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
14868         alternatives using "enabled" attribute.  Use register_ssemem_operand
14869         as operand 1 predicate.
14870         (*cmpi<unord>xf_i387): Split XFmode pattern from
14871         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
14872         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
14873         *absneg<mode>2_i387.  Disable unsupported alternatives using
14874         "enabled" attribute.
14875         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
14877 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
14879         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
14880         marker.
14881         (oacc_loop_process): Check mask for loop termination.
14883 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
14885         * cif-code.def (CIF_THUNK): Add.
14886         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
14887         accidental change.
14889 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
14891         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
14892         (dump_inline_summary): Dump it.
14893         (fp_expression_p): New predicate.
14894         (estimate_function_body_sizes): Use it.
14895         (inline_merge_summary): Merge fp_expressions.
14896         (inline_read_section): Read fp_expressions.
14897         (inline_write_summary): Write fp_expressions.
14898         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
14899         codegen boundary if either caller or callee is !fp_expressions.
14900         * ipa-inline.h (inline_summary): Add fp_expressions.
14901         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
14902         to fp_expressions be sure the fp generation flags are updated.
14904 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
14906         PR rtl-optimization/70467
14907         * cse.c (cse_insn): Handle no-op MEM moves after folding.
14909         PR rtl-optimization/70467
14910         * ipa-pure-const.c (check_call): Handle internal calls even in
14911         ipa mode like in local mode.
14913 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14915         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
14917 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
14919         * match.pd (X u< X, X u> X): New transformations.
14921 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
14923         * flag-types.h (enum warn_strict_overflow_code): Move ...
14924         * coretypes.h: ... here.
14925         * fold-const.h (fold_overflow_warning): Declare.
14926         * fold-const.c (fold_overflow_warning): Make non-static.
14927         (fold_comparison): Move the transformation of X +- C1 CMP C2
14928         into X CMP C2 -+ C1 ...
14929         * match.pd: ... here.
14930         * gimple-fold.c (fold_stmt_1): Protect with
14931         fold_defer_overflow_warnings.
14933 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
14935         * omp-low.c (struct oacc_loop): Add 'inner' field.
14936         (new_oacc_loop_raw): Initialize it to zero.
14937         (oacc_loop_fixed_partitions): Initialize it.
14938         (oacc_loop_auto_partitions): Partition outermost loop to outermost
14939         available partitioning.
14941 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
14943         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
14944         register_operand.
14945         (umulsidi3): Likewise.
14946         (indirect_jump): Fix jump instruction assembly patterns.
14948 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
14950         PR target/70860
14951         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
14952         (nvptx_function_value): Assert non-NULL cfun.
14954 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
14956         PR rtl-optimization/70886
14957         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
14959         * cselib.h (rtx_equal_for_cselib_1): Declare.
14960         (rtx_equal_for_cselib_p: New inline function.
14961         * cselib.c (rtx_equal_for_cselib_p): Delete.
14962         (rtx_equal_for_cselib_1): Make public.
14964 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
14966         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
14967         (register_mixssei387nonimm_operand): Remove predicate.
14968         * config/i386/i386.md (*fop_<mode>_comm): Merge from
14969         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
14970         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
14971         for TARGET_MIX_SSE_I387 alternatives.
14972         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
14973         Disable unsupported alternatives using "enabled" attribute.  Use
14974         nonimm_ssenomem_operand as operand 1 predicate.  Also check
14975         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
14977 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
14979         * tree.c (cst_and_fits_in_hwi): Simplify.
14981 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
14983         * tree.h (wi::to_wide): New function.
14984         * expr.c (expand_expr_real_1): Use wi::to_wide.
14985         * fold-const.c (int_const_binop_1): Likewise.
14986         (extract_muldiv_1): Likewise.
14988 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
14990         * wide-int.h: Update offset_int and widest_int documentation.
14991         (WI_SIGNED_SHIFT_RESULT): New macro.
14992         (wi::binary_shift): Define signed_shift_result_type for
14993         shifts on offset_int- and widest_int-like types.
14994         (generic_wide_int): Support <<= and >>= if << and >> are supported.
14995         * tree.h (int_bit_position): Use shift operators instead of wi::
14996          shifts.
14997         * alias.c (adjust_offset_for_component_ref): Likewise.
14998         * expr.c (get_inner_reference): Likewise.
14999         * fold-const.c (fold_comparison): Likewise.
15000         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
15001         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
15002         * tree-dfa.c (get_ref_base_and_extent): Likewise.
15003         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15004         (stmt_kills_ref_p): Likewise.
15005         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
15006         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
15007         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15008         (ao_ref_init_from_vn_reference): Likewise.
15010 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
15012         * wide-int.h: Update offset_int and widest_int documentation.
15013         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
15014         (wi::binary_traits): Allow ordered comparisons between offset_int and
15015         offset_int, between widest_int and widest_int, and between either
15016         of these types and basic C types.
15017         (operator <, <=, >, >=): Define for the same combinations.
15018         * tree.h (tree_int_cst_lt): Use comparison operators instead
15019         of wi:: comparisons.
15020         (tree_int_cst_le): Likewise.
15021         * gimple-fold.c (fold_array_ctor_reference): Likewise.
15022         (fold_nonarray_ctor_reference): Likewise.
15023         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
15024         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
15025         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
15026         * tree-sra.c (completely_scalarize): Likewise.
15027         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
15028         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
15029         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
15030         (check_for_binary_op_overflow): Likewise.
15031         (search_for_addr_array): Likewise.
15032         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
15034 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15036         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
15037         (arc_save_restore): Likewise.
15038         (arc_dwarf_register_span): Likewise.
15039         (arc_output_pic_addr_const): Initialize suffix variable.
15041 2016-05-02  Martin Liska  <mliska@suse.cz>
15043         * symbol-summary.h (function_summary::function_summary):
15044         Remove checking assert for all cgraph nodes.
15045         (function_summary::get): Check summary_uid.
15046         (symtab_insertion): Check summary_uid.
15048 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15050         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
15051         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
15052         bmaskn instruction.
15053         (arc_dwarf_register_span): Remove enum keyword.
15054         (compact_memory_operand_p): New function.
15055         * config/arc/arc.h (reg_class): Add code density register classes.
15056         (REG_CLASS_NAMES): Likewise.
15057         (REG_CLASS_CONTENTS): Likewise.
15058         * config/arc/arc.md (*movqi_insn): Add code density instructions.
15059         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
15060         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
15061         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
15062         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
15063         constraints.
15064         (h, Rcd, Rsd, Rzd): New register constraints.
15065         (T): Use compact_memory_operand_p function.
15066         * config/arc/predicates.md (compact_load_memory_operand): Remove.
15068 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15070         * config/sh/sh.md (*negnegt, *movtt): Remove.
15072 2016-05-02  Marek Polacek  <polacek@redhat.com>
15073             Tom de Vries  <tom@codesourcery.com>
15075         PR tree-optimization/70700
15076         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
15077         bigger than FIRST_REF_NODE.
15079 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15081         PR target/52898
15082         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
15083         TARGET_CMPEQDI_T.
15084         (prepare_cbranch_operands): Don't use scratch register.  Assume that
15085         function is used when pseudos can be created.
15086         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
15087         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
15088         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
15089         define_expand.  Allow it only when pseudos can be created.
15090         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
15092 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
15094         * config/i386/constraints.md (BC): Only allow -1 operands.
15095         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
15096         Add "enabled" attribute.  Update XI mode attribute calculation.
15097         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
15098         (*movoi_internal_avx): Update XI mode attribute calculation.
15099         (*movti_internal): Ditto.
15101 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15103         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
15104         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
15106 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15108         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
15109         statement on instruction code.  Remove trailing spaces.
15110         (altivec_expand_stv_builtin): Likewise.
15112 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15114         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
15115         (TARGET_FPU_DOUBLE): Simplify.
15116         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
15117         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
15118         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
15119         with 'TARGET_FPU_DOUBLE'.
15120         * config/sh/sh.md: Likewise.
15122 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
15124         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
15125         SH_DIV_STR_FOR_SIZE): Remove.
15126         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
15127         SH_DIV_STR_FOR_SIZE): Remove.
15129 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15131         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
15132         logical_reg_operand): Delete.
15133         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
15134         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
15135         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
15136         match_operand and match_test.
15137         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
15138         variables on their first use.  Return bool values.
15139         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
15140         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
15141         arith_reg_operand for input operand.  Remove empty constraints.
15142         (xorsi3): Delete.
15143         (*xorsi3_compact): Rename to xorsi3.
15144         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
15145         (*zero_extend<mode>si2_disp_mem): Update comment.
15146         (mov_nop): Delete.
15148 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15150         * config/sh/t-sh: Remove SH5 support.
15151         * config.gcc: Likewise.
15152         * configure: Likewise.
15154 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15156         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
15158 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15160         * config/sh/sh.c (register_sh_passes, sh_option_override,
15161         sh_print_operand, prepare_move_operands,
15162         sh_can_follow_jump): Remove TARGET_SH1 checks.
15163         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
15164         PROMOTE_MODE): Likewise.
15165         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
15166         movdi): Likewise.
15168 2016-04-30  Alan Modra  <amodra@gmail.com>
15170         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
15171         restoring when fixed_reg_p, but allow out-of-line or stmw save.
15172         Check for user regs later to avoid unnecessary looping over regs.
15173         Merge user reg check with non-saved reg check.  Don't force
15174         inline VR restore when static chain used.
15175         (rs6000_frame_related): Omit eh_frame info for user regs when
15176         saving.
15177         (fixed_regs_p): Delete.
15179 2016-04-30  Alan Modra  <amodra@gmail.com>
15181         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
15182         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
15183         Update all uses.
15185 2016-04-30  Alan Modra  <amodra@gmail.com>
15187         PR target/69645
15188         * config/rs6000/rs6000.c (fixed_reg_p): New function.
15189         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
15190         Update all uses.
15192 2016-04-30  Alan Modra  <amodra@gmail.com>
15194         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15195         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
15196         flag_pic test for Darwin.
15198 2016-04-30  Alan Modra  <amodra@gmail.com>
15200         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
15201         throw_calls_crossed.
15202         (REG_FREQ_CALLS_CROSSED): Delete.
15203         (REG_N_THROWING_CALLS_CROSSED): Delete.
15204         * regstat.c (regstat_bb_compute_ri): Don't calculate
15205         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
15206         (dump_reg_info): Don't print call cross frequency.
15207         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
15208         and REG_N_THROWING_CALLS_CROSSED.
15210 2016-04-30  Alan Modra  <amodra@gmail.com>
15212         * regs.h (struct reg_info_t): Delete live_length.
15213         (REG_LIVE_LENGTH): Delete macro.
15214         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
15215         local_live, local_processed and local_live_last_luid params.
15216         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
15217         Formatting fixes.
15218         (regstat_compute_ri): Adjust for above.  Don't set
15219         REG_LIVE_LENGTH.
15220         (dump_reg_info): Don't print live length.
15221         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
15222         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
15223         Localize loop_depth var.
15225 2016-04-30  Alan Modra  <amodra@gmail.com>
15227         * ira.c (enum valid_equiv): New.
15228         (validate_equiv_mem): Return enum.
15229         (update_equiv_mem): Create replacement in more cases.
15230         (add_store_equivs): Update validate_equiv_mem call.
15232 2016-04-30  Alan Modra  <amodra@gmail.com>
15234         * ira.c (combine_and_move_insns): Rather than scanning insns,
15235         use DF infrastucture to find use and def insns.
15237 2016-04-30  Alan Modra  <amodra@gmail.com>
15239         ira.c (combine_and_move_insns): Move invariant conditions..
15240         (ira.c): ..to here.  Call combine_and_move_insns before
15241         add_store_equivs.  Call grow_reg_equivs later.  Allocate
15242         req_equiv later using max_reg_num() rather than global max_regno.
15243         (contains_replace_regs): Delete.
15244         (add_store_equivs): Remove contains_replace_regs test.
15246 2016-04-30  Alan Modra  <amodra@gmail.com>
15248         * ira.c (struct equiv_mem_data): New.
15249         (equiv_mem, equiv_mem_modified): Delete static vars.
15250         (validate_equiv_mem_from_store): Use "data" param to communicate..
15251         (validate_equiv_mem): ..from here.
15253 2016-04-30  Alan Modra  <amodra@gmail.com>
15255         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
15256         split out from..
15257         (update_reg_equivs): ..here.  Move allocation and freeing of
15258         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
15259         end_alias_analysis to..
15260         (ira): ..here.
15262 2016-04-30  Alan Modra  <amodra@gmail.com>
15264         * ira.c (pdx_subregs): Delete.
15265         (struct equivalence): Add pdx_subregs field.
15266         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
15267         pdx_subregs access.
15268         (update_equiv_regs): Don't create or free pdx_subregs.  Update
15269         pdx_subregs access.
15271 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15273         * config/rs6000/altivec.h: Change definitions of vec_xl and
15274         vec_xst.
15275         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
15276         (LD_ELEMREV_V2DI): New.
15277         (LD_ELEMREV_V4SF): New.
15278         (LD_ELEMREV_V4SI): New.
15279         (LD_ELEMREV_V8HI): New.
15280         (LD_ELEMREV_V16QI): New.
15281         (ST_ELEMREV_V2DF): New.
15282         (ST_ELEMREV_V2DI): New.
15283         (ST_ELEMREV_V4SF): New.
15284         (ST_ELEMREV_V4SI): New.
15285         (ST_ELEMREV_V8HI): New.
15286         (ST_ELEMREV_V16QI): New.
15287         (XL): New.
15288         (XST): New.
15289         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15290         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
15291         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
15292         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
15293         (altivec_expand_builtin): Add handling for
15294         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
15295         (rs6000_invalid_builtin): Add error-checking for
15296         RS6000_BTM_P9_VECTOR.
15297         (altivec_init_builtins): Define builtins used to implement vec_xl
15298         and vec_xst.
15299         (rs6000_builtin_mask_names): Define power9-vector.
15300         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
15301         (RS6000_BTM_P9_VECTOR): Define.
15302         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
15303         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
15304         (vsx_ld_elemrev_v2df): Likewise.
15305         (vsx_ld_elemrev_v4sf): Likewise.
15306         (vsx_ld_elemrev_v4si): Likewise.
15307         (vsx_ld_elemrev_v8hi): Likewise.
15308         (vsx_ld_elemrev_v16qi): Likewise.
15309         (vsx_st_elemrev_v2df): Likewise.
15310         (vsx_st_elemrev_v2di): Likewise.
15311         (vsx_st_elemrev_v4sf): Likewise.
15312         (vsx_st_elemrev_v4si): Likewise.
15313         (vsx_st_elemrev_v8hi): Likewise.
15314         (vsx_st_elemrev_v16qi): Likewise.
15315         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
15316         grammar.
15318 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
15320         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
15321         out into ...
15322         (simplify_control_stmt_condition_1): ... here.  Recurse into
15323         BIT_AND_EXPRs and BIT_IOR_EXPRs.
15325 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
15327         PR target/69810
15328         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
15329         (zero_extendqi<mode>2_dot): Revert earlier conversion from
15330         define_insn_and_split to define_insn.
15331         (zero_extendqi<mode>2_dot2): Same.
15332         (extendqi<mode>2_dot): Same.
15333         (extendqi<mode>2_dot2): Same.
15335 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15337         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
15338         (probe_stack): New expander.
15339         (probe_stack_<mode>): New insn pattern.
15341 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15343         * config/i386/i386.md
15344         (operations with memory inputs setting flags peephole2):
15345         Remove uneeded REG_P checks.  Cleanup pattern generation.
15347 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15349         * tree-vect-loop.c (vect_transform_loop): Fix
15350         nb_iterations_upper_bound computation for vectorized loop.
15352 2016-04-29  Marek Polacek  <polacek@redhat.com>
15353             Jakub Jelinek  <jakub@redhat.com>
15355         PR sanitizer/70342
15356         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15357         TARGET_EXPR_SLOT as a base.
15359 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
15361         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15362         with 'rCm2' constraints to limit possible immediate size.
15363         (*load_zeroextendqisi_update): Likewise.
15364         (*load_signextendqisi_update): Likewise.
15365         (*loadhi_update): Likewise.
15366         (*load_zeroextendhisi_update): Likewise.
15367         (*load_signextendhisi_update): Likewise.
15368         (*loadsi_update): Likewise.
15369         (*loadsf_update): Likewise.
15371 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15373         * config/i386/predicates.md (constm1_operand): Fix comparison.
15375 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15377         * testsuite/gcc.target/arc/ieee_eq.c: New test.
15379 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
15381         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15382         remaining SH5 related settings.
15383         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15384         shmedia_prepare_call_address): Delete.
15385         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15386         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15387         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15388         UNSUPPORTED_SH2A): Remove m5 checks.
15389         (sh_divide_strategy_e): Remove SH5 division strategies.
15390         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15391         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15393 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15395         * config/s390/s390.c (s390_rtx_costs): Update documentation.
15397 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15399         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15400         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15401         Change lder to ldr.
15402         * config/s390/vector.md ("mov<mode>"): Likewise.
15404 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
15406         * config/s390/constraints.md ("U", "W"): Invoke
15407         s390_mem_constraint with "ZR" and "ZT".
15408         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15409         addresses when using LRA.  Accept also short displacements for S
15410         and T constraints.  Do not check for long displacement target for
15411         S and T constraints.
15412         (s390_mem_constraint): Remove handling of U and W constraints.
15413         * config/s390/s390.md (various patterns): Remove the short
15414         displacement constraints (Q and R) if a long displacement
15415         constraint is present.  Add longdisp as required CPU capability.
15416         * config/s390/vector.md: Likewise.
15417         * config/s390/vx-builtins.md: Likewise.
15419 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15421         PR target/60040
15422         * reload1.c (reload): Call finish_spills before
15423         restarting reload loop. Skip select_reload_regs
15424         if update_eliminables_and_spill returns true.
15426 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15428         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15429         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15430         (umulhisi3_imm): Update predicates and constraint letters.
15431         (umulhisi3_reg): Declare instruction as commutative.
15432         * config/arc/constraints.md (J12, J16): New constraints.
15433         * config/arc/predicates.md (short_unsigned_const_operand): New
15434         predicate.
15435         (arc_short_operand): Likewise.
15436         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15438 2016-04-29  Richard Biener  <rguenther@suse.de>
15440         PR tree-optimization/13962
15441         PR tree-optimization/65686
15442         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15443         * tree-ssa-alias.c (ptrs_compare_unequal): New function
15444         using PTA to compare pointers.
15445         * match.pd: Add pattern for pointer equality compare simplification
15446         using ptrs_compare_unequal.
15448 2016-04-29  Richard Biener  <rguenther@suse.de>
15450         * stor-layout.c (layout_type): Do not build a pointer-to-element
15451         type for arrays.
15453 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15455         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
15456         Use SWI mode iterator.  Use general_reg_operand predicate.
15457         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
15458         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
15459         predicates.
15461 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
15463         PR middle-end/70843
15464         * fold-const.c (operand_equal_p): Don't verify hash value equality
15465         if arg0 == arg1.
15466         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
15467         and OMP_CLAUSE.
15469 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15471         PR target/70858
15472         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
15473         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
15474         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
15475         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
15476         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
15478 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15480         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
15481         to info.  Don't initialize separate fields to 0.  Clean up
15482         formatting a bit.
15484 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15486         * config/i386/i386.md (peephole2s for operations with memory inputs):
15487         Use SWI mode iterator.
15488         (peephole2s for operations with memory outputs): Ditto.
15489         Do not check for stack checking probe.
15491         (probe_stack): Remove expander.
15493 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15494             Andrew Burgess  <andrew.burgess@embecosm.com>
15496         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
15497         operands as 32-bits.
15499 2016-04-28  Jason Merrill  <jason@redhat.com>
15501         * gdbinit.in: Skip line-map.h.
15503 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15504             Andrew Burgess  <andrew.burgess@embecosm.com>
15506         * config/arc/arc.c (arc_conditional_register_usage): Take
15507         TARGET_RRQ_CLASS into account.
15508         (arc_print_operand): Support printing 'p' and 's' operands.
15509         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
15510         as 0.
15511         (TARGET_RRQ_CLASS): Define.
15512         (IS_POWEROF2_OR_0_P): Define.
15513         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
15514         alternatives.
15515         (*tst_movb): New define_insn.
15516         (*tst): Avoid recognition if it could prevent '*tst_movb'
15517         combination; replace c/CnL with c/Chs alternative.
15518         (*tst_bitfield_tst): New define_insn.
15519         (*tst_bitfield_asr): New define_insn.
15520         (*tst_bitfield): New define_insn.
15521         (andsi3_i): Add Rrq variant.
15522         (extzv): New define_expand.
15523         (insv): New define_expand.
15524         (*insv_i): New define_insn.
15525         (*movb): New define_insn.
15526         (*movb_signed): New define_insn.
15527         (*movb_high): New define_insn.
15528         (*movb_high_signed): New define_insn.
15529         (*movb_high_signed + 1): New define_split pattern.
15530         (*mrgb): New define_insn.
15531         (*mrgb + 1): New define_peephole2 pattern.
15532         (*mrgb + 2): New define_peephole2 pattern.
15533         * config/arc/arc.opt (mbitops): New option for nps400, uses
15534         TARGET_NPS_BITOPS_DEFAULT.
15535         * config/arc/constraints.md (q): Make register class conditional.
15536         (Rrq): New register constraint.
15537         (Chs): New constraint.
15538         (Clo): New constraint.
15539         (Chi): New constraint.
15540         (Cbf): New constraint.
15541         (Cbn): New constraint.
15542         (C18): New constraint.
15543         (Cbi): New constraint.
15545 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15547         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
15548         dst->popcount.
15549         (bitmap_intersection_of_preds): Ditto.
15550         (bitmap_union_of_succs): Ditto.
15551         (bitmap_union_of_preds): Ditto.
15552         * sbitmap.c (do_popcount): Delete.
15553         (BITMAP_DEBUGGING): Delete.
15554         (sbitmap_verify_popcount): Delete.
15555         (sbitmap_alloc): Don't initialize the popcount field.
15556         (sbitmap_alloc_with_popcount): Delete.
15557         (sbitmap_resize): Don't resize the popcount array.
15558         (sbitmap_vector_alloc): Don't initialize the popcount field.
15559         (bitmap_copy): Don't copy the popcount array.
15560         (bitmap_clear): Don't clear the popcount array.
15561         (bitmap_clear): Delete the popcount array handling.
15562         (bitmap_ior_and_compl): Delete the popcount assert.
15563         (bitmap_not): Ditto.
15564         (bitmap_and_compl): Ditto.
15565         (bitmap_and): Delete the popcount array handling.
15566         (bitmap_xor): Ditto.
15567         (bitmap_ior): Ditto.
15568         (bitmap_or_and): Delete the popcount assert.
15569         (bitmap_and_or): Ditto.
15570         (popcount_table): Delete.
15571         (sbitmap_elt_popcount): Delete.
15572         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
15573         (bitmap_set_bit): Delete the popcount assert.
15574         (bitmap_clear_bit): Ditto.
15575         (sbitmap_free): Don't free the popcount array.
15576         (sbitmap_alloc_with_popcount): Delete declaration.
15577         (sbitmap_popcount): Ditto.
15579 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15580             Andrew Burgess  <andrew.burgess@embecosm.com>
15582         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
15583         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
15584         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
15585         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
15586         * config/arc/arc.opt (mcmem): New option.
15587         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
15588         supply length for r/m alternative.
15589         (*extendqisi2_ac): Likewise.
15590         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
15591         r/Uex alternative.
15592         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
15593         (movhi_insn): Likewise.
15594         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
15595         (*zero_extendqihi2_i): Add r/Ucm alternative.
15596         (*zero_extendqisi2_ac): Likewise.
15597         (*zero_extendhisi2_i): Likewise.
15598         * config/arc/constraints.md (Uex): New memory constraint.
15599         (Ucm): New define_constraint.
15600         * config/arc/predicates.md (long_immediate_loadstore_operand):
15601         Return 0 for MEM with cmem_address address.
15602         (cmem_address_0): New predicates.
15603         (cmem_address_1): Likewise.
15604         (cmem_address_2): Likewise.
15605         (cmem_address): Likewise.
15607 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15609         * config/rs6000/rs6000.c (machine_function): Rename
15610         insn_chain_scanned_p to spe_insn_chain_scanned_p.
15611         (rs6000_stack_info): Adjust.
15613 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15614             Andrew Burgess  <andrew.burgess@embecosm.com>
15616         * config/arc/constraints.md (Usd): Convert to define_constraint.
15617         (Us<): Likewise.
15618         (Us>): Likewise.
15620 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15622         PR target/70821
15623         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
15624         Add new peephole2 where the first insn is *mov<mode>_or instead of
15625         *mov<mode>_internal.
15627 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
15629         * tracer.c (bb_seen): Make static.
15631 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
15633         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
15634         support, setup defaults.
15635         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
15636         * config/arc/arc.c (arc_init): Add NPS400 support.
15637         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
15638         (TARGET_ARC700): NPS400 is also an ARC700.
15639         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
15641 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15643         PR target/70668
15644         * config/nds32/nds32.md (casesi): Don't access the operands array
15645         out of bounds.
15647 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15649         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
15650         (or $-1,reg peephole2): Ditto.
15651         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
15653 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
15655         * doc/extend.texi (Common Function Attributes) [optimize]:
15656         Discourage use of the optimize attribute.
15658 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
15660         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
15661         special case builtin.
15662         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15663         ALTIVEC_BUILTIN_VEC_ADDE.
15664         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15665         support for ALTIVEC_BUILTIN_VEC_ADDE.
15666         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15667         for __builtin_vec_adde.
15669 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15671         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
15672         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
15674 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15676         PR testsuite/70595
15677         * doc/sourcebuild.texi (Effective-Target Keywords, Other
15678         attributes): Document cilkplus_runtime.
15680 2016-04-28  Martin Jambor  <mjambor@suse.cz>
15682         * tree-cfg.c (verify_expr): Verify that local declarations belong to
15683         this function.  Call verify_expr on MEM_REFs and bases of other
15684         handled_components.
15686 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15688         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
15689         for WORD_REGISTER_OPERATIONS to runtime check.
15691 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15693         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
15695 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15697         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
15698         big-endian compilation.
15699         * config/arc/arc.md (addf3): Likewise.
15700         (subdf3): Likewise.
15701         (muldf3): Likewise.
15703 2016-04-28  Richard Biener  <rguenther@suse.de>
15705         PR tree-optimization/70840
15706         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
15707         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
15708         Mark x * pow(x,c) -> pow(x,c+1) commutative.
15709         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
15711 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15713         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
15714         and explain why in a comment.
15716 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15718         * config/arc/arc.md (cpu_facility): Add fpx variant.
15719         (subdf3): Prohibit use reverse sub when assist operations option
15720         is enabled.
15721         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
15722         instructions only when FPX is enabled.
15723         * testsuite/gcc.target/arc/trsub.c: New test.
15725 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15727         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
15728         mult_operator when calculating "type" attribute.
15729         (*fop_<mode>_1_i387): Ditto.
15730         (*fop_xf_1_i387): Ditto.
15731         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
15732         Use std::swap to swap operands.  Use RTL expressions to generate
15733         converted pattern.
15735 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15736             Joern Rennecke  <joern.rennecke@embecosm.com>
15738         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
15739         declaration.
15740         (emit_pic_move): Remove.
15741         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
15742         * config/arc/arc.c (emit_pic_move): Removed.
15743         (TARGET_HAVE_TLS): Define.
15744         (arc_conditional_register_usage): Test for arc_tp_regno.
15745         (arc_print_operand, arc_print_operand_address): Handle TLS
15746         unspecs.
15747         (arc_needs_pcl_p): New function.
15748         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
15749         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
15750         (arc_raw_symbolic_reference_mentioned_p): Likewise.
15751         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
15752         (arc_legitimize_tls_address): Likewise.
15753         (DTPOFF_ZERO_SYM): Define.
15754         (arc_legitimize_pic_address): Make it static, handle TLS cases.
15755         (arc_output_pic_addr_const): Print TLS unspecs.
15756         (prepare_pic_move): New function, replaces emit_pic_move.
15757         (arc_legitimate_constant_p): Handle TLS unspecs.
15758         (arc_legitimate_address_p): Likewise.
15759         (arc_rewrite_small_data_p): Use assert for TLS constants.
15760         (prepare_move_operands): Use prepare_pic_move.
15761         (arc_legitimize_address): Legitimize tls addresses.
15762         (arc_epilogue_uses): Check for arc_tp_regno.
15763         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
15764         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
15765         Define.
15766         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
15767         Likewise.
15768         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
15769         %(arc_tls_extra_start_spec).
15770         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
15771         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
15772         (EH_USES): Define.
15773         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
15774         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
15775         (UNSPEC_TLS_OFF): Add.
15776         (R10_REG): Define.
15777         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
15778         (get_thread_pointersi): New patterns.
15779         * config/arc/arc.opt (mtp-regno): New option.
15780         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
15781         (move_dest_operand): Likewise.
15782         * configure: Regenerate.
15783         * configure.ac: Add arc*-*-* case to test for tls.
15784         * doc/invoke.texi (ARC options): Document mtp-regno.
15786 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15788         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
15789         the new ARC HS SIMD instructions.
15790         (arc_preferred_simd_mode): New function.
15791         (arc_autovectorize_vector_sizes): Likewise.
15792         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
15793         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15794         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
15795         (arc_init_builtins): Add new SIMD builtin types.
15796         (arc_split_move): Handle 64 bit vector moves.
15797         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
15798         (TARGET_PLUS_QMACW): Define.
15799         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
15800         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
15801         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
15802         (VSUBADD4H): New builtins.
15803         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
15804         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
15806 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
15807             Matthias Klose  <doko@debian.org>
15809         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
15811 2016-04-28  Richard Biener  <rguenther@suse.de>
15813         PR middle-end/70777
15814         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
15815         canonicalization.
15817 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
15819         * common/config/sh/sh-common.c: Remove SH5 support.
15820         * config/sh/constraints.md: Likewise.
15821         * config/sh/config/sh/elf.h: Likewise.
15822         * config/sh/linux.h: Likewise.
15823         * config/sh/netbsd-elf.h: Likewise.
15824         * config/sh/predicates.md: Likewise.
15825         * config/sh/sh-c.c: Likewise.
15826         * config/sh/sh-protos.h: Likewise.
15827         * config/sh/sh.c: Likewise.
15828         * config/sh/sh.h: Likewise.
15829         * config/sh/sh.md: Likewise.
15830         * config/sh/sh.opt: Likewise.
15831         * config/sh/sync.md: Likewise.
15832         * config/sh/sh64.h: Delete.
15833         * config/sh/shmedia.h: Likewise.
15834         * config/sh/shmedia.md: Likewise.
15835         * config/sh/sshmedia.h: Likewise.
15836         * config/sh/t-netbsd-sh5-64: Likewise.
15837         * config/sh/t-sh64: Likewise.
15838         * config/sh/ushmedia.h: Likewise.
15840 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15842         * config/i386/i386.md (sign_extend to memory peephole2s): Use
15843         general_reg_operand instead of register_operand predicate.
15845 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15847         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
15849 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
15851         * match.pd (A - B > A, A + B < A): New transformations.
15853 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
15855         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
15856         which defaults to true.  Emit an outer pair of parentheses only if
15857         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
15858         don't emit parentheses for the right-hand operand.
15860 2016-04-27  Jeff Law  <law@redhat.com>
15862         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
15864 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15866         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
15867         (altivec_lvx_<mode>_internal): Document.
15868         (altivec_lvx_<mode>_2op): New define_insn.
15869         (altivec_lvx_<mode>_1op): Likewise.
15870         (altivec_lvx_<mode>_2op_si): Likewise.
15871         (altivec_lvx_<mode>_1op_si): Likewise.
15872         (altivec_stvx_<mode>): Remove.
15873         (altivec_stvx_<mode>_internal): Document.
15874         (altivec_stvx_<mode>_2op): New define_insn.
15875         (altivec_stvx_<mode>_1op): Likewise.
15876         (altivec_stvx_<mode>_2op_si): Likewise.
15877         (altivec_stvx_<mode>_1op_si): Likewise.
15878         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15879         Expand vec_ld and vec_st during parsing.
15880         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
15881         changes.
15882         (altivec_expand_stvx_be): Likewise.
15883         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
15884         address-masking behavior in RTL.
15885         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
15886         address-masking behavior in RTL.
15887         (altivec_expand_builtin): Change builtin code arguments for calls
15888         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
15889         (insn_is_swappable_p): Avoid incorrect swap optimization in the
15890         presence of lvx/stvx patterns.
15891         (alignment_with_canonical_addr): New function.
15892         (alignment_mask): Likewise.
15893         (find_alignment_op): Likewise.
15894         (recombine_lvx_pattern): Likewise.
15895         (recombine_stvx_pattern): Likewise.
15896         (recombine_lvx_stvx_patterns): Likewise.
15897         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
15898         stvx patterns from expand.
15899         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
15900         expansions.
15901         (vector_altivec_store_<mode>): Likewise.
15903 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
15905         * config/aarch64/aarch64.md
15906         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
15907         remove the "fp" attributes.
15908         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
15909         add the "simd" attributes.
15910         (*movdf_aarch64): Likewise.
15911         (*movtf_aarch64): Remove the "fp" attributes.
15912         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
15913         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
15915 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15917         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
15918         rtx to rtx_code_label *.
15919         * rtl.h (maybe_set_first_label_num): Likewise.
15921 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15923         * df-core.c (df_add_problem): Make the problem param be const.
15924         (df_remove_problem): Make local "problem" be const.
15925         * df-problems.c (problem_RD): Make const.
15926         (problem_LR): Likewise.
15927         (problem_LIVE): Likewise.
15928         (problem_MIR): Likewise.
15929         (problem_CHAIN): Likewise.
15930         (problem_WORD_LR): Likewise.
15931         (problem_NOTE): Likewise.
15932         (problem_MD): Likewise.
15933         * df-scan.c (problem_SCAN): Likewise.
15934         * df.h (struct df_problem): Make field "dependent_problem" be
15935         const.
15936         (struct dataflow): Likewise for field "problem".
15937         (df_add_problem): Make param const.
15939 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
15941         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
15942         inter-unit moves to/from vector registers are enabled.  Do not disable
15943         for TARGET_MMX.
15945 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15947         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
15948         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
15949         #define to...
15950         (enum df_problem_id): ...this new enum.
15951         (struct df_problem): Convert field "id" from "int" to
15952         enum df_problem_id.
15954 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15956         * rtl.def: Update comment for "things in the instruction chain" to
15957         reflect the removal of the leading "i" field for INSN_UID in
15958         r210360.  Fix bogus apostrophe.
15960 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
15962         * config/i386/i386.md
15963         (lea arith with mem operand + setcc peephole2): Set operator mode.
15965 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
15967         PR target/70155
15968         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
15969         (dimode_scalar_to_vector_candidate_p): This.
15970         (timode_scalar_to_vector_candidate_p): New function.
15971         (scalar_to_vector_candidate_p): Likewise.
15972         (timode_check_non_convertible_regs): Likewise.
15973         (timode_remove_non_convertible_regs): Likewise.
15974         (remove_non_convertible_regs): Likewise.
15975         (remove_non_convertible_regs): Renamed to ...
15976         (dimode_remove_non_convertible_regs): This.
15977         (scalar_chain::~scalar_chain): Make it virtual.
15978         (scalar_chain::compute_convert_gain): Make it pure virtual.
15979         (scalar_chain::mark_dual_mode_def): Likewise.
15980         (scalar_chain::convert_insn): Likewise.
15981         (scalar_chain::convert_registers): Likewise.
15982         (scalar_chain::add_to_queue): Make it protected.
15983         (scalar_chain::emit_conversion_insns): Likewise.
15984         (scalar_chain::replace_with_subreg): Likewise.
15985         (scalar_chain::replace_with_subreg_in_insn): Likewise.
15986         (scalar_chain::convert_op): Likewise.
15987         (scalar_chain::convert_reg): Likewise.
15988         (scalar_chain::make_vector_copies): Likewise.
15989         (scalar_chain::convert_registers): New pure virtual function.
15990         (class dimode_scalar_chain): New class.
15991         (class timode_scalar_chain): Likewise.
15992         (scalar_chain::mark_dual_mode_def): Renamed to ...
15993         (dimode_scalar_chain::mark_dual_mode_def): This.
15994         (timode_scalar_chain::mark_dual_mode_def): New function.
15995         (timode_scalar_chain::convert_insn): Likewise.
15996         (dimode_scalar_chain::convert_registers): Likewise.
15997         (scalar_chain::compute_convert_gain): Renamed to ...
15998         (dimode_scalar_chain::compute_convert_gain): This.
15999         (scalar_chain::replace_with_subreg): Renamed to ...
16000         (dimode_scalar_chain::replace_with_subreg): This.
16001         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
16002         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
16003         (scalar_chain::make_vector_copies): Renamed to ...
16004         (dimode_scalar_chain::make_vector_copies): This.
16005         (scalar_chain::convert_reg): Renamed to ...
16006         (dimode_scalar_chain::convert_reg ): This.
16007         (scalar_chain::convert_op): Renamed to ...
16008         (dimode_scalar_chain::convert_op): This.
16009         (scalar_chain::convert_insn): Renamed to ...
16010         (dimode_scalar_chain::convert_insn): This.
16011         (scalar_chain::convert): Call convert_registers.
16012         (convert_scalars_to_vector): Change to scalar_chain pointer to
16013         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
16014         in 32-bit mode.  Delete scalar_chain pointer.  Call
16015         free_dominance_info in 64-bit mode.
16016         (pass_stv::gate): Remove TARGET_64BIT check.
16017         (ix86_option_override): Put the 64-bit STV pass before the CSE
16018         pass.
16020 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
16022         * dwarf2out.h (struct dw_loc_descr_node): Remove the
16023         dw_loc_frame_offset field.
16024         * dwarf2out.c (new_loc_descr): Likewise.
16025         (resolve_args_picking_1): Turn the VISITED hash set into a
16026         FRAME_OFFSET hash map. Use it to associate a frame offset to
16027         visited nodes. Remove uses of the CHECKING_P macro.
16028         (resolve_args_picking): Update call to resolve_args_picking_1.
16030 2016-04-27  Martin Liska  <mliska@suse.cz>
16032         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
16033         (free_loop_data): Release vuses of groups.
16035 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
16037         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
16038         instead of redundant use_id and boolean have_use_for.
16039         (struct iv_use): Change sub_id into group_id.  Remove field next.
16040         Move fields: related_cands, n_map_members, cost_map and selected
16041         to ...
16042         (struct iv_group): ... here.  New structure.
16043         (struct iv_common_cand): Use structure declaration directly.
16044         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16045         (MAX_CONSIDERED_USES): Rename macro to ...
16046         (MAX_CONSIDERED_GROUPS): ... here.
16047         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
16048         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
16049         (dump_uses): Rename to ...
16050         (dump_groups): ... here.  Update all uses.
16051         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
16052         (find_induction_variables): Refactor format of dump information.
16053         (record_sub_use): Delete.
16054         (record_use): Update all uses.
16055         (record_group): New function.
16056         (record_group_use, find_interesting_uses_op): Call above functions.
16057         Update all uses.
16058         (find_interesting_uses_cond): Ditto.
16059         (group_compare_offset): New function.
16060         (split_all_small_groups): Rename to ...
16061         (split_small_address_groups_p): ... here.  Update all uses.
16062         (split_address_groups):  Update all uses.
16063         (find_interesting_uses): Refactor format of dump information.
16064         (add_candidate_1): Update all uses.  Remove redundant check on iv,
16065         base and step.
16066         (add_candidate, record_common_cand): Remove redundant assert.
16067         (add_iv_candidate_for_biv): Update use.
16068         (add_iv_candidate_derived_from_uses): Update all uses.
16069         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
16070         (alloc_use_cost_map): Ditto.
16071         (set_use_iv_cost, get_use_iv_cost): Rename to ...
16072         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
16073         (determine_use_iv_cost_generic): Ditto.
16074         (determine_group_iv_cost_generic): Ditto.
16075         (determine_use_iv_cost_address): Ditto.
16076         (determine_group_iv_cost_address): Ditto.
16077         (determine_use_iv_cost_condition): Ditto.
16078         (determine_group_iv_cost_cond): Ditto.
16079         (determine_use_iv_cost): Ditto.
16080         (determine_group_iv_cost): Ditto.
16081         (set_autoinc_for_original_candidates): Update all uses.
16082         (find_iv_candidates): Update all uses.  Refactor dump information.
16083         (determine_use_iv_costs): Ditto.
16084         (determine_iv_costs): Ditto.
16085         (iv_ca_cand_for_use): Rename to ...
16086         (iv_ca_cand_for_group): ... here.  Update all uses.
16087         (iv_ca_add_use, iv_ca_add_group): Ditto.
16088         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
16089         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
16090         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
16091         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
16092         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
16093         (create_new_iv, adjust_iv_update_pos): Ditto.
16094         (rewrite_use_address): Delete.
16095         (rewrite_use_address_1): Rename to ...
16096         (rewrite_use_address): ... here.
16097         (rewrite_use_compare): Update all uses.
16098         (rewrite_use): Delete.
16099         (rewrite_uses): Rename to ...
16100         (rewrite_groups): ... here.  Update all uses.
16101         (remove_unused_ivs, free_loop_data): Update all uses.
16102         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
16104 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16106         * rtlanal.c (nonzero_bits1): Convert preprocessor check
16107         for WORD_REGISTER_OPERATIONS to runtime check.
16109 2016-04-27  Richard Biener  <rguenther@suse.de>
16111         PR ipa/70760
16112         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
16113         aggregate_value_p to determine if a function result is
16114         returned by reference.
16115         (ipa_pta_execute): Functions having their address taken are
16116         not automatically nonlocal.
16118 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16120         PR sanitizer/70683
16121         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
16122         * fold-const.c (operand_equal_p): If flag_checking and
16123         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
16124         and if it returns non-zero, assert iterative_hash_expr on both
16125         args is the same.
16127 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16129         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
16131 2016-04-27  Nick Clifton  <nickc@redhat.com>
16133         PR middle-end/49889
16134         * varasm.c (merge_weak): Generate an error if an attempt is made
16135         to convert a non-weak static function into a weak, public function.
16137 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16139         * params.def (MAX_PARTITION_SIZE): New param.
16140         * doc/invoke.texi: Document lto-max-partition.
16142 2016-04-27  Richard Biener  <rguenther@suse.de>
16144         PR ipa/70785
16145         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
16146         function cummulating used_from_other_partition, externally_visible
16147         and force_output from aliases.
16148         (refered_from_nonlocal_var): Likewise.
16149         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
16150         node flags properly.
16152 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16154         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
16155         (-Wmemset-elt-size): New item.
16157 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16159         PR ada/70759
16160         * stor-layout.h (internal_reference_types): Delete.
16161         * stor-layout.c (reference_types_internal): Likewise.
16162         (internal_reference_types): Likewise.
16163         (layout_type) <REFERENCE_TYPE>: Adjust.
16165 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16167         PR sanitizer/70683
16168         * tree.h (inchash::add_expr): Add FLAGS argument.
16169         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
16170         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
16171         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
16172         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
16173         if swap_tree_comparison (code) is smaller than code, hash that
16174         and arguments in the other order.  Hash CONVERT_EXPR the same
16175         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
16176         of ADDR_EXPR of decl as the decl itself.  Add or remove
16177         OEP_ADDRESS_OF from recursive flags as needed.  For
16178         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
16179         operands commutatively and only the third one normally.
16180         For internal CALL_EXPR hash in CALL_EXPR_IFN.
16182 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16184         * config/rtems.h (LIB_SPEC): Add -latomic.
16186 2016-04-27  Joel Sherrill  <joel@rtems.org>
16188         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
16189         xilink.ld and flags not relevant to RTEMS.
16191 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16193         * toplev.c (backend_init_target): Avoid calling init_reload when using
16194         LRA.
16196 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16198         * reorg.c (try_merge_delay_insns): Declare i and j inside the
16199         for loops rather than one for the whole function.
16201 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16203         * match.pd (X + CST CMP X): New transformation.
16205 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16207         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
16208         * fold-const.c (fold_binary_loc): Remove 2 transformations
16209         superseded by match.pd.
16210         * match.pd (x+x -> x*2): Generalize to integers.
16212 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
16214         * config/i386/i386.md (operation on memory peephole): Duplicate an
16215         existing peephole and adapt it to match lea rather than an operation
16216         that clobbers CC.
16218         PR rtl-optimization/57193
16219         * opts.c (default_options_table): Add OPT_frename_registers at -O2
16220         and above.
16221         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
16223 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16225         * tree-if-conv.c (any_pred_load_store): New static variable.
16226         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
16227         any_pred_load_store instead of and_mask_load_store.
16228         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
16229         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
16230         (combine_blocks, tree_if_conversion): Ditto.
16232 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16234         PR tree-optimization/70771
16235         PR tree-optimization/70775
16236         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
16237         virtual PHI nodes.  Delete parameter.
16238         (if_convertible_loop_p_1): Delete argument to above function.
16239         (predicate_all_scalar_phis): Delete code handling single-argument
16240         PHIs.
16241         (tree_if_conversion): Mark and update virtual SSA.
16243 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16245         PR target/61821
16246         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
16247         (x86_elf_aligned_common): Rename to ...
16248         (x86_elf_aligned_decl_common): ... this.
16249         Add decl arg.  Switch to .lbss for largecomm object.  Use
16250         LARGECOMM_SECTION_ASM_OP.
16251         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
16252         renaming.
16253         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
16254         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
16255         Pass new decl arg.
16256         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16257         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
16259 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16261         PR target/59407
16262         * config/i386/i386.c (SECTION_LARGE): Define.
16263         (x86_64_elf_select_section): Set it for large data/bss sections.
16264         Only clear SECTION_WRITE for .lrodata.
16265         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
16266         data/bss sections.
16267         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
16268         * varasm.c (default_elf_asm_named_section): Grow flagchars.
16269         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
16270         SECTION_MACH_DEP.
16271         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
16272         * doc/tm.texi: Regenerate.
16274 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16276         PR bootstrap/70704
16277         * configure.ac (--enable-checking): Document extra flag, for
16278         non-release builds default to --enable-checking=yes,extra.
16279         If misc checking and extra checking, define CHECKING_P to 2 instead
16280         of 1.
16281         * common.opt (fchecking=): Add.
16282         * doc/invoke.texi (-fchecking=): Document.
16283         * doc/install.texi: Document --enable-checking changes.
16284         * configure: Regenerated.
16285         * config.in: Regenerated.
16287 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16289         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
16290         attribute instead of which_alternative.
16291         * config/i386/sse.md (*mov<mode>_internal): Ditto.
16292         Use EXT_REX_SSE_REG_P where appropriate.
16294 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16296         * config/i386/predicates.md (const0_operand): Do not match
16297         const_wide_int code.
16298         (const1_operand): Ditto.
16300 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16302         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
16303         for SSE constm1 operands and TARGET_AVX512VL.
16304         (*movti_internal): Ditto.
16305         (*mov<mode>_or): Use constm1_operand predicate.
16306         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
16307         for SSE vector_all_ones operands and TARGET_AVX512VL.
16308         * config/i386/predicates.md (constm1_operand): New predicate.
16309         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
16310         emission of constant -1 load.
16312 2016-04-25  Jason Merrill  <jason@redhat.com>
16314         * gdbinit.in: Skip is-a.h.
16316         * attribs.c (register_scoped_attributes): Fix logic.
16317         * attribs.h: Declare register_scoped_attributes.
16319 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16321         * config/rs6000/rs6000-builtin.def: Correct pasto error for
16322         stxvd2x and stxvw4x built-in functions.
16324 2016-04-25  DJ Delorie  <dj@redhat.com>
16326         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
16327         (ashrhi3): Likewise.
16328         (lshrhi3): Likewise.
16330 2016-04-25  Richard Biener  <rguenther@suse.de>
16332         PR tree-optimization/70780
16333         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
16334         wasn't visited yet.
16335         (compute_antic): Mark blocks with abnormal preds as visited as
16336         they have a final empty antic-in solution already.
16338 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16340         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
16342 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16344         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
16345         mode is VQI to improve mixed mode vectorization.
16346         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
16347         define_insn to match low half of signed vaddw.
16348         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
16349         define_insn to match high half of signed vaddw.
16350         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
16351         define_insn to match low half of unsigned vaddw.
16352         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
16353         define_insn to match high half of unsigned vaddw.
16354         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
16355         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16356         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16357         for new function.
16358         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16359         * config/arm/predicates.md (vect_par_constant_high): Support
16360         big endian and simplify by calling
16361         arm_simd_check_vect_par_cnst_half
16362         (vect_par_constant_low): Likewise.
16364 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16366         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16367         predicate for operand 2.
16369 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
16370             H.J. Lu  <hongjiu.lu@intel.com>
16372         * config/i386/i386-protos.h (standard_sse_constant_p): Add
16373         machine_mode argument.
16374         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16375         constm1_rtx operands.  For VOIDmode constants, get mode from
16376         pred_mode.  Check mode size if the mode is supported by ABI.
16377         (standard_sse_constant_opcode): Do not use standard_constant_p.
16378         Strictly check ABI support for all-ones operands.
16379         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16380         immediates. Update calls to standard_sse_constant_p.
16381         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16382         (ix86_rtx_costs): Ditto.
16383         * config/i386/i386.md (*movxi_internal_avx512f): Use
16384         nonimmediate_or_sse_const_operand instead of vector_move_operand.
16385         Use (v,BC) alternative instead of (v,C). Use register_operand
16386         checks instead of MEM_P.
16387         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16388         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
16389         isa attribute.  Use register_operand checks instead of MEM_P.
16390         (*movti_internal): Use nonimmediate_or_sse_const_operand for
16391         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
16392         alternative and corresponding sse2 isa attribute.
16393         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16394         to standard_sse_constant_p.
16395         (FP constant splitters): Ditto.
16396         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16397         (C): Ditto.
16398         * config/i386/predicates.md (constm1_operand): Remove.
16399         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16400         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16401         vector_all_ones_operand instead of constm1_operand.
16403 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16405         * print-rtl.c (print_rtx_insn_vec): New function.
16406         * print-rtl.h: New prototype.
16407         * store-motion.c (struct st_expr): Make avail_stores a vector.
16408         (st_expr_entry): Adjust.
16409         (free_st_expr_entry): Likewise.
16410         (print_store_motion_mems): Likewise.
16411         (find_moveable_store): Likewise.
16412         (compute_store_table): Likewise.
16413         (delete_store): Likewise.
16414         (build_store_vectors): Likewise.
16416 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16418         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16420 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16422         * vec.h (vec_safe_contains): New function.
16423         (vec::contains): Likewise.
16424         (vec::begin): Likewise.
16425         (vec::end): Likewise.
16427 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
16429         PR sanitizer/70712
16430         * cfgexpand.c (expand_stack_vars): Fix typo.
16432 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16434         * system.h (list, map, set, vector): Include conditionally.
16435         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16436         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16437         * ipa-icf.c (INCLUDE_LIST): Define.
16438         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16439         * config/sh/sh.c (INCLUDE_VECTOR): Define.
16440         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16441         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16442         * cp/logic.cc (INCLUDE_LIST): Define.
16443         * fortran/trans-common.c (INCLUDE_MAP): Define.
16445 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16447         * auto-profile.c: Remove <string.h> include.
16448         * ipa-icf-gimple.c: Remove <list> include.
16449         * diagnostic.c: Remove <new> include.
16450         * genmatch.c: Likewise.
16451         * pretty-print.c: Likewise.
16452         * toplev.c: Likewise
16453         * c/c-objc-common.c: Likewise.
16454         * cp/error.c: Likewise.
16455         * fortran/error.c: Likewise.
16457 2016-04-22  Richard Biener  <rguenther@suse.de>
16459         * lto-streamer-in.c (input_ssa_names): Do not allocate
16460         GIMPLE_NOP for all SSA names.
16461         * lto-streamer-out.c (output_ssa_names): Do not output
16462         SSA names that should have been released.
16464 2016-04-22  Richard Biener  <rguenther@suse.de>
16466         PR tree-optimization/70740
16467         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
16468         VDEF.
16470 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
16472         PR target/70750
16473         * config/i386/predicates.md (call_insn_operand): Replace
16474         sibcall_memory_operand with memory_operand.
16476 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
16478         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
16479         has_single_use() tests.
16480         (register_edge_assert_for_1): Likewise.
16481         (find_assert_locations_1): Check the liveness bitmap instead of
16482         checking has_single_use().
16484 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16486         PR target/70728
16487         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
16488         Extract AVX-512BW constraint from AVX.
16490 2016-04-21  Richard Biener  <rguenther@suse.de>
16492         PR tree-optimization/70725
16493         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
16494         for phi_convertible_by_degenerating_args.
16495         (predicate_all_scalar_phis): Handle single-argument PHIs.
16497 2016-04-21  Richard Biener  <rguenther@suse.de>
16499         PR middle-end/70747
16500         * fold-const.c (fold_comparison): Return properly typed
16501         constant boolean.
16503 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
16505         PR tree-optimization/70715
16506         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16507         after expanding BASE using expand_simple_operations.
16509 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16511         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
16512         New transformations.
16514 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16516         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
16518 2016-04-20  Jan Hubicka  <jh@suse.cz>
16520         * ipa-inline.c (can_inline_edge_p): Pass caller info to
16521         ultiimate_alias_target.
16522         (update_callee_keys): Likewise.
16523         (lookup_recursive_calls): Likewise.
16524         (speculation_useful_p): Likewise.
16526 2016-04-20  Jan Hubicka  <jh@suse.cz>
16528         PR ipa/70018
16529         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
16530         (set_nothrow_flag_1): ... this; handle interposition correctly;
16531         recurse on aliases and thunks.
16532         (cgraph_node::set_nothrow_flag): New.
16533         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
16534         functions compiled with non-call exceptions that binds to current
16535         def.
16536         (propagate_nothrow): Be safe WRT interposition.
16537         * cgraph.h (set_nothrow_flag): Update prototype.
16539 2016-04-18  Jan Hubicka  <jh@suse.cz>
16541         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
16542         max_loop_iterations_int.
16543         (tree_unswitch_outer_loop): Likewise.
16545 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16547         PR tree-optimization/69489
16548         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
16549         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
16550         Revise dump message.
16551         (if_convertible_bb_p): Remove check on edge count of basic block's
16552         predecessors.
16554 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16556         PR tree-optimization/56625
16557         PR tree-optimization/69489
16558         * tree-data-ref.h (DR_INNERMOST): New macro.
16559         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
16560         hashing struct innermost_loop_behavior.
16561         (ref_DR_map): Remove.
16562         (innermost_DR_map): New map.
16563         (baseref_DR_map): Revise comment.
16564         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
16565         to innermost_DR_map accroding to its innermost loop behavior.
16566         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
16567         to its innermost loop behavior.
16568         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
16569         Add initialization for innermost_DR_map.  Record memory reference
16570         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
16571         have innermost loop behavior.
16572         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
16573         innermost_DR_map.
16575 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
16577         * config/i386/i386.md (*lea<mode>_general_1): Rename from
16578         *lea_general_1.  Use explicit SWI12 mode interator.
16579         (*lea<mode>_general_2): Rename from *lea_general_2.
16580         Use explicit SWI12 mode interator.
16581         (*lea<mode>_general_3): Rename from *lea_general_3.
16582         Use explicit SWI12 mode interator.
16583         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
16584         Use explicit SWI12 mode interator.
16585         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
16586         Use explicit SWI48 mode interator.
16588 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16590         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16591         Short-cut unaligned load and store cases.  Handle all integer
16592         vector modes.
16593         (ix86_expand_vector_move_misalign): Short-cut unaligned load
16594         and store cases.  Call ix86_avx256_split_vector_move_misalign
16595         directly without checking mode class.
16597 2016-04-20  Andrew Pinski  <apinski@cavium.com>
16598             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16600         PR target/64971
16601         * config/aarch64/aarch64.md (sibcall): Force call
16602         address to be DImode for ILP32.
16603         (sibcall_value): Likewise.
16605 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16607         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
16609 2016-04-20  Richard Biener  <rguenther@suse.de>
16611         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
16612         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
16613         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
16614         (maybe_push_res_to_seq): Adjust.
16615         * gimple-fold.c (maybe_build_generic_op): Likewise.
16617 2016-04-20  Marek Polacek  <polacek@redhat.com>
16619         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
16620         rather than true.
16622 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
16624         * config/i386/sse.md (vec_unpacks_lo_hi): Always
16625         use kmovw to support AVX512F target.
16627 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16629         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
16631 2016-04-20  Marek Polacek  <polacek@redhat.com>
16633         PR tree-optimization/70725
16634         * tree-if-conv.c (is_false_predicate): New function.
16635         (predicate_mem_writes): Use it.
16637 2016-04-20  Richard Biener  <rguenther@suse.de>
16639         PR tree-optimization/70726
16640         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
16641         shift amounts from a pattern stmt operand.
16643 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16645         PR target/70674
16646         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
16647         stack_restore_from_fpr pattern when restoring r15.
16648         (s390_optimize_prologue): Strip away the memory barrier in the
16649         parallel when trying to get rid of restore insns.
16650         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
16651         definition for loading the stack pointer from an FPR.  Compared to
16652         the normal move insn this pattern includes a full memory barrier.
16654 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
16656         PR middle-end/70680
16657         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
16658         implicitly linear or lastprivate iterator on the outer context.
16660 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16662         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
16663         alignment check.
16664         * config/i386/i386.md (ssememalign): Removed.
16665         * config/i386/sse.md: Remove ssememalign attribute from patterns.
16667 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16669         PR target/69201
16670         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
16671         const short * to __builtin_ia32_loaddquhi512_mask.
16672         (_mm512_maskz_loadu_epi16): Likewise.
16673         (_mm512_mask_storeu_epi16): Pass short * to
16674         __builtin_ia32_storedquhi512_mask.
16675         (_mm512_mask_loadu_epi8): Pass const char * to
16676         __builtin_ia32_loaddquqi512_mask.
16677         (_mm512_maskz_loadu_epi8): Likewise.
16678         (_mm512_mask_storeu_epi8): Pass char * to
16679         __builtin_ia32_storedquqi512_mask.
16680         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
16681         const double * to __builtin_ia32_loadupd512_mask.
16682         (_mm512_mask_loadu_pd): Likewise.
16683         (_mm512_maskz_loadu_pd): Likewise.
16684         (_mm512_storeu_pd): Pass double * to
16685         __builtin_ia32_storeupd512_mask.
16686         (_mm512_mask_storeu_pd): Likewise.
16687         (_mm512_loadu_ps): Pass const float * to
16688         __builtin_ia32_loadups512_mask.
16689         (_mm512_mask_loadu_ps): Likewise.
16690         (_mm512_maskz_loadu_ps): Likewise.
16691         (_mm512_storeu_ps): Pass float * to
16692         __builtin_ia32_storeups512_mask.
16693         (_mm512_mask_storeu_ps): Likewise.
16694         (_mm512_mask_loadu_epi64): Pass const long long * to
16695         __builtin_ia32_loaddqudi512_mask.
16696         (_mm512_maskz_loadu_epi64): Likewise.
16697         (_mm512_mask_storeu_epi64): Pass long long *
16698         to __builtin_ia32_storedqudi512_mask.
16699         (_mm512_loadu_si512): Pass const int * to
16700         __builtin_ia32_loaddqusi512_mask.
16701         (_mm512_mask_loadu_epi32): Likewise.
16702         (_mm512_maskz_loadu_epi32): Likewise.
16703         (_mm512_storeu_si512): Pass int * to
16704         __builtin_ia32_storedqusi512_mask.
16705         (_mm512_mask_storeu_epi32): Likewise.
16706         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
16707         char * to __builtin_ia32_storedquqi256_mask.
16708         (_mm_mask_storeu_epi8): Likewise.
16709         (_mm256_mask_loadu_epi16): Pass const short * to
16710         __builtin_ia32_loaddquhi256_mask.
16711         (_mm256_maskz_loadu_epi16): Likewise.
16712         (_mm_mask_loadu_epi16): Pass const short * to
16713         __builtin_ia32_loaddquhi128_mask.
16714         (_mm_maskz_loadu_epi16): Likewise.
16715         (_mm256_mask_loadu_epi8): Pass const char * to
16716         __builtin_ia32_loaddquqi256_mask.
16717         (_mm256_maskz_loadu_epi8): Likewise.
16718         (_mm_mask_loadu_epi8): Pass const char * to
16719         __builtin_ia32_loaddquqi128_mask.
16720         (_mm_maskz_loadu_epi8): Likewise.
16721         (_mm256_mask_storeu_epi16): Pass short * to.
16722         __builtin_ia32_storedquhi256_mask.
16723         (_mm_mask_storeu_epi16): Pass short * to.
16724         __builtin_ia32_storedquhi128_mask.
16725         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
16726         const double * to __builtin_ia32_loadupd256_mask.
16727         (_mm256_maskz_loadu_pd): Likewise.
16728         (_mm_mask_loadu_pd): Pass onst double * to
16729         __builtin_ia32_loadupd128_mask.
16730         (_mm_maskz_loadu_pd): Likewise.
16731         (_mm256_mask_storeu_pd): Pass double * to
16732         __builtin_ia32_storeupd256_mask.
16733         (_mm_mask_storeu_pd): Pass double * to
16734         __builtin_ia32_storeupd128_mask.
16735         (_mm256_mask_loadu_ps): Pass const float * to
16736         __builtin_ia32_loadups256_mask.
16737         (_mm256_maskz_loadu_ps): Likewise.
16738         (_mm_mask_loadu_ps): Pass const float * to
16739         __builtin_ia32_loadups128_mask.
16740         (_mm_maskz_loadu_ps): Likewise.
16741         (_mm256_mask_storeu_ps): Pass float * to
16742         __builtin_ia32_storeups256_mask.
16743         (_mm_mask_storeu_ps): ass float * to
16744         __builtin_ia32_storeups128_mask.
16745         (_mm256_mask_loadu_epi64): Pass const long long * to
16746         __builtin_ia32_loaddqudi256_mask.
16747         (_mm256_maskz_loadu_epi64): Likewise.
16748         (_mm_mask_loadu_epi64): Pass const long long * to
16749         __builtin_ia32_loaddqudi128_mask.
16750         (_mm_maskz_loadu_epi64): Likewise.
16751         (_mm256_mask_storeu_epi64): Pass long long * to
16752         __builtin_ia32_storedqudi256_mask.
16753         (_mm_mask_storeu_epi64): Pass long long * to
16754         __builtin_ia32_storedqudi128_mask.
16755         (_mm256_mask_loadu_epi32): Pass const int * to
16756         __builtin_ia32_loaddqusi256_mask.
16757         (_mm256_maskz_loadu_epi32): Likewise.
16758         (_mm_mask_loadu_epi32): Pass const int * to
16759         __builtin_ia32_loaddqusi128_mask.
16760         (_mm_maskz_loadu_epi32): Likewise.
16761         (_mm256_mask_storeu_epi32): Pass int * to
16762         __builtin_ia32_storedqusi256_mask.
16763         (_mm_mask_storeu_epi32): Pass int * to
16764         __builtin_ia32_storedqusi128_mask.
16765         * config/i386/i386-builtin-types.def (PCSHORT): New.
16766         (PINT64): Likewise.
16767         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
16768         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
16769         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
16770         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
16771         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
16772         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
16773         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
16774         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
16775         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
16776         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
16777         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
16778         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
16779         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
16780         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
16781         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
16782         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
16783         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
16784         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
16785         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
16786         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
16787         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
16788         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
16789         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
16790         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
16791         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
16792         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
16793         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
16794         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
16795         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
16796         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
16797         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
16798         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
16799         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
16800         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
16801         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
16802         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
16803         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
16804         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
16805         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
16806         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
16807         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
16808         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
16809         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
16810         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
16811         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
16812         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
16813         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
16814         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
16815         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
16816         use UNSPEC_STOREU.
16817         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
16818         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
16819         load nor store.
16820         (ix86_expand_vector_move_misalign): Likewise.
16821         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
16822         to scalar function prototype for unaligned load/store builtins.
16823         (ix86_expand_special_args_builtin): Updated.
16824         * config/i386/sse.md (UNSPEC_LOADU): Removed.
16825         (UNSPEC_STOREU): Likewise.
16826         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
16827         (VI_ULOADSTORE_F_AVX512VL): Likewise.
16828         (ssescalarsize): Handle V4TI, V2TI and V1TI.
16829         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16830         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16831         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
16832         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
16833         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
16834         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
16835         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
16836         (<avx512>_storedqu<mode>_mask): Likewise.
16837         (*sse4_2_pcmpestr_unaligned): Likewise.
16838         (*sse4_2_pcmpistr_unaligned): Likewise.
16839         (*mov<mode>_internal): Renamed to ...
16840         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
16841         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
16842         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
16843         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
16845 2016-04-19  Richard Biener  <rguenther@suse.de>
16847         PR tree-optimization/70171
16848         * tree-ssa-phiprop.c: Include stor-layout.h.
16849         (phiprop_insert_phi): Handle the aggregate copy case.
16850         (propagate_with_phi): Likewise.
16852 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
16854         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
16855         instead of simplify_gen_subreg (... , 0).
16856         (ix86_delegitimize_address): Ditto.
16857         (ix86_split_divmod): Ditto.
16858         (ix86_split_copysign_const): Ditto.
16859         (ix86_split_copysign_var): Ditto.
16860         (ix86_expand_args_builtin): Ditto.
16861         (ix86_expand_round_builtin): Ditto.
16862         (ix86_expand_special_args_builtin): Ditto.
16863         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
16864         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
16865         (udivmodqi4): Ditto.
16866         (absneg splitters): Ditto.
16867         (*jcc_bt<mode>_1): Ditto.
16869 2016-04-19  Richard Biener  <rguenther@suse.de>
16871         PR tree-optimization/70724
16872         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
16873         restoring out from ...
16874         (free_scc_vn): ... here.
16875         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
16876         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
16877         tail merging.
16878         (pass_fre::execute): Restore SSA info.
16880 2016-04-19  Richard Biener  <rguenther@suse.de>
16882         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
16883         * gimple-walk.c (walk_gimple_op): Initialize it.
16884         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
16885         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
16886         remapping SSA names of defs.
16887         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
16888         adjustment.
16890 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
16892         PR middle-end/70689
16893         * lra-constraints.c (equiv_substition_p): New.
16894         (process_alt_operands): Use it.
16895         (swap_operands): Swap it.
16896         (curr_insn_transform): Update it.
16898 2016-04-18  Michael Matz  <matz@suse.de>
16900         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
16901         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
16902         * tree-core.h (tree_type_common.align): Use bit-field.
16903         (tree_type_common.spare): New.
16904         (tree_decl_common.off_align): Make smaller.
16905         (tree_decl_common.align): Use bit-field.
16907         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
16908         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
16909         (scan_sharing_clauses): Ditto.
16910         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16911         (omp_finish_file): Ditto.
16912         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
16913         (layout_decl): Ditto.
16914         (relayout_decl): Ditto.
16915         (finalize_record_size): Use SET_TYPE_ALIGN.
16916         (finalize_type_size): Ditto.
16917         (finish_builtin_struct): Ditto.
16918         (layout_type): Ditto.
16919         (initialize_sizetypes): Ditto.
16920         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
16921         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
16922         (lookup_field_for_decl): Use SET_DECL_ALIGN.
16923         (get_chain_field): Ditto.
16924         (get_trampoline_type): Ditto.
16925         (get_nl_goto_field): Ditto.
16926         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16927         SET_DECL_ALIGN.
16928         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
16929         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
16930         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16931         (build_qualified_type): Use SET_TYPE_ALIGN.
16932         (build_aligned_type, build_range_type_1): Ditto.
16933         (build_atomic_base): Ditto.
16934         (build_common_tree_nodes): Ditto.
16935         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
16936         (expand_one_stack_var_at): Ditto.
16937         * coverage.c (build_var): Use SET_DECL_ALIGN.
16938         * except.c (init_eh): Ditto.
16939         * function.c (assign_parm_setup_block): Ditto.
16940         * symtab.c (increase_alignment_1): Ditto.
16941         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
16942         * tree-vect-stmts.c (ensure_base_align): Ditto.
16943         * varasm.c (align_variable): Ditto.
16944         (assemble_variable): Ditto.
16945         (build_constant_desc): Ditto.
16946         (output_constant_def_contents): Ditto.
16948         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
16949         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
16950         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
16951         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
16952         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
16954 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
16956         PR target/70708
16957         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
16958         replace %vmovsd with "%vmovq".
16959         (vec_concatv2df): Likewise.
16961 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
16963         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
16964         (*vec_extractv2si_0): Ditto.
16965         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
16966         (zero_extended_scalar_load_operand splitters): Ditto.
16967         (vec_extract splitters): Ditto.
16968         (*vec_extractv4si_0_zext): Ditto.
16969         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
16970         and lowpart_subreg.
16971         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
16972         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
16973         (*sse4_1_extractps): Use lowpart_subreg.
16974         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
16976 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16978         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
16979         gld requirements.
16980         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
16981         Mention Solaris 11 packaging changes.
16982         Update gas and gld requirements.
16983         Remove reference to pre-Solaris 10 bug.
16984         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
16985         systems and bugs.
16986         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
16987         with cc.
16989 2016-04-17  Jan Hubicka  <jh@suse.cz>
16991         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
16992         max_loop_iterations_int.
16994 2016-04-18  Richard Biener  <rguenther@suse.de>
16996         PR tree-optimization/43434
16997         * tree-ssa-structalias.c (struct vls_data): New.
16998         (visit_loadstore): Handle all pointer-based accesses.
16999         (compute_dependence_clique): Compute a bitmap of restrict tags
17000         assigned bases and pass it to visit_loadstore.
17002 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
17004         PR target/70711
17005         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
17006         armv8.1-a and armv8.1-a+crc.
17008 2016-04-18  Richard Biener  <rguenther@suse.de>
17010         PR tree-optimization/70701
17011         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
17012         references after translating through a memcpy.
17014 2016-04-18  Richard Biener  <rguenther@suse.de>
17016         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
17017         (compute_antic): ... here.  For partial antic use regular
17018         postorder and scrap iteration.
17019         (compute_partial_antic_aux): Remove unused return value.
17020         (init_pre): Do not allocate postorder.
17021         (fini_pre): Do not free postorder.
17023 2016-04-18  Richard Biener  <rguenther@suse.de>
17025         PR middle-end/37870
17026         * expmed.c (extract_bit_field_1): Remove broken case
17027         using a wider MODE_INT mode.
17029 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
17031         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
17032         unless compiling with at least GCC-4.8.
17034 2016-04-17  Jan Hubicka  <jh@suse.cz>
17036         PR bootstrap/70706
17037         * graphite.c (graphite_finalize): Update call to
17038         tree_estimate_probability.
17039         * predict.h (tree_estimate_probability): Update prototype.
17041 2016-04-17  Jan Hubicka  <jh@suse.cz>
17043         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
17044         (tree_estimate_probability): Likewise.
17045         (pass_profile::execute): Update.
17046         (report_predictor_hitrates): New function.
17047         * profile.c (compute_branch_probabilities): Use it.
17048         * predict.h (report_predictor_hitrates): Declare.
17050 2016-04-17  Jan Hubicka  <jh@suse.cz>
17052         PR ipa/70018
17053         * cgraph.h (cgraph_node::set_const_flag,
17054         cgraph_node::set_pure_flag): Update prototype to return bool;
17055         update comment.
17056         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
17057         of interposable symbol are interposable, too.
17058         (cgraph_set_const_flag_1): Rename to ...
17059         (set_const_flag_1): ... this one; change to self recursive function
17060         instead of call_for_symbol_thunks_and_aliases. Handle correctly
17061         clearnig the flag in all variants and also virtual thunks of const
17062         functions are pure; track if any change was done.
17063         (cgraph_node::set_const_flag): Update.
17064         (struct set_pure_flag_info): New struct.
17065         (cgraph_set_pure_flag_1): Rename to ...
17066         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
17067         rather than pointer encoded flags; track if any changes was done;
17068         handle correctly clearning flag and setting flag of aliases already
17069         declared const.
17070         (cgraph_node::set_pure_flag): Update.
17071         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
17073 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17075         PR other/70433
17076         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
17077         backslash in label.
17079 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17081         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
17082         '{}<> ' as escape-for-record.
17084 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17086         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
17087         structure.
17089 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17091         PR other/70185
17092         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
17093         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
17094         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
17095         * passes.c (finish_optimization_passes): Only call
17096         finish_graph_dump_file if dfi->graph_dump_initialized.
17097         (execute_function_dump, pass_init_dump_file): Use
17098         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
17100 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17102         PR tree-optimization/70256
17103         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
17104         (debug_varmap): New function.
17106 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17108         PR other/70183
17109         * passes.c (pass_manager::register_pass): Propagate pflags.
17111 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17113         PR other/68875
17114         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
17115         * passes.c (pass_manager::pass_manager): Declare and init p_start in
17116         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
17117         check if it's equal to p_start.
17118         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
17120 2016-04-15  Jan Hubicka  <jh@suse.cz>
17122         PR ipa/70018
17123         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
17124         function does not bind to current def.
17125         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
17126         handle conservatively calls to functions that does not need to bind
17127         to current def.
17128         (check_call): Update call of worse_state.
17129         (ignore_edge_for_nothrow): Update.
17130         (ignore_edge_for_pure_const): Likewise.
17131         (propagate_pure_const): Update calls to worse_state.
17132         (skip_function_for_local_pure_const): Reformat comments.
17134 2016-04-15  Jan Hubicka  <jh@suse.cz>
17136         PR ipa/70018
17137         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
17138         (cgraph_node::function_symbol): Likewise.
17139         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17140         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
17141         (symtab_node::ultimate_alias_target): Add REF parameter.
17142         (symtab_node::binds_to_current_def_p): Declare.
17143         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
17144         (cgraph_node::function_symbol): Likewise.
17145         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17146         (cgraph_node::get_availability): Likewise.
17147         (cgraph_edge::binds_to_current_def_p): New inline function.
17148         (varpool_node::get_availability): Add REF parameter.
17149         (varpool_node::ultimate_alias_target): Likewise.
17150         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
17151         (symtab_node::binds_to_current_def_p): Likewise.
17152         * varpool.c (varpool_node::get_availability): Likewise.
17154 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17156         PR target/70662
17157         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
17158         Fix mode size check.
17160 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17162         * BASE-VER: Set to 7.0.0.
17164 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
17166         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
17168 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17170         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
17171         architecture revisions.
17173 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
17175         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
17176         * config/i386/i386.c (ix86_using_red_zone): No longer static.
17177         * config/i386/i386.md (stack decrement to push peepholes): Guard
17178         with !x86_using_red_zone ().
17180 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17182         PR c++/70675
17183         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17184         to dump_generic_node.
17185         (NIY): Pass also flags to do_niy.
17187 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17189         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
17190         (simd_clone_vector_of_formal_parm_types)
17191         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
17192         (simd_clone_mangle, simd_clone_create)
17193         (simd_clone_adjust_return_type, create_tmp_simd_array)
17194         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
17195         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
17196         (ipa_simd_modify_function_body, simd_clone_linear_addend)
17197         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
17198         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
17199         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
17200         * omp-simd-clone.c: ... this new file.
17201         (simd_clone_vector_of_formal_parm_types): Make it static.
17202         * Makefile.in (OBJS): Add omp-simd-clone.o.
17204 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17206         PR target/70662
17207         * config/i386/sse.md: Use proper memory operand modifiers.
17210 2016-04-15  Richard Biener  <rguenther@suse.de>
17211         Alan Modra  <amodra@gmail.com>
17213         PR tree-optimization/70130
17214         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
17215         when alignment stays not the same and no not use the realign
17216         scheme then.
17218 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17220         PR target/70669
17221         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17222         direct move handlers for KFmode. Change TFmode handlers test from
17223         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
17225 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
17227         PR c++/70594
17228         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
17229         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
17230         (inlined_polymorphic_ctor_dtor_block_p): Use it.
17231         * tree-ssa-live.c (remove_unused_scope_block_p): When
17232         in_ctor_dtor_block, avoid discarding not just BLOCKs with
17233         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
17234         block_ultimate_origin is FUNCTION_DECL.
17235         (remove_unused_locals): If current_function_decl is
17236         polymorphic_ctor_dtor_p, pass initial true to
17237         remove_unused_scope_block_p' is_ctor_dtor_block.
17239 2016-04-14  Martin Sebor  <msebor@redhat.com>
17241         PR c++/69517
17242         PR c++/70019
17243         PR c++/70588
17244         * doc/extend.texi (Variable Length): Revert.
17246 2016-04-14  Marek Polacek  <polacek@redhat.com>
17247             Jan Hubicka  <hubicka@ucw.cz>
17249         PR c++/70029
17250         * tree.c (verify_type): Disable the canonical type of main variant
17251         check.
17253 2016-04-14  Jason Merrill  <jason@redhat.com>
17255         * cfgexpand.c, expr.c: Revert previous change.
17257 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
17259         PR middle-end/70643
17260         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
17261         when building a mem ref for the incoming reduction variable.
17263 2016-04-14  Richard Biener  <rguenther@suse.de>
17265         PR tree-optimization/70614
17266         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
17267         loop if the evolution dropped to chrec_dont_know.
17268         (interpret_condition_phi): Likewise.
17270 2016-04-14  Richard Biener  <rguenther@suse.de>
17272         PR tree-optimization/70623
17273         * tree-ssa-pre.c (changed_blocks): Make global ...
17274         (compute_antic): ... local here.  Move and fix worklist
17275         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
17276         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
17277         worklist handling, dump when ANTIC_IN changed.
17278         (compute_partial_antic_aux): Remove worklist handling.
17279         (init_pre): Do not compute post dominators.  Add a comment about
17280         the CFG order chosen.
17281         (fini_pre): Do not free post dominators.
17283 2016-04-13  Martin Sebor  <msebor@redhat.com>
17285         PR c++/69517
17286         PR c++/70019
17287         PR c++/70588
17288         * doc/extend.texi (Variable Length): Document C++ specifics.
17290 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17292         PR c++/70641
17293         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
17294         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
17295         eh edges have been purged.
17297         PR c++/70594
17298         * tree-sra.c (create_access_replacement,
17299         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
17300         gets fancy name.
17301         * tree-pretty-print.c (dump_fancy_name): New function.
17302         (dump_decl_name, dump_generic_node): Use it.
17304 2016-04-13  Jason Merrill  <jason@redhat.com>
17306         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
17307         * expr.c (expand_expr_real_1): Likewise.
17309 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17311         * config/i386/i386.md (kunpckhi): Swap operands.
17312         (kunpcksi): Likewise.
17313         (kunpckdi): Likewise.
17314         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
17315         (vec_pack_trunc_<mode>): Likewise.
17317 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17319         PR debug/70628
17320         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
17322         PR middle-end/70633
17323         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
17324         gimplification turns some element into non-constant.
17326         PR debug/70628
17327         * rtl.h (convert_memory_address_addr_space_1): New prototype.
17328         * explow.c (convert_memory_address_addr_space_1): No longer static,
17329         add NO_EMIT argument and don't call convert_modes if true, pass
17330         it down recursively, remove break after return.
17331         (convert_memory_address_addr_space): Adjust caller.
17332         * simplify-rtx.c (simplify_unary_operation_1): Call
17333         convert_memory_address_addr_space_1 instead of convert_memory_address,
17334         if it returns NULL, don't simplify.
17336 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17338         PR target/70630
17339         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
17341 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17343         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17344         Bump the upper SIMDLEN limits, so that if the return type or
17345         characteristic type if the return type is void can be passed in
17346         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
17347         allowed.
17349 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17351         PR target/70640
17352         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
17353         Do not use "=" constraint on an input constraint.
17354         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17355         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17356         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17357         generates (neg (abs ...)) instead of (abs ...).
17359 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17361         PR rtl-optimization/70596
17362         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17363         just invalidate LRA data and reset them.  Adjust dump wording.
17365 2016-04-12  Martin Liska  <mliska@suse.cz>
17367         Revert
17368         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17370         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17371         estimates here.
17372         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17373         max_loop_iterations_int.
17374         (tree_unswitch_outer_loop): Likewise.
17375         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17376         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17378 2016-04-12  Tom de Vries  <tom@codesourcery.com>
17380         PR tree-optimization/68756
17381         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17382         instead of new_name.
17384 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17386         PR tree-optimization/70602
17387         * tree-sra.c (generate_subtree_copies): Don't write anything into
17388         constant pool decls.
17390         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17391         regardless whether there are depend clauses or not.
17393 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17395         PR target/70381
17396         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17397         target attribute and pragma from changing the -mfloat128
17398         and -mfloat128-hardware options.
17400         * doc/extend.texi (Additional Floating Types): Document PowerPC
17401         __float128 restrictions.
17403 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17405         PR target/70133
17406         * config/aarch64/driver-aarch64.c
17407         (aarch64_get_extension_string_for_isa_flags): New.
17408         (arch_extension): Rename to...
17409         (aarch64_arch_extension): ...This.
17410         (ext_to_feat_string): Rename to...
17411         (aarch64_extensions): ...This.
17412         (aarch64_core_data): Keep track of architecture extension flags.
17413         (cpu_data): Rename to...
17414         (aarch64_cpu_data): ...This.
17415         (aarch64_arch_driver_info): Keep track of architecture extension
17416         flags.
17417         (get_arch_name_from_id): Rename to...
17418         (get_arch_from_id): ...This, change return type.
17419         (host_detect_local_cpu): Update and reformat for renames, handle
17420         extensions through common infrastructure.
17422 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17424         PR target/70133
17425         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17426         track of a canonical flag name.
17427         (all_extensions): Likewise.
17428         (arch_to_arch_name): Also track extension flags enabled by the arch.
17429         (all_architectures): Likewise.
17430         (aarch64_parse_extension): Move to here.
17431         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17432         rework.
17433         (aarch64_rewrite_selected_cpu): Update for above change.
17434         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17435         are handled, such that the single explicit value enabled by an
17436         extension is kept seperate from the implicit values it also enables.
17437         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17438         to here.
17439         (aarch64_parse_extension): New.
17440         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17441         here to config/aarch64/aarch64-protos.h.
17442         (aarch64_parse_extension): Move from here to
17443         common/config/aarch64/aarch64-common.c.
17444         (aarch64_option_print): Update.
17445         (aarch64_declare_function_name): Likewise.
17446         (aarch64_start_file): Likewise.
17447         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17448         the canonical flag for extensions.
17449         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17450         flags.
17452 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17454         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
17455         AARCH64_FL_CRC.
17457 2016-04-09  Tom de Vries  <tom@codesourcery.com>
17459         PR tree-optimization/68953
17460         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
17461         first to last subscript.
17463 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
17465         PR tree-optimization/70586
17466         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
17467         for any calls.
17469 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
17471         PR lto/70289
17472         PR ipa/70348
17473         PR tree-optimization/70373
17474         PR middle-end/70533
17475         PR middle-end/70534
17476         PR middle-end/70535
17477         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
17478         clauses for acc parallel reductions as necessary.  Error on those
17479         that are private.
17480         * omp-low.c (scan_sharing_clauses): Don't install variables which
17481         are used in acc parallel reductions.
17482         (lower_rec_input_clauses): Remove dead code.
17483         (lower_oacc_reductions): Add support for reference reductions.
17484         (lower_reduction_clauses): Remove dead code.
17485         (lower_omp_target): Don't remap variables appearing in acc parallel
17486         reductions.
17487         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
17489 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
17491         PR middle-end/70593
17492         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
17493         with multiple SSA_NAME defs, force the outputs other than first
17494         to be live before calling live_track_process_def on each output.
17496         PR rtl-optimization/70574
17497         * fwprop.c (forward_propagate_and_simplify): Don't add
17498         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
17499         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
17500         paradoxical subregs within *loc.
17502 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
17504         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
17505         -ftree-parallelize-loops={0,1}.
17506         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17507         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17508         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17509         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17510         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17512 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
17514         PR sanitizer/70541
17515         * asan.c (instrument_derefs): If we get unknown location, extract it
17516         with EXPR_LOCATION.
17517         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
17519 2016-04-08  Tom de Vries  <tom@codesourcery.com>
17521         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
17522         implicit firstprivate clause.
17524 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17526         PR target/70566
17527         * config/arm/thumb2.md (tst + branch-> lsls + branch
17528         peephole below *orsi_not_shiftsi_si): Require that condition
17529         register is dead after the peephole.
17530         (second peephole after the above): Likewise.
17532 2016-04-08  Alan Modra  <amodra@gmail.com>
17534         PR target/70117
17535         * builtins.c (fold_builtin_classify): For IBM extended precision,
17536         look at just the high-order double to test for NaN.
17537         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
17538         test just the high double for Inf but both doubles for subnormal
17539         limit.
17541 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
17543         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
17544         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
17545         node->simdclone->mask_mode != VOIDmode masks.
17546         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
17547         earlier, use it instead of node->simdclone.
17548         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17549         Set clonei->mask_mode.
17551 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17553         PR c/70436
17554         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
17555         Pass it through to cp_parser_already_scoped_statement.
17556         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
17557         it through to cp_parser_statement.
17558         (cp_parser_statement): Pass IF_P through to
17559         cp_parser_iteration_statement.
17560         (cp_parser_pragma): Adjust call to
17561         cp_parser_iteration_statement.
17563 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17565         PR c/70436
17566         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
17567         resolve a future -Wparentheses warning.
17568         * omp-low.c (scan_sharing_clauses): Likewise.
17569         * tree-parloops.c (eliminate_local_variables): Likewise.
17571 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
17573         PR rtl-optimization/70398
17574         * lra-constraints.c (process_address_1): Check zero scale and code
17575         for reloading with zero scale.
17577 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
17579         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
17580         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
17582 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
17584         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17585         Add support for AVX512F clones, include them by default for
17586         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
17587         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
17588         up to 128.
17590         PR middle-end/70550
17591         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
17592         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
17593         firstprivate clauses.
17594         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
17595         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
17596         (lower_omp_target): Set TREE_NO_WARNING for
17597         non-addressable possibly uninitialized vars which are copied into
17598         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
17600 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
17602         * config/pa/predicates.md (integer_store_memory_operand): Accept
17603         REG+D operands with a large offset when reload_in_progress is true.
17604         (floating_point_store_memory_operand): Likewise.
17606 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17608         PR c++/70336
17609         * match.pd (nested int casts): Limit to GIMPLE.
17611 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
17613         PR ipa/66223
17614         * ipa-devirt.c (maybe_record_node): Fix comment; use
17615         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
17617 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17619         PR rtl-optimization/70542
17620         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
17621         if there are any uses other than insn or debug insns.
17623 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
17624             Jakub Jelinek  <jakub@redhat.com>
17626         PR tree-optimization/70509
17627         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
17628         Shift HOST_WIDE_INT_1U instead of 1.
17630 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
17632         PR tree-optimization/70509
17633         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
17634         of the vector base type for index.
17636 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
17638         PR target/70510
17639         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
17641 2016-04-05  Richard Biener  <rguenther@suse.de>
17643         PR tree-optimization/70526
17644         * tree-sra.c (build_ref_for_offset): Use prev_base to
17645         extract the alias pointer type.
17647 2016-04-05  Richard Biener  <rguenther@suse.de>
17649         * dse.c (struct store_info): Remove alias_set member.
17650         (struct read_info_type): Likewise.
17651         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
17652         spill_deleted, clear_alias_set_lookup): Remove.
17653         (get_group_info): Remove dead base == NULL_RTX case.
17654         (dse_step0): Remove initialization of removed variables.
17655         (delete_dead_store_insn): Reomve alias set dumping.
17656         (free_read_records): Remove alias_set handling.
17657         (canon_address): Remove alias_set_out parameter.
17658         (record_store): Remove spill_alias_set, it's always zero.
17659         (check_mem_read_rtx): Likewise.
17660         (dse_step2): Rename from ...
17661         (dse_step2_nospill): ... this.  Adjust.
17662         (scan_stores): Rename from ...
17663         (scan_stores_nospill): ... this.
17664         (scan_reads): Rename from ...
17665         (scan_reads_nospill): ... this.
17666         (scan_stores_spill, scan_reads_spill): Remove.
17667         (dse_step3_scan): Remove for_spills argument which is always false.
17668         (dse_step3): Likewise.
17669         (dse_step5): Rename from ...
17670         (dse_step5_nospill): ... this.  Remove alias_set handling.
17671         (rest_of_handle_dse): Adjust.
17673 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17675         PR target/70525
17676         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
17677         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
17678         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
17679         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
17681 2016-04-05  Richard Biener  <rguenther@suse.de>
17683         PR middle-end/70499
17684         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
17685         non-register type temporaries into SSA.
17687 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
17689         PR ipa/66223
17690         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
17691         calls when sanitizing.
17692         (possible_polymorphic_call_target_p): Fix formatting.
17694 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17695             Jakub Jelinek  <jakub@redhat.com>
17697         PR middle-end/70457
17698         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
17699         to ensure a call statement is compatible with a built-in's
17700         prototype.
17701         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
17702         Likewise.
17704 2016-04-04  Richard Biener  <rguenther@suse.de>
17706         PR rtl-optimization/70484
17707         * rtl.h (canon_output_dependence): Declare.
17708         * alias.c (canon_output_dependence): New function.
17709         * dse.c (record_store): Use canon_output_dependence rather
17710         than canon_true_dependence.
17712 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17714         PR ipa/68881
17715         * cgraph.h (symtab_node::copy_visibility_from): New function.
17716         * symtab.c (symtab_node::copy_visibility_from): New function.
17717         * ipa-visibility.c (optimize_weakref): New function.
17718         (function_and_variable_visibility): Use it.
17720 2016-04-04  Martin Liska  <mliska@suse.cz>
17722         PR hsa/70402
17723         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
17724         value that is really in range handled by SBR instruction.
17725         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
17726         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
17727         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
17729 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
17731         PR target/70416
17732         PR target/67391
17733         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
17734         set, but not for SP_REG operands.
17736 2016-04-02  Martin Sebor  <msebor@redhat.com>
17738         PR c++/67376
17739         * fold-const.c (maybe_nonzero_address): New function.
17740         (fold_comparison): Call it.  Fold equality and relational
17741         expressions involving null pointers.
17742         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
17744 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
17746         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
17747         the "Y" constraint (scalar FP 0.0 immediate).
17749         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
17750         Add the "const_double" to the list of operand constraints.
17752 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
17754         PR rtl-optimization/70467
17755         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
17756         If low word of the last operand is 0, just emit addition/subtraction
17757         for the high word.
17759 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17761         PR target/70404
17762         * config/s390/s390.c (s390_expand_insv): Check for everything
17763         constant instead of just VOIDmode stuff.
17765 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17767         PR target/70496
17768         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
17770 2016-04-01  Nathan Sidwell  <nathan@acm.org>
17772         * tree.def (TRY_CATCH_EXPR): Correct documentation.
17774 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
17776         PR rtl-optimization/70461
17777         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
17778         is necessary.
17780 2016-03-31  Martin Liska  <mliska@suse.cz>
17782         PR hsa/70399
17783         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
17784         a tree value or an immediate integer value to a buffer
17785         that is eventually copied to a BRIG section.
17786         (emit_immediate_operand): Call the function here.
17787         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
17788         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
17789         of class' fields that are removed.
17790         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
17791         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
17792         m_brig_repr_size fields.
17794 2016-03-31  Martin Liska  <mliska@suse.cz>
17796         PR hsa/70391
17797         * hsa-gen.c (hsa_function_representation::update_dominance): New
17798         function.
17799         (convert_addr_to_flat_segment): Likewise.
17800         (gen_hsa_memory_set): New alignment argument.
17801         (gen_hsa_ctor_assignment): Likewise.
17802         (gen_hsa_insns_for_single_assignment): Provide alignment
17803         to gen_hsa_ctor_assignment.
17804         (gen_hsa_insns_for_direct_call): Add new argument.
17805         (expand_lhs_of_string_op): New function.
17806         (expand_string_operation_builtin): Likewise.
17807         (expand_memory_copy): New function.
17808         (expand_memory_set): New function.
17809         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
17810         (convert_switch_statements): Change signature.
17811         (generate_hsa): Use a return value of the function.
17812         (pass_gen_hsail::execute): Do not call
17813         convert_switch_statements here.
17814         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
17815         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
17816         (hsa_function_representation::update_dominance): New function.
17818 2016-03-31  Martin Liska  <mliska@suse.cz>
17820         PR hsa/70391
17821         * hsa-brig.c (emit_directive_variable): Emit alignment
17822         according to hsa_symbol::m_align.
17823         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
17824         (dump_hsa_symbol): Dump alignment of HSA symbols.
17825         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
17826         (gen_hsa_addr_with_align): New function.
17827         (hsa_bitmemref_alignment): Use newly added function.
17828         (gen_hsa_insns_for_load): Likewise.
17829         (gen_hsa_insns_for_store): Likewise.
17830         (gen_hsa_memory_copy): New argument added.
17831         (gen_hsa_insns_for_single_assignment): Respect
17832         alignment for assignments processed via gen_hsa_memory_copy.
17833         (gen_hsa_insns_for_direct_call): Likewise.
17834         (gen_hsa_insns_for_return): Likewise.
17835         (gen_function_def_parameters): Set default alignment.
17836         * hsa.c (hsa_object_alignment): New function.
17837         (hsa_byte_alignment): Pasted function.
17838         * hsa.h (hsa_symbol::m_align): New field.
17840 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
17842         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
17843         scratch field for goto case.
17845 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
17847         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
17849 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
17851         PR target/70442
17852         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
17853         (scalar_chain::convert_insn): Call convert_op for reg
17854         moves to handle undefined registers.
17856 2016-03-31  Nathan Sidwell  <nathan@acm.org>
17858         PR c++/70393
17859         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
17860         Assert we don't want to move backwards.
17862 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
17864         PR target/70453
17865         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
17867 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
17869         PR rtl-optimization/70460
17870         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
17871         with operand from REG_LABEL_OPERAND, instead substitute
17872         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
17873         Don't do anything for REG_NON_LOCAL_GOTO jumps.
17875 2016-03-31  Martin Liska  <mliska@suse.cz>
17877         * passes.c (execute_one_pass): Do not call
17878         todo_after for a discarded function.
17880 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
17882         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
17883         (no_cost, infinite_cost): Initialize the new field.
17884         (get_computation_cost_at): Record setup cost.
17885         (determine_use_iv_cost_address): Skip cost computation for sub
17886         uses if we can estimate it without losing accuracy.
17888 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17890         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17891         estimates here.
17892         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17893         max_loop_iterations_int.
17894         (tree_unswitch_outer_loop): Likewise.
17895         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17896         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17898 2016-03-30  Richard Biener  <rguenther@suse.de>
17900         PR middle-end/70450
17901         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
17903 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
17905         PR target/70421
17906         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
17907         in gen_blendm expander.
17909 2016-03-30  Nick Clifton  <nickc@redhat.com>
17911         PR target/62254
17912         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
17913         case where we are already provided with an SImode SUBREG.
17915 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17917         PR target/70439
17918         * config/i386/i386.c (ix86_expand_epilogue): Properly check
17919         conflict between DRAP register and __builtin_eh_return.
17921 2016-03-30  Michael Matz  <matz@suse.de>
17922             Richard Biener  <rguenther@suse.de>
17924         PR ipa/12392
17925         * ipa-polymorphic-call.c (struct type_change_info): Change
17926         speculative to an unsigned allowing to limit the work we do.
17927         (csftc_abort_walking_p): New inline function..
17928         (check_stmt_for_type_change): Limit the number of may-defs
17929         skipped for speculative devirtualization to
17930         max-speculative-devirt-maydefs.
17931         * params.def (max-speculative-devirt-maydefs): New param.
17932         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
17934 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
17936         PR target/63890
17937         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
17938         and TARGET_MACHO.
17940 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
17942         PR tree-optimization/59124
17943         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
17944         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
17946 2016-03-29  Jeff Law  <law@redhat.com>
17948         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
17950 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
17952         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
17953         to HOST_WIDE_INT.
17955 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
17957         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
17958         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
17959         gcrt0.o if linking dynamically.
17961 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
17963         PR ipa/70283
17964         * ipa-devirt.c (methods_equal_p): New function.
17965         (compare_virtual_tables): Use it.
17966         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
17967         * cgraphclones.c (clone_function_name_1): Use
17968         symbol_table::symbol_suffix_separator.
17969         * coverage.c (build_var): Likewise.
17970         * symtab.c (symbol_table::symbol_suffix_separator): New.
17972 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
17974         PR rtl-optimization/70429
17975         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
17976         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
17977         mode != result_mode.
17979         PR c++/70353
17980         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
17982         PR tree-optimization/70405
17983         * ssa-iterators.h (num_imm_uses): Add missing braces.
17985 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17987         PR rtl-optimization/68695
17988         * ira-color.c (allocno_copy_cost_saving): New.
17989         (improve_allocation): Use it.
17991 2016-03-29  Richard Henderson  <rth@redhat.com>
17993         PR middle-end/70355
17994         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
17996 2016-03-29  Richard Biener  <rguenther@suse.de>
17998         PR middle-end/70424
17999         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
18000         use alignment returned by get_pointer_alignment_1 if it is
18001         bigger than BITS_PER_UNIT.
18002         * builtins.c (get_pointer_alignment_1): Do not return true
18003         for alignment extracted from SSA info.
18005 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
18007         * config/ft32/ft32.opt (mnodiv): New.
18008         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
18009         * doc/invoke.texi (FT32 Options -mnodiv): New.
18011 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
18013         PR target/70406
18014         * config/i386/i386.md (define_split, andn): Fix modes.
18016 2016-03-26  Richard Biener  <rguenther@suse.de>
18017             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18019         PR ipa/70366
18020         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
18021         instead of
18022         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
18023         as 2nd argument to cl_optimization_restore().
18025 2016-03-25  Richard Henderson  <rth@redhat.com>
18027         PR target/70120
18028         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
18029         * config/aarch64/aarch64-protos.h: Declare it.
18030         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
18032 2016-03-25  Alan Modra  <amodra@gmail.com>
18034         PR target/70052
18035         * config/rs6000/constraints.md (j): Simplify.
18036         * config/rs6000/predicates.md (easy_fp_constant): Exclude
18037         decimal float 0.D.
18038         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
18039         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
18040          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
18041         in all constraint alternatives.
18042         (movtd_64bit_nodm): Delete "j" constraint alternative.
18044 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18046         * tree-ssa-propagate.c: Enhance docs for
18047         SSA_PROP_NOT_INTERESTING.
18049 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18051         * doc/extend.texi: Fix typo in documentation to pure attribute.
18053 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
18055         PR target/70319
18056         * config/pa/pa.md (bswapdi2): Use a scratch register.
18058 2016-03-24  Richard Henderson  <rth@redhat.com>
18060         PR middle-end/69845
18061         * fold-const.c (extract_muldiv_1): Correct test for multiplication
18062         overflow.
18064 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
18066         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
18067         using ix86_expand_binary_operator instead of gen_andsi3.
18069 2016-03-24  Richard Biener  <rguenther@suse.de>
18071         PR tree-optimization/70396
18072         * tree-vect-stmts.c (vectorizable_comparison): Use
18073         get_vectype_for_scalar_type.
18075 2016-03-24  Richard Biener  <rguenther@suse.de>
18077         PR middle-end/70370
18078         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
18079         with register bases.
18081 2016-03-24  Richard Biener  <rguenther@suse.de>
18083         PR tree-optimization/70372
18084         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
18085         build_all_ones_cst to also handle vector types correctly.
18087 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18089         PR target/70381
18090         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
18091         -mfloat128 here.
18093 2016-03-23  Marek Polacek  <polacek@redhat.com>
18095         PR c++/69884
18096         * doc/invoke.texi: Document -Wignored-attributes.
18098 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18100         PR tree-optimization/69042
18101         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
18102         parameter from 30 to 40.
18104 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18106         PR tree-optimization/69042
18107         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
18108         for use with constant offset stripped in base.
18110 2016-03-23  Richard Biener  <rguenther@suse.de>
18112         PR middle-end/70251
18113         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
18114         mode compatibility check.
18115         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18117 2016-03-23  Jeff Law  <law@redhat.com>
18119         PR tree-optimization/64058
18120         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
18121         CONFLICT_COUNT.
18122         (struct ssa_conflicts): Move up earlier in the file.
18123         (conflicts_, var_map_): New static variables.
18124         (initialize_conflict_count): New function to initialize the
18125         CONFLICT_COUNT field for each conflict pair.
18126         (compare_pairs): Lazily initialize the conflict count and use it
18127         as the first tie-breaker.
18128         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
18129         and wipe conflicts_ and map_ around the call to qsort.  Remove
18130         special case for 2 coalesce pairs.
18131         * bitmap.c (bitmap_count_unique_bits): New function.
18132         (bitmap_count_bits_in_word): New function, extracted from
18133         bitmap_count_bits.
18134         (bitmap_count_bits): Use bitmap_count_bits_in_word.
18135         * bitmap.h (bitmap_count_unique_bits): Declare it.
18137 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
18139         PR target/69917
18140         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
18141         transparent alias chain for decl assembler name.
18142         * config/sol2.c (solaris_assemble_visibility): Likewise.
18144 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18146         * config/arm/arm1020e.md (1020call_op): Reduce reservation
18147         duration.
18148         (v10_fdivs): Likewise.
18149         (v10_fdivd): Likewise.
18151 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18153         PR driver/70132
18154         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
18155         to not call fclose twice on file.
18157 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
18159         PR tree-optimization/70354
18160         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18161         oprnd0 is wider than oprnd1 and there is a cast from the wider
18162         type to oprnd1, mask it with the mask of the narrower type.
18164         PR target/70321
18165         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
18166         Optimize TARGET_STV splitters, if high or low word of last argument
18167         is 0 or -1.
18169 2016-03-22  Jeff Law  <law@redhat.com>
18171         PR target/70232
18172         tree-ssa-threadbackward.c
18173         (fsm_find_control_statement_thread_paths): Correctly distinguish
18174         between old style jump threads vs FSM jump threads.
18176 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18178         PR target/70302
18179         * config/i386/i386.c (scalar_chain::convert_op): Support
18180         uninitialized register usage case.
18182 2016-03-22  Richard Biener  <rguenther@suse.de>
18184         PR middle-end/70251
18185         * genmatch.c (gen_transform): Adjust last parameter to a three-state
18186         int...
18187         (capture::gen_transform): ... to change behavior when substituting
18188         a condition into cond or not-cond expr context.
18189         (dt_simplify::gen_1): Adjust.
18190         * gimple-match-head.c: Include gimplify.h for unshare_expr.
18191         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
18192         last change and instead change to
18193         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
18194         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18196 2016-03-22  Anthony Green  <green@moxielogic.com>
18198         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
18199         issue for moxiebox targets.
18200         (CC1PLUS_SPEC): Ditto.
18202 2016-03-22  Richard Biener  <rguenther@suse.de>
18204         PR middle-end/70333
18205         * fold-const.c (extract_muldiv_1): Properly perform multiplication
18206         in the wide type.
18208 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18210         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
18212 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18214         PR target/70325
18215         * config/i386/i386.c (def_builtin): Handle
18216         OPTION_MASK_ISA_AVX512VL to be and-ed with other
18217         bits.
18218         (const struct builtin_description bdesc_special_args[]):
18219         Remove duplicate ISA bits.
18221 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
18223         PR target/70329
18224         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
18225         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
18226         in a way that works also for AVX512BW.
18228         PR target/70300
18229         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
18230         instead of source if operands[1] is xmm16 and above and
18231         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
18232         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
18234         PR c++/70295
18235         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
18236         on assign if (*from_p) is a comparison, set it to
18237         TREE_NO_WARNING (*from_p).
18239 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18241         PR middle-end/70326
18242         * lra.c (restore_scratches): Ignore deleted insns.
18244 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
18245             Jakub Jelinek  <jakub@redhat.com>
18247         PR tree-optimization/70317
18248         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
18249         to HONOR_NANS.
18251 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
18253         PR target/70327
18254         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
18255         of ix86_expand_move.
18256         (movoi): Ditto.
18257         (movti): Use general_operand for operand 1 predicate.
18259 2016-03-21  Martin Liska  <mliska@suse.cz>
18261         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
18262         insns.
18263         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
18265 2016-03-21  Martin Liska  <mliska@suse.cz>
18267         PR ipa/70306
18268         * ipa-icf.c (sem_function::parse): Skip static
18269         constructors and destructors.
18271 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18273         PR target/70296
18274         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
18275         function-like macro, peek following token(s) if it is followed
18276         by CPP_OPEN_PAREN token with optional padding in between, and
18277         if not, don't treat it like a macro.
18279 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18280             Alexander Monakov  <amonakov@ispras.ru>
18282         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
18283         for the stabs debug format.
18285 2016-03-21  Richard Biener  <rguenther@suse.de>
18287         PR tree-optimization/70310
18288         * tree-vect-generic.c (expand_vector_condition): Fold the built
18289         condition.
18291 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18293         PR target/70293
18294         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
18295         Block third alternative for AVX-512VL target,
18297 2016-03-21  Martin Liska  <mliska@suse.cz>
18299         PR hsa/70234
18300         * hsa-brig.c (emit_function_directives): Mark unemitted
18301         global variables for emission.
18302         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
18303         (get_symbol_for_decl): Likewise.
18304         * hsa.h (struct hsa_symbol): New flag.
18306 2016-03-21  Richard Biener  <rguenther@suse.de>
18308         PR tree-optimization/70288
18309         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
18310         we do not estimate unsimplified all-constant conditionals or
18311         switches as optimized away.
18313 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
18315         PR rtl-optimization/69102
18316         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
18317         when we have a readonly dependency context.
18319 2016-03-18  Jeff Law  <law@redhat.com>
18321         PR rtl-optimization/70263
18322         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
18323         (update_equiv_regs): When trying to move a store to after the insn
18324         that sets the source of the store, make sure the store occurs after
18325         the insn that sets the source of the store.  When successful note
18326         the REG_EQUIV note created in the dump file.
18328 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
18329             Bernd Schmidt  <bschmidt@redhat.com>
18331         * doc/extend.texi: Document more potential problems with basic asms.
18333 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
18335         PR rtl-optimization/70278
18336         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
18337         VOIDmode.
18339 2016-03-18  Jason Merrill  <jason@redhat.com>
18341         * calls.c (load_register_parameters): Fix zero size sibcall logic.
18343 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
18345         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
18346         values to 128b regs.
18348 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18350         PR tree-optimization/70252
18351         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
18352         boolean vector has a proper number of elements.
18353         (supportable_narrowing_operation): Likewise.
18355 2016-03-18  Tom de Vries  <tom@codesourcery.com>
18357         PR ipa/70269
18358         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18360 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
18362         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18363         instead of replace_rtx for DEBUG_INSNs.
18365 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18367         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18368         load type reservations.
18370 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
18372         PR target/70188
18373         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
18374         define_constraint for "Q" and "T" constraints.
18376 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
18378         Tweak the pipeline model for Exynos M1
18380         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
18381         model.
18383 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
18385         PR c/70264
18386         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18387         where one or both locations aren't within a line_map.
18389 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18391         PR driver/70192
18392         * opts.c (finish_options): Don't set flag_pie to the default if
18393         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
18394         if it is -1.
18396 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
18398         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18399         true as ALL_REGS argument to replace_rtx.
18401 2016-03-17  Richard Biener  <rguenther@suse.de>
18403         PR debug/70271
18404         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18405         last.
18407 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18409         PR target/70245
18410         * rtl.h (replace_rtx): Add ALL_REGS argument.
18411         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
18412         equality and assert mode is the same, instead of just rtx pointer
18413         equality.
18414         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18415         true as ALL_REGS argument to replace_rtx.
18417 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
18419         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18420         for boolean vector with vector mode only.
18421         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18423 2016-03-17  Nick Clifton  <nickc@redhat.com>
18425         PR target/70162
18426         * config/rx/rx.c (rx_print_integer): Print negative constants in
18427         decimal.
18429 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18431         PR target/70261
18432         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18434 2016-03-16  Richard Henderson  <rth@redhat.com>
18435             Richard Biener  <rguenth@suse.de>
18437         PR middle-end/70240
18438         PR middle-end/68215
18439         PR tree-opt/68714
18440         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18441         first operand as is_gimple_condexpr.
18443         PR middle-end/70240
18444         PR middle-end/68215
18445         Revert r231575
18446         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
18447         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18448         Do not gimplify the result.
18449         (do_unop): Adjust call to tree_vec_extract.
18450         (do_binop): Likewise.
18451         (do_compare): Likewise.
18452         (do_plus_minus): Likewise.
18453         (do_negate): Likewise.
18454         (expand_vector_condition): Likewise.
18455         (do_cond): Likewise.
18457 2016-03-16  Richard Henderson  <rth@redhat.com>
18459         PR target/70048
18460         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
18461         (aarch64_classify_address): Use it.
18462         (aarch64_legitimize_address): Force all subexpressions of PLUS
18463         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
18465 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
18466             Richard Biener  <rguenth@suse.de>
18468         PR target/70245
18469         * rtlanal.c (replace_rtx): For REG, if from is a REG,
18470         return to even if only REGNO is equal, and assert
18471         mode is the same.
18473 2016-03-11  Jeff Law  <law@redhat.com>
18475         PR rtl-optimization/70224
18476         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
18478 2016-03-16  Richard Henderson  <rth@redhat.com>
18480         PR middle-end/70199
18481         * function.h (struct function): Add has_forced_label_in_static.
18482         * gimplify.c (force_labels_r): Set it.
18483         * lto-streamer-in.c (input_struct_function_base): Read it.
18484         * lto-streamer-out.c (output_struct_function_base): Write it.
18485         * tree-inline.c (has_label_address_in_static_1): Remove.
18486         (copy_forbidden): Remove fndecl parameter; test
18487         has_forced_label_in_static.
18488         (inline_forbidden_p): Update call to copy_forbidden.
18489         (tree_versionable_function_p): Likewise.
18490         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
18491         (chkp_versioning): Likewise.
18492         * tree-inline.h (copy_forbidden): Update decl.
18494 2016-03-16  Marek Polacek  <polacek@redhat.com>
18496         PR c/70093
18497         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
18498         function being thunked if the result type doesn't have fixed size.
18499         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
18500         doesn't have fixed size.
18502 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
18504         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
18505         reporting malformed loop nest.
18507 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18509         PR lto/70187
18510         * ipa-devirt.c (possible_polymorphic_call_targets): Move
18511         nodes.length () == 1 test to before first nodes[0] access.
18513 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18515         PR tree-optimization/68715
18516         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
18517         single_pred_p test.
18519 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18521         PR tree-optimization/68809
18522         * graphite-scop-detection.c (same_close_phi_node): Test if result types
18523         are the same.
18525 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
18526             Sandra Loosemore  <sandra@codesourcery.com>
18528         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
18529         on leaf attribute. Mention ELF interposition problems.
18531 2016-03-16  Alan Modra  <amodra@gmail.com>
18533         PR rtl-optimization/69195
18534         PR rtl-optimization/47992
18535         * ira.c (indirect_jump_optimize): Ignore artificial defs.
18536         Add comments.
18538 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18540         PR bootstrap/69513
18541         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
18543 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18545         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
18547 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
18549         PR rtl-optimization/70222
18550         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
18551         optimization if mode is different from result_mode, queue up masking
18552         of the result in outer_op.  Formatting fix.
18554         PR middle-end/70239
18555         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
18556         of safe_grow.
18558 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18560         PR rtl-optimization/69032
18561         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
18562         looping backwards over basic block insns.
18564 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18566         PR target/66660
18567         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
18568         to non-speculative when propagating trap bits.
18570 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18572         PR rtl-optimization/63384
18573         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
18574         DEBUG_INSN_P insns.
18576 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18578         PR target/64411
18579         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
18580         factored out from ...
18581         (sched_analyze_insn): ... here.
18582         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
18583         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
18584         get_implicit_reg_pending_clobbers in it.
18585         (setup_id_reg_sets): Use setup_id_implicit_regs.
18586         (deps_init_id): Ditto.
18588 2016-03-15  Tom de Vries  <tom@codesourcery.com>
18590         PR ipa/70161
18591         * cgraph.c (cgraph_node::get_body): Save, reset and restore
18592         dump_file_name.
18593         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
18594         execute_function_dump.
18595         (execute_one_pass): Don't dump function if it will be dumped after ipa
18596         transform.
18598 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
18600         * genrecog.c (match_pattern_2): If pred is NULL don't call
18601         safe_predicate_mode on it.
18603 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
18605         PR middle-end/70219
18606         * lra-constraints.c (delete_move_and_clobber): Change assertion
18607         to also allow dregno == 0.
18609 2016-03-14  Richard Henderson  <rth@redhat.com>
18611         PR tree-opt/68714
18612         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
18613         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
18614         (reassociate_bb): Use optimize_vec_cond_expr; avoid
18615         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
18616         on vectors.
18618 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
18620         PR target/70083
18621         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
18622         regs.
18623         (lra_create_live_ranges_1): initialize hard register biggest_mode to
18624         VOIDmode.
18625         * lra-constraints.c (split_reg): For hard regs, try to find the
18626         biggest single-register mode used in the function.
18628 2016-03-14  Richard Biener  <rguenther@suse.de>
18630         PR tree-optimization/56365
18631         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
18632         constants to compare against.
18634 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
18636         PR target/70098
18637         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18638         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
18639         (define_split for the GPR case): Use int_reg_operand instead of
18640         gpc_reg_operand for the output.
18642 2016-03-14  Tom de Vries  <tom@codesourcery.com>
18644         PR tree-optimization/70045
18645         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
18646         create_empty_if_region_on_edge argument.
18648 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
18650         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
18651         (STACK_CHECK_PROTECT): Likewise.
18652         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18653         (STACK_CHECK_PROTECT): Likewise.
18654         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18655         (STACK_CHECK_PROTECT): Likewise.
18656         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
18657         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18658         (STACK_CHECK_PROTECT): Likewise.
18660 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
18662         PR rtl-optimization/69307
18663         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
18664         registers in modes that span more than one register.
18666 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
18668         PR target/69614
18669         * lra-constraints.c (delete_move_and_clobber): New.
18670         (remove_inheritance_pseudos): Use it.
18672 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
18674         PR ada/70017
18675         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
18676         the libcall is LCT_THROW.
18677         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
18678         for the checking routine.
18680 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18682         PR target/70131
18683         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
18684         optimization if we have direct move.
18685         (roundu32<mode>2_fprs): Likewise.
18687 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
18689         PR target/70123
18690         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
18691         be rematerialized.
18692         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
18693         Arguments swapped.  All callers changed.  Take reg_renumber into
18694         account, and Calculate and compare register ranges for hard regs.
18696 2016-03-11  Jeff Law  <law@redhat.com>
18698         PR tree-optimization/70190
18699         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18700         Handle cases where we can not extract the taken edge, even though we
18701         found a constant value.
18703         PR tree-optimization/64058
18704         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
18705         (num_coalesce_pairs): Move up earlier in file.
18706         (find_coalesce_pair): Initialize the INDEX field for each pair
18707         discovered.
18708         (compare_pairs): No longer sort on the elements in each pair.
18709         Instead break ties with the index of the coalesce pair.
18711 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18713         PR target/70002
18714         * config/aarch64/aarch64-protos.h
18715         (aarch64_save_restore_target_globals): New prototype.
18716         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
18717         Call the above when popping pragma.
18718         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
18719         New function.
18720         (aarch64_set_current_function): Rewrite using the above.
18722 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
18724         PR tree-optimization/70177
18725         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
18726         (extract_ops_from_tree): ... this.  In the 2 argument
18727         overload remove _1 suffix.
18728         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
18729         (extract_ops_from_tree): ... this.
18730         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
18731         Adjust callers.
18732         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
18733         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
18734         extract_ops_from_tree instead of 2 operand one.
18736 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
18738         PR tree-optimization/70013
18739         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
18740         for constant-pool entries.
18742 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
18744         PR rtl-optimization/70174
18745         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
18746         followed by gen_lowpart on force_reg instead of just gen_lowpart.
18748         PR tree-optimization/70169
18749         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
18750         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
18751         for unknown codes.
18753 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
18754             Jakub Jelinek  <jakub@redhat.com>
18756         PR target/70160
18757         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
18758         of uninitialized values.
18760 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18762         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
18763         define_expand.
18764         ("*trunctddd2"): New pattern definition.
18765         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
18766         TD->DD truncation.
18768 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18770         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
18771         definitions for BFP and DFP rounding modes.
18772         ("fixuns_truncdddi2", "fixuns_trunctddi2")
18773         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
18774         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
18775         ("fix_trunctf<mode>2"): Use the new constants instead of magic
18776         numbers.
18778 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18780         * config/s390/constraints.md: Adjust comment.
18781         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
18782         s390_decompose_addrstyle_without_index.
18783         * config/s390/predicates.md (shift_count_or_setmem_operand):
18784         Rename to setmem_operand.
18785         * config/s390/s390-protos.h
18786         (s390_decompose_shift_count): Rename to
18787         s390_decompose_addrstyle_without_index.
18788         * config/s390/s390.c (s390_decompose_shift_count)
18789         (s390_mem_constraint, print_shift_count_operand)
18790         (print_operand_address, print_operand): Rename
18791         s390_decompose_shift_count to
18792         s390_decompose_addrstyle_without_index and rename
18793         print_shift_count_operand to print_addrstyle_operand troughout the
18794         file.
18795         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
18796         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
18797         Rename shift_count_or_setmem_operand to setmem_operand.
18798         * config/s390/vx-builtins.md ("vec_insert<mode>")
18799         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
18800         nonmemory_operand.
18802 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18804         PR target/70168
18805         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
18806         Handle overlapping retval and newval.
18808 2016-03-10  Nick Clifton  <nickc@redhat.com>
18810         PR target/7044
18811         * config/aarch64/aarch64.c
18812         (aarch64_override_options_after_change_1): When forcing
18813         flag_omit_frame_pointer to be true, use a special value that can
18814         be detected if this function is called again, thus preventing
18815         flag_omit_leaf_frame_pointer from being forced to be false.
18817 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18819         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18820         Set x_flag_omit_leaf_frame_pointer when handling
18821         -momit-leaf-frame-pointer.
18823 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18825         PR lto/69589
18826         * cgraph.c (cgraph_node::dump): Dump split_part and
18827         indirect_call_target.
18828         * cgraph.h (cgraph_node): Add indirect_call_target flag.
18829         * ipa.c (has_addr_references_p): Cleanup.
18830         (is_indirect_call_target_p): New.
18831         (walk_polymorphic_call_targets): Do not mark virtuals that may be
18832         called indirectly as local.
18833         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
18835 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18837         PR ipa/69630
18838         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
18839         on cxa_pure_virtual.
18841 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18843         PR lto/69589
18844         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
18846 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18848         PR lto/69589
18849         * tree.c (need_assembler_name_p): Only record main variant type names.
18851 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
18853         PR target/70113.
18854         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
18855         Always define to 0 or 1.
18856         (TARGET_FIX_ERR_A53_843419): New macro.
18857         * config/aarch64/aarch64-elf-raw.h
18858         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
18859         * config/aarch64/aarch64-linux.h: Likewise.
18860         * config/aarch64/aarch64.c
18861         (aarch64_override_options_after_change_1): Do not default
18862         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
18863         843419 is on.
18864         (aarch64_attributes): Handle fix-cortex-a53-843419.
18865         (aarch64_can_inline_p): Likewise.
18866         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
18868 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
18869             Jakub Jelinek  <jakub@redhat.com>
18871         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
18872         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
18873         DECL_COMMONS if flag_unconstrained_commons is set.
18874         * tree-dfa.c (get_ref_base_and_extent): Likewise.
18875         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
18876         (funconstrained-commons): Document.
18878 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
18880         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
18881         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
18883 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
18885         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
18886         has a proper number of elements.
18888 2016-03-10  Alan Modra  <amodra@gmail.com>
18890         PR rtl-optimization/69195
18891         PR rtl-optimization/47992
18892         * ira.c (recorded_label_ref): Delete.
18893         (update_equiv_regs): Return void.
18894         (indirect_jump_optimize): New function.
18895         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
18896         before regstat_compute_ri.  Don't rebuild_jump_labels here.
18897         Delete update_regstat.
18899 2016-03-10  Richard Biener  <rguenther@suse.de>
18901         PR tree-optimization/70128
18902         * tree-ssa-structalias.c (set_uids_in_ptset): Set
18903         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
18905 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
18907         PR tree-optimization/70152
18908         * tree-sra.c (replace_removed_params_ssa_names): Copy over
18909         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
18911         PR target/70086
18912         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
18913         instead of gen_sse2_loadlpd.
18914         * config/i386/sse.md (*vec_concatv2df): Rename to...
18915         (vec_concatv2df): ... this.
18917         PR tree-optimization/70127
18918         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
18920 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
18922         PR c/68473
18923         PR c++/70105
18924         * diagnostic-show-locus.c (compatible_locations_p): New function.
18925         (layout::layout): Sanitize ranges using compatible_locations_p.
18927 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
18929         PR c/68473
18930         PR c++/70105
18931         * diagnostic-show-locus.c (layout_range::layout_range): Replace
18932         location_range param with three const expanded_locations * and a
18933         bool.
18934         (layout::layout): Replace call to
18935         rich_location::lazily_expand_location with get_expanded_location.
18936         Extract the range and perform location expansion here, passing
18937         the results to the layout_range ctor.
18938         * diagnostic.c (source_range::debug): Delete.
18939         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
18940         of rich_location::get_expanded_location.
18941         * gcc-rich-location.c (get_range_for_expr): Delete.
18942         (gcc_rich_location::add_expr): Reimplement to avoid the
18943         rich_location::add_range overload that took a location_range,
18944         passing a location_t instead.
18946 2016-03-09  Richard Biener  <rguenther@suse.de>
18947         Jakub Jelinek  <jakub@redhat.com>
18949         PR tree-optimization/70138
18950         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
18951         Also skip vect_double_reduction_def.
18953 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
18955         PR target/70049
18956         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
18957         if the operand is "m".
18959 2016-03-09  Nathan Sidwell  <nathan@acm.org>
18961         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
18963 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18965         * config/i386/i386.c (processor_target_table): Fix cost table
18966         intialization order for znver1.
18968 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
18970         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
18971         - becuase -> because.
18972         * ipa-reference.c (ignore_module_statics): Likewise.
18973         * cgraph.c (cgraph_node::get_body): Likewise.
18974         * ipa-inline.c (early_inliner): Likewise.
18975         * ipa-devirt.c (types_same_for_odr): Likewise.
18976         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
18977         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
18979 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18981         * tree-ssa-math-opts.c: Fix typo in comment.
18983 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
18985         PR target/70110
18986         * config/i386/i386.c (scalar_chain::make_vector_copies,
18987         scalar_chain::convert_reg): Call end_sequence in between
18988         get_insns and emit_conversion_insns rather than after both
18989         calls.
18991 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
18993         PR target/70064
18994         * config/i386/i386.h (machine_function): Add
18995         pc_thunk_call_expanded flag.
18996         (ix86_pc_thunk_call_expanded): New define.
18997         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
18998         (*set_got): Rename insn pattern from set_got.
18999         (*set_got_labelled): Rename inst pattern from set_got_labelled.
19000         * config/i386/i386.c (ix86_compute_frame_layout): Use
19001         ix86_pc_thunk_call_expanded to prevent red-zone.
19003 2016-03-07  Martin Jambor  <mjambor@suse.cz>
19005         * hsa.h (hsa_get_ctor_statements): Declare.
19006         (hsa_get_dtor_statements): Likewise.
19007         (hsa_get_kernel_dispatch_type): Likewise.
19008         * hsa.c (hsa_get_ctor_statements): New function.
19009         (hsa_get_dtor_statements): Likewise.
19010         (hsa_get_kernel_dispatch_type): Likewise.
19011         * hsa-brig.c (hsa_cdtor_statements): Removed.
19012         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
19013         hsa_get_dtor_statements.
19014         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
19015         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
19017 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19019         * config/arm/arm-cores.def (cortex-r8): New.
19020         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
19021         * config/arm/arm-tune.md: Likewise.
19022         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
19024 2016-03-07  Martin Sebor  <msebor@redhat.com>
19026         PR rtl-optimization/19705
19027         * doc/invoke.texi (Options That Control Optimization): Clarify
19028         -fno-branch-count-reg.
19030 2016-02-26  Richard Biener  <rguenther@suse.de>
19031             Jeff Law  <law@redhat.com>
19033         PR tree-optimization/69740
19034         * cfghooks.c (remove_edge): Request loop fixups if we delete
19035         an edge that might turn an irreducible loop into a natural
19036         loop.
19037         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
19038         Move after definition of loops_state_clear.
19040 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
19042         PR rtl-optimization/69052
19043         * rtlanal.c (commutative_operand_precedence): Set higher precedence
19044         to CONST_WIDE_INT.
19046 2016-03-07  Tom de Vries  <tom@codesourcery.com>
19048         PR tree-optimization/70116
19049         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
19050         is_tm_ending stmts and ubsan/asan internal functions.
19051         (find_duplicate): Use it.  Don't test is_tm_ending here.
19053 2016-03-07  Richard Biener  <rguenther@suse.de>
19055         PR tree-optimization/70115
19056         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
19057         (propagate_constants_for_unrolling): Use replace_uses_by.
19059 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
19061         PR middle-end/69916
19062         * omp-low.c (struct oacc_loop): Add ifns.
19063         (new_oacc_loop_raw): Initialize it.
19064         (finish_oacc_loop): Clear mask & flags if no ifns.
19065         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
19066         (oacc_loop_xform_loop): Add ifns arg & adjust.
19067         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
19069 2016-03-07  Richard Henderson  <rth@redhat.com>
19071         PR rtl-opt/70061
19072         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
19073         (insert_value_copy_on_edge): Likewise.
19075 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19077         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
19079 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19081         PR target/62281
19082         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
19084 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19086         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
19088 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19090         Fix sseimul type attribute.
19091         * config/i386/znver1.md
19092         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
19093         znver1_sseimul_avx256_load) : Fix the type attribute.
19094         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
19095         pipe usage and latency.
19097 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
19099         PR c++/70084
19100         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
19101         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
19102         to the right type.
19104 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19106         PR c/69973
19107         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
19109         PR rtl-optimization/69941
19110         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
19111         the reg share its mode.
19113 2016-03-04  Jeff Law  <law@redhat.com>
19115         PR tree-optimization/69196
19116         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19117         If the both SSA_NAMEs are anonymous, then consider them unassociated
19118         and include the PHI in the statement count.
19120 2016-03-05  Tom de Vries  <tom@codesourcery.com>
19122         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
19123         construct in oacc routine.  Check for oacc region in oacc routine.
19125 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19127         PR target/70062
19128         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
19129         2016-02-22 changes, instead don't recurse if RECUR is already true.
19130         Don't change *dynamic_check if RECUR.  Adjust recursive caller
19131         to pass true to the new argument.
19132         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
19134         PR target/70059
19135         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19136         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
19137         fixes.
19138         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
19140 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19142         PR rtl-optimization/57676
19143         * lra-assigns.c (lra_assign): Guard test for maximum iterations
19144         with flag_checking.
19146 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
19148         * tree-vect-patterns.c (search_type_for_mask): Handle
19149         comparison of booleans.
19151 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19153         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
19154         Fix @xref usage.
19156         PR debug/69947
19157         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
19158         all other ops that have dw_val_class_die_ref operands,
19159         and DW_OP_GNU_entry_value.
19161 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19163         PR rtl-optimization/69904
19164         * config/arm/arm.c (arm_cannot_copy_insn_p):
19165         Return true for load-exclusive instructions.
19167 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
19169         PR target/70021
19170         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
19171         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
19172         the pattern no matter if it is used just by non-pattern, pattern
19173         or mix thereof.
19174         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
19175         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19176         oprnd1 def_stmt is in pattern, don't look through it.
19178 2016-03-03  Marek Polacek  <polacek@redhat.com>
19180         PR middle-end/70050
19181         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
19183 2016-03-03  Martin Liska  <mliska@suse.cz>
19185         PR tree-optimization/70043
19186         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
19187         previous statement if we see a debug statement.
19189 2016-03-03  Richard Biener  <rguenther@suse.de>
19191         PR tree-optimization/55936
19192         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
19193         parameter and guard unsafe equivalence use.
19194         (vrp_evaluate_conditional_warnv_with_ops): Always use
19195         safe equivalences but not via the quadratic compare_names
19196         helper.
19198 2016-03-03  Michael Collison  <michael.collison@linaro.org>
19200         PR target/70014
19201         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
19202         for operand 1 to s_register_operand. Change predicate for operand
19203         2 to arm_not_immediate_operand.
19205 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
19207         * doc/tm.texi: Regenerated.
19209 2016-03-02  Richard Henderson  <rth@redhat.com>
19211         PR rtl-opt/67145
19212         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
19213         simplification when all args are positive non-fixed registers.
19215 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19217         * target.def (lra_p): Specify that new ports should use LRA.
19219 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19221         PR libgomp/69555
19222         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
19223         gimplify_type_sizes the type they refer to.
19224         (omp_notice_variable): Handle reference vars to VLAs.
19225         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
19226         reference to VLA decls in the second pass instead of first pass.
19228 2016-03-02  Tom de Vries  <tom@codesourcery.com>
19230         PR tree-optimization/68659
19231         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
19232         new_expr == NULL_TREE.
19233         (get_new_name): Handle ADDR_EXPR.
19235 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
19237         PR rtl-optimization/69052
19238         * loop-invariant.c (canonicalize_address): New function.
19239         (inv_can_prop_to_addr_use): Check validity of address expression
19240         which is canonicalized by above function.
19242 2016-03-02  Alan Modra  <amodra@gmail.com>
19244         PR ipa/69990
19245         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
19246         larger alignment.
19248 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19250         PR target/70028
19251         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
19252         (*movhi_internal): Put mask moves from and to memory separately
19253         from moves from/to GPRs.
19255 2016-03-02  Richard Biener  <rguenther@suse.de>
19257         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
19258         GENERIC expressions in GIMPLE.
19260 2016-03-02  Richard Biener  <rguenther@suse.de>
19262         * config/i386/i386.c (type_natural_mode): Fix typo.
19264 2016-03-02  Nick Clifton  <nickc@redhat.com>
19266         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
19268 2016-03-02  Richard Biener  <rguenther@suse.de>
19269             Uros Bizjak  <ubizjak@gmail.com>
19271         PR target/67278
19272         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
19274 2016-03-02  Richard Biener  <rguenther@suse.de>
19276         PR middle-end/67278
19277         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
19279 2016-03-02  Marek Polacek  <polacek@redhat.com>
19281         PR c/67854
19282         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
19283         "is promoted to" warning.
19285 2016-03-01  DJ Delorie  <dj@redhat.com>
19287         * config.gcc: Deprecate mep-*.
19289 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
19291         PR middle-end/70025
19292         * lra-constraints.c (regno_val_use_in): New.
19293         (match_reload): Use it instead of regno_use_in.
19295 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19297         PR rtl-optimization/70007
19298         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
19299         references present in REG_EQUAL notes attached to non-SET patterns.
19301 2016-03-01  Jeff Law  <law@redhat.com>
19303         PR tree-optimization/69196
19304         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19305         Appropriately clamp the number of statements to copy when the
19306         thread path does not traverse a loop backedge.
19308         PR tree-optimization/69196
19309         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19310         Do count some PHIs in the thread path against the insn count.  Decrease
19311         final statement count by one as the control statement in the last
19312         block will get removed.  Remove special cased code for handling PHIs
19313         in the last block.
19315 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
19317         PR target/70027
19318         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
19319         asm dialect alternatives to explicit GOTPCREL calls.
19321 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19323         PR ada/70017
19324         * ira.c (do_reload): Issue warning for generic stack checking here...
19325         * reload1.c (reload): ...instead of here and streamline it.
19327 2016-03-01  Nick Clifton  <nickc@redhat.com>
19329         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
19331 2016-03-01  Richard Biener  <rguenther@suse.de>
19333         PR tree-optimization/69983
19334         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
19335         types and fall back to operand_equal_p.
19337 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19339         Revert
19340         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19342         * config/s390/constraints.md ("jm8"): New constraint.
19343         * config/s390/predicates.md ("const_int_8bitset_operand"): New
19344         predicate.
19345         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
19346         into ...
19347         ("*setmem_long<setmem_and>"): New pattern.
19348         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
19349         into ...
19350         ("*setmem_long_31z<setmem_and>"): New pattern.
19351         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
19352         New substitution rules with the required attributes.
19355 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19357         Revert
19358         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19360         * gensupport.c (process_substs_on_one_elem): Split loop to
19361         complete mark_operands_used_in_match_dup on all expressions in the
19362         vector first.
19363         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19364         and remove function.
19366 2016-03-01  Richard Biener  <rguenther@suse.de>
19368         PR middle-end/70022
19369         * fold-const.c (fold_indirect_ref_1): Fix range checking for
19370         vector BIT_FIELD_REF extract.
19372 2016-03-01  Richard Biener  <rguenther@suse.de>
19374         PR tree-optimization/69994
19375         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19377 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
19379         PR tree-optimization/69956
19380         * tree-vect-stmts.c (supportable_widening_operation): Support
19381         multi-step conversion of boolean vectors.
19382         (supportable_narrowing_operation): Likewise.
19384 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19386         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19387         anymore.
19389 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19391         * config/s390/subst.md (DSI_VI): New mode iterator.
19392         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19393         * config/s390/vector.md ("vec_set<mode>"): Move expander before
19394         the insn definition.
19395         ("*vec_set<mode>"): Change predicate and add alternative to
19396         support only either register or const_int operands as element
19397         selector.
19398         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19399         operands.
19400         ("vec_extract<mode>"): New expander.
19401         ("*vec_extract<mode>"): New insn definition supporting reg and
19402         const_int element selectors.
19403         ("*vec_extract<mode>_plus"): New insn definition supporting
19404         reg+const_int element selectors.
19405         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19406         following expander+insn definition.
19407         ("<vec_shifts_name><mode>3"): New expander.
19408         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19410 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19412         * config/s390/s390.md ("*tabort_1"): Change predicate to
19413         nonmemory_operand.  Add a second alternative to cover
19414         register as well as const int operands.
19415         ("*tabort_1_plus"): New pattern definition.
19417 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19419         * config/s390/s390.md ("*ashrdi3_cc_31")
19420         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19421         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19422         Merge insn definitions into ...
19423         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19424         New pattern definition.
19425         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19426         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19427         ("*ashr<mode>3_and"): Merge insn definitions into ...
19428         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19429         New pattern definition.
19430         * config/s390/subst.md ("addr_style_op_cc_subst")
19431         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19432         substitutions patterns plus attributes.
19433         Add ashiftrt to SUBST iterator.
19435 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19437         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19438         op2 to nonmemory_operand.
19439         ("*<shift>di3_31", "*<shift>di3_31_and"):
19440         Merge into single pattern definition ...
19441         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19442         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19443         pattern definition ...
19444         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19445         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19446         iterator.
19448 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19450         * config/s390/predicates.md (const_int_6bitset_operand): New
19451         predicate.
19452         * config/s390/s390.md: Include subst.md.
19453         ("rotl<mode>3"): New expander.
19454         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
19455         ...
19456         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
19457         * config/s390/subst.md: New file.
19459 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19461         * config/s390/s390.md ("op_type", "atype", "length" attributes):
19462         Remove RRR type.  It doesn't really exist.
19463         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
19464         attributes.
19465         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19466         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
19467         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
19468         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
19469         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
19470         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
19471         `enabled' attribute.
19473 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19475         * gensupport.c (process_substs_on_one_elem): Split loop to
19476         complete mark_operands_used_in_match_dup on all expressions in the
19477         vector first.
19478         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19479         and remove function.
19481 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19483         PR target/69706
19484         * config/sparc/sparc.c (NWORDS_UP): Rename to...
19485         (CEIL_NWORDS): ...this.  Use CEIL macro.
19486         (compute_fp_layout): Adjust to above renaming.
19487         (function_arg_union_value): Likewise.
19488         (sparc_arg_partial_bytes): Likewise.
19489         (sparc_function_arg_advance): Likewise.
19491 2016-02-29  Jeff Law  <law@redhat.com>
19493         PR tree-optimization/70005
19494         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
19495         where an object with a boolean range is compared against a value
19496         outside [0..1].
19498         PR tree-optimization/69999
19499         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
19500         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
19501         loop cleanups.
19503 2016-02-29  Richard Biener  <rguenther@suse.de>
19505         PR tree-optimization/69994
19506         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
19507         (get_unary_op): Look through nop conversions.
19508         (ops_equal_values_p): New function, look for equality diregarding
19509         nop conversions.
19510         (eliminate_plus_minus_pair): Use ops_equal_values_p
19511         (repropagate_negates): Do not use get_unary_op here.
19513 2016-02-29  Martin Liska  <mliska@suse.cz>
19515         * system.h: Poison ENABLE_CHECKING macro.
19517 2016-02-29  Martin Liska  <mliska@suse.cz>
19519         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
19520         is presented in dump flags.
19521         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19522         (hsa_regalloc): Likewise.
19524 2016-02-19  Richard Biener  <rguenther@suse.de>
19526         PR tree-optimization/69980
19527         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
19528         permutation of those we need to keep.
19530 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19532         PR target/69706
19533         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
19534         (NWORDS_UP): ...this
19535         (init_cumulative_args): Minor tweaks.
19536         (sparc_promote_function_mode): Likewise.
19537         (scan_record_type): Delete.
19538         (traverse_record_type): New function template.
19539         (classify_data_t): New structure type.
19540         (classify_registers): New inline function.
19541         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
19542         exhausted.  Instantiate traverse_record_type on classify_registers and
19543         deal with the case of a structure passed in slot #15 with no FP field
19544         in the first word.
19545         (assign_data_t): New structure type.
19546         (compute_int_layout): New static function.
19547         (compute_fp_layout): Likewise.
19548         (count_registers): New inline function.
19549         (assign_int_registers): New static function.
19550         (assign_fp_registers): Likewise.
19551         (assign_registers): New inline function.
19552         (function_arg_record_value_1): Delete.
19553         (function_arg_record_value_2): Likewise.
19554         (function_arg_record_value_3): Likewise.
19555         (function_arg_record_value): Adjust to above changes.  Instantiate
19556         traverse_record_type on count_registers to first count the number of
19557         registers to be used and then on assign_registers to assign them.
19558         (function_arg_union_value): Adjust to above renaming.
19559         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
19560         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
19561         case of a structure passed in slot #15
19562         (sparc_function_arg_advance): Likewise.
19563         (function_arg_padding): Minor tweak.
19565 2016-02-29  Richard Biener  <rguenther@suse.de>
19567         PR tree-optimization/69720
19568         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
19569         the adjustment_def path for possibly vectorized defs.
19570         (vect_create_epilog_for_reduction): Handle vectorized initial
19571         defs properly.
19573 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
19575         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
19577 2016-02-27  Jeff Law  <law@redhat.com>
19579         Revert
19580         2016-02-26  Richard Biener  <rguenther@suse.de>
19581                     Jeff Law  <law@redhat.com>
19583         PR tree-optimization/69740
19584         * cfghooks.c (remove_edge): Request loop fixups if we delete
19585         an edge that might turn an irreducible loop into a natural
19586         loop.
19588 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
19590         PR rtl-optimization/69896
19591         * tree-vect-generic.c (get_compute_type): Avoid single element
19592         vector types.
19594 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
19596         Rename the AArch64 tuning option and related functions to enable the
19597         Newton series for the reciprocal square root to reflect its
19598         approximative characteristic.
19600         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
19601         function to "aarch64_emit_approx_rsqrt".
19602         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
19603         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
19604         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
19605         (xgene1_tunings): Likewise.
19606         (use_rsqrt_p): Likewise.
19607         (aarch64_emit_swrsqrt): Use new function name.
19608         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
19609         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
19610         text explaining this option.
19611         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
19613 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
19615         PR target/69969
19616         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19617         complain about -mallow-movmisalign without -mvsx if
19618         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
19620 2016-02-26  Joel Sherrill  <joel@rtems.org>
19622         * config.gcc: Add x86_64-*-rtems*.
19623         * config/i386/rtems-64.h: New file.
19625 2016-02-26  Joel Sherrill  <joel@rtems.org>
19627         * config.gcc: Add aarch64-*-rtems*.
19628         * config/aarch64/rtems.h: New file.
19630 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
19632         PR target/69946
19633         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
19634         shift amount using %h.  Add comment.
19636 2016-02-26  Richard Biener  <rguenther@suse.de>
19637             Jeff Law  <law@redhat.com>
19639         PR tree-optimization/69740
19640         * cfghooks.c (remove_edge): Request loop fixups if we delete
19641         an edge that might turn an irreducible loop into a natural
19642         loop.
19644 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19646         PR middle-end/69920
19647         * tree-sra.c (sra_modify_assign): Do not remove loads of
19648         uninitialized aggregates to SSA_NAMEs.
19650 2016-02-26  Richard Henderson  <rth@redhat.com>
19652         PR target/69709
19653         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
19654         pseudo in case the target rtx matches the source of the left
19655         shift.
19657 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19659         PR hsa/69568
19660         * hsa.h (hsa_type_packed_p): Declare.
19661         * hsa.c (hsa_type_packed_p): New function.
19662         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
19663         loads.
19664         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
19665         * hsa-brig.c (emit_basic_insn): Likewise.
19667 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19669         pr hsa/69674
19670         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
19671         pointers.
19672         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
19674 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19676         * hsa.h (is_a_helper): New overload for hsa_op_immed for
19677         hsa_op_with_type operands.
19678         (hsa_unsigned_type_for_type): Declare.
19679         * hsa.c (hsa_unsigned_type_for_type): New function.
19680         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
19681         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
19682         the finalizer.  Do not emit extra move.
19684 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19686         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
19687         atomic operations in private segment.
19689 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19691         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
19692         statements to wi->info.  Also disallow omp simd constructs.
19693         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
19694         for not gridifying.  Dump special string for omp_for.
19696 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19698         PR target/69245
19699         * config/aarch64/aarch64.c (aarch64_set_current_function):
19700         Save/restore target globals when switching to
19701         target_option_default_node.
19703 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19705         PR target/69613
19706         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
19707         Return 0 if !SHIFT_COUNT_TRUNCATED.
19709 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
19710             Eric Botcazou  <ebotcazou@adacore.com>
19712         PR rtl-optimization/69891
19713         * dse.c (scan_insn): If we can't figure out memset arguments
19714         or they are non-constant, call clear_rhs_from_active_local_stores.
19716 2016-02-26  Martin Liska  <mliska@suse.cz>
19718         * doc/extend.texi: Mention clog10, clog10f an clog10l
19719         in Builtins section.
19721 2016-02-26  Martin Liska  <mliska@suse.cz>
19723         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
19724         CHECKING_P.
19725         (resolve_args_picking_1): Likewise.
19726         * dwarf2out.h (struct GTY): Likewise.
19728 2016-02-26  Martin Liska  <mliska@suse.cz>
19730         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
19731         with flag_checking.
19732         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19734 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19735             Martin Liska  <mliska@suse.cz>
19737         * doc/install.texi: Mention --enable-valgrind-annotations.
19739 2016-02-26  Richard Biener  <rguenther@suse.de>
19741         PR tree-optimization/69551
19742         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
19743         looking through aliases adjust DECL_PT_UID to refer to the
19744         ultimate alias target.
19746 2016-02-25  Martin Liska  <mliska@suse.cz>
19748         PR middle-end/69919
19749         * alloc-pool.c (after_memory_report): New variable.
19750         * alloc-pool.h (base_pool_allocator ::release): Do not use
19751         the infrastructure if after_memory_report.
19752         * toplev.c (toplev::main): Mark after memory report.
19754 2016-02-25  Richard Biener  <rguenther@suse.de>
19756         PR tree-optimization/48795
19757         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
19759 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
19761         PR driver/68463
19762         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
19763         offloading is enabled and -fopenacc or -fopenmp is specified.
19764         (CRTOFFLOADEND): Likewise.
19765         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
19766         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
19767         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
19768         (offload_objects_file_name): New static var.
19769         (tool_cleanup): Remove offload_objects_file_name file.
19770         (find_offloadbeginend): Replace with ...
19771         (find_crtoffloadtable): ... this.
19772         (run_gcc): Remove offload_argc and offload_argv.
19773         Get offload_objects_file_name from -foffload-objects=... option.
19774         Read names of object files with offload from this file, pass them to
19775         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
19776         don't pass offloadbegin and offloadend to the linker.  Don't pass
19777         offload non-LTO files to the linker, because now they're not claimed.
19779 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
19781         PR ipa/69630
19782         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19783         on builtin_unreachable.
19785 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
19787         PR rtl-optimization/69896
19788         * regcprop.c: Include cfgrtl.h.
19789         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
19790         than remembered mode, either delete it (if noop_move_p), or
19791         treat like copy_p but not noop_p instruction.
19793 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19795         PR debug/69705
19796         * dwarf2out.c (gen_variable_die): Work around buggy LTO
19797         - allow NULL decl for Fortran DW_TAG_common_block variables.
19799 2016-02-24  Jason Merrill  <jason@redhat.com>
19801         * common.opt (flifetime-dse): Add -flifetime-dse=1.
19803 2016-02-24  Richard Biener  <rguenther@suse.de>
19804             Jakub Jelinek  <jakub@redhat.com>
19806         PR middle-end/69760
19807         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
19808         conditionally executed ops to well-defined overflow behavior.
19810 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19812         PR middle-end/69915
19813         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
19814         elements.
19816 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19818         PR rtl-optimization/69886
19819         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
19820         argument.  Use it when checking validity of set instructions.
19821         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
19822         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
19823         callsite.
19824         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
19825         * store-motion.c (find_moveable_store): Update
19826         can_assign_to_reg_without_clobbers_p callsite.
19828 2016-02-24  Richard Biener  <rguenther@suse.de>
19830         PR middle-end/68963
19831         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
19832         bogus check.
19833         (record_nonwrapping_iv): Do not fall back to the low/high bound
19834         for non-constant IV bases if the stmt is not always executed.
19836 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19838         * config/arm/arm-cores.def (cortex-a32): New entry.
19839         * config/arm/arm-tables.opt: Regenerate.
19840         * config/arm/arm-tune.md: Regenerate.
19841         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
19842         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
19843         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
19844         for -mcpu and -mtune.
19846 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19848         PR target/69875
19849         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
19850         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
19851         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
19852         (atomic_loaddi_1): Delete.
19853         (atomic_loaddi): Rewrite expander using the above changes.
19855 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19857         PR c/69918
19858         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
19859         2 to 3.
19861 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19862             Richard Biener  <rguenth@suse.de>
19864         PR middle-end/69909
19865         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
19866         set_mem_attributes if tem is SSA_NAME which got expanded
19867         as a MEM.
19869 2016-02-24  Richard Biener  <rguenther@suse.de>
19871         PR tree-optimization/69907
19872         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
19873         end of permutations for BB vectorization.
19875 2016-02-24  Christian Bruel  <christian.bruel@st.com>
19877         * config/arm/arm-c.c (arm_option_override): Initialize
19878         target_option_current_node.
19879         * config/arm/arm.c (arm_pragma_target_parse): Replace
19880         build_target_option_node call by target_option_current_node.
19881         Set target_option_current_node.
19882         Fix comments.
19884 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
19886         PR target/69810
19887         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
19888         define_insn_and_split to define_insn.
19889         (zero_extendqi<mode>2_dot2): Same.
19890         (extendqi<mode>2_dot): Same.
19891         (extendqi<mode>2_dot2): Same.
19893 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
19895         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
19896         and add bypass for AES{D,E} and AESMC pairs.
19897         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
19898         and AESMC pairs.
19900 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
19902         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
19903         series for reciprocal square root in Exynos M1.
19905 2016-02-23  Martin Sebor  <msebor@redhat.com>
19907         PR c/69759
19908         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
19909         __builtin_alloca_with_align.
19911 2016-02-23  Richard Henderson  <rth@redhat.com>
19913         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
19914         (ix86_register_pragmas): Remove __seg_tls.
19915         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
19916         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
19917         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
19918         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
19919         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
19920         * doc/extend.texi (__seg_tls): Remove item.
19922 2016-02-23  Richard Biener  <rguenther@suse.de>
19924         * alloc-pool.h (struct allocation_object): Make id member
19925         conditional on CHECKING_P again.
19926         (get_instance): Adjust.
19927         (base_pool_allocator): Likewise.
19929 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
19931         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
19932         (parallelize_loops): In OpenACC kernels mode, set n_threads to
19933         zero.
19934         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
19935         flag_openacc.
19936         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
19938 2016-02-23  Richard Biener  <rguenther@suse.de>
19940         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
19941         * bitmap.h (struct bitmap_usage): Likewise.
19942         (bitmap_move): Declare.
19943         * bitmap.c (register_overhead): Take size_t argument.
19944         (bitmap_move): New function.
19945         * df-problems.c (df_rd_transfer_function): Use bitmap_move
19946         to properly account overhead.
19947         * tree.c (free_node): Use tree_size.
19949 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
19951         PR c++/69902
19952         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
19953         when inverting comparison.
19955         PR c/69900
19956         * common.opt (Wunreachable-code): Add Warning flag.
19958 2016-02-23  Mark Wielaard  <mjw@redhat.com>
19959             Jakub Jelinek  <jakub@redhat.com>
19961         PR c/69911
19962         * cgraphunit.c (check_global_declaration): Check main_input_filename
19963         and DECL_SOURCE_FILE are not NULL.
19965 2016-02-23  Martin Jambor  <mjambor@suse.cz>
19967         PR tree-optimization/69666
19968         * tree-sra.c (sra_modify_assign): Do not attempt to create
19969         default_def replacements for unscalarizable regions.
19971 2016-02-20  Mark Wielaard  <mjw@redhat.com>
19973         PR c/28901
19974         * cgraphunit.c (check_global_declaration): Check level of
19975         warn_unused_const_variable and main_input_filename.
19976         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
19977         (-Wunused-variable): For C implies -Wunused-const-variable=1.
19978         (-Wunused-const-variable): Explain levels 1 and 2.
19980 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
19982         PR target/69888
19983         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
19984         identical arguments.  Formatting and spelling fixes.
19986         PR target/69885
19987         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
19988         be specified.
19990         PR target/69894
19991         PR target/69895
19992         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
19993         and m68k-devices.def.
19994         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
19995         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
19997 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
19999         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
20000         and HImode registers.
20002 2016-02-22  Richard Biener  <rguenther@suse.de>
20004         PR tree-optimization/69882
20005         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
20006         preserve permutations present because of gaps.
20007         (vect_supported_load_permutation_p): Always continue checking
20008         permutations after vect_attempt_slp_rearrange_stmts.
20010 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
20012         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
20013         min_profitable_estimate, rather than min_profitable_iters.
20015 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20017         PR target/69885
20018         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
20019         SImode for last match_operand.
20021 2016-02-22  Martin Liska  <mliska@suse.cz>
20023         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
20024         return bitsize - 1 as the return value.
20026 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
20028         PR target/69806
20029         PR target/54089
20030         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
20031         Handle negative shift counts.
20032         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
20033         force_reg on the shift constant.
20034         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
20035         (lshrsi3_d): Handle negative shift counts.
20037 2016-02-22  Richard Biener  <rguenther@suse.de>
20038             Tom de Vries  <tom@codesourcery.com>
20040         * graph.c: Include dumpfile.h.
20041         (print_graph_cfg): Split into three overloads.
20042         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
20044 2016-02-22  Tom de Vries  <tom@codesourcery.com>
20046         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
20047         dump-fn.
20049 2016-02-22  Richard Biener  <rguenther@suse.de>
20051         PR ipa/37448
20052         * ipa-inline-transform.c (inline_call): When not updating
20053         overall summaries adjust self size by the growth estimate.
20054         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
20055         hash-set, do not update overall summaries here.  Renamed from ...
20056         (inline_to_all_callers): ... this which is now wrapping the
20057         above and performing delayed overall summary update.
20058         (early_inline_small_functions): Delay updating of the overall
20059         summary.
20061 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
20063         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
20064         variable.
20066 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20068         PR driver/69805
20069         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
20070         :%* in %:gt() argument.
20071         (greater_than_spec_func): Adjust for expecting only numbers,
20072         if there are more than two numbers, compare the last two.
20074 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
20076         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
20077         -Wnarrowing with -std.
20079 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20081         PR c++/69851
20082         * expr.c (store_field): Don't use bit-field path if exp is
20083         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
20084         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
20085         and the assignment can be performed by bitwise copy.  Formatting
20086         fix.
20088         PR middle-end/69838
20089         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
20090         call copy_reg_eh_region_note_forward on before and/or after sequences
20091         and remove note from insn if it no longer can throw.
20093         PR target/69820
20094         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
20095         if TARGET_AVX512BW.
20097 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20099         * config/s390/vector.md: Add missing commutative operand markers
20100         to the patterns which qualify for one.
20101         * config/s390/vx-builtins.md: Likewise.
20103 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20105         * config/s390/vector.md (VI, VI_QHS): Add single element vector
20106         types to mode iterators.
20107         (vec_double): ... and mode attribute.
20108         * config/s390/vx-builtins.md (non_vec_int): Likewise.
20110 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20112         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
20113         Change the predicate of op2 from nonimmediate to general and let
20114         reload fix it if necessary.
20116 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20118         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
20120 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20122         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
20123         mode.
20125 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20127         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
20128         * config/s390/s390.c (s390_expand_vec_movstr): New function.
20129         * config/s390/s390.md ("movstr<P:mode>"): Call
20130         s390_expand_vec_movstr.
20132 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20134         * config/s390/s390.md: Add missing output modifier for operand 1
20135         to print it as address properly.
20137 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20139         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
20140         * config/s390/2964.md: New file.
20141         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
20142         of insn grouping attributes depending on the CPU level.
20143         (s390_get_unit_mask): New function.
20144         (s390_sched_score): Remove the OOO from the scheduling macros.
20145         Add loop to calculate a score for the instruction mix.
20146         (s390_sched_reorder): Likewise plus improve debug output.
20147         (s390_sched_variable_issue): Rename macros as above.  Calculate
20148         the unit distances after actually scheduling an insn.  Improve
20149         debug output.
20150         (s390_sched_init): Clear last_scheduled_unit_distance array.
20151         * config/s390/s390.md: Include 2964.md.
20153 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20155         PR target/69671
20156         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
20157         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
20158         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
20159         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
20160         *avx512f_<code>v8div16qi2_mask_1): New insns.
20162 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20164         PR target/68404
20165         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
20166         2016-02-09 change.
20168         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
20169         earlyclobber from target.  Use wF constraint for fused memory
20170         address.
20171         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
20173 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20174             Martin Liska  <mliska@suse.cz>
20176         PR sanitizer/69863
20177         * cfgexpand.c (asan_sanitize_stack_p): New function.
20178         (partition_stack_vars): Use the function.
20179         (expand_stack_vars): Likewise.
20180         (defer_stack_allocation): Likewise.
20181         (expand_used_vars): Likewise.
20183 2016-02-18  Richard Biener  <rguenther@suse.de>
20185         PR middle-end/69553
20186         * fold-const.c (operand_equal_p): Properly compare offsets for
20187         IMAGPART_EXPR and ARRAY_REF.
20189 2016-02-18  Nick Clifton  <nickc@redhat.com>
20191         PR target/62254
20192         PR target/69610
20193         * config/arm/arm.c (arm_option_override_internal): Disable
20194         interworking if the target does not support thumb instructions.
20195         (arm_reload_in_hi): Handle the case where a register to register
20196         move needs reloading because there is no simple pattern to handle
20197         it.
20198         (arm_reload_out_hi): Likewise.
20200 2016-02-18  Richard Biener  <rguenther@suse.de>
20202         PR middle-end/69854
20203         * match.pd: Don't use fold_binary or fold_unary for folding
20204         constants.
20206 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
20208         PR c++/69850
20209         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
20210         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
20211         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
20212         warn on gimple_no_warning_p statements.
20214 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
20216         * doc/extend.texi (C++ Attributes): Correct description of
20217         warn_unused type attribute.
20219 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20221         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
20222         correct instruction.
20224 2016-02-17  Richard Biener  <rguenther@suse.de>
20226         PR rtl-optimization/69609
20227         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
20228         (find_traces_1_round): When ending a trace update cached priority
20229         of successors.
20230         (bb_to_key): Use cached priority when available.
20231         (copy_bb): Initialize cached priority.
20232         (reorder_basic_blocks_software_trace_cache): Likewise.
20234 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20236         PR target/69161
20237         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
20238         New predicate.
20239         (aarch64_comparison_operator): Break overly long line into two.
20240         (aarch64_comparison_operation): Likewise.
20241         * config/aarch64/aarch64.md (cstorecc4): Use
20242         aarch64_comparison_operator_mode instead of
20243         aarch64_comparison_operator.
20244         (cstore<mode>4): Likewise.
20245         (aarch64_cstore<mode>): Likewise.
20246         (*cstoresi_insn_uxtw): Likewise.
20247         (cstore<mode>_neg): Likewise.
20248         (*cstoresi_neg_uxtw): Likewise.
20250 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20252         PR target/69161
20253         * config/arm/predicates.md (arm_comparison_operator_mode):
20254         New predicate.
20255         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
20256         instead of arm_comparison_operator.
20257         (*mov_negscc): Likewise.
20258         (*mov_notscc): Likewise.
20259         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
20260         (*thumb2_mov_negscc): Likewise.
20261         (*thumb2_mov_negscc_strict_it): Likewise.
20262         (*thumb2_mov_notscc): Likewise.
20263         (*thumb2_mov_notscc_strict_it): Likewise.
20265 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
20267         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
20268         Add missing return.
20270 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
20272         * config/visium/visium.c (machine_libfunc_index): New enum.
20273         (machine_libfuncs): New structure.
20274         (visium_libfuncs): New static variable.
20275         (TARGET_INIT_LIBFUNCS): Define to...
20276         (visium_init_libfuncs): ...this.  New function.
20277         (expand_block_move_4): Use the appropriate libfunc.
20278         (expand_block_move_2): Likewise.
20279         (expand_block_move_1): Likewise.
20280         (expand_block_set_4): Likewise.
20281         (expand_block_set_2): Likewise.
20282         (expand_block_set_1): Likewise.
20283         (visium_trampoline_init): Likewise.
20285 2016-02-17  Nick Clifton  <nickc@redhat.com>
20287         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
20288         TI's devices.csv file as of March 2016.
20290 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20292         PR Target/48344
20293         * opts-global.c (handle_common_deferred_options): Introduce and
20294         initialize two global variables to remember command-line options
20295         specifying a stack-limiting register.
20296         * opts.h: Add extern declarations of the two new global variables.
20297         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
20298         variable based on the values of the two new global variables.
20300 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20302         PR c/69835
20303         * common.opt (Wnonnull-compare): New warning.
20304         * doc/invoke.texi (-Wnonnull): Remove text about comparison
20305         of arguments against NULL.
20306         (-Wnonnull-compare): Document.
20307         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
20308         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
20309         * passes.def (pass_warn_nonnull_compare): Add.
20310         * gimple-ssa-nonnull-compare.c: New file.
20312 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20314         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
20315         AARCH64_EXTRA_TUNE_RECIP_SQRT.
20317 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20319         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
20320         reciprocal sqrt for -mlow-precision-recip-sqrt.
20322 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20323             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20325         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
20326         always use lane loads to construct non-constant vectors.
20328 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20330         * config/aarch64/aarch64.md
20331         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
20332         constraints for operand 3.
20333         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
20335 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20336             Richard Biener  <rguenther@suse.de>
20338         PR tree-optimization/69820
20339         * tree-vect-patterns.c (type_conversion_p): Return false if
20340         *orig_type is unsigned single precision or boolean.
20341         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
20342         Formatting fix.
20344 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20346         PR rtl-optimization/69764
20347         PR rtl-optimization/69771
20348         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
20349         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
20351 2016-02-16  Richard Biener  <rguenther@suse.de>
20353         PR tree-optimization/69776
20354         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20355         sets from caller.
20356         (indirect_refs_may_alias_p): Likewise.
20357         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20358         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20359         according to tbaa_p.
20360         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20361         (optimize_stmt): For redundant store discovery do not allow tbaa.
20363 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
20365         PR tree-optimization/69714
20366         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20367         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20369 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
20371         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20372         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20373         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20374         * config/arc/arc.c (arc_init): Check FPU options.
20375         (get_arc_condition_code): Handle new CC_FPU* modes.
20376         (arc_select_cc_mode): Likewise.
20377         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20378         register pair only. Allow access for ARCv2 accumulator.
20379         (gen_compare_reg): Whenever we have FPU support use FPU compare
20380         instructions.
20381         (arc_reorg): Don't generate brcc insns when FPU compare
20382         instructions are involved.
20383         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20384         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20385         floating point emulation.
20386         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20387         (REVERSE_CONDITION): Add new CC_FPU* modes.
20388         (TARGET_FP_SP_BASE): Define.
20389         (TARGET_FP_DP_BASE): Likewise.
20390         (TARGET_FP_SP_FUSED): Likewise.
20391         (TARGET_FP_DP_FUSED): Likewise.
20392         (TARGET_FP_SP_CONV): Likewise.
20393         (TARGET_FP_DP_CONV): Likewise.
20394         (TARGET_FP_SP_SQRT): Likewise.
20395         (TARGET_FP_DP_SQRT): Likewise.
20396         (TARGET_FP_DP_AX): Likewise.
20397         * config/arc/arc.md (ARCV2_ACC): New constant.
20398         (type): New fpu type attribute.
20399         (SDF): Conditional iterator.
20400         (cstore<mode>, cbranch<mode>): Change expand condition.
20401         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20402         handles FPU/FPX cases as well.
20403         * config/arc/arc.opt (mfpu): New option.
20404         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20405         Renamed.
20406         (adddf3, muldf3, subdf3): Removed.
20407         * config/arc/predicates.md (proper_comparison_operator): Recognize
20408         CC_FPU* modes.
20409         * config/arc/fpu.md: New file.
20410         * doc/invoke.texi (ARC Options): Document mfpu option.
20412 2016-02-16  Richard Biener  <rguenther@suse.de>
20414         PR rtl-optimization/69291
20415         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20416         noce_operand_ok check.
20418 2016-02-16  Tom de Vries  <tom@codesourcery.com>
20420         PR lto/67709
20421         * omp-low.c (simd_clone_create): Remove call to
20422         symtab->call_cgraph_insertion_hooks.
20424 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20426         PR tree-optimization/69802
20427         * tree-ssa-reassoc.c (update_range_test): If op is
20428         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20429         op == 1 test of precision 1 integral op, otherwise handle
20430         that case as op itself.  Fix up formatting.
20431         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20432         up formatting.
20434 2016-02-16  Richard Biener  <rguenther@suse.de>
20436         PR tree-optimization/69586
20437         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20438         types for conversion sources.
20440 2016-02-16  Richard Biener  <rguenther@suse.de>
20442         PR middle-end/69801
20443         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20444         mask OEP_ADDRESS_OF.
20446 2016-02-16  Alan Modra  <amodra@gmail.com>
20448         PR target/68973
20449         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20450         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
20451         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
20452         (p8_mtvsrwz): New.
20453         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
20454         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
20455         (p8_fmrgow_<mode>): Likewise.
20456         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
20457         changes.
20458         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
20459         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
20460         to use movdi_internal64.  Remove op0_di.
20461         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
20463 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
20465         Add support for the FCCMP insn types
20467         * config/aarch64/aarch64.md (fccmp): Change insn type.
20468         (fccmpe): Likewise.
20469         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
20470         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
20471         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
20472         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
20473         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
20474         * config/arm/types.md (fccmps): Add new insn type.
20475         (fccmpd): Likewise.
20477 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20479         * alias.c (get_alias_set): Fix a typo in comment.
20481 2016-02-15  Richard Biener  <rguenther@suse.de>
20483         PR tree-optimization/69595
20484         * match.pd: Complete range test simplification to true.
20486 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
20488         PR rtl-optimization/69648
20489         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
20490         pic_offset_table_rtx.
20492         PR rtl-optimization/69752
20493         * ira.c (update_equiv_regs): When looking for more than a single SET,
20494         also take other side effects into account.
20496 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20498         * config/s390/s390.c (s390_function_profiler): Add a new sequence
20499         for z900+ CPUs in 31-bit mode.
20501 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20503         * common/config/s390/s390-common.c (s390_supports_split_stack):
20504         New function.
20505         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
20506         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
20507         * config/s390/s390.c (struct machine_function): New field
20508         split_stack_varargs_pointer.
20509         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
20510         in s390_emit_prologue.
20511         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
20512         vararg pointer.
20513         (morestack_ref): New global.
20514         (SPLIT_STACK_AVAILABLE): New macro.
20515         (s390_expand_split_stack_prologue): New function.
20516         (s390_live_on_entry): New function.
20517         (s390_va_start): Use split-stack vararg pointer if appropriate.
20518         (s390_asm_file_end): Emit the split-stack note sections.
20519         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
20520         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
20521         (UNSPECV_SPLIT_STACK_CALL): New unspec.
20522         (UNSPECV_SPLIT_STACK_DATA): New unspec.
20523         (split_stack_prologue): New expand.
20524         (split_stack_space_check): New expand.
20525         (split_stack_data): New insn.
20526         (split_stack_call): New expand.
20527         (split_stack_call_*): New insn.
20528         (split_stack_cond_call): New expand.
20529         (split_stack_cond_call_*): New insn.
20531 2016-02-15  Richard Biener  <rguenther@suse.de>
20533         PR tree-optimization/69783
20534         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20535         Add trivially correct cases.
20537 2016-02-15  Tom de Vries  <tom@codesourcery.com>
20539         PR lto/69655
20540         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
20541         do_force_output.
20542         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
20544 2016-02-15  Richard Biener  <rguenther@suse.de>
20546         PR tree-optimization/69776
20547         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
20548         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
20549         indicate whether we can use TBAA to disambiguate against stores.
20550         Use alias-set zero if not.
20551         (visit_reference_op_store): Do not use TBAA when looking up
20552         redundant stores.
20553         * tree-ssa-pre.c (compute_avail): Use TBAA here.
20554         (eliminate_dom_walker::before_dom_children): But not when looking
20555         up redundant stores.
20557 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
20559         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
20561 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20563         *  config/i386/znver1.md
20564         (znver1_pop, znver1_pop_mem,
20565         znver1_load_imov_double_store,
20566         znver1_load_imov_direct_store,
20567         znver1_load_imov_direct_load,
20568         znver1_load_imov_double_load): Add new.
20569         (znver1_insn, znver1_insn_load): Add icmov type.
20570         (znver1_sseavx_fma,
20571         znver1_sseavx_fma_load,
20572         znver1_avx256_fma,
20573         znver1_avx256_fma_load): Fix pipe usage.
20575 2016-02-14  Alan Modra  <amodra@gmail.com>
20577         PR target/68973
20578         * reload.c (find_reloads_address_1): For pre/post-inc/dec
20579         with an invalid hard reg, reload just the reg not the entire
20580         pre/post-inc/dec address expression.
20582 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20584         PR target/67260
20585         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
20586         fixed R1_REG scratch reg.
20587         (sibcall_value_pcrel_fdpic): Likewise.
20589 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20591         PR target/67636
20592         PR target/64345
20593         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
20595 2016-02-12  Walter Lee  <walt@tilera.com>
20597         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
20598         * config/tilegx/t-tilegx: Likewise.
20600 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20602         PR other/69554
20603         * diagnostic-show-locus.c (struct line_span): New struct.
20604         (layout::get_first_line): Delete.
20605         (layout::get_last_line): Delete.
20606         (layout::get_num_line_spans): New member function.
20607         (layout::get_line_span): Likewise.
20608         (layout::print_heading_for_line_span_index_p): Likewise.
20609         (layout::get_expanded_location): Likewise.
20610         (layout::calculate_line_spans): Likewise.
20611         (layout::m_first_line): Delete.
20612         (layout::m_last_line): Delete.
20613         (layout::m_line_spans): New field.
20614         (layout::layout): Update comment.  Replace m_first_line and
20615         m_last_line with m_line_spans, replacing their initialization
20616         with a call to calculate_line_spans.
20617         (diagnostic_show_locus): When printing source lines and
20618         annotations, rather than looping over a single span
20619         of lines, instead loop over each line_span within
20620         the layout, with an inner loop over the lines within them.
20621         Call the context's start_span callback when changing line spans.
20622         * diagnostic.c (diagnostic_initialize): Initialize start_span.
20623         (diagnostic_build_prefix): Break out the building of the location
20624         part of the string into...
20625         (diagnostic_get_location_text): ...this new function, rewriting
20626         it from nested ternary expressions to a sequence of "if"
20627         statements.
20628         (default_diagnostic_start_span_fn): New function.
20629         * diagnostic.h (diagnostic_start_span_fn): New typedef.
20630         (diagnostic_context::start_span): New field.
20631         (default_diagnostic_start_span_fn): New prototype.
20633 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20635         PR driver/69779
20636         * gcc.c (driver::finalize): Fix cleanup of "specs".
20638 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20640         PR driver/69265
20641         PR driver/69453
20642         * gcc.c (driver::driver): Initialize m_option_suggestions.
20643         (driver::~driver): Clean up m_option_suggestions.
20644         (suggest_option): Convert to...
20645         (driver::suggest_option): ...this, and split out into
20646         driver::build_option_suggestions and find_closest_string.
20647         (driver::build_option_suggestions): New function, from
20648         first half of suggest_option.  Special-case
20649         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
20650         the sanitizer_opts array.  For options of enum types, add the
20651         various enum values to the candidate strings.
20652         (driver::handle_unrecognized_options): Remove "const".
20653         * gcc.h (driver::handle_unrecognized_options): Likewise.
20654         (driver::build_option_suggestions): New decl.
20655         (driver::suggest_option): New decl.
20656         (driver::m_option_suggestions): New field.
20657         * opts-common.c (add_misspelling_candidates): New function.
20658         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
20659         and make non-static.
20660         * opts.h (sanitizer_opts): New array decl.
20661         (add_misspelling_candidates): New function decl.
20662         * spellcheck.c (find_closest_string): New function.
20663         * spellcheck.h (find_closest_string): New function decl.
20665 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20667         PR rtl-optimization/69764
20668         PR rtl-optimization/69771
20669         * optabs.c (expand_binop_directly): For shift_optab_p, force
20670         convert_modes with VOIDmode if xop1 has VOIDmode.
20672 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
20674         PR target/69729
20675         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
20676         to correctly determine instrumentation thunks.
20678 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20680         PR ipa/69241
20681         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
20682         type by reference, force lhs on the call.
20684         PR ipa/68672
20685         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
20686         Compute retval and retbnd early in all cases if split_part_return_p
20687         and return_bb is not EXIT.  Remove all clobber stmts and reset
20688         all debug stmts that refer to SSA_NAMEs defined in split part,
20689         except if it is retval, in that case replace the old retval with the
20690         lhs of the call to the split part.
20692 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20694         revert:
20695         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20697         PR middle-end/66726
20698         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20699         whose result is used in PHI.
20700         (maybe_optimize_range_tests): Likewise.
20701         (final_range_test_p): Likweise.
20703 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20705         PR middle-end/66726
20706         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20707         whose result is used in PHI.
20708         (maybe_optimize_range_tests): Likewise.
20709         (final_range_test_p): Likweise.
20711 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20713         * cgraph.c: Spelling fixes - behaviour -> behavior and
20714         neighbour -> neighbor.
20715         * target.def: Likewise.
20716         * sel-sched.c: Likewise.
20717         * config/mips/mips.c: Likewise.
20718         * config/arc/arc.md: Likewise.
20719         * config/arm/cortex-a57.md: Likewise.
20720         * config/arm/arm.c: Likewise.
20721         * config/arm/neon.md: Likewise.
20722         * config/arm/arm-c.c: Likewise.
20723         * config/vms/vms-c.c: Likewise.
20724         * config/s390/s390.c: Likewise.
20725         * config/i386/znver1.md: Likewise.
20726         * config/i386/i386.c: Likewise.
20727         * config/ia64/hpux-unix2003.h: Likewise.
20728         * config/msp430/msp430.md: Likewise.
20729         * config/rx/rx.c: Likewise.
20730         * config/rx/rx.md: Likewise.
20731         * config/aarch64/aarch64-simd.md: Likewise.
20732         * config/aarch64/aarch64.c: Likewise.
20733         * config/nvptx/nvptx.c: Likewise.
20734         * config/bfin/bfin.c: Likewise.
20735         * config/cris/cris.opt: Likewise.
20736         * config/rs6000/rs6000.c: Likewise.
20737         * target.h: Likewise.
20738         * spellcheck.c: Likewise.
20739         * ira-build.c: Likewise.
20740         * tree-inline.c: Likewise.
20741         * builtins.c: Likewise.
20742         * lra-constraints.c: Likewise.
20743         * explow.c: Likewise.
20744         * hwint.h: Likewise.
20745         * targhooks.c: Likewise.
20746         * tree-vect-data-refs.c: Likewise.
20747         * expr.c: Likewise.
20748         * doc/tm.texi: Likewise.
20749         * doc/extend.texi: Likewise.
20750         * doc/install.texi: Likewise.
20751         * doc/md.texi: Likewise.
20752         * tree-ssa-tail-merge.c: Likewise.
20753         * sched-int.h: Likewise.
20754         * match.pd: Likewise.
20755         * sched-ebb.c: Likewise.
20756         * target.def (omit_struct_return_reg): Likewise.
20757         * gimple-ssa-isolate-paths.c: Likewise.
20758         (find_implicit_erroneous_behaviour): Renamed to...
20759         (find_implicit_erroneous_behavior): ... this.
20760         (find_explicit_erroneous_behaviour): Renamed to...
20761         (find_explicit_erroneous_behavior): ... this.
20762         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
20764 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
20766         PR rtl-optimization/64682
20767         PR rtl-optimization/69567
20768         PR rtl-optimization/69737
20769         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
20770         in I2 as well, just lose it.
20772 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20774         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
20775         New variable.
20776         (aarch64_last_printed_tune_string): Likewise.
20777         (aarch64_declare_function_name): Only output .arch assembler
20778         directive if it will be different from the previously output
20779         directive.  Same for .tune comment but only if -dA is set.
20780         (aarch64_start_file): New function.
20781         (TARGET_ASM_FILE_START): Define.
20783 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
20785         PR plugins/69758
20786         * Makefile.in (PLUGIN_HEADERS): Add params.list.
20788 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
20790         PR target/65313
20791         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
20792         -Wmaybe-uninitialized warning.
20794 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
20796         PR target/69713
20797         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
20799 2016-02-11  Richard Biener  <rguenther@suse.de>
20801         PR rtl-optimization/69291
20802         * ifcvt.c (noce_try_store_flag_constants): Do not allow
20803         subexpressions affected by changing the result.
20805 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
20807         PR target/69148
20808         * lra-constraints.c (curr_insn_transform): Find in/out operands
20809         for secondary memory moves.  Update dups.
20811 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
20813         PR tree-optimization/69652
20814         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
20815         to nested loop, did source re-formatting, skip debug statements,
20816         add check on statement with volatile operand, remove dead scalar
20817         statements.
20819 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
20820             Patrick Palka  <ppalka@gcc.gnu.org>
20822         PR ipa/69241
20823         PR c++/69649
20824         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
20825         calls if the return type is TREE_ADDRESSABLE.
20826         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
20827         * ipa-split.c (split_function): Fix doubled "we" in comment.
20828         Use void return type for the split part even if
20829         !split_point->split_part_set_retval.
20831 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
20833         PR tree-optimization/68021
20834         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
20835         when computing the value of biv cand by itself.
20837 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
20839         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
20840         (cortexa57_tunings): Likewise.
20841         (cortexa72_tunings): Likewise.
20842         (arch_macro_fusion_pair_p): Add support for AES fusion.
20843         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
20844         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
20845         Allow virtual registers before reload so early scheduling works.
20846         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
20847         correct latency and pipeline.
20848         (cortex_a57_crypto_complex): Likewise.
20849         (cortex_a57_crypto_xor): Likewise.
20850         (define_bypass): Add AES bypass.
20852 2016-02-10  Richard Biener  <rguenther@suse.de>
20854         PR tree-optimization/69726
20855         * passes.def: Add DCE pass before late uninit.
20856         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
20857         really fixup if-conversions job.
20859 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
20861         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
20862         (arm_cortex_a57_tune): Likewise.
20863         (aarch_macro_fusion_pair_p): Add support for AES fusion.
20864         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
20866 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
20868         * timevar.def (TV_PHASE_DBGINFO): Delete.
20869         (TV_PHASE_CHECK_DBGINFO): Likewise.
20870         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
20872 2016-02-10  Richard Biener  <rguenther@suse.de>
20874         PR tree-optimization/69719
20875         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20876         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
20878 2016-02-09  Andrew Pinski  <apinski@cavium.com>
20880         PR tree-opt/69282
20881         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
20882         get_vcond_mask_icode returns false.
20884 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
20886         PR target/68404
20887         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
20888         an ADDIS that adds a pointer to a large constant that sets the
20889         upper16 bits with a load operation.
20891 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
20893         PR target/68532
20894         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
20895         order.
20896         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
20897         endian.
20898         (vzipq_s16): Likewise.
20899         (vzipq_s32): Likewise.
20900         (vzipq_f32): Likewise.
20901         (vzipq_u8): Likewise.
20902         (vzipq_u16): Likewise.
20903         (vzipq_u32): Likewise.
20904         (vzipq_p8): Likewise.
20905         (vzipq_p16): Likewise.
20907 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
20909         PR target/68532
20910         * config/arm/arm.c (neon_endian_lane_map): New function.
20911         (neon_vector_pair_endian_lane_map): New function.
20912         (arm_evpc_neon_vuzp): Allow for big endian lane order.
20913         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
20914         endian.
20915         (vuzpq_s16): Likewise.
20916         (vuzpq_s32): Likewise.
20917         (vuzpq_f32): Likewise.
20918         (vuzpq_u8): Likewise.
20919         (vuzpq_u16): Likewise.
20920         (vuzpq_u32): Likewise.
20921         (vuzpq_p8): Likewise.
20922         (vuzpq_p16): Likewise.
20924 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
20926         PR target/69634
20927         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
20928         debug insns.
20930 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
20932         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
20933         truncate const_int operand 1 to QImode.
20935 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
20937         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
20938         corresponding to an abnormal edge.
20940 2016-02-09  Tom de Vries  <tom@codesourcery.com>
20942         PR tree-optimization/69599
20943         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
20944         function.
20945         (find_func_aliases_for_builtin_call, find_func_clobbers)
20946         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
20947         partition.
20949 2016-02-09  Richard Biener  <rguenther@suse.de>
20951         PR tree-optimization/69715
20952         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
20953         LHS on calls as non-rewritable.
20955 2016-02-09  Tom de Vries  <tom@codesourcery.com>
20957         PR lto/69707
20958         * lto-wrapper.c (append_diag_options): New function.
20959         (compile_offload_image): Call append_diag_options.
20961 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
20963         PR other/69722
20964         * doc/extend.texi (Flag Output Operands): Correct sectioning.
20965         Minor copy-edit to fix verb tenses.
20967 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
20969         PR tree-optimization/69209
20970         * ipa-split.c (split_function): If split part is not
20971         returning retval, retval has gimple type but is not
20972         gimple value, force it into a SSA_NAME first.
20974 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
20976         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
20977         outdated section.
20979 2016-02-08  Jason Merrill  <jason@redhat.com>
20981         PR c++/69631
20982         * convert.c (convert_to_integer_1): Check dofold on truncation
20983         distribution.
20984         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
20985         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
20986         Rename from *_nofold.
20987         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
20988         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
20990 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
20992         PR target/60410
20993         * tree.c (build_common_tree_nodes): Remove short_double argument.
20994         All callers changed.
20995         * tree.h (build_common_tree_nodes): Adjust declaration.
20996         * doc/invoke.texi (-fshort-double): Remove documentation.
20997         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
20998         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
20999         * lto-wrapper.c (merge_and_complain, append_compiler_options)
21000         (append_linker_options): Don't handle OPT_fshort_double.
21002         PR rtl-optimization/68730
21003         * lra-remat.c (insn_to_cand_activation): New static variable.
21004         (lra_remat): Allocate and free it.
21005         (create_cand): New arg activation. Initialize a field in
21006         insn_to_cand_activation if it is nonnull.
21007         (create_cands): Pass the activation insn to create_cand when making
21008         a candidate involving an output reload.  Reorganize code a little.
21009         (do_remat): Keep track of active status of candidates in a separate
21010         bitmap.
21012 2016-02-08  Richard Biener  <rguenther@suse.de>
21014         PR tree-optimization/69719
21015         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21016         Properly use absolute of the difference of the two offsets to
21017         compare or adjust the segment length.
21019 2016-02-08  Richard Biener  <rguenther@suse.de>
21020             Jeff Law  <law@redhat.com>
21022         PR target/68273
21023         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
21024         types for anonymous SSA names.
21026 2016-02-08   Richard Biener  <rguenther@suse.de>
21028         PR rtl-optimization/69274
21029         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
21031 2016-02-08  Jeff Law  <law@redhat.com>
21033         PR tree-optimization/65917
21034         * tree-ssa-dom.c (record_temporary_equivalences): Record both
21035         equivalences from if (x == y) style conditionals.
21036         (loop_depth_of_name): Remove.
21037         (record_equality): Remove loop depth check.
21038         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
21039         (const_and_copies::record_const_or_copy_raw): New member function.
21040         * tree-ssa-scopedtables.c
21041         (const_and_copies::record_const_or_copy_raw): New, factored out of
21042         (const_and_copies::record_const_or_copy): Call new member function.
21044 2016-02-05  Jeff Law  <law@redhat.com>
21046         PR tree-optimization/68541
21047         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
21048         (count_stmts_in_block): New function.
21049         (poor_ifcvt_candidate_code): Likewise.
21050         (is_feasible_trace): Add some heuristics to determine when path
21051         splitting is profitable.
21052         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
21053         is a diamond with a single exit.
21055 2016-02-05  Martin Sebor  <msebor@redhat.com>
21057         PR c++/69662
21058         * doc/invoke.texi: Update -Wplacement-new to take an optional
21059         argument.
21061 2016-02-06  Richard Henderson  <rth@redhat.com>
21063         PR c/69643
21064         * tree.c (tree_nop_conversion_p): Do not strip casts into or
21065         out of non-standard address spaces.
21067 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21069         PR rtl-optimization/69691
21070         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
21072 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
21074         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
21075         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
21076         (*ieee128_mfvsrd_64bit): Likewise.
21077         (*ieee128_mfvsrd_32bit): Likewise.
21079 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
21081         PR target/69369
21082         Revert r232560:
21083         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
21085         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
21086         instrumented_version.
21088 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
21090         * doc/invoke.texi (Optimize Options): In table of --param options
21091         rename second occurrence of tracer-min-branch-ratio to
21092         tracer-min-branch-probability, rename
21093         tracer-min-branch-ratio-feedback to
21094         tracer-min-branch-probability-feedback and clarify description,
21095         rename sched-spec-state-edge-prob-cutoff to
21096         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
21097         to selsched-insns-to-rename, rename lto-minpartition to
21098         lto-min-partition, delete reorder-blocks-duplicate and
21099         reorder-blocks-duplicate-feedback.
21101 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21103         * config/s390/s390.c (s390_register_info_set_ranges): Remove
21104         superfluous loops.
21106 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21108         * doc/extend.texi: S/390: Correct some typos.
21110 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21112         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
21114 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21116         PR target/69625
21117         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
21118         (s390_register_info_gprtofpr): Use new macros above.
21119         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
21120         its name.
21121         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
21122         its name.  Adjust restore and save gpr ranges.
21123         (s390_register_info_set_ranges): New function.
21124         (s390_register_info): Use new macros above.  Call
21125         s390_register_info_set_ranges.
21126         (s390_optimize_register_info): Likewise.
21127         (s390_hard_regno_rename_ok): Use new macros.
21128         (s390_hard_regno_scratch_ok): Likewise.
21129         (s390_emit_epilogue): Likewise.
21130         (s390_can_use_return_insn): Likewise.
21131         (s390_optimize_prologue): Likewise.
21132         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
21134 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21136         PR bootstrap/69677
21137         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
21138         alignment fixes.
21139         (ix86_option_override_internal): Disable TARGET_STV even for
21140         -m{incoming,preferred}-stack-boundary=3.
21142 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21144         * config.gcc: Mark deprecated rtems targets as obsolete.
21146 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
21148         PR rtl-optimization/64682
21149         PR rtl-optimization/69567
21150         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
21151         before I2 only if the register is both used and set in I2.
21153 2016-02-04  DJ Delorie  <dj@redhat.com>
21155         * config/msp430/msp430.c (msp430_start_function): Add function type.
21157 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21159         PR fortran/69368
21160         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
21162 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
21164         PR rtl-optimization/69577
21165         Revert:
21166         2015-10-29  Richard Henderson  <rth@redhat.com>
21168         PR target/68124
21169         PR rtl-opt/67609
21170         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
21171         sse check to the exact conditions of PR 67609.
21173 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21175         PR target/69667
21176         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
21177         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
21178         not allowed into the traditional Altivec registers.
21179         (movtd_64bit_nodm): Likewise.
21180         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
21182 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
21184         * config/aarch64/cortex-a57-fma-steering.c
21185         (aarch64_register_fma_steering): Remove "static" from arguments
21186         to register_pass.
21188 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
21190         PR target/69619
21191         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
21192         twice when complex.
21194 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
21196         * doc/invoke.texi: Delete -mno-fma4.
21198 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
21200         PR rtl-optimization/69577
21201         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
21202         (find_subregs_of_mode): Update accordingly.  Iterate over partial
21203         definitions.
21205 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
21207         * config/arm/arm-protos.h (neon_reinterpret): Remove.
21208         * config/arm/arm.c (neon_reinterpret): Remove.
21209         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
21210         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
21211         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
21212         vreinterpretti): Remove.
21213         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
21214         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
21215         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
21216         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
21217         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
21218         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
21219         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
21220         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
21221         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
21222         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
21223         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
21224         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21225         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
21226         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
21227         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
21228         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
21229         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
21230         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
21231         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
21232         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
21233         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
21234         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
21235         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
21236         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
21237         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
21238         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
21239         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
21240         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
21241         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
21242         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
21243         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
21244         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
21245         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
21246         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
21247         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
21248         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
21249         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
21250         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
21251         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
21252         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
21253         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
21254         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
21255         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
21256         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
21257         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
21258         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
21259         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
21260         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
21261         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
21262         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
21263         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
21264         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
21265         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
21266         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
21267         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
21268         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
21269         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
21270         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
21271         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
21272         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
21273         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
21274         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
21275         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
21276         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
21277         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
21278         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
21279         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
21280         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
21281         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
21282         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
21283         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
21284         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
21285         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
21286         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
21287         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
21288         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
21289         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
21290         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
21291         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
21292         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
21293         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
21294         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
21295         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
21296         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
21297         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
21298         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
21299         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
21300         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
21301         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
21302         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
21303         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
21304         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
21305         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
21306         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
21307         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
21308         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
21309         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
21310         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
21311         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
21312         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
21313         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
21314         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
21315         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
21317 2016-02-04  Martin Liska  <mliska@suse.cz>
21319         PR sanitizer/69276
21320         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
21321         that are gimple_store_p.
21322         (maybe_instrument_call): Likewise.
21324 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
21326         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
21327         register scaling out of memory reference and comment why.
21329 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21331         PR target/65932
21332         PR target/67714
21333         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
21334         folding the source of a SET.
21336 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21338         PR target/65932
21339         PR target/67714
21340         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
21341         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
21343 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
21345         PR target/65932
21346         PR target/67714
21347         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
21348         HImode.
21350 2016-02-04  Christian Bruel  <christian.bruel@st.com>
21352         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
21353         * config/arm/arm.c (arm_set_current_function): Likewise.
21355 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21356             Ilya Enkovich  <enkovich.gnu@gmail.com>
21357             H.J. Lu  <hongjiu.lu@intel.com>
21359         PR target/69454
21360         * config/i386/i386.c (convert_scalars_to_vector): Remove
21361         stack alignment fixes.
21362         (ix86_option_override_internal): Disable TARGET_STV if stack
21363         might not be aligned enough.
21364         (ix86_minimum_alignment): Assert that TARGET_STV is false.
21366 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
21368         * config/i386/x86-tune.def: Disable default prefetching
21369         for -march=znver1.
21371 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21372             Vladimir Makarov  <vmakarov@redhat.com>
21374         PR target/69461
21375         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21376         in validating fused toc addresses.
21378 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
21380         PR c/69627
21381         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21382         range->m_caret fields if range->m_show_caret_p is false.
21384         PR target/69644
21385         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21386         Force oldval into register if it does not satisfy reg_or_short_operand
21387         predicate.  Fix up formatting.
21389 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21390             Alexandre Oliva  <aoliva@redhat.com>
21392         PR target/69461
21393         * lra-constraints.c (simplify_operand_subreg): Check additionally
21394         address validity after potential reloading.
21395         (process_address_1): Check insns validity.  In case of failure do
21396         nothing.
21398 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
21400         PR target/69118
21401         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21402         Fix target.
21404 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
21406         * wide-int.cc (canonize_uhwi): New function.
21407         (wi::divmod_internal): Use it.
21409 2016-02-02  James Norris  <jnorris@codesourcery.com>
21411         * gimplify.c (omp_notice_variable): Add usage check.
21413 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
21415         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21416         like LE, GE, LT, GT when emitting relational operator.
21418 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21420         * ira-costs.c (find_costs_and_classes): Add extra argument.
21421         * target.def (ira_change_pseudo_allocno_class): Add parameter.
21422         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21423         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21424         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21425         Add best_class parameter, and return it if not ALL_REGS.
21426         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21427         Add parameter.
21428         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21429         Update target hook.
21431 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21433         * config/aarch64/aarch64.c
21434         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21435         (aarch64_ira_change_pseudo_allocno_class): New function.
21437 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
21439         PR target/67032
21440         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21442 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21444         * config/avr/avr.c (avr_option_override): Set
21445         PARAM_ALLOW_STORE_DATA_RACES to 1.
21447 2016-02-02  Richard Biener  <rguenther@suse.de>
21449         PR tree-optimization/69595
21450         * match.pd: Add range test simplifications to true/false.
21452 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
21454         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
21455         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
21456         instead.
21458 2016-02-02  Richard Biener  <rguenther@suse.de>
21460         PR tree-optimization/69606
21461         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
21462         info on the result before moving a stmt.
21464 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
21466         PR middle-end/68542
21467         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
21468         branch with vector comparison.
21469         * config/i386/sse.md (VI48_AVX): New mode iterator.
21470         (define_expand "cbranch<mode>4): Add support for conditional branch
21471         with vector comparison.
21472         * tree-vect-loop.c (optimize_mask_stores): New function.
21473         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
21474         has_mask_store field of vect_info.
21475         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
21476         vectorized loops having masked stores after vec_info destroy.
21477         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
21478         correspondent macros.
21479         (optimize_mask_stores): Add prototype.
21481 2016-02-02  Alan Modra  <amodra@gmail.com>
21483         PR target/69548
21484         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
21485         allow subregs.
21487 2016-02-02  Alan Modra  <amodra@gmail.com>
21489         PR target/68662
21490         * config/rs6000/rs6000.c (need_toc_init): New var, set it
21491         whenever toc_label_name used.
21492         (rs6000_file_start): Don't set up toc section here,
21493         (rs6000_output_function_epilogue): do so here instead,
21494         (rs6000_xcoff_file_start): and here.
21495         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
21496         (load_toc_aix_di): Likewise.
21498 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21500         PR rtl-optimization/69592
21501         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
21502         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
21503         (num_sign_bit_copies_binary_arith_p): New inline function.
21504         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
21506 2016-02-01  Jeff Law  <law@redhat.com>
21508         PR tree-optimization/69580
21509         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
21510         * tree-ssa-threadbackward.c
21511         (fsm_find_control_statement_thread_paths): Do not try to walk
21512         through large PHI nodes.
21514 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21516         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
21517         when count is incremented above limit, don't analyze further
21518         insns afterwards.
21520         * omp-low.c (oacc_parse_default_dims): Avoid
21521         -Wsign-compare warning, make sure value fits into int
21522         rather than just unsigned int.
21524 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
21526         PR tree-optimization/67921
21527         * fold-const.c (split_tree): New parameters.  Convert pointer
21528         type variable part to proper type before negating.
21529         (fold_binary_loc): Pass new arguments to split_tree.
21531 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
21533         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
21534         (nvptx_goacc_validate_dims): Extend to handle global defaults.
21535         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
21536         * doc/tm.texti: Rebuilt.
21537         * doc/invoke.texi (fopenacc-dim): Document.
21538         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
21539         (append_compiler_options): Likewise.
21540         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
21541         (oacc_parse_default_dims): New.
21542         (oacc_validate_dims): Add USED arg.  Select non-unity default when
21543         possible.
21544         (oacc_loop_fixed_partitions): Return mask of used partitions.
21545         (oacc_loop_auto_partitions): Emit dump info.
21546         (oacc_loop_partition): Return mask of used partitions.
21547         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
21548         loop partitioning and validation calls.
21550 2016-02-01  Richard Biener  <rguenther@suse.de>
21552         PR middle-end/69556
21553         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
21555 2016-02-01  Richard Biener  <rguenther@suse.de>
21557         PR tree-optimization/69574
21558         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
21559         of asserting return chrec_dont_know.
21561 2016-02-01  Martin Liska  <mliska@suse.cz>
21563         * mem-stats-traits.h: Add copyright header.
21564         * mem-stats.h: Likewise.
21566 2016-02-01  Richard Biener  <rguenther@suse.de>
21568         PR tree-optimization/69579
21569         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
21570         Do not propagate through abnormal PHI results.
21572 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
21574         * postreload.c (reload_cse_simplify): Remove dead code.
21576 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21578         PR rtl-optimization/69570
21579         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
21580         if there is more than one set, not if there is a single set.
21582 2016-02-01  Richard Henderson  <rth@redhat.com>
21584         PR rtl-opt/69535
21585         * combine.c (make_compound_operation): When looking through a
21586         subreg, make sure to re-extend to the width of the outer mode.
21588 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
21590         PR tree-optimization/69546
21591         * wide-int.cc (wi::divmod_internal): For unsigned division
21592         where both operands fit into uhwi, if o1 is 1 and o0 has
21593         msb set, if divident_prec is larger than bits per hwi,
21594         clear another quotient word and return 2 instead of 1.
21595         Similarly for remainder with msb in HWI set, if dividend_prec
21596         is larger than bits per hwi.
21598 2016-01-29  Martin Jambor  <mjambor@suse.cz>
21600         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
21601         Use short lowercase names.
21602         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
21603         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
21604         acq_rel one.  Protect warning agains segfaults if
21605         get_memory_order_name returns NULL.
21606         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
21607         with release semantics.  Do not warn if get_memory_order already did.
21608         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
21609         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
21610         if get_memory_order already did.
21612 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
21614         * doc/install.texi: Document that isl-0.16 is supported.
21616 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
21618         PR target/69299
21619         * config/i386/constraints.md (Bm): Describe as special memory
21620         constraint.
21621         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
21622         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21623         * genpreds.c (struct constraint_data): Add is_special_memory.
21624         (have_special_memory_constraints, special_memory_start): New
21625         static vars.
21626         (special_memory_end): Ditto.
21627         (add_constraint): Add new arg is_special_memory.  Add code to
21628         process its true value.  Update have_special_memory_constraints.
21629         (process_define_constraint): Pass the new arg.
21630         (process_define_register_constraint): Ditto.
21631         (choose_enum_order): Process special memory.
21632         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
21633         function insn_extra_special_memory_constraint.
21634         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21635         * gensupport.c (process_rtx): Process
21636         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21637         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
21638         * ira-lives.c (single_reg_class): Use
21639         insn_extra_special_memory_constraint.
21640         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
21641         * lra-constraints.c (process_alt_operands): Ditto.
21642         (curr_insn_transform): Use insn_extra_special_memory_constraint.
21643         * recog.c (asm_operand_ok, preprocess_constraints): Process
21644         CT_SPECIAL_MEMORY.
21645         * reload.c (find_reloads): Ditto.
21646         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
21647         * stmt.c (parse_input_constraint): Use
21648         insn_extra_special_memory_constraint.
21650 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21652         PR target/69530
21653         * lra-splill.c (lra_final_code_change): Revert r229087 by
21654         removing all sub-registers.
21656 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
21658         PR target/65604
21659         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
21661 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
21663         PR target/69551
21664         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
21665         SSE1, copy target into the temporary reg first before recursing
21666         on it.
21668 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21670         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
21671         with vm.
21673 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
21675         * ginclude/stdarg.h: Test __cplusplus instead of
21676         __GXX_EXPERIMENTAL_CXX0X__.
21678 2016-01-29  Richard Biener  <rguenther@suse.de>
21680         PR tree-optimization/69547
21681         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
21682         Do not mark clobbers necessary.
21683         (mark_all_reaching_defs_necessary_1): Likewise.
21685 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21687         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
21688         declaration name with %qs and print it in both error messages.
21689         Also fix indentation.
21691 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21693         PR other/69006
21694         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
21695         trailing blank line from error message.
21697 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
21699         PR c++/69462
21700         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
21701         for C++-11.
21703 2016-01-29  Richard Biener  <rguenther@suse.de>
21705         PR middle-end/69537
21706         * match.pd: Allow all integral types when simplifying a
21707         widening or sign-changing conversion.
21709 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21711         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
21712         back to setting codegen_error to fail codegen.
21714 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
21716         PR target/69459
21717         * config/i386/constraints.md (C): Only accept constant zero operand.
21718         (BC): New constraint.
21719         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
21720         instead of C constraint.
21721         * doc/md.texi (Machine Constraints): Update description
21722         of C constraint.
21724 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
21726         PR target/68400
21727         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
21729 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
21731         PR middle-end/69542
21732         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
21733         non-debug insns.
21735 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
21737         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
21738         branches if using guessed profile.
21740 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
21742         * graphite-optimize-isl.c (optimize_isl): Fix dump.
21744 2016-01-28  Richard Henderson  <rth@redhat.com>
21746         PR target/69305
21747         * config/aarch64/aarch64-modes.def (CC_Cmode): New
21748         * config/aarch64/aarch64-protos.h: Update.
21749         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
21750         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
21751         (aarch64_get_condition_code_1): Handle CC_Cmode.
21752         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
21753         (*add<mode>3_compareC_cconly_imm): New.
21754         (*add<mode>3_compareC_cconly): New.
21755         (*add<mode>3_compareC_imm): New.
21756         (add<mode>3_compareC): New.
21757         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
21758         to be first.  Use aarch64_carry_operation.
21759         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
21760         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
21761         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
21762         (subti3): Use subdi3_compare1.
21763         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
21764         (sub<mode>3_compare1): New.
21765         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
21766         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
21767         (*subsi3_carryin_uxtw): Likewise.
21768         (*ngc<mode>, *ngcsi_uxtw): Likewise.
21769         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
21770         * config/aarch64/iterators.md (DWI): New.
21771         * config/aarch64/predicates.md (aarch64_carry_operation): New.
21772         (aarch64_borrow_operation): New.
21774 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
21776         * graphite-optimize-isl.c (optimize_isl): Print a different debug
21777         message when isl does not return a valid schedule.
21779 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21781         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
21782         Remove comments from class declarations: they are already in the code
21783         close by the defs.
21785 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21787         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
21788         codegen_error_p.
21789         (ternary_op_to_tree): Same.
21790         (unary_op_to_tree): Same.
21791         (nary_op_to_tree): Same.
21792         (gcc_expression_from_isl_expr_op): Same.
21793         (gcc_expression_from_isl_expression): Same.
21794         (graphite_create_new_loop): Same.
21795         (graphite_create_new_loop_guard): Same.
21796         (build_iv_mapping): Same.
21797         (graphite_create_new_guard): Same.
21798         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
21799         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
21801 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21803         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
21804         instead of setting codegen_error to fail codegen.
21806 2016-01-28  Jason Merrill  <jason@redhat.com>
21808         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
21810 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
21812         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
21813         Remove CONST_INT_P check in CCMP cost calculation.
21815 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
21817         * config/aarch64/aarch64.c (generic_vector_cost):
21818         Set vec_permute_cost.
21819         (cortexa57_vector_cost): Likewise.
21820         (exynosm1_vector_cost): Likewise.
21821         (xgene1_vector_cost): Likewise.
21822         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
21823         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
21824         Add vec_permute_cost entry.
21826 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
21828         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
21829         immediate as %1.
21830         (add<mode>3_compare0): Likewise.
21831         (addsi3_compare0_uxtw): Likewise.
21832         (add<mode>3nr_compare0): Likewise.
21833         (compare_neg<mode>): Likewise.
21834         (<optab><mode>3): Likewise.
21836 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
21838         * tree-vect-stmts.c (vectorizable_comparison): Add
21839         NULL check for vectype.
21841 2016-01-28  Richard Biener  <rguenther@suse.de>
21843         PR tree-optimization/69466
21844         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
21845         Account for PHIs we couldn't duplicate.
21847 2016-01-28  Martin Liska  <mliska@suse.cz>
21849         PR pch/68758
21850         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
21851         instead of ENABLE_VALGRIND_CHECKING.
21853 2016-01-27  Richard Henderson  <rth@redhat.com>
21855         PR rtl-opt/69447
21856         * lra-remat.c (subreg_regs): New.
21857         (dump_candidates_and_remat_bb_data): Dump it.
21858         (operand_to_remat): Reject if operand in subreg_regs.
21859         (set_bb_regs): Collect subreg_regs.
21860         (lra_remat): Init and free subreg_regs.  Compute
21861         calculate_local_reg_remat_bb_data before create_cands.
21863 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
21865         PR target/68986
21866         * config/i386/i386.c (ix86_update_stack_boundary): Don't
21867         change stack_alignment_needed for __tls_get_addr call.
21869 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
21871         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
21873 2016-01-27  Jeff Law  <law@redhat.com>
21875         PR tree-optimization/68398
21876         PR tree-optimization/69196
21877         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
21878         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
21879         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21880         Only count PHIs in the last block in the path.  The others will
21881         const/copy propagate away.  Add heuristic to allow more irreducible
21882         subloops to be created when it is likely profitable to do so.
21884         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21885         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
21886         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
21888 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
21890         PR lto/69254
21891         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
21892         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
21893         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
21894         * tree-streamer-in.c: Include asan.h.
21895         (streamer_get_builtin_tree): For builtins in sanitizer
21896         range call initialize_sanitizer_builtins and retry.
21898 2016-01-27  Ian Lance Taylor  <iant@google.com>
21900         * common.opt (fkeep-gc-roots-live): New undocumented option.
21901         * tree-ssa-loop-ivopts.c (add_candidate_1): If
21902         -fkeep-gc-roots-live, skip pointers.
21903         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
21904         NULL.
21906 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
21908         PR target/69512
21909         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
21910         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
21912 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
21914         PR target/68380
21915         * configure.ac: NetBSD provides SSP in its C library.
21916         * configure: Updated.
21918 2016-01-27  Richard Biener  <rguenther@suse.de>
21920         PR tree-optimization/69166
21921         * tree-vect-loop.c (vect_is_simple_reduction): Always check
21922         reduction code for commutativity / associativity.
21924 2016-01-27  Martin Jambor  <mjambor@suse.cz>
21926         PR tree-optimization/69355
21927         * tree-sra.c (analyze_access_subtree): Correct hole detection when
21928         total_scalarization fails.
21930 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
21932         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
21933         power9.
21935 2016-01-27  Christian Bruel  <christian.bruel@st.com>
21937         PR target/69245
21938         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
21939         Move arm_reset_previous_fndecl and set_target_option_current_node in
21940         the conditional part.  Call save_restore_target_globals.
21941         * config/arm/arm.c (arm_set_current_function):
21942         Refactor to better support #pragma target and attribute mix.
21943         Call save_restore_target_globals.
21944         * config/arm/arm-protos.h (save_restore_target_globals): New function.
21946 2016-01-27  Martin Liska  <mliska@suse.cz>
21948         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
21949         reference for an HSA kernel and its host function.
21951 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
21953         PR tree-optimization/69399
21954         * wide-int.h (wi::lrshift): For larger precisions, only
21955         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
21957 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
21959         * config/arc/predicates.md (proper_comparison_operator): Reject
21960         constant-constant comparison.
21962 2016-01-26  Tom de Vries  <tom@codesourcery.com>
21964         PR tree-optimization/69110
21965         * tree-data-ref.c (initialize_data_dependence_relation): Handle
21966         DR_NUM_DIMENSIONS == 0.
21968 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
21969             Sebastian Pop  <s.pop@samsung.com>
21971         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
21972         isl_ast_op_cond and isl_ast_op_select.
21973         (gcc_expression_from_isl_expr_op): Same.
21975 2016-01-26  Jason Merrill  <jason@redhat.com>
21977         PR c++/68782
21978         * tree.c (recompute_constructor_flags): Split out from
21979         build_constructor.
21980         (verify_constructor_flags): New.
21981         * tree.h: Declare them.
21983 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
21985         PR rtl-optimization/69217
21986         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
21987         are no TYPE_FIELDS set for the record type.
21989 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
21991         PR target/68662
21992         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
21993         toc_label_name unconditionally.
21994         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
21995         SYMBOL_REF string.  Use toc_label_name instead of constructing
21996         LCTOC1.
21997         (rs6000_elf_declare_function_name): Use toc_label_name instead of
21998         constructing LCTOC1.
22000 2016-01-26  Martin Sebor  <msebor@redhat.com>
22002         PR other/69477
22003         * doc/extend.texi (Common Type Attributes): Move text that talks about
22004         attribute packed from attribute aligned to the section discussing
22005         the former attribute for clarity.
22007 2016-01-26  Richard Henderson  <rth@redhat.com>
22009         PR middle-end/60908
22010         * trans-mem.c (tm_region_init): Mark entry block as visited.
22012 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
22014         PR other/69006
22015         * diagnostic-show-locus.c (layout::print_source_line): Replace
22016         call to pp_newline with call to layout::print_newline.
22017         (layout::print_annotation_line): Likewise.
22018         (layout::move_to_column): Likewise.
22019         (layout::print_any_fixits): After printing any fixits, print a
22020         trailing newline, if necessary.
22021         (layout::print_newline): New method, resetting any colorization
22022         before a newline.
22023         (diagnostic_show_locus): Move the pp_newline to before the
22024         early bailout.  Remove dummy block enclosing the layout instance.
22025         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
22026         of pp_newline_and_flush with pp_flush.
22027         (diagnostic_append_note): Delete use of pp_newline.
22028         (diagnostic_append_note_at_rich_loc): Delete.
22029         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
22030         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
22031         when newline characters are added to the buffer.
22033 2016-01-26  Michael Matz  <matz@suse.de>
22035         * configure.ac (ac_cv_std_swap_in_utility): New test.
22036         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
22037         * configure: Regenerate.
22038         * config.in: Regenerate.
22040 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
22042         * config/arc/arc.md (cstoresi4): Force operand into register.
22043         (arcset<code>): Fix predicate.
22044         (arcsetltu): Likewise.
22045         (arcsetgeu): Likewise.
22046         (arcsethi): Likewise.
22047         (arcsetls): Likewise.
22049 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22051         PR tree-optimization/69483
22052         * gimple-fold.c (canonicalize_constructor_val): Return NULL
22053         if base has error_mark_node type.
22055 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
22057         PR target/68620
22058         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
22059         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
22060         New helper macros.
22061         (vget_lane_f16): Handle big-endian.
22062         (vgetq_lane_f16): Likewise.
22063         (vset_lane_f16): Likewise.
22064         (vsetq_lane_f16): Likewise.
22065         * config/arm/iterators.md (VQXMOV): Add V8HF.
22066         (VDQ): Add V4HF and V8HF.
22067         (V_reg): Handle V4HF and V8HF.
22068         (Is_float_mode): Likewise.
22069         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
22070         neon_vdup_nv8hf): New patterns.
22071         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
22072         Use VD_LANE iterator.
22073         (neon_vld1_dup<mode>): Use VQ2 iterator.
22075 2016-01-26  Nathan Sidwell  <nathan@acm.org>
22077         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
22078         (set_oacc_fn_attrib): Add IS_KERNEL arg.
22079         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
22080         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
22081         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
22082         (oacc_validate_dims): Add LEVEL arg, don't return level.
22083         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
22084         oacc_validate_dims.
22085         (execute_oacc_device_lower): Adjust, add more dump output.
22086         * tree-ssa-loop.c (gate_oacc_kernels): Use
22087         oacc_fn_attrib_kernels_p.
22088         * tree-parloops.c (create_parallel_loop): Adjust
22089         set_oacc_fn_attrib call.
22091 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22093         PR lto/69254
22094         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
22095         (append_compiler_options): Handle -fcilkplus.
22096         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
22098 2016-01-26  Nick Clifton  <nickc@redhat.com>
22100         PR target/66655
22101         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
22102         been marked as DECL_ONE_ONLY but we do not the means to make it
22103         so, then do not allow it to bind locally.
22105 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22107         PR lto/69254
22108         * opts.h (parse_sanitizer_options): New prototype.
22109         * opts.c (sanitizer_opts): New array.
22110         (parse_sanitizer_options): New function.
22111         (common_handle_option): Use parse_sanitizer_options.
22113 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22115         PR target/68986
22116         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
22117         alignment adjustment to ...
22118         (ix86_update_stack_boundary): Here.  Don't over-align stack for
22119         __tls_get_addr.
22120         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
22121         if __tls_get_addr is called.
22123 2016-01-26  Christian Bruel  <christian.bruel@st.com>
22125         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
22127 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
22129         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
22131 2016-01-26  Richard Biener  <rguenther@suse.de>
22133         PR middle-end/69467
22134         * match.pd: Guard X * CST CMP 0 pattern with single_use.
22136 2016-01-26  Richard Biener  <rguenther@suse.de>
22138         PR tree-optimization/69452
22139         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
22140         (move_computations_dom_walker::before_dom_children): Rename
22141         to ...
22142         (move_computations_worker): This.
22143         (move_computations): Perform an RPO rather than a DOM walk.
22145 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22147         PR target/69442
22148         * combine.c (combine_instructions): For REG_EQUAL note with
22149         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
22150         to the underlying register.
22151         * doc/rtl.texi (REG_EQUAL): Document the behavior of
22152         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
22154 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
22156         PR target/67896
22157         * config/aarch64/aarch64-builtins.c
22158         (aarch64_init_simd_builtin_types): Do not set structural
22159         equality to __Poly{8,16,64,128}_t types.
22161 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
22163         PR tree-optimization/69400
22164         * wide-int.cc (wi_pack): Take the precision as argument and
22165         perform canonicalization here rather than in the callers.
22166         Use the main loop to handle all full-width HWIs.  Add a
22167         zero HWI if in_len isn't a full result.
22168         (wi::divmod_internal): Update accordingly.
22169         (wi::mul_internal): Likewise.  Simplify.
22171 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22172             Sebastian Pop  <s.pop@samsung.com>
22174         * graphite-poly.c (apply_poly_transforms): Simplify.
22175         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
22176         (print_isl_map): Same.
22177         (print_isl_union_map): Same.
22178         (print_isl_schedule): New.
22179         (debug_isl_schedule): New.
22180         * graphite-dependences.c (scop_get_reads): Do not call
22181         isl_union_map_add_map that is undocumented isl functionality.
22182         (scop_get_must_writes): Same.
22183         (scop_get_may_writes): Same.
22184         (scop_get_original_schedule): Remove.
22185         (scop_get_dependences): Do not call isl_union_map_compute_flow that
22186         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
22187         (compute_deps): Remove.
22188         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
22189         (debug_schedule_ast): New.
22190         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
22191         set_separate_option.
22192         (graphite_regenerate_ast_isl): Add dump.
22193         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
22194         from scop->transformed_schedule.
22195         (graphite_regenerate_ast_isl): Add more dump.
22196         * graphite-optimize-isl.c (optimize_isl): Set
22197         scop->transformed_schedule.  Check whether schedules are equal.
22198         (apply_poly_transforms): Move here.
22199         * graphite-poly.c (apply_poly_transforms): ... from here.
22200         (free_poly_bb): Static.
22201         (free_scop): Static.
22202         (pbb_number_of_iterations_at_time): Remove.
22203         (print_isl_ast): New.
22204         (debug_isl_ast): New.
22205         (debug_scop_pbb): New.
22206         * graphite-scop-detection.c (print_edge): Move.
22207         (print_sese): Move.
22208         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
22209         (build_scop_scattering): Remove.
22210         (create_pw_aff_from_tree): Assert instead of bailing out.
22211         (add_condition_to_pbb): Remove unused code, do not fail.
22212         (add_conditions_to_domain): Same.
22213         (add_conditions_to_constraints): Remove.
22214         (build_scop_context): New.
22215         (add_iter_domain_dimension): New.
22216         (build_iteration_domains): Initialize pbb->iterators.
22217         Call add_conditions_to_domain.
22218         (nested_in): New.
22219         (loop_at): New.
22220         (index_outermost_in_loop): New.
22221         (index_pbb_in_loop): New.
22222         (outermost_pbb_in): New.
22223         (add_in_sequence): New.
22224         (add_outer_projection): New.
22225         (outer_projection_mupa): New.
22226         (add_loop_schedule): New.
22227         (build_schedule_pbb): New.
22228         (build_schedule_loop): New.
22229         (embed_in_surrounding_loops): New.
22230         (build_schedule_loop_nest): New.
22231         (build_original_schedule): New.
22232         (build_poly_scop): Call build_original_schedule.
22233         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
22234         (free_poly_dr): Remove.
22235         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
22236         (free_poly_bb): Remove.
22237         (debug_loop_vec): Remove.
22238         (print_isl_ast): Declare.
22239         (debug_isl_ast): Declare.
22240         (scop_do_interchange): Remove.
22241         (scop_do_strip_mine): Remove.
22242         (scop_do_block): Remove.
22243         (flatten_all_loops): Remove.
22244         (optimize_isl): Remove.
22245         (pbb_number_of_iterations_at_time): Remove.
22246         (debug_scop_pbb): Declare.
22247         (print_schedule_ast): Declare.
22248         (debug_schedule_ast): Declare.
22249         (struct scop): Remove schedule.  Add original_schedule,
22250         transformed_schedule.
22251         (free_gimple_poly_bb): Remove.
22252         (print_generated_program): Remove.
22253         (debug_generated_program): Remove.
22254         (unify_scattering_dimensions): Remove.
22255         * sese.c (print_edge): ... here.
22256         (print_sese): ... here.
22257         (debug_edge): ... here.
22258         (debug_sese): ... here.
22259         * sese.h (print_edge): Declare.
22260         (print_sese): Declare.
22261         (dump_edge): Declare.
22262         (dump_sese): Declare.
22264 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22265             Sebastian Pop  <s.pop@samsung.com>
22267         * Makefile.in: Set ISLVER in site.exp.
22269 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
22271         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
22272         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
22273         through DECL_VALUE_EXPR for expansion.
22275 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22277         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
22278         the frame info after reload completed.
22280 2016-01-25  Jeff Law  <law@redhat.com>
22282         PR tree-optimization/69196
22283         PR tree-optimization/68398
22284         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
22285         tree-ssa-threadupdate.c.
22286         (determine_bb_domination_status): Prototype
22287         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
22288         (determine_bb_domination_status): No longer static.
22289         (valid_jump_thread_path): Remove code to detect characteristics
22290         of the jump thread path not associated with correctness.
22291         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
22292         Correct test for thread path length.  Count PHIs for real operands as
22293         statements that need to be copied.  Do not count ASSERT_EXPRs.
22294         Look at all the blocks in the thread path.  Compute and selectively
22295         filter thread paths based on threading through the latch, threading
22296         a multiway branch or crossing a multiway branch.
22298 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22300         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
22301         decl with __attribute__ ((unused)) annotation.
22303 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
22305         PR target/69421
22306         * tree-vect-stmts.c (vectorizable_condition): Check vectype
22307         of operands is compatible with a statement vectype.
22309 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
22311         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
22312         improve wording for mixed storage order support.
22314 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
22316         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
22317         (vcvt_u64_f64): Likewise.
22318         (vcvta_s64_f64): Likewise.
22319         (vcvta_u64_f64): Likewise.
22320         (vcvtm_s64_f64): Likewise.
22321         (vcvtm_u64_f64): Likewise.
22322         (vcvtn_s64_f64): Likewise.
22323         (vcvtn_u64_f64): Likewise.
22324         (vcvtp_s64_f64): Likewise.
22325         (vcvtp_u64_f64): Likewise.
22327 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
22329         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
22330         (arc_init): Check validity mll64 option.
22331         (arc_save_restore): Use double load/store instruction.
22332         (arc_expand_movmem): Likewise.
22333         (arc_split_move): Don't split if we have double load/store
22334         instructions. Returns a boolean.
22335         (arc_process_double_reg_moves): Change function to return boolean
22336         instead of a sequence of instructions.
22337         (arc_dwarf_register_span): New function.
22338         * config/arc/arc-protos.h (arc_split_move): Change prototype.
22339         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
22340         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
22341         (*movdf_insn): Likewise.
22342         * config/arc/arc.opt (mll64): New option.
22343         * config/arc/predicates.md (even_register_operand): New predicate.
22344         * doc/invoke.texi (ARC Options): Add mll64 documentation.
22346 2016-01-25  Richard Biener  <rguenther@suse.de>
22348         PR lto/69393
22349         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
22350         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
22351         DECL_NAMELESS.
22352         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
22354 2016-01-25  Richard Biener  <rguenther@suse.de>
22356         PR tree-optimization/69376
22357         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22358         flag.
22359         (VN_INFO_ANTI_RANGE_P): New inline.
22360         (VN_INFO_RANGE_TYPE): Likewise.
22361         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22362         SSA_NAME_ANTI_RANGE_P.
22363         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22364         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22365         Properly query VN_INFO_RANGE_TYPE.
22367 2016-01-25  Nick Clifton  <nickc@redhat.com>
22369         PR target/66655
22370         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22372 2016-01-23  Tom de Vries  <tom@codesourcery.com>
22374         PR tree-optimization/69426
22375         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22376         removed clobber.
22378 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
22380         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22381         "the the" with "the" in the comments.
22382         * ipa-devirt.c (build_type_inheritance_graph,
22383         update_type_inheritance_graph): Likewise.
22384         * tree.c (build_function_type_list_1): Likewise.
22385         * cfgloopmanip.c (scale_loop_profile): Likewise.
22386         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22387         * gimple-ssa-split-paths.c
22388         (find_block_to_duplicate_for_splitting_paths): Likewise.
22389         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22390         * expr.c (convert_move): Likewise.
22391         * var-tracking.c (vt_stack_adjustments): Likewise.
22392         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22393         * tree-vrp.c (test_for_singularity): Likewise.
22395         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22396         directly instead of building a temporary tree.
22398         PR bootstrap/69434
22399         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22400         remove <algorithm> include.
22402 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22404         PR target/69432
22405         * config/i386/i386.c: Include dojump.h.
22406         (expand_small_movmem_or_setmem,
22407         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22408         fixes.
22409         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22410         if dynamic_check != -1.
22412 2016-01-21  Jeff Law  <law@redhat.com>
22414         PR middle-end/69347
22415         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22416         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
22417         into dominated_by_p.
22418         (cprop_into_successor_phis): Avoid unnecessary tests.
22420 2016-01-22  Richard Henderson  <rth@redhat.com>
22422         PR target/69416
22423         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22424         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22426 2016-01-22  Michael Matz  <matz@suse.de>
22428         * system.h (string, algorithm): Include only conditionally.
22429         (new): Include always under C++.
22430         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22431         * final.c (toplevel): Ditto.
22432         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22433         * genconditions.c (write_header): Make gencondmd.c define
22434         INCLUDE_STRING.
22435         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22437         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22438         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22440 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22442         PR target/68674
22443         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22445 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22447         PR target/69403
22448         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22449         define_insn_and_split.  Ensure operands[1] and operands[0] do not
22450         get assigned the same register.
22452 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
22454         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
22456 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22458         * config/arm/arm-c.c (arm_pragma_target_parse):
22459         Remove warn_builtin_macro_redefined overwrite.
22461 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22463         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
22464         flag_non_call_exceptions compatibility.
22466 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22468         PR debug/66668
22469         * dwarf2out.c (add_child_die_after): New function.
22470         (dwarf_qual_info_t): New type.
22471         (dwarf_qual_info): New variable.
22472         (qualified_die_p): New function.
22473         (modified_type_die): For -fdebug-types-section, ensure
22474         canonical order of qualifiers.  Put qualified DIEs adjacent
22475         to the corresponding non-qualified type DIE and search there
22476         for existing qualified DIEs.
22478 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22480         * doc/extend.texi (scalar_storage_order type attribute): Document
22481         restriction on type punning and aliasing, and remove future tense.
22483 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
22485         PR target/69252
22486         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
22487         first stage.
22489 2016-01-21  Jeff Law  <law@redhat.com>
22491         PR middle-end/69347
22492         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
22493         useless call to record_temporary_equivalences.
22494         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
22495         allocate 10 slots in the bb_path vector and let it grow as needed.
22496         (fsm_find_control_statement_thread_paths): Similarly for the next_path
22497         vector.
22499 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22501         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
22502         Detangle.
22503         * configure: Regenerate.
22505 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
22507         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
22508         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
22510 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
22512         PR middle-end/66178
22513         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
22514         drop EXPAND_INITIALIZER.
22515         * rtl.h (contains_symbolic_reference_p): Declare.
22516         * rtlanal.c (contains_symbolic_reference_p): New function.
22517         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
22518         a subtraction into a NOT if symbolic constants are involved.
22520 2016-01-21  Anton Blanchard  <anton@samba.org>
22521             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22523         PR target/63354
22524         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
22525         #define.
22526         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
22527         function.
22529 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22531         * config/microblaze/microblaze.c
22532         (get_branch_target): New.
22533         (insert_wic_for_ilb_runout): New.
22534         (insert_wic): New.
22535         (microblaze_machine_dependent_reorg): New.
22536         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
22537         * config/microblaze/microblaze.md
22538         (UNSPEC_IPREFETCH): Define.
22539         (iprefetch): New pattern
22540         * config/microblaze/microblaze.opt
22541         (mxl-prefetch): New flag.
22543 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22545         * config/microblaze/microblaze.h
22546         (FIXED_REGISTERS): Update in macro.
22547         (CALL_USED_REGISTERS): Update in macro.
22549 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
22551         PR rtl-optimization/68920
22552         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
22553         moves.
22555 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
22557         PR rtl-optimization/68990
22558         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
22559         pseudo instead of inheritance ones.
22561 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22562             Nick Clifton  <nickc@redhat.com>
22564         PR target/69129
22565         PR target/69012
22566         * config/mips/mips.c (mips_compute_frame_info): Initialise
22567         args_size and hard_frame_pointer_offset fields of the frame
22568         structure before calling mips_global_pointer.
22570 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22572         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
22573         label reference.
22574         * configure: Regenerate.
22576 2016-01-21  Richard Biener  <rguenther@suse.de>
22578         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
22580 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22582         * config/s390/s390.c (s390_asm_declare_function_size): Add code
22583         to actually emit the .size directive.
22585 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
22586              Jakub Jelinek  <jakub@redhat.com>
22588         PR target/69187
22589         PR target/65624
22590         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
22591         args array size by one to avoid buffer overflow.
22593 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22595         * config/s390/s390.md (pool_section_start): Use switch_to_section
22596         to select proper read-only data section instead of hardcoding
22597         .rodata.
22598         (pool_section_end): Use switch_to_section to match the above.
22600 2016-01-21  Richard Biener  <rguenther@suse.de>
22602         PR tree-optimization/69378
22603         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
22604         (set_ssa_val_to): Use it for dominance checks taking into
22605         account not executable edges.
22607 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
22609         PR c++/69355
22610         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
22611         for bitsize instead of GET_MODE_PRECISION (mode).
22613 2016-01-20  Martin Sebor  <msebor@redhat.com>
22615         PR c/52291
22616         * extend.texi (__sync Builtins): Clarify the semantics of
22617         __sync_fetch_and_OP built-ins on pointers.
22618         (__atomic Builtins): Same.
22620 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22621             Sebastian Pop  <s.pop@samsung.com>
22623         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
22624         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
22625         (is_valid_rename): Same.
22626         (translate_isl_ast_to_gimple::get_rename): Same.
22627         (translate_isl_ast_to_gimple::rename_all_uses): Same.
22628         (translate_isl_ast_to_gimple::rename_uses): Same.
22629         (get_new_name): Check for close_phi nodes.
22630         (copy_loop_phi_args): Use phi_node_kind.
22631         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
22632         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
22634 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22635             Sebastian Pop  <s.pop@samsung.com>
22637         Revert commit r229783.
22638         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
22639         Remove use of parameter_rename_map.
22640         (copy_def): Remove.
22641         (copy_internal_parameters): Remove.
22642         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
22643         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
22644         (free_sese_info): Do not free parameter_rename_map.
22645         (set_rename): Do not use parameter_rename_map.
22646         (rename_uses): Update call to set_rename.
22647         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
22648         * sese.h (parameter_rename_map_t): Remove.
22649         (struct sese_info_t): Remove field parameter_rename_map.
22651 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22652             Sebastian Pop  <s.pop@samsung.com>
22654         * graphite-isl-ast-to-gimple.c: Fix comment.
22655         * graphite-scop-detection.c (defined_in_loop_p): New.
22656         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
22657         names defined in loop.
22659 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22660             Sebastian Pop  <s.pop@samsung.com>
22662         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
22663         Discard unstructured if-then-else regions.
22665 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22666             Sebastian Pop  <s.pop@samsung.com>
22668         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
22669         (cleanup_loop_iter_dom): Remove.
22670         (build_loop_iteration_domains): Remove.
22671         (build_scop_context): Remove.
22672         (build_scop_iteration_domain): Remove.
22673         (add_loop_constraints): New.
22674         (build_iteration_domains): New.
22675         (build_poly_scop): Call build_iteration_domains.
22677 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22678             Sebastian Pop  <s.pop@samsung.com>
22680         * graphite-scop-detection.c
22681         (scop_detection::harmful_loop_in_region): Free dom and loops.
22682         (scop_detection::loop_body_is_valid_scop): Free bbs.
22684 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22685             Sebastian Pop  <s.pop@samsung.com>
22687         * graphite-scop-detection.c (record_loop_in_sese): New.
22688         (gather_bbs::before_dom_children): Call record_loop_in_sese.
22689         (build_scops): Remove call to build_sese_loop_nests.
22690         * sese.c (sese_record_loop): Remove.
22691         (build_sese_loop_nests): Remove.
22692         (new_sese_info): Remove region->loops.
22693         (free_sese_info): Same.
22694         * sese.h (sese_contains_loop): Same.
22695         (build_sese_loop_nests): Remove.
22696         (sese_contains_loop): Remove.
22698 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22699             Sebastian Pop  <s.pop@samsung.com>
22701         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
22702         loop_is_valid_in_scop.
22703         (scop_detection::harmful_stmt_in_region): Renamed
22704         harmful_loop_in_region.
22705         Call loop_is_valid_in_scop.
22707 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22708             Sebastian Pop  <s.pop@samsung.com>
22710         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
22711         isl_ast_node_mark.
22713 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22714             Sebastian Pop  <s.pop@samsung.com>
22716         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
22717         * graphite.h (struct poly_bb): Remove field is_reduction.
22718         (PBB_IS_REDUCTION): Remove.
22720 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22721             Sebastian Pop  <s.pop@samsung.com>
22723         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
22724         (add_pdr_constraints): Same.
22725         (scop_get_reads): Same.
22726         (scop_get_must_writes): Same.
22727         (scop_get_may_writes): Same.
22728         (scop_get_original_schedule): Same.
22729         (extend_schedule): Same.
22730         (apply_schedule_on_deps): Same.
22731         (carries_deps): Same.
22732         (compute_deps): Same.
22733         (scop_get_dependences): Same.
22734         * graphite-isl-ast-to-gimple.c
22735         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
22736         * graphite-optimize-isl.c (get_schedule_for_band): Same.
22737         (get_schedule_for_band_list): Same.
22738         (get_schedule_map): Same.
22739         (apply_schedule_map_to_scop): Same.
22740         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
22741         (build_loop_iteration_domains): Same.
22742         (add_condition_to_pbb): Same.
22743         (add_param_constraints): Same.
22744         (pdr_add_memory_accesses): Same.
22745         (pdr_add_data_dimensions): Same.
22747 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
22749         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
22750         requirements.
22752 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
22754         * common.opt (feliminate-dwarf2-dups): Replace references to
22755         "DWARF 2" with just "DWARF".
22756         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
22757         * doc/extend.texi: Likewise.
22758         * doc/cpp.texi: Likewise.
22759         * doc/invoke.texi: Likewise.
22760         (Option Summary): Add -gdwarf to list of Debugging Options.
22761         (Debugging Options): Document -gdwarf.
22762         * doc/contrib.texi: Spell "DWARF" like that.
22764 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
22766         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
22767         warning.  Fix up formatting.
22769         PR middle-end/67653
22770         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
22771         attempt to mark memory input operand addressable and
22772         call prepare_gimple_addressable in that case.  Don't adjust
22773         input_location for diagnostics, use error_at instead.
22775 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
22777         * config/rs6000/ppc-auxv.h: New file.
22778         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
22779         (cpu_is): Likewise.
22780         (cpu_supports): Likewise.
22781         * config/rs6000/rs6000.c: include "ppc-auxv.h".
22782         (cpu_is_info): New variable.
22783         (cpu_supports_info): Likewise.
22784         (tcb_verification_symbol): Likewise.
22785         (cpu_builtin_p): Likewise.
22786         (cpu_expand_builtin): New function.
22787         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
22788         (rs6000_init_builtins): Likewise.
22789         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
22790         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
22791         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
22792         * configure: Regenerate.
22793         * config.in: Likewise.
22794         * doc/extend.texi (PowerPC Built-in Functions): Document
22795         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
22797 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
22799         PR target/68609
22800         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
22801         domain check.
22802         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
22803         for V4SFmode.
22805 2016-01-20  Richard Henderson  <rth@redhat.com>
22807         PR bootstrap/69343
22808         PR bootstrap/69339
22809         PR tree-opt/68964
22810         Revert:
22811         * tree.c (tm_define_builtin): New.
22812         (find_tm_vector_type): New.
22813         (build_tm_vector_builtins): New.
22814         (build_common_builtin_nodes): Call it.
22816 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
22818         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
22819         (arm_fp_ok): Likewise.
22820         (arm_fp): Likewise.
22821         (arm_crypto): Likewise.
22823 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
22824             Richard Biener  <rguenther@suse.de>
22826         PR tree-optimization/69328
22827         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
22828         vectors have same number of elements.
22829         (vectorizable_condition): Fix masked version recognition.
22831 2016-01-20  Richard Biener  <rguenther@suse.de>
22833         PR tree-optimization/69345
22834         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
22835         (VN_INFO_PTR_INFO): Likewise.
22836         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
22837         info when it is equal between non-dominating SSA names.
22838         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22839         Make sure to look at original SSA infos.
22841 2016-01-20  Jeff Law  <law@redhat.com>
22843         PR target/25114
22844         * config/m68k/predicates.md (pow2_m1_operand): New predicate
22845         extracted from ...
22846         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
22847         (pc_or_label_operand): New predicate.
22848         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
22849         tests for small integers that are 2^n - 1.
22851 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
22853         * doc/invoke.texi (Options Summary): Add '.' after @xref.
22855 2016-01-19  Jeff Law  <law@redhat.com>
22857         PR middle-end/69347
22858         * tree-ssa-threadbackwards.c
22859         (fsm_find_control_statement_thread_paths): Do not try to lookup
22860         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
22862 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
22864         * doc/lto.texi: Remove text that says only Gold has linker plugin
22865         support.
22867 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
22869         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
22870         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
22871         the DIE accordingly.
22872         (modified_type_die): Add REVERSE parameter and pass it recursively,
22873         as well as to base_type_die.  Adjust presence check accordingly.
22874         (base_type_for_mode): Adjust call to modified_type_die.
22875         (add_type_attribute): Add REVERSE parameter and pass it to
22876         modified_type_die.
22877         (generic_parameter_die): Adjust call to add_type_attribute.
22878         (add_scalar_info): Likewise.
22879         (add_subscript_info): Likewise.
22880         (gen_array_type_die): Likewise.
22881         (gen_descr_array_type_die): Likewise.
22882         (gen_entry_point_die): Likewise.
22883         (gen_enumeration_type_die): Likewise.
22884         (gen_formal_parameter_die): Likewise.
22885         (gen_subprogram_die): Likewise.
22886         (gen_variable_die ): Likewise.
22887         (gen_const_die): Likewise.
22888         (gen_field_die): Likewise.
22889         (gen_pointer_type_die): Likewise.
22890         (gen_reference_type_die): Likewise.
22891         (gen_ptr_to_mbr_type_die): Likewise.
22892         (gen_inheritance_die): Likewise.
22893         (gen_subroutine_type_die): Likewise.
22894         (gen_typedef_die): Likewise.
22895         (force_type_die): Adjust call to modified_type_die.
22897 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
22899         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
22900         flow throughout the file.  Fix broken link to Objective-C 2.0
22901         documentation.
22902         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
22903         errors.
22905 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22907         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
22909 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
22911         PR ipa/66223
22912         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
22913         (maybe_record_node): Record cxa_pure_virtual as the only possible
22914         target if there are not ohter candidates.
22915         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
22917 2016-01-19  Richard Biener  <rguenther@suse.de>
22919         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
22920         (get_memory_order): Likewise.
22922 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
22924         * tree-vect-stmts.c (vectorizable_store): Check
22925         rhs vectype.
22927 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
22929         PR jit/68446
22930         * gcc.c (driver::decode_argv): Add call to
22931         init_opts_obstack before init_options_struct.
22932         * opts.c (init_opts_obstack): Remove idempotency.
22933         (init_options_struct): Replace call to init_opts_obstack
22934         with a gcc_assert to verify that it has already been called.
22935         * toplev.c (toplev::main): Add call to init_opts_obstack before
22936         calls to init_options_struct.
22937         (toplev::finalize): Move cleanup of opts_obstack next to
22938         cleanup of save_decoded_options, clearing the latter, and
22939         save_decoded_options_count.
22941 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22943         PR target/69135
22944         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
22945         attribute to unconditional.  Remove %? from output template.
22947 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22948             Jiong Wang  <jiong.wang@arm.com>
22950         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
22951         generated from different expand order.
22953 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22955         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22956         Add support for CCMP costing.
22958 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22960         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
22961         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
22962         (fccmpe<mode>): Likewise.
22963         (fcmp): Rename to fcmp and globalize pattern.
22964         (fcmpe): Likewise.
22965         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
22966         (aarch64_gen_ccmp_next): Add FP support.
22968 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22970         * target.def (gen_ccmp_first): Update documentation.
22971         (gen_ccmp_next): Likewise.
22972         * doc/tm.texi (gen_ccmp_first): Update documentation.
22973         (gen_ccmp_next): Likewise.
22974         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
22975         expand_ccmp_expr_1.  Improve comments.
22976         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
22977         (ccmp_ior<mode>): Remove pattern.
22978         (cmp<mode>): Remove expand.
22979         (cmp): Globalize pattern.
22980         (cstorecc4): Use cc_register.
22981         (mov<mode>cc): Remove ccmp_cc_register check.
22982         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
22983         Simplify after removal of CC_DNE/* modes.
22984         (aarch64_ccmp_mode_to_code): Remove.
22985         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
22986         In 'k' case use integer as condition.
22987         (aarch64_nzcv_codes): Remove inverted cases.
22988         (aarch64_code_to_ccmode): Remove.
22989         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
22990         comparison with CC register to be used in folowing CCMP/branch/CSEL.
22991         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
22992         pattern.  Return the comparison with CC register.  Invert conditions
22993         when bitcode is OR.
22994         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
22995         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
22997 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
22999         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23000         instrumented_version.
23002 2016-01-19  Richard Biener  <rguenther@suse.de>
23004         PR tree-optimization/69336
23005         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
23006         handled components with get_ref_base_and_extent.
23007         (equal_mem_array_ref_p): Adjust.
23009 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23011         PR debug/65779
23012         * shrink-wrap.c: Include valtrack.h.
23013         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
23014         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
23015         in between insn and where it will be moved to.  Call
23016         dead_debug_insert_temp.
23017         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
23018         first and dead_debug_local_finish at the end.
23019         For uses and defs bitmap, handle all regs in between REGNO and
23020         END_REGNO, not just the first one.
23022 2016-01-19  Richard Biener  <rguenther@suse.de>
23024         PR tree-optimization/69352
23025         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
23026         (equal_mem_array_ref_p): Constrain size and max size properly.
23027         Compare the reverse flag.
23029 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
23031         * ira.c (ira): Update regstat data if we deleted insns.
23033 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23035         PR rtl-optimization/68955
23036         PR rtl-optimization/64557
23037         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
23038         here.  Fix up formatting.
23039         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
23041 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23043         PR lto/69133
23044         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
23045         assume that the node has body.
23046         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
23047         check.
23049 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23051         * lto-streamer-out.c (lto_output): Do not stream instrumentation
23052         thunks.
23054 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23056         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
23057         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
23059 2016-01-19  Martin Jambor  <mjambor@suse.cz>
23060             Martin Liska  <mliska@suse.cz>
23061             Michael Matz  <matz@suse.de>
23063         * Makefile.in (OBJS): Add new source files.
23064         (GTFILES): Add hsa.c.
23065         * common.opt (disable_hsa): New variable.
23066         (-Whsa): New warning.
23067         * config.in (ENABLE_HSA): New.
23068         * configure.ac: Treat hsa differently from other accelerators.
23069         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
23070         $enable_offloading.
23071         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
23072         * doc/install.texi (Configuration): Document --with-hsa-runtime,
23073         --with-hsa-runtime-include, --with-hsa-runtime-lib and
23074         --with-hsa-kmt-lib.
23075         * doc/invoke.texi (-Whsa): Document.
23076         (hsa-gen-debug-stores): Likewise.
23077         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
23078         to invoke offload compiler for hsa acclerator.
23079         * opts.c (common_handle_option): Determine whether HSA offloading
23080         should be performed.
23081         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
23082         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
23083         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
23084         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
23085         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
23086         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
23087         GF_OMP_FOR_KIND_GRID_LOOP.
23088         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
23089         (pp_gimple_stmt_1): Likewise.
23090         * gimple-walk.c (walk_gimple_stmt): Likewise.
23091         * gimple.c (gimple_build_omp_grid_body): New function.
23092         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
23093         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
23094         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
23095         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
23096         GF_OMP_TEAMS_GRID_PHONY.
23097         (gimple_statement_omp_single_layout): Updated comments.
23098         (gimple_build_omp_grid_body): New function.
23099         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
23100         (gimple_omp_for_grid_phony): New function.
23101         (gimple_omp_for_set_grid_phony): Likewise.
23102         (gimple_omp_parallel_grid_phony): Likewise.
23103         (gimple_omp_parallel_set_grid_phony): Likewise.
23104         (gimple_omp_teams_grid_phony): Likewise.
23105         (gimple_omp_teams_set_grid_phony): Likewise.
23106         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
23107         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
23108         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
23109         (BUILT_IN_GOMP_TARGET): Updated type.
23110         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
23111         (adjust_for_condition): New function.
23112         (get_omp_for_step_from_incr): Likewise.
23113         (extract_omp_for_data): Moved parts to adjust_for_condition and
23114         get_omp_for_step_from_incr.
23115         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
23116         (fixup_child_record_type): Bail out if receiver_decl is NULL.
23117         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
23118         (scan_omp_parallel): Do not create child functions for phony
23119         constructs.
23120         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
23121         (scan_omp_1_op): Checking assert we are not remapping to
23122         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
23123         (parallel_needs_hsa_kernel_p): New function.
23124         (expand_parallel_call): Register apprpriate parallel child
23125         functions as HSA kernels.
23126         (grid_launch_attributes_trees): New type.
23127         (grid_attr_trees): New variable.
23128         (grid_create_kernel_launch_attr_types): New function.
23129         (grid_insert_store_range_dim): Likewise.
23130         (grid_get_kernel_launch_attributes): Likewise.
23131         (get_target_argument_identifier_1): Likewise.
23132         (get_target_argument_identifier): Likewise.
23133         (get_target_argument_value): Likewise.
23134         (push_target_argument_according_to_value): Likewise.
23135         (get_target_arguments): Likewise.
23136         (expand_omp_target): Call get_target_arguments instead of looking
23137         up for teams and thread limit.
23138         (grid_expand_omp_for_loop): New function.
23139         (grid_arg_decl_map): New type.
23140         (grid_remap_kernel_arg_accesses): New function.
23141         (grid_expand_target_kernel_body): New function.
23142         (expand_omp): Call it.
23143         (lower_omp_for): Do not emit phony constructs.
23144         (lower_omp_taskreg): Do not emit phony constructs but create for them
23145         a temporary variable receiver_decl.
23146         (lower_omp_taskreg): Do not emit phony constructs.
23147         (lower_omp_teams): Likewise.
23148         (lower_omp_grid_body): New function.
23149         (lower_omp_1): Call it.
23150         (grid_reg_assignment_to_local_var_p): New function.
23151         (grid_seq_only_contains_local_assignments): Likewise.
23152         (grid_find_single_omp_among_assignments_1): Likewise.
23153         (grid_find_single_omp_among_assignments): Likewise.
23154         (grid_find_ungridifiable_statement): Likewise.
23155         (grid_target_follows_gridifiable_pattern): Likewise.
23156         (grid_remap_prebody_decls): Likewise.
23157         (grid_copy_leading_local_assignments): Likewise.
23158         (grid_process_kernel_body_copy): Likewise.
23159         (grid_attempt_target_gridification): Likewise.
23160         (grid_gridify_all_targets_stmt): Likewise.
23161         (grid_gridify_all_targets): Likewise.
23162         (execute_lower_omp): Call grid_gridify_all_targets.
23163         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
23164         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
23165         (tree_omp_clause): Added union field dimension.
23166         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
23167         * tree.c (omp_clause_num_ops): Added number of arguments of
23168         OMP_CLAUSE__GRIDDIM_.
23169         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
23170         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
23171         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
23172         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
23173         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
23174         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
23175         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
23176         * tree-pass.h (make_pass_gen_hsail): Declare.
23177         (make_pass_ipa_hsa): Likewise.
23178         * ipa-hsa.c: New file.
23179         * lto-section-in.c (lto_section_name): Add hsa section name.
23180         * lto-streamer.h (lto_section_type): Add hsa section.
23181         * timevar.def (TV_IPA_HSA): New.
23182         * hsa-brig-format.h: New file.
23183         * hsa-brig.c: New file.
23184         * hsa-dump.c: Likewise.
23185         * hsa-gen.c: Likewise.
23186         * hsa.c: Likewise.
23187         * hsa.h: Likewise.
23188         * toplev.c (compile_file): Call hsa_output_brig.
23189         * hsa-regalloc.c: New file.
23191 2016-01-18  Jeff Law  <law@redhat.com>
23193         PR tree-optimization/69320
23194         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
23195         ranged object, do nothing if the RHS constant is not [0..1].
23196         (optimize_stmt): Comparing a boolean ranged object against a
23197         constant outside [0..1] results in a compile-time constant.
23199         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
23200         test.
23202 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
23204         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23205         (Option Summary): Update to reflect new section and moved options.
23206         (C++ Dialect Options): Move -fstats to new section.
23207         (Debugging Options): Move all dump, statistics, and other GCC
23208         developer options to new section.  Rewrite section introduction
23209         and re-order remaining options to put the more basic ones first.
23210         (Optimization Options): Move -fira-verbose and -flto-report* to
23211         new section.
23212         (Developer Options): New section incorporating moved options.
23213         * doc/cppopts.texi (-dM): Update cross-reference.
23215 2016-01-18  Richard Henderson  <rth@redhat.com>
23217         PR target/69176
23218         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
23219         operands to pseudo only if CSE is expected.  Split long immediate
23220         operands only after reload, and for the stack pointer.
23221         (*add<GPI>3_pluslong): Remove.
23222         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
23223         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
23224         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
23225         (*add<GPI>3 peepholes): New.
23226         (*add<GPI>3 splitters): New.
23227         * config/aarch64/constraints.md (Upl): New.
23228         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
23230 2016-01-18  Richard Biener  <rguenther@suse.de>
23232         PR tree-optimization/69297
23233         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
23234         stmt at most once.
23235         (vect_bb_vectorization_profitable_p): Clear visited flag again.
23237 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23239         PR middle-end/68542
23240         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
23241         of mixind vector and scalar types.
23242         (fold_relational_const): Add handling of vector
23243         comparison with boolean result.
23244         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
23245         comparison of vector operands with boolean result for EQ/NE only.
23246         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
23247         (verify_gimple_cond): Likewise.
23248         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
23249         valid type of VAL.
23251 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
23253         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
23254         !TARGET_OCTEON.
23256 2016-01-18  Richard Biener  <rguenther@suse.de>
23258         PR middle-end/69308
23259         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
23261 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23263         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
23265 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23267         * omp-low.c (set_oacc_fn_attrib): Make extern.
23268         * omp-low.h (set_oacc_fn_attrib): Declare.
23269         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
23270         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
23271         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
23272         Add and handle function parameter oacc_kernels_p.
23273         (find_reduc_addr, get_omp_data_i_param): New function.
23274         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
23275         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
23276         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
23277         Calculate dominance info.  Skip loops that are not in a kernels region
23278         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
23279         (pass_parallelize_loops::execute): Call parallelize_loops with
23280         oacc_kernels_p argument.
23281         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
23282         New member function.
23283         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
23284         * passes.def: Add argument to pass_parallelize_loops instantation.
23286 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23288         * tree-parloops.c (pass_parallelize_loops::execute): Allow
23289         pass_parallelize_loops to be run outside the loop pipeline.
23291 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23293         * tree-scalar-evolution.c (follow_copies_to_constant): New.
23294         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
23296 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23298         PR target/63679
23299         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
23300         using get_ref_base_and_extent.
23301         (equal_mem_array_ref_p): New.
23302         (hashable_expr_equal_p): Add call to previous.
23304 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23306         PR target/63679
23307         * tree-sra.c (disqualified_constants, constant_decl_p): New.
23308         (sra_initialize): Allocate disqualified_constants.
23309         (sra_deinitialize): Free disqualified_constants.
23310         (disqualify_candidate): Update disqualified_constants when appropriate.
23311         (create_access): Scan for constant-pool entries as we go along.
23312         (scalarizable_type_p): Add check against type_contains_placeholder_p.
23313         (maybe_add_sra_candidate): Allow constant-pool entries.
23314         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
23315         (initialize_constant_pool_replacements): New.
23316         (sra_modify_assign): Avoid mangling assignments created by previous,
23317         and don't generate writes into constant pool.
23318         (sra_modify_function_body): Call initialize_constant_pool_replacements.
23320 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23322         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
23323         andnot instruction.
23324         (scalar_chain::convert_op): Likewise.
23325         * config/i386/i386.md (*andndi3_doubleword): New.
23327 2016-01-18  Richard Biener  <rguenther@suse.de>
23329         PR tree-optimization/69170
23330         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
23331         building a vector from scalar results of a pattern stmt.
23333 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
23335         * haifa-sched.c (autopref_multipass_init): Work around
23336         -Wmaybe-uninitialized warning.
23338 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23340         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
23341         against the constant 0.
23343 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23345         PR tree-optimization/68799
23346         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
23347         look up phi candidates in the statement-candidate map.
23348         (phi_add_costs): Likewise.
23349         (record_phi_increments): Likewise.
23350         (phi_incr_cost): Likewise.
23351         (ncd_with_phi): Likewise.
23352         (all_phi_incrs_profitable): Likewise.
23354 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
23356         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23357         -Wmaybe-uninitialized warning.
23359 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
23361         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23362         (Option Summary): Update to reflect new section and moved options.
23363         (C++ Dialect Options): Move -fvtable-verify and related options.
23364         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23365         and profiling-related options.
23366         (Optimization Options): Move profile generation options and
23367         -fstack-protector and related options.
23368         (Instrumentation Options): New section incorporating moved options.
23369         (Code Generation Options): Move -finstrument-functions and
23370         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23372 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23374         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23376 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23378         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
23380 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
23382         * hash-table.h (hash_table::empty): Turn into an inline wrapper
23383         that checks whether the table is already empty.  Rename the
23384         original implementation to...
23385         (hash_table::empty_slot): ...this new private function.
23387 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
23389         PR diagnostic/68899
23390         * diagnostic-show-locus.c (layout::print_source_line): Move x
23391         offset of line until after call to
23392         get_line_width_without_trailing_whitespace.
23394 2016-01-15  Jeff Law  <law@redhat.com>
23396         PR tree-optimization/69270
23397         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23398         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
23399         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23400         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23401         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23402         ssa_name_has_boolean_range and constant_boolean_node.
23404 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23406         PR rtl-optimization/69030
23407         * lra-spills.c (remove_pseudos): Check nrefs and make the function
23408         returning bool.
23409         (spill_pseudos): Delete debug insn for dead pseudo.
23410         (lra_spill): Initiate spill_hard_reg and slots memory separately.
23412 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
23414         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23415         New.
23416         (TYPES_UNOPUS): Likewise.
23417         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23418         builtin type, from UNOP to UNOPUS.
23419         (lbtruncuv4sf): Likewise.
23420         (lbtruncuv2df): Likewise.
23421         (lrounduv2sf): Likewise.
23422         (lrounduv4sf): Likewise.
23423         (lrounduv2df): Likewise.
23424         (lroundusf): Likewise.
23425         (lroundusf): Likewise.
23426         (lceiluv2sf): Likewise.
23427         (lceiluv4sf): Likewise.
23428         (lceiluv2df): Likewise.
23429         (lceilusf): Likewise.
23430         (lceiludf): Likewise.
23431         (lflooruv2sf): Likewise.
23432         (lflooruv4sf): Likewise.
23433         (lflooruv2df): Likewise.
23434         (lfloorusf): Likewise.
23435         (lfloorudf): Likewise.
23436         (lfrintnuv2sf): Likewise.
23437         (lfrintnuv4sf): Likewise.
23438         (lfrintnuv2df): Likewise.
23439         (lfrintnusf): Likewise.
23440         (lfrintnudf): Likewise.
23441         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23442         conversion.
23443         (vcvtq_u32_f32): Likewise.
23444         (vcvtq_u64_f64): Likewise.
23445         (vcvta_u32_f32): Likewise.
23446         (vcvtaq_u32_f32): Likewise.
23447         (vcvtaq_u64_f64): Likewise.
23448         (vcvtm_u32_f32): Likewise.
23449         (vcvtmq_u32_f32): Likewise.
23450         (vcvtmq_u64_f64): Likewise.
23451         (vcvtn_u32_f32): Likwise.
23452         (vcvtnq_u32_f32): Likewise.
23453         (vcvtnq_u64_f64): Likewise.
23454         (vcvtp_u32_f32): Likewise.
23455         (vcvtpq_u32_f32): Likewise.
23456         (vcvtpq_u64_f64): Likewise.
23457         (vcvtmd_u64_f64): Likewise.
23458         (vcvtms_u32_f32): Likewise.
23459         (vcvtad_u64_f64): Likewise.
23460         (vcvtas_u32_f32): Likewise.
23461         (vcvtnd_u64_f64): Likewise.
23462         (vcvtns_u32_f32): Likewise.
23463         (vcvtpd_u64_f64): Likewise.
23464         (vcvtps_u32_f32): Likewise.
23466 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23468         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
23469         CSEL of zero_extended registers.
23471 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23473         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23474         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
23476 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23478         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
23479         false when argument string is not found in the attributes table
23480         at all.
23482 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
23484         PR target/68609
23485         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
23486         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
23487         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
23488         precision estimate.
23490 2016-01-15  Richard Biener  <rguenther@suse.de>
23492         PR tree-optimization/66856
23493         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
23494         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
23495         (vect_create_new_slp_node): Increment stmt reference count.
23496         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
23497         an SLP tree before swapping operands.
23498         (vect_build_slp_tree): Likewise.
23499         (destroy_bb_vec_info): Free stmt info after SLP instances.
23500         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
23501         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
23502         (STMT_VINFO_NUM_SLP_USES): New macro.
23504 2016-01-15  Richard Biener  <rguenther@suse.de>
23506         PR debug/69137
23507         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
23508         (add_linkage_name): ... here.
23509         (gen_typedef_die): Use add_linkage_name_raw instead of
23510         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
23511         if necessary.
23513 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
23515         * gimplify.c (oacc_default_clause): Decode reference and pointer
23516         types for both kernels and parallel regions.
23518 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23520         PR middle-end/69246
23521         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
23523 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23525         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
23526         (convert_scalars_to_vector): Likewise.
23528 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
23530         * doc/extend.texi (Type Traits): Fix grammar.
23532 2016-01-15  Martin Jambor  <mjambor@suse.cz>
23534         * tree-inline.c (remap_decl): Use existing dclarations if
23535         remapping a type and prevent_decl_creation_for_types.
23536         (replace_locals_stmt): Do an initial remapping of non-VLA typed
23537         decls first.  Do real remapping with
23538         prevent_decl_creation_for_types set.
23539         * tree-inline.h (copy_body_data): New field
23540         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
23541         padding.
23543 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23545         * config/s390/s390.opt (mmvcle): More verbose help text.
23547 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23549         * config/s390/s390.opt: Add period to -mzvector option text.
23551 2016-01-15  Richard Biener  <rguenther@suse.de>
23553         PR tree-optimization/68961
23554         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
23555         of invariants in stores again.
23557 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23559         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
23561 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23563         * config/i386/i386.c (ix86_expand_branch): Don't split
23564         DI mode xor instruction to SI mode.
23566 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23568         PR ipa/68148
23569         * ipa-icf.c (sem_function::merge): Virtual functions may become
23570         reachable even if they address is not taken and there are no
23571         idrect calls.
23573 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23575         * lto-streamer-out.c (subtract_estimated_size): New function.
23576         (get_symbol_initial_value): Use it.
23578 2016-01-15  Christian Bruel  <christian.bruel@st.com>
23580         PR target/65837
23581         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
23582         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
23583         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
23584         use add_builtin_function_ext_scope instead of add_builtin_function.
23585         (neon_set_p, neon_crypto_set_p): Remove.
23586         (arm_init_builtins): Always call arm_init_neon_builtins and
23587         arm_init_crypto_builtins.
23588         (arm_expand_builtin): Check that builtins are allowed for the arch.
23589         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
23590         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
23591         arm_init_neon_builtins call.
23593 2016-01-15  Richard Biener  <rguenther@suse.de>
23595         PR tree-optimization/69117
23596         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
23597         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
23598         of the leader conservatively.
23599         (free_scc_vn): Restore original SSA name infos.
23601 2016-01-14  Jeff Law  <law@redhat.com>
23603         PR tree-optimization/69270
23604         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
23605         single bit of precision, verify it's also unsigned.
23606         (record_edge_info): Use constant_boolean_node rather than fold_convert
23607         to convert boolean_true/boolean_false to the right type.
23609 2016-01-14  Richard Henderson  <rth@redhat.com>
23611         PR rtl-opt/69014
23612         * loop-doloop.c (record_reg_sets): New.
23613         (doloop_optimize): Reject the transform if the sequence
23614         clobbers registers live at the end of the loop block.
23615         (doloop_optimize_loops): Enable df_live if needed.
23617 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23619         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
23620         * config/rs6000/rs6000.c: Likewise.
23621         * config/rs6000/rs6000.h: Likewise.
23622         * config/rs6000/rs6000.md: Likewise.
23623         * doc/extend.texi: Likewsie.
23625 2016-01-14  Jeff Law  <law@redhat.com>
23627         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
23628         typo.
23630 2016-01-14  Richard Henderson  <rth@redhat.com>
23632         PR c/69272
23633         PR tree-opt/68964
23634         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
23635         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
23636         instead of builtin_decl_declared_p to test for declaration.
23638 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
23640         * doc/loop.texi (Loop Analysis and Representation): Document
23641         loop_depth function.
23643 2016-01-14  Tom de Vries  <tom@codesourcery.com>
23645         PR tree-optimization/68773
23646         * omp-low.c (expand_omp_target): Don't set force_output.
23647         * varpool.c (varpool_node::get_create): Same.
23648         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
23649         offload_funcs with force_output.
23651 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23653         PR debug/69244
23654         * lra-eliminations.c (move_plus_up): Don't change anything if either
23655         the outer or inner subreg mode is not MODE_INT.
23656         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
23657         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
23659 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
23661         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
23662         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
23663         reduc_uplus_@var{m}): Remove.
23664         * expr.c (expand_expr_real_2): Remove expansion path for
23665         reduc_[us](min|max|plus) optabs.
23666         * optabs-tree.c (scalar_reduc_to_vector): Remove.
23667         * optabs-tree.h (scalar_reduc_to_vector): Remove.
23668         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
23669         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
23670         * tree-vect-loop.c (vectorizable_reduction): Remove test for
23671         reduc_[us](min|max|plus) optabs.
23673 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
23675         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
23676         (reduc_plus_scal_v2sf): New.
23677         (reduc_smax_v2sf): Rename to...
23678         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
23679         (reduc_smin_v2sf): Rename to...
23680         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
23682 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
23684         * alias.c (compare_base_symbol_refs): New function.
23685         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
23686         it.
23688 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23690         PR middle-end/68146
23691         PR tree-optimization/69155
23692         * tree-complex.c: Include cfganal.h.
23693         (phis_to_revisit): New variable.
23694         (extract_component): Add phiarg_p argument.  Assert that returned
23695         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
23696         (update_phi_components): Partly rewrite to use loop over real/imag
23697         components instead of code duplication.  If extract_component returns
23698         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
23699         create_tmp_reg into the PHI node instead, and mention the phi triplet
23700         in phis_to_revisit.
23701         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
23702         in phis_to_revisit at the end.
23704 2016-01-14  Richard Biener  <rguenther@suse.de>
23706         PR tree-optimization/68060
23707         * tree-vect-loop.c (vect_is_simple_reduction): Check the
23708         outer loop reduction is only used in the inner loop before
23709         detecting a double reduction.
23711 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23713         PR target/68269
23714         * combine.c (expand_field_assignment): Punt if compute_mode is
23715         unsupported scalar mode.
23717 2016-01-14  Richard Biener  <rguenther@suse.de>
23719         PR tree-optimization/66856
23720         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
23721         SLP node only if it built successfully.
23722         (vect_analyze_slp_instance): Adjust.
23724 2016-01-14  Jeff Law  <law@redhat.com>
23726         PR tree-optimization/69270
23727         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
23728         (record_edge_info): Use it.  Convert boolean_{true,false}_node
23729         to the type of op0.
23731 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
23733         PR ipa/66487
23734         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
23735         use block_ultimate_origin
23736         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
23738 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
23740         * doc/invoke.texi (Submodel Options): Rename section to
23741         "Machine-Dependent Options" to better reflect its content.
23742         Rewrite introductory text to remove archaic CPU names.
23743         Update references.
23745 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
23747         * doc/invoke.texi (Code Gen Options): Move section up in file,
23748         before target-specific options.  Update menu and option summary
23749         to reflect the new section ordering.
23751 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
23753         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
23754         (C++ Dialect Options): Add cross-reference to -std option.
23755         * doc/standards.texi (C++ Language): Document C++14 support.
23757 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23759         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
23760         for pack/unpack functions for __ibm128.
23761         (PACK_IF): Likewise.
23762         (UNPACK_IF): Likewise.
23764         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23765         support for __ibm128 pack/unpack functions.
23766         (rs6000_invalid_builtin): Likewise.
23767         (rs6000_init_builtins): Likewise.
23768         (rs6000_opt_masks): Likewise.
23770         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
23771         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
23772         functions
23773         (RS6000_BTM_COMMON): Likewise.
23775         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
23776         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
23777         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
23778         128-bit floating point.  Add support for the double values to be
23779         in Altivec registers for TF/IF packing and unpacking, but restrict
23780         TD packing sub-fields to be FPR registers.  Don't allow overlapped
23781         register support for packing.  Allow pack inputs to be memory
23782         locations.  Don't build generator functions for unpack<mode>_dm
23783         and unpack<mode>_nodm.
23784         (unpack<mode>_dm): Likewise.
23785         (unpack<mode>_nodm): Likewise.
23786         (pack<mode>): Likewise.
23788         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
23789         built-in functions to pack/unpack explicit __ibm128 values.
23790         (__builtin_unpack_ibm128): Likewise.
23792         * doc/extend.texi (PowerPC Built-in Functions): Document
23793         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
23795 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
23797         PR c/66208
23798         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
23799         Add new arg loc and pass it down as context.
23800         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
23801         to the location to use for the warning.
23802         (check_function_arguments): New arg loc.  All callers changed.  Pass
23803         it to check_function_nonnull.
23804         * c-common.h (check_function_arguments): Adjust declaration.
23806 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
23808         PR tree-optimization/69156
23809         * gimple.c (validate_type): Removed.
23810         (gimple_builtin_call_types_compatible_p): Use
23811         useless_type_conversion_p instead of validate_type.
23812         * value-prof.c (gimple_stringop_fixed_value): Fold
23813         icall_size to correct type.
23815 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
23817         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
23818         effects.
23820 2016-01-13  Richard Henderson  <rth@redhat.com>
23822         PR tree-opt/68964
23823         * target.def (builtin_tm_load, builtin_tm_store): Remove.
23824         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
23825         (ix86_builtin_tm_store): Remove.
23826         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23827         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23828         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23829         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23830         * doc/tm.texi: Rebuild.
23832         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
23833         (BUILT_IN_TM_MEMCPY_RTWN): New.
23834         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
23835         fallback from vector to integer helpers.
23836         (build_tm_load): Handle vector types directly, instead of
23837         via target hook.
23838         (build_tm_store): Likewise.
23839         (expand_assign_tm): Prepare for register types not handled by
23840         the above.  Copy them to memory and use memcpy.
23841         * tree.c (tm_define_builtin): New.
23842         (find_tm_vector_type): New.
23843         (build_tm_vector_builtins): New.
23844         (build_common_builtin_nodes): Call it.
23846 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
23848         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
23849         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
23851 2016-01-13  Tom de Vries  <tom@codesourcery.com>
23853         PR tree-optimization/69169
23854         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
23855         handled_struct_type param.
23856         (create_variable_info_for, intra_create_variable_infos): Call
23857         create_variable_info_for_1 with extra arg.
23859 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
23861         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
23862         and "armv8.1-a+crc" entries.
23864 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
23866         PR target/69228
23867         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
23868         Change first operand predicate from register_or_constm1_operand
23869         to register_operand.
23870         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
23871         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
23872         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
23873         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
23874         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
23875         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
23876         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
23877         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
23878         comparison with constm1_rtx from vec_prefetch_gen part.
23880 2016-01-13  Richard Biener  <rguenther@suse.de>
23882         PR tree-optimization/69013
23883         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
23884         Exchange assert for a test.
23886 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23888         PR target/69247
23889         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
23891 2016-01-13  Richard Biener  <rguenther@suse.de>
23893         PR tree-optimization/69242
23894         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
23895         assert with a check.
23897 2016-01-13  Richard Biener  <rguenther@suse.de>
23899         PR tree-optimization/69186
23900         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23901         Properly guard vect_update_misalignment_for_peel call.
23903 2016-01-12  Jeff Law  <law@redhat.com>
23905         PR tree-optimization/pr67755
23906         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
23907         "need_profile_correction".
23908         (thread_block_1): Initialize new field to false by default.  If we
23909         have multiple thread paths through a common joiner to different
23910         final targets, then set new field to true.
23911         (compute_path_counts): Only do count adjustment when it's really
23912         needed.
23914 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23916         * doc/invoke.texi (Spec Files): Move section down in file, past
23917         all command-line option descriptions.
23919 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23921         PR middle-end/54809
23922         * doc/gty.texi: Remove documentation of mark_hook.
23923         * gengtype.c (struct write_types_data): Remove code to support
23924         mark_hook attribute.
23925         (walk_type): Likewise.
23926         (write_func_for_structure): Likewise.
23928 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23930         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
23931         Directory Options, and -specs= to Overall Options.
23932         (Overall Options): Adjust similarly.  Reorder to group related
23933         options together.  Make -specs= cross-reference the spec file details.
23934         (Directory Options): Adjust similarly.
23936 2016-01-12  Jeff Law  <law@redhat.com>
23938         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
23940 2016-01-12  Olivier Hainque  <hainque@adacore.com>
23942         * gcc.c (spec_undefvar_allowed): New global.
23943         (process_command): Set to true when running for --version or --help,
23944         alone or together.
23945         (getenv_spec_function): When the variable is not defined, use the
23946         variable name as the variable value if we're allowed not to issue
23947         a fatal error.
23949 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
23951         PR tree-optimization/68911
23952         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
23953         information computed for expression "init + nit * step".
23955 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23957         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
23958         about name of GCC executable.  Remove deleted node from menu.
23959         (Directory Options) <-B>: Remove cross-reference to deleted node.
23960         (Target Options): Delete section.
23962 2016-01-12  Christian Bruel  <christian.bruel@st.com>
23964         PR target/69180
23965         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
23966         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
23968 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
23970         PR target/69198
23971         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
23972         aligned_mem is properly set for AVX512-VL floating point masked
23973         stores.
23975         PR target/69175
23976         * ifcvt.c (cond_exec_process_if_block): When removing the last
23977         insn from then_bb, remove also any possible barriers that follow it.
23979 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
23981         PR target/68456
23982         PR target/69226
23983         * config/i386/iamcu.h (SIZE_TYPE): New macro.
23984         (PTRDIFF_TYPE): Likewise.
23985         (WCHAR_TYPE): Likewise.
23986         (WCHAR_TYPE_SIZE): Likewise.
23987         (STDINT_LONG32): Likewise.
23989 2016-01-12  Richard Biener  <rguenther@suse.de>
23991         PR tree-optimization/69053
23992         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
23993         convert initial value for cond reductions.
23995 2016-01-12  Richard Biener  <rguenther@suse.de>
23997         PR tree-optimization/69007
23998         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
23999         widen_sum after dot_prod and sad.
24001 2016-01-12  Richard Biener  <rguenther@suse.de>
24003         PR tree-optimization/69168
24004         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
24005         pattern stmt SLP type.
24006         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
24007         end up unused so cope with that case.
24009 2016-01-12  Richard Biener  <rguenther@suse.de>
24011         PR tree-optimization/69157
24012         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
24013         stmts def type only during analyze phase.
24014         (vectorizable_call): Likewise.
24015         (vectorizable_simd_clone_call): Likewise.
24016         (vectorizable_conversion): Likewise.
24017         (vectorizable_assignment): Likewise.
24018         (vectorizable_shift): Likewise.
24019         (vectorizable_operation): Likewise.
24020         (vectorizable_store): Likewise.
24021         (vectorizable_load): Likewise.
24023 2016-01-12  Richard Biener  <rguenther@suse.de>
24025         PR tree-optimization/69174
24026         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
24027         space.
24028         (vectorizable_load): Properly compute the number of loads needed
24029         for permuted strided SLP loads and do not spuriously assign
24030         to SLP_TREE_VEC_STMTS.
24032 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
24034         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
24035         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
24036         (MD_EXEC_PREFIX): Remove.
24037         (MD_STARTFILE_PREFIX) Removee.
24038         (FILE_NAME_ABSOLUTE_P): Remove.
24039         (CPP_SPEC): Do not read macros from sys/version.h.
24040         (LINK_COMMAND_SPEC): Remove.
24041         (LOCAL_INCLUDE_DIR): Remove.
24042         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
24043         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
24044         (POST_LINK_SPEC): Define to invoke stubify after linker
24045         (LIBSTDCXX): Remove define
24046         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
24047         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
24048         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
24049         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
24050         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
24051         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
24052         (i386_djgpp_asm_named_section): Add propotype of new procedure
24054         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
24055         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
24056         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
24057         in config/i386/djgpp.h).
24058         (STANDARD_STARTFILE_PREFIX_2): Define identical to
24059         STANDARD_STARTFILE_PREFIX_1.
24060         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
24061         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
24062         installation errors.
24063         (MAX_OFILE_ALIGNMENT): Define to 128.
24064         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
24066         * config/i386/djgpp.c: New file. Add implementation of
24067         i386_djgpp_asm_named_section.
24069         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
24071         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
24072         Add rule for building djgpp.o.
24074 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24076         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
24077         (rtx_is_swappable_p): Reductions are swappable.
24078         (insn_is_swappable_p): V2DF reductions are swappable.
24080 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
24082         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
24083         reloads for other unsupported memory operands.
24085 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24086             Jim Wilson  <jim.wilson@linaro.org>
24088         PR target/69194
24089         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
24090         copy_to_mode_reg instead of force_reg.
24092 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24094         PR target/69225
24095         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
24096         TARGET_80387 is true.
24098 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
24100         PR target/69071
24101         * lra-eliminations.c (move_plus_up): Only move plus up
24102         if subreg of the constant can be simplified into constant
24103         and use the simplified subreg of the constant instead of
24104         the original constant.
24106         * fold-const.c (fold_convertible_p): Don't return true
24107         for conversion of VECTOR_TYPE to same sized integral type.
24108         (fold_convert_loc): Fix up formatting.  Fold conversion of
24109         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
24110         instead of NOP_EXPR.
24112         PR tree-optimization/69214
24113         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
24114         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24115         Formatting fix.
24117         PR tree-optimization/69207
24118         * tree-vect-slp.c (vect_get_constant_vectors): For
24119         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
24120         fold_convertible_p to vector_type's element type, and always
24121         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
24123 2016-01-11  Richard Biener  <rguenther@suse.de>
24125         PR tree-optimization/69173
24126         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
24127         fixup the cycle if all stmts are in a pattern.
24129 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
24131         PR middle-end/68999
24132         * alias.c (base_alias_check): Move check for addresses with
24133         alignment ANDs before the call for compare_base_decls.
24134         (memrefs_conflict_p): Return -1 for different decls
24135         that went through alignment adjustments.
24137 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24139         PR rtl-optimization/68796
24140         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
24141         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
24142         and QImode comparisons against zero with CC_NZmode.
24143         * config/aarch64/iterators.md (short_mask): New mode_attr.
24145 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24147         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
24148         (<avx512>_store<mode>_mask): Likewise.
24150 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
24151             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24153         PR rtl-optimization/68841
24154         * ifcvt.c (struct noce_if_info): Add orig_x field.
24155         (bbs_ok_for_cmove_arith): Add to_rename parameter.
24156         Don't record conflicts on to_rename if it's present.
24157         Allow memory destinations in sets.
24158         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
24159         blocks, passing orig_x to the checks.
24160         (noce_process_if_block): Set if_info->orig_x appropriately.
24162 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24164         PR tree-optimization/69069
24165         * tree-parloops.c (create_parallel_loop): Add missing phi args.
24167 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
24169         PR rtl-optimization/68920
24170         * config/i386/i386.c (ix86_option_override_internal): Restrict number
24171         of conditional moves for  RTL if-conversion to 1 for
24172         TARGET_ONE_IF_CONV_INSN.
24173         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
24174         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
24175         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
24176         parameter to restirct number of conditional moves for
24177         RTL if-conversion.
24178         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
24179         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
24180         conditionl moves.
24182 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
24184         PR bootstrap/69123
24185         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
24186         onepart vars.  Fix typo in comment.  Fix reversed condition in
24187         unshare test.
24188         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
24190         PR bootstrap/69123
24191         * var-tracking.c (dump_onepart_variable_differences): New.
24192         (dataflow_set_different): If a detailed dump is requested,
24193         delay early returns and dump differences between onepart
24194         variables present before and after, and added variables.
24196 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
24198         PR target/69010
24199         * expr.c (expand_expr_real_1): For boolean vector constants
24200         with a scalar mode use const_scalar_mask_from_tree.
24201         (const_scalar_mask_from_tree): New.
24202         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
24203         assigned to a mask type to handle constants.
24205 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24207         PR ipa/69044
24208         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
24209         useless parameters if we cannot change function signature.
24211 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24213         PR ipa/66616
24214         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
24215         flag.
24217 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24219         PR tree-optimization/69109
24220         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
24221         latch with phi.
24223 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24225         PR tree-optimization/69108
24226         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
24227         res is not used in a phi.
24229 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
24231         PR 67425
24232         * common.opt (frandom-seed): Fix parameter name.
24233         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
24235 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24237         PR tree-optimization/69058
24238         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
24239         not supported.
24241 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
24243         * config/arc/arc.opt (mdiv-rem): Add period to the end.
24244         (mcode-density): Likewise.
24246 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24248         PR tree-optimization/69062
24249         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
24250         (parallelize_loops): Don't paralelize loop that has phi with address
24251         arg.
24253 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24255         PR tree-optimization/69039
24256         * tree-parloops.c (try_create_reduction_list): Only allow single exit
24257         phi for reduction.
24259 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
24261         PR middle-end/68743
24262         * match.pd: Require target has function_c99_misc before doing
24263         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
24265 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
24267         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
24268         use GMPINC.
24269         * configure: Regenerate.
24271 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
24273         PR middle-end/50865
24274         PR tree-optimization/69097
24275         * fold-const.h (expr_not_equal_to): New prototype.
24276         * fold-const.c: Include stringpool.h and tree-ssanames.h.
24277         (expr_not_equal_to): New function.
24278         * match.pd (X % -Y is the same as X % Y): Don't optimize
24279         unless X is known not to be equal to minimum or Y is known
24280         not to be equal to -1.
24281         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
24282         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
24283         (simplify_stmt_using_ranges): Adjust caller.
24284         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
24285         substitute_and_fold.
24287 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
24289         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
24290         w/o DECL_NAME.
24292 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24294         PR tree-optimization/69167
24295         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
24296         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
24297         ops[0] comparison.
24298         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
24300 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24301             Richard Biener  <rguenther@suse.de>
24303         PR tree-optimization/68707
24304         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
24305         instances that can be handled via vect_load_lanes.
24307 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
24309         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
24310         if we can't determine address equivalence.
24311         * alias.c (compare_base_decl): Update for changed return value of
24312         symtab_node::equal_address_to.
24314 2016-01-08  Jason Merrill  <jason@redhat.com>
24316         PR c++/68983
24317         PR c++/67557
24318         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
24319         * expr.c (store_field): Not here.
24320         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
24321         call with TREE_ADDRESSABLE type.
24322         * tree-cfg.c (verify_gimple_call): Adjust.
24324 2016-01-08  Olivier Hainque  <hainque@adacore.com>
24326         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
24327         libc_internal.
24329 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24331         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
24332         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
24333         (reduc_smin_v2sf): Rename to...
24334         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
24335         (reduc_splus_v2sf): Rename to...
24336         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
24338 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24340         PR tree-optimization/69162
24341         * gimplify.c (gimplify_va_arg_expr): Encode original type of
24342         valist argument in another argument.
24343         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
24344         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
24345         to determine the va_list type, build a MEM_REF instead of
24346         build_fold_indirect_ref.
24348         PR tree-optimization/69172
24349         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
24350         gimple_build.
24352 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24354         PR tree-optimization/67781
24355         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24356         and cmpnop in two steps: first the ones not accessed in original
24357         gimple expression in a endian independent way and then the ones not
24358         accessed in the final result in an endian-specific way.
24360 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24362         PR tree-optimization/69083
24363         * tree-vect-slp.c (vect_get_constant_vectors): For
24364         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24365         element type.  If op is fold_convertible_p to vector_type's element
24366         type, use NOP_EXPR instead of VCE.
24368 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
24370         PR rtl-optimization/67778
24371         PR rtl-optimization/68634
24372         PR rtl-optimization/68909
24373         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
24374         block from the stack until done with it.  Remove a superfluous
24375         bitmap set.  Remove a superfluous bitmap test.
24377 2016-01-07  Martin Sebor  <msebor@redhat.com>
24379         PR c/68966
24380         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24381         constraint on the type of arguments.
24383 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
24385         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24386         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24387         unaligned_access on the gcc_options set.
24388         * config/arm/arm.c (arm_option_override_internal): Use
24389         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24391 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24393         PR target/69140
24394         * config/i386/i386.c (ix86_frame_pointer_required): Enable
24395         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24397 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24399         Revert
24400         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24402         PR target/69140
24403         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24404         depending on frame_pointer_needed before remaining integer and SSE
24405         registers are saved.
24407 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24409         PR 1078
24410         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24412 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
24414         PR target/69171
24415         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24416         Use the "xBm" constraint.
24417         (float<sseintvecmodelower><mode>2<mask_name><round_name):
24418         Likewise.
24419         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24420         (sse_cvtsi2ssq<round_name>): Likewise.
24421         (sse_cvtss2si<round_name>): Likewise.
24422         (sse_cvtss2siq<round_name>): Likewise.
24423         (sse2_cvtsi2sdq<round_name>): Likewise.
24424         (sse2_cvtsd2si<round_name>): Likewise.
24425         (sse2_cvtsd2siq<round_name>): Likewise.
24426         * config/i386/subst.md (round_nimm_scalar_predicate): New
24427         predicate.
24429 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
24431         PR middle-end/67639
24432         * varasm.c (make_decl_rtl): Mark invalid register vars as
24433         DECL_EXTERNAL.
24435         PR rtl-optimization/66206
24436         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24437         All callers changed.
24439 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
24441         PR tree-optimization/69141
24442         * tree-ssa-pre.c: Include langhooks.h.
24443         (eliminate_dom_walker::before_dom_children): Use
24444         lang_hooks.decl_printable_name instead of
24445         cgraph_node::get ()->name ().
24447         PR middle-end/68960
24448         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24449         it and DECL_ALIGN too.
24451 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
24453         * config/mips/mips-ftypes.def: Sort to lexicographical order.
24455 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24457         PR target/69140
24458         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24459         depending on frame_pointer_needed before remaining integer and SSE
24460         registers are saved.
24462 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24464         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
24465         mode iterator with VSX_M2.
24466         (*p9_vecstore_<mode>): Likewise.
24467         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
24468         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
24469         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
24470         (define_split for VSX_LE128 stores): Likewise.
24471         (define_peephole2 for TImode LE swaps): Likewise.
24472         (define_split for VSX_LE128 post-reload stores): Likewise.
24474 2016-01-06  Marek Polacek  <polacek@redhat.com>
24476         PR sanitizer/69099
24477         * convert.c (convert_to_integer_1): Adjust call to
24478         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
24479         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
24480         EXPR instead of ARG.
24481         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
24483 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24485         PR 1078
24486         * doc/extend.texi (RL78 Variable Attributes): New section.
24488 2016-01-05  Marek Polacek  <polacek@redhat.com>
24490         PR c/69104
24491         * builtins.c (get_memmodel): Use expansion point location rather than
24492         the input location.  Call warning_at rather than warning.
24493         (expand_builtin_atomic_compare_exchange): Likewise.
24494         (expand_builtin_atomic_load): Likewise.
24495         (expand_builtin_atomic_store): Likewise.
24496         (expand_builtin_atomic_clear): Likewise.
24498 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24500         PR target/68991
24501         * config/i386/i386.c (ix86_expand_vector_logical_operator):
24502         Replace nonimmediate_operand with vector_operand.
24503         * config/i386/predicates.md (vector_operand): New predicate.
24504         (general_vector_operand): Replace nonimmediate_operand with
24505         vector_operand.
24506         * config/i386/sse.md: Replace nonimmediate_operand with
24507         vector_operand and m constraint with Bm constraint on SSE
24508         patterns with 16-byte memory operand.
24509         * config/i386/subst.md (round_nimm_predicate): Replace
24510         nonimmediate_operand with vector_operand.
24511         (round_saeonly_nimm_predicate): Likewise.
24512         (round_saeonly_nimm_scalar_predicate): New.
24514 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24516         PR target/68991
24517         * config/i386/constraints.md (Bm): New constraint.
24518         * config/i386/predicates.md (vector_memory_operand): New
24519         predicate.
24520         * config/i386/sse.md: Replace xm with xBm in plusminus and
24521         any_logic patterns.
24523 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24525         PR 1078
24526         * doc/extend.texi (V850 Function Attributes): New section.
24527         (V850 Variable Attributes): New section.
24529 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24531         PR 1078
24532         * doc/extend.texi (MicroBlaze Function Attributes): Document
24533         interrupt_handler and fast_interrupt attributes.
24535 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
24537         PR other/60465
24538         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
24539         for local symbolic operands.
24540         * config/ia64/predicates.md (local_symbolic_operand64): New
24541         predicate.
24543 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24545         PR rtl-optimization/68651
24546         * combine.c (combine_simplify_rtx): Canonicalize x + x into
24547         x << 1.
24549 2016-01-05  Nathan Sidwell  <nathan@acm.org>
24551         * alias.c (compare_base_decls): Use symtab_node::get.
24553 2016-01-05  Nick Clifton  <nickc@redhat.com>
24555         PR target/68770
24556         * ira-costs.c (copy_cost): Initialise the t_icode field of the
24557         secondary_reload_info structure.
24559         PR target/66655
24560         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
24561         decls if weak support is available.
24563 2016-01-04  Martin Sebor  <msebor@redhat.com>
24565         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
24567 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
24569         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
24570         OPTION_MASK_P9_DFORM.
24572         * config/rs6000/constraints.md (wo constraint): New constraint for
24573         ISA 3.0 (power9).
24575         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
24576         for wo constraint.
24577         (rs6000_init_hard_regno_mode_ok): Likewise.
24579         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
24580         wo constraint.
24582         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
24583         expanders not to have constraints.  Add support for ISA 3.0 xxperm
24584         instruction.  Add support for fusing xxlor with xxperm.
24585         (altivec_vperm_<mode>_internal): Likewise.
24586         (altivec_vperm_v8hiv16qi): Likewise.
24587         (altivec_vperm_<mode>v16q): Likewise.
24588         (altivec_vperm_<mode>_uns): Likewise.
24589         (vperm_v8hiv4si): Likewise.
24590         (vperm_v16qiv8hi): Likewise.
24592         * doc/md.texi (RS/6000 constraints): Document wo constraint.
24594 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
24596         Update copyright years.
24598         * gcc.c (process_command): Update copyright notice dates.
24599         * gcov-dump.c (print_version): Ditto.
24600         * gcov.c (print_version): Ditto.
24601         * gcov-tool.c (print_version): Ditto.
24602         * gengtype.c (create_file): Ditto.
24603         * doc/cpp.texi: Bump @copying's copyright year.
24604         * doc/cppinternals.texi: Ditto.
24605         * doc/gcc.texi: Ditto.
24606         * doc/gccint.texi: Ditto.
24607         * doc/gcov.texi: Ditto.
24608         * doc/install.texi: Ditto.
24609         * doc/invoke.texi: Ditto.
24611 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24613         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
24614         modes larger than TImode as TImode if NEON is not enabled.
24616 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24618         PR target/69100
24619         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
24620         mode for %f0-%f31 only if TARGET_FPU.
24622 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24624         PR target/69072
24625         * config/sparc/sparc.c (scan_record_type): Take into account subfields
24626         to compute the PACKED_P predicate.
24627         (function_arg_record_value): Minor tweaks.
24629 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24631         * doc/install.texi (--with-multilib-list): Describe the meaning of the
24632         option for arm*-*-* targets.
24634 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24636         * doc/extend.texi (Common Function Attributes): Move docs for
24637         MSP430-specific attributes to....
24638         (MSP430 Function Attributes): ...here.  Delete the redundant
24639         entries and copy-edit the remaining text.
24640         (MSP430 Variable Attributes): Use uniform format for index
24641         entries and add a cross-reference to the corresponding function
24642         attribute docs.
24644 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
24646         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
24647         -finite-math typo.
24648         (x86 Options): Likewise.
24650 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24652         PR 1078
24654         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
24655         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
24656         to corresponding attribute.
24658 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24660         * doc/extend.texi (Common Function Attributes) <noplt>: Move
24661         to correct alphabetization of table.  Copy-edit and correct
24662         markup.
24663         <stack_protect>: Likewise.
24664         <target_clones>: Likewise.
24665         <simd>: Likewise.
24666         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
24667         Correct punctuation.
24668         (Code Gen Options) <-fno-plt>: Copy-edit.
24670 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24672         PR target/68917
24673         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
24674         SI values.  Explicitly convert SI to DI and vice-versa.
24676 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
24678         PR tree-optimization/69070
24679         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
24680         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
24682         PR sanitizer/69055
24683         * ubsan.c (ubsan_instrument_float_cast): Call
24684         initialize_sanitizer_builtins.
24686         PR target/69015
24687         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
24689 Copyright (C) 2016 Free Software Foundation, Inc.
24691 Copying and distribution of this file, with or without modification,
24692 are permitted in any medium without royalty provided the copyright
24693 notice and this notice are preserved.