Machine-readable RTL dumps: print_rtx_function
[official-gcc.git] / gcc / ChangeLog
blob7264cfffcfb2f94b9364af4b9c9802829f6262c4
1 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
3         * Makefile.in (OBJS): Add print-rtl-function.o.
4         * print-rtl-function.c: New file.
5         * print-rtl.h (print_rtx_function): New decl.
7 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
9         PR target/77756
10         * config/i386/cpuid.h (__get_cpuid_count): New.
11         (__get_cpuid): Rename __level to __leaf.
13 2016-09-29  Marek Polacek  <polacek@redhat.com>
15         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
17 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
19         * builtins.c (expand_builtin_memcmp): don't swap args unless
20         result is only being compared with zero.
22 2016-09-29  Marek Polacek  <polacek@redhat.com>
24         * dwarf2out.c (loc_descriptor): Add fall through comment.
25         (add_const_value_attribute): Likewise.
27 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
29         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
30         with "v6t2".  Move "arch" attribute above "pool_range".
31         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
32         with "v6t2".
33         (*thumb2_movhi_vfp): Likewise.
34         (*arm_movhi_fp16): Likewise.
35         (*thumb2_movhi_fp16): Likewise.
36         (*arm_movsi_vfp): Remove "arch" attribute.
37         (*thumb2_movsi_vfp): Likewise.
39 2016-09-29  Martin Liska  <mliska@suse.cz>
41         * doc/extend.texi: Remove limitation of Objective C for
42         __attribute__((constructor)) and __attribute__((destructor)).
44 2016-09-29  Richard Biener  <rguenther@suse.de>
46         PR tree-optimization/77768
47         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
48         Handle stores to readonly memory when removing redundant stores.
50 2016-09-29  Richard Biener  <rguenther@suse.de>
52         PR middle-end/77407
53         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
54         X / -X -> -1 simplifications.
56 2016-09-29  Richard Biener  <rguenther@suse.de>
58         PR middle-end/55152
59         * match.pd: Add max(a,-a) -> abs(a) pattern.
60         * tree-ssa-phiopt.c (minmax_replacement): Disable for
61         HONOR_SIGNED_ZEROS types.
63 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
65         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
66         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
68 2016-09-29  Richard Biener  <rguenther@suse.de>
70         * tree-vrp.c (set_defs_to_varying): New helper avoiding
71         writing to vr_const_varying.
72         (vrp_initialize): Call it.
73         (vrp_visit_stmt): Likewise.
74         (evrp_dom_walker::before_dom_children): Likewise.
76 2016-09-29  Richard Biener  <rguenther@suse.de>
78         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
79         constructors with vector elements.
81 2016-09-29  Richard Biener  <rguenther@suse.de>
83         PR tree-optimization/77768
84         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
85         with stores to a place we know has a constant value.
87 2016-09-29  Alan Modra  <amodra@gmail.com>
89         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
90         * doc/invoke.texi: Document it.
91         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
92         (rs6000_passes_float): Comment.
93         (rs6000_passes_long_double): New static var.
94         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
95         (init_cumulative_args): Set up to emit fp .gnu_attribute for
96         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
97         to include fp values returned in vectors.
98         Set rs6000_passes_long_double.
99         (rs6000_function_arg_advance_1): Likewise for function args.
100         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
101         and SPE.  Emit long double tag value too.
102         (rs6000_opt_vars): Add gnu-attr.
103         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
104         * configure: Regenerate.
105         * config.in: Regenerate.
107 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
109         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
110         of 0 < x.
111         (format_floating, format_string, format_directive,
112         get_destination_size, pass_sprintf_length::handle_gimple_call):
113         Likewise.
115 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
117         * gimple-ssa-sprintf.c: Fix comment formatting.
118         (format_integer): Use is_gimple_assign.
119         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
120         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
121         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
122         (pass_sprintf_length::execute): Use is_gimple_call.
124 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
126         * gimple-fold.c (gimple_fold_builtin): After failing to fold
127         strchr, also try the generic folding.
129 2016-09-28  Martin Sebor  <msebor@redhat.com>
131         PR c/77762
132         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
133         Fix typos.
135 2016-09-28  Martin Sebor  <msebor@redhat.com>
137         PR middle-end/77683
138         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
139         length modifier is not expected.
140         (format_floating): Ignore l length modifier and fail gracefuly
141         when it isn't one of the other expected ones.
143 2016-09-28  Martin Sebor  <msebor@redhat.com>
145         PR bootstrap/77753
146         * varasm.c (assemble_addr_to_section): Increase local buffer size.
148 2016-09-27  Richard Biener  <rguenther@suse.de>
150         * dwarf2out.c (cu_die_list): New global.
151         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
152         main_comp_unit_die to cu_die_list if we created it.
153         Move break_out_includes ...
154         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
155         the cu_die_list.
157 2016-09-28  Richard Biener  <rguenther@suse.de>
159         * dwarf2out.c (struct die_struct): Add removed flag.
160         (lookup_type_die): If the DIE is marked as removed, clear
161         TYPE_SYMTAB_DIE and return NULL.
162         (lookup_decl_die): If the DIE is marked as removed, remove it
163         from the hash and return NULL.
164         (mark_removed): New helper.
165         (prune_unused_types_prune): Call it for removed DIEs.
166         (gen_subprogram_die): Move the premark_used_types call to after
167         DIEs for the functions scopes are generated.
168         (process_scope_var): Do not re-create pruned types or type decls.
169         Make sure to also re-parent type decls.
170         (dwarf2out_finish): Move unused type pruning and debug_types
171         handling ...
172         (dwarf2out_early_finish): ... here.
174 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
176         * config/arc/arc-c.c: New file.
177         * config/arc/arc-c.def: Likewise.
178         * config/arc/t-arc: Likewise.
179         * config.gcc: Include arc-c.o as c and cpp object.
180         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
181         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
182         arc_cpu_cpp_builtins.
184 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
186         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
187         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
189 2016-09-28  Nathan Sidwell  <nathan@acm.org>
191         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
192         printing.
194 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
196         PR tree-optimization/61056
197         * gimple-fold.c (gimple_fold_builtin_strchr):
198         New function to optimize strchr (s, 0) to strlen.
199         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
201 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
203         PR tree-optimization/77724
204         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
205         Add tree_fits_shwi_p check.
207 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
209         * auto-inc-dec.c (try_merge): Remove break after return.
210         * cselib.c (autoinc_split): Likewise.
211         * explow.c (promote_mode): Likewise.
212         * fixed-value.c (fixed_arithmetic): Likewise.
213         * hsa.c (hsa_internal_fn::get_arity): Likewise.
214         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
215         * trans-mem.c (get_attrs_for): Likewise.
216         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
217         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
218         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
219         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
220         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
221         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
222         * config/cris/cris.c (cris_op_str): Likewise.
223         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
224         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
226 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
228         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
229         IFN_GOACC_REDUCTION_CODES): New.
230         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
231         ifn_goacc_reduction_kind): Use them.
232         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
233         of internal functions, when applicable.
235 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
237         * config/mips/constraints.md (d): Fix documentation.
238         * doc/md.texi (Machine Constraints): Update accordingly.
240 2016-09-27  Richard Biener  <rguenther@suse.de>
242         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
243         cur_line_info_table initialization ...
244         (dwarf2out_assembly_start): ... here.
246 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
248         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
249         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
250         (*thumb2_movhi_vfp): Likewise.
251         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
252         template.  Expand predicable attribute to mark VMOV.F16 as not
253         predicable.  Add "arch" attribute.
254         (*thumb2_movhi_fp16): Likewise.
255         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
256         (*thumb2_movsi_vfp): Add "arch" attribute.
258 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
260         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
261         VAR_DECL string.
263 2016-09-27  Marek Polacek  <polacek@redhat.com>
265         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
266         comment.
268         * config/c6x/c6x.h: Adjust fall through comment.
269         * config/sh/sh.c (final_prescan_insn): Likewise.
270         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
271         (visium_expand_fp_cstore): Likewise.
273 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
275         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
276         expected by -Wimplicit-fallthrough.
277         (thumb1_size_rtx_costs): Likewise.
278         (thumb2_reorg): Likewise.
279         (tls_mentioned_p): Add "Fall through" comment.
280         (thumb2_reorg): Likewise.
281         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
282         comment form expected by -Wimplicit-fallthrough.
284 2016-09-27  Martin Liska  <mliska@suse.cz>
286         PR gcov-profile/46266
287         * input.h (RESERVED_LOCATION_P): New macro.
288         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
289         instread of comparison with UNKNOWN_LOCATION.
291 2016-09-27  Richard Biener  <rguenther@suse.de>
293         PR tree-optimization/77745
294         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
295         When removing redundant stores make sure to check compatibility
296         of the TBAA state for downstream accesses.
297         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
298         value-numbering virtual operands for store matches.
300 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
302         PR target/51244
303         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
304         movrt patterns.  Match them before anything else in the SET case.
306 2016-09-27  Martin Liska  <mliska@suse.cz>
308         PR gcov-profile/7970
309         PR gcov-profile/16855
310         PR gcov-profile/44779
311         * coverage.c (build_gcov_exit_decl): New function.
312         (coverage_obj_init): Call the function and generate __gcov_exit
313         destructor.
314         * doc/gcov.texi: Document when __gcov_exit function is called.
316 2016-09-27  Marek Polacek  <polacek@redhat.com>
318         PR bootstrap/77751
319         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
320         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
321         -Wno-error instead of -Wno-implicit-fallthrough.
323 2016-09-27  Martin Liska  <mliska@suse.cz>
325         PR bootstrap/77749
326         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
328 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
330         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
331         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
332         comments.  Remove break after return.
333         (ix86_fp_compare_code_to_integer, has_dispatch,
334         ix86_simd_clone_usable): Remove break after return.
336 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
338         PR rlt-optimization/77714
339         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
340         REG_EQUAL note.
342 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
344         PR ipa/77677
345         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
346         extract_range_from_unary_expr to convert value_range.
347         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
348         (extract_range_from_unary_expr): This.
349         * tree-vrp.h (extract_range_from_unary_expr): Declare.
351 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
353         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
355 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
357         * config/i386/i386.c (ix86_print_operand)
358         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
359         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
360         (epilogue_renumber): Likewise.
362 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
364         PR middle-end/77719
365         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
366         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
368 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
370         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
371         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
372         is_mm_seq_cst, is_mm_sync): Move to ...
373         * memmodel.h: This.  New file.
374         * builtins.c: Include memmodel.h.
375         * optabs.c: Likewise.
376         * tsan.c: Likewise.
377         * config/aarch64/aarch64.c: Likewise.
378         * config/alpha/alpha.c: Likewise.
379         * config/arm/arm.c: Likewise.
380         * config/i386/i386.c: Likewise.
381         * config/ia64/ia64.c: Likewise.
382         * config/mips/mips.c: Likewise.
383         * config/rs6000/rs6000.c: Likewise.
384         * config/sparc/sparc.c: Likewise.
385         * genconditions.c: Include memmodel.h in generated file.
386         * genemit.c: Likewise.
387         * genoutput.c: Likewise.
388         * genpeep.c: Likewise.
389         * genpreds.c: Likewise.
390         * genrecog.c: Likewise.
392 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
394         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
395         "c" instead when parsing characters.  Move operand parsing into...
396         (read_rtx_operand): ...this new function, renaming "i" to "idx",
397         and tightening the scope of various locals.
399 2016-09-26  Liu Hao  <lh_mouse@126.com>
401         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
403 2016-09-26  Marek Polacek  <polacek@redhat.com>
405         * system.h: Use __has_attribute to check whether the fallthrough
406         attribute is supported.
408 2016-09-26  Marek Polacek  <polacek@redhat.com>
410         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
411         gimple_call_internal_p.
412         * ipa-split.c (find_return_bb): Likewise.
413         (execute_split_functions): Likewise.
414         * omp-low.c (dump_oacc_loop_part): Likewise.
415         (oacc_loop_xform_head_tail): Likewise.
416         * predict.c (predict_loops): Likewise.
417         * sanopt.c (pass_sanopt::execute): Likewise.
418         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
419         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
420         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
421         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
422         (expand_ifn_va_arg): Likewise.
423         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
424         (optimize_mask_stores): Likewise.
425         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
426         (vect_transform_stmt): Likewise.
427         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
428         * tsan.c (instrument_memory_accesses): Likewise.
430 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
431             Alexander Monakov  <amonakov@ispras.ru>
433         * regrename.c (rename_chains): Check
434         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
435         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
436         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
438 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
440         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
441         (s390_sched_score): Likewise.
443 2016-09-26  Martin Liska  <mliska@suse.cz>
445         * doc/gcov.texi: Update program output of gcov tool.
447 2016-09-26  Martin Liska  <mliska@suse.cz>
449         PR gcov-profile/23332
450         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
451         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
452         * value-prof.c (dump_histogram_value): Do not handle
453         HIST_TYPE_CONST_DELTA.
454         (stream_in_histogram_value): Likewise.
455         (gimple_find_values_to_profile): Likewise.
456         * value-prof.h (enum hist_type): Likewise.
458 2016-09-26  Martin Liska  <mliska@suse.cz>
460         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
461         from default sanitize recover values.
462         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
463         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
464         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
465         consistent.
466         * opts.c (finish_options): Do a generic loop over options
467         that can be recovered.
468         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
469         SANITIZE_RETURN.
470         (common_handle_option): Likewise.
471         * opts.h: Declare can_recover to sanitizer_opts_s.
473 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
475         * target.def(elf_flags_numeric): Change documentation to present tense.
476         * doc/tm.texi: Regenerate.
478 2016-09-26  Marek Polacek  <polacek@redhat.com>
480         PR c/7652
481         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
482         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
483         -Wno-switch-fallthrough.
484         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
485         (expand_builtin): Likewise.
486         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
487         * convert.c (convert_to_real_1): Likewise.
488         (convert_to_integer_1): Likewise.
489         * final.c (output_alternate_entry_point): Likewise.
490         * genattrtab.c (make_canonical): Likewise.
491         (write_test_expr): Likewise.
492         * genpreds.c (validate_exp): Likewise.
493         * gimple-ssa-strength-reduction.c
494         (find_candidates_dom_walker::before_dom_children): Likewise.
495         * godump.c (go_format_type): Likewise.
496         * reload1.c (elimination_effects): Likewise.
497         * resource.c (mark_referenced_resources): Likewise.
498         (mark_set_resources): Likewise.
499         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
500         * varasm.c (output_addressed_constants): Likewise.
502 2016-09-26  Marek Polacek  <polacek@redhat.com>
504         PR c/7652
505         * common.opt (Wimplicit-fallthrough): New option.
506         * doc/extend.texi: Document statement attributes and the fallthrough
507         attribute.
508         * doc/invoke.texi: Document -Wimplicit-fallthrough.
509         * gimple.h (gimple_call_internal_p): New function.
510         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
511         (struct label_entry): New struct.
512         (find_label_entry): New function.
513         (case_label_p): New function.
514         (collect_fallthrough_labels): New function.
515         (last_stmt_in_scope): New function.
516         (should_warn_for_implicit_fallthrough): New function.
517         (warn_implicit_fallthrough_r): New function.
518         (maybe_warn_implicit_fallthrough): New function.
519         (expand_FALLTHROUGH_r): New function.
520         (expand_FALLTHROUGH): New function.
521         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
522         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
523         (gimplify_label_expr): New function.
524         (gimplify_case_label_expr): Set location.
525         (gimplify_expr): Call gimplify_label_expr.
526         * internal-fn.c (expand_FALLTHROUGH): New function.
527         * internal-fn.def (FALLTHROUGH): New internal function.
528         * langhooks.c (lang_GNU_OBJC): New function.
529         * langhooks.h (lang_GNU_OBJC): Declare.
530         * system.h (gcc_fallthrough): Define.
531         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
532         * tree.h (FALLTHROUGH_LABEL_P): Define.
534 2016-09-26  Richard Biener  <rguenther@suse.de>
536         * dwarf2out.c (stripattributes): Remove unused function.
537         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
538         Push dwarf_split_debug_info handling into init_sections_and_labels.
539         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
540         (DEBUG_MACRO_SECTION_FLAGS): Remove.
541         (debug_macinfo_section_name): New global.
542         (output_macinfo): Use debug_macinfo_section_name.
543         (init_sections_and_labels): Split out section and label generation
544         from dwarf2out_init.  Set debug_macinfo_section_name.
545         (dwarf2out_init): Move text section label generation and emission
546         to ...
547         (dwarf2out_assembly_start): ... here.
548         (dwarf2out_finish): Call init_sections_and_labels before DWARF
549         output starts.
551 2016-09-26  Richard Biener  <rguenther@suse.de>
553         PR debug/77692
554         * cgraphunit.c (analyze_functions): Before early removing
555         global vars calls the late_global_decl debug handler mark
556         the variable as readonly.
558 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
560         PR target/51244
561         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
562         (sh_rtx_costs): Handle SET of movt and movrt patterns.
563         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
564         declare new overloads.
565         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
566         operand.
568 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
570         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
571         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
573 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
575         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
576         * configure: Regenerate.
578 2016-09-24  Marek Polacek  <polacek@redhat.com>
580         PR c/77490
581         * doc/invoke.texi: Document -Wbool-operation.
583 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
585         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
586         * config/rs6000/rs6000.c (expand_block_compare): New function used by
587         cmpmemsi pattern to do builtin expansion of memcmp ().
588         (compute_current_alignment): Add helper function for
589         expand_block_compare used to compute alignment as the compare proceeds.
590         (select_block_compare_mode): Used by expand_block_compare to select
591         the mode used for reading the next chunk of bytes in the compare.
592         (do_load_for_compare): Used by expand_block_compare to emit the load
593         insns for the compare.
594         (rs6000_emit_dot_insn): Moved this function to avoid a forward
595         reference from expand_block_compare ().
596         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
597         prototype for this function.
598         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
599         target option for controlling how much code inline expansion of
600         memcmp() will be allowed to generate.
602 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
604         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
605         hook_bool_mode_false, hook_bool_mode_true,
606         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
607         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
608         hook_bool_const_rtx_insn_const_rtx_insn_true,
609         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
610         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
611         hook_bool_const_tree_hwi_hwi_const_tree_false,
612         hook_bool_const_tree_hwi_hwi_const_tree_true,
613         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
614         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
615         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
616         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
617         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
618         hook_bool_const_tree_true, hook_bool_tree_tree_false,
619         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
620         hook_bool_rtx_insn_true, hook_bool_rtx_false,
621         hook_bool_uintp_uintp_false,
622         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
623         hook_rtx_tree_int_null, hook_uint_mode_0,
624         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
625         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
626         hook_constcharptr_const_rtx_insn_null,
627         hook_constcharptr_const_tree_const_tree_null,
628         hook_constcharptr_int_const_tree_null,
629         hook_constcharptr_int_const_tree_const_tree_null,
630         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
631         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
632         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
634         * vec.h (vNULL): Extend comment to say = vNULL initialization
635         isn't needed for static vars.
637         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
638         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
639         = vNULL initialization of file scope vec.
640         * passes.c (pass_tab, enabled_pass_uid_range_tab,
641         disabled_pass_uid_range_tab): Likewise.
642         * haifa-sched.c (sched_luids, h_i_d): Likewise.
643         * tree-chkp-opt.c (check_infos): Likewise.
644         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
646         * vec.h (vnull::operator vec): Add constexpr keyword for
647         C++11 and later.
649 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
651         PR tree-optimization/77654
652         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
653         to duplicate_ssa_name_ptr_info.
655 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
657         PR preprocessor/77672
658         * input.c (selftest::test_lexer_string_locations_simple): Update
659         test to expect location information of the terminator character
660         at the location of the final closing quote.
661         (selftest::test_lexer_string_locations_hex): Likewise.
662         (selftest::test_lexer_string_locations_oct): Likewise.
663         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
664         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
665         (selftest::test_lexer_string_locations_ucn4): Likewise.
666         (selftest::test_lexer_string_locations_ucn8): Likewise.
667         (selftest::test_lexer_string_locations_u8): Likewise.
668         (selftest::test_lexer_string_locations_utf8_source): Likewise.
669         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
670         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
671         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
672         (selftest::test_lexer_string_locations_macro): Likewise.
673         (selftest::test_lexer_string_locations_long_line): Likewise.
675 2016-09-23  Richard Biener  <rguenther@suse.de>
677         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
678         virtual definition to virtual use if the call devirtualizes
679         to a const or pure function.
680         (visit_use): Also visit calls we can devirtualize to a
681         const or pure function.
683 2016-09-23  Richard Biener  <rguenther@suse.de>
685         PR tree-optimization/77697
686         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
687         signal error if we have sth ternary or unhandled.
689 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
691         * config/arm/arm_neon.h (vabd_f16): New.
692         (vabdq_f16): New.
693         (vabs_f16): New.
694         (vabsq_f16): New.
695         (vadd_f16): New.
696         (vaddq_f16): New.
697         (vcage_f16): New.
698         (vcageq_f16): New.
699         (vcagt_f16): New.
700         (vcagtq_f16): New.
701         (vcale_f16): New.
702         (vcaleq_f16): New.
703         (vcalt_f16): New.
704         (vcaltq_f16): New.
705         (vceq_f16): New.
706         (vceqq_f16): New.
707         (vceqz_f16): New.
708         (vceqzq_f16): New.
709         (vcge_f16): New.
710         (vcgeq_f16): New.
711         (vcgez_f16): New.
712         (vcgezq_f16): New.
713         (vcgt_f16): New.
714         (vcgtq_f16): New.
715         (vcgtz_f16): New.
716         (vcgtzq_f16): New.
717         (vcle_f16): New.
718         (vcleq_f16): New.
719         (vclez_f16): New.
720         (vclezq_f16): New.
721         (vclt_f16): New.
722         (vcltq_f16): New.
723         (vcltz_f16): New.
724         (vcltzq_f16): New.
725         (vcvt_f16_s16): New.
726         (vcvt_f16_u16): New.
727         (vcvt_s16_f16): New.
728         (vcvt_u16_f16): New.
729         (vcvtq_f16_s16): New.
730         (vcvtq_f16_u16): New.
731         (vcvtq_s16_f16): New.
732         (vcvtq_u16_f16): New.
733         (vcvta_s16_f16): New.
734         (vcvta_u16_f16): New.
735         (vcvtaq_s16_f16): New.
736         (vcvtaq_u16_f16): New.
737         (vcvtm_s16_f16): New.
738         (vcvtm_u16_f16): New.
739         (vcvtmq_s16_f16): New.
740         (vcvtmq_u16_f16): New.
741         (vcvtn_s16_f16): New.
742         (vcvtn_u16_f16): New.
743         (vcvtnq_s16_f16): New.
744         (vcvtnq_u16_f16): New.
745         (vcvtp_s16_f16): New.
746         (vcvtp_u16_f16): New.
747         (vcvtpq_s16_f16): New.
748         (vcvtpq_u16_f16): New.
749         (vcvt_n_f16_s16): New.
750         (vcvt_n_f16_u16): New.
751         (vcvtq_n_f16_s16): New.
752         (vcvtq_n_f16_u16): New.
753         (vcvt_n_s16_f16): New.
754         (vcvt_n_u16_f16): New.
755         (vcvtq_n_s16_f16): New.
756         (vcvtq_n_u16_f16): New.
757         (vfma_f16): New.
758         (vfmaq_f16): New.
759         (vfms_f16): New.
760         (vfmsq_f16): New.
761         (vmax_f16): New.
762         (vmaxq_f16): New.
763         (vmaxnm_f16): New.
764         (vmaxnmq_f16): New.
765         (vmin_f16): New.
766         (vminq_f16): New.
767         (vminnm_f16): New.
768         (vminnmq_f16): New.
769         (vmul_f16): New.
770         (vmul_lane_f16): New.
771         (vmul_n_f16): New.
772         (vmulq_f16): New.
773         (vmulq_lane_f16): New.
774         (vmulq_n_f16): New.
775         (vneg_f16): New.
776         (vnegq_f16): New.
777         (vpadd_f16): New.
778         (vpmax_f16): New.
779         (vpmin_f16): New.
780         (vrecpe_f16): New.
781         (vrecpeq_f16): New.
782         (vrnd_f16): New.
783         (vrndq_f16): New.
784         (vrnda_f16): New.
785         (vrndaq_f16): New.
786         (vrndm_f16): New.
787         (vrndmq_f16): New.
788         (vrndn_f16): New.
789         (vrndnq_f16): New.
790         (vrndp_f16): New.
791         (vrndpq_f16): New.
792         (vrndx_f16): New.
793         (vrndxq_f16): New.
794         (vrsqrte_f16): New.
795         (vrsqrteq_f16): New.
796         (vrecps_f16): New.
797         (vrecpsq_f16): New.
798         (vrsqrts_f16): New.
799         (vrsqrtsq_f16): New.
800         (vsub_f16): New.
801         (vsubq_f16): New.
803 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
805         * config.gcc (extra_headers): Add arm_fp16.h
806         * config/arm/arm_fp16.h: New.
807         * config/arm/arm_neon.h: Include "arm_fp16.h".
809 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
811         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
812         variants).
813         (vmulf): New (v8hf, v4hf variants).
814         (vfma): New (v8hf, v4hf variants).
815         (vfms): New (v8hf, v4hf variants).
816         (vsub): New (v8hf, v4hf variants).
817         (vcage): New (v8hf, v4hf variants).
818         (vcagt): New (v8hf, v4hf variants).
819         (vcale): New (v8hf, v4hf variants).
820         (vcalt): New (v8hf, v4hf variants).
821         (vceq): New (v8hf, v4hf variants).
822         (vcgt): New (v8hf, v4hf variants).
823         (vcge): New (v8hf, v4hf variants).
824         (vcle): New (v8hf, v4hf variants).
825         (vclt): New (v8hf, v4hf variants).
826         (vceqz): New (v8hf, v4hf variants).
827         (vcgez): New (v8hf, v4hf variants).
828         (vcgtz): New (v8hf, v4hf variants).
829         (vcltz): New (v8hf, v4hf variants).
830         (vclez): New (v8hf, v4hf variants).
831         (vabd): New (v8hf, v4hf variants).
832         (vmaxf): New (v8hf, v4hf variants).
833         (vmaxnm): New (v8hf, v4hf variants).
834         (vminf): New (v8hf, v4hf variants).
835         (vminnm): New (v8hf, v4hf variants).
836         (vpmaxf): New (v4hf variant).
837         (vpminf): New (v4hf variant).
838         (vpadd): New (v4hf variant).
839         (vrecps): New (v8hf, v4hf variants).
840         (vrsqrts): New (v8hf, v4hf variants).
841         (vabs): New (v8hf, v4hf variants).
842         (vneg): New (v8hf, v4hf variants).
843         (vrecpe): New (v8hf, v4hf variants).
844         (vrnd): New (v8hf, v4hf variants).
845         (vrnda): New (v8hf, v4hf variants).
846         (vrndm): New (v8hf, v4hf variants).
847         (vrndn): New (v8hf, v4hf variants).
848         (vrndp): New (v8hf, v4hf variants).
849         (vrndx): New (v8hf, v4hf variants).
850         (vrsqrte): New (v8hf, v4hf variants).
851         (vmul_lane): Add v4hf and v8hf variants.
852         (vmul_n): Add v4hf and v8hf variants.
853         (vext): New (v8hf, v4hf variants).
854         (vcvts): New (v8hi, v4hi variants).
855         (vcvts): New (v8hf, v4hf variants).
856         (vcvtu): New (v8hi, v4hi variants).
857         (vcvtu): New (v8hf, v4hf variants).
858         (vcvts_n): New (v8hf, v4hf variants).
859         (vcvtu_n): New (v8hi, v4hi variants).
860         (vcvts_n): New (v8hi, v4hi variants).
861         (vcvtu_n): New (v8hf, v4hf variants).
862         (vbsl): New (v8hf, v4hf variants).
863         (vcvtas): New (v8hf, v4hf variants).
864         (vcvtau): New (v8hf, v4hf variants).
865         (vcvtms): New (v8hf, v4hf variants).
866         (vcvtmu): New (v8hf, v4hf variants).
867         (vcvtns): New (v8hf, v4hf variants).
868         (vcvtnu): New (v8hf, v4hf variants).
869         (vcvtps): New (v8hf, v4hf variants).
870         (vcvtpu): New (v8hf, v4hf variants).
872 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
874         * config/arm/arm-builtins.c (hf_UP): New.
875         (si_UP): New.
876         (vfp_builtin_data): New.  Update comment.
877         (enum arm_builtins): Include "arm_vfp_builtins.def".
878         (ARM_BUILTIN_VFP_PATTERN_START): New.
879         (arm_init_vfp_builtins): New.
880         (arm_init_builtins): Add arm_init_vfp_builtins.
881         (arm_expand_vfp_builtin): New.
882         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
883         long line.
884         * config/arm/arm_vfp_builtins.def: New file.
885         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
886         (arm-builtins.o): Likewise.
888 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
890         PR ipa/77677
891         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
892         from constant while creating value range.
894 2016-09-23  Renlin Li  <renlin.li@arm.com>
896         * ira.c (ira): Move ira_use_lra_p initialization code to ...
897         (ira_init_once): Here.
899 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
900             Jakub Jelinek  <jakub@redhat.com>
902         * hooks.h (hook_uint_uintp_false): Rename to...
903         (hook_bool_uint_uintp_false): ... this.
904         * hooks.c (hook_uint_uintp_false): Rename to...
905         (hook_bool_uint_uintp_false): ... this.
906         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
907         instead of hook_uint_uintp_false.
909 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
911         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
912         (arm_init_builtins): Move body of a loop to the standalone
913         function arm_init_neon_builtin.
914         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
915         moved from arm_neon_builtin with some white-space fixes.
916         (arm_expand_neon_builtin): Move code into the standalone function
917         arm_expand_neon_builtin_1.
919 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
921         * config/arm/iterators.md (VCVTHI): New.
922         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
923         (NEON_VAGLTE): New.
924         (VFM_LANE_AS): New.
925         (VH_CVTTO): New.
926         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
927         (V_HALF): Add V4HF.  Fix white-space.
928         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
929         (V_s_elem): Likewise.
930         (V_sz_elem): Fix white-space.
931         (V_elem_ch): Likewise.
932         (VH_elem_ch): New.
933         (scalar_mul_constraint): Add V8HF and V4HF.
934         (Is_float_mode): Fix white-space.
935         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
936         (q): Add HF.  Fix white-space.
937         (float_sup): New.
938         (float_SUP): New.
939         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
940         (neon_vfm_lane_as): New.
941         * config/arm/neon.md (add<mode>3_fp16): New.
942         (sub<mode>3_fp16): New.
943         (mul<mode>3add<mode>_neon): New.
944         (fma<VH:mode>4_intrinsic): New.
945         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
946         (fmsub<VH:mode>4_intrinsic): New.
947         (<absneg_str><mode>2): New.
948         (neon_v<absneg_str><mode>): New.
949         (neon_v<fp16_rnd_str><mode>): New.
950         (neon_vrsqrte<mode>): New.
951         (neon_vpaddv4hf): New.
952         (neon_vadd<mode>): New.
953         (neon_vsub<mode>): New.
954         (neon_vmulf<mode>): New.
955         (neon_vfma<VH:mode>): New.
956         (neon_vfms<VH:mode>): New.
957         (neon_vc<cmp_op><mode>): New.
958         (neon_vc<cmp_op><mode>_fp16insn): New
959         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
960         (neon_vca<cmp_op><mode>): New.
961         (neon_vca<cmp_op><mode>_fp16insn): New.
962         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
963         (neon_vc<cmp_op>z<mode>): New.
964         (neon_vabd<mode>): New.
965         (neon_v<maxmin>f<mode>): New.
966         (neon_vp<maxmin>fv4hf: New.
967         (neon_<fmaxmin_op><mode>): New.
968         (neon_vrecps<mode>): New.
969         (neon_vrsqrts<mode>): New.
970         (neon_vrecpe<mode>): New (VH variant).
971         (neon_vdup_lane<mode>_internal): New.
972         (neon_vdup_lane<mode>): New.
973         (neon_vcvt<sup><mode>): New (VCVTHI variant).
974         (neon_vcvt<sup><mode>): New (VH variant).
975         (neon_vcvt<sup>_n<mode>): New (VH variant).
976         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
977         (neon_vcvt<vcvth_op><sup><mode>): New.
978         (neon_vmul_lane<mode>): New.
979         (neon_vmul_n<mode>): New.
980         * config/arm/unspecs.md (UNSPEC_VCALE): New
981         (UNSPEC_VCALT): New.
982         (UNSPEC_VFMA_LANE): New.
983         (UNSPECS_VFMS_LANE): New.
985 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
987         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
988         ("*extzv<mode><clobbercc_or_nocc>"):
989         Correct a typo in a comment.
990         Merged patterns.
991         ("*insv<mode>_zEC12", "*insv<mode>_z10")
992         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
993         ("*insv<mode>_zEC12_appendbitsleft")
994         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
995         ("*insv<mode>_z10_appendbitsleft"): Ditto.
996         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
997         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
998         Provide pattern with operands switched.
999         ("*pre_z10_extv<mode>"):
1000         Use new subst patterns.
1001         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
1002         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
1003         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
1004         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
1005         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
1006         ("*<risbg_n>_sidi_ior_and_lshiftrt")
1007         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
1008         New patterns.
1009         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
1010         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1011         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
1012         on zEC12.
1013         ("SINT"): New mode_iterator with SI, HI, QI.
1014         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
1015         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
1016         duplication.
1018 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1020         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
1021         new interface of s390_contiguous_bitmask_p.
1022         ("contiguous_bitmask_nowrap_operand"): New predicate.
1023         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
1024         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
1025         of s390_contiguous_bitmask_p.
1026         ("NxxDw"): Rename NxxDq constraint to NxxDw.
1027         ("NxxSw"): New constraint.
1028         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
1029         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
1030         interface.
1031         (s390_contiguous_bitmask_nowrap_p): Export.
1032         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
1033         former s390_contiguous_bitmask_p.
1034         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
1035         detect contiguous bit ranges with wraparound.  Change signature to
1036         return START and END position instead of POS and LENGTH.
1037         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
1038         ranges with wraparound.
1039         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
1040         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
1041         Adapt to new signature of s390_contiguous_bitmask_p.
1043 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
1045         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
1046         (create_intersect_range_checks): New.
1047         (vect_create_cond_for_alias_checks): Call above function.
1049 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1051         * config/arm/iterators.md (Code iterators): Fix some white-space
1052         in the comments.
1053         (GLTE): New.
1054         (ABSNEG): New
1055         (FCVT): Moved from vfp.md.
1056         (VCVT_HF_US_N): New.
1057         (VCVT_SI_US_N): New.
1058         (VCVT_HF_US): New.
1059         (VCVTH_US): New.
1060         (FP16_RND): New.
1061         (absneg_str): New.
1062         (FCVTI32typename): Moved from vfp.md.
1063         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
1064         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
1065         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
1066         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
1067         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
1068         (vcvth_op): New.
1069         (fp16_rnd_str): New.
1070         (fp16_rnd_insn): New.
1071         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
1072         (UNSPEC_VCVT_HF_U_N): New.
1073         (UNSPEC_VCVT_SI_S_N): New.
1074         (UNSPEC_VCVT_SI_U_N): New.
1075         (UNSPEC_VCVTH_S): New.
1076         (UNSPEC_VCVTH_U): New.
1077         (UNSPEC_VCVTA_S): New.
1078         (UNSPEC_VCVTA_U): New.
1079         (UNSPEC_VCVTM_S): New.
1080         (UNSPEC_VCVTM_U): New.
1081         (UNSPEC_VCVTN_S): New.
1082         (UNSPEC_VCVTN_U): New.
1083         (UNSPEC_VCVTP_S): New.
1084         (UNSPEC_VCVTP_U): New.
1085         (UNSPEC_VCVTP_S): New.
1086         (UNSPEC_VCVTP_U): New.
1087         (UNSPEC_VRND): New.
1088         (UNSPEC_VRNDA): New.
1089         (UNSPEC_VRNDI): New.
1090         (UNSPEC_VRNDM): New.
1091         (UNSPEC_VRNDN): New.
1092         (UNSPEC_VRNDP): New.
1093         (UNSPEC_VRNDX): New.
1094         * config/arm/vfp.md (<absneg_str>hf2): New.
1095         (neon_vabshf): New.
1096         (neon_v<fp16_rnd_str>hf): New.
1097         (neon_vrndihf): New.
1098         (addhf3): New.
1099         (subhf3): New.
1100         (divhf3): New.
1101         (mulhf3): New.
1102         (*mulsf3neghf_vfp): New.
1103         (*negmulhf3_vfp): New.
1104         (*mulsf3addhf_vfp): New.
1105         (*mulhf3subhf_vfp): New.
1106         (*mulhf3neghfaddhf_vfp): New.
1107         (*mulhf3neghfsubhf_vfp): New.
1108         (fmahf4): New.
1109         (neon_vfmahf): New.
1110         (fmsubhf4_fp16): New.
1111         (neon_vfmshf): New.
1112         (*fnmsubhf4): New.
1113         (*fnmaddhf4): New.
1114         (neon_vsqrthf): New.
1115         (neon_vrsqrtshf): New.
1116         (FCVT): Move to iterators.md.
1117         (FCVTI32typename): Likewise.
1118         (neon_vcvth<sup>hf): New.
1119         (neon_vcvth<sup>si): New.
1120         (neon_vcvth<sup>_nhf_unspec): New.
1121         (neon_vcvth<sup>_nhf): New.
1122         (neon_vcvth<sup>_nsi_unspec): New.
1123         (neon_vcvth<sup>_nsi): New.
1124         (neon_vcvt<vcvth_op>h<sup>si): New.
1125         (neon_<fmaxmin_op>hf): New.
1127 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1129         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
1130         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
1131         ("*insv<mode>_zEC12_appendbitsleft")
1132         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
1133         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
1135 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1137         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
1138         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
1139         construct values without normalization.
1140         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
1141         static local lhs_ops to vNULL.
1143 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1144             Jiong Wang <jiong.wang@arm.com>
1146         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
1147         available when FP16 instructions are available.
1148         (output_move_vfp): Add support for 16-bit data moves.
1149         (arm_validize_comparison): Fix some white-space.  Support HFmode
1150         by conversion to SFmode.
1151         * config/arm/arm.md (truncdfhf2): Fix a comment.
1152         (extendhfdf2): Likewise.
1153         (cstorehf4): New.
1154         (movsicc): Fix some white-space.
1155         (movhfcc): New.
1156         (movsfcc): Fix some white-space.
1157         (*cmovhf): New.
1158         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
1159         instructions are available.
1160         (*thumb2_movhi_vfp): Likewise.
1161         (*arm_movhi_fp16): New.
1162         (*thumb2_movhi_fp16): New.
1163         (*movhf_vfp_fp16): New.
1164         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
1165         (*movhf_vfp): Likewise.
1166         (extendhfsf2): Enable when VFP FP16 instructions are available.
1167         (truncsfhf2):  Enable when VFP FP16 instructions are available.
1169 2016-09-23  Martin Liska  <mliska@suse.cz>
1171         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
1173 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1175         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
1176         V4HF modes.
1177         (arm_evpc_neon_vtrn): Likewise.
1178         (arm_evpc_neon_vrev): Likewise.
1179         (arm_evpc_neon_vext): Likewise.
1180         * config/arm/arm_neon.h (vbsl_f16): New.
1181         (vbslq_f16): New.
1182         (vdup_n_f16): New.
1183         (vdupq_n_f16): New.
1184         (vdup_lane_f16): New.
1185         (vdupq_lane_f16): New.
1186         (vext_f16): New.
1187         (vextq_f16): New.
1188         (vmov_n_f16): New.
1189         (vmovq_n_f16): New.
1190         (vrev64_f16): New.
1191         (vrev64q_f16): New.
1192         (vtrn_f16): New.
1193         (vtrnq_f16): New.
1194         (vuzp_f16): New.
1195         (vuzpq_f16): New.
1196         (vzip_f16): New.
1197         (vzipq_f16): New.
1198         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
1199         (vdup_lane): New (v8hf, v4hf variants).
1200         (vext): New (v8hf, v4hf variants).
1201         (vbsl): New (v8hf, v4hf variants).
1202         * config/arm/iterators.md (VDQWH): New.
1203         (VH): New.
1204         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
1205         (Scalar_mul_8_16): Fix white-space.
1206         (Is_d_reg): Add V4HF and V8HF.
1207         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
1208         (neon_vdup_lane<mode>): New.
1209         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
1210         (*neon_vtrn<mode>_insn): Likewise.
1211         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
1212         (*neon_vzip<mode>_insn): Likewise
1213         (neon_vuzp<mode>_internal): Likewise.
1214         (*neon_vuzp<mode>_insn): Likewise
1215         * config/arm/vec-common.md (vec_perm_const<mode>): New.
1217 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
1218             Matthew Wahab  <matthew.wahab@arm.com>
1220         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
1221         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
1222         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
1223         available.  Also fix some white-space.
1224         * config/arm/vfp.md (*arm_movhi_vfp): New.
1225         (*thumb2_movhi_vfp): New.
1227 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1229         * config/arm/arm-c.c (arm_cpu_builtins): Define
1230         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
1231         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
1233 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1235         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
1236         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
1237         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
1238         arm_v8_2a_fp16_neon_hw.
1239         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
1240         arm_v8_2a_neon.
1242 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1244         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
1245         arm_fp16_alternative_ok and arm_fp16_none_ok.
1247 2016-09-23  Martin Liska  <mliska@suse.cz>
1249         * ipa-icf.c (sem_variable::merge): Replace adress with address.
1251 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1253         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
1254         ("armv8.2-a"): New.
1255         ("armv8.2-a+fp16"): New.
1256         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
1257         (FL2_FP16INST): New.
1258         (FL2_FOR_ARCH8_2A): New.
1259         * config/arm/arm-tables.opt: Regenerate.
1260         * config/arm/arm.c (arm_arch8_2): New.
1261         (arm_fp16_inst): New.
1262         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
1263         for incompatible fp16-format settings.
1264         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
1265         (TARGET_NEON_FP16INST): New.
1266         (arm_arch8_2): Declare.
1267         (arm_fp16_inst): Declare.
1268         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
1269         march=armv8.2-a and march=armv8.2-a+fp16.
1270         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
1271         and armv8.2-a+fp16.
1272         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
1273         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
1275 2016-09-23  Martin Liska  <mliska@suse.cz>
1277         * doc/extend.texi: Remove fused-madd from i386 target options.
1279 2016-09-23  Martin Liska  <mliska@suse.cz>
1281         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1282         Handle movbe.
1284 2016-09-23  Martin Liska  <mliska@suse.cz>
1286         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1287         Handle crc32.
1289 2016-09-23  Martin Liska  <mliska@suse.cz>
1291         PR target/71652
1292         * config/i386/i386.c (ix86_option_override_internal): Change
1293         signature and return false when there's an error related to
1294         arch string.
1295         (release_options_strings): New function.
1296         (ix86_valid_target_attribute_tree): Call the function.
1298 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1300         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
1301         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
1302         (gen_hsa_ctor_assignment): Likewise.
1303         * print-tree.c (print_node): Likewise.
1304         * tree-dump.c (dequeue_and_dump): Likewise.
1305         * tree-sra.c (sra_modify_constructor_assign): Likewise.
1306         * expr.c (store_constructor): Likewise.
1307         * fold-const.c (operand_equal_p): Likewise.
1308         * tree-pretty-print.c (dump_generic_node): Likewise.
1309         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
1310         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
1312 2016-09-23  Richard Biener  <rguenther@suse.de>
1314         * hooks.h (hook_uint_uintp_false): Declare.
1316 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1318         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
1319         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
1321 2016-09-22  Martin Sebor  <msebor@redhat.com>
1323         PR target/77676
1324         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
1325         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
1326         (target_int_min): Correct computation.
1327         (format_integer): Use long long as the argument for the ll length
1328         modifier.
1329         (format_floating): Use target_int_max().
1330         (get_string_length): Same.
1331         (format_string): Avoid setting the bounded flag for strings
1332         of unknown length.
1333         (try_substitute_return_value): Avoid setting range info when
1334         the result isn't bounded.
1335         * varasm.c (assemble_name): Increase buffer size.
1337 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1338             Terry Guo  <terry.guo@arm.com>
1340         * target.def (elf_flags_numeric): New target hook.
1341         * targhooks.h (default_asm_elf_flags_numeric): New.
1342         * varasm.c (default_asm_elf_flags_numeric): New.
1343         (default_elf_asm_named_section): Use new target hook.
1344         * config/arm/arm.opt (mpure-code): New.
1345         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
1346         * config/arm/arm.c (arm_asm_init_sections): Add section
1347         attribute to default text section if -mpure-code.
1348         (arm_option_check_internal): Diagnose use of option with
1349         non supported targets and/or options.
1350         (arm_asm_elf_flags_numeric): New.
1351         (arm_function_section): New.
1352         (arm_elf_section_type_flags): New.
1353         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
1354         for -mpure-code.
1355         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
1356         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
1358 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
1360         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
1362 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1364         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
1365         * rtl.h: Adjust prototype.
1367 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1369         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
1370         (prev_active_insn): Likewise.
1371         (active_insn_p): Likewise.
1372         * rtl.h: Adjust prototypes.
1373         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
1374         * config/arc/arc.md: Likewise.
1375         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
1376         (branch_needs_nop_p): Likewise.
1377         (use_skip_p): Likewise.
1378         * config/sh/sh.c (gen_block_redirect): Likewise.
1379         (split_branches): Likewise.
1380         * reorg.c (optimize_skip): Likewise.
1381         (fill_simple_delay_slots): Likewise.
1382         (fill_slots_from_thread): Likewise.
1383         (relax_delay_slots): Likewise.
1384         * resource.c (mark_target_live_regs): Likewise.
1386 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1388         * config/cris/cris.c (cris_asm_output_case_end): Change argument
1389         type to rtx_insn *.
1390         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
1391         (prev_nonnote_nondebug_insn): Likewise.
1392         * config/cris/cris-protos.h: Adjust prototype.
1393         * rtl.h: Likewise.
1394         * jump.c (rtx_renumbered_equal_p): Adjust.
1396 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1398         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
1399         * rtl.h: Adjust prototype.
1400         * config/sh/sh.md: Adjust.
1401         * dwarf2out.c (add_var_loc_to_decl): Likewise.
1403 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1405         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
1406         (prev_nondebug_insn): Likewise.
1407         * loop-doloop.c (doloop_condition_get): Likewise.
1408         * rtl.h: Adjust prototype.
1409         * cfgloop.h: Likewise.
1411 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1413         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
1414         (prev_nonnote_insn): Likewise.
1415         * jump.c (reversed_comparison_code_parts): Likewise.
1416         (reversed_comparison): Likewise.
1417         * rtl.h: Adjust prototypes.
1418         * config/arc/arc.md: Adjust.
1419         * cse.c (find_comparison_args): Likewise.
1420         * reorg.c (redundant_insn): Change return type to rtx_insn *.
1421         (fix_reg_dead_note): Change argument type to rtx_insn *.
1422         (delete_prior_computation): Likewise.
1423         (delete_computation): Likewise.
1424         (fill_slots_from_thread): Adjust.
1425         (relax_delay_slots): Likewise.
1426         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1427         (simplify_relational_operation_1): Likewise.
1428         (simplify_ternary_operation): Likewise.
1430 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1432         * config/arc/arc-protos.h (arc_label_align): Change type of
1433         variables from rtx to rtx_insn *.
1434         * config/arc/arc.c (arc_label_align): Likewise.
1435         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
1436         * config/bfin/bfin.c (workaround_speculation): Likewise.
1437         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
1438         (find_last_same_clock): Likewise.
1439         (reorg_split_calls): Likewise.
1440         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
1441         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
1442         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
1443         (same_cmp_following_p): Likewise.
1444         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
1445         (same_cmp_following_p): Likwise.
1446         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
1447         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
1448         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
1449         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
1450         (rl78_alloc_physical_registers_cmp): Likewise.
1451         (rl78_alloc_physical_registers_umul): Likewise.
1452         (rl78_calculate_death_notes): Likewise.
1453         * config/s390/s390-protos.h (s390_label_align): Likewise.
1454         * config/s390/s390.c (s390_label_align): Likewise.
1455         * config/sh/sh.c (barrier_align): Likewise.
1456         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
1457         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
1458         (emit_cbcond_nop): Likewise.
1460 2016-09-22  Martin Liska  <mliska@suse.cz>
1462         PR ipa/77653
1463         * ipa-icf.c (sem_variable::merge): Yield merge operation if
1464         alias address matters, not necessarily address of original.
1466 2016-09-22  Richard Biener  <rguenther@suse.de>
1468         PR middle-end/77697
1469         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
1470         fold fails.
1472 2016-09-22  Richard Biener  <rguenther@suse.de>
1474         PR middle-end/77677
1475         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
1476         from constant folding results.
1477         (gimple_resimplify2): Likewise.
1478         (gimple_resimplify3): Likewise.
1480 2016-09-22  Richard Biener  <rguenther@suse.de>
1482         PR middle-end/77678
1483         * expr.c (expand_expr_real_1): Guard array access against negative
1484         offset.
1486 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1488         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
1489         of MPFR_RNDN.
1490         (format_floating): Likewise.
1492 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
1494         PR fortran/77665
1495         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
1496         for all IFN_GOMP_SIMD_* internal fns, not just for
1497         IFN_GOMP_SIMD_ORDERED_*.
1499 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
1501         PR target/77670
1502         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
1503         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
1504         instructions when you want to invert the test.
1505         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
1506         correct order for XXSEL.
1507         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
1508         for using XSCMP{EQ,GT,GE}DP.
1510 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
1512         * genconstants.c (main): Introduce noop_reader and convert call
1513         to read_md_files to a method call.
1514         * genenums.c (main): Likewise.
1515         * genmddeps.c (main): Likewise.
1516         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
1517         rtx_reader_ptr->get_top_level_filename ().
1518         (write_tm_preds_h): Likewise.
1519         (write_insn_preds_c): Likewise.
1520         * gensupport.c (class gen_reader): New subclass of rtx_reader.
1521         (rtx_handle_directive): Convert to...
1522         (gen_reader::handle_unknown_directive): ...this.
1523         (init_rtx_reader_args_cb): Convert return type from bool to
1524         rtx_reader *.  Create a gen_reader instance, using it for the
1525         call to read_md_files.  Return it if no errors occur.
1526         (init_rtx_reader_args): Convert return type from bool to
1527         rtx_reader *.
1528         * gensupport.h (init_rtx_reader_args_cb): Likewise.
1529         (init_rtx_reader_args_cb): Likewise.
1530         * read-md.c (struct file_name_list): Move to class rtx_reader.
1531         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
1532         (read_md_filename): Delete in favor of
1533         rtx_reader::m_read_md_filename.
1534         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
1535         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
1536         (base_dir): Delete in favor of rtx_reader::m_base_dir.
1537         (first_dir_md_include): Delete in favor of
1538         rtx_reader::m_first_dir_md_include.
1539         (last_dir_md_include_ptr): Delete in favor of
1540         rtx_reader::m_last_dir_md_include_ptr.
1541         (max_include_len): Delete.
1542         (rtx_reader_ptr): New.
1543         (fatal_with_file_and_line): Use get_filename and get_lineno
1544         accessors of rtx_reader_ptr.
1545         (require_char_ws): Likewise.
1546         (rtx_reader::read_char): New method, based on ::read_char.
1547         (rtx_reader::unread_char): New method, based on ::unread_char.
1548         (read_escape): Use get_filename and get_lineno accessors of
1549         rtx_reader_ptr.
1550         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
1551         (read_string): Use get_filename and get_lineno accessors of
1552         rtx_reader_ptr.
1553         (rtx_reader::rtx_reader): New ctor.
1554         (rtx_reader::~rtx_reader): New dtor.
1555         (handle_include): Convert from a function to...
1556         (rtx_reader::handle_include): ...this method, converting
1557         handle_directive from a callback to a virtual function.
1558         (handle_file): Likewise, converting to...
1559         (rtx_reader::handle_file): ...this method.
1560         (handle_toplevel_file): Likewise, converting to...
1561         (rtx_reader::handle_toplevel_file): ...this method.
1562         (rtx_reader::get_current_location): New method.
1563         (parse_include): Convert from a function to...
1564         (rtx_reader::add_include_path): ...this method, dropping redundant
1565         update to unused max_include_len.
1566         (read_md_files): Convert from a function to...
1567         (rtx_reader::read_md_files): ...this method, converting
1568         handle_directive from a callback to a virtual function.
1569         (noop_reader::handle_unknown_directive): New method.
1570         * read-md.h (directive_handler_t): Delete this typedef.
1571         (in_fname): Delete.
1572         (read_md_file): Delete.
1573         (read_md_lineno): Delete.
1574         (read_md_filename): Delete.
1575         (class rtx_reader): New class.
1576         (rtx_reader_ptr): New decl.
1577         (class noop_reader): New subclass of rtx_reader.
1578         (read_char): Reimplement in terms of rtx_reader::read_char.
1579         (unread_char): Reimplement in terms of rtx_reader::unread_char.
1580         (read_md_files): Delete.
1581         * read-rtl.c (read_rtx_code): Update for deletion of globals
1582         read_md_filename and read_md_lineno.
1584 2016-09-21  Jason Merrill  <jason@redhat.com>
1586         * input.h (from_macro_definition_at): New.
1588 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
1590         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
1592 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1594         PR tree-optimization/77550
1595         * tree-vect-stmts.c (create_array_ref): Change parameters.
1596         (get_group_alias_ptr_type): New function.
1597         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
1599 2016-09-21  Marek Polacek  <polacek@redhat.com>
1601         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
1602         Add falls through comment.
1604 2016-09-21  Richard Biener  <rguenther@suse.de>
1606         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
1607         (replace_child): Likewise.
1608         (remove_child_TAG): Adjust.
1609         (move_marked_base_types): Likewise.
1610         (prune_unused_types_prune): Clear die_sib of removed children.
1612 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
1614         PR target/77326
1615         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
1616         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
1618 2016-09-21  Richard Biener  <rguenther@suse.de>
1620         PR tree-optimization/77648
1621         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
1622         with complex RHS.
1623         (make_transitive_closure_constraints): Adjust comment.
1624         (make_any_offset_constraints): New function.
1625         (handle_rhs_call): Make sure to first expand a pointer to all
1626         subfields before transitively closing it.
1627         (handle_const_call): Likewise.  Properly expand returned
1628         pointers as well.
1629         (handle_pure_call): Likewise.
1631 2016-09-21  Richard Biener  <rguenther@suse.de>
1632             Jakub Jelinek  <jakub@redhat.com>
1634         PR tree-optimization/77621
1635         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
1636         group at non-vectorizable stmts.
1638 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1640         PR tree-optimization/72835
1641         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
1642         (make_new_ssa_for_all_defs): Likewise.
1643         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
1645 2016-09-20  Martin Sebor  <msebor@redhat.com>
1647         PR middle-end/49905
1648         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
1649         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
1650         * config/linux.c (gnu_libc_printf_pointer_format): New function.
1651         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
1652         * config/sol2.c (solaris_printf_pointer_format): New function.
1653         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
1654         options.
1655         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
1656         * doc/tm.texi: Regenerate.
1657         * gimple-fold.h (get_range_strlen): New function.
1658         (get_maxval_strlen): Declare existing function.
1659         * gimple-fold.c (get_range_strlen): Add arguments and compute both
1660         maximum and minimum.
1661          (get_range_strlen): Define overload.
1662         (get_maxval_strlen): Adjust.
1663         * gimple-ssa-sprintf.c: New file and pass.
1664         * passes.def (pass_sprintf_length): Add new pass.
1665         * targhooks.h (default_printf_pointer_format): Declare new function.
1666         (gnu_libc_printf_pointer_format): Same.
1667         (solaris_libc_printf_pointer_format): Same.
1668         * targhooks.c (default_printf_pointer_format): Define new function.
1669         * tree-pass.h (make_pass_sprintf_length): Declare new function.
1670         * print-tree.c: Increase buffer size.
1672 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1674         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
1676 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1678         * common.opt: New option -fipa-vrp.
1679         * ipa-cp.c (ipa_get_vr_lat): New.
1680         (ipcp_vr_lattice::print): Likewise.
1681         (print_all_lattices): Call ipcp_vr_lattice::print.
1682         (ipcp_vr_lattice::meet_with): New.
1683         (ipcp_vr_lattice::meet_with_1): Likewise.
1684         (ipcp_vr_lattice::top_p): Likewise.
1685         (ipcp_vr_lattice::bottom_p): Likewsie.
1686         (ipcp_vr_lattice::set_to_bottom): Likewise.
1687         (set_all_contains_variable): Call VR set_to_bottom.
1688         (initialize_node_lattices): Init VR lattices.
1689         (propagate_vr_accross_jump_function): New.
1690         (propagate_constants_accross_call): Call
1691         propagate_vr_accross_jump_function.
1692         (ipcp_store_vr_results): New.
1693         (ipcp_driver): Handle VR.
1694         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
1695         (ipa_set_jf_unknown): Likewise.
1696         (ipa_compute_jump_functions_for_edge): Likewise.
1697         (ipa_node_params_t::duplicate): Likewise.
1698         (ipa_write_jump_function): Likewise.
1699         (ipa_read_jump_function): Likewise.
1700         (write_ipcp_transformation_info): Likewise.
1701         (read_ipcp_transformation_info): Likewise.
1702         (ipcp_update_vr): New.
1703         (ipcp_transform_function): Handle VR.
1704         * ipa-prop.h (struct ipa_vr): New.
1705         * cgraph.c: Include tree-vrp.h.
1706         * cgraphunit.c: Likewise.
1707         * ipa-utils.c: Likewise.
1708         * ipa.c: Likewise.
1709         * opts.c: Likewise.
1710         * toplev.c: Likewise.
1711         * ipa-devirt.c: Likewise.
1712         * ipa-inline-transform.c: Likewise.
1713         * ipa-inline.c: Likewise.
1714         * ipa-profile.c: Likewise.
1716 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
1718         * doc/invoke.texi: Document -fdump-tree-evrp.
1719         * passes.def: Define new pass_early_vrp.
1720         * timevar.def: Define new TV_TREE_EARLY_VRP.
1721         * tree-pass.h (make_pass_early_vrp): New.
1722         * tree-ssa-propagate.c: Make replace_uses_in non static.
1723         * tree-ssa-propagate.h: Export replace_uses_in.
1724         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
1725         (extract_range_from_assert): Factor out
1726         extract_range_for_var_from_comparison_expr.
1727         (vrp_initialize_lattice): New.
1728         (vrp_initialize): Factor out vrp_initialize_lattice.
1729         (vrp_valueize): Fix it to reject complex value ranges.
1730         (vrp_free_lattice): New.
1731         (evrp_dom_walker::before_dom_children): Likewise.
1732         (evrp_dom_walker::after_dom_children): Likewise.
1733         (evrp_dom_walker::push_value_range): Likewise.
1734         (evrp_dom_walker::pop_value_range): Likewise.
1735         (execute_early_vrp): Likewise.
1736         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
1737         (make_pass_early_vrp): New.
1739 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1741         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
1742         instead of exact_log2.
1744 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
1746         PR target/77621
1747         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
1748         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
1749         (ix86_add_stmt_cost): Penalize DFmode vector operations
1750         for !TARGET_VECTORIZE_DOUBLE.
1752 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
1754         * doc/invoke.texi (Warning Options): Simplify language.
1755         (Optimize Options): Complete sentence.
1757 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
1759         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
1760         early_finish hook.
1762 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1764         PR target/71395
1765         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
1766         inits on power8 and above, use the VMRGEW instruction instead of a
1767         permute.
1769         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
1770         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
1771         initialization.
1773 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
1775         * config/aarch64/arm_neon.h
1776         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
1777         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
1778         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
1780 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1782         * config/var/vax.h (ELIMINABLE_REGS): Define.
1783         (INITIAL_ELIMINATION_OFFSET): Define.
1785 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
1787         PR middle-end/77624
1788         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
1789         cast to void * if the cast is from some other pointer type.
1791 2016-09-20  Richard Biener  <rguenther@suse.de>
1793         PR tree-optimization/77646
1794         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
1795         a VDEF.
1797 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
1799         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
1800         attributes to all inlined functions and make them extern.
1802 2016-09-20  Richard Biener  <rguenther@suse.de>
1804         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
1805         hook.
1806         * debug.c (do_nothing_debug_hooks): Adjust.
1807         * dbxout.c (dbx_debug_hooks): Likewise.
1808         * sdbout.c (sdb_debug_hooks): Likewise.
1809         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
1810         (dwarf2out_finish): Move producer, filename and
1811         path annotation ...
1812         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
1813         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
1815 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1817         PR c++/77434
1818         * doc/invoke.texi: Document -Wint-in-bool-context.
1820         PR middle-end/77421
1821         * dwarf2out.c (output_loc_operands): Fix an assertion.
1823 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1825         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
1826         (CR_DECIMAL_DIG): New macro.
1828 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
1830         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
1831         element.
1833 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
1835         PR rtl-optimization/77416
1836         * lra-remat.c (operand_to_remat): Process hard coded insn
1837         registers.
1839 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1841         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
1842         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
1844 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
1846         * target.def (lra_p): Wordsmithing.
1847         * doc/tm.texi: Regenerate.
1849 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
1850             Jan Hubicka  <jh@suse.cz>
1852         PR target/77587
1853         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
1854         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
1855         Call ultimate_alias_target just once, not up to 4 times.
1857 2016-09-19  Richard Biener  <rguenther@suse.de>
1859         * dwarf2out.c (early_dwarf_finished): New global.
1860         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
1861         is false.
1862         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
1863         if called from LTO exit early.
1864         (dwarf2out_late_global_decl): When being during the early
1865         debug phase do not add locations but only const value attributes.
1866         Adjust the way we generate early DIEs for LTO.
1868 2016-09-19  Richard Biener  <rguenther@suse.de>
1870         PR middle-end/77605
1871         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
1872         proper niter to bound the loops.
1874 2016-09-19  Richard Biener  <rguenther@suse.de>
1876         PR tree-optimization/77514
1877         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
1878         search for folded stmt.
1880 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
1882         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
1883         * tree-pass.h (make_pass_early_thread_jumps): Declare.
1884         * tree-ssa-threadbackward.c (fsm_find_thread_path,
1885         fsm_find_thread_path, profitable_jump_thread_path,
1886         fsm_find_control_statement_thread_paths,
1887         find_jump_threads_backwards): Add speed_p parameter.
1888         (pass_data_early_thread_jumps): New pass.
1889         (make_pass_early_thread_jumps): New function.
1891 2016-09-17  Andreas Schwab  <schwab@suse.de>
1893         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
1894         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1896 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
1898         * recog.c (rest_of_handle_split_after_reload): Delete.
1899         (pass_split_after_reload::gate): New method.
1900         (pass_split_after_reload::execute): Call split_all_insns directly.
1902 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
1904         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
1905         parameters for functions taking long long arguments.
1907 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1909         PR target/77613
1910         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
1911         splat with truncate.
1913 2016-09-16  Jason Merrill  <jason@redhat.com>
1915         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
1916         New.
1917         * hwint.c (exact_log2): Use pow2p_hwi.
1918         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
1919         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
1920         * builtins.c (get_object_alignment_2, get_object_alignment)
1921         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
1922         least_bit_hwi.
1923         * calls.c (compute_argument_addresses, store_one_arg): Use
1924         least_bit_hwi.
1925         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
1926         * combine.c (force_to_mode): Use least_bit_hwi.
1927         (contains_muldiv, find_split_point, combine_simplify_rtx)
1928         (simplify_if_then_else, simplify_set, force_to_mode)
1929         (if_then_else_cond, simplify_and_const_int_1)
1930         (simplify_compare_const): Use pow2p_hwi.
1931         * cse.c (fold_rtx): Use pow2p_hwi.
1932         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
1933         Use least_bit_hwi.
1934         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
1935         (init_expmed_one_conv): Use pow2p_hwi.
1936         * expr.c (is_aligning_offset): Use pow2p_hwi.
1937         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
1938         (fold_binary_loc): Use pow2p_hwi.
1939         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
1940         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
1941         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
1942         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
1943         Use least_bit_hwi.
1944         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
1945         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
1946         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
1947         * omp-low.c (oacc_loop_fixed_partitions)
1948         (oacc_loop_auto_partitions): Use least_bit_hwi.
1949         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
1950         * stor-layout.c (place_field): Use least_bit_hwi.
1951         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
1952         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
1953         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
1954         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
1955         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
1956         * tree-vect-data-refs.c (vect_analyze_group_access_1)
1957         (vect_grouped_store_supported, vect_grouped_load_supported)
1958         (vect_permute_load_chain, vect_shift_permute_load_chain)
1959         (vect_transform_grouped_load): Use pow2p_hwi.
1960         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
1961         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
1962         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
1963         least_bit_hwi.
1964         * tsan.c (instrument_expr): Use least_bit_hwi.
1965         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
1967 2016-09-16  Andreas Schwab  <schwab@suse.de>
1969         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
1970         OFFSET, not offset.
1971         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
1973 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1975         PR target/77526
1976         * combine.c (rest_of_handle_combine): If any edges have been purged,
1977         free dominators if available.
1979 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
1980             Eric Botcazou  <ebotcazou@adacore.com>
1982         PR middle-end/77594
1983         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
1984         through into expand_addsub_overflow after expand_neg_overflow.
1986 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
1988         * diagnostic-show-locus.c
1989         (selftest::test_fixit_insert_containing_newline): New function.
1990         (selftest::test_fixit_replace_containing_newline): New function.
1991         (selftest::diagnostic_show_locus_c_tests): Call the above.
1993 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
1995         PR tree-optimization/77503
1996         * tree-vect-loop.c (vectorizable_reduction): Record reduction
1997         code for CONST_COND_REDUCTION at analysis stage and use it at
1998         transform stage.
1999         * tree-vectorizer.h (struct _stmt_vec_info): New field.
2000         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
2001         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
2002         field.
2004 2016-09-15  Richard Biener  <rguenther@suse.de>
2006         PR middle-end/77544
2007         * fold-const.c (split_tree): Do not split constant ~X.
2009 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
2011         PR rtl-optimization/77425
2012         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
2013         is NULL.
2015         PR middle-end/77475
2016         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
2017         use %qs instead of %s where desirable, use argument instead of arg in
2018         the diagnostic wording, add list of supported strategies and
2019         spellcheck hint.
2020         (ix86_option_override_internal): Emit target("m...") instead of
2021         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
2022         -march/-mtune option diagnostic.  Add list of supported arches/tunings
2023         and spellcheck hint.  Remove prefix, suffix and sw variables, use
2024         main_args_p ? "..." : "..." in diagnostics to make translation
2025         possible.
2027 2016-09-15  Richard Biener  <rguenther@suse.de>
2029         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
2030         extra offset argument.
2031         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
2032         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
2033         to reflect new offset parameter.
2034         * doc/tm.texi: Regenerate.
2035         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2036         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
2037         offset argument.
2038         (darwin_asm_output_dwarf_offset): Likewise.
2039         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
2040         argument.
2041         (darwin_asm_output_dwarf_offset): Pass offset argument through.
2042         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
2043         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
2045 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
2047         PR fortran/72743
2048         * ipa-icf.c (set_alias_uids): New function.
2049         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
2050         all the merged variable's referring aliases.
2052 2016-09-15  Richard Biener  <rguenther@suse.de>
2054         PR tree-optimization/77514
2055         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
2056         only forced_stmts sequence.
2058 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
2060         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
2061         * cfgexpand.c (update_alias_info_with_stack_vars): Use
2062         FOR_EACH_SSA_NAME to iterate over SSA variables.
2063         (pass_expand::execute): Likewise.
2064         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
2065         * tree-cfg.c (dump_function_to_file): Likewise.
2066         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
2067         (update_ssa): Likewise.
2068         * tree-ssa-alias.c (dump_alias_info): Likewise.
2069         * tree-ssa-ccp.c (ccp_finalize): Likewise.
2070         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
2071         (create_outofssa_var_map): Likewise.
2072         (coalesce_ssa_name): Likewise.
2073         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
2074         * tree-ssa-pre.c (compute_avail): Likewise.
2075         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
2076         (scc_vn_restore_ssa_info): Likewise.
2077         (free_scc_vn): Likwise.
2078         (run_scc_vn): Likewise.
2079         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
2080         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
2081         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2082         * tree-ssa.c (verify_ssa): Likewise.
2084 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
2086         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
2087         and mips64r2 as default 32-bit and 64-bit architectures.
2088         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
2089         as default 32-bit and 64-bit architectures.
2091 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
2093         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
2094         of succ edge.
2096 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2098         * target.def (lra_p): Change commentary (for the manual) for the
2099         new default.
2100         * doc/tm.texi: Regenerate.
2102 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2104         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
2105         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
2106         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
2107         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
2109 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2111         * targhooks.c (default_lra_p): Return true instead of false.
2113 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
2115         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
2116         hook_bool_void_false.
2117         * config/avr/avr.c: Ditto.
2118         * config/bfin/bfin.c: Ditto.
2119         * config/c6x/c6x.c: Ditto.
2120         * config/cr16/cr16.c: Ditto.
2121         * config/cris/cris.c: Ditto.
2122         * config/epiphany/epiphany.c: Ditto.
2123         * config/fr30/fr30.c: Ditto.
2124         * config/frv/frv.c: Ditto.
2125         * config/h8300/h8300.c: Ditto.
2126         * config/ia64/ia64.c: Ditto.
2127         * config/iq2000/iq2000.c: Ditto.
2128         * config/lm32/lm32.c: Ditto.
2129         * config/m32c/m32c.c: Ditto.
2130         * config/m32r/m32r.c: Ditto.
2131         * config/m68k/m68k.c: Ditto.
2132         * config/mcore/mcore.c: Ditto.
2133         * config/microblaze/microblaze.c: Ditto.
2134         * config/mmix/mmix.c: Ditto.
2135         * config/mn10300/mn10300.c: Ditto.
2136         * config/moxie/moxie.c: Ditto.
2137         * config/msp430/msp430.c: Ditto.
2138         * config/nios2/nios2.c: Ditto.
2139         * config/nvptx/nvptx.c: Ditto.
2140         * config/pa/pa.c: Ditto.
2141         * config/pdp11/pdp11.c: Ditto.
2142         * config/rl78/rl78.c: Ditto.
2143         * config/sparc/sparc.c: Ditto.
2144         * config/spu/spu.c: Ditto.
2145         * config/stormy16/stormy16.c: Ditto.
2146         * config/tilegx/tilegx.c: Ditto.
2147         * config/tilepro/tilepro.c: Ditto.
2148         * config/v850/v850.c: Ditto.
2149         * config/vax/vax.c: Ditto.
2150         * config/visium/visium.c: Ditto.
2151         * config/xtensa/xtensa.c: Ditto.
2153 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
2155         PR sanitizer/68260
2156         * tsan.c: Include target.h.
2157         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
2158         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
2159         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
2160         BUILT_IN_ATOMIC_TEST_AND_SET entries.
2161         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
2163 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2164             Martin Liska  <mliska@suse.cz>
2166         PR middle-end/77574
2167         * predict.c (force_edge_cold): Add braces to a condition.
2169 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2171         PR rtl-optimization/77289
2172         * lra-constraints.c (get_final_hard_regno): Removed.
2173         (get_hard_regno): Add new parameter final_p.
2174         (get_reg_class): Directly call lra_get_elimination_hard_regno.
2175         (operands_match_p): Adjust call to get_hard_regno.
2176         (uses_hard_regs_p): Likewise.
2177         (process_alt_operands): Likewise.
2179 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
2181         PR target/70713
2182         * config/msp430/msp430.c (msp430_start_function): Emit an error
2183         if a function is both weak and specifies an interrupt number.
2185 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2187         PR tree-optimization/77454
2188         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
2189         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
2190         Formatting fix.
2192 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
2194         * config/aarch64/aarch64-builtins.c
2195         (aarch64_init_simd_builtins): Fix builtin type signature printing.
2197 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
2199         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
2200         SFmode and SCmode arguments by reference.
2202 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
2204         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
2205         Rename to...
2206         (selftest::test_one_liner_fixit_insert_before): ...this, and update
2207         for renaming of add_fixit_insert to add_fixit_insert_before.
2208         (selftest::test_one_liner_fixit_insert_after): New function.
2209         (selftest::test_one_liner_fixit_validation_adhoc_locations):
2210         Update for renaming of add_fixit_insert to add_fixit_insert_before.
2211         (selftest::test_one_liner_many_fixits): Likewise.
2212         (selftest::test_diagnostic_show_locus_one_liner): Update for
2213         renaming, call new test function.
2214         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
2215         renaming of add_fixit_insert to add_fixit_insert_before.
2216         (selftest::test_fixit_consolidation): Likewise.
2217         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
2218         Likewise.
2219         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
2220         (selftest::test_applying_fixits_insert_before): ...this.
2221         (selftest::test_applying_fixits_insert): Update for renaming of
2222         add_fixit_insert to add_fixit_insert_before.
2223         (selftest::test_applying_fixits_insert_after): New function.
2224         (selftest::test_applying_fixits_insert_after_at_line_end): New
2225         function.
2226         (selftest::test_applying_fixits_insert_after_failure): New function.
2227         (selftest::test_applying_fixits_multiple): Update for renaming of
2228         add_fixit_insert to add_fixit_insert_before.
2229         (selftest::change_line): Likewise.
2230         (selftest::test_applying_fixits_unreadable_file): Likewise.
2231         (selftest::test_applying_fixits_line_out_of_range): Likewise.
2232         (selftest::test_applying_fixits_column_validation): Likewise.
2233         (selftest::test_applying_fixits_column_validation): Likewise.
2234         (selftest::edit_context_c_tests): Update for renamed test function;
2235         call new test functions.
2237 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
2239         PR tree-optimization/77536
2240         PR rtl-optimization/68212
2241         * config/rs6000/rs6000.md (div->recip splitter): Remove
2242         optimize_insn_for_speed_p condition.
2244 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
2246         * optabs.c (prepare_cmp_insn): Update documentation comment.
2248 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
2249             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2251         PR middle-end/77475
2252         * opts.h (candidates_list_and_hint): Declare.
2253         * opts-common.c (candidates_list_and_hint): New function.
2254         (cmdline_handle_error): Use it.
2256 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
2258         * edit-context.c (edited_line::get_len): New accessor.
2259         (edited_file::print_diff): Split out hunk-printing into...
2260         (edited_file::print_diff_hunk): New method.
2261         (edited_file::print_diff_line): New method.
2263 2016-09-12  Andrew Pinski  <apinski@cavium.com>
2265         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
2266         New tuning option.
2267         * config/aarch64/aarch64.c (thunderx_tunings): Enable
2268         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
2269         (aarch64_operands_ok_for_ldpstp): Return false if
2270         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
2271         was SImode and the alignment is less than 8 byte.
2272         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
2274 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
2276         PR target/77570
2277         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
2279 2016-09-12  Marek Polacek  <polacek@redhat.com>
2281         * doc/extend.texi: Use lowercase "boolean".
2282         * doc/invoke.texi: Likewise.
2283         * doc/md.texi: Likewise.
2284         * target.def: Likewise.
2285         * doc/tm.texi: Regenerated.
2287 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2289         PR middle-end/77426
2290         * expmed.c (synth_mult): Delete duplicate mode check.
2292 2016-09-10  Tom de Vries  <tom@codesourcery.com>
2294         PR C/71602
2295         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
2296         va_list type only.
2297         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
2298         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
2300 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
2302         PR rtl-optimization/77289
2303         * lra-constraints.c (get_final_hard_regno): Add support for non hard
2304         register numbers.  Remove support for subregs.
2305         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
2306         (get_reg_class): Delete removed get_final_hard_regno() argument.
2307         (uses_hard_regs_p): Call get_final_hard_regno().
2309 2016-09-09  Martin Sebor  <msebor@redhat.com>
2311         PR c/77520
2312         PR c/77521
2313         * pretty-print.c (pp_quoted_string): New function.
2314         (pp_format): Call it for %c and %s directives.
2316 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2318         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
2319         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
2320         INITIAL_ELIMINATION_OFFSET) : Update documentation.
2321         * target.def (frame_pointer_required, can_eliminate): Likewise.
2322         * doc/tm.texi: Regenerated.
2323         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
2324         ELIMINABLE_REGS.
2325         * df-scan.c (df_hard_reg_init): Likewise.
2326         * ira.c (ira_setup_eliminable_regset): Likewise.
2327         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
2328         init_elim_table): Likewise.
2329         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
2330         set_initial_elim_offsets, update_eliminables,
2331         init_elim_table): Likewise.
2332         * rtlanal.c (get_initial_register_offset): Likewise.
2333         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
2334         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2335         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2336         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
2337         * config/fr30/fr30.h: Fix comment.
2338         * config/frv/frv.c: Likewise.
2339         * config/frv/frv.h: Likewise.
2340         * config/ft32/ft32.h: Likewise.
2341         * config/visium/visium.h: Likewise.
2342         * config/pa/pa64-linux.h: Likewise.
2343         * config/v850/v850.h: Likewise.
2344         * config/cris/cris.c: Likewise.
2345         * config/ia64/ia64.h: Likewise.
2346         * config/moxie/moxie.h: Likewise.
2347         * config/m32r/m32r.h: Likewise.
2349 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2351         PR target/77267
2352         * config.in: Regenerate.
2353         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
2354         New macro.
2355         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
2356         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
2357         static-libmpxwrappers case.
2358         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
2359         MPX_LD_AS_NEEDED_GUARD_POP.
2360         * configure: Regenerate.
2361         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
2362         defined if linker support "--push-state"/"--pop-state".
2364 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2366         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
2368 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
2370         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
2371         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
2372         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
2373         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
2374         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
2375         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
2376         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
2377         Document.
2378         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
2379         width macros from TS 18661-1.
2380         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
2382 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
2384         PR fortran/77516
2385         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
2386         OMP_CLAUSE_SAFELEN_EXPR.
2388 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
2390         * Makefile.in (OBJS): Add substring-locations.o.
2391         * langhooks-def.h (class substring_loc): New forward decl.
2392         (lhd_get_substring_location): New decl.
2393         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
2394         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
2395         * langhooks.c (lhd_get_substring_location): New function.
2396         * langhooks.h (class substring_loc): New forward decl.
2397         (struct lang_hooks): Add field get_substring_location.
2398         * substring-locations.c: New file, taking definition of
2399         format_warning_va and format_warning_at_substring from
2400         c-family/c-format.c, making them non-static.
2401         * substring-locations.h (class substring_loc): Move class here
2402         from c-family/c-common.h.  Add and rewrite comments.
2403         (format_warning_va): New decl.
2404         (format_warning_at_substring): New decl.
2405         (get_source_location_for_substring): Add comment.
2407 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
2409         * config/i386/i386.c: Add 'U' suffix to processor feature bits
2410         to avoid -Wnarrowing warning.
2411         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
2412         * opts.c: Likewise for SANITIZER_OPT bitmasks.
2414 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
2416         * config/aarch64/aarch64.c (aarch64_legitimize_address):
2417         Avoid use of base_offset if offset already in range.
2419 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
2421         * config/sh/sh-protos.h (struct sh_atomic_model,
2422         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2423         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2424         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
2425         * config/sh/sh.h (struct sh_atomic_model,
2426         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
2427         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
2428         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
2429         Guard with __cplusplus.
2431 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
2433         PR target/69255
2434         * config/i386/i386.c (ix86_expand_builtin): For builtin with
2435         unsupported or unknown ISA, use expand_call.
2437 2016-09-06  Martin Liska  <mliska@suse.cz>
2439         PR gcov-profile/77378
2440         PR gcov-profile/77466
2441         * tree-profile.c (tree_profiling): Detect whether target can use
2442         -fprofile-update=atomic.
2444 2016-09-06  Richard Biener  <rguenther@suse.de>
2446         PR tree-optimization/77479
2447         * tree-vrp.c (update_value_range): Extend overflow handling to
2448         VARYING.
2450 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2452         PR target/77476
2453         * config/i386/i386.md (isa): Add x64_avx512bw.
2454         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
2455         (kmov_isa): New mode attr.
2456         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
2457         (*zero_extend<mode>si2): Likewise.
2458         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
2460 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
2462         * doc/invoke.texi (SPU Options): nops -> NOPs.
2463         (x86 Options): Ditto.
2465 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2467         PR middle-end/77475
2468         * toplev.c (process_options): Temporarily set input_location
2469         to UNKNOWN_LOCATION around targetm.target_option.override () call.
2471 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
2473         PR rtl-optimization/77452
2474         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
2475         inner-mode reference to a CONST_VECTOR constant in the constant pool.
2477 2016-09-05  Marek Polacek  <polacek@redhat.com>
2479         PR c/77423
2480         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
2482 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
2484         PR other/77421
2485         * gensupport.c (alter_output_for_subst_insn): Remove redundant
2486         *insn_out == '*' test.  Don't copy unnecessary to yet another
2487         memory buffer, and don't leak it.
2489         PR rtl-optimization/77425
2490         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
2492 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
2494         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
2496 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2498         * common.opt (fdiagnostics-generate-patch): New option.
2499         * diagnostic.c: Include "edit-context.h".
2500         (diagnostic_initialize): Initialize context->edit_context_ptr.
2501         (diagnostic_finish): Delete context->edit_context_ptr.
2502         (diagnostic_report_diagnostic): Add fix-it hints from the
2503         diagnostic to context->edit_context_ptr, if any.
2504         * diagnostic.h (class edit_context): Add forward decl.
2505         (struct diagnostic_context): Add field "edit_context_ptr".
2506         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
2507         -fdiagnostics-generate-patch.
2508         (-fdiagnostics-generate-patch): New item.
2509         * toplev.c: Include "edit-context.h".
2510         (process_options): Set global_dc->edit_context_ptr to a new
2511         edit_context if the options need one.
2512         (toplev::main): Handle -fdiagnostics-generate-patch by using
2513         global_dc->edit_context_ptr.
2515 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2517         PR c/65467
2518         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
2519         map and firstprivate clauses on target construct for _Atomic
2520         qualified decls.
2521         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
2522         on target construct for _Atomic qualified decls.
2523         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
2524         decls.
2525         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
2526         _Atomic qualified arguments not mentioned in uniform clause.
2528 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2530         * Makefile.in (OBJS-libcommon): Add edit-context.o.
2531         * diagnostic-color.c (color_dict): Add "diff-filename",
2532         "diff-hunk", "diff-delete", and "diff-insert".
2533         (parse_gcc_colors): Update default value of GCC_COLORS in comment
2534         to reflect above changes.
2535         * doc/invoke.texi (-fdiagnostics-color): Update description of
2536         default GCC_COLORS, and of the supported capabilities.
2537         * edit-context.c: New file.
2538         * edit-context.h: New file.
2539         * input.c (struct fcache): Add field "missing_trailing_newline".
2540         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
2541         true.
2542         (add_file_to_cache_tab): Likewise.
2543         (fcache::fcache): Likewise.
2544         (get_next_line): Update c->missing_trailing_newline.
2545         (location_missing_trailing_newline): New function.
2546         * input.h (location_missing_trailing_newline): New decl.
2547         * selftest-run-tests.c (selftest::run_tests): Call
2548         edit_context_c_tests.
2549         * selftest.h (edit_context_c_tests): New decl.
2551 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2552             Richard Biener  <rguenth@suse.de>
2554         PR tree-optimization/77444
2555         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
2556         as steptype, remove redundant initialization.
2558 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2560         PR sanitizer/77396
2561         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
2562         (sanopt_optimize_walker): Optimize away
2563         __asan_before_dynamic_init (...) followed by
2564         __asan_after_dynamic_init () without intervening memory loads/stores.
2565         * ipa-pure-const.c (special_builtin_state): Handle
2566         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
2567         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
2569 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2571         * cfg.c (free_original_copy_tables): Replace second assignment of
2572         bb_copy = NULL by bb_original = NULL. 
2574 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
2576         PR other/77421
2577         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
2578         assignment added in r216794.
2580 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
2582         * Makefile.in (OBJS): Add typed-splay-tree.o.
2583         * selftest-run-tests.c (selftest::run_tests): Call
2584         typed_splay_tree_c_tests.
2585         * selftest.h (typed_splay_tree_c_tests): New decl.
2586         * typed-splay-tree.c: New file.
2587         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
2588         (typed_splay_tree::max): New method.
2589         (typed_splay_tree::min): New method.
2590         (typed_splay_tree::foreach): New method.
2591         (typed_splay_tree::closure): New struct.
2592         (typed_splay_tree::inner_foreach_fn): New function.
2594 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2596         * ipa-cp.c (ipcp_store_bits_results): Change option name from
2597         -fipa-cp-bit to -fipa-bit-cp.
2599 2016-09-01  Martin Sebor  <msebor@redhat.com>
2601         PR tree-optimization/71831
2602         * tree-object-size.h: Return bool instead of the size and add
2603         argument for the size.
2604         * tree-object-size.c (compute_object_offset): Update signature.
2605         (addr_object_size): Same.
2606         (compute_builtin_object_size): Return bool instead of the size
2607         and add argument for the size.  Handle POINTER_PLUS_EXPR when
2608         optimization is disabled.
2609         (expr_object_size): Adjust.
2610         (plus_stmt_object_size): Adjust.
2611         (pass_object_sizes::execute): Adjust.
2612         * builtins.c (fold_builtin_object_size): Adjust.
2613         * doc/extend.texi (Object Size Checking): Update.
2614         * ubsan.c (instrument_object_size): Adjust.
2616 2016-09-01  Martin Sebor  <msebor@redhat.com>
2618         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
2619         it fits the output of the formatted function regardless of its
2620         arguments.
2621         * gcc/genmodes.c (parser::parse_expr): Same.
2622         * gimplify.c (gimplify_asm_expr): Same.
2623         * passes.c (pass_manager::register_one_dump_file): Same.
2624         * print-tree.c (print_node): Same.
2626 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2628         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
2630 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2632         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
2634 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2636         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
2637         * config/rs6000/vector.md: Ditto.
2638         * config/rs6000/vsx.md: Ditto.
2640 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2642         * ipa-inline-analysis.c (param_change_prob): Get to the base object
2643         first in all cases.
2645 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2647         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
2648         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
2649         *return_and_restore_gpregs_<mode>_r11,
2650         *return_and_restore_gpregs_<mode>_r12,
2651         *return_and_restore_gpregs_<mode>_r1,
2652         *return_and_restore_fpregs_<mode>_r11,
2653         *return_and_restore_fpregs_<mode>_r12,
2654         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
2655         directly instead of via the "l" constraint.  Renumber operands.
2656         Fix whitespace.
2658 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2660         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
2661         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
2662         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
2663         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
2664         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
2665         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
2666         *call_value_nonlocal_darwin64, reload_macho_picbase,
2667         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
2668         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
2669         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
2670         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
2671         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
2672         *save_fpregs_<mode>_r1): Ditto.
2673         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
2674         *return_and_restore_gpregs_spe): Ditto.
2676 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
2678         * config/rs6000/rs6000.md
2679         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
2680         the use of the link register.
2681         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
2683 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2684             Michael Meissner  <meissner@linux.vnet.ibm.com>
2686         PR target/72827
2687         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
2688         reg+reg addressing for TImode.
2689         (rs6000_legitimate_address_p): Only allow register indirect
2690         addressing for TImode, even without TARGET_QUAD_MEMORY.
2692 2016-09-01  Richard Biener  <rguenther@suse.de>
2694         PR middle-end/77436
2695         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
2696         check whether the result fits the desired result type.
2698 2016-09-01  Nathan Sidwell  <nathan@acm.org>
2700         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
2702 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
2704         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
2705         New function.
2706         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
2708 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2710         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
2711         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
2712         for comparisons of integer ZERO_EXTEND against zero.
2714 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
2716         * config/i386/i386.c (ix86_option_override_internal): Also disable the
2717         STV pass if -mstackrealign is enabled.
2719 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
2721         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
2722         AVX512IFMA.
2724 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
2726         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
2727         (layout_range::intersects_line_p): New method.
2728         (test_range_contains_point_for_single_point): Rename to...
2729         (test_layout_range_for_single_point): ...this, and add testing
2730         for layout_range::intersects_line_p.
2731         (test_range_contains_point_for_single_line): Rename to...
2732         (test_layout_range_for_single_line): ...this,  and add testing
2733         for layout_range::intersects_line_p.
2734         (test_range_contains_point_for_multiple_lines): Rename to...
2735         (test_layout_range_for_multiple_lines): ...this,  and add testing
2736         for layout_range::intersects_line_p.
2737         (layout::layout): Populate m_fixit_hints.
2738         (layout::get_expanded_location): Handle the case of a line-span
2739         for a fix-it hint.
2740         (layout::validate_fixit_hint_p): New method.
2741         (get_line_span_for_fixit_hint): New function.
2742         (layout::calculate_line_spans): Add spans for fixit-hints.
2743         (layout::should_print_annotation_line_p): New method.
2744         (layout::print_any_fixits): Drop param "richloc", instead using
2745         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
2746         (diagnostic_show_locus): Avoid printing blank annotation lines.
2747         (selftest::test_diagnostic_context::test_diagnostic_context):
2748         Initialize show_column and start_span.
2749         (selftest::test_diagnostic_context::start_span_cb): New static
2750         function.
2751         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
2752         (selftest::diagnostic_show_locus_c_tests): Update for function
2753         renamings.  Call test_diagnostic_show_locus_fixit_lines.
2755 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
2757         PR tree-optimization/73714
2758         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
2760 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
2762         * selftest.c: Move "namespace selftest {" to top of file,
2763         removing explicit "selftest::" qualifiers throughout.
2765 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
2767         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
2768         New types.
2769         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
2770         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
2771         Replace builtin with vector extension.
2772         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
2773         New types.
2774         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
2775         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
2776         Replace builtin with vector extension.
2777         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
2778         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
2779         Replace builtin with vector extension.
2780         * config/i386/xmmintrin.h (__m128_u): New type.
2781         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
2782         (_mm_load_ps, _mm_store_ps): Simplify.
2784 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
2786         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
2788 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
2790         * diagnostic-show-locus.c (colorizer::begin_state): Support more
2791         than 3 ranges per diagnostic by alternating between color 1 and
2792         color 2.
2793         (layout::layout): Replace use of rich_location::MAX_RANGES
2794         with richloc->get_num_locations ().
2795         (layout::calculate_line_spans): Replace use of
2796         rich_location::MAX_RANGES with m_layout_ranges.length ().
2797         (layout::print_annotation_line): Handle arbitrary numbers of
2798         ranges in caret-printing by defaulting to '^'.
2799         (selftest::test_one_liner_many_fixits): New function.
2800         (test_diagnostic_show_locus_one_liner): Call it.
2801         * diagnostic.c (diagnostic_initialize): Update for renaming
2802         of rich_location::MAX_RANGES to
2803         rich_location::STATICALLY_ALLOCATED_RANGES.
2804         * diagnostic.h (struct diagnostic_context): Likewise.
2806 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
2808         * selftest.c (selftest::named_temp_file::named_temp_file): New
2809         ctor.
2810         (selftest::temp_source_file::~temp_source_file): Move to...
2811         (selftest::named_temp_file::~named_temp_file): ...here.
2812         (selftest::test_named_temp_file): New function.
2813         (selftest::selftest_c_tests): Call test_named_temp_file.
2814         * selftest.h (class named_temp_file): New class.
2815         (class temp_source_file): Convert to a subclass of named_temp_file.
2817 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
2819         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
2820         USEs of LR_REGNO in returns and sibcalls.
2821         (rs6000_output_mi_thunk): Similar.
2822         (rs6000_sibcall_aix): Similar.
2823         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
2824         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
2825         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
2826         Remove the USE of LR_REGNO from the patterns as well.  Delete an
2827         obsolete comment.
2828         (return_internal_<mode>): Delete.
2830 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
2832         * gcc/config/aarch64/aarch64-simd.md
2833         (aarch64_ld2<mode>_dreg_le): New.
2834         (aarch64_ld2<mode>_dreg_be): New.
2835         (aarch64_ld2<mode>_dreg): Removed.
2836         (aarch64_ld3<mode>_dreg_le): New.
2837         (aarch64_ld3<mode>_dreg_be): New.
2838         (aarch64_ld3<mode>_dreg): Removed.
2839         (aarch64_ld4<mode>_dreg_le): New.
2840         (aarch64_ld4<mode>_dreg_be): New.
2841         (aarch64_ld4<mode>_dreg): Removed.
2842         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
2844 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
2846         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
2847         redundant location param.
2848         (test_one_liner_fixit_remove): Likewise.
2849         (test_one_liner_fixit_replace): Likewise.
2850         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
2851         * gcc-rich-location.c
2852         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
2853         get_range_from_loc.  Drop overload taking a const char *.
2854         * gcc-rich-location.h
2855         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
2856         a const char *.
2858 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2860         * config/linux.c (linux_libc_has_function): Return true on musl.
2862 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2864         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
2866 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
2868         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
2869         used for abnormal egdes.
2871 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
2873         PR tree-optimization/72866
2874         * tree-vect-patterns.c (search_type_for_mask): Turn into
2875         a small wrapper, move all code to ...
2876         (search_type_for_mask_1): ... this new function.  Add caching
2877         and adjust recursive calls.
2879         PR debug/77363
2880         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
2881         instead of lookup_type_die (type_main_variant (type)) even for array
2882         types.
2884         PR middle-end/77377
2885         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
2886         constant pool reference return x instead of c.
2888 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
2890         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
2891         include MQ.
2893 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2895         * input.c
2896         (selftest::test_make_location_nonpure_range_endpoints): Fix
2897         header comment.
2899 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2901         * diagnostic-show-locus.c
2902         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
2903         function.
2904         (selftest::test_diagnostic_show_locus_one_liner): Call it.
2905         * input.c (get_pure_location): Move to libcpp/line-map.c.
2906         * input.h (get_pure_location): Convert decl to an inline function
2907         calling implementation in libcpp.
2909 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
2911         PR target/77403
2912         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
2913         template for intel asm dialect.
2914         (vec_set_hi_<mode><mask_name>): Ditto.
2916 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2918         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
2919         (selftest::fail_formatted): Likewise.
2921 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
2923         * input.c (make_location): Call get_start and get_finish
2924         on the endpoints to avoid storing packed ranges or ad-hoc
2925         ranges in them.
2926         (selftest::test_make_location_nonpure_range_endpoints): New function.
2927         (selftest::input_c_tests): Call it.
2928         * input.h (get_start): New inline function.
2930 2016-08-29  Tom de Vries  <tom@codesourcery.com>
2932         PR c/77398
2933         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
2934         with assert.
2936 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
2938         * Makefile.in (gcov-iov.h): Add dummy recipe.
2940 2016-08-29  Nathan Sidwell  <nathan@acm.org>
2942         * config/nvptx/nvptx.c: #include tree-vrp.h.
2944 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
2946         PR target/77324
2947         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
2948         HIGH+LO construct during reload.
2950 2016-08-28  Tom de Vries  <tom@codesourcery.com>
2952         PR lto/70955
2953         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
2954         'sysv_abi va_list' attribute.
2955         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
2956         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
2957         attributes.
2959 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2961         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
2962         * emit-rtl.c (unshare_all_rtl_1): Adjust.
2963         (unshare_all_rtl_again): Likewise.
2964         * function.c (assign_stack_local_1): Likewise.
2965         (assign_stack_temp_for_type): Likewise.
2967 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2969         * cfgbuild.c (make_edges): Adjust.
2970         * cfgrtl.c (can_delete_label_p): Likewise.
2971         * dwarf2cfi.c (create_trace_edges): Likewise.
2972         * except.c (sjlj_emit_dispatch_table): Likewise.
2973         * function.h (struct expr_status): make x_forced_labels a vector.
2974         * jump.c (rebuild_jump_labels_1): Adjust.
2975         * reload1.c (set_initial_label_offsets): Likewise.
2976         * stmt.c (force_label_rtx): Likewise.
2977         (expand_label): Likewise.
2979 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2981         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
2983 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
2985         PR tree-optimization/71077
2986         PR tree-optimization/68542
2987         * fold-const.c (fold_relational_const): Fix folding of
2988         VECTOR_CST comparisons that have a scalar boolean result type.
2989         (selftest::test_vector_folding): New static function.
2990         (selftest::fold_const_c_tests): Call it.
2992 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
2994         * doc/extend.texi (SPU Built-in Functions): Remove stale
2995         references to material formerly at IBM and Sony.
2997 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
2999         PR target/77349
3000         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
3002 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3004         * diagnostic-show-locus.c
3005         (selftest::test_fixit_consolidation): New function.
3006         (selftest::diagnostic_show_locus_c_tests): Call it.
3007         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
3008         constructor based on source_range.
3010 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
3012         * diagnostic-color.c (color_dict): Add "fixit-insert" and
3013         "fixit-delete".
3014         (parse_gcc_colors): Update description of default GCC_COLORS.
3015         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
3016         (colorizer::set_fixit_insert): New method.
3017         (colorizer::set_fixit_delete): New method.
3018         (colorizer::get_color_by_name): New method.
3019         (colorizer::STATE_FIXIT_INSERT): New constant.
3020         (colorizer::STATE_FIXIT_DELETE): New constant.
3021         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
3022         fields in favor of new field "m_stop_color".  Add fields
3023         "m_fixit_insert" and "m_fixit_delete".
3024         (colorizer::colorizer): Update for above changes.  Replace
3025         colorize_start calls with calls to get_color_by_name.
3026         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
3027         STATE_FIXIT_DELETE.  Update for field renamings.
3028         (colorizer::finish_state): Simplify by using m_stop_color,
3029         rather than multiple identical "*_ce" fields.
3030         (colorizer::get_color_by_name): New method.
3031         (layout::print_any_fixits): Print insertions and replacements
3032         using the "fixit-insert" color, and deletions using the
3033         "fixit-delete" color.
3034         * doc/invoke.texi (-fdiagnostics-color): Update description of
3035         default GCC_COLORS, and of the supported capabilities.
3037 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
3039         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
3040         current_function_static_stack_size variable with the static
3041         stack frame size of the current function when
3042         flag_stack_usage_info is enabled.
3044 2016-08-26  Nathan Sidwell  <nathan@acm.org>
3046         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
3047         assignment inside if condition.
3049 2016-08-26  Richard Biener  <rguenther@suse.de>
3051         PR tree-optimization/69047
3052         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
3053         extracts similar to what FRE does.
3054         (non_rewritable_mem_ref_base): Likewise.
3056 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
3058         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
3059         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
3060         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3061         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3062         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
3063         Likewise.
3064         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3065         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3066         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3067         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
3068         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
3070 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3072         PR target/70473
3073         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
3074         reservation duration to 15 cycles.
3075         (cortex_a8_vfp_macs): Likewise.
3076         (cortex_a8_vfp_macd): Likewise.
3077         (cortex_a8_vfp_divs): Likewise.
3078         (cortex_a8_vfp_divd): Likewise.
3080 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3082         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
3083         (aarch_macro_fusion_pair_p): Use above to avoid early return.
3085 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3086             Martin Jambhor  <mjambor@suse.cz>
3088         * common.opt: New option -fipa-bit-cp.
3089         * doc/invoke.texi: Document -fipa-bit-cp.
3090         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
3091         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
3092         * tree-ssa-ccp.h: New header file.
3093         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
3094         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
3095         Replace all occurences of tree parameter by two new params: signop, int.
3096         (bit_value_unop_1): Change to bit_value_unop and export it.
3097         Replace all occurences of tree parameter by two new params: signop,
3098         int.
3099         (bit_value_binop): Change call from bit_value_binop_1 to
3100         bit_value_binop.
3101         (bit_value_assume_aligned): Likewise.
3102         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
3103         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
3104         to ccp_finalize.
3105         (ccp_finalize): Skip processing if val->mask == 0.
3106         * ipa-cp.c: Include tree-ssa-ccp.h
3107         (ipcp_bits_lattice): New class.
3108         (ipcp_param_lattice (bits_lattice): New member.
3109         (print_all_lattices): Call ipcp_bits_lattice::print.
3110         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
3111         (initialize_node_lattices): Likewise.
3112         (propagate_bits_accross_jump_function): New function.
3113         (propagate_constants_accross_call): Call
3114         propagate_bits_accross_jump_function.
3115         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
3116         (ipcp_store_bits_results): New function.
3117         (ipcp_driver): Call ipcp_store_bits_results.
3118         * ipa-prop.h (ipa_bits): New struct.
3119         (ipa_jump_func): Add new member bits of type ipa_bits.
3120         (ipa_param_descriptor): Change decl to decl_or_type.
3121         (ipa_get_param): Change decl to decl_or_type and assert on
3122         PARM_DECL.
3123         (ipa_get_type): New function.
3124         (ipcp_transformation_summary): New member bits.
3125         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
3126         (ipa_populate_param_decls): Likewise.
3127         (ipa_dump_param): Likewise.
3128         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
3129         function.
3130         (ipa_set_jf_unknown): Set ipa_bits::known to false.
3131         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
3132         propagation.
3133         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
3134         (ipa_write_jump_function): Add streaming for ipa_bits.
3135         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
3136         (write_ipcp_transformation_info): Add streaming for ipa_bits
3137         summary for ltrans.
3138         (read_ipcp_transfomration_info): Add support for reading streamed
3139         ipa_bits.
3140         (ipcp_update_bits): New function.
3141         (ipcp_transform_function): Call ipcp_update_bits.
3143 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3145         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
3146         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
3148 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
3150         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
3152 2016-08-25  Richard Biener  <rguenther@suse.de>
3154         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
3155         Only add locations in late dwarf.
3156         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
3157         (dwarf2out_early_finish): But do it here.
3159 2016-08-24  Michael Collison  <michael.collison@linaro.org>
3160             Michael Collison  <michael.collison@arm.com>
3162         * config/arm/arm-modes.def: Add new condition code mode CC_V
3163         to represent the overflow bit.
3164         * config/arm/arm.c (maybe_get_arm_condition_code):
3165         Add support for CC_Vmode.
3166         (arm_gen_unlikely_cbranch): New function to generate common
3167         rtl conditional branches for overflow patterns.
3168         * config/arm/arm-protos.h: Add prototype for
3169         arm_gen_unlikely_cbranch.
3170         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
3171         addsi3_compareV_upper): New patterns to support signed
3172         builtin overflow add operations.
3173         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
3174         New patterns to support unsigned builtin add overflow operations.
3175         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
3176         builtin overflow subtract operations,
3177         (usubv<mode>4): New patterns to support unsigned builtin subtract
3178         overflow operations.
3179         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
3180         to support builtin overflow negate operations.
3182 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3184         Revert
3185         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3187         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3188         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3189         needed.
3191 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3193         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
3194         MULTILIB_OPTIONS should be used.  Small wording fixes.
3195         * genmultilib: Memorize set of all option combinations in
3196         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
3197         found in MULTILIB_OPTIONS by checking if option set is listed in
3198         combination_space.  Output new and existing error message to stderr.
3200 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3202         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
3203         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
3204         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
3205         (MULTILIB_REUSE): Remove reuse rules for option set including
3206         -mfpu=fp-armv8 and -mfpu=vfpv4
3208 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3210         * config/arm/t-rtems: Add vfp multilib.
3212 2016-08-23  Ian Lance Taylor  <iant@golang.org>
3214         * config/s390/s390.c (s390_asm_file_start): Call
3215         default_file_start.
3217 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3219         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
3220         initialization of all 0's to the 0 constant, instead of directly
3221         generating XOR.  Add support for V4SImode vector initialization on
3222         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
3223         initialization.  Change variables used in V4SFmode vector
3224         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
3225         any memory addresses are in index form.  Add support for using
3226         VSPLTH/VSPLTB to initialize vector short and vector char vectors
3227         with all of the same element.
3228         (regno_or_subregno): New helper function to return a register
3229         number for either REG or SUBREG.
3230         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
3231         Use regno_or_subregno where possible.
3232         (rs6000_split_v4si_init_di_reg): New helper function to build up a
3233         DImode value from two SImode values in order to generate V4SImode
3234         vector initialization on 64-bit systems with direct move.
3235         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
3236         initialization.
3237         (rtx_is_swappable_p): V4SImode vector initialization insn is not
3238         swappable.
3239         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
3240         declaration.
3241         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
3242         attributes to initialize V8HImode and V16QImode vectors with the
3243         same element.
3244         (VSX_SPLAT_COUNT): Likewise.
3245         (VSX_SPLAT_SUFFIX): Likewise.
3246         (UNSPEC_VSX_VEC_INIT): New unspec.
3247         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
3248         Allow SFmode values to come from Altivec registers.
3249         (vsx_init_v4si): New insn/split for V4SImode vector initialization
3250         on 64-bit systems with direct move.
3251         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
3252         vector initializations, to allow V4SImode vector initializations
3253         on 64-bit systems with direct move.
3254         (vsx_splat_v4si): Likewise.
3255         (vsx_splat_v4si_di): Likewise.
3256         (vsx_splat_v4sf): Likewise.
3257         (vsx_splat_v4sf_internal): Likewise.
3258         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
3259         register classes.
3260         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
3261         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
3262         initializing V8HImode and V16QImode vectors with the same
3263         element.
3264         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
3265         optimization if -maltivec=be.
3267 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
3269         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
3270         attribute for alternatives 3 and 4.
3272 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
3274         * selftest.c (selftest::assert_str_contains): New function.
3275         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
3276         * selftest.h (selftest::assert_str_contains): New decl.
3277         (ASSERT_STR_CONTAINS): New macro.
3279 2016-08-23  Richard Biener  <rguenther@suse.de>
3281         PR tree-optimization/77286
3282         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
3283         the CFG here.
3284         (vect_transform_loop): Split exit edges of loop and scalar
3285         loop if required and at the appropriate time.
3287 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3289         * explow.c (get_dynamic_stack_size): Take known alignment of stack
3290         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
3291         needed.
3292         Correct a typo in a comment.
3294 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3296         * config/s390/s390.md ("*andc_split"): New splitter for and with
3297         complement.
3299 2016-08-23  Richard Biener  <rguenther@suse.de>
3301         PR tree-optimization/27336
3302         * tree-vrp.c (infer_value_range): Handle stmts that can throw
3303         by looking for a non-EH edge.
3304         (process_assert_insertions_for): Likewise.
3306 2016-08-23  Richard Biener  <rguenther@suse.de>
3308         PR middle-end/77305
3309         * statistics.c (statistics_counter_event): Robustify against
3310         NULL current_pass.
3312 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3314         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
3315         for targets amdfam10 and barcelona.
3317 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
3319         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
3320         (zero_extend<mode>di2): Ditto.
3321         (*zero_extend<mode>si2): Ditto.
3322         (*zero_extendqihi2): Ditto.
3324 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3326         PR middle-end/77269
3327         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
3328         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
3330 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
3332         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
3333         identical consecutive elements.
3334         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
3335         the node's def stmt, avoid printing an unwanted trailing newline by
3336         replacing the call to print_gimple_stmt() with its inlined body and
3337         adjusting it to not set pp_needs_newline and to call pp_flush()
3338         instead of pp_newline_and_flush().
3340 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
3342         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
3343         (float32_type_node, float64_type_node, float32x_type_node)
3344         (float128x_type_node): New macros.
3345         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
3346         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
3347         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
3348         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
3349         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
3350         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
3351         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
3352         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
3353         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
3354         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
3355         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
3356         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
3357         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
3358         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
3359         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
3360         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
3361         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
3362         (copysign, fabs, huge_val, inf, nan, nans): Use it.
3363         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
3364         and copysign.
3365         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
3366         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
3367         * doc/extend.texi (Other Builtins): Document these built-in
3368         functions.
3369         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
3370         for nan and nans.
3372 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
3374         * doc/install.texi (Binaries): www.opencsw.org now uses https.
3376 2016-08-22  Richard Biener  <rguenther@suse.de>
3378         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
3380 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
3382         PR target/77270
3383         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
3384         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
3385         non-SSE2 athlons only, otherwise prefer SSE prefetches.
3387 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3389         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
3390         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
3391         (vrp_visit_switch_stmt): Likewise.
3392         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
3393         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
3394         (vrp_visit_stmt): Use extract_range_from_stmt.
3395         (vrp_visit_phi_node): Use extract_range_from_phi_node.
3397 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3399         * Makefile.in: Add tree-vrp.h to GTFILES.
3400         * gengtype.c (open_base_files): Add tree-vrp.h.
3401         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
3402         * builtins.c: Likewise.
3403         * fold-const.c: Likewise.
3404         * gimple-builder.c: Likewise.
3405         * gimple-laddress.c: Likewise.
3406         * hsa-gen.c: Likewise.
3407         * internal-fn.c: Likewise.
3408         * ssa.h: Likewise.
3409         * targhooks.c: Liewise,
3410         * tree-ssa-address.c: Likewise.
3411         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
3412         * tree-vrp.c (struct value_range): Move to tree-vrp.h
3413         * tree-vrp.h: New file.
3415 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
3417         PR tree-optimization/61839
3418         * tree-vrp.c (two_valued_val_range_p): New.
3419         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
3420         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
3421         Also Convert VAR BINOP CST where VAR is two-valued to
3422         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
3424 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
3426         * diagnostic-show-locus.c
3427         (layout::annotation_line_showed_range_p): New method.
3428         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
3429         Reimplement case fixit_hint::REPLACE to cover removals, and
3430         replacements where the range of the replacement isn't one
3431         of the ranges in the rich_location.
3432         (test_one_liner_fixit_replace): Likewise.
3433         (selftest::test_one_liner_fixit_replace_non_equal_range): New
3434         function.
3435         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
3436         New function.
3437         (selftest::test_diagnostic_show_locus_one_liner): Call the new
3438         functions.
3439         * diagnostic.c (print_parseable_fixits): Remove case
3440         fixit_hint::REMOVE.
3442 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
3444         PR target/77270
3445         * config/i386/i386.c (ix86_option_override_internal): Remove
3446         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
3447         Enable SSE prefetch also for TARGET_PREFETCHWT1.
3448         Do not try to enable TARGET_PRFCHW ISA flag here.
3449         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
3450         Rewrite expander function body.
3451         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
3453 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
3455         PR c/32187
3456         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
3457         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
3458         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
3459         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
3460         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
3461         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
3462         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
3463         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
3464         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
3465         tree_index values.
3466         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
3467         macros.
3468         (struct floatn_type_info): New structure type.
3469         (floatn_nx_types): New variable declaration.
3470         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
3471         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
3472         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
3473         * tree.c (floatn_nx_types): New variable.
3474         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
3475         corresponding complex types.
3476         * target.def (floatn_mode): New hook.
3477         * targhooks.c: Include "real.h".
3478         (default_floatn_mode): New function.
3479         * targhooks.h (default_floatn_mode): New prototype.
3480         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
3481         types.
3482         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
3483         effective-target and dg-add-options keywords.
3484         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
3485         Document new effective-target keywords.
3486         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
3487         * doc/tm.texi: Regenerate.
3488         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
3489         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
3490         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
3491         18661-3.
3492         * real.h (struct real_format): Add field ieee_bits.
3493         * real.c (ieee_single_format, mips_single_format)
3494         (motorola_single_format, spu_single_format, ieee_double_format)
3495         (mips_double_format, motorola_double_format)
3496         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
3497         (ieee_extended_intel_128_format)
3498         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
3499         (mips_extended_format, ieee_quad_format, mips_quad_format)
3500         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
3501         (decimal_double_format, decimal_quad_format, ieee_half_format)
3502         (arm_half_format, real_internal_format: Initialize ieee_bits
3503         field.
3504         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
3505         float128_type_node.  Set float80_type_node to float64x_type_node
3506         if appropriate and long_double_type_node not appropriate.
3507         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
3508         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
3509         Initialize ieee_bits field.
3510         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
3511         (rs6000_init_builtins): Set ieee128_float_type_node to
3512         float128_type_node.
3513         (rs6000_floatn_mode): New function.
3515 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
3517         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
3518         _rdseed64_step): Uglify argument names and/or local variable names
3519         in inline functions.
3520         * config/i386/rtmintrin.h (_xabort): Likewise.
3521         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
3522         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
3523         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
3524         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
3525         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
3526         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
3527         _mm_maskz_ternarylogic_epi32): Likewise.
3528         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
3529         __lwpins32, __lwpins64): Likewise.
3530         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
3531         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
3532         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
3533         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
3534         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
3535         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
3536         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
3537         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
3538         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
3539         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
3540         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
3541         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
3542         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
3543         _mm256_mask_i64gather_epi32): Likewise.
3544         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3545         * config/i386/ia32intrin.h (__writeeflags): Likewise.
3546         * config/i386/pkuintrin.h (_wrpkru): Likewise.
3547         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
3548         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
3549         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
3550         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
3551         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
3552         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
3553         _mm512_mask_prefetch_i64scatter_ps): Likewise.
3554         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
3555         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
3556         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
3557         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
3558         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
3559         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
3560         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
3561         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
3563         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
3564         returning void.
3565         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
3566         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
3567         Likewise.
3568         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
3569         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
3570         function name.
3571         (_rdpkru_u32): Add space after function name.
3573         * config/i386/t-i386 (i386-c.o): Don't depend on
3574         i386-builtin-types.inc.
3575         (i386.o): Depend on i386-builtin-types.inc.
3577 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
3579         PR target/77281
3580         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
3581         Use const_vec_duplicate to check for duplicated elements.
3583 2016-08-19  Richard Biener  <rguenther@suse.de>
3585         PR tree-optimization/77290
3586         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3587         Fix flag_tree_parallelize_loops check.
3589 2016-08-19  Richard Biener  <rguenther@suse.de>
3591         * match.pd (x | 0 -> x): Add.
3593 2016-08-19  Richard Biener  <rguenther@suse.de>
3595         PR tree-optimization/77286
3596         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3597         Deal with virtual PHIs being out-of-order.
3599 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3601         * doc/invoke.texi (fverbose-asm): Note that source code lines
3602         are emitted, and provide an example.
3603         * final.c (asm_show_source): New function.
3604         (final_scan_insn): Call asm_show_source.
3606 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3608         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
3609         param with diagnostic_kind.
3610         (class colorizer): Similarly replace field m_diagnostic with
3611         m_diagnostic_kind.
3612         (colorizer::colorizer): Replace diagnostic
3613         param with diagnostic_kind.
3614         (colorizer::begin_state): Update for above field change.
3615         (layout::layout): Replace diagnostic param with rich_location *
3616         and diagnostic_kind.
3617         (diagnostic_show_locus): Replace diagnostic param with richloc
3618         and diagnostic_kind.
3619         (class selftest::test_diagnostic_context): New class.
3620         (selftest::test_diagnostic_show_locus_unknown_location): New
3621         function.
3622         (selftest::test_one_liner_simple_caret): New function.
3623         (selftest::test_one_liner_caret_and_range): New function.
3624         (selftest::test_one_liner_multiple_carets_and_ranges): New
3625         function.
3626         (selftest::test_one_liner_fixit_remove): New function.
3627         (selftest::test_one_liner_fixit_replace): New function.
3628         (selftest::test_diagnostic_show_locus_one_liner): New function.
3629         (selftest::diagnostic_show_locus_c_tests): Call the new test
3630         functions.
3631         * diagnostic.c (diagnostic_initialize): Initialize
3632         colorize_source_p, show_ruler_p and parseable_fixits_p.
3633         (default_diagnostic_finalizer): Update for change to
3634         diagnostic_show_locus.
3635         (diagnostic_append_note): Likewise.
3636         * diagnostic.h (diagnostic_show_locus): Replace
3637         const diagnostic_info * param with location * and diagnostic_t.
3639 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3641         * input.c (saved_line_table): New global.
3642         (class selftest::temp_line_table): Rename to line_table_test and
3643         move declaration to selftest.h, and drop field m_old_line_table.
3644         (selftest::temp_line_table::temp_line_table): Rename ctor to...
3645         (selftest::line_table_test::line_table_test): ...this.  Add a
3646         default ctor.  Store current value of line_table within
3647         saved_line_table.
3648         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
3649         (selftest::line_table_test::~line_table_test): ...this, and
3650         restore line_table from the saved_line_table, rather than
3651         m_old_line_table.
3652         (selftest::test_accessing_ordinary_linemaps): Update for above
3653         renaming.
3654         (selftest::test_lexer): Likewise.
3655         (struct selftest::lexer_test): Likewise.
3656         (selftest::lexer_test::lexer_test): Likewise.
3657         (selftest::input_c_tests): Move the looping over test cases from
3658         here into...
3659         (selftest::for_each_line_table_case): New function.
3660         * input.h (saved_line_table): New decl.
3661         * selftest.h (struct selftest::line_table_case): New forward decl.
3662         (class selftest::line_table_test): New class, moved here from
3663         selftest::temp_line_table in input.c, and renamed.
3664         (selftest::for_each_line_table_case): New decl.
3666 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
3668         PR target/72839
3669         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
3671 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
3673         PR middle-end/70895
3674         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
3675         enclosing parallel construct for reduction variables on OpenACC loop
3676         directives.
3678 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
3680         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
3681         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
3682         -gdwarf-3.
3683         (function_to_dwarf_procedure): Update comment.
3685 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
3687         * input.c (diagnostics_file_cache_forcibly_evict_file): New
3688         function.
3689         * input.h (diagnostics_file_cache_forcibly_evict_file): New
3690         declaration.
3691         * selftest.c (selftest::temp_source_file::~temp_source_file):
3692         Evict m_filename from the diagnostic file cache.
3694 2016-08-18  Richard Biener  <rguenther@suse.de>
3696         * tree-pass.h (make_pass_materialize_all_clones): Declare.
3697         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
3698         make_pass_materialize_all_clones): New simple IPA pass encapsulating
3699         clone materialization.
3700         * passes.def (all_late_ipa_passes): Start with
3701         pass_materialize_all_clones.
3702         * cgraphunit.c (symbol_table::compile): Remove call to
3703         materialize_all_clones.
3704         * tree-into-ssa.c: Include statistics.h.
3705         (update_ssa): Count number of times we do incremental/rewrite
3706         SSA update.
3708 2016-08-18  Richard Biener  <rguenther@suse.de>
3710         PR tree-optimization/77282
3711         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3712         When doing auto-parallelizing also prevent use of PHIs that
3713         carry dependences across loop backedges.
3715 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
3716             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3718         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
3720 2016-08-18  Richard Biener  <rguenther@suse.de>
3722         * ssa-iterators.h (ssa_vuse_operand): New inline.
3723         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
3724         (predicate_all_scalar_phis): Use remove_phi_node to remove
3725         phi nodes predicated.  Delay removing virtual PHIs.
3726         (predicate_mem_writes): Update virtual operands.
3727         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
3728         (tree_if_conversion): Do not rewrite virtual SSA form.
3729         * tree-phinodes.c (release_phi_node): Make static.
3730         * tree-phinodes.h (release_phi_node): Remove.
3732 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
3734         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
3735         codes that appear in bdesc_* arrays, instead include i386-builtin.def
3736         twice to define those.
3737         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
3738         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
3739         bdesc_multi_arg): Define by including i386-builtin.def the third time.
3740         * config/i386/i386-builtin.def: New file.
3742 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
3744         * input.c (get_source_range_for_char): Rename to...
3745         (selftest::get_source_range_for_char): ...this, and move within
3746         the #if CHECKING_P guard.
3747         (get_num_source_ranges_for_substring): Rename to...
3748         (selftest::get_num_source_ranges_for_substring): ...this, move
3749         within the #if CHECKING_P guard, and make static.
3750         (selftest::assert_num_substring_ranges): Initialize
3751         actual_num_ranges.
3753 2016-08-18  Alan Modra  <amodra@gmail.com>
3755         PR rtl-optimization/72771
3756         * reload.c (find_reloads): Don't assume that a subreg mem is OK
3757         when find_reloads_toplev returns address_reloaded==-1.
3758         (alternative_allows_const_pool_ref): Update comment.
3760 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
3762         PR tree-optimization/71752
3763         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
3764         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
3766 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
3768         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
3769         instead of testing ECF_NORETURN bit in gimple_call_flags.
3770         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
3771         * predict.c (tree_bb_level_predictions): Likewise.
3772         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
3774         PR middle-end/77259
3775         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
3776         turning a call into __builtin_unreachable-like noreturn call, adjust
3777         gimple_call_set_fntype.
3778         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
3779         gimple_call_fntype has void return type.
3781 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
3783         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
3784         maybe_lookup_decl, to handle nested acc loop directives.
3786 2016-08-17  Richard Biener  <rguenther@suse.de>
3788         PR tree-optimization/76490
3789         * tree-vrp.c (update_value_range): Preserve overflow infinities
3790         when intersecting with ranges from get_range_info.
3791         (operand_less_p): Handle overflow infinities correctly.
3792         (value_range_constant_singleton): Use vrp_operand_equal_p
3793         to handle overflow max/min correctly.
3794         (vrp_valueize): Likewise.
3795         (union_ranges): Likewise.
3796         (intersect_ranges): Likewise.
3797         (vrp_visit_phi_node): Improve iteration limitation to only
3798         apply when we'll possibly re-visit the PHI via a changed argument
3799         on the backedge.
3801 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3803         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
3804         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
3805         rather than those that should not be built.
3807 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
3809         PR target/66488
3810         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
3812 2016-08-17  Richard Biener  <rguenther@suse.de>
3814         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
3815         (verify_vssa): New function verifying virtual SSA form.
3816         (verify_ssa): Call it.
3817         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
3818         Do not apply loop-closed SSA handling to virtuals.
3819         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
3820         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
3821         when rewriting their symbol.
3822         (prepare_def_site_for): Likewise.
3823         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
3824         operands of moved stmts.
3826 2016-08-17  Richard Biener  <rguenther@suse.de>
3828         PR tree-optimization/23855
3829         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
3830         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
3831         find guards to hoist.  Do not update SSA form but rewrite virtuals
3832         into loop closed SSA.
3833         (find_loop_guard): Adjust to skip already hoisted guards.  Do
3834         not mark virtuals for renaming or update SSA form.
3836 2016-08-17  Martin Liska  <mliska@suse.cz>
3838         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
3839         a LONG_LONG_TYPE_SIZE comparison.
3840         * gcov-io.h: Remove macro definitions.
3841         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
3842         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
3843         comparison.
3845 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
3847         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
3848         that builtins not mentioned in bdesc_* arrays come first, then
3849         the ones mentioned in bdesc_* arrays in the order they appear in
3850         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
3851         IX86_BUILTIN__BDESC_*_LAST enumerator.
3852         (bdesc_mpx): Fix up a comment typo.
3853         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
3854         __builtin_ia32_vpcomneu[bwdq] builtins.
3855         (BDESC_VERIFY, BDESC_VERIFYS): Define.
3856         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
3857         enum ix86_builtins ordering.
3858         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
3859         for direct bdesc_* array member access instead of searching all the
3860         arrays until an fcode match is found.
3862 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
3864         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
3865         pattern as define_insn_and_split.  Split insn before reload to
3866         ashl<mode>3_1.
3867         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
3868         <shift_insn><mode>3_1.
3869         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
3870         <rotate_insn><mode>3_1.
3872 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
3874         PR c/72857
3875         * input.c (get_source_range_for_substring): Rename to...
3876         (get_source_location_for_substring): ...this, adding param
3877         "caret_idx", and converting output param from source_range * to
3878         location_t *.
3879         (get_source_range_for_char): New function.
3880         (get_num_source_ranges_for_substring): Update comment to reflect
3881         above renaming.
3882         (assert_char_at_range): Update to use get_source_range_for_char
3883         rather than get_source_range_for_substring.
3884         (test_lexer_string_locations_concatenation_2): Likewise.
3885         * substring-locations.h (get_source_range_for_substring): Rename
3886         to...
3887         (get_source_location_for_substring): ...this, and adding param
3888         "caret_idx", and converting output param from source_range * to
3889         location_t *.
3891 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
3893         * input.c (class selftest::temp_source_file): Move to
3894         selftest.h.
3895         (selftest::temp_source_file::temp_source_file): Move to
3896         selftest.c.
3897         (selftest::temp_source_file::~temp_source_file): Likewise.
3898         * selftest.c (selftest::temp_source_file::temp_source_file): Move
3899         here from input.c.
3900         (selftest::temp_source_file::~temp_source_file): Likewise.
3901         * selftest.h (class selftest::temp_source_file): Move here from
3902         input.c
3904 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
3906         PR target/71910
3907         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
3908         inlining, add cgraph edge for the added __builtin_unreachable call.
3910         PR middle-end/67485
3911         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
3912         only cast it to SHWI for the final comparison.
3914 2016-08-16  Martin Liska  <mliska@suse.cz>
3916         PR gcov-profile/36412
3917         * doc/gcov.texi: Document --hash-filenames(-x).
3918         * gcov.c (print_usage): Add the option.
3919         (process_args): Process the option, sort options alphabetically.
3920         (md5sum_to_hex): New function.
3921         (make_gcov_file_name): Do the md5sum and append it to a
3922         filename.
3924 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
3926         PR tree-optimization/69848
3927         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
3928         and swtich operands to avoid additional NOT instruction.
3929         (vcond<v_cmp_mixed><mode>): Ditto.
3930         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
3932 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
3934         * doc/install.texi (*-*-solaris2*): Adjust latest change.
3936 2016-08-16  Richard Biener  <rguenther@suse.de>
3938         PR tree-optimization/76783
3939         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
3940         BB visited flags at start.
3942 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
3944         PR tree-optimization/72817
3945         PR tree-optimization/73450
3946         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
3947         multiple_of_p for adjusted IV.base.
3949 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
3951         PR target/72867
3952         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
3953         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
3954         for !flag_finite_math_only or flag_signed_zeros.
3955         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
3956         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
3957         depend on flag_finite_math_only.
3958         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
3959         New insn pattern.
3960         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
3961         (*ieee_smin<mode>3): Ditto.
3962         (*ieee_smax<mode>3): Ditto.
3963         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
3964         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
3965         flag_signed_zeros.
3966         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
3967         depend on flag_finite_math_only.
3968         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
3969         (*mmx_<code>v2sf3): Remove.
3970         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
3971         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
3972         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
3974 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
3976         PR rtl-optimization/73650
3977         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
3978         it is not a simple move.
3980 2016-08-15  Martin Liska  <mliska@suse.cz>
3982         PR driver/72765
3983         * gcc.c (do_spec_1): Call save_string with the right size.
3984         (save_string): Do an assert about string we copy.
3986 2016-08-15  Richard Biener  <rguenther@suse.de>
3988         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
3989         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
3990         TV_MACH_DEP.
3991         (pass_data_stv): Likewise.
3993 2016-08-15  Richard Biener  <rguenther@suse.de>
3995         PR tree-optimization/73434
3996         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
3997         TBAA info on the base when forwarding a non-invariant address.
3999 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
4001         * dwarf2out.c (struct checksum_attributes): Add
4002         at_string_length_bit_size and at_string_length_byte_size fields.
4003         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
4004         and DW_AT_string_length_byte_size.
4005         (die_checksum_ordered): Handle at_string_length_bit_size and
4006         at_string_length_byte_size.
4007         (gen_array_type_die): For dwarf_version >= 5 emit
4008         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4009         (adjust_string_types): For dwarf_version >= 5 remove
4010         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
4011         (resolve_addr): Likewise.
4013         PR debug/71906
4014         * dwarf2out.c (string_types): New variable.
4015         (gen_array_type_die): Change early_dwarf handling of
4016         DW_AT_string_length, create DW_OP_call4 referencing the
4017         length var temporarily.  Handle parameters that are pointers
4018         to string length.
4019         (adjust_string_types): New function.
4020         (gen_subprogram_die): Temporarily set string_types to local var,
4021         call adjust_string_types if needed.
4022         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
4023         New functions.
4024         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
4026 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4028         * doc/install.texi (*-*-solaris2*): Fix version number and document
4029         requirement on GNU make for building libjava with the Solaris linker.
4031 2016-08-15  Martin Liska  <mliska@suse.cz>
4032             Jakub Jelinek  <jakub@redhat.com>
4034         PR tree-optimization/72824
4035         * tree-loop-distribution.c (const_with_all_bytes_same)
4036         <case VECTOR_CST>: Fix a typo.
4038 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
4040         PR target/76342
4041         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
4042         Renamed from _mm512_undefined_si512.
4043         (_mm_undefined_si512): New definition.
4045 2016-08-13  Richard Biener  <rguenther@suse.de>
4047         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
4048         into PHIs and update the lattice for its def.
4050 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4052         PR c/71512
4053         * ubsan.c (instrument_si_overflow): Pass true instead of false
4054         to gsi_replace.
4055         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
4056         of bbs.  Return TODO_cleanup_cfg if any returned true.
4058 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4060         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
4061         ISA 3.0 MTVSRDD instruction.
4062         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
4063         vecperm.
4065 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4067         PR tree-optimization/71083
4068         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
4069         bitfield access when possible.
4071 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
4073         PR middle-end/71654
4074         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
4075         sign-changing cast from a shorter unsigned type to a wider
4076         signed type.
4078 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
4080         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
4081         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
4082         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
4084 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4086         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4087         Correct costs for vec_construct.
4089 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
4091         PR tree-optimization/69848
4092         * tree-vectorizer.h (enum vect_def_type): New condition reduction
4093         type CONST_COND_REDUCTION.
4094         * tree-vect-loop.c (vectorizable_reduction): Support new condition
4095         reudction type CONST_COND_REDUCTION.
4097 2016-08-12  Richard Biener  <rguenther@suse.de>
4099         PR tree-optimization/57326
4100         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
4101         returning an SSA name.
4102         (phi_translate_1): When fully_constant_expression returns a NAME
4103         make sure we have a leader for it.
4105 2016-08-12  Martin Liska  <mliska@suse.cz>
4106             Adam Fineman  <afineman@afineman.com>
4108         * gcov.c (process_file): Create .gcov file when .gcda
4109         file is missing.
4111 2016-08-12  Marek Polacek  <polacek@redhat.com>
4113         PR c/7652
4114         * alias.c (find_base_value): Adjust fall through comment.
4115         * cfgexpand.c (expand_debug_expr): Likewise.
4116         * combine.c (find_split_point): Likewise.
4117         (expand_compound_operation): Likewise.  Add FALLTHRU.
4118         (make_compound_operation): Adjust fall through comment.
4119         (canon_reg_for_combine): Add FALLTHRU.
4120         (force_to_mode): Adjust fall through comment.
4121         (simplify_shift_const_1): Likewise.
4122         (simplify_comparison): Likewise.
4123         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
4124         FALLTHRU.
4125         * config/aarch64/predicates.md: Likewise.
4126         * config/i386/i386.c (function_arg_advance_32): Likewise.
4127         (ix86_gimplify_va_arg): Likewise.
4128         (print_reg): Likewise.
4129         (ix86_print_operand): Likewise.
4130         (ix86_build_const_vector): Likewise.
4131         (ix86_expand_branch): Likewise.
4132         (ix86_sched_init_global): Adjust fall through comment.
4133         (ix86_expand_args_builtin): Add FALLTHRU.
4134         (ix86_expand_builtin): Likewise.
4135         (ix86_expand_vector_init_one_var): Likewise.
4136         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
4137         (rs6000_adjust_cost): Likewise.
4138         (insn_must_be_first_in_group): Likewise.
4139         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
4140         * dbxout.c (dbxout_symbol): Adjust fall through comment.
4141         * df-scan.c (df_uses_record): Likewise.
4142         * dojump.c (do_jump): Add FALLTHRU.
4143         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
4144         comment.
4145         (resolve_args_picking_1): Adjust fall through comment.
4146         (loc_list_from_tree_1): Likewise.
4147         * expmed.c (make_tree): Likewise.
4148         * expr.c (expand_expr_real_2): Add FALLTHRU.
4149         (expand_expr_real_1): Likewise.  Adjust fall through comment.
4150         * fold-const.c (const_binop): Adjust fall through comment.
4151         (fold_truth_not_expr): Likewise.
4152         (fold_cond_expr_with_comparison): Add FALLTHRU.
4153         (fold_binary_loc): Likewise.
4154         (contains_label_1): Adjust fall through comment.
4155         (multiple_of_p): Likewise.
4156         * gcov-tool.c (process_args): Add FALLTHRU.
4157         * genattrtab.c (check_attr_test): Likewise.
4158         (write_test_expr): Likewise.
4159         * genconfig.c (walk_insn_part): Likewise.
4160         * genpreds.c (validate_exp): Adjust fall through comment.
4161         (needs_variable): Likewise.
4162         * gensupport.c (get_alternatives_number): Add FALLTHRU.
4163         (subst_dup): Likewise.
4164         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
4165         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
4166         (gimplify_scan_omp_clauses): Add FALLTHRU.
4167         (goa_stabilize_expr): Likewise.
4168         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
4169         through comment.
4170         * hsa-gen.c (get_address_from_value): Likewise.
4171         * ipa-icf.c (sem_function::hash_stmt): Likewise.
4172         * ira.c (ira_setup_alts): Add FALLTHRU.
4173         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
4174         comment.
4175         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
4176         * opts.c (common_handle_option): Likewise.
4177         * read-rtl.c (read_rtx_code): Likewise.
4178         * real.c (round_for_format): Likewise.
4179         * recog.c (asm_operand_ok): Likewise.
4180         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
4181         * reload1.c (set_label_offsets): Likewise.
4182         (eliminate_regs_1): Likewise.
4183         (reload_reg_reaches_end_p): Likewise.
4184         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
4185         (rtx_cost): Likewise.
4186         * sched-rgn.c (is_exception_free): Likewise.
4187         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
4188         * stor-layout.c (int_mode_for_mode): Likewise.
4189         * toplev.c (print_to_asm_out_file): Likewise.
4190         (print_to_stderr): Likewise.
4191         * tree-cfg.c (gimple_verify_flow_info): Likewise.
4192         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
4193         (chrec_fold_multiply): Likewise.
4194         (evolution_function_is_invariant_rec_p): Likewise.
4195         (for_each_scev_op): Likewise.
4196         * tree-data-ref.c (siv_subscript_p): Likewise.
4197         (get_references_in_stmt): Likewise.
4198         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
4199         (substitute_in_expr): Likewise.
4200         (type_cache_hasher::equal): Likewise.
4201         (walk_type_fields): Likewise.
4202         * var-tracking.c (adjust_mems): Add FALLTHRU.
4203         (set_dv_changed): Adjust fall through comment.
4204         * varasm.c (default_function_section): Add FALLTHRU.
4206 2016-08-12  Marek Polacek  <polacek@redhat.com>
4208         PR c/7652
4209         * tree-complex.c (expand_complex_division): Add missing break.
4211 2016-08-12  Richard Biener  <rguenther@suse.de>
4213         * passes.c (execute_todo): Do not push/pop TV_TODO.
4214         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
4215         (execute_one_pass): Likewise.
4216         * common.opt (ftime-report-details): New switch.
4217         * doc/invoke.texi (ftime-report-details): Document.
4218         * timevar.h (timer::print_row): Adjust signature.
4219         (timer::all_zero): New static helper.
4220         (timer::child_map_t): New typedef.
4221         (timer::time_var_def): Add children field.
4222         * timevar.c (timer::named_items::print): Adjust.
4223         (timer::~timer): Free timevar recorded children.
4224         (timer::pop_internal): When -ftime-report-details record
4225         time spent in sub-timevars.
4226         (timer::print_row): Adjust.
4227         (timer::print): Print sub-timevar stats, use all_zero.
4228         * timevar.def (TV_TODO): Remove.
4230 2016-08-12  Richard Biener  <rguenther@suse.de>
4232         PR tree-optimization/72851
4233         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
4234         worklists to use bitmaps indexed in execution order.
4235         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
4236         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
4237         (cfg_blocks): Make a bitmap.
4238         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
4239         New globals.
4240         (cfg_blocks_empty_p): Adjust.
4241         (cfg_blocks_add): Likewise.
4242         (cfg_blocks_get): Likewise.
4243         (add_ssa_edge): Likewise.
4244         (add_control_edge): Likewise.
4245         (simulate_stmt): Likewise.
4246         (process_ssa_edge_worklist): Likewise.
4247         (simulate_block): Likewise.
4248         (ssa_prop_init): Compute PRE order and stmt UIDs.
4249         (ssa_prop_fini): Adjust.
4250         (ssa_propagate): Adjust.
4252 2016-08-12  Richard Biener  <rguenther@suse.de>
4254         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
4255         the currently executable edges have fixed ranges.  Always
4256         go through update_value_range.
4258 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
4260         PR debug/63240
4261         * langhooks-def.h
4262         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
4263         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
4264         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
4265         (LANG_HOOKS_DECLS): Add it.
4266         * langhooks.h (struct lang_hooks_for_decls): Add
4267         function_decl_defaulted.  Const_tree-ify
4268         function_decl_explicit_p and function_decl_deleted_p.
4269         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
4270         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
4271         also at strict DWARF v5.
4273         PR debug/55641
4274         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
4275         TYPE_QUAL_CONST in reference-typed decls.
4277         PR debug/49366
4278         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
4279         in DW_OP_pieces, just enough to handle pointers to member
4280         functions.
4281         (gen_remaining_tmpl_value_param_die_attribute): Use a location
4282         expression on DWARFv5 if a constant value doesn't work.
4284 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
4286         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
4287         * selftest.c (selftest::test_assertions): New function.
4288         (selftest::selftest_c_tests): New function.
4289         * selftest.h (selftest::selftest_c_tests): New declaration.
4291 2016-08-11  Richard Biener  <rguenther@suse.de>
4292             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4294         PR rtl-optimization/72855
4295         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
4297 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4299         PR target/72863
4300         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
4301         (vsx_store_<mode>): Likewise.
4303 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4305         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
4306         TImode CONST_WIDE_INT store.
4307         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
4309 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
4311         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
4312         mode if unaligned SSE load and store are optimal.
4314 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4316         PR tree-optimization/71083
4317         * tree-predcom.c (ref_at_iteration): Correctly align the
4318         reference type.
4320 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4322         * config/s390/s390-builtin-types.def: Add INT128 types.
4323         * config/s390/s390-builtins.def: Add INT128 variants for the add
4324         sub low-level builtins dealing with TImode.
4325         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
4326         via subreg when expanding a builtin.
4327         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
4328         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
4329         Fix comment.
4330         * config/s390/vecintrin.h: Adjust builtin names accordingly.
4331         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
4332         ("vec_addc<mode>", "vec_addc_u128"): Merge to
4333         "vacc<bhfgq>_<mode>".
4334         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
4335         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
4336         ("vec_subc<mode>", "vec_subc_u128"): Merge to
4337         "vscbi<bhfgq>_<mode>".
4338         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
4339         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
4341 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4343         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
4345 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4347         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
4348         unused declaration.
4349         (vcond<v_cmp_mixed><mode>): Ditto.
4350         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
4352 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
4354         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
4355         variable explicitly, also assert on it before use.
4357 2016-08-11  Richard Biener  <rguenther@suse.de>
4359         PR tree-optimization/72772
4360         * cfgloopmanip.c (create_preheader): Use split_edge if there
4361         is a single loop entry, avoiding degenerate PHIs.
4363 2016-08-11  Richard Biener  <rguenther@suse.de>
4365         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
4366         unconditional TODO_cleanup_cfg.
4367         (pass_thread_jumps::execute): Initialize loops, perform a CFG
4368         cleanup only if we threaded a jump.
4370 2016-08-11  Alan Modra  <amodra@gmail.com>
4372         PR target/71680
4373         * lra-constraints.c (simplify_operand_subreg): Allow subreg
4374         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
4375         slow.  Emit two reloads for slow mem case, first loading in
4376         fast innermode, then converting to required mode.
4378 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4380         * config/rs6000/altivec.h (vec_extract_exp): New macro.
4381         (vec_extract_sig): New macro.
4382         (vec_insert_exp): New macro.
4383         (vec_test_data_class): New macro.
4384         (scalar_extract_exp): New macro.
4385         (scalar_extract_sig): New macro.
4386         (scalar_insert_exp): New macro.
4387         (scalar_test_data_class): New macro.
4388         (scalar_test_neg): New macro.
4389         (scalar_cmp_exp_gt): New macro.
4390         (scalar_cmp_exp_lt): New macro.
4391         (scalar_cmp_exp_eq): New macro.
4392         (scalar_cmp_exp_unordered): New macro.
4393         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
4394         to enforce constraint that operand is a 7-bit unsigned literal.
4395         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
4396         for power9 built-ins.
4397         (BU_P9V_VSX_2): Likewise.
4398         (BU_P9V_64BIT_VSX_2): Likewise.
4399         (VSEEDP): Add scalar extract exponent support.
4400         (VSEESP): Add scalar extract signature support.
4401         (VSTDCNDP): Add scalar test negative support.
4402         (VSTDCNSP): Likewise.
4403         (VSIEDP): Add scalar insert exponent support.
4404         (VSCEDPGT): Add scalar compare exponent greater than support.
4405         (VSCEDPLT): Add scalar compare exponent less than support.
4406         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
4407         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
4408         (VSTDCDP): Add scalar test data class support.
4409         (VSTDCSP): Likewise.
4410         (VSEEDP): Add overload support for scalar extract exponent
4411         operation.
4412         (VSESDP): Add overload support for scalar extract signature
4413         operation.
4414         (VSTDCN): Add overload support for scalar test negative
4415         operation.
4416         (VSTDCNDP): Add overload support for scalar test negative
4417         operation.
4418         (VSTDCNSP): Add overload support for scalar test negative
4419         operation.
4420         (VSIEDP): Add overload support for scalar insert exponent
4421         operation.
4422         (VSTDC): Add overload support for scalar test data class
4423         operation.
4424         (VSTDCDP): Add overload support for scalar test data class
4425         operation.
4426         (VSTDCSP): Add overload support for scalar test data class
4427         opreation.
4428         (VSCEDPGT): Add overload support for scalar compare exponent
4429         greater than operation.
4430         (VSCEDPLT): Add overload support for scalar compare exponent
4431         less than operation.
4432         (VSCEDPEQ): Add overload support for scalar compare exponent
4433         test-for-equality operation.
4434         (VSCEDPUO): Add overload support for scalar compare exponent
4435         test-for-unordered operation.
4436         (VEEDP): Add vector extract exponent support.
4437         (VEESP): Likewise.
4438         (VESDP): Add vector extract significand support.
4439         (VESSP): Likewise.
4440         (VIEDP): Add vector insert exponent support.
4441         (VIESP): Likewise.
4442         (VTDCDP): Add vector test data class support.
4443         (VTDCSP): Likewise.
4444         (VES): Add overload support for vector extract significand operation.
4445         (VESDP): Likewise.
4446         (VESSP): Likewise
4447         (VEE): Add overload support for vector extract exponent operation.
4448         (VEEDP): Likewise.
4449         (VEESP): Likewise.
4450         (VTDC): Add overload support for vector test data class operation.
4451         (VTDCDP): Likewise.
4452         (VTDCSP): Likewise.
4453         (VIE): Add overload support for vector insert exponent operation.
4454         (VIEDP): Likewise.
4455         (VIESP): Likewise.
4456         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4457         overloaded binary floating point functions.
4458         (altivec_resolve_overloaded_builtin): Improve error messages to
4459         distinguish between functions not supported in the current
4460         compiler configuration and functions that were invoked with an
4461         invalid parameter combination, and include the built-in function
4462         name in both error messages.
4463         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
4464         New prototype.
4465         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
4466         function.
4467         (rs6000_expand_binop_builtin): Add check to enforce that argument
4468         2 of the test data class operations is a 7-bit unsigned literal.
4469         (rs6000_invalid_builtin): Add code to issue an error message if a
4470         built-in function that requires the power9_vector and -m32
4471         command-line options is compiled without these options.
4472         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
4473         (UNSPEC_VSX_SXSIGDP): New value.
4474         (UNSPEC_VSX_SXSIGPDP): New value.
4475         (UNSPEC_VSX_SIEXPDP): New value.
4476         (UNSPEC_VSX_SCMPEXPDP): New value.
4477         (UNSPEC_VSX_STSTDC): New value.
4478         (UNSPEC_VSX_VXEXP): New value.
4479         (UNSPEC_VSX_VXSIG): New value.
4480         (UNSPEC_VSX_VIEXP): New value.
4481         (UNSPEC_VSX_VTSTDC): New value.
4482         (xsxexpdp): New insn for scalar extract exponent.
4483         (xsxsigdp): New insn for scalar extract significand.
4484         (xsiexpdp): New insn for scalar insert exponent.
4485         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
4486         (*xscmpexpdp): New insn for scalar compare exponents.
4487         (xststdc<Fvsx): New expansion for both single- and
4488         double-precision scalar test data class operations.
4489         (xststdcneg<Fvsx>): New expansion for both single- and
4490         double-precision scalar test for negative value operations.
4491         (*xststdc<Fvsx>): New insn for scalar test data class
4492         operation.
4493         (xvxexp<VSs>): New insn for single- and double-precision
4494         vector extract exponent operation.
4495         (xvxsig<VSs>): New insn for single- and double-precision
4496         vector extract significand operation.
4497         (xviexp<VSs>): New insn for single- and double-precision
4498         vector insert exponent operation.
4499         (xvtstdc<VSs>): New insn for single- and double-precision
4500         vector test data class operation.
4501         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4502         built-in functions to represent the Power9 binary floating-point
4503         support instructions.
4505 2016-08-10  bin cheng  <bin.cheng@arm.com>
4507         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
4509 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4510             Renlin Li  <renlin.li@arm.com>
4511             Bin Cheng  <bin.cheng@arm.com>
4513         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
4514         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
4515         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
4516         (aarch64_vcond_internal<mode><mode>): Delete pattern.
4517         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
4518         (vcond<v_cmp_result><mode>): Ditto.
4519         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
4520         (vcondu<mode><mode>): Ditto.
4521         (vcond<v_cmp_mixed><mode>): New pattern.
4522         (vcondu<mode><v_cmp_mixed>): New pattern.
4523         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
4524         of aarch64_vcond_internal.
4526 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
4527             Renlin Li  <renlin.li@arm.com>
4528             Bin Cheng  <bin.cheng@arm.com>
4530         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
4531         (vec_cmp<mode><v_cmp_result>): New pattern.
4532         (vec_cmpu<mode><mode>): New pattern.
4533         (vcond_mask_<mode><v_cmp_result>): New pattern.
4535 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
4537         PR tree-optimization/71734
4538         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
4539         REF_LOOP, invoke ref_indep_loop_p_1.
4540         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
4541         to ref_indep_loop_p.
4542         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
4543         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
4544         is inside LOOP, do not cache dpendence value for loops with
4545         non-zero SAFELEN.
4546         (ref_indep_loop_p_2): Delete function.
4547         (can_sm_ref_p): Pass LOOP as additional argument to
4548         ref_indep_loop_p.
4550 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
4552         PR target/72853
4553         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
4554         being an offsettable address.
4556 2016-08-10  Martin Liska  <mliska@suse.cz>
4558         PR gcov-profile/58306
4559         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
4560         atomic variants of profile update functions.
4562 2016-08-10  Martin Liska  <mliska@suse.cz>
4564         Cherry picked (and modified) from google-4_7 branch
4565         2012-12-26  Rong Xu  <xur@google.com>
4566         * common.opt (fprofile-update): Add new flag.
4567         * coretypes.h: Define enum profile_update.
4568         * doc/invoke.texi: Document -fprofile-update.
4569         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
4570         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
4571         * tree-profile.c (gimple_init_edge_profiler): Generate
4572         also atomic profiler update.
4573         (gimple_gen_edge_profiler): Likewise.
4575 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
4577         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
4578         stack_usage_file to NULL after fclose calls.
4580 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4582         PR target/71873
4583         * reload.c (push_reload): Compute subreg_in_class for
4584         subregs of constants and plus expressions. Remove special
4585         handling of SYMBOL_REFs.
4587 2016-08-10  Alan Modra  <amodra@gmail.com>
4589         PR target/71680
4590         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
4591         SImode for TARGET_E500_DOUBLE when given SImode.
4593 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
4595         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
4596         unused variable __O.
4598 2016-08-09  Martin Liska  <mliska@suse.cz>
4600         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
4601         _gcov_reset to __gcov_reset.
4602         * doc/gcov-tool.texi: Fix typo.
4604 2016-08-09  Martin Liska  <mliska@suse.cz>
4606         * value-prof.c (gimple_divmod_values_to_profile): Do not
4607         instrument MOD histogram if a value is not a SSA name.
4609 2016-08-09  Martin Liska  <mliska@suse.cz>
4611         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
4612         values.
4614 2016-08-09  Renlin Li  <renlin.li@arm.com>
4616         PR middle-end/64971
4617         * calls.c (prepare_call_address): Convert funexp to Pmode when
4618         necessary.
4619         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
4620         (sibcall_value): Likewise.
4622 2016-08-09  Marek Polacek  <polacek@redhat.com>
4624         PR c/7652
4625         * cselib.c (cselib_expand_value_rtx_1): Add return.
4626         * gengtype.c (dbgprint_count_type_at): Likewise.
4627         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
4628         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
4630 2016-08-09  Martin Jambor  <mjambor@suse.cz>
4632         PR ipa/71981
4633         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
4634         if instance is a MEM_REF.
4636 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
4638         PR target/72843
4639         * config/i386/i386.md (*movtf_internal): Use
4640         lra_in_progress || reload_completed instead of !can_create_pseudo_p
4641         in the insn constraint.
4642         (*movxf_internal): Ditto.
4643         (*movdf_internal): Ditto.
4644         (*movsf_internal): Ditto.
4646 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4648         PR tree-optimization/72772
4649         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
4650         for expanded base.
4652 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
4654         PR tree-optimization/72772
4655         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
4656         parameter STOP.
4657         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
4658         parameter STOP and update calls.  Move expand_simple_operations
4659         function call from here...
4660         (simplify_using_initial_conditions): ...to here.  Delete parameter
4661         STOP.
4662         (tree_simplify_using_condition): Delete parameter STOP.
4663         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
4664         simplify_using_initial_conditions.
4666 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
4668         PR c/65345
4669         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
4670         Use create_tmp_var_raw instead of create_tmp_var.
4672 2016-08-09  Richard Biener  <rguenther@suse.de>
4674         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
4675         Treat same SSA names related.
4677 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
4679         PR tree-optimization/72824
4680         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
4681         real_zerop is not negative.
4683 2016-08-09  Richard Biener  <rguenther@suse.de>
4685         PR tree-optimization/71802
4686         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
4687         all merge opportunities with the predecessor.
4689 2016-08-09  Richard Biener  <rguenther@suse.de>
4691         PR ipa/68273
4692         * ipa-prop.c (ipa_modify_formal_parameters): Build
4693         parameter types with natural alignment also for the
4694         over-aligned case.
4696 2016-08-08  Andi Kleen  <ak@linux.intel.com>
4698         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
4700 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
4702         PR c/64955
4703         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
4704         do-nothing langhook.
4705         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
4706         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
4707         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
4708         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
4710 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
4712         PR bootstrap/72844
4713         * input.c: Ensure that HAVE_ICONV is defined.
4715 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
4717         PR middle-end/72781
4718         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
4719         private vars for lastprivate and for linear iterator.
4721         PR middle-end/68762
4722         * omp-simd-clone.c: Include varasm.h.
4723         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
4724         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
4725         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
4726         update function name.
4728 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
4730         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
4731         (avr_diagnose_devicespecs_error): Remove.
4732         (avr_devicespecs_file): Remove composing absolute path for specfile
4733         and its verbose info. Remove conditions to check specs-file,
4735 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
4737         PR rtl-optimization/72821
4738         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
4739         just return false for them.
4741 2016-08-08  Alan Modra  <amodra@gmail.com>
4743         PR target/72771
4744         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
4745         toc refs created during reload.  Update function comment.
4747 2016-08-08  Alan Modra  <amodra@gmail.com>
4749         PR target/72802
4750         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
4751         alternatives.  Put loads first, then stores, and reg/reg moves
4752         within same class later.  Delete attr length.
4754 2016-08-08  Alan Modra  <amodra@gmail.com>
4756         PR target/72802
4757         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
4758         (mem_operand_ds_form): New predicate.
4759         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
4760         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
4761         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
4762         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
4763         (extendsfdf2_fpr): Replace o constraint with wY.
4765 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
4767         * tree-ssa-threadbackward.c: Include tree-inline.h
4768         (profitable_jump_thread_path): Use estimate_num_insns to estimate
4769         size of copied block; for cold paths reduce duplication.
4770         (find_jump_threads_backwards): Remove redundant tests.
4771         (pass_thread_jumps::gate): Enable for -Os.
4773 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
4775         PR c/72816
4776         * stor-layout.c (layout_decl): Fix up formatting.
4777         (relayout_decl): Allow DECL to be FIELD_DECL.
4779 2016-08-07  Alan Modra  <amodra@gmail.com>
4781         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
4783 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
4785         * data-streamer-in.c (streamer_read_wide_int): New.
4786         (streamer_read_widest_int): Renamed function.
4787         * data-streamer-out.c (streamer_write_wide_int): New
4788         (streamer_write_widest_int): Renamed function.
4789         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
4790         data-stream-in.c.
4791         (input_cfg): Call renamed function.
4792         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
4793         data-stream-out.c.
4794         (output_cfg): Call renamed function.
4795         * data-streamer.h: Add declarations.
4797 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4799         * tree-ssa-ccp.c (extend_mask): New param sgn.
4800         Remove ORing with wi::mask.
4801         (get_default_value): Adjust call to extend_mask to pass sign.
4802         (evaluate_stmt): Likewise.
4804 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
4806         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
4807         INT64_MAX.
4809 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4811         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
4812         transform if operand's type is pointer to function or method.
4814 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
4816         PR tree-optimization/18046
4817         * tree-ssa-threadedge.c: Include cfganal.h.
4818         (simplify_control_statement_condition): If simplifying a
4819         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
4820         with the dominating ASSERT_EXPR before handing it off to VRP.
4821         Mention that a CASE_LABEL_EXPR may be returned.
4822         (thread_around_empty_blocks): Adjust to handle
4823         simplify_control_statement_condition() returning a
4824         CASE_LABEL_EXPR.
4825         (thread_through_normal_block): Likewise.
4826         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
4827         a switch statement by trying to determine which case label
4828         will be taken.
4830 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
4832         PR rtl-optimization/69847
4833         * lra-constraints.c (process_invariant_for_inheritance): Save
4834         pattern instead of src.
4835         (remove_inheritance_pseudos): Use the pattern.  Add assert.
4837 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
4839         * input.c (string_concat::string_concat): New constructor.
4840         (string_concat_db::string_concat_db): New constructor.
4841         (string_concat_db::record_string_concatenation): New method.
4842         (string_concat_db::get_string_concatenation): New method.
4843         (string_concat_db::get_key_loc): New method.
4844         (class auto_cpp_string_vec): New class.
4845         (get_substring_ranges_for_loc): New function.
4846         (get_source_range_for_substring): New function.
4847         (get_num_source_ranges_for_substring): New function.
4848         (class selftest::lexer_test_options): New class.
4849         (struct selftest::lexer_test): New struct.
4850         (class selftest::ebcdic_execution_charset): New class.
4851         (selftest::ebcdic_execution_charset::s_singleton): New variable.
4852         (selftest::lexer_test::lexer_test): New constructor.
4853         (selftest::lexer_test::~lexer_test): New destructor.
4854         (selftest::lexer_test::get_token): New method.
4855         (selftest::assert_char_at_range): New function.
4856         (ASSERT_CHAR_AT_RANGE): New macro.
4857         (selftest::assert_num_substring_ranges): New function.
4858         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
4859         (selftest::assert_has_no_substring_ranges): New function.
4860         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
4861         (selftest::test_lexer_string_locations_simple): New function.
4862         (selftest::test_lexer_string_locations_ebcdic): New function.
4863         (selftest::test_lexer_string_locations_hex): New function.
4864         (selftest::test_lexer_string_locations_oct): New function.
4865         (selftest::test_lexer_string_locations_letter_escape_1): New function.
4866         (selftest::test_lexer_string_locations_letter_escape_2): New function.
4867         (selftest::test_lexer_string_locations_ucn4): New function.
4868         (selftest::test_lexer_string_locations_ucn8): New function.
4869         (selftest::uint32_from_big_endian): New function.
4870         (selftest::test_lexer_string_locations_wide_string): New function.
4871         (selftest::uint16_from_big_endian): New function.
4872         (selftest::test_lexer_string_locations_string16): New function.
4873         (selftest::test_lexer_string_locations_string32): New function.
4874         (selftest::test_lexer_string_locations_u8): New function.
4875         (selftest::test_lexer_string_locations_utf8_source): New function.
4876         (selftest::test_lexer_string_locations_concatenation_1): New
4877         function.
4878         (selftest::test_lexer_string_locations_concatenation_2): New
4879         function.
4880         (selftest::test_lexer_string_locations_concatenation_3): New
4881         function.
4882         (selftest::test_lexer_string_locations_macro): New function.
4883         (selftest::test_lexer_string_locations_stringified_macro_argument):
4884         New function.
4885         (selftest::test_lexer_string_locations_non_string): New function.
4886         (selftest::test_lexer_string_locations_long_line): New function.
4887         (selftest::test_lexer_char_constants): New function.
4888         (selftest::input_c_tests): Call the new test functions once per
4889         case within the line_table test matrix.
4890         * input.h (struct string_concat): New struct.
4891         (struct location_hash): New struct.
4892         (class string_concat_db): New class.
4893         * substring-locations.h: New header.
4895 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
4897         PR tree-optimization/72810
4898         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
4899         the type of the case labels when truncating.
4901 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
4903         PR Target/72819
4904         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
4905         (aarch64_fp16_ptr_type_node): Likewise.
4906         * config/aarch64/aarch64-simd-builtins.c
4907         (aarch64_fp16_ptr_type_node): Define.
4908         (aarch64_init_fp16_types): New, refactored out of...
4909         (aarch64_init_builtins): ...here, update to call
4910         aarch64_init_fp16_types.
4911         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
4912         HFmode.
4913         (aapcs_vfp_sub_candidate): Likewise.
4915 2016-08-05  Martin Liska  <mliska@suse.cz>
4916             Joshua Cranmer  <Pidgeot18@gmail.com>
4918         * gcov.c (line_t::has_block): New function.
4919         (enum loop_type): New enum.
4920         (handle_cycle): New function.
4921         (unblock): Likewise.
4922         (circuit): Likewise.
4923         (get_cycles_count): Likewise.
4924         (accumulate_line_counts): Use new loop detection algorithm.
4926 2016-08-05  Martin Liska  <mliska@suse.cz>
4928         * gcov.c (output_intermediate_file): Rename
4929         function_info::line_next to next_file_fn.
4930         (process_file): Likewise.
4931         (read_graph_file): Likewise.
4932         (accumulate_line_counts): Likewise.
4933         (output_lines): Likewise.
4935 2016-08-05  Richard Biener  <rguenther@suse.de>
4937         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
4938         restriction on threading to a loop header.
4940 2016-08-05  Richard Biener  <rguenther@suse.de>
4942         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
4943         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
4944         adjust loop info accordingly.
4946 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
4948         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
4949         before folding call to __builtin_constant_p with parameters to false.
4951 2016-08-05  Alan Modra  <amodra@gmail.com>
4953         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
4954         code accidentally committed 2016-05-02 providing class when given
4955         NO_REGS.
4957 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
4959         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
4960         the case label ranges that partially overlap with OP's value
4961         range.
4963 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
4965         PR target/72805
4966         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
4967         Cast builtin function result to __mmask16 instead of __mmask8.
4968         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4969         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
4970         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
4972 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
4974         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
4975         (ASSERT_TRUE_AT): New macro.
4976         (ASSERT_FALSE): Reimplement in terms of...
4977         (ASSERT_FALSE_AT): New macro.
4978         (ASSERT_STREQ_AT): Fix typo in comment.
4980 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
4982         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
4983         labels are exhaustive, designate the label with the widest
4984         range to be the default label.
4986 2016-08-04  Andrew Pinski  <apinski@cavium.com>
4988         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
4989         (thunderx_tunings): Use thunderx_vector_cost instead of
4990         generic_vector_cost.
4992 2016-08-04  Martin Liska  <mliska@suse.cz>
4994         * gcov.c (main): Fix GNU coding style.
4995         (output_intermediate_file): Likewise.
4996         (process_file): Likewise.
4997         (generate_results): Likewise.
4998         (release_structures): Likewise.
4999         (create_file_names): Likewise.
5000         (find_source): Likewise.
5001         (read_graph_file): Likewise.
5002         (find_exception_blocks): Likewise.
5003         (canonicalize_name): Likewise.
5004         (make_gcov_file_name): Likewise.
5005         (mangle_name): Likewise.
5006         (accumulate_line_counts): Likewise.
5007         (output_branch_count): Likewise.
5008         (read_line): Likewise.
5010 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5012         PR rtl-optimization/71779
5013         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
5014         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
5015         or if it was truncated.
5017         PR rtl-optimization/70903
5018         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
5020 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5022         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
5023         accessing SSA_NAME_PTR_INFO.
5025 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5027         PR 70677
5028         * common/config/avr/avr-common.c (avr_option_optimization_table)
5029         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
5031 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
5033         PR 55181
5034         * config/avr/avr.md: New pattern to work around do_store_flag
5035         generating shift instructions for bit extractions.
5037 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
5039         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
5040         BITMAP_ALLOC.
5041         (add_equivalence): Likewise.
5042         (get_value_range): Allocate value range with vrp_value_range_pool.
5043         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
5044         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
5046 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
5048         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
5049         the default for the rs6000 port.
5051 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5053         PR middle-end/71876
5054         * calls.c (special_function_p): Remove special handling of
5055         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
5056         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
5057         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
5059 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
5061         PR middle-end/72778
5062         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
5063         Don't stop on regular insns.
5065 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5067         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
5068         size to DImode boundary.
5069         (nvptx_propagate): Likewise.
5071 2016-08-03  Alan Modra  <amodra@gmail.com>
5073         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
5074         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
5075         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
5076         from -mefficient-unaligned-vector.  Note that this affects fp too.
5078 2016-08-03  Alan Modra  <amodra@gmail.com>
5080         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
5081         cost more.
5083 2016-08-03  Alan Modra  <amodra@gmail.com>
5085         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
5086         to a reg.  Localize vars.
5088 2016-08-03  Alan Modra  <amodra@gmail.com>
5090         * config/rs6000/rs6000.opt: Remove negatives from help strings
5091         and comments.
5093 2016-08-03  Alan Modra  <amodra@gmail.com>
5095         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5096         Delete duplicated code.
5098 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5100         PR middle-end/72778
5101         * lra-spills.c (regno_in_use_p): New.
5102         (lra_final_code_change): Use it.
5104 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
5106         PR rtl-optimization/69847
5107         * lra-int.h (struct lra-reg): Use restore_rtx instead of
5108         restore_regno.
5109         (lra_rtx_hash): New.
5110         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
5111         of restore_regno.
5112         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
5113         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
5114         * lra-spills.c (lra_final_code_change): Don't delete insn when the
5115         next insn is USE with the same reg as the current insn source.
5116         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
5117         of restore_regno.
5118         (lra_constraints_init): Call initiate_invariants.
5119         (lra_constraints_finish): Call finish_invariants.
5120         (struct invariant, invariant_t, invariant_ptr_t): New.
5121         (const_invariant_ptr_t, invariants, invariants_pool): New.
5122         (invariant_table, invariant_hash, invariant_eq_p): New.
5123         (insert_invariant, initiate_invariants, finish_invariants): New.
5124         (clear_invariants, invalid_invariant_regs): New.
5125         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
5126         instead of restore_regno.
5127         (invariant_p, process_invariant_for_inheritance): New.
5128         (inherit_in_ebb): Implement invariant inheritance.
5129         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
5130         (remove_inheritance_pseudos): Implement undoing invariant
5131         inheritance.
5132         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
5133         instead of restore_regno.
5134         * lra-assigns.c (regno_live_length): New.
5135         (reload_pseudo_compare_func): Use regno_live_length.
5136         (assign_by_spills): Use restore_rtx instead of restore_regno.
5137         (lra_assign): Ditto.  Initiate regno_live_length.
5139 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
5141         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
5142         __builtin_aarch64_fmindf.
5144 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5146         PR tree-optimization/34114
5147         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
5148         information for more control IVs.
5150 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
5152         PR tree-optimization/34114
5153         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
5154         PLUS_EXPR case.  Handle SSA_NAME case.
5156 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
5158         * config/aarch64/aarch64-simd-builtins.def
5159         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
5160         (__builtin_aarch64_fmaxdf): Likewise.
5161         (__builtin_aarch64_smin_nandf): Likewise.
5162         (__builtin_aarch64_smax_nandf): Likewise.
5163         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
5164         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
5165         (<fmaxmin><mode>3): ...this.
5166         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
5167         (vminnm_f64): Likewise.
5168         (vmin_f64): Likewise.
5169         (vmax_f64): Likewise.
5170         * config/aarch64/iterators.md (FMAXMIN): Merge with...
5171         (FMAXMIN_UNS): ...this.
5172         (fmaxmin): Merged with
5173         (fmaxmin_op): ...this...
5174         (maxmin_uns_op): ...in to this.
5176 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
5178         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5179         Add support for vec_extract on vector float, vector int, vector
5180         short, and vector char vector types.
5181         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5182         vector float, vector int, vector short, and vector char
5183         optimizations on 64-bit ISA 2.07 systems for both constant and
5184         variable element numbers.
5185         (rs6000_split_vec_extract_var): Likewise.
5186         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
5187         Altivec registers on ISA 2.07 and above.
5188         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
5189         which never was matched due to the split occuring before register
5190         allocation (and the code would not have worked on little endian
5191         systems if it did match).  Allow extracts to go to the Altivec
5192         registers if ISA 2.07 (power8).  Change from using "" around the
5193         C++ code to using {}'s.
5194         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
5195         vec_extracts when the vector is in memory.
5196         (vsx_extract_v4sf_var): New insn to optimize vector float
5197         vec_extracts when the element number is variable on 64-bit ISA
5198         2.07 systems.
5199         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
5200         for 64-bit ISA 2.07 as well as ISA 3.0.
5201         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
5202         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
5203         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
5204         optimize vector int, vector short, and vector char vec_extracts
5205         when the vector is in memory.
5206         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
5207         optimize vector int, vector short, and vector char vec_extracts
5208         when the element number is variable.
5210 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5212         PR target/71948
5213         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
5214         does not overlap with other symbol flags.
5216 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
5218         * config/aarch64/aarch64.h (aarch64_frame):
5219         Remove padding0 and hardfp_offset.  Add locals_offset,
5220         initial_adjust, callee_adjust, callee_offset and final_adjust.
5221         * config/aarch64/aarch64.c (aarch64_layout_frame):
5222         Remove unused padding0 and hardfp_offset initializations.
5223         Choose frame layout and set frame variables accordingly.
5224         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
5225         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
5226         (aarch64_pop_regs): Likewise.
5227         (aarch64_expand_prologue): Remove all decision code, just emit
5228         prolog according to frame variables.
5229         (aarch64_expand_epilogue): Remove all decision code, just emit
5230         epilog according to frame variables.
5231         (aarch64_initial_elimination_offset): Use offset to local/arg area.
5233 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
5235         PR target/72748
5236         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
5237         fix_debug_reg_uses after changing source register mode to
5238         V1TImode if source register is undefined.
5240 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
5242         PR tree-optimization/71818
5243         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
5244         with non invariant evolutions
5246 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5248         PR target/72767
5249         * config/avr/avr.md (length) [branch]: Correct insn length
5250         attribute for forward branches.
5252 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
5254         * doc/extend.texi (AVR Built-in Functions): Document
5255         __builtin_avr_nops.
5256         * config/avr/builtins.def (NOPS): New.
5257         * config/avr/avr.c (avr_expand_nops): New static function.
5258         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
5260 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5262         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
5263         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
5264         addresses.
5266 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
5268         * config/aarch64/aarch64.c (vulcan_tunings): Update
5269         vulcan L1 cache_line_size.
5271 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5273         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
5274         function that takes a vector memory address, a hard register, an
5275         element number and a temporary base register, and recreates an
5276         address that points to the appropriate element within the vector.
5277         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
5278         (rs6000_split_vec_extract_var): Add support for the target of a
5279         vec_extract with variable element number being a scalar memory
5280         location.
5281         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
5282         swappable.
5283         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
5284         vsx_extract_<mode>_load insn with a new insn that optimizes
5285         storing either element to a memory location, using scratch
5286         registers to pick apart the vector and reconstruct the address.
5287         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
5288         (vsx_extract_<mode>_store): Rework alternatives to more correctly
5289         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
5290         store instruction.
5291         (vsx_extract_<mode>_var): Add support for extracting a variable
5292         element number from memory.
5294 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5296         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
5297         when testing for compares against constants of the form 0xabab.
5299 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5301         PR tree-optimization/57558
5302         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
5303         function.
5304         (vect_loop_versioning): Support versioning with niter assumptions.
5305         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
5306         (vect_get_loop_niters): New parameter.  Reimplement to support
5307         assumptions in loop niter info.
5308         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
5309         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
5310         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
5311         Support loop versioning for niters.
5312         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
5313         (vect_free_loop_info_assumptions): New function.
5314         (vectorize_loops): Free loop niter info for loops with flag
5315         LOOP_F_ASSUMPTIONS set if vectorization failed.
5316         * tree-vectorizer.h (struct _loop_vec_info): New field
5317         num_iters_assumptions.
5318         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
5319         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
5320         (LOOP_REQUIRES_VERSIONING): New macro.
5321         (vect_free_loop_info_assumptions): New decl.
5323 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
5325         * cfgloop.h (struct loop): New field constraints.
5326         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
5327         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
5328         functions.
5329         * cfgloop.c (alloc_loop): Initialize new field.
5330         * cfgloopmanip.c (copy_loop_info): Copy constraints.
5331         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
5332         Adjust niter analysis wrto loop constraints.
5333         * doc/loop.texi (@node Number of iterations): Add description for loop
5334         constraints.
5336 2016-07-29  Marek Polacek  <polacek@redhat.com>
5338         PR c/7652
5339         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
5340         (ix86_expand_round_builtin): Likewise.
5342 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
5343             Georg-Johann Lay  <avr@gjlay.de>
5345         PR rtl-optimization/71976
5346         * combine.c (get_last_value): Return 0 if the argument for which
5347         the function is called has a wider mode than the recorded value.
5349 2016-07-29  Marek Polacek  <polacek@redhat.com>
5351         PR c/7652
5352         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
5353         (altivec_expand_st_builtin): Likewise.
5355 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
5357         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
5358         introduced in r238381.
5360 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5362         PR middle-end/68217
5363         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
5364         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
5366 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5368         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
5369         New declaration.
5370         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5371         Add support for vec_extract of vector double or vector long having
5372         a variable element number on 64-bit ISA 2.07 systems or newer.
5373         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
5374         Likewise.
5375         (rs6000_split_vec_extract_var): New function to split a
5376         vec_extract built-in function with variable element number.
5377         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
5378         swappable.
5379         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
5380         (UNSPEC_VSX_EXTRACT): Likewise.
5381         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
5382         direct move instructions to be generated on 64-bit ISA 2.07
5383         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
5384         instruction.
5385         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
5386         arguments for vec_extract variable element.
5387         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
5388         vec_extract with variable element on V2DFmode and V2DImode
5389         vectors.
5390         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
5391         -mupper-regs-df requirement, since it isn't needed.
5392         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
5393         do direct moves on 64-bit systems, which allows optimization of
5394         vec_extract on 64-bit ISA 2.07 systems and newer.
5396 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5397 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5399          * config/aarch64/aarch64.md
5400         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
5401         statement and type.
5402         (<optab>qihi2_aarch64): Likewise, and split into two.
5403         (extendqihi2_aarch64): New.
5404         (zero_extendqihi2_aarch64): New.
5405         * config/aarch64/iterators.md (ldrxt): Remove.
5406         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
5407         uxtb/uxth.
5409 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
5411         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
5413 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
5415         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
5416         (aarch64_push_reg): New function to push 1 or 2 registers.
5417         (aarch64_pop_reg): New function to pop 1 or 2 registers.
5418         (aarch64_expand_prologue): Use aarch64_push_regs.
5419         (aarch64_expand_epilogue): Use aarch64_pop_regs.
5421 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
5423         PR tree-optimization/71734
5424         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
5425         attribute instead of REF_LOOP and use it.
5426         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
5427         set it for Loops having non-zero safelen attribute.
5428         (ref_indep_loop_p): Pass zero as initial value for safelen.
5430 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
5432         PR middle-end/72657
5433         PR target/72683
5434         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
5435         call using chkp_gimple_call_builtin_p.
5436         (chkp_copy_bounds_for_assign): Likewise.
5438 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5440         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
5441         * config/arm/arm-protos.h (struct tune_params): Likewise.
5442         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
5443         (cortex_a9_sched_adjust_cost): Likewise.
5444         (fa726te_sched_adjust_cost): Likewise.
5445         (arm_adjust_cost): Likewise.
5446         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
5447         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
5448         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
5449         * config/i386/i386.c (ix86_adjust_cost): Likewise.
5450         * config/ia64/ia64.c: Likewise.
5451         * config/m68k/m68k.c: Likewise.
5452         * config/mep/mep.c (mep_adjust_cost): Likewise.
5453         * config/microblaze/microblaze.c (microblaze_adjust_cost):
5454         * Likewise.
5455         * config/mips/mips.c (mips_adjust_cost): Likewise.
5456         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
5457         * Likewise.
5458         * config/pa/pa.c (pa_adjust_cost): Likewise.
5459         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
5460         (rs6000_debug_adjust_cost): Likewise.
5461         * config/sh/sh.c (sh_adjust_cost): Likewise.
5462         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
5463         (hypersparc_adjust_cost): Likewise.
5464         (sparc_adjust_cost): Likewise.
5465         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
5466         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
5467         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
5468         * Likewise.
5469         * config/visium/visium.c (visium_adjust_cost): Likewise.
5470         * doc/tm.texi: Regenerate.
5471         * haifa-sched.c (dep_cost_1): Adjust.
5472         * target.def: Merge adjust_cost and adjust_cost_2.
5474 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5476         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
5478 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5480         * store-motion.c (struct st_expr): Make pattern_regs a vector.
5481         (extract_mentioned_regs): Append to a vector instead of
5482         returning a rtx_expr_list.
5483         (st_expr_entry): Adjust.
5484         (free_st_expr_entry): Likewise.
5485         (store_ops_ok): Likewise.
5486         (store_killed_in_insn): Likewise.
5487         (find_moveable_store): Likewise.
5489 2016-07-28  Martin Liska  <mliska@suse.cz>
5491         PR gcov-profile/68025
5492         * tree-profile.c (tree_profiling): Respect
5493         no_profile_instrument_function attribute.
5494         * doc/extend.texi: Document no_profile_instrument_function
5495         attribute.
5497 2016-07-28  Martin Liska  <mliska@suse.cz>
5499         PR rtl-optimization/70944
5500         * combine.c (make_compound_operation):
5501         Do not allow make_compound_operation for vector mode
5503 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
5505         PR middle-end/71994
5506         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
5507          before calling get_ops.
5509 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5511         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
5512         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
5513         (BITS_PER_UNIT_LOG): Remove.
5514         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
5515         * expr.c (expand_assignment): Likewise.
5516         * stor-layout.c (initialize_sizetypes): Likewise.
5518 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
5520         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
5521         signature of rs6000_expand_vector_extract so that the element
5522         number is a RTX instead of a constant integer.
5523         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
5524         Likewise.
5525         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
5526         (altivec_expand_vec_ext_builtin): Likewise.
5527         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
5528         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
5529         MFVSRLD instruction.
5531 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5533         * input.c (get_pure_location): Move here from tree.c.
5534         (make_location): Likewise.  Add header comment.
5535         (selftest::test_accessing_ordinary_linemaps): Verify
5536         pure_location_p, make_location, get_location_from_adhoc_loc and
5537         get_range_from_loc.
5538         * input.h (get_pure_location): Move declaration here from tree.h.
5539         (get_finish): Likewise for inline function.
5540         (make_location): Likewise for declaration.
5541         * tree.c (get_pure_location): Move to input.c.
5542         (make_location): Likewise.
5543         * tree.h (get_pure_location): Move declaration to tree.h.
5544         (get_finish): Likewise for inline function.
5545         (make_location): Likewise for declaration.
5547 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5549         PR middle-end/71078
5550         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
5552 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
5554         * system.h (STATIC_ASSERT): Use static_assert if building
5555         with C++11 onwards.
5557 2016-07-27  Richard Biener  <rguenther@suse.de>
5559         PR tree-optimization/72517
5560         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5561         Revert change to not compute read-read dependences.
5563 2016-07-27  Richard Biener  <rguenther@suse.de>
5565         * predict.c (set_even_probabilities): Make nedges unsigned.
5567 2016-07-27  Martin Liska  <mliska@suse.cz>
5569         * predict.c (set_even_probabilities): Handle unlikely edges.
5570         (combine_predictions_for_bb): Likewise.
5572 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5574         PR target/71869
5575         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
5576         __float128 support when we don't have hardware support, so that
5577         the IEEE built-in functions like isgreater, first call __unordkf3
5578         to make sure neither operand is a NaN, and if both operands are
5579         ordered, do the normal comparison.
5581 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5583         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
5584         name.
5585         (extract_code_and_val_from_cond_with_ops): Verify that name is
5586         either cond_op0 or cond_op1.
5588 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
5590         PR tree-optimization/18046
5591         * genmodes.c (emit_mode_size_inline): Emit an assert that
5592         verifies that mode is a valid array index.
5593         (emit_mode_nuinits_inline): Likewise.
5594         (emit_mode_inner_inline): Likewise.
5595         (emit_mode_unit_size_inline): Likewise.
5596         (emit_mode_unit_precision_inline): Likewise.
5597         * tree-vrp.c: Include params.h.
5598         (find_switch_asserts): Register edge assertions for the default
5599         label which correspond to the anti-ranges of each case label.
5600         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
5601         * doc/invoke.texi: Document it.
5603 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5605         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
5606         and unnecessary call to gimple_bb.
5608 2016-07-26  Richard Biener  <rguenther@suse.de>
5610         PR rtl-optimization/71984
5611         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
5612         for VOIDmode.
5614 2016-07-26  Richard Biener  <rguenther@suse.de>
5616         PR middle-end/72517
5617         * expmed.c (extract_bit_field_1): Constrain the vector mode
5618         with element size matching the extraction mode size when
5619         choosing a better vector mode to do the extraction from.
5621 2016-07-26  Richard Biener  <rguenther@suse.de>
5622             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5624         PR middle-end/70920
5625         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
5626         pattern.
5628 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5630         * tree-ssa-structalias.c (struct scc_info): Change types of
5631         members to auto_sbitmap and auto_vec.
5632         (scc_info::scc_info): New constructor.
5633         (scc_info::~scc_info): New destructor.
5634         (init_scc_info): Remove.
5635         (free_scc_info): Remove.
5636         (find_indirect_cycles): Adjust.
5637         (perform_var_substitution): Likewise.
5638         (free_var_substitution_info): Likewise.
5640 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5642         * tree-outof-ssa.c (struct elim_graph): Change type of members
5643         to auto_vec and auto_sbitmap.
5644         (elim_graph::elim_graph): New constructor.
5645         (delete_elim_graph): Remove.
5646         (expand_phi_nodes): Adjust.
5648 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5650         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
5651         (new_elim_graph): Adjust.
5652         (clear_elim_graph): Likewise.
5653         (delete_elim_graph): Likewise.
5654         (elim_graph_size): Likewise.
5655         (elim_graph_add_node): Likewise.
5656         (elim_graph_add_edge): Likewise.
5657         (elim_graph_remove_succ_edge): Likewise.
5658         (eliminate_name): Likewise.
5659         (eliminate_build): Likewise.
5660         (elim_forward): Likewise.
5661         (elim_unvisited_predecessor): Likewise.
5662         (elim_backward): Likewise.
5663         (elim_create): Likewise.
5664         (eliminate_phi): Likewise.
5665         (expand_phi_nodes): Likewise.
5667 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5669         * bt-load.c (compute_out): Use auto_sbitmap class.
5670         (link_btr_uses): Likewise.
5671         * cfganal.c (mark_dfs_back_edges): Likewise.
5672         (post_order_compute): Likewise.
5673         (inverted_post_order_compute): Likewise.
5674         (pre_and_rev_post_order_compute_fn): Likewise.
5675         (single_pred_before_succ_order): Likewise.
5676         * cfgexpand.c (pass_expand::execute): Likewise.
5677         * cfgloop.c (verify_loop_structure): Likewise.
5678         * cfgloopmanip.c (fix_bb_placements): Likewise.
5679         (remove_path): Likewise.
5680         (update_dominators_in_loop): Likewise.
5681         * cfgrtl.c (break_superblocks): Likewise.
5682         * ddg.c (check_sccs): Likewise.
5683         (create_ddg_all_sccs): Likewise.
5684         * df-core.c (df_worklist_dataflow): Likewise.
5685         * dse.c (dse_step3): Likewise.
5686         * except.c (eh_region_outermost): Likewise.
5687         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5688         * gcse.c (prune_expressions): Likewise.
5689         (prune_insertions_deletions): Likewise.
5690         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
5691         * graph.c (draw_cfg_nodes_no_loops): Likewise.
5692         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
5693         * lcm.c (compute_earliest): Likewise.
5694         (compute_farthest): Likewise.
5695         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
5696         (unroll_loop_runtime_iterations): Likewise.
5697         (unroll_loop_stupid): Likewise.
5698         * lower-subreg.c (decompose_multiword_subregs): Likewise.
5699         * lra-lives.c: Likewise.
5700         * lra.c (lra): Likewise.
5701         * modulo-sched.c (schedule_reg_moves): Likewise.
5702         (optimize_sc): Likewise.
5703         (get_sched_window): Likewise.
5704         (sms_schedule_by_order): Likewise.
5705         (check_nodes_order): Likewise.
5706         (order_nodes_of_sccs): Likewise.
5707         (order_nodes_in_scc): Likewise.
5708         * recog.c (split_all_insns): Likewise.
5709         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
5710         * reload1.c (reload): Likewise.
5711         * sched-rgn.c (haifa_find_rgns): Likewise.
5712         (split_edges): Likewise.
5713         (compute_trg_info): Likewise.
5714         * sel-sched.c (init_seqno): Likewise.
5715         * store-motion.c (remove_reachable_equiv_notes): Likewise.
5716         * tree-into-ssa.c (update_ssa): Likewise.
5717         * tree-ssa-live.c (live_worklist): Likewise.
5718         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
5719         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5720         * Likewise.
5721         (try_peel_loop): Likewise.
5722         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
5723         * Likewise.
5724         * tree-ssa-pre.c (compute_antic): Likewise.
5725         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5726         * tree-stdarg.c (reachable_at_most_once): Likewise.
5727         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
5728         * var-tracking.c (vt_find_locations): Likewise.
5730 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5732         * sbitmap.h (auto_sbitmap): New class.
5734 2016-07-26  Alan Modra  <amodra@gmail.com>
5736         PR target/72103
5737         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
5738         sri->t_icode.
5740 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
5742         * input.c (selftest::temp_source_file::temp_source_file): Fix
5743         missing "%s" in fprintf.
5745 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
5747         PR middle-end/71732
5748         * cselib.c (cselib_process_insn): Invalidate argument slots for
5749         const/pure calls.
5751 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5753         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
5754         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
5755         vmulxh_lane_f16, vmulxh_laneq_f16): New.
5757 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5759         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5760         * config/aarch64/aarch64.md (fma, fnma): Support HF.
5761         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
5763 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5765         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5766         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
5767         New.
5768         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
5769         (add<mode>3): Likewise.
5770         (sub<mode>3): Likewise.
5771         (mul<mode>3): Likewise.
5772         (div<mode>3): Likewise.
5773         (*div<mode>3): Likewise.
5774         (<fmaxmin><mode>3): Extend to HF.
5775         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
5776         (fabd<mode>3): Likewise.
5777         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
5778         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
5779         (aarch64_fmulx<mode>): Likewise.
5780         (aarch64_fac<optab><mode>): Likewise.
5781         (aarch64_frecps<mode>): Likewise.
5782         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
5783         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
5784         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
5785         (VSDQ_HSDI): Support HI.
5786         (fcvt_target, FCVT_TARGET): Likewise.
5787         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
5788         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
5789         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
5790         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
5791         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
5792         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
5793         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
5794         vrsqrtsh_f16): New.
5796 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5798         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
5799         * config/aarch64/aarch64-builtins.c (hi_UP): New.
5800         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5801         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
5802         mode.
5803         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
5804         (aarch64_cm<optab><mode>): Likewise.
5805         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
5806         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
5807         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
5808         (sqrt<mode>2): Likewise.
5809         (*sqrt<mode>2): Likewise.
5810         (abs<mode>2): Likewise.
5811         (<optab><mode>hf2): New pattern for HF mode.
5812         (<optab>hihf2): Likewise.
5813         * config/aarch64/arm_neon.h: Include arm_fp16.h.
5814         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
5815         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
5816         Support HF mode.
5817         * config/aarch64/arm_fp16.h: New file.
5818         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
5819         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
5820         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
5821         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
5822         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
5823         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
5824         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
5825         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
5826         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
5827         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
5828         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
5829         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
5830         vsqrth_f16): New.
5832 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5834         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
5835         reduc_smin_scal_): Use VDQIF_F16.
5836         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
5837         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
5838         Use VHSDF.
5839         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
5840         * config/aarch64/iterators.md (VDQIF_F16): New.
5841         (vp): Support HF modes.
5842         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
5843         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
5845 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5847         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
5848         "*aarch64_mulx_elt_from_dup<mode>".
5849         (*aarch64_mul3_elt<mode>): Update schedule type.
5850         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
5851         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
5852         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
5853         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
5854         (f, fp): Support HF modes.
5855         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
5856         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
5857         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
5858         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
5859         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
5860         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
5862 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5864         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5865         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
5866         modes.
5867         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
5868         vfmsq_f16): New.
5870 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5872         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5873         * config/aarch64/aarch64-simd.md
5874         (aarch64_rsqrts<mode>): Extend to HF modes.
5875         (fabd<mode>3): Likewise.
5876         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
5877         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
5878         (aarch64_<maxmin_uns>p<mode>): Likewise.
5879         (<su><maxmin><mode>3): Likewise.
5880         (<maxmin_uns><mode>3): Likewise.
5881         (<fmaxmin><mode>3): Likewise.
5882         (aarch64_faddp<mode>): Likewise.
5883         (aarch64_fmulx<mode>): Likewise.
5884         (aarch64_frecps<mode>): Likewise.
5885         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
5886         (add<mode>3): Extend to HF modes.
5887         (sub<mode>3): Likewise.
5888         (mul<mode>3): Likewise.
5889         (div<mode>3): Likewise.
5890         (*div<mode>3): Likewise.
5891         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
5892         HF, V4HF and V8HF.
5893         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
5894         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
5895         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
5896         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
5897         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
5898         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
5899         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
5900         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
5901         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
5902         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
5903         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
5904         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
5905         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
5906         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
5908 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5910         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
5911         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
5912         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
5913         (neg<mode>2): Likewise.
5914         (abs<mode>2): Likewise.
5915         (<frint_pattern><mode>2): Likewise.
5916         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
5917         (<optab><VDQF:mode><fcvt_target>2): Likewise.
5918         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
5919         (ftrunc<VDQF:mode>2): Likewise.
5920         (<optab><fcvt_target><VDQF:mode>2): Likewise.
5921         (sqrt<mode>2): Likewise.
5922         (*sqrt<mode>2): Likewise.
5923         (aarch64_frecpe<mode>): Likewise.
5924         (aarch64_cm<optab><mode>): Likewise.
5925         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
5926         HF, V4HF and V8HF.
5927         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
5928         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
5929         (stype): New.
5930         * config/aarch64/arm_neon.h (vdup_n_f16): New.
5931         (vdupq_n_f16): Likewise.
5932         (vld1_dup_f16): Use vdup_n_f16.
5933         (vld1q_dup_f16): Use vdupq_n_f16.
5934         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
5935         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
5936         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
5937         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
5938         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
5939         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
5940         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
5941         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
5942         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
5943         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
5944         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
5945         vsqrt_f16, vsqrtq_f16): New.
5947 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5949         * config/aarch64/aarch64-simd.md
5950         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
5951         (aarch64_ext<mode>): Likewise.
5952         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
5953         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
5954         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
5955         and V8HFmode.
5956         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
5957         float16x8_t.
5958         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
5959         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
5960         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
5961         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
5962         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
5963         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
5964         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
5965         New.
5966         (vmov_n_f16): Reimplement using vdup_n_f16.
5967         (vmovq_n_f16): Reimplement using vdupq_n_f16..
5969 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5971         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
5972         "frame_related_p".  Generate CFA annotation when it's necessary.
5973         (aarch64_expand_prologue): Use aarch64_add_constant.
5974         (aarch64_expand_epilogue): Likewise.
5975         (aarch64_output_mi_thunk): Pass "false" when calling
5976         aarch64_add_constant.
5978 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5980         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
5981         sequences.
5983 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
5985         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
5986         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
5987         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
5988         (aarch64_build_constant): Delete.
5990 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
5992         Revert
5993         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
5995         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
5996         flag_toplevel_reorder.
5998 2016-07-25  Richard Biener  <rguenther@suse.de>
6000         * cgraph.c (cgraph_node::verify_node): Compare against builtin
6001         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
6002         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
6003         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
6004         (streamer_get_builtin_tree): Likewise.
6005         (streamer_write_builtin): Likewise.
6006         * lto-streamer.h (LTO_builtin_decl): Remove.
6007         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
6008         (lto_input_scc): Remove LTO_builtin_decl handling.
6009         (lto_input_tree_1): Liekwise.
6010         * lto-streamer-out.c (lto_output_tree_1): Remove special
6011         handling of builtins.
6012         (DFS::DFS): Likewise.
6013         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
6014         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
6015         assert.
6016         (streamer_write_builtin): Remove.
6018 2016-07-25  Martin Liska  <mliska@suse.cz>
6020         * lto-cgraph.c (input_symtab): Don't call get_working_sets
6021         if flag_auto_profile is set to true.
6023 2016-07-25  Martin Liska  <mliska@suse.cz>
6025         PR gcov-profile/71868
6026         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
6027         have a function with multiple latches, count them all.
6029 2016-07-25  Martin Liska  <mliska@suse.cz>
6031         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
6033 2016-07-25  Martin Liska  <mliska@suse.cz>
6035         PR tree-optimization/71987
6036         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
6037         just for SSA_NAMEs. Fix GNU coding style.
6039 2016-07-25  Martin Liska  <mliska@suse.cz>
6041         PR gcov-profile/64874
6042         * gcov-io.h: Update command about file format.
6043         * gcov-iov.c (main): Adapt the numbering scheme.
6045 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
6047         PR middle-end/66726
6048         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
6049         whose result is used in PHI.
6050         (final_range_test_p): Likewise.
6051         (maybe_optimize_range_tests): Likewise.
6053 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
6055         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6056         Reformat two multi-line strings.
6058 2016-07-22  Martin Sebor  <msebor@redhat.com>
6060         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
6062 2016-07-22  Martin Sebor  <msebor@redhat.com>
6064         PR c/71560
6065         * doc/extend.texi (Compound Literals): Correct and clarify.
6066         (Cast to Union): Same.
6068 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6070         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
6071         comments to explain why certain error messages make mention of
6072         undocumented options.
6073         (rs6000_invalid_builtin): Change error messages to replace mention
6074         of undocumented options with mention of the -mcpu=power9 option
6075         that enables those undocumented options.
6076         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
6077         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
6078         definition of this macro to correct an existing error.
6079         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
6080         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
6081         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
6082         descriptions of built-in functions so that they depend on
6083         -mcpu=power9 instead of on the corresponding undocumented flags.
6084         * doc/invoke.texi (Option Summary):  Remove all mention of newly
6085         undocumented flags.
6086         (IBM RS/6000 and PowerPC Options): Likewise.
6087         * doc/md.texi (Constraints for Particuliar Machines): Remove all
6088         mention of newly undocumented flags.
6090 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
6092         * ipa-cp.c (determine_versionability): Do not create constprop clones,
6093         when target_clones attribute is set.
6095 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6097         * common.opt (funsafe-loop-optimizations): Mark ignore.
6098         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
6099         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
6100         related code.
6101         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
6102         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
6104 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
6106         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6107         Parameter.
6108         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6109         Parameter.
6110         (number_of_iterations_exit): Warn missed loop optimization for
6111         possible infinite loops.
6113 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
6115         PR target/71216
6116         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
6117         when to emit a ".machine" pseudo-op.
6119 2016-07-22  Martin Liska  <mliska@suse.cz>
6121         PR gcov-profile/69028
6122         PR gcov-profile/62047
6123         * coverage.c (coverage_compute_lineno_checksum): Do not
6124         calculate checksum for fns w/o xloc.file.
6125         (coverage_compute_profile_id): Likewise.
6127 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
6129         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
6130         (avr_secondary_reload): ...and implementation.
6131         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
6132         * config/avr/avr.md (reload_in<mode>): Remove insns.
6133         (adjust_len) [lpm]: Remove insn attribute value.
6134         * config/avr/predicates.md (flash_operand): Remove insn predicate.
6136 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6138         PR middle-end/71876
6139         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
6140         attribute.
6141         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
6142         * calls.c (special_function_p): Remove the special handling of the
6143         "__builtin_" prefix.
6145 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6147         PR middle-end/71876
6148         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
6149         if STMT may be an alloca call.
6150         (gimple_alloca_call_p, alloca_call_p): Return only true for the
6151         builtin alloca call.
6152         * calls.h (gimple_maybe_alloca_call_p): New function.
6153         * tree-inline.c (inline_forbidden_p_stmt): Use
6154         gimple_maybe_alloca_call_p here.
6156 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
6158         * spellcheck-tree.c (best_macro_match::best_macro_match):
6159         Explictly specify the template arguments when invoking the base
6160         class constructor, to help older C++ compilers.
6162 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6164         PR sanitizer/71953
6165         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
6166         before builtin_decl_implicit.
6168 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6170         * optabs.c (emit_condiitonal_move): Short circuit for identical
6171         sources.
6173 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6175         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
6176         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
6177         (noce_conversion_profitable_p): New.
6178         (noce_try_store_flag_constants): Use it.
6179         (noce_try_addcc): Likewise.
6180         (noce_try_store_flag_mask): Likewise.
6181         (noce_try_cmove): Likewise.
6182         (noce_try_cmove_arith): Likewise.
6183         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
6184         overwriting it.
6185         (noce_convert_multiple_sets): Move cost model to here, from...
6186         (bb_ok_for_noce_convert_multiple_sets) ...here.
6187         (noce_process_if_block): Update calls for above changes.
6188         (noce_find_if_block): Record new noce_if_info parameters.
6190 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
6192         * target.def (max_noce_ifcvt_seq_cost): New.
6193         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
6194         * doc/tm.texi: Regenerate.
6195         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
6196         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
6197         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
6198         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
6199         * doc/invoke.texi: Document new params.
6201 2016-07-21  Richard Biener  <rguenther@suse.de>
6203         PR tree-optimization/71947
6204         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
6205         ranges have useful limit_vr information.
6207 2016-07-21  Richard Biener  <rguenther@suse.de>
6209         * function-tests.c (build_trivial_generic_function): Set
6210         BLOCK_SUPERCONTEXT of DECL_INITIAL.
6211         * omp-low.c (create_omp_child_function): Likewise.
6212         (grid_expand_target_grid_body): Likewise.
6213         * cgraphunit.c (init_lowered_empty_function): Likewise.
6214         (cgraph_node::expand_thunk): Likewise.
6215         * tree-parloops.c (create_loop_fn): Likewise.
6216         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
6218 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6220         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
6221         in comment.
6223 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
6225         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
6226         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
6227         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
6228         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
6229         values for insn attribute.
6230         * config/avr/avr.c (avr_out_insert_notbit): New function.
6231         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
6232         ADJUST_LEN_INSV_NOTBIT_0/_7.
6233         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
6235 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6237         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
6238         (chrec_convert_1, chrec_convert): Ditto.
6239         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
6240         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
6241         * tree-vrp.c (adjust_range_with_scev): Ditto.
6242         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
6243         (scev_var_range_cant_overflow): New function.
6244         (scev_probably_wraps_p): New parameter.  Call above function.
6245         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
6247 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
6249         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
6250         by removing computation of may_be_zero.
6252 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
6254         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
6256 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
6258         Improving concepts performance and diagnostics.
6259         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
6260         for constraint satisfaction and subsumption.
6261         * timevar.h (auto_timevar): New constructor that matches the push/pop
6262         pattern of usage in pt.c.
6264 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6266         * hwint.h (HOST_WIDE_INT_0): New define.
6267         (HOST_WIDE_INT_0U): Ditto.
6268         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
6269         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
6270         * simplify-rtx.c: Ditto.
6271         * tree-object-size.c: Ditto.
6273 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6275         * config/s390/s390.c (s390_encode_section_info): Remove mode size
6276         check.
6278 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
6280         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
6281         * combine.c: Use HOST_WIDE_INT_M1U instead of
6282         ~(unsigned HOST_WIDE_INT) 0.
6283         * double-int.h: Ditto.
6284         * dse.c: Ditto.
6285         * dwarf2asm.c:Ditto.
6286         * expmed.c: Ditto.
6287         * genmodes.c: Ditto.
6288         * match.pd: Ditto.
6289         * read-rtl.c: Ditto.
6290         * tree-ssa-loop-ivopts.c: Ditto.
6291         * tree-ssa-loop-prefetch.c: Ditto.
6292         * tree-vect-generic.c: Ditto.
6293         * tree-vect-patterns.c: Ditto.
6294         * tree.c: Ditto.
6296 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6298         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
6299         constant addresses outside [0,0xc0] into a register.
6300         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
6301         cases where the base address register is unused after.
6302         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
6303         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
6304         (avr_out_store_psi_reg_disp_tiny): Same.
6306 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6308         Implement attribute progmem on reduced Tiny cores by adding
6309         flash offset 0x4000 to respective symbols.
6311         PR target/71948
6312         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
6313         documentation how it works on reduced Tiny cores.
6314         (AVR Named Address Spaces): No support for reduced Tiny.
6315         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
6316         (avr_address_tiny_pm_p): New static function.
6317         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
6318         if the address is in progmem.
6319         (avr_assemble_integer): Same.
6320         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
6321         for symbol_ref in progmem.
6322         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
6323         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
6324         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
6326 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
6328         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
6329         * configure: Regenerate.
6330         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
6331         (USE_THIN_ARCHIVES): New variable.
6332         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
6333         this archive as a thin archive.
6335 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6337         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
6338         same location as last time, don't skip if we have fix-it hints.
6339         Clarify the skipping logic by converting it from one "if" clause
6340         to repeated "if" clauses.
6341         * spellcheck-tree.c: Include "cpplib.h".
6342         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
6343         (best_macro_match::best_macro_match): New constructor.
6344         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
6345         Move here from c/c-decl.c.
6346         (class best_macro_match): Move here from c/c-decl.c, converting
6347         from a typedef to a subclass, gaining a ctor.
6349 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6351         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
6352         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
6353         define...
6354         (avr_addr_space_diagnose_usage): ...and implementation.
6355         (avr_addr_space_supported_p): New function.
6356         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
6357         report bad address space usage if that space is supported.
6358         (avr_insert_attributes): Same.  No more complain about unsupported
6359         address spaces.
6360         * config/avr/avr-c.c (tm_p.h): Include it.
6361         (avr_cpu_cpp_builtins): Only define addr-space related built-in
6362         macro if avr_addr_space_supported_p.
6364 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
6366         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
6367         flag_toplevel_reorder.
6369 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
6371         * gcc-rich-location.c
6372         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
6373         a const char *.
6374         * gcc-rich-location.h
6375         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
6377 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
6379         * target.def (addr_space): Add new diagnose_usage to hook vector.
6380         * targhooks.c (default_addr_space_diagnose_usage): Add default
6381         implementation and...
6382         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
6383         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
6384         is some address space, call targetm.addr_space.diagnose_usage.
6385         * doc/tm.texi.in (Named Address Spaces): Add anchor for
6386         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
6387         * doc/tm.texi: Regenerate.
6389 2016-07-20  Martin Liska  <mliska@suse.cz>
6391         PR middle-end/71898
6392         * graphite-isl-ast-to-gimple.c (later_of_the_two):
6393         Properly handly PHI stmts.
6395 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
6397         PR tree-optimization/71503
6398         PR tree-optimization/71683
6399         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
6400         and break.
6402 2016-07-20  Martin Liska  <mliska@suse.cz>
6404         * doc/invoke.texi (-fipa-ra): Document when the option is
6405         disabled. Fix a typo.
6407 2016-07-20  Martin Liska  <mliska@suse.cz>
6409         * Makefile.in: Include fibonacci_heap.c
6410         * fibonacci_heap.c: New file.
6411         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
6412         (fibonacci_heap::union_with): Fix deletion of the second heap.
6413         * selftest-run-tests.c (selftest::run_tests): Incorporate
6414         fibonacci heap tests.
6415         * selftest.h: Declare fibonacci_heap_c_tests.
6417 2016-07-20  Martin Liska  <mliska@suse.cz>
6419         * selftest-run-tests.c (selftest::run_tests): New function.
6420         * selftest.h (sreal_c_tests): Declare.
6421         * sreal.c (sreal_verify_basics): New function.
6422         (verify_aritmetics): Likewise.
6423         (sreal_verify_arithmetics): Likewise.
6424         (verify_shifting): Likewise.
6425         (sreal_verify_shifting): Likewise.
6426         (void sreal_c_tests): Likewise.
6428 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6430         PR rtl-optimization/71916
6431         * cfgrtl.c (contains_no_active_insn_p): Return false also for
6432         bb which have a single succ fake edge.
6434 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
6436         PR debug/71855
6437         * dwarf2out.c (gen_subprogram_die): Only call
6438         gen_unspecified_parameters_die while dumping early dwarf.
6440 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
6442         PR middle-end/71874
6443         * gimple-fold.c (fold_builtin_memory_op): Use
6444         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6446 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
6448         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
6449         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
6450         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
6451         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
6452         * combine.c: Ditto.
6453         * cse.c: Ditto.
6454         * dojump.c: Ditto.
6455         * double-int.c: Ditto.
6456         * dse.c: Ditto.
6457         * dwarf2out.c: Ditto.
6458         * expmed.c: Ditto.
6459         * expr.c: Ditto.
6460         * fold-const.c: Ditto.
6461         * function.c: Ditto.
6462         * fwprop.c: Ditto.
6463         * genmodes.c: Ditto.
6464         * hwint.c: Ditto.
6465         * hwint.h: Ditto.
6466         * ifcvt.c: Ditto.
6467         * loop-doloop.c: Ditto.
6468         * loop-invariant.c: Ditto.
6469         * loop-iv.c: Ditto.
6470         * match.pd: Ditto.
6471         * optabs.c: Ditto.
6472         * real.c: Ditto.
6473         * reload.c: Ditto.
6474         * rtlanal.c: Ditto.
6475         * simplify-rtx.c: Ditto.
6476         * stor-layout.c: Ditto.
6477         * toplev.c: Ditto.
6478         * tree-ssa-loop-ivopts.c: Ditto.
6479         * tree-vect-generic.c: Ditto.
6480         * tree-vect-patterns.c: Ditto.
6481         * tree.c: Ditto.
6482         * tree.h: Ditto.
6483         * ubsan.c: Ditto.
6484         * varasm.c: Ditto.
6485         * wide-int-print.cc: Ditto.
6486         * wide-int.cc: Ditto.
6487         * wide-int.h: Ditto.
6489 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6491         * selftest.c (selftest::assert_streq): Handle NULL values of
6492         val_actual and val_expected.
6494 2016-07-19  Martin Jambor  <mjambor@suse.cz>
6496         PR fortran/71688
6497         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
6498         rather than cgraph_create_node to get a call graph node.
6500 2016-07-19  Richard Biener  <rguenther@suse.de>
6502         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
6503         handle all tcc_constant bases and valueize SSA names.
6504         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
6505         tcc_constant bases.
6507 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
6509         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
6510         the flags of the exit block and bb2, not just the entry block.
6512 2016-07-19  Richard Biener  <rguenther@suse.de>
6514         PR tree-optimization/71901
6515         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
6516         align member, group stuff with the bitfield.
6517         (vn_ref_op_align_unit): New inline.
6518         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
6519         record element alignment and operand 3 unchanged.
6520         (ao_ref_init_from_vn_reference): Adjust.
6521         (valueize_refs_1): Likewise.
6522         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
6524 2016-07-19  Richard Biener  <rguenther@suse.de>
6526         PR tree-optimization/71908
6527         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
6528         symbolic constants in a more reliable way.
6530 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
6532         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
6533         comment.
6534         (vect_update_inits_of_drs): Likewise.
6535         (vect_create_cond_for_alias_checks): Likewise.
6536         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
6538 2016-07-19  Richard Biener  <rguenther@suse.de>
6540         PR lto/71907
6541         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
6542         with an abstract origin that is not an inlined function outer
6543         scope add a self-reference as abstract origin.
6544         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
6546 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6548         PR target/71493
6549         * config/rs6000/rs6000.c (rs6000_function_value): Fix
6550         unintentional System V.4 structure return breakage for structures
6551         with a single floating point element.
6553 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
6555         PR tree-optimization/71734
6556         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
6557         contains REF, use it to check safelen, assume that safelen value
6558         must be greater 1, fix style.
6559         (ref_indep_loop_p_2): Add REF_LOOP argument.
6560         (ref_indep_loop_p): Pass LOOP as additional argument to
6561         ref_indep_loop_p_2.
6563 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6565         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
6566         allocation in the prologue.
6567         * explow.c (get_dynamic_stack_base): New function to return an address
6568         expression for the dynamic stack base.
6569         (get_dynamic_stack_size): New function to do the required dynamic stack
6570         space size calculations.
6571         (allocate_dynamic_stack_space): Use new functions.
6572         (align_dynamic_address): Move some code from
6573         allocate_dynamic_stack_space to new function.
6574         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
6576 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6578         * config/s390/s390.c (s390_encode_section_info): Always set
6579         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
6580         found.
6582 2016-07-18  Richard Biener  <rguenther@suse.de>
6584         PR tree-optimization/71893
6585         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
6586         for sizetype cast added by array_ref_element_size.
6587         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6589 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
6591         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
6592         register parameters.  Remove code to initialize argument pointer
6593         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
6594         using a pc-relative branch.  Cleanup conditional code.
6595         * config/pa/pa.md (call_mcount): New expander.
6596         (call_mcount_nonpic): New insn.
6597         (call_mcount_pic): New insn and split.
6598         (call_mcount_pic_post_reload): New insn.
6599         (call_mcount_64bit): New insn and split.
6600         (call_mcount_64bit_post_reload): New insn.
6602 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
6604         * config/avr/predicates.md (const_m255_to_m1_operand): New.
6605         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
6606         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
6607         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
6608         (*usum_widenqihi3, *udiff_widenqihi3)
6609         (*addhi3_zero_extend.const): New combiner insns.
6610         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
6611         just 1 bit is affected.
6612         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
6613         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
6615 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
6617         * omp-low.c (lower_omp_target): Mark data clauses with
6618         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
6619         zero-length subarrays.
6621 2016-07-15  Richard Biener  <rguenther@suse.de>
6623         PR tree-optimization/71881
6624         * tree-loop-distribution.c (destroy_loop): Remove blocks in
6625         reverse DOM order to make debug temp generation happy.
6627 2016-07-15  Richard Biener  <rguenther@suse.de>
6629         PR tree-optimization/71887
6630         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
6631         verify it is not zero for division / modulo handling.
6632         (value_replacement): Adjust.
6634 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
6635             Julian Brown  <julian@codesourcery.com>
6637         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
6638         * config/aarch64/aarch64-cost-tables.h
6639         (vulcan_extra_costs): New variable.
6640         * config/aarch64/aarch64.c
6641         (vulcan_addrcost_table): Likewise.
6642         (vulcan_regmove_cost): Likewise.
6643         (vulcan_vector_cost): Likewise.
6644         (vulcan_branch_cost): Likewise.
6645         (vulcan_tunings): Likewise.
6647 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
6649         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
6650         (output_in_order): Loop over undefined variables too.  Output them
6651         via assemble_undefined_decl.  Skip variables that correspond to hard
6652         registers or have value-exprs.
6653         * varpool.c (symbol_table::output_variables): Handle undefined
6654         variables together with defined ones.
6656 2016-07-15  Richard Biener  <rguenther@suse.de>
6658         * tree-ssa-pre.c (get_representative_for): Make sure to return
6659         the value number of SSA names.
6660         (phi_translate_1): get_representative_for cannot return NULL.
6661         (do_pre_regular_insertion): Remove redundant call to
6662         fully_constant_expression.
6663         (do_pre_partial_partial_insertion): Likewise.
6665 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
6667         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
6668         (derive_simple_iv_with_niters): New function.
6669         (simple_iv): Rewrite using simple_iv_with_niters.
6670         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
6671         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
6672         function.
6673         (number_of_iterations_exit): Rewrite using above function.
6674         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
6675         Decl.
6677 2016-07-15  Richard Biener  <rguenther@suse.de>
6679         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
6680         vec_construct cost.
6682 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
6684         PR tree-optimization/71872
6685         * tree-data-ref.c (get_references_in_stmt): Ignore references
6686         with is_gimple_constant get_base_address.
6688 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6690         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
6691         (TARGET_HAVE_LDACQD): New macro.
6692         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
6693         than TARGET_HAVE_LDACQ.
6694         (arm_load_acquire_exclusivedi): Likewise.
6695         (arm_store_release_exclusivedi): Likewise.
6697 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6699         PR rtl-optimization/71878
6700         * lra-constraints.c (match_reload): Pass information about other
6701         output operands.  Create new unique register value if matching input
6702         operand shares same register value as output operand being considered.
6703         (curr_insn_transform): Record output operands already processed.
6705 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6707         PR target/65951
6708         PR tree-optimization/70923
6709         * tree-vect-patterns.c: Include mult-synthesis.h.
6710         (target_supports_mult_synth_alg): New function.
6711         (synth_lshift_by_additions): Likewise.
6712         (apply_binop_and_append_stmt): Likewise.
6713         (vect_synth_mult_by_constant): Likewise.
6714         (target_has_vecop_for_code): Likewise.
6715         (vect_recog_mult_pattern): Use above functions to synthesize vector
6716         multiplication by integer constants.
6718 2016-07-14  Alan Modra  <amodra@gmail.com>
6720         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
6721         gpr alternatives.  Correct '*' placement on Y,r alternative.
6722         Add '*' on operand 1 of r,r alternative.
6724 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6726         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
6727         * expmed.h: ... Here.
6729 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
6731         * gimple.h (stmt_can_terminate_bb_p): New function.
6732         * tree-cfg.c (need_fake_edge_p): Rename to ...
6733         (stmt_can_terminate_bb_p): ... this; return true if stmt can
6734         throw external; handle const and pure calls.
6735         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
6737 2016-07-14  Richard Biener  <rguenther@suse.de>
6739         PR tree-optimization/71866
6740         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
6741         (do_hoist_insertion): Avoid endless recursion when we
6742         didn't insert anything because we managed to simplify
6743         things down to a constant or SSA name.
6744         (fully_constant_expression): Re-write in terms of ...
6745         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
6746         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
6747         vn_nary_build_or_lookup_1.
6748         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
6749         (vn_nary_build_or_lookup): ... this which now wraps it.
6751 2016-07-14  Alan Modra  <amodra@gmail.com>
6753         PR target/71733
6754         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
6755         with p9_vector override before power9-dform override.
6757 2016-07-13  Andi Kleen  <ak@linux.intel.com>
6759         * value-prof.c (gimple_value_profile_transformations): Don't run
6760         when auto_profile is on.
6762 2016-07-13  Andi Kleen  <ak@linux.intel.com>
6764         * auto-profile.c (update_inlined_ind_target,
6765         afdo_indirect_call): Print information to dump file.
6767 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
6769         * genrecog.c (special_predicate_operand_p): New function.
6770         (predicate_name): Move function.
6771         (validate_pattern): Don't warn about missing mode for all
6772         define_special_predicate predicates.
6774 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
6776         * tree-vect-data-refs.c (vect_no_alias_p): New function.
6777         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
6778         resolve alias checks which are known at compilation time.
6779         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
6780         alias checks are resolved.  Move dump info for too many runtime
6781         alias checks to here...
6782         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
6784 2016-07-13  Richard Biener  <rguenther@suse.de>
6786         PR tree-optimization/24574
6787         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
6788         position and add shift, rotate, divison and modulo support
6789         for left zero.
6790         (value_replacement): Pass in argument position to absorbing_element_p.
6792 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
6794         PR ipa/71633
6795         * ipa-inline-transform.c (inline_call): Support
6796         instrumented thunks.
6798 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6800         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
6801         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
6802         divide feature.
6803         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
6804         Baseline.  Make initial alternative TARGET_32BIT only.
6805         (udivsi3): Likewise.
6806         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
6807         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
6808         target.
6810 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6812         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
6813         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
6814         availability with TARGET_HAVE_MOVT.
6815         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
6816         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
6817         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
6818         UINTVAL.
6819         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
6820         extra instruction if MOVW is available.  Use a cost variable
6821         incremented by COSTS_N_INSNS (1) when the condition match rather than
6822         returning an arithmetic expression based on COSTS_N_INSNS.  Make
6823         constant with bottom half word zero cost 2 instruction if MOVW is
6824         available.
6825         * config/arm/arm.md (define_attr "arch"): Add v8mb.
6826         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
6827         target is ARMv8-M Baseline.
6828         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
6829         (arm_movtas_ze): Likewise.
6830         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
6831         alternative for constants satisfying j constraint.
6832         (thumb1_movsi_insn): Likewise.
6833         (movsi splitter for K alternative): Tighten condition to not trigger
6834         if movt is available and j constraint is satisfied.
6835         (Pe immediate splitter): Likewise.
6836         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
6837         constant fitting in an halfword to use MOVW.
6838         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
6839         effective target.
6841 2016-07-13  Richard Biener  <rguenther@suse.de>
6843         PR middle-end/71104
6844         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
6845         gimplifying the LHS.  Make sure to gimplify a returning twice
6846         call LHS without using SSA names.
6848 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6850         * tree-data-ref.c (find_data_references_in_stmt): Remove
6851         unnecessary call to vec::release.
6852         (graphite_find_data_references_in_stmt): Likewise.
6853         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
6854         * tree-vect-stmts.c (vectorizable_condition): Likewise.
6856 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6858         * cfgexpand.c (expand_used_vars): Make the type of a local
6859         variable auto_vec.
6860         * genmatch.c (lower_for): Likewise.
6861         * haifa-sched.c (haifa_sched_init): Likewise.
6862         (add_to_speculative_block): Likewise.
6863         (create_check_block_twin): Likewise.
6864         * predict.c (handle_missing_profiles): Likewise.
6865         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
6866         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
6867         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
6868         Likewise.
6869         (maybe_lower_iteration_bound): Likewise.
6870         * tree-ssa-sccvn.c (DFS): Likewise.
6871         * tree-stdarg.c (reachable_at_most_once): Likewise.
6872         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
6873         (vectorizable_store): Likewise.
6875 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6877         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
6878         (sccvn_dom_walker): make cond_stack an auto_vec.
6880 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6882         * ree.c (struct ext_state): Make type of members auto_vec.
6883         (find_and_remove_re): Adjust.
6885 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6887         * cfgexpand.c (struct stack_vars_data): Make type of fields
6888         auto_vec.
6889         (expand_used_vars): Adjust.
6891 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6893         * ipa.c (record_cdtor_fn): Adjust.
6894         (build_cdtor_fns): Likewise.
6895         (ipa_cdtor_merge): Make static_ctors and static_dtors local
6896         variables.
6898 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6900         * genextract.c (struct accum_extract): Add constructor and make
6901         members auto_vec.
6902         (gen_insn): Adjust.
6904 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6906         * tree.c (struct free_lang_data_d): Add constructor and change
6907         types of members to ones that automatically manage resources.
6908         (fld_worklist_push): Adjust.
6909         (find_decls_types): Likewise.
6910         (find_decls_types_in_eh_region): Likewise.
6911         (free_lang_data_in_cgraph): Stop manually creating and
6912         destroying members of free_lang_data_d.
6914 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
6916         PR rtl-optimization/68961
6917         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
6918         peephole variant.  Use sse_reg_operand predicates.
6920 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
6922         * config/i386/predicates.md (x86_64_immediate_operand)
6923         <case CONST_INT>: Remove unneeded truncation to DImode.
6924         <case CONST>: Ditto.
6925         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
6927 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6929         PR target/71805
6930         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
6931         The xxperm and xxpermr instructions require that the 2nd input
6932         operand overlap with the output operand, and not the 1st.
6933         (altivec_vperm_v8hiv16qi): Likewise.
6934         (altivec_vperm_<mode>_uns_internal): Likewise.
6935         (altivec_vpermr_<mode>_internal): Likewise.
6936         (vperm_v8hiv4si): Likewise.
6937         (vperm_v16qiv8hi): Likewise.
6939 2016-07-12  Nathan Sidwell  <nathan@acm.org>
6941         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
6942         when -mno-pic-data-is-text-relative is in effect, by default.
6943         * doc/invoke.texi (mpic-data-is-text-relative): Document new
6944         behavior and clarify.
6946 2016-07-12  Martin Liska  <mliska@suse.cz>
6948         * params.def: Add avg-loop niter.
6949         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
6950         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
6951         * doc/invoke.texi: Document the new parameter.
6953 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6955         PR middle-end/71700
6956         * expr.c (store_constructor): Mask sign-extended bits when widening
6957         sub-word constructor element at the start of a word.
6959 2016-07-12  Martin Liska  <mliska@suse.cz>
6961         * Makefile.in: Append rule for params-options.h.
6962         * params-options.h: New file.
6964 2016-07-12  Martin Liska  <mliska@suse.cz>
6966         * ira-build.c (mark_loops_for_removal): Properly iterate
6967         loops.
6969 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
6970             Richard Biener  <rguenther@suse.de>
6972         PR tree-optimization/23286
6973         PR tree-optimization/70159
6974         * doc/invoke.texi: Document -fcode-hoisting.
6975         * common.opt (fcode-hoisting): New flag.
6976         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
6977         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
6978         (do_regular_insertion): Rename to ...
6979         (do_pre_regular_insertion): ... this and amend general comments
6980         on insertion strathegy.
6981         (do_partial_partial_insertion): Rename to ...
6982         (do_pre_partial_partial_insertion): ... this.
6983         (do_hoist_insertion): New function.
6984         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
6985         and call do_hoist_insertion properly.
6986         (insert): Adjust.
6987         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
6988         (pass_pre::execute): Register hoist_insert stats.
6990 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
6992         PR middle-end/71716
6993         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
6994         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
6995         is different from mode's bitsize.  Small cleanup.
6997 2016-07-12  Richard Biener  <rguenther@suse.de>
6999         PR rtl-optimization/68961
7000         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
7001         to simplify to a non-constant.
7003 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
7005         PR middle-end/71758
7006         * omp-low.c (expand_omp_target): Gimplify device.
7008         PR tree-optimization/71823
7009         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
7010         to get vec_oprnds2 from op2.
7012 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
7014         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
7015         Hoist common subexpressions.
7016         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
7018 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
7020         PR target/71800
7021         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
7022         prevent generation of 'stxsiwx' on pre Power8 hardware.
7024 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7026         * input.c: Include cpplib.h.
7027         (selftest::temp_source_file): New class.
7028         (selftest::temp_source_file::temp_source_file): New ctor.
7029         (selftest::temp_source_file::~temp_source_file): New dtor.
7030         (selftest::should_have_column_data_p): New function.
7031         (selftest::test_should_have_column_data_p): New function.
7032         (selftest::temp_line_table): New class.
7033         (selftest::temp_line_table::temp_line_table): New ctor.
7034         (selftest::temp_line_table::~temp_line_table): New dtor.
7035         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
7036         it to create a temp_line_table.
7037         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
7038         locations that are known to have column data.
7039         (selftest::line_table_case): New struct.
7040         (selftest::test_reading_source_line): Move tempfile handling
7041         to class temp_source_file.
7042         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
7043         (selftest::assert_token_loc_eq): New function.
7044         (ASSERT_TOKEN_LOC_EQ): New macro.
7045         (selftest::test_lexer): New function.
7046         (selftest::boundary_locations): New array.
7047         (selftest::input_c_tests): Call test_should_have_column_data_p.
7048         Loop over a test matrix of interesting values of location and
7049         default_range_bits, calling test_lexer on each case in the matrix.
7050         Move call to test_accessing_ordinary_linemaps into the matrix.
7051         * selftest.h (ASSERT_EQ): Reimplement in terms of...
7052         (ASSERT_EQ_AT): New macro.
7054 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
7056         PR target/71801
7057         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
7058         Don't convert TImode in debug insn.
7060 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7062         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
7063         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
7064         (tree_type_common::lang_flag_7): New.
7065         (tree_type_common::spare): Reduce size.
7066         * tree.h (TYPE_ALIGN_OK): Remove.
7067         (TYPE_LANG_FLAG_7): New.
7068         (get_inner_reference): Adjust header.
7069         * print-tree.c (print_node): Adjust.
7070         * expr.c (get_inner_reference): Remove parameter keep_aligning.
7071         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
7072         calls to get_inner_reference.
7073         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
7074         handling of TYPE_ALIGN_OK.
7075         * builtins.c (get_object_alignment_2): Adjust call to
7076         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
7077         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
7078         TYPE_ALIGN_OK.
7079         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
7080         * cfgexpand.c (expand_debug_expr): Likewise.
7081         * dbxout.c (dbxout_expand_expr): Likewise.
7082         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
7083         loc_list_from_tree, fortran_common): Likewise.
7084         * fold-const.c (optimize_bit_field_compare,
7085         decode_field_reference, fold_unary_loc, fold_comparison,
7086         split_address_to_core_and_offset): Likewise.
7087         * gimple-laddress.c (execute): Likewise.
7088         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
7089         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
7090         * hsa-gen.c (gen_hsa_addr): Likewise.
7091         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
7092         * tsan.c (instrument_expr): Likewise.
7093         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
7094         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
7095         * tree-affine.c (tree_to_aff_combination,
7096         get_inner_reference_aff): Adjust calls to get_inner_reference.
7097         * tree-data-ref.c (split_constant_offset_1,
7098         dr_analyze_innermost): Likewise.
7099         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
7100         * tree-sra.c (ipa_sra_check_caller): Likewise.
7101         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
7102         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
7103         bswap_replace): Likewise.
7104         * tree-vect-data-refs.c (vect_check_gather,
7105         vect_analyze_data_refs): Likewise.
7106         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
7107         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
7108         TYPE_ALIGN_OK.
7110 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
7112         * Makefile.in (selftest-valgrind): New phony target.
7113         * function-tests.c (selftest::build_cfg): Delete pass instances
7114         created by the test.
7115         (selftest::convert_to_ssa): Likewise.
7116         (selftest::test_expansion_to_rtl): Likewise.
7117         * tree-cfg.c (selftest::test_linear_chain): Release dominator
7118         vectors.
7119         (selftest::test_diamond): Likewise.
7121 2016-07-11  Richard Biener  <rguenther@suse.de>
7123         PR tree-optimization/71816
7124         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
7125         than replacing all of its operands.
7127 2016-07-11  Alan Modra  <amodra@gmail.com>
7129         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
7130         (ctr<mode>): Add unspec.
7131         (ctr<mode>_internal*): Likewise.
7133 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
7135         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
7136         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
7138 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
7140         PR rtl-optimization/71621
7141         * lra-constraints.c (process_alt_operands): Check combination of
7142         reg class and mode.
7144 2016-07-08  Jason Merrill  <jason@redhat.com>
7145             Richard Biener  <rguenther@suse.de>
7147         P0145: Refining Expression Order for C++.
7148         * gimplify.c (initial_rhs_predicate_for): New.
7149         (gimplfy_modify_expr): Gimplify RHS before LHS.
7151 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7153         PR target/71297
7154         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7155         Allow standard error handling to take over when a wrong number
7156         of arguments is presented to __builtin_vec_ld () or
7157         __builtin_vec_st ().
7159 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
7161         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
7162         variants.
7163         (smin): Likewise.
7164         (fmax): New entry.
7165         (fmin): Likewise.
7166         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
7167         __builtin_aarch64_fmaxv2sf.
7168         (vmaxnmq_f32): Likewise.
7169         (vmaxnmq_f64): Likewise.
7170         (vminnm_f32): Likewise.
7171         (vminnmq_f32): Likewise.
7172         (vminnmq_f64): Likewise.
7174 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7176         PR target/71806
7177         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
7178         enable -mfloat128-hardware by default.
7179         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
7180         that IEEE 128-bit hardware support needs.
7181         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7182         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
7183         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
7184         floating point requires.
7185         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7186         -mfloat128 and -mfloat128-hardware changes.
7188 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
7190         PR tree-optimization/71667
7191         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
7193 2016-07-08  Martin Liska  <mliska@suse.cz>
7195         PR middle-end/71606
7196         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
7197         folding produces SAVE_EXPRs, thus return false for the type.
7199 2016-07-07  Martin Liska  <mliska@suse.cz>
7201         * file-find.c (remove_prefix): New function.
7202         * file-find.h (remove_prefix): Declare the function.
7203         * gcc-ar.c (main): Skip a folder of the wrapper if
7204         a wrapped binary would point to the same file.
7206 2016-07-07  Jan Hubicka  <jh@suse.cz>
7208         * tree-scalar-evolution.c (iv_can_overflow_p): export.
7209         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
7210         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
7212 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
7214         PR ipa/71624
7215         * ipa-inline-analysis.c (compute_inline_parameters): Set
7216         local.can_change_signature to false for intrumentation
7217         thunk callees.
7219 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7221         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
7222         with TARGET_HAVE_MOVT.
7223         (TARGET_HAVE_MOVT): Define.
7224         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
7225         availability with TARGET_HAVE_MOVT.
7226         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
7227         availability.
7228         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
7229         TARGET_THUMB2.
7230         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
7231         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
7232         * config/arm/constraints.md (define_constraint "j"): Use
7233         TARGET_HAVE_MOVT to check MOVT availability.
7235 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7237         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
7239 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7241         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
7242         (armv8-m.main): Likewise.
7243         (armv8-m.main+dsp): Likewise.
7244         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
7245         (FL_FOR_ARCH8M_MAIN): Likewise.
7246         * config/arm/arm-tables.opt: Regenerate.
7247         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
7248         armv8-m.main+dsp to BE8_LINK_SPEC.
7249         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
7250         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
7251         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
7252         Baseline and Mainline.
7253         (arm_option_override_internal): Also disable arm_restrict_it when
7254         !arm_arch_notm.  Update comment for -munaligned-access to also cover
7255         ARMv8-M Baseline.
7256         (arm_file_start): Increase buffer size for printing architecture name.
7257         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
7258         and armv8-m.main+dsp.
7259         (mno-unaligned-access): Clarify that this is disabled by default for
7260         ARMv8-M Baseline architectures as well.
7262 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7264         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
7265         decide whether to prevent some libgcc routines being included for some
7266         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
7267         link between this condition and the one in
7268         libgcc/config/arm/lib1func.S.
7270 2016-07-07  Richard Biener  <rguenther@suse.de>
7272         * tree-ssa-pre.c: Include alias.h.
7273         (compute_avail): If we have multiple VN_REFERENCEs with the
7274         same hashtable entry adjust that to make it a valid replacement
7275         for all of them with respect to alignment and aliasing
7276         when doing insertion.
7277         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
7278         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
7280 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
7282         PR target/70098
7283         PR target/71763
7284         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
7285         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
7286         constraint.
7288 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7290         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
7291         (adjust_mems): Adjust.
7292         (adjust_insn): Likewise.
7293         (prepare_call_arguments): Likewise.
7295 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7297         * gcse.c (struct ls_expr): Make stores field a vector.
7298         (ldst_entry): Adjust.
7299         (free_ldst_entry): Likewise.
7300         (print_ldst_list): Likewise.
7301         (compute_ld_motion_mems): Likewise.
7302         (update_ld_motion_stores): Likewise.
7304 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7306         * gcse.c (struct ls_expr): Remove loads field.
7307         (ldst_entry): Adjust.
7308         (free_ldst_entry): Likewise.
7309         (print_ldst_list): Likewise.
7310         (compute_ld_motion_mems): Likewise.
7312 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7314         * store-motion.c (struct st_expr): Make antic_stores a vector.
7315         (st_expr_entry): Adjust.
7316         (free_st_expr_entry): Likewise.
7317         (print_store_motion_mems): Likewise.
7318         (find_moveable_store): Likewise.
7319         (compute_store_table): Likewise.
7320         (remove_reachable_equiv_notes): Likewise.
7321         (replace_store_insn): Likewise.
7322         (build_store_vectors): Likewise.
7324 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7326         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
7327         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
7329 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
7331         PR tree-optimization/71518
7332         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
7333         misalign also for outer loops with negative step.
7335 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
7337         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
7338         (cortex_a53_shift): Add mov_shift.
7339         (cortex_a53_shift_reg): Add new reservation for register shifts.
7340         (cortex_a53_alu): Remove bfm.
7341         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
7342         (cortex_a53_alu_extr): Add new reservation for EXTR.
7343         (bypasses): Improve bypass modelling.
7345 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
7347         PR target/50739
7348         * config/avr/avr.c (avr_asm_select_section): Strip off
7349         SECTION_DECLARED from flags when calling get_section.
7351 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7353         * tree-vectorizer.h (vect_memory_access_type): Add
7354         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
7355         * tree-vect-stmts.c (compare_step_with_zero): New function.
7356         (perm_mask_for_reverse): Move further up file.
7357         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
7358         step is negative.
7359         (get_negative_load_store_type): New function.
7360         (get_load_store_type): Call it.  Add an ncopies argument.
7361         (vectorizable_mask_load_store): Update call accordingly and
7362         remove tests for negative steps.
7363         (vectorizable_store, vectorizable_load): Likewise.  Handle new
7364         memory_access_types.
7366 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7368         * tree-vectorizer.h (vect_memory_access_type): New enum.
7369         (_stmt_vec_info): Add a memory_access_type field.
7370         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
7371         (vect_model_store_cost): Take an access type instead of a boolean.
7372         (vect_model_load_cost): Likewise.
7373         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
7374         vect_model_store_cost and vect_model_load_cost.
7375         * tree-vect-stmts.c (vec_load_store_type): New enum.
7376         (vect_model_store_cost): Take an access type instead of a
7377         store_lanes_p boolean.  Simplify tests.
7378         (vect_model_load_cost): Likewise, but for load_lanes_p.
7379         (get_group_load_store_type, get_load_store_type): New functions.
7380         (vectorizable_store): Use get_load_store_type.  Record the access
7381         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
7382         (vectorizable_load): Likewise.
7383         (vectorizable_mask_load_store): Likewise.  Replace is_store
7384         variable with vls_type.
7386 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7388         * tree-vectorizer.h (vect_grouped_load_supported): Add a
7389         single_element_p parameter.
7390         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
7391         Check the PR65518 case here rather than in vectorizable_load.
7392         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
7393         * tree-vect-stmts.c (vectorizable_load): Likewise.
7395 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7397         * tree-vectorizer.h (gather_scatter_info): New structure.
7398         (vect_check_gather_scatter): Return a bool rather than a decl.
7399         Replace return-by-pointer arguments with a single
7400         gather_scatter_info *.
7401         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
7402         (vect_analyze_data_refs): Update call accordingly.
7403         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7404         (vectorizable_mask_load_store): Likewise.  Also record the
7405         offset dt and vectype in the gather_scatter_info.
7406         (vectorizable_store): Likewise.
7407         (vectorizable_load): Likewise.
7409 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7411         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
7412         strided groups, use the cost of N scalar accesses instead
7413         of ncopies vector accesses.
7414         (vect_model_load_cost): Likewise.
7416 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7418         * tree-vect-stmts.c (vect_cost_group_size): Delete.
7419         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
7420         variable to indicate when once-per-group costs are being used.
7421         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
7423 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
7425         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
7426         peeling-for-gaps condition.
7428 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7430         * config/s390/s390.c (s390_expand_vec_init): Force initializer
7431         element to register if it doesn't match general_operand.
7433 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
7434             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7436         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
7437         prototype.
7438         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
7439         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
7440         (SIGNBIT): New mode iterator.
7441         (Fsignbit): New mode attribute.
7442         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
7443         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
7444         when direct moves are available.
7445         (signbit<mode>2_dm): New define_insn_and_split).
7446         (signbit<mode>2_dm2): New define_insn.
7448 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7450         PR rtl-optimization/71594
7451         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
7452         into subregs of appropriate mode before trying to emit a conditional
7453         move.
7455 2016-07-05  Jan Hubicka  <jh@suse.cz>
7457         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
7458         (simple_iv): Use it.
7460 2016-07-05  Jan Hubicka  <jh@suse.cz>
7462         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
7464 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
7466         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
7467         "offmemok".
7469 2016-07-05  Jan Hubicka  <jh@suse.cz>
7471         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
7472         IV can overflow.
7474 2016-07-05  Richard Biener  <rguenther@suse.de>
7476         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
7477         Handle empty else block.
7478         (is_feasible_trace): Likewise.
7479         (split_paths): Likewise.
7481 2016-07-05  Richard Biener  <rguenther@suse.de>
7483         * tree-loop-distribution.c (distribute_loop): Fix issue with
7484         the cost model loop.
7486 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
7488         * config/arm/neon-testgen.ml: Delete.
7489         * config/arm/neon.ml: Delete.
7491 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
7493         PR c++/71739
7494         * tree.c (attribute_value_equal): Use get_attribute_name instead of
7495         directly using TREE_PURPOSE.
7497 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
7499         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
7500         * config/aarch64/aarch64_neon.h: Likewise.
7501         * config/aarch64/arm_neon.h: Likewise.
7502         * config/aarch64/atomics.md: Likewise.
7503         * config/aarch64/aarch64-simd-builtins.def: Likewise.
7504         * doc/invoke.texi: Likewise.
7506 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7508         * config/s390/s390.md: Add "z13" cpu_facility.
7509         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
7510         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
7511         condition" type instructions.
7513 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7514             Jeff Law  <law@redhat.com>
7516         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
7517         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
7519 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
7521         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
7522         permutation for TARGET_AVX512F.
7523         (ix86_expand_vec_one_operand_perm_avx512): New function.
7524         (expand_vec_perm_1): Invoke introduced function.
7525         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7526         it may be not valid after vectorization.
7528 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7530         PR target/63874
7531         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
7532         typo in comment.  Only force to memory if it is a weak
7533         external reference.
7535 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
7536             Jiong Wang  <jiong.wang@arm.com>
7538         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
7539         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
7540         (AARCH64_FL_F16): New.
7541         (AARCH64_FL_FOR_ARCH8_2): New.
7542         (AARCH64_ISA_8_2): New.
7543         (AARCH64_ISA_F16): New.
7544         (TARGET_FP_F16INST): New.
7545         (TARGET_SIMD_F16INST): New.
7546         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
7547         ("fp"): Disabling "fp" also disables "fp16".
7548         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
7549         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
7550         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
7551         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
7553 2016-07-04  Jan Beulich  <jbeulich@suse.com>
7555         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
7557 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7559         PR target/71720
7560         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
7561         the insns, use an insn form that does not adjust the offset on
7562         little endian systems.
7564 2016-07-01  Jan Beulich  <jbeulich@suse.com>
7566         * varasm.c (get_variable_section): Validate initializer in
7567         named .bss-like sections.
7569 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7571         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
7572         Exchange the order of the second and third operands in the vpermr
7573         instruction tmeplate.
7575 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
7577         PR target/71698
7578         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
7579         Disallow TDmode values.
7581 2016-07-01  Alan Modra  <amodra@gmail.com>
7583         PR rtl-optimization/71709
7584         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
7585         being set, not referenced.
7587 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
7589         PR tree-optimization/70729
7590         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
7591         of loop since it can be not valid after transformation.
7593 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7595         * config/arm/arm.c (thumb_reload_in_hi): Delete.
7596         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
7598 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
7600         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
7601         for NULL decl.
7603 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7605         PR target/71677
7606         * config/rs6000/constraints.md (wY constraint): New constraint to
7607         match the requirements for the LXSD and STXSD instructions.
7608         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
7609         predicate to match the requirements for the LXSD and STXSD
7610         instructions.
7611         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
7612         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
7613         to make sure that the bottom 2 bits of offset are 0, the address
7614         form is offsettable, and no updating is done in the address mode.
7615         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
7616         (movdi_internal32): Likewise
7617         (movdi_internal64): Likewise.
7619 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
7621         PR tree-optimization/71707
7622         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
7623         strinfo even for ADDR_EXPR ptr.
7625 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7627         * config/rs6000/altivec.md (darn_32): Change the condition to
7628         TARGET_P9_MISC instead of TARGET_MODULO.
7629         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
7630         condition expression.
7631         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
7632         condition expression.
7633         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
7634         (DFP_TEST): New code iterator.
7635         (dfptstsfi_<code>_mode>): New define_expand.
7636         (*dfp_sgnfcnc_<mode>): New define_insn.
7637         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
7638         definition next to BU_P9_MISC_1 definition and change the MASK
7639         value to RS6000_BTM_P9_MISC.
7640         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
7641         (BU_P9_64BIT_MISC_0): Likewise.
7642         (BU_P9_DFP_MISC_0): New macro definition.
7643         (BU_P9_DFP_MISC_1): New macro definition.
7644         (BU_P9_DFP_MISC_2): New macro definition.
7645         (BU_P9_DFP_OVERLOAD_1): New macro definition.
7646         (BU_P9_DFP_OVERLOAD_2): New macro definition.
7647         (BU_P9_DFP_OVERLOAD_3): New macro definition.
7648         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
7649         (TSTSFI_LT_TD): Likewise.
7650         (TSTSFI_EQ_DD): Likewise.
7651         (TSTSFI_EQ_TD): Likewise.
7652         (TSTSFI_GT_DD): Likewise.
7653         (TSTSFI_GT_TD): Likewise.
7654         (TSTSFI_OV_DD): Likewise.
7655         (TSTSFI_OV_TD): Likewise.
7656         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
7657         (TSTSFI_LT_DD): Likewise.
7658         (TSTSFI_LT_TD): Likewise.
7659         (TSTSFI_EQ): Likewise.
7660         (TSTSFI_EQ_DD): Likewise.
7661         (TSTSFI_EQ_TD): Likewise.
7662         (TSTSFI_GT): Likewise.
7663         (TSTSFI_GT_DD): Likewise.
7664         (TSTSFI_GT_TD): Likewise.
7665         (TSTSFI_OV): Likewise.
7666         (TSTSFI_OV_DD): Likewise.
7667         (TSTSFI_OV_TD): Likewise.
7668         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7669         overloaded test significance functions.
7670         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7671         OPTION_MASK_P9_MISC into the representation of this mask.
7672         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
7673         of this mask.
7674         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
7675         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
7676         non-zero.
7677         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
7678         argument is a 6-bit unsigned literal value if the icode argument
7679         represents a DFP test significance built-in call.
7680         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
7681         flag used independently and in combination with the
7682         RS6000_BTM_64BIT flag.
7683         (rs6000_opt_masks): Add entry for power9-misc command-line option.
7684         (rs6000_builtin_mask_names): Add entry for power9-misc
7685         command-line option.
7686         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
7687         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
7688         RS6000_BTM_P9_MISC macros.
7689         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
7690         option and change the description of the -mpower9-vector option to
7691         enable only vector instructions, removing its erroneously claimed
7692         support for scalar instructions.
7693         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
7694         the ISA 3.0 digital floating point test significance built-in
7695         functions.
7697 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
7699         * config/aarch64/aarch64.c (cortexa35_tunings):
7700         Enable AES fusion.  Use cortexa57_branch_cost.
7701         (cortexa53_tunings): Use cortexa57_branch_cost.
7702         (cortexa72_tunings): Use cortexa57_branch_cost.
7703         Use AUTOPREFETCHER_WEAK.
7704         (cortexa73_tunings): Use cortexa57_branch_cost.
7706 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7707             James Greenhalgh  <james.greenhalgh@arm.com>
7709         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
7710         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
7711         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
7712         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
7713         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
7714         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
7715         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
7716         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
7717         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
7718         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
7719         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
7720         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
7721         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
7722         New intrinsics.
7724 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
7725             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7727         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
7728         New define_insn.
7729         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
7731 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
7733         PR driver/71651
7734         * gcc.c (driver::build_option_suggestions): Pass "option" to
7735         add_misspelling_candidates.
7736         * opts-common.c (add_misspelling_candidates): Add "option" param;
7737         use it to avoid adding negated forms for options marked with
7738         RejectNegative.
7739         * opts.h (add_misspelling_candidates): Add "option" param.
7741 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
7743         PR middle-end/71693
7744         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
7745         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
7746         first when permuting bitwise operation with rotate.  Cast
7747         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
7749 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
7751         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
7752         for misspelled param names.
7753         * params.c: Include spellcheck.h.
7754         (find_param_fuzzy): New function.
7755         * params.h (find_param_fuzzy): New prototype.
7756         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
7757         * spellcheck.h (struct edit_distance_traits<const char *>):
7758         ...here.
7760 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
7762         * config/rs6000/predicates.md (const_0_to_7_operand): New
7763         predicate, recognize 0..7.
7764         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7765         support for doing extracts from V16QImode, V8HImode, V4SImode
7766         under ISA 3.0.
7767         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
7768         vector extract support.
7769         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
7770         for ISA 3.0 vector extract.
7771         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
7772         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
7773         extracts of a constant element number from small integer vectors
7774         on 64-bit ISA 3.0 systems.
7775         (vsx_extract_<mode>_di): Likewise.
7776         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
7777         say when we can do ISA 3.0 vector extracts.
7778         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
7779         registers, using the stxsiwx instruction.
7781 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
7783         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
7784         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
7785         qdf24xx_regmove_cost, qdf24xx_tunings): New.
7786         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
7787         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
7788         * config/arm/arm.c (arm_qdf24xx_tune): New.
7790 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
7792         * config/aarch64/aarch64.c (cortexa53_tunings):
7793         Increase loop alignment to 8.  Set function alignment to 16.
7794         (cortexa35_tunings): Likewise.
7795         (cortexa57_tunings): Increase loop alignment to 8.
7796         (cortexa72_tunings): Likewise.
7797         (cortexa73_tunings): Likewise.
7799 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
7801         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
7802         for arm_fp16_ok and arm_fp16_hw.
7803         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
7804         arm_fp16_alternative.
7806 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7808         PR tree-optimization/71655
7809         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
7810         types when swapping operands.
7812 2016-06-29  Martin Liska  <mliska@suse.cz>
7814         PR middle-end/71585
7815         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
7816         * ipa-inline-transform.c (inline_call): Remove unnecessary call
7817         of build_optimization_node.
7819 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
7821         PR tree-optimization/70729
7822         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
7823         independent in loops having positive safelen value.
7824         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
7825         it may be not valid after vectorization.
7827 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
7829         PR tree-optimization/71625
7830         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
7831         is sorted by ascending list->offset.  If PTR is non-NULL and there is
7832         previous strinfo, call get_stridx_plus_constant.
7833         (get_stridx): Pass exp as second argument to get_addr_stridx.
7834         (addr_stridxptr): Add missing list = list->next, so that there can be
7835         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
7836         the list is sorted by ascending list->offset.
7837         (get_stridx_plus_constant): Adjust so that it can be also called with
7838         ADDR_EXPR instead of SSA_NAME as PTR.
7839         (handle_char_store): Pass NULL_TREE as second argument to
7840         get_addr_stridx.
7842 2016-06-29  Richard Biener  <rguenther@suse.de>
7844         PR rtl-optimization/68961
7845         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
7847 2016-06-29  Richard Biener  <rguenther@suse.de>
7849         PR middle-end/71002
7850         * alias.c (component_uses_parent_alias_set_from): Handle
7851         type punning through union accesses by using the union alias set.
7852         * gimple.c (gimple_get_alias_set): Remove union type punning case.
7854 2016-07-29  Richard Biener  <rguenther@suse.de>
7856         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
7857         precision not matching mode precision.
7859 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
7861         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
7862         pa_output_arg_descriptor.
7863         (call_val_symref_64bit_post_reload): Likewise.
7864         (call_val_powf_64bit_post_reload): Likewise.
7865         (sibcall_internal_symref_64bit): Likewise.
7866         (sibcall_value_internal_symref_64bit): Likewise.
7868 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
7870         PR middle-end/71626
7871         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
7872         a constant, force its SUBREG_REG into memory or register instead
7873         of whole op1.
7875 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
7877         PR target/58655
7878         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
7879         * doc/invoke.texi (AVR Options): Document it.
7881 2016-06-28  Walter Lee  <walt@tilera.com>
7883         * config/tilegx/linux.h: Do not include arch/icache.h
7884         (CLEAR_INSN_CACHE): Provide inlined definition directly.
7885         * config/tilepro/linux.h: Do not include arch/icache.h
7886         (CLEAR_INSN_CACHE): Provide inlined definition directly.
7888 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
7890         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
7891         for big-endian BIT_FIELD_REF.
7893 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
7895         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
7896         ('size' attribute): Add '128'.
7897         Include power9.md.
7898         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
7899         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
7900         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
7901         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
7902         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
7903         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
7904         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
7905         *trunc<mode>df2_odd): Set size attribute to '128'.
7906         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
7907         * config/rs6000/power6.md (power6-fp): Include dfp type.
7908         * config/rs6000/power7.md (power7-fp): Likewise.
7909         * config/rs6000/power8.md (power8-fp): Likewise.
7910         * config/rs6000/power9.md: New file.
7911         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
7912         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
7913         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
7914         htmsimple.
7915         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
7916         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
7917         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
7918         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
7919         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
7920         dfp_dscri_<mode>): Change type attribute to dfp.
7921         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
7922         attribute to vecsimple.
7923         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
7924         and prefetch streams.
7925         (rs6000_option_override_internal): Remove temporary code setting
7926         tuning to power8.  Don't set rs6000_sched_groups for power9.
7927         (last_scheduled_insn): Change to rtx_insn *.
7928         (divide_cnt, vec_load_pendulum): New variables.
7929         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
7930         (rs6000_issue_rate): Set issue rate for Power9.
7931         (is_power9_pairable_vec_type): New.
7932         (power9_sched_reorder2): New.
7933         (rs6000_sched_reorder2): Call new function for Power9 specific
7934         reordering.
7935         (insn_must_be_first_in_group): Remove Power9.
7936         (insn_must_be_last_in_group): Likewise.
7937         (force_new_group): Likewise.
7938         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
7939         Initialize divide_cnt/vec_load_pendulum.
7940         (_rs6000_sched_context, rs6000_init_sched_context,
7941         rs6000_set_sched_context): Handle context save/restore of new
7942         variables.
7944 2016-06-28  Richard Biener  <rguenther@suse.de>
7946         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7947         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
7948         COMPONENT_REF operand.
7949         (nonoverlapping_component_refs_p): Likewise.
7950         * stor-layout.c (start_bitfield_representative): Mark
7951         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
7953 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
7955         * Makefile.in: Don't cat ../stage_current if it does not exist.
7957         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
7958         last argument is a bit-field.
7960         PR rtl-optimization/71673
7961         * internal-fn.c (expand_arith_overflow_result_store): Use
7962         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
7963         expand_simple_binop.
7965         PR middle-end/66867
7966         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
7967         expand_ifn_atomic_compare_exchange): New functions.
7968         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
7969         * tree.h (build_call_expr_internal_loc): Rename to ...
7970         (build_call_expr_internal_loc_array): ... this.  Fix up type of
7971         last argument.
7972         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
7973         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
7974         ATOMIC_COMPARE_EXCHANGE result.
7975         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
7976         * gimple-fold.h (optimize_atomic_compare_exchange_p,
7977         fold_builtin_atomic_compare_exchange): New prototypes.
7978         * gimple-fold.c (optimize_atomic_compare_exchange_p,
7979         fold_builtin_atomic_compare_exchange): New functions..
7980         * tree-ssa.c (execute_update_addresses_taken): If
7981         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
7982         of call when finding addressable vars, and if such var becomes
7983         non-addressable, call fold_builtin_atomic_compare_exchange.
7985 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
7987         PR target/71670
7988         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
7989         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
7991 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
7993         * config/rs6000/rs6000.md ('type' attribute): Add
7994         veclogical,veccmpfx,vecexts,vecmove insn types.
7995         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
7996         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
7997         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
7998         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
7999         *nabs<mode>2_hw): Change type to vecmove.
8000         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
8001         *boolcc<mode>3_internal, *eqv<mode>3_internal,
8002         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
8003         *ieee_128bit_vsx_abs<mode>2_internal,
8004         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
8005         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
8006         *ieee128_mtvsrd_32bit): Change type to veclogical.
8007         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
8008         *movdi_internal32, *movdi_internal64): Update insn types.
8009         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
8010         vsx_extract_<mode>): Change type to veclogical.
8011         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
8012         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
8013         *vsx_sign_extend_si_v2di): Change type to vecexts.
8014         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
8015         type to veclogical.
8016         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
8017         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
8018         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
8019         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
8020         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
8021         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
8022         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
8023         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
8024         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
8025         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
8026         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
8027         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
8028         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
8029         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
8030         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
8031         (ppc7450-vecsimple): Add veclogical, vecmove.
8032         (ppc7450-veccmp): Add veccmpfx.
8033         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
8034         vecmove.
8035         (ppc8540_vector_compare): Add veccmpfx.
8036         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
8037         * config/rs6000/cell.md (cell-fp): Add fpsimple.
8038         (cell-vecsimple): Add veclogical, vecmove.
8039         (cell-veccmp): Add veccmpfx.
8040         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
8041         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
8042         veccmpfx.
8043         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
8044         * config/rs6000/power4.md (power4-fp): Add fpsimple.
8045         (power4-vecsimple): Add veclogical, vecmove.
8046         (power4-veccmp): Add veccmpfx.
8047         * config/rs6000/power5.md (power5-fp): Add fpsimple.
8048         * config/rs6000/power6.md (power6-fp): Add fpsimple.
8049         (power6-vecsimple): Add veclogical, vecmove.
8050         (power6-veccmp): Add veccmpfx.
8051         * config/rs6000/power7.md (power7-fp): Add fpsimple.
8052         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
8053         * config/rs6000/power8.md (power8-fp): Add fpsimple.
8054         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
8055         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
8056         * config/rs6000/titan.md (titan_fp): Add fpsimple.
8057         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
8058         fpsimple.
8059         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
8061 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
8063         PR target/71656
8064         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8065         OPTION_MASK_P9_DFORM_VECTOR.
8066         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8067         disable -mpower9-dform-vector when using reload.
8068         (quad_address_p): Remove 'gpr_p' argument and all associated code.
8069         New 'strict' argument.  Update all callers.  Add strict addressing
8070         support.
8071         (rs6000_legitimate_offset_address_p): Remove call to
8072         virtual_stack_registers_memory_p.
8073         (rs6000_legitimize_reload_address): Add quad address support.
8074         (rs6000_legitimate_address_p): Move call to quad_address_p above
8075         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
8076         to account for new strict usage.
8077         (rs6000_output_move_128bit): Adjust quad_address_p args to account
8078         for new strict usage.
8079         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
8081 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
8083         PR target/70902
8084         PR target/71453
8085         PR target/71555
8086         PR target/71596
8087         PR target/71657
8088         * config/i386/i386.c (ix86_spill_class): Disable condition to
8089         always return NO_REGS.
8091 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
8093         * predict.c: Include gimple-pretty-print.h
8094         (predicted_by_loop_heuristics_p): Check also
8095         PRED_LOOP_EXIT_WITH_RECURSION
8096         (predict_loops): Find self recursive calls and use special purpose
8097         predictors for them; dump log about decisions.
8098         (pass_profile::execute): Dump info about #of iterations.
8099         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
8100         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
8102 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
8104         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
8105         output_asm_insn calls and shorten long lines.  Output .CALL
8106         argument descriptor using pa_output_arg_descriptor.  Add various
8107         inline $$dyncall and other optimizations.
8108         (pa_attr_length_indirect_call): Adjust ordering and lengths.
8110 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
8112         PR tree-optimization/71643
8113         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
8114         EH preds.
8116         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
8117         leak a bitmap if dep_bb is NULL.
8119         PR tree-optimization/71631
8120         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
8121         to rewrite_expr_tree even if negate_result, move new_lhs var
8122         declaration and initialization earlier, for powi_result set afterwards
8123         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
8124         if new_lhs != lhs, and don't shadow gsi var.
8126 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8128         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
8129         Add in_loop parameter.
8130         (predict_loops): Add loop guard heuristics.
8131         * predict.def (PRED_LOOP_GUARD): New heuristics.
8133 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
8135         * predict.c: Include ipa-utils.h
8136         (tree_bb_level_prediction): Predict recursive calls.
8137         (tree_estimate_probability_bb): Skip inexpensive calls for call
8138         predictor.
8139         * predict.def (PRED_RECURSIVE_CALL): New.
8141 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8143         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
8144         (BU_FLOAT128_1): Likewise.
8145         (FABSQ): Likewise.
8146         (COPYSIGNQ): Likewise.
8147         (RS6000_BUILTIN_NANQ): Likewise.
8148         (RS6000_BUILTIN_NANSQ): Likewise.
8149         (RS6000_BUILTIN_INFQ): Likewise.
8150         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
8151         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
8152         (TARGET_FOLD_BUILTIN): New #define.
8153         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
8154         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
8155         (rs6000_fold_builtin): New target hook implementation, handling
8156         folding of 128-bit NaNs and infinities.
8157         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
8158         entries are filled in to avoid problems during bootstrap
8159         self-test; define builtins for 128-bit NaNs and infinities.
8160         (rs6000_opt_mask): Add entry for float128.
8161         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
8162         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
8163         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
8164         (const_str_type_node): New #define.
8165         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
8166         to a define_expand that dispatches to either copysign<mode>3_soft
8167         or copysign<mode>3_hard.
8168         (copysign<mode>3_hard): Rename from copysign<mode>3.
8169         (copysign<mode>3_soft): New define_insn.
8170         * doc/extend.texi: Document new builtins.
8172 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8174         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
8175         PRIu64 instead of lu.
8177 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
8179         PR debug/71642
8180         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
8181         copy the type name.
8183 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8185         PR tree-optimization/71647
8186         * omp-low.c (lower_rec_input_clauses): Convert
8187         omp_clause_aligned_alignment (c) to size_type_node for the
8188         last argument of __builtin_assume_aligned.
8190 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8192         * configure.ac (calling ___tls_get_addr via GOT): New
8193         assembler/linker check.
8194         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
8195         assembler and linker supports calling ___tls_get_addr via GOT.
8196         Otherise, defined to 0.
8197         * config.in: Regenerated.
8198         * configure: Likewise.
8199         * config/i386/constraints.md (Yb): New constraint.
8200         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
8201         (REG_CLASS_NAMES): Likewise.
8202         (REG_CLASS_CONTENTS): Likewise.
8203         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
8204         the b constraint with the Yb constraint.  Call ___tls_get_addr
8205         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
8206         is 1.
8207         (*tls_local_dynamic_base_32_gnu): Likewise.
8208         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
8209         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
8210         (*tls_local_dynamic_base_64_<mode>): Likewise.
8212 2016-06-24  Martin Liska  <mliska@suse.cz>
8214         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
8215         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
8216         few functions.
8217         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
8218         argument to true if the expected number of iterations is
8219         loop-based.
8221 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
8223         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
8224         assemble for 32bit target.
8225         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
8226         and $ld_ix86_gld_32_opt to link for 32bit target.
8227         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
8228         * configure: Regenerate.
8230 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8232         * config/arm/arm.c (int_log2): Delete definition and prototype.
8233         (shift_op): Use exact_log2 instead of int_log2.
8234         (vfp3_const_double_for_fract_bits): Likewise.
8236 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
8238         * internal-fn.c (expand_arith_set_overflow): New function.
8239         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
8240         Use it.
8241         (expand_arith_overflow_result_store): Likewise.  Handle precision
8242         smaller than mode precision.
8243         * tree-vrp.c (extract_range_basic): For imag part, handle
8244         properly signed 1-bit precision result.
8245         * doc/extend.texi (__builtin_add_overflow): Document that last
8246         argument can't be pointer to enumerated or boolean type.
8247         (__builtin_add_overflow_p): Document that last argument can't
8248         have enumerated or boolean type.
8250 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8251             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8253         * config/rs6000/predicates.md (splat_input_operand): Rework.
8254         Don't allow constants, since the insns that use this predicate
8255         don't support constants.  Constants are handled by other insns
8256         that are created via combine.  During and after register
8257         allocation, only allow indexed or indirect addresses, and not
8258         general addresses.  Only allow modes supported by the hardware.
8259         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
8260         comment.  Move check for using VSPLTIS<x> to a common location,
8261         instead of doing it in two different places.
8263 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
8265         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8266         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
8267         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
8268         signature_CENTAUR_ebx.
8270 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8272         PR target/66232
8273         PR target/67400
8274         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
8275         (as_ix86_gas_32_opt): This.
8276         (ld_ix86_tls_ldm_opt): Renamed to ...
8277         (ld_ix86_gld_32_opt): This.
8278         (R_386_TLS_LDM reloc): Updated.
8279         (R_386_GOT32X reloc): New assembler/linker check.
8280         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
8281         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
8282         defined to 0.
8283         * config.in: Regenerated.
8284         * configure: Likewise.
8285         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
8286         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
8287         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
8288         if ix86_force_load_from_GOT_p returns true.
8289         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
8290         ix86_force_load_from_GOT_p returns true.
8291         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
8292         the external function address via the GOT slot.
8293         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
8294         HAVE_AS_IX86_GOT32X before returning false.
8295         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
8296         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
8298 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
8300         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
8302 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8304         * Makefile.in: Regenerate.
8305         * doc/install.texi: Document autoprofiledbootstrap.
8307 2016-06-23  Andi Kleen  <ak@linux.intel.com>
8309         * config/i386/gcc-auto-profile: New file.
8311 2016-06-23  Martin Liska  <mliska@suse.cz>
8313         PR middle-end/71619
8314         * predict.c (predict_loops): Revert the hunk that was removed
8315         in r237103.
8317 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
8319         * config.gcc: Add support for arm*-*-phoenix* targets.
8320         * config/arm/t-phoenix: New.
8321         * config/phoenix.h: New.
8323 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
8324             H.J. Lu  <hongjiu.lu@intel.com>
8326         PR target/67400
8327         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
8328         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
8329         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
8330         ix86_force_load_from_GOT_p returns true.
8331         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
8332         ix86_force_load_from_GOT_p returns true.
8333         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
8334         ix86_force_load_from_GOT_p returns true.
8335         (ix86_expand_move): Load the external function address via the
8336         GOT slot if ix86_force_load_from_GOT_p returns true.
8337         * config/i386/predicates.md (x86_64_immediate_operand): Return
8338         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
8339         (x86_64_zext_immediate_operand): Ditto.
8341 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
8343         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
8345 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8347         PR c/70339
8348         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
8349         * diagnostic.c (pedwarn_at_rich_loc): New function.
8350         * spellcheck.h (best_match::best_match): Add a
8351         "best_distance_so_far" optional parameter.
8352         (best_match::set_best_so_far): New method.
8353         (best_match::get_best_distance): New accessor.
8354         (best_match::get_best_candidate_length): New accessor.
8356 2016-06-22  Nick Clifton  <nickc@redhat.com>
8358         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
8359         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
8360         modes are accepted as well.
8361         (ucompare_loc_descriptor): Likewise.
8362         (minmax_loc_descriptor): Likewise.
8363         (clz_loc_descriptor): Likewise.
8364         (popcount_loc_descriptor): Likewise.
8365         (bswap_loc_descriptor): Likewise.
8366         (rotate_loc_descriptor): Likewise.
8367         (mem_loc_descriptor): Likewise.
8368         (loc_descriptor): Likewise.
8370 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
8372         * common.opt (fdiagnostics-parseable-fixits): New option.
8373         * diagnostic.c: Include "selftest.h".
8374         (print_escaped_string): New function.
8375         (print_parseable_fixits): New function.
8376         (diagnostic_report_diagnostic): Call print_parseable_fixits.
8377         (selftest::assert_print_escaped_string): New function.
8378         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
8379         (selftest::test_print_escaped_string): New function.
8380         (selftest::test_print_parseable_fixits_none): New function.
8381         (selftest::test_print_parseable_fixits_insert): New function.
8382         (selftest::test_print_parseable_fixits_remove): New function.
8383         (selftest::test_print_parseable_fixits_replace): New function.
8384         (selftest::diagnostic_c_tests): New function.
8385         * diagnostic.h (struct diagnostic_context): Add field
8386         "parseable_fixits_p".
8387         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
8388         -fdiagnostics-parseable-fixits.
8389         (-fdiagnostics-parseable-fixits): New option.
8390         * opts.c (common_handle_option): Handle
8391         -fdiagnostics-parseable-fixits.
8392         * selftest-run-tests.c (selftest::run_tests): Call
8393         selftest::diagnostic_c_tests.
8394         * selftest.h (selftest::diagnostic_c_tests): New prototype.
8396 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
8398         PR tree-optimization/71488
8399         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
8400         comparison of boolean vectors.
8401         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
8402         of boolean vectors using bitwise operations.
8404 2016-06-22  Andreas Schwab  <schwab@suse.de>
8406         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
8407         Remove declaration.
8409 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
8411         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
8413 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8415         * config/i386/i386.c (print_reg): Emit an error message on attempt to
8416         print FLAGS_REG.
8418 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8420         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
8421         * config/arm/arm-cores.def (cortex-a73): New entry.
8422         (cortex-a73.cortex-a35): Likewise.
8423         (cortex-a73.cortex-a53): Likewise.
8424         * config/arm/arm-tables.opt: Regenerate.
8425         * config/arm/arm-tune.md: Likewise.
8426         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
8427         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8428         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
8429         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
8430         * doc/invoke.texi (ARM Options): Document cortex-a73,
8431         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
8433 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8435         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
8436         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
8437         (cortex-a73.cortex-a35): Likewise.
8438         (cortex-a73.cortex-a53): Likewise.
8439         * config/aarch64/aarch64-tune.md: Regenerate.
8440         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
8441         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
8442         -mcpu and -mtune.
8444 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8446         * configure.ac (gcc_cv_as_compress_debug): Remove
8447         --compress-debug-sections as extra as switch.
8448         Handle gas --compress-debug-sections=type.
8449         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
8450         Handle gld --compress-debug-sections=type.
8451         * configure: Regenerate.
8453 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
8455         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
8457 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
8459         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
8460         (do_rewrite): likewise.
8462 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8464         * common/config/mep/mep-common.c: Remove.
8465         * config.gcc: Remove mep-* support.
8466         * config/mep/constraints.md: Remove.
8467         * config/mep/default.h: Remove.
8468         * config/mep/intrinsics.h: Remove.
8469         * config/mep/intrinsics.md: Remove.
8470         * config/mep/ivc2-template.h: Remove.
8471         * config/mep/mep-c5.cpu: Remove.
8472         * config/mep/mep-core.cpu: Remove.
8473         * config/mep/mep-default.cpu: Remove.
8474         * config/mep/mep-ext-cop.cpu: Remove.
8475         * config/mep/mep-intrin.h: Remove.
8476         * config/mep/mep-ivc2.cpu: Remove.
8477         * config/mep/mep-pragma.c: Remove.
8478         * config/mep/mep-protos.h: Remove.
8479         * config/mep/mep.c: Remove.
8480         * config/mep/mep.cpu: Remove.
8481         * config/mep/mep.h: Remove.
8482         * config/mep/mep.md: Remove.
8483         * config/mep/mep.opt: Remove.
8484         * config/mep/predicates.md: Remove.
8485         * config/mep/t-mep: Remove.
8486         * doc/install.texi: Remove mep-* documentation.
8487         * doc/md.texi: Likewise.
8489 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8491         * config.gcc: Remove support for avr-rtems.
8492         * config/avr/gen-avr-mmcu-specs.c: Likewise.
8493         * config/avr/rtems.h: Remove.
8494         * config/avr/t-rtems: Remove.
8496 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8498         * config.gcc: Remove m32r-rtems support.
8499         * config/m32r/rtems.h: Remove.
8501 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8503         * config.gcc: Remove h8300-rtems support.
8504         * config/h8300/rtems.h: Remove.
8505         * config/h8300/t-rtems: Remove.
8507 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8509         * config.gcc: Remove support for knetbsd.
8510         * configure.ac: Likewise.
8511         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
8512         * config/knetbsd-gnu.h: Remove.
8513         * configure: Regenerate.
8515 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8517         * config.gcc: Remove support for openbsd 2 and 3.
8518         * config/openbsd-oldgas.h: Remove.
8520 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8522         * config.gcc: Remove interix support.
8523         * config/i386/i386-interix.h: Remove.
8524         * config/i386/interix.opt: Remove.
8525         * config/i386/t-interix: Remove.
8526         * configure: Regenerate.
8527         * configure.ac: Remove interix support.
8528         * doc/install.texi: Remove interix documentation.
8530 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8532         * config/rs6000/rs6000.h: Add conditional preprocessing directives
8533         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
8534         not defined.
8536 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8538         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
8539         they are both PLACEHOLDER_EXPRs.
8541 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8543         * stor-layout.c (layout_type): Move setting complex MODE to
8544         layout_type, instead of setting it ahead of time by the caller.
8545         * tree.c (build_complex_type): Likewise.
8547 2016-06-21  Martin Liska  <mliska@suse.cz>
8549         * predict.c (force_edge_cold): Replace imposisble with
8550         impossible.
8552 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8554         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
8555         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
8557 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
8559         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
8561 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
8562             Ilya Enkovich  <ilya.enkovich@intel.com>
8564         PR target/71549
8565         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8566         New member function to convert V1TImode register to SUBREG
8567         TImode in debug insn.
8568         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
8569         after changing register mode to V1TImode.
8571 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
8573         * config/aarch64/aarch64-cores.def (vulcan): New core.
8574         * config/aarch64/aarch64-tune.md: Regenerate.
8575         * doc/invoke.texi: Document vulcan as an available option.
8577 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
8579         * cse.c (canon_asm_operands): New function extracted from...
8580         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
8581         either standalone or member of a PARALLEL.
8583 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8585         PR target/30417
8586         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
8587         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
8588         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
8590 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
8592         PR target/71103
8593         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
8594         constant addresses if can_create_pseudo_p.
8596 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
8598         PR tree-optimization/71588
8599         * tree-ssa-strlen.c (valid_builtin_call): New function.
8600         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
8601         it.
8603 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8605         PR middle-end/71581
8606         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
8607         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
8608         for conversion of scalar user var to complex type and use the
8609         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
8610         punt.
8612         PR rtl-optimization/71591
8613         * toplev.c (toplev::run_self_tests): If no_backend, complain and
8614         don't run any tests.
8616 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
8618         PR target/71571
8619         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
8620         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
8621         space for PIC with non-v32 and the common non-PIC "jump".
8623 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
8625         PR target/71559
8626         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
8627         returned values and add UN*/LTGT/*ORDERED cases with values matching
8628         D operand modifier on vcmp for AVX.
8630 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8632         * config/aarch64/aarch64.opt
8633         (mpc-relative-literal-loads): Rename internal option name.
8634         * config/aarch64/aarch64.c
8635         (aarch64_nopcrelative_literal_loads): Rename to
8636         aarch64_pcrelative_literal_loads.
8637         (aarch64_expand_mov_immediate): Likewise.
8638         (aarch64_secondary_reload): Likewise.
8639         (aarch64_can_use_per_function_literal_pools_p): Likewise.
8640         (aarch64_override_options_after_change_1): Rename and simplify logic.
8641         (aarch64_classify_symbol): Merge large model checks into switch,
8642         remove pc-relative load check.
8644 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8646         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
8647         costs relative to the cost of a register move.
8649 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8651         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
8652         (vcvt_n_f64_u64): Likewise.
8653         (vcvt_n_s64_f64): Likewise.
8654         (vcvt_n_u64_f64): Likewise.
8655         (vcvt_f64_s64): Likewise.
8656         (vrecpe_f64): Likewise.
8657         (vcvt_f64_u64): Likewise.
8658         (vrecps_f64): Likewise.
8660 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8662         * config/aarch64/aarch64.md
8663         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
8664         iterators.
8665         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
8666         attributes.
8667         * config/aarch64/aarch64-builtins.c
8668         (aarch64_types_binop_uss_qualifiers): Delete.
8669         (TYPES_BINOP_USS): Likewise.
8670         (aarch64_types_binop_sus_qualifiers): Likewise.
8671         (TYPES_BINOP_SUS): Likewise.
8672         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
8673         (TYPES_FCVTIMM_SUS): Likewise.
8674         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
8675         rather than BINOP.
8676         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
8677         (fcvtzs): Use SHIFTIMM rather than BINOP.
8678         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
8680 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
8682         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
8683         costs relative to the cost of a register move.
8685 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8687         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
8688         Allow scalar/single vector modes to be tieable.
8690 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
8692         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
8694 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8696         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
8697         "alignement".
8698         * tree.h (TYPE_ALIGN): Likewise.
8700 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
8702         PR target/71103
8703         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
8705 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
8707         * config/avr/avr.c (avr_print_operand): Fix "format not a string
8708         literal" build warnings.
8709         (avr_print_operand_address): Dito.
8711 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
8713         PR target/71375
8714         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
8715         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
8717 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
8719         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
8721 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
8723         PR bootstrap/71435
8724         * reload1.c (reload): Pass 0 to finish_spills when called because
8725         update_eliminables_and_spill returns true and remove did_spill.
8726         (finish_spills): Adjust comment and document GLOBAL parameter.
8728 2016-06-17  DJ Delorie  <dj@redhat.com>
8730         PR target/71338
8731         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
8732         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
8733         (umulqihi3_virt): Likewise.
8734         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
8735         (umulqihi3_real): Likewise.
8737 2016-06-17  Martin Liska  <mliska@suse.cz>
8739         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
8741 2016-06-17  Martin Liska  <mliska@suse.cz>
8743         * predict.def: PRED_LOOP_EXIT from 92 to 85.
8745 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
8747         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
8748         __FAST_MATH__.
8749         (vaddq_f32): Likewise.
8750         (vmul_f32): Likewise.
8751         (vmulq_f32): Likewise.
8752         (vsub_f32): Likewise.
8753         (vsubq_f32): Likewise.
8755 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
8757         PR tree-optimization/71347
8758         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
8759         cost for all uses in group.
8761 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
8763         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
8764         insert gimple seq if it's not empty.
8766 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
8768         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
8769         member OFFSET.
8770         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
8771         rather than OFFSET.
8772         (comp_dr_with_seg_len_pair): Ditto.
8773         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
8774         struct dr_with_seg_len_pair against DR_OFFSET.
8775         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
8776         DR_OFFSET directly.
8778 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8780         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
8782 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
8784         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
8785         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
8786         (pa_output_millicode_call): Likewise.
8787         (pa_output_call): Likewise.
8788         (pa_output_indirect_call): Likewise.
8789         (pa_asm_output_mi_thunk): Likewise.
8791 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
8793         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
8795 2016-06-16  Martin Liska  <mliska@suse.cz>
8797         * predict.c (combine_predictions_for_insn): When we find a first
8798         match predictor, we should consider just predictors with
8799         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
8800         DS theory predictor.
8801         (combine_predictions_for_bb): Likewise.
8803 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8805         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
8806         with base of reference to struct.
8808 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
8810         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
8812 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8814         PR target/71151
8815         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
8816         progmem_swtable_section.
8817         (progmem_swtable_section): Remove.
8818         (avr_asm_function_rodata_section): Remove.
8819         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
8820         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
8822 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
8824         * config/i386/driver-i386.c (host_detect_local_cpu): Set
8825         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
8826         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
8827         signature_CENTAUR_ebx.
8828         * config/i386/i386.c (ix86_option_override_internal): Add
8829         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
8830         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
8831         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
8833 2016-06-16  Martin Liska  <mliska@suse.cz>
8835         * predict.def: Add fortran loop preheader predictor.
8836         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
8837         fold IFN_BUILTIN_EXPECT with a known constant argument.
8839 2016-06-16  Martin Liska  <mliska@suse.cz>
8841         * predict.def: Add 'Fortran' to display text of all
8842         PRED_FORTRAN_* predictors.
8844 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
8846         PR target/71242
8847         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
8848         [IA64_BUILTIN_NANSQ]: Ditto.
8849         (ia64_fold_builtin): New function.
8850         (TARGET_FOLD_BUILTIN): New define.
8851         (ia64_init_builtins) Declare const_string_type node.
8852         Add __builtin_nanq and __builtin_nansq builtin functions.
8853         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
8855 2016-06-16  Nick Clifton  <nickc@redhat.com>
8857         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
8858         MSP430_HWMULT_ prefix to enum values.
8859         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
8860         * config/msp430/msp430.c: Update use of enum values.
8861         * config/msp430/msp430.md: Likewise.
8862         * config/msp430/msp430.opt: Likewise.
8864 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
8866         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
8867         of comparsions in the last iteration.
8869 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
8870             Joern Rennecke  <joern.rennecke@embecosm.com>
8872         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
8873         addresses.
8874         (arc_needs_pcl_p): Add GOTOFFPC.
8875         (arc_legitimate_pic_addr_p): Likewise.
8876         (arc_output_pic_addr_const): Likewise.
8877         (arc_legitimize_pic_address): Generate a pc-relative address using
8878         GOTOFFPC.
8879         (arc_output_libcall): Use @pcl syntax.
8880         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
8881         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
8882         (*movsi_insn): Use @pcl syntax.
8883         (doloop_begin_i): Likewise.
8885 2016-06-16  Martin Liska  <mliska@suse.cz>
8887         * predict.def: Define a new predictor.
8889 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
8891         * config/arc/arc.opt (mtp-regno): Update text.
8893 2016-06-16  Renlin Li  <renlin.li@arm.com>
8895         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
8897 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8899         PR target/71554
8900         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
8901         (setcc + and peephole2): Likewise.
8903         PR rtl-optimization/71532
8904         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
8905         memory slots.
8907 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8909         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
8910         DImode constants with XXSPLTIB in vector registers.
8911         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
8912         vsx_extract_<mode>_internal{1,2} into a single insn that handles
8913         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
8914         extraction of the element at the top of the register as a scalar
8915         value.
8916         (vsx_extract_<mode>_internal1): Likewise.
8917         (vsx_extract_<mode>_internal2): Likewise.
8918         * config/rs6000/constraints.md (wi constraint): Remove a comment
8919         about DImode not being allowed in Altivec registers.
8920         (wB constraint): New constraint for constants that can be
8921         generated in Altivec registers with VSPLTISW/VUPKHSW.
8922         * config/rs6000/predicates.md (xxspltib_constant_split): Update
8923         comments.
8924         (xxspltib_constant_nosplit): Likewise.
8925         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
8926         support for -mupper-regs-di to enable DImode to go into Altivec
8927         registers.
8928         (POWERPC_MASKS): Likewise.
8929         (power7 cpu): Likewise.
8930         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
8931         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
8932         for DImode being allowed in Altivec registers.  Update wi/wj
8933         constraints.  Set scalar_in_vmx_p flag.
8934         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
8935         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
8936         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
8937         (rs6000_opt_masks): Add -mupper-regs-di.
8938         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
8939         direct move to use wi and not wj.
8940         (lfiwzx): Likewise.
8941         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
8942         alternative.
8943         (floatunssi<mode>2_lfiwzx_mem): Likewise.
8944         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
8945         any VSX register, instead of just Altivec registers, to allow
8946         either operand to be an Altivec register or both.
8947         (fixuns_trunc<mode>di2_fctiduz): Likewise.
8948         (movdi_internal32): Add support for -mupper-regs-di.  Add support
8949         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
8950         the alternatives and attributes to be lined up to be easier to
8951         read.
8952         (movdi_internal64): Likewise.
8953         (64-bit DImode splitters): Change predicates to only split loading
8954         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
8955         load constants in ISA 3.0 or ISA 2.07 respectively.
8956         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8957         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
8958         mention -mcpu=power9 sets these options.
8959         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
8960         wB constraint.
8962 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8964         PR target/67353
8965         * config/avr/avr.c (avr_set_current_function): Warn misspelled
8966         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
8967         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
8968         by default to warn misspelled interrupt/ signal handler.
8969         * doc/invoke.texi (AVR Options): Document it. Update description
8970         for -nodevicelib option.
8972 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8974         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
8975         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
8976         (aarch64_<sur>shll2_n<mode>): Likewise.
8978 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
8980         PR middle-end/71529
8981         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
8982         DECL_CONTEXT for copied arguments.
8984 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
8986         PR tree-optimization/71483
8987         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
8988         for slp
8990 2016-06-15  Martin Liska  <mliska@suse.cz>
8992         * predict.c (tree_predict_by_opcode): Call predict_edge_def
8993         instead of predict_edge w/o a probability.
8995 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
8997         PR tree-optimization/71439
8998         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
8999         live PHIs.
9001 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9003         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
9004         register subregs in SET_SRC.
9006 2016-06-15  Richard Biener  <rguenther@suse.de>
9008         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
9009         store restrictions.
9011 2016-06-15  Richard Biener  <rguenther@suse.de>
9013         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
9014         not consider dependences between accesses that belong to the
9015         same group.
9016         (vect_analyze_data_ref_dependences): Do not analyze read-read
9017         or self-dependences.
9019 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9021         * spellcheck-tree.c: Include spellcheck-tree.h rather than
9022         spellcheck.h.
9023         (find_closest_identifier): Reimplement in terms of
9024         best_match<tree,tree>.
9025         * spellcheck-tree.h: New file.
9026         * spellcheck.c (struct edit_distance_traits<const char *>): New
9027         struct.
9028         (find_closest_string): Reimplement in terms of
9029         best_match<const char *, const char *>.
9030         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
9031         overload to spellcheck-tree.h.
9032         (find_closest_identifier): Likewise.
9033         (struct edit_distance_traits<T>): New template.
9034         (class best_match): New class.
9036 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9038         * selftest-run-tests.c (selftest::run_tests): Call
9039         selftest::spellcheck_tree_c_tests.
9040         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
9041         * spellcheck-tree.c: Include selftest.h and stringpool.h.
9042         (selftest::test_find_closest_identifier): New function.
9043         (selftest::spellcheck_tree_c_tests): New function.
9044         * spellcheck.c (selftest::test_find_closest_string): Verify that
9045         the order of the vec does not affect the results for this case.
9046         (selftest::test_data): New array.
9047         (selftest::test_metric_conditions): New function.
9048         (selftest::spellcheck_c_tests): Add a test of case-comparison.
9049         Call selftest::test_metric_conditions.
9051 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9053         * config/rs6000/rs6000-builtin.def (commentary): Typo.
9054         (BU_P9_MISC_1): Likewise.
9055         (BU_P9_64BIT_MISC_0): Likewise.
9056         (BU_P9_MISC_0): Likewise.
9058 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
9060         * gcc-rich-location.c
9061         (gcc_rich_location::add_fixit_misspelled_id): New method.
9062         * gcc-rich-location.h
9063         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
9065 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
9067         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
9068         FreeBSD 11 and above.
9070 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
9072         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
9074 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9076         * expmed.h: Close parenthesis in "at your option" in copyright
9077         boilerplate.
9078         * lower-subreg.h: Likewise.
9080 2016-06-14  Richard Biener  <rguenther@suse.de>
9082         PR middle-end/71526
9083         * genmatch.c (expr::gen_transform): Use in_type for comparisons
9084         if available.
9086 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9088         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
9089         New function.
9090         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
9091         mask+shift version.
9092         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
9093         New prototype.
9094         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
9095         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
9097 2016-06-14  Richard Biener  <rguenther@suse.de>
9099         PR tree-optimization/71522
9100         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
9101         copying into float copying.
9103 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
9105         PR tree-optimization/71520
9106         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
9107         (replace_block_by): Move user labels from bb1 to bb2.
9109 2016-06-14  Richard Biener  <rguenther@suse.de>
9111         PR middle-end/71310
9112         PR bootstrap/71510
9113         * expr.h (get_bit_range): Declare.
9114         * expr.c (get_bit_range): Export.
9115         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
9116         word_mode again to constrain the bitfield access.
9118 2016-06-14  Richard Biener  <rguenther@suse.de>
9120         PR tree-optimization/71521
9121         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
9122         division int_const_binop against zero divisor.
9124 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9126         * config/i386/i386.md (signbittf2): New expander.
9127         * config/i386/sse.md (ptesttf2): New insn pattern.
9129 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9131         PR bootstrap/71481
9132         * input.c (selftest::test_reading_source_line): Avoid reading from
9133         __FILE__ by creating a tempfile with known content and reading
9134         from that instead.
9136 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9138         * pretty-print.c (assert_pp_format_colored): Skip the test if
9139         GCC_COLORS is set.
9140         (test_pp_format): Remove comment about GCC_COLORS.
9142 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9144         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
9145         * pretty-print.c (assert_pp_format_va): Add location param and use
9146         it with ASSERT_STREQ_AT.
9147         (assert_pp_format): Add location param and pass it to
9148         assert_pp_format_va.
9149         (assert_pp_format_colored): Likewise.
9150         (ASSERT_PP_FORMAT_1): New.
9151         (ASSERT_PP_FORMAT_2): New.
9152         (ASSERT_PP_FORMAT_3): New.
9153         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
9154         explicitly, or implicitly via the above macros.
9155         * selftest.c (selftest::pass): Use a selftest::location rather
9156         than file and line.
9157         (selftest::fail): Likewise.  Print the function name.
9158         (selftest::fail_formatted): Likewise.
9159         (selftest::assert_streq): Use a selftest::location rather than
9160         file and line.
9161         * selftest.h (selftest::location): New struct.
9162         (SELFTEST_LOCATION): New macro.
9163         (selftest::pass): Accept a const location & rather than file
9164         and line.
9165         (selftest::fail): Likewise.
9166         (selftest::fail_formatted): Likewise.
9167         (selftest::assert_streq): Likewise.
9168         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
9169         (ASSERT_FALSE): Likewise.
9170         (ASSERT_EQ): Likewise.
9171         (ASSERT_NE): Likewise.
9172         (ASSERT_STREQ): Likewise.
9173         (ASSERT_PRED1): Likewise.
9174         (ASSERT_STREQ_AT): New macro.
9176 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
9178         * selftest.c (selftest::fail_formatted): New function.
9179         (selftest::assert_streq): New function.
9180         * selftest.h (selftests::fail_formatted): New decl.
9181         (selftest::assert_streq): New decl.
9182         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
9184 2016-06-13  Jeff Law  <law@redhat.com>
9186         PR tree-optimization/71403
9187         * tree-ssa-threadbackward.c
9188         (convert_and_register_jump_thread_path): No longer accept reference
9189         to path.  Do not pop items off the path anymore.
9190         (fsm_find_control_statement_thread_paths): Do not allow threading
9191         to a deeper loop nest.  Pop the last item off the path here rather
9192         than in convert_and_register_jump_thread_path.
9194 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9195             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
9197         [AArch64] Emit division using the Newton series
9199         * config/aarch64/aarch64-protos.h
9200         (cpu_approx_modes): Add new member "division".
9201         (aarch64_emit_approx_div): Declare new function.
9202         * config/aarch64/aarch64.c
9203         (generic_approx_modes): New member "division".
9204         (exynosm1_approx_modes): Likewise.
9205         (xgene1_approx_modes): Likewise.
9206         (aarch64_emit_approx_div): Define new function.
9207         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
9208         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
9209         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
9210         * doc/invoke.texi (-mlow-precision-div): Describe new option.
9212 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9213             Wilco Dijkstra  <wilco.dijkstra@arm.com>
9215         [AArch64] Emit square root using the Newton series
9217         * config/aarch64/aarch64-protos.h
9218         (aarch64_emit_approx_rsqrt): Replace with new function
9219         "aarch64_emit_approx_sqrt".
9220         (cpu_approx_modes): New member "sqrt".
9221         * config/aarch64/aarch64.c
9222         (generic_approx_modes): New member "sqrt".
9223         (exynosm1_approx_modes): Likewise.
9224         (xgene1_approx_modes): Likewise.
9225         (aarch64_emit_approx_rsqrt): Replace with new function
9226         "aarch64_emit_approx_sqrt".
9227         (aarch64_override_options_after_change_1): Handle new option.
9228         * config/aarch64/aarch64-simd.md
9229         (rsqrt<mode>2): Use new function instead.
9230         (sqrt<mode>2): New expansion and insn definitions.
9231         * config/aarch64/aarch64.md: Likewise.
9232         * config/aarch64/aarch64.opt
9233         (mlow-precision-sqrt): Add new option description.
9234         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
9236 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
9238         [AArch64] Add more choices for the reciprocal square root approximation
9240         Allow a target to prefer such operation depending on the operation mode.
9242         * config/aarch64/aarch64-protos.h
9243         (AARCH64_APPROX_MODE): New macro.
9244         (AARCH64_APPROX_{NONE,ALL}): Likewise.
9245         (cpu_approx_modes): New structure.
9246         (tune_params): New member "approx_modes".
9247         * config/aarch64/aarch64-tuning-flags.def
9248         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
9249         * config/aarch64/aarch64.c
9250         (generic_approx_modes): New core "cpu_approx_modes" structure.
9251         (exynosm1_approx_modes): Likewise.
9252         (xgene1_approx_modes): Likewise.
9253         (generic_tunings): New member "approx_modes".
9254         (cortexa35_tunings): Likewise.
9255         (cortexa53_tunings): Likewise.
9256         (cortexa57_tunings): Likewise.
9257         (cortexa72_tunings): Likewise.
9258         (exynosm1_tunings): Likewise.
9259         (thunderx_tunings): Likewise.
9260         (xgene1_tunings): Likewise.
9261         (use_rsqrt_p): New argument for the mode and use new member from
9262         "tune_params".
9263         (aarch64_builtin_reciprocal): Devise mode from builtin.
9264         (aarch64_optab_supported_p): New argument for the mode.
9265         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
9267 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9269         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
9270         RS6000_BTM_MODULO flag into the set of flags that are considered
9271         to be part of the common configuration.
9273 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9275         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
9276         difference unsigned.
9277         (vec_absdb): New macro for vector absolute difference unsigned
9278         byte.
9279         (vec_absdh): New macro for vector absolute difference unsigned
9280         half-word.
9281         (vec_absdw): New macro for vector absolute difference unsigned word.
9282         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
9283         (vadu<mode>3): New insn.
9284         (*p9_vadu<mode>3): New insn.
9285         * config/rs6000/rs6000-builtin.def (vadub): New built-in
9286         definition.
9287         (vaduh): New built-in definition.
9288         (vaduw): New built-in definition.
9289         (vadu): New overloaded built-in definition.
9290         (vadub): New overloaded built-in definition.
9291         (vaduh): New overloaded built-in definition.
9292         (vaduw): New overloaded built-in definition.
9293         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9294         overloaded vector absolute difference unsigned functions.
9295         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9296         the ISA 3.0 vector absolute difference unsigned built-in functions.
9298 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
9300         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
9301         update shared_lookup_references only once after changing operands.
9303 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
9305         PR middle-end/71373
9306         * tree-nested.c (convert_nonlocal_omp_clauses)
9307         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
9309         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
9310         * tree.def (CASE_LABEL_EXPR): Likewise.
9312 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9314         PR bootstrap/71481
9315         * input.c (test_builtins): Fix an assertion.
9317 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9319         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
9320         (paritysi2): Ditto.
9321         (isinfxf2): Ditto.
9322         (isinf<mode>2): Ditto.
9324 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
9326         * ggc-tests.c (test_finalization): Only test need_finalization_p
9327         for GCC_VERSION >= 4003.
9329 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9331         * config/s390/vecintrin.h: Fix file description in comment.
9333 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9335         * config/s390/s390-builtin-types.def: Change builtin type naming
9336         scheme to match builtin-types.def.
9338 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
9340         * fold-const.c (optimize_minmax_comparison): Remove.
9341         (fold_comparison): Remove call to the above.
9342         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
9343         New transformations.
9345 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
9347         PR tree-optimization/71416
9348         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
9349         multiple entries
9351 2016-06-13  Martin Liska  <mliska@suse.cz>
9353         * predict.c (enum predictor_reason): Prefix enum with REASON_.
9354         (combine_predictions_for_insn): Likewise.
9355         (prune_predictions_for_bb): Likewise.
9356         (combine_predictions_for_bb): Likewise.
9358 2016-06-13  Richard Biener  <rguenther@suse.de>
9360         PR tree-optimization/71505
9361         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
9362         assert match comment.
9364 2016-06-13  Marek Polacek  <polacek@redhat.com>
9366         PR middle-end/71476
9367         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
9368         gimplify_switch_expr.
9369         (warn_switch_unreachable_r): New function.
9371 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9373         PR target/71379
9374         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
9375         one.
9377 2016-06-13  Richard Biener  <rguenther@suse.de>
9379         PR middle-end/64516
9380         * fold-const.c (fold_unary_loc): Preserve alignment when
9381         folding a VIEW_CONVERT_EXPR into a MEM_REF.
9383 2016-06-13  Martin Liska  <mliska@suse.cz>
9385         PR sanitizer/71458
9386         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
9387         w/ -fsanitize=bounds.
9389 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9391         * config/i386/i386.c (ix86_init_builtins): Calculate
9392         FLOAT128_FTYPE_CONST_STRING function type only once.
9393         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
9394         built-in functions are available for x86-32 and x86-64 targets.
9396 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
9398         PR target/71241
9399         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
9400         New primitive type.
9401         (FLOAT128_FTYPE_CONST_STRING): New function type.
9402         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
9403         [IX86_BUILTIN_NANSQ]: Ditto.
9404         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9405         (ix86_init_builtin_types): Declare const_string_type_node.
9406         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
9407         builtin functions.
9408         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
9409         * doc/extend.texi (x86 Built-in Functions): Document
9410         __builtin_nanq and __builtin_nansq.
9412 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
9414         PR target/71061
9415         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
9416         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
9417         length for pop patterns.
9418         (arm_attr_length_push_multi): Update comments.
9419         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
9420         attribute.
9421         (*pop_multiple_with_writeback_and_return): Likewise.
9422         (*pop_multiple_with_return): Likewise.
9424 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
9426         PR middle-end/71310
9427         * fold-const.c (optimize_bit_field_compare): Don't try to use
9428         word_mode unconditionally for reading the bit field, look at
9429         DECL_BIT_FIELD_REPRESENTATIVE instead.
9431 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
9433         PR middle-end/71478
9434         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
9435         vector integer type.
9437 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
9439         PR middle-end/71494
9440         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
9441         without LABEL_DECL, set *handled_ops_p to false instead of true.
9443 2016-06-10  Martin Sebor  <msebor@redhat.com>
9445         PR c/71392
9446         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
9447         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
9448         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
9449         them.
9450         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
9451         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
9452         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
9453         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
9454         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
9455         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
9456         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
9457         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
9459 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9461         * config/arm/arm.h (pool_vector_label,
9462         return_used_this_function): Remove.
9464 2016-06-10  Jeff Law  <law@redhat.com>
9466         PR tree-optimization/71335
9467         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
9468         zero length paths here.
9469         (convert_and_register_jump_thread_path): Remove hacks related to
9470         duplicated blocks in the jump thread path.
9471         (fsm_find_control_statement_thread_paths): Avoid putting the same
9472         block on the thread path twice, but ensure the thread path is
9473         unchanged from the caller's point of view.
9475 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9477         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
9478         * predict.def (PRED_LOOP_BRANCH): Remove.
9480 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
9482         * Makefile.in (OBJS): Add ggc-tests.o.
9483         (GTFILES): Add ggc-tests.c.
9484         * ggc-tests.c: New file.
9485         * selftest-run-tests.c (selftest::run_tests): Call
9486         selftest::ggc_tests_c_tests.
9487         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
9489 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
9491         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
9493 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
9495         PR sanitizer/71480
9496         * varasm.c (place_block_symbol): Adjust alignment for asan protected
9497         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
9499 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
9501         * profile.c: Include cfgloop.h.
9502         (branch_prob): Compute estimated number of iterations.
9503         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
9504         recompute estimate number of iterations from profile.
9506 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9508         PR inline-asm/68843
9509         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
9510         must be grouped on top of stack.  Don't force early clobber
9511         on ordinary reg outputs.
9513 2016-06-10  Richard Biener  <rguenther@suse.de>
9515         * targhooks.c (default_builtin_vectorization_cost): Adjust
9516         vec_construct cost.
9518 2016-06-10  Richard Biener  <rguenther@suse.de>
9520         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
9521         to fold the RHS to a constant if possible.
9523 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9525         PR middle-end/71373
9526         * tree-nested.c (convert_nonlocal_omp_clauses)
9527         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
9528         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
9529         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
9531         * gimplify.c (gimplify_adjust_omp_clauses): Discard
9532         OMP_CLAUSE_TILE.
9533         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
9535         * omp-low.c (scan_sharing_clauses): Don't expect
9536         OMP_CLAUSE__CACHE_.
9538 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
9540         PR tree-optimization/71407
9541         PR tree-optimization/71416
9542         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
9543         BIT_FIELD_REF type.
9545 2016-06-10  Richard Biener  <rguenther@suse.de>
9547         PR middle-end/71477
9548         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
9550 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
9552         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
9554 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
9555             Jiong Wang  <jiong.wang@arm.com>
9557         PR rtl-optimization/70751
9558         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
9559         spilled into memory.
9561 2016-06-09  Jonathan Yong  <10walls@gmail.com>
9563         Revert:
9564         2015-09-21  Jonathan Yong  <10walls@gmail.com>
9566         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9567         sysroot/usr/lib/32api for additional win32 libraries,
9568         fixes failing Cygwin bootstrapping.
9570 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
9572         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
9573         Delete.
9575 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
9577         PR bootstrap/71471
9578         * pretty-print.c (pp_indent): Specify that %p is printed in a
9579         host-dependent manner.
9580         (test_pp_format): Remove the test for %p.
9582 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
9584         * config/mips/mips.c (mips_output_jump): Fix formatting.
9586 2016-06-09  Richard Biener  <rguenther@suse.de>
9588         PR tree-optimization/71462
9589         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
9590         removed blocks.
9592 2016-06-09  Martin Liska  <mliska@suse.cz>
9594         * predict.c (dump_prediction): Add new argument.
9595         (enum predictor_reason): New enum.
9596         (struct predictor_hash): New struct.
9597         (predictor_hash::hash): New function.
9598         (predictor_hash::equal): Likewise.
9599         (not_removed_prediction_p): New function.
9600         (prune_predictions_for_bb): Likewise.
9601         (combine_predictions_for_bb): Prune predictions.
9603 2016-06-09  Martin Liska  <mliska@suse.cz>
9605         * predict.c (filter_predictions): New function.
9606         (remove_predictions_associated_with_edge): Use the filter
9607         function.
9608         (equal_edge_p): New function.
9610 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
9612         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
9613         Correct usage of @samp vs @option, add @samp where appropriate.
9614         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
9615         Add armv6s-m and document it, as it is no official ARM name.
9617 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9619         * ifcvt.c (struct noce_if_info): Add transform_name field.
9620         (noce_try_move): Set if_info->transform_name to the function name.
9621         (noce_try_ifelse_collapse): Likewise.
9622         (noce_try_store_flag): Likewise.
9623         (noce_try_inverse_constants): Likewise.
9624         (noce_try_store_flag_constants): Likewise.
9625         (noce_try_addcc): Likewise.
9626         (noce_try_store_flag_mask): Likewise.
9627         (noce_try_cmove): Likewise.
9628         (noce_try_cmove_arith): Likewise.
9629         (noce_try_minmax): Likewise.
9630         (noce_try_abs): Likewise.
9631         (noce_try_sign_mask): Likewise.
9632         (noce_try_bitop): Likewise.
9633         (noce_convert_multiple_sets): Likewise.
9634         (noce_process_if_block): Print if_info->transform_name to
9635         dump_file if transformation succeeded.
9637 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9639         * config/arm/cortex-a57.md (cortex_a57_alu):
9640         Handle csel type.
9642 2016-06-08  Martin Sebor  <msebor@redhat.com>
9643             Jakub Jelinek  <jakub@redhat.com>
9645         PR c++/70507
9646         PR c/68120
9647         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
9648         BUILT_IN_MUL_OVERFLOW_P): New builtins.
9649         * builtins.c: Include gimple-fold.h.
9650         (fold_builtin_arith_overflow): Handle
9651         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
9652         (fold_builtin_3): Likewise.
9653         * doc/extend.texi (Integer Overflow Builtins): Document
9654         __builtin_{add,sub,mul}_overflow_p.
9656 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
9658         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
9659         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
9661 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
9663         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
9664         Rewrite, looking one level down for records and arrays.
9666 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
9668         * pretty-print.c: Include "selftest.h".
9669         (pp_format): Fix comment.
9670         (identifier_to_locale): Likewise.
9671         (selftest::test_basic_printing): New function.
9672         (selftest::assert_pp_format): New function.
9673         (selftest::test_pp_format): New function.
9674         (selftest::pretty_print_c_tests): New function.
9675         * selftest-run-tests.c (selftest::run_tests): Call
9676         selftest::pretty_print_c_tests.
9677         * selftest.h (pretty_print_c_tests): New declaration.
9679 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9681         * invoke.texi (max-loop-headers-insns): Document.
9682         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
9683         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
9684         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
9686 2016-06-08  Richard Biener  <rguenther@suse.de>
9688         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
9689         on strided SLP loads and fall back to scalar loads in case
9690         we can't chunk them.
9692 2016-06-08  Richard Biener  <rguenther@suse.de>
9694         PR tree-optimization/71452
9695         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
9696         type used for the SSA rewrite has enough precision to cover
9697         the dynamic type of the location.
9699 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
9700             Richard Biener  <rguenther@suse.de>
9702         PR c++/71448
9703         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
9704         the same as DECL_P (base0) for indirect_base0.  Use equality_code
9705         in one further place.
9707 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
9709         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
9710         to one word if the field is known to overlap other words.
9711         (extract_bit_field_1): Likewise.
9712         (store_split_bit_field): Remove compensating code.
9713         (extract_split_bit_field): Likewise.
9715 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
9717         PR debug/71432
9718         PR ada/71413
9719         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
9721 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9723         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
9724         VDQF.
9725         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
9726         (arch64_addpv4sf): Delete.
9727         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
9728         "gen_aarch64_addpv4sf".
9729         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
9730         builtin.
9731         (vpadds_f32): Likewise.
9732         (vpaddq_f32): Likewise.
9733         (vpaddq_f64): Likewise.
9735 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9737         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
9738         VALLF.
9739         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
9740         to VALLF.  Rename to "fabd<mode>3".
9741         "*fabd_scalar<mode>3): Delete.
9742         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
9743         Use builtin.
9744         (vabdd_f64): Likewise.
9745         (vabd_f32): Likewise.
9746         (vabd_f64): Likewise.
9747         (vabdq_f32): Likewise.
9748         (vabdq_f64): Likewise.
9750 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9752         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
9753         VALLF.
9754         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
9755         "aarch64_rsqrts<mode>".
9756         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
9757         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
9758         builtin.
9759         (vrsqrtsd_f64): Likewise.
9760         (vrsqrts_f32): Likewise.
9761         (vrsqrts_f64): Likewise.
9762         (vrsqrtsq_f32): Likewise.
9763         (vrsqrtsq_f64): Likewise.
9765 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9767         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
9768         VALLF.
9769         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
9770         "aarch64_rsqrte<mode>".
9771         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
9772         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
9773         builtin.
9774         (vrsqrted_f64): Likewise.
9775         (vrsqrte_f32): Likewise.
9776         (vrsqrte_f64): Likewise.
9777         (vrsqrteq_f32): Likewise.
9778         (vrsqrteq_f64): Likewise.
9780 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9782         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
9783         (ucvtf): Likewise.
9784         (fcvtzs): Likewise.
9785         (fcvtzu): Likewise.
9786         * config/aarch64/aarch64-simd.md
9787         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
9788         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
9789         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
9790         Use builtin.
9791         (vcvt_n_f32_u32): Likewise.
9792         (vcvt_n_s32_f32): Likewise.
9793         (vcvt_n_u32_f32): Likewise.
9794         (vcvtq_n_f32_s32): Likewise.
9795         (vcvtq_n_f32_u32): Likewise.
9796         (vcvtq_n_f64_s64): Likewise.
9797         (vcvtq_n_f64_u64): Likewise.
9798         (vcvtq_n_s32_f32): Likewise.
9799         (vcvtq_n_s64_f64): Likewise.
9800         (vcvtq_n_u32_f32): Likewise.
9801         (vcvtq_n_u64_f64): Likewise.
9802         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
9803         (VSDQ_SDI): Likewise.
9804         (fcvt_target): Support V4DI, V4SI and V2SI.
9805         (FCVT_TARGET): Likewise.
9807 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
9809         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
9810         (TYPES_BINOP_SUS): Likewise.
9811         (aarch64_simd_builtin_data): Update include file name.
9812         (aarch64_builtins): Likewise.
9813         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
9814         for conversion between scalar float-point and fixed-point.
9815         (ucvtf): Likewise.
9816         (fcvtzs): Likewise.
9817         (fcvtzu): Likewise.
9818         * config/aarch64/aarch64.md
9819         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
9820         pattern for conversion between scalar float to fixed-pointer.
9821         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
9822         (UNSPEC_FCVTZS): New UNSPEC enumeration.
9823         (UNSPEC_FCVTZU): Likewise.
9824         (UNSPEC_SCVTF): Likewise.
9825         (UNSPEC_UCVTF): Likewise.
9826         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
9827         Use builtin.
9828         (vcvtd_n_f64_u64): Likewise.
9829         (vcvtd_n_s64_f64): Likewise.
9830         (vcvtd_n_u64_f64): Likewise.
9831         (vcvtd_n_f32_s32): Likewise.
9832         (vcvts_n_f32_u32): Likewise.
9833         (vcvtd_n_s32_f32): Likewise.
9834         (vcvts_n_u32_f32): Likewise.
9835         * config/aarch64/iterators.md (fcvt_target): Support integer to float
9836         mapping.
9837         (FCVT_TARGET): Likewise.
9838         (FCVT_FIXED2F): New iterator.
9839         (FCVT_F2FIXED): Likewise.
9840         (fcvt_fixed_insn): New define_int_attr.
9842 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9844         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
9845         some statements was removed.
9847 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
9849         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
9850         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
9851         (vect_can_advance_ivs_p): likewise.
9852         (vect_update_ivs_after_vectorizer): likewise.
9853         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
9854         (vect_analyze_scalar_cycles_1): likewise.
9855         (vect_analyze_loop_operations): likewise.
9856         (report_vect_op): likewise.
9857         (vect_is_slp_reduction): likewise.
9858         (vect_is_simple_reduction): likewise.
9859         (get_initial_def_for_induction): likewise.
9860         (vect_transform_loop): likewise.
9861         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
9862         (vect_recog_sad_pattern): likewise.
9863         (vect_recog_widen_sum_pattern): likewise.
9864         (vect_recog_widening_pattern): likewise.
9865         (vect_recog_divmod_pattern): likewise.
9866         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
9867         (vect_analyze_slp_instance): likewise.
9868         (vect_transform_slp_perm_load): likewise.
9869         (vect_schedule_slp_instance): likewise.
9871 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9873         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
9874         (return_prediction): PRED_CONST_RETURN predict return as not taken.
9875         * predict.def (PRED_CONTINUE): Change hitrate 50->67
9876         (PRED_LOOP_BRANCH): Document predictor as broken.
9877         (PRED_LOOP_EXIT): Change hitrate 91->92.
9878         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
9879         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
9880         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
9881         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
9882         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
9883         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
9884         (PRED_CALL): Chane hitrate 71->67.
9885         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
9886         (PRED_GOTO): Document as unused right now.
9887         (PRED_CONST_RETURN): Change hitrate 67->69
9888         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
9889         (PRED_NULL_RETURN): Change hitrate 91->90.
9890         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
9891         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
9892         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
9894 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
9896         * config/rs6000/altivec.h: Add __builtin_vec_mul.
9897         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
9898         special case Altivec builtin.
9899         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
9900         VSX_BUILTIN_VEC_MUL (replaced with special case code).
9901         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
9902         code for ALTIVEC_BUILTIN_VEC_MUL.
9903         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
9904         for __builtin_vec_mul.
9906 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
9908         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
9909         -mno-htm.
9911 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
9913         * spellcheck.c (selftest::test_find_closest_string): New function.
9914         (spellcheck_c_tests): Call the above.
9916 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9918         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
9920 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
9922         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
9923         Yv=Yv,C alternatives.
9925 2016-06-07  Richard Biener  <rguenther@suse.de>
9927         PR c/61564
9928         * common.opt (ffast-math): Make Optimization.
9930 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
9931             Prachi Godbole  <prachi.godbole@imgtec.com>
9933         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
9934         `fabs' and `fneg' type attributes.
9935         (p5600_fpu_fabs): Add `fmove' to the comment.
9937 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
9939         * gimple.c: Include builtins.h
9940         (gimple_inexpensive_call_p): New function.
9941         * gimple.h (gimple_inexpensive_call_p): Declare.
9942         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
9943         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
9944         fix formatting.
9946 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
9948         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
9949         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
9950         warning_at_rich_loc, warning_n, pedwarn, permerror,
9951         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
9952         sorry, fatal_error, internal_error, internal_error_no_backtrace):
9953         Use the above.
9955 2016-06-07  Richard Biener  <rguenther@suse.de>
9957         PR tree-optimization/71428
9958         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
9959         BIT_FIELD_REF op vs. load.
9961 2016-06-07  Richard Biener  <rguenther@suse.de>
9963         PR middle-end/71423
9964         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
9965         for signed ops.
9967 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
9969         * config/pa/pa.md (call): Generate indirect long calls to non-local
9970         functions on TARGET_64BIT.
9971         (call_value): Likewise.
9973 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
9975         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
9976         pattern and subsequent splitters.
9977         (call_val_reg_64bit_post_reload): Likewise.
9979 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9981         PR middle-end/71408
9982         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
9983         propagate_op_to_single_use.
9985 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
9987         PR middle-end/71281
9988         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
9990 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
9992         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
9993         (enum x86_dirflag_state): New enum.
9994         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
9995         (machine_function): Remove needs_cld.
9996         (ix86_current_function_needs_cld): Remove.
9997         * config/i386/i386.c (ix86_set_func_type): Set
9998         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
9999         (ix86_expand_prologue): Do not emit CLD here.
10000         (ix86_dirflag_mode_needed): New function.
10001         (ix86_dirflag_mode_entry): Ditto.
10002         (ix86_mode_needed): Handle X86_DIRFLAG entity.
10003         (ix86_mode_after): Ditto.
10004         (ix86_mode_entry): Ditto.
10005         (ix86_mode_exit): Ditto.
10006         (ix86_emit_mode_set): Ditto.
10007         * config/i386/i386.md (strmov_singleop): Set
10008         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
10009         Do not set ix86_current_function_needs_cld.
10010         (rep_mov): Ditto.
10011         (strset_singleop): Ditto.
10012         (rep_stos): Ditto.
10013         (cmpstrnqi_nz_1): Ditto.
10014         (cmpstrnqi_1): Ditto.
10015         (strlenqi_1): Ditto.
10017 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
10019         PR tree-optimization/71259
10020         * tree-vect-slp.c (vect_get_constant_vectors): For
10021         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
10022         one for constant op, and use COND_EXPR for non-constant.
10024 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
10026         * Makefile.in (OBJS): Add function-tests.o,
10027         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
10028         selftest-run-tests.o.
10029         (OBJS-libcommon): Add selftest.o.
10030         (OBJS-libcommon-target): Add selftest.o.
10031         (all.internal): Add "selftest".
10032         (all.cross): Likewise.
10033         (selftest): New phony target.
10034         (s-selftest): New target.
10035         (selftest-gdb): New phony target.
10036         (COLLECT2_OBJS): Add selftest.o.
10037         * bitmap.c: Include "selftest.h".
10038         (selftest::test_gc_alloc): New function.
10039         (selftest::test_set_range): New function.
10040         (selftest::test_clear_bit_in_middle): New function.
10041         (selftest::test_copying): New function.
10042         (selftest::test_bitmap_single_bit_set_p): New function.
10043         (selftest::bitmap_c_tests): New function.
10044         * common.opt (fself-test): New.
10045         * diagnostic-show-locus.c: Include "selftest.h".
10046         (make_range): New function.
10047         (test_range_contains_point_for_single_point): New function.
10048         (test_range_contains_point_for_single_line): New function.
10049         (test_range_contains_point_for_multiple_lines): New function.
10050         (assert_eq): New function.
10051         (test_get_line_width_without_trailing_whitespace): New function.
10052         (selftest::diagnostic_show_locus_c_tests): New function.
10053         * et-forest.c: Include "selftest.h".
10054         (selftest::test_single_node): New function.
10055         (selftest::test_simple_tree): New function.
10056         (selftest::test_disconnected_nodes): New function.
10057         (selftest::et_forest_c_tests): New function.
10058         * fold-const.c: Include "selftest.h".
10059         (selftest::assert_binop_folds_to_const): New function.
10060         (selftest::assert_binop_folds_to_nonlvalue): New function.
10061         (selftest::test_arithmetic_folding): New function.
10062         (selftest::fold_const_c_tests): New function.
10063         * function-tests.c: New file.
10064         * gimple.c: Include "selftest.h".
10065         Include "gimple-pretty-print.h".
10066         (selftest::verify_gimple_pp): New function.
10067         (selftest::test_assign_single): New function.
10068         (selftest::test_assign_binop): New function.
10069         (selftest::test_nop_stmt): New function.
10070         (selftest::test_return_stmt): New function.
10071         (selftest::test_return_without_value): New function.
10072         (selftest::gimple_c_tests): New function.
10073         * hash-map-tests.c: New file.
10074         * hash-set-tests.c: New file.
10075         * input.c: Include "selftest.h".
10076         (selftest::assert_loceq): New function.
10077         (selftest::test_accessing_ordinary_linemaps): New function.
10078         (selftest::test_unknown_location): New function.
10079         (selftest::test_builtins): New function.
10080         (selftest::test_reading_source_line): New function.
10081         (selftest::input_c_tests): New function.
10082         * rtl-tests.c: New file.
10083         * selftest-run-tests.c: New file.
10084         * selftest.c: New file.
10085         * selftest.h: New file.
10086         * spellcheck.c: Include "selftest.h".
10087         (selftest::levenshtein_distance_unit_test_oneway): New function,
10088         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
10089         (selftest::levenshtein_distance_unit_test): Likewise.
10090         (selftest::spellcheck_c_tests): Likewise.
10091         * toplev.c: Include selftest.h.
10092         (toplev::run_self_tests): New.
10093         (toplev::main): Handle -fself-test.
10094         * toplev.h (toplev::run_self_tests): New.
10095         * tree.c: Include "selftest.h".
10096         (selftest::test_integer_constants): New function.
10097         (selftest::test_identifiers): New function.
10098         (selftest::test_labels): New function.
10099         (selftest::tree_c_tests): New function.
10100         * tree-cfg.c: Include "selftest.h".
10101         (selftest::push_fndecl): New function.
10102         (selftest::test_linear_chain): New function.
10103         (selftest::test_diamond): New function.
10104         (selftest::test_fully_connected): New function.
10105         (selftest::tree_cfg_c_tests): New function.
10106         * vec.c: Include "selftest.h".
10107         (selftest::safe_push_range): New function.
10108         (selftest::test_quick_push): New function.
10109         (selftest::test_safe_push): New function.
10110         (selftest::test_truncate): New function.
10111         (selftest::test_safe_grow_cleared): New function.
10112         (selftest::test_pop): New function.
10113         (selftest::test_safe_insert): New function.
10114         (selftest::test_ordered_remove): New function.
10115         (selftest::test_unordered_remove): New function.
10116         (selftest::test_block_remove): New function.
10117         (selftest::reverse_cmp): New function.
10118         (selftest::test_qsort): New function.
10119         (selftest::vec_c_tests): New function.c.
10120         * wide-int.cc: Include selftest.h and wide-int-print.h.
10121         (selftest::from_int <wide_int>): New function.
10122         (selftest::from_int <offset_int>): New function.
10123         (selftest::from_int <widest_int>): New function.
10124         (selftest::assert_deceq): New function.
10125         (selftest::assert_hexeq): New function.
10126         (selftest::test_printing <VALUE_TYPE>): New function template.
10127         (selftest::test_ops <VALUE_TYPE>): New function template.
10128         (selftest::test_comparisons <VALUE_TYPE>): New function template.
10129         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
10130         template.
10131         (selftest::wide_int_cc_tests): New function.
10133 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10135         PR middle-end/37780
10136         * ifcvt.c (noce_try_ifelse_collapse): New function.
10137         Declare prototype.
10138         (noce_process_if_block): Call noce_try_ifelse_collapse.
10139         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
10140         (simplify_ternary_operation): Use the above to simplify
10141         conditional CLZ/CTZ expressions.
10143 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10145         PR middle-end/37780
10146         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
10147         define_insn_and_split.
10149 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10151         PR middle-end/37780
10152         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
10154 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10156         PR c/24414
10157         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
10158         Implicitly clobber memory for basic asm with non-empty assembler
10159         string.  Use targetm.md_asm_adjust also here.
10160         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
10161         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
10162         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
10163         non-empty assembler string.
10164         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
10165         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
10166         (decode_asm_operands): Handle basic asm in PARALLEL block.
10167         (extract_insn): Handle basic asm in PARALLEL block.
10168         * doc/extend.texi: Mention new behavior of basic asm.
10169         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
10170         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
10171         branch_needs_nop_p): Use asm_noperands.
10173 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
10175         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
10176         Include the M7 SPARC DFA scheduler.
10177         New attribute v3pipe.
10178         Annotate insns with v3pipe where appropriate.
10179         Define cpu_feature vis4.
10180         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
10181         Add (V8QI "8") to vbits.
10182         Add insns {add,sub}v8qi3
10183         Add insns ss{add,sub}v8qi3
10184         Add insns us{add,sub}{v8qi,v4hi}3
10185         Add insns {min,max}{v8qi,v4hi,v2si}3
10186         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
10187         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
10188         * config/sparc/niagara4.md: Add a comment explaining the
10189         discrepancy between the documented latenty numbers and the
10190         implemented ones.
10191         * config/sparc/niagara7.md: New file.
10192         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
10193         supports SPARC5 and VIS 4.0 instructions.
10194         * configure: Regenerate.
10195         * config.in: Likewise.
10196         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
10197         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
10198         TARGET_CPU_niagara7.
10199         (ASM_CPU64_DEFAULT_SPEC): Likewise.
10200         (CPP_CPU_SPEC): Handle niagara7.
10201         (ASM_CPU_SPEC): Likewise.
10202         * config/sparc/sparc-opts.h (processor_type): Add
10203         PROCESSOR_NIAGARA7.
10204         (mvis4): New option.
10205         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
10206         (AS_NIAGARA7_FLAG): Define.
10207         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
10208         (CPP_CPU64_DEFAULT_SPEC): Likewise.
10209         (CPP_CPU_SPEC): Handle niagara7.
10210         (ASM_CPU_SPEC): Likewise.
10211         * config/sparc/sparc.c (niagara7_costs): Define.
10212         (sparc_option_override): Handle niagara7 and adjust cache-related
10213         parameters with better values for niagara cpus.  Also support VIS4.
10214         (sparc32_initialize_trampoline): Likewise.
10215         (sparc_use_sched_lookahead): Likewise.
10216         (sparc_issue_rate): Likewise.
10217         (sparc_register_move_cost): Likewise.
10218         (dump_target_flag_bits): Support VIS4.
10219         (sparc_vis_init_builtins): Likewise.
10220         (sparc_builtins): Likewise.
10221         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
10222         VIS4 4.0.
10223         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
10224         UltraSparc M7.
10225         * config/sparc/sparc.opt (sparc_processor_type): New value
10226         niagara7.
10227         * config/sparc/visintrin.h (__attribute__): Prototypes for the
10228         VIS4 builtins.
10229         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
10230         -mvis4.
10231         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
10232         VIS4 builtins.
10234 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
10236         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
10238 2016-06-06  Richard Biener  <rguenther@suse.de>
10240         PR tree-optimization/71398
10241         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
10242         remove edges.
10244 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
10246         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
10247         ft32_expand_prolog, ft32_expand_epilogue):
10248         Handle pretend_args.
10249         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
10250         * config/ft32/ft32.md: Add pretend_returner.
10252 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
10254         PR target/71389
10255         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
10256         Copy op1 RTX to avoid invalid sharing.
10257         (ix86_expand_vector_move_misalign): Ditto.
10259 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
10261         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
10262         ATTRIBUTE_UNUSED.
10264 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10266         * predict.c (predicted_by_loop_heuristics_p): New function.
10267         (predict_iv_comparison): Use it.
10268         (predict_loops): Walk from innermost loops; do not predict edges
10269         leaving multiple loops multiple times; implement
10270         PRED_LOOP_ITERATIONS_MAX heuristics.
10271         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
10273 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
10275         * cfg.c (check_bb_profile): Do not report mismatched profiles when
10276         only edges out of BB are EH edges.
10278 2016-06-04  Martin Sebor  <msebor@redhat.com>
10279             Marcin Baczyński  <marbacz@gmail.com>
10281         PR c/48116
10282         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
10283         a void expression in a void function.
10285 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10287         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
10288         aux; dump reasons of decisions.
10289         (should_duplicate_loop_header_p): Likewise.
10290         (do_while_loop_p): Likewise.
10291         (ch_base::copy_headers): Dump asi num insns duplicated.
10293 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
10295         PR tree-optimization/71405
10296         * tree-ssa.c (execute_update_addresses_taken): For clobber with
10297         incompatible type, build a new clobber with the right type instead
10298         of building a VIEW_CONVERT_EXPR around it.
10300 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10302         PR tree-optimization/52171
10303         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
10304         by_pieces_ninsns instead of move_by_pieces_ninsns.
10306 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
10308         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
10309         for reg+reg addressing mode.
10311 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10313         * rs6000-c.c (c/c-tree.h): Add #include.
10314         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
10315         in C++ when found in the base position of vec_ld or vec_st.
10317 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
10319         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
10320         use of profile unless profile status is PROFILE_READ.
10321         * profile.c (compute_branch_probabilities): Set profile status
10322         only after reporting predictor hitrates.
10324 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
10326         PR target/71276
10327         PR target/71277
10328         * common.opt (ffp-int-builtin-inexact): New option.
10329         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
10330         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
10331         (ceil@var{m}2): Document dependence on this option.
10332         * ipa-inline-transform.c (inline_call): Handle
10333         flag_fp_int_builtin_inexact.
10334         * ipa-inline.c (can_inline_edge_p): Likewise.
10335         * config/i386/i386.md (rintxf2): Do not test
10336         flag_unsafe_math_optimizations.
10337         (rint<mode>2_frndint): New define_insn.
10338         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
10339         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
10340         for 387 instead of extending and truncating.
10341         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
10342         !flag_trapping_math instead of flag_unsafe_math_optimizations.
10343         Change to frndint<mode>2_<rounding>.
10344         (frndintxf2_<rounding>_i387): Likewise.  Change to
10345         frndint<mode>2_<rounding>_i387.
10346         (<rounding_insn>xf2): Likewise.
10347         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
10348         !flag_trapping_math instead of flag_unsafe_math_optimizations for
10349         x87.  Test TARGET_ROUND || !flag_trapping_math ||
10350         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
10351         SSE.  Use ROUND_NO_EXC in constant operand of
10352         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
10353         for 387 instead of extending and truncating.
10355 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
10356             Julia Koval  <julia.koval@intel.com>
10358         PR target/66960
10359         PR target/67630
10360         PR target/67634
10361         PR target/67841
10362         PR target/68037
10363         PR target/68618
10364         PR target/68661
10365         PR target/69575
10366         PR target/69596
10367         PR target/69734
10368         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
10369         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
10370         all registers, except for function return registers if there are
10371         no caller-saved registers.
10372         (ix86_set_func_type): New function.
10373         (ix86_set_current_function): Call ix86_set_func_type to set
10374         no_caller_saved_registers and func_type.  Call reinit_regs if
10375         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
10376         nor x87 instructions in interrupt handler nor function with
10377         no_caller_saved_registers attribute.
10378         (ix86_function_ok_for_sibcall): Return false if there are no
10379         caller-saved registers.
10380         (type_natural_mode): Don't warn ABI change for MMX in interrupt
10381         handler.
10382         (ix86_function_arg_advance): Skip for callee in interrupt handler.
10383         (ix86_function_arg): Return special arguments in interrupt handler.
10384         (ix86_promote_function_mode): Promote pointer to word_mode only
10385         for normal functions.
10386         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
10387         interrupt handler.
10388         (ix86_epilogue_uses): New function.
10389         (ix86_hard_regno_scratch_ok): Likewise.
10390         (ix86_save_reg): Preserve all registers in interrupt handler
10391         after reload.  Preserve all registers, except for function return
10392         registers, if there are no caller-saved registers after reload.
10393         (find_drap_reg): Always use callee-saved register if there are
10394         no caller-saved registers.
10395         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
10396         for interrupt handler.
10397         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
10398         Emit cld instruction if stringops are used in interrupt handler
10399         or interrupt handler isn't a leaf function.
10400         (ix86_expand_epilogue): Generate interrupt return for interrupt
10401         handler and pop the 'ERROR_CODE' off the stack before interrupt
10402         return in exception handler.
10403         (ix86_expand_call): Disallow calling interrupt handler directly.
10404         If there are no caller-saved registers, mark all registers that
10405         are clobbered by the call which returns as clobbered.
10406         (ix86_handle_no_caller_saved_registers_attribute): New function.
10407         (ix86_handle_interrupt_attribute): Likewise.
10408         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
10409         attributes.
10410         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
10411         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
10412         accumulation in interrupt function if stack may be realigned to
10413         avoid DRAP.
10414         (EPILOGUE_USES): New.
10415         (function_type): New enum.
10416         (machine_function): Add func_type and no_caller_saved_registers.
10417         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
10418         (interrupt_return): New pattern.
10419         * doc/extend.texi: Document x86 interrupt and
10420         no_caller_saved_registers attributes.
10422 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
10424         PR tree-optimization/52171
10425         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
10426         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
10427         Look for constant strings.  Move some code to emit_block_cmp_hints
10428         and use it.
10429         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
10430         * defaults.h (COMPARE_MAX_PIECES): New macro.
10431         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
10432         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
10433         (clear_by_pieces_1): Don't declare.  Move definition before use.
10434         (can_do_by_pieces): New static function.
10435         (can_move_by_pieces): Use it.  Return bool.
10436         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
10437         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
10438         (class pieces_addr); New.
10439         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
10440         pieces_addr::adjust, pieces_addr::increment_address,
10441         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
10442         functions for it.
10443         (class op_by_pieces_d): New.
10444         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
10445         functions for it.
10446         (class move_by_pieces_d, class compare_by_pieces_d,
10447         class store_by_pieces_d): New subclasses of op_by_pieces_d.
10448         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
10449         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
10450         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
10451         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
10452         compare_by_pieces_d::finish_mode): New member functions.
10453         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
10454         functions.
10455         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
10456         (emit_block_cmp_hints): New function.
10457         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
10458         use the newly defined classes.
10459         * expr.h (by_pieces_constfn): New typedef.
10460         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
10461         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
10462         (move_by_pieces_ninsns): Don't declare.
10463         (can_move_by_pieces): Change return value to bool.
10464         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
10465         (compare_by_pieces_branch_ratio): New hook.
10466         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
10467         (by_pieces_ninsns): Declare.
10468         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
10469         COMPARE_BY_PIECES.
10470         (default_compare_by_pieces_branch_ratio): New function.
10471         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
10472         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
10473         * doc/tm.texi: Regenerate.
10474         * tree-ssa-strlen.c: Include "builtins.h".
10475         (handle_builtin_memcmp): New static function.
10476         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
10477         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
10479 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10481         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
10482         relevant stmts which are simple and invariant.
10483         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
10484         instead of simple and invariant
10486 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10488         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
10489         (vectorizable_reduction): Check for new relevant state.
10490         (vectorizable_live_operation): vectorize live stmts using
10491         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
10492         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
10493         (vect_stmt_relevant_p): Check for stmts which are only used live.
10494         (process_use): Use of a stmt does not inherit it's live value.
10495         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
10496         (vect_analyze_stmt): Check for new relevant state.
10497         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
10498         outside the loop, but not inside it.
10500 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10502         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
10503         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
10504         (vect_get_vec_def_for_operand): Split out code.
10506 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
10508         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
10510 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
10512         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
10514 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10516         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
10518 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
10520         PR middle-end/71387
10521         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
10522         to noreturn e->callee->decl that has void return type and void
10523         arguments, adjust gimple_call_fntype and remove lhs even if it had
10524         previously addressable type.
10526 2016-06-02  Jeff Law  <law@redhat.com>
10528         PR tree-optimization/71328
10529         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
10530         error when checking for a jump back onto the copied path.
10532 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
10534         * config/microblaze/microblaze.c (get_branch_target): Add return
10535         NULL_RTX for the non-CALL_P case.
10536         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
10537         (insert_wic): Remove unused local "j".
10539 2016-06-02  Martin Liska  <mliska@suse.cz>
10541         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
10543 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
10544             Julia Koval  <julia.koval@intel.com>
10546         * function.c (assign_parm_setup_stack): Force source into a
10547         register if needed.
10548         * target.def (function_incoming_arg): Update documentation to
10549         allow arbitrary address computation based on hard register.
10550         * doc/tm.texi: Regenerated.
10552 2016-06-02  Martin Liska  <mliska@suse.cz>
10554         * predict.c (combine_predictions_for_bb): Fix first match in
10555         cases where a first predictor contains more than one occurence
10556         in list of predictors.  Take the best value in such case.
10558 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10560         PR rtl-optimization/71295
10561         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
10562         offset would go over the size of the inner mode reject it.
10564 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
10566         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
10567         x=x,x and v=v,m instead of x=x,m.
10569         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
10570         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
10571         alternative to v=rm,C.
10573         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
10574         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
10575         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
10576         instead of vex for the last two above mentioned alternatives.
10578 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10580         PR target/70830
10581         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
10583 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
10585         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
10587 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
10589         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
10590         from int to unsigned.
10592 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10594         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
10595         alternatives, eliminating preferred register class.  Add support
10596         for the MTVSRDD instruction in ISA 3.0.
10597         (vsx_splat_v4si_internal): Use splat_input_operand instead of
10598         reg_or_indexed_operand.
10599         (vsx_splat_v4sf_internal): Likewise.
10601 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
10603         PR target/71186
10604         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
10605         for loading up all 0's or all 1's.
10607 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10609         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
10611 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
10613         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
10614         extension.
10615         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
10616         * gcc.c (set_source_date_epoch_envvar): New function, sets
10617         the SOURCE_DATE_EPOCH environment variable to the current time.
10619 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10621         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
10622         the factor for live Phi nodes.
10624 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
10626         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
10627         * tree-parloops.c (parallelize_loops): likewise.
10628         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
10629         tree_unswitch_outer_loop): likewise.
10631 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
10633         PR middle-end/71371
10634         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
10635         around creation of the temporary.
10637 2016-06-01  Richard Biener  <rguenther@suse.de>
10639         PR tree-optimization/71366
10640         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
10641         (unloop_loops): Move removing edges here ...
10642         (try_unroll_loop_completely): ... from here.
10643         (try_peel_loop): ... and here.
10644         (tree_unroll_loops_completely_1): Track parent loops via
10645         bitmap of header BBs.
10646         (tree_unroll_loops_completely): Adjust for that.
10648 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10650         * config/rs6000/altivec.h (vec_slv): New macro.
10651         (vec_srv): New macro.
10652         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
10653         (UNSPEC_VSRV): New value.
10654         (vslv): New insn.
10655         (vsrv): New insn.
10656         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
10657         (vsrv): New builtin definition.
10658         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
10659         define argument types for new builtin.
10660         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
10661         new builtin.
10662         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
10663         functions.
10665 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
10666             Jocelyn Mayer  <l_indien@magic.fr>
10668         PR target/67310
10669         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
10670         detect processor family for signature_CENTAUR_ebx.
10671         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
10672         signature_CENTAUR_ebx.
10673         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
10674         <default>: Pass x86-64 for has_longmode.
10676 2016-06-01  Nathan Sidwell  <nathan@acm.org>
10678         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
10679         undefined weak.
10681 2016-06-01  Richard Biener  <rguenther@suse.de>
10683         PR tree-optimization/71261
10684         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
10685         of stmts successfully put in the bool pattern.  Remove
10686         single-use restriction.
10687         (adjust_bool_pattern_cast): Add cast at the use site via the
10688         pattern def sequence.
10689         (adjust_bool_pattern): Remove recursion, maintain a hash-map
10690         of patterned defs.  Use the pattern def seqence instead of
10691         multiple independent patterns.
10692         (sort_after_uid): New qsort compare function.
10693         (adjust_bool_stmts): New function to process stmts in the bool
10694         pattern in IL order.
10695         (vect_recog_bool_pattern): Adjust.
10696         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
10697         (ifcvt_walk_pattern_tree): Likewise.
10698         (stmt_is_root_of_bool_pattern): Likewise.
10699         (ifcvt_repair_bool_pattern): Likewise.
10700         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
10702 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
10704         * loop-unroll.c (decide_unroll_constant_iterations,
10705         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
10706         likely upper bounds.
10707         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
10709 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
10711         * tree-core.h (enum omp_clause_code): Remove
10712         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
10714 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10716         * config/arm/sync.md (arm_store_exclusive<mode>):
10717         Use 'H' output modifier on operands[2] rather than creating a new
10718         entry in out-of-bounds memory of the operands array.
10719         (arm_store_release_exclusivedi): Likewise.
10721 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10723         * config/arm/arm.c (arm_fusion_enabled_p): New function.
10724         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
10725         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
10726         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
10728 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10730         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
10731         into account live statements for mask producers.
10733 2016-06-01  Richard Biener  <rguenther@suse.de>
10735         PR tree-optimization/71311
10736         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
10737         restrict to non-INTEGER_CST @0.
10739 2016-06-01  Richard Biener  <rguenther@suse.de>
10741         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
10742         (relational patterns): Use :c to avoid pattern duplications.
10744 2016-06-01  Richard Biener  <rguenther@suse.de>
10746         * genmatch.c (comparison_code_p): New predicate.
10747         (swap_tree_comparison): New function.
10748         (commutate): Add for_vec parameter to append new for entries.
10749         Support commutating relational operators by swapping it alongside
10750         operands.
10751         (lower_commutative): Adjust.
10752         (dt_simplify::gen): Do not pass artificial operators to gen
10753         functions.
10754         (decision_tree::gen): Do not add artificial operators as parameters.
10755         (parser::parse_expr): Verify operator commutativity when :c is
10756         applied.  Allow :C to override this.
10757         * match.pd: Adjust patterns to use :C instead of :c where required.
10759 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
10761         PR tree-optimization/71077
10762         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
10763         the combining step, use boolean_false_node and boolean_true_node
10764         as the designated false/true return values.
10766 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
10768         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
10769         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
10770         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
10771         PRED_LOOP_EXIT.
10773 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
10775         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
10776         of flags impliying the register renaming.
10777         * toplev.c (process_options): Do not imply flag_rename_registers with
10778         loop peeling.
10780 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10782         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
10783         default implementation.
10785 2016-05-31  Nathan Sidwell  <nathan@acm.org>
10787         * dwarf2out.c (cur_line_info_table): Add GTY marker.
10789 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10791         * config/sh/constraints.md (b): Remove constraint.
10792         * config/sh/predicates.md (arith_reg_operand): Remove
10793         TARGET_REGISTER_P.
10794         * config/sh/sh-modes.def (PDI): Remove.
10795         * config/sh/sh.c (sh_target_reg_class,
10796         sh_optimize_target_register_callee_saved): Remove functions.
10797         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
10798         (sh_expand_epilogue): Update comment.
10799         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
10800         sh_secondary_reload): Remove TARGET_REGS related code.
10801         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
10802         TARGET_REGISTER_P): Remove macros.
10803         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
10804         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
10805         TR1_REG, TR2_REG): Remove constants.
10806         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
10808 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10810         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
10811         define_expand patterns.
10812         (adddi3_compact): Rename to adddi3.
10813         (subdi3_compact): Rename to subdi3.
10814         (*negdi2): Rename to negdi2.
10815         (*abs<mode>2): Rename to abs<mode>2.
10817 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
10819         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
10820         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
10821         (atomic_sub_fetchsi): ... this new pattern.
10822         (mvtc): Add CC_REG clobber.
10824 2016-05-31  Marek Polacek  <polacek@redhat.com>
10826         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
10828 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10830         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
10831         aarch64_fusion_enabled_p to check for fusion capabilities.
10833 2016-05-31  Richard Biener  <rguenther@suse.de>
10835         PR tree-optimization/71352
10836         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
10837         minus one and a negate.
10839 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10841         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
10842         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
10843         Delete prototype.
10844         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
10845         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
10846         Remove use of aarch64_simd_attr_length_move, set length attribute
10847         directly.
10848         (*aarch64_be_movoi): Likewise.
10849         (*aarch64_be_movci): Likewise.
10850         (*aarch64_be_movxi): Likewise.
10852 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
10854         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
10855         It no longer does that.
10856         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
10858 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
10860         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
10861         attribute __unused__.
10863 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10865         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
10866         * config/arm/arm.c (arm_arch_thumb1): Define.
10867         (arm_option_override): Initialize arm_arch_thumb1.
10868         * config/arm/arm.h (arm_arch_thumb1): Declare.
10869         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
10870         support Thumb-1 ISA.
10872 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
10874         PR target/71346
10875         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
10876         `Yv' for scalar operand.
10878 2016-05-31  Tom de Vries  <tom@codesourcery.com>
10880         PR tree-optimization/69068
10881         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
10882         phis with more than two args.
10884 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
10886         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
10887         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
10888         target.
10890 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
10892         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
10893         tune_64.
10894         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
10895         support on SPARC.
10896         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
10897         cpu_32, cpu_64, tune_32 and tune_64.
10898         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
10900 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
10902         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
10904 2016-05-30  Andi Kleen  <ak@linux.intel.com>
10906         * auto-profile.c (read_profile): Replace asserts with errors
10907         when file does not exist.
10908         * gcov-io.c (gcov_read_words): Dito.
10910 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10912         * tree-cfg.c (print_loop): Print likely upper bounds.
10914 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10916         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
10917         * opts.c (default_options): Enable peel loops at -O3.
10918         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
10919         (try_peel_loop): Do not re-peel already peeled loops;
10920         use likely upper bounds; fix profile updating.
10921         (pass_complete_unroll::execute): Initialize peeled_loops.
10923 2016-05-30  Martin Liska  <mliska@suse.cz>
10925         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
10926         computed costs by frequency of BB they belong to.
10927         (get_scaled_computation_cost_at): New function.
10929 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
10930             Marc Glisse  <marc.glisse@inria.fr>
10932         PR tree-optimization/71289
10933         * match.pd (-1 / B < A, A > -1 / B): New transformations.
10935 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10937         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
10939 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10941         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
10942         for peeled copies; avoid underflow when updating estimates; correctly
10943         scale loop profile.
10945 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
10947         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
10948         r236875. Corrected oe3 to oe2 as obvious.
10950 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
10952         PR middle-end/71269
10953         PR middle-end/71252
10954         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
10955         that inserted stmt will not dominate stmts that defines its operand.
10956         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
10957         (rewrite_expr_tree_parallel): Likewise.
10959 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
10961         PR middle-end/71252
10962         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
10963         all fields including stmt_to_insert are swapped.
10965 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10967         * predict.h (force_edge_cold): Declare.
10968         * predict.c (force_edge_cold): New function.
10969         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
10970         updating.
10971         (canonicalize_loop_induction_variables): Fix formating.
10973 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
10975         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
10976         (visium_expand_copysign): Use gen_int_mode directly.
10977         (visium_compute_frame_size): Minor tweaks.
10979 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
10981         * tree-vect-loop.c (vect_analyze_loop_2): Use
10982         likely_max_stmt_executions_int.
10984 2016-05-30  Tom de Vries  <tom@codesourcery.com>
10986         PR tree-optimization/69067
10987         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
10989 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
10991         PR target/71245
10992         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
10993         New peepholes to remove unneeded fild/fistp pairs.
10994         (define_peephole2 atomic_loaddi_fpu): Ditto.
10996 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
10998         * predict.c (maybe_hot_frequency_p): Avoid division.
11000 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
11002         * doc/install.texi: Use https for shop.fsf.org.
11004 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11006         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
11007         likely_max_stmt_executions_int.
11009 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11011         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
11012         likely_max_stmt_executions_int.
11014 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11016         * profile.c (compute_branch_probabilities): Do not report hitrates
11017         here.
11018         (branch_prob): Report hitrates here.
11019         * predict.c (gimple_predict_edge): Do not assert profile status;
11020         fix formatting issues.
11022 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11024         * predict.c (edge_predicted_by_p): New function.
11025         (predict_paths_for_bb): Do not put multiple predictions of the same type
11026         on one edge.
11028 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11030         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
11031         commit.
11033 2016-05-28  Alan Modra  <amodra@gmail.com>
11035         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
11037 2016-05-28  Alan Modra  <amodra@gmail.com>
11039         PR rtl-optimization/71275
11040         * ira.c (ira): Free dominance info.
11042 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
11044         * doc/sourcebuild.texi: New address for upstream Go repository.
11046 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11048         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
11049         (TARGET_ARM_V7M): Likewise.
11051 2016-05-26  Jeff Law  <law@redhat.com>
11053         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
11054         (thread_across_edge): Remove calls to find_jump_threads_backwards.
11055         * passes.def: Add jump threading passes before DOM/VRP.
11056         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
11057         argument to a basic block from an edge.  Remove tests which are
11058         handled elsewhere.
11059         (pass_data_thread_jumps, class pass_thread_jumps): New.
11060         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
11061         (make_pass_thread_jumps): Likewise.
11062         * tree-pass.h (make_pass_thread_jumps): Declare.
11064 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11066         * config/visium/visium-protos.h (split_double_move): Rename into...
11067         (visium_split_double_move): ...this.
11068         (visium_split_double_add): Declare.
11069         * config/visium/visium.c (split_double_move): Rename into...
11070         (visium_split_double_move): ...this.
11071         (visium_split_double_add): New function.
11072         (visium_expand_copysign): Renumber operands for consistency.
11073         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
11074         (DFmode move splitter): Likewise.
11075         (*addi3_insn): Split by means of visium_split_double_add.
11076         (*adddi3_insn_flags): Delete.
11077         (*plus_plus_sltu<subst_arith>): New insn.
11078         (*subdi3_insn): Split by means of visium_split_double_add.
11079         (subdi3_insn_flags): Delete.
11080         (*minus_minus_sltu<subst_arith>): New insn.
11081         (*negdi2_insn): Split by means of visium_split_double_add.
11082         (*negdi2_insn_flags): Delete.
11084 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
11086         * configure.ac: Treat a --with-headers option without argument
11087         the same as the default (i.e. consult sys-include directory).
11088         * configure: Regenerate.
11090 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11092         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
11093         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
11094         prototype.
11095         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
11096         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11098 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11100         PR target/63596
11101         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
11102         tree-stdarg analysis results.
11103         (aarch64_setup_incoming_varargs): Likewise.
11105 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
11107         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
11108         va_list_gpr_counter_field and va_list_fpr_counter_field.
11110 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
11112         PR67609
11113         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
11114         * config/aarch64/aarch64.c
11115         (aarch64_cannot_change_mode_class): Remove function.
11116         * config/aarch64/aarch64-protos.h
11117         (aarch64_cannot_change_mode_class): Remove.
11119 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
11121         * cfgloop.c (record_niter_bound): Record likely upper bounds.
11122         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
11123         get_likely_max_loop_iterations_int): New.
11124         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
11125         any_likely_upper_bound.
11126         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
11127         Declare.
11128         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
11129         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
11130         upper bound.
11131         (unroll_loop_constant_iterations): Likewise.
11132         (unroll_loop_runtime_iterations): Likewise.
11133         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
11134         * lto-streamer-out.c (output_cfg): Likewise.
11135         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
11136         bounds.
11137         (canonicalize_loop_induction_variables): Dump likely upper bounds.
11138         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
11139         (likely_max_loop_iterations): New.
11140         (likely_max_loop_iterations_int): New.
11141         (likely_max_stmt_executions): New.
11142         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
11143         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
11144         likely_max_stmt_executions): Declare.
11146 2016-05-27  Marek Polacek  <polacek@redhat.com>
11148         PR middle-end/71308
11149         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
11151 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11153         * config/s390/s390.md (2x risbg splitters): Use
11154         reg_overlap_mentioned_p instead of rtx_equal_p.
11156 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11158         * combine.c (make_compound_operation): Take known zero bits into
11159         account when checking for possible zero_extend.
11161 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11163         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
11164         Use const_int_operand for operand 2 predicate.  Simplify expand code
11165         as a result.
11167 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
11169         PR middle-end/71279
11170         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
11171         into comparison.
11173 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11175         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
11176         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
11177         that returns CC_SESWPmode and CC_ZESWPmode.
11178         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
11179         and CC_SESWPmode.
11180         (aarch64_rtx_costs): Likewise.
11182 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
11184         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
11185         for ISA 3.0 min/max support.
11186         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
11187         conditional move support.
11188         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
11189         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
11190         available.
11191         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
11192         conditional moves where the comparison type is different from move
11193         type.
11194         (fp_minmax): New code iterator for smin/smax.
11195         (minmax): New code attributes for min/max.
11196         (SMINMAX): Likewise.
11197         (smax<mode>3): Combine min, max insns into one insn using the
11198         fp_minmax code iterator.  Add support for ISA 3.0 min/max
11199         instructions that don't need -ffast-math.
11200         (s<minmax><mode>3): Likewise.
11201         (smax<mode>3_vsx): Likewise.
11202         (smin<mode>3): Likewise.
11203         (s<minmax><mode>3_vsx): Likewise.
11204         (smin<mode>3_vsx): Likewise.
11205         (pre-VSX min/max splitters): Likewise.
11206         (s<minmax><mode>3_fpr): Likewise.
11207         (movsfcc): Rewrite floating point conditional moves to combine
11208         SFmode/DFmode into a single insn.
11209         (mov<mode>cc): Likewise.
11210         (movdfcc): Likewise.
11211         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
11212         SFDF2 iterators to handle all combinations.
11213         (fseldfsf4): Likewise.
11214         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
11215         (fseldfdf4): Likewise.
11216         (fselsfdf4): Likewise.
11217         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
11218         comparison instructions that set a 0/-1 mask, and use it for
11219         floating point conditional move via XXSEL.
11220         (fpmask<mode>): Likewise.
11221         (xxsel<mode>): Likewise.
11222         * config/rs6000/predicates.md (min_max_operator): Delete, no
11223         longer used.
11224         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
11225         instructions that generate a 0/-1 mask for use with XXSEL.
11226         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
11227         say whether floating point min/max is available, either through
11228         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
11229         (TARGET_MINMAX_DF): Likewise.
11231 2016-05-27  Alan Modra  <amodra@gmail.com>
11233         PR rtl-optimization/71275
11234         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
11235         for update_equiv_regs and combine_and_move_insns.
11237 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
11239         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
11240         if_then_else or cond RTXes to calculate attribute value.
11241         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
11242         <attr "length_immediate>: Ditto.
11243         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
11244         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
11245         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
11246         <attr "type">: Ditto.
11247         <attr "prefix_data16">: Ditto.
11248         <attr "prefix_extra">: Ditto.
11249         <attr "length_immediate">: Ditto.
11250         <attr "prefix">: Ditto.
11251         (vec_set<mode>_0) <attr "isa">: Ditto.
11252         <attr "prefix_extra">: Ditto.
11253         <attr "length_immediate">: Ditto.
11254         <attr "prefix">: Ditto.
11255         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
11256         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
11257         (sse2_storelpd) <attr "prefix_data16">: Ditto.
11258         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
11259         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
11260         <attr "length_immediate">: Ditto.
11261         <attr "prefix">: Ditto.
11262         (sse2_movsd) <attr "length_immediate">: Ditto.
11263         <attr "prefix">: Ditto.
11264         (vec_concatv2df)  <attr "isa">: Ditto.
11265         <attr "prefix">: Ditto.
11266         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
11267         (*vec_extractv2di_1) <attr "isa">: Ditto.
11268         <attr "type">: Ditto.
11269         <attr "length_immediate">: Ditto.
11270         <attr "prefix_rex">: Ditto.
11271         <attr "prefix_extra">: Ditto.
11272         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
11273         <attr "prefix_extra">: Ditto.
11274         <attr "length_immediate">: Ditto.
11275         (vec_concatv2di) <attr "isa">: Ditto.
11276         <attr "prefix_extra">: Ditto.
11277         <attr "length_immediate">: Ditto.
11278         <attr "prefix">: Ditto.
11280 2016-05-26  Martin Liska  <mliska@suse.cz>
11282         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
11283         function.
11284         (operator+): Likewise.
11285         (operator-): Likewise.
11286         (comp_cost::operator+=): Likewise.
11287         (comp_cost::operator-=): Likewise.
11288         (comp_cost::operator/=): Likewise.
11289         (comp_cost::operator*=): Likewise.
11290         (operator<): Likewise.
11291         (operator==): Likewise.
11292         (operator<=): Likewise.
11293         (new_cost): Remove.
11294         (infinite_cost_p): Likewise.
11295         (add_costs): Likewise.
11296         (sub_costs): Likewise.
11297         (compare_costs): Likewise.
11298         (set_group_iv_cost): Use the newly introduced functions.
11299         (get_address_cost): Likewise.
11300         (get_shiftadd_cost): Likewise.
11301         (force_expr_to_var_cost): Likewise.
11302         (split_address_cost): Likewise.
11303         (ptr_difference_cost): Likewise.
11304         (difference_cost): Likewise.
11305         (get_computation_cost_at): Likewise.
11306         (determine_group_iv_cost_generic): Likewise.
11307         (determine_group_iv_cost_address): Likewise.
11308         (determine_group_iv_cost_cond): Likewise.
11309         (autoinc_possible_for_pair): Likewise.
11310         (determine_group_iv_costs): Likewise.
11311         (cheaper_cost_pair): Likewise.
11312         (iv_ca_recount_cost): Likewise.
11313         (iv_ca_set_no_cp): Likewise.
11314         (iv_ca_set_cp): Likewise.
11315         (iv_ca_cost): Likewise.
11316         (iv_ca_new): Likewise.
11317         (iv_ca_dump): Likewise.
11318         (iv_ca_narrow): Likewise.
11319         (iv_ca_prune): Likewise.
11320         (iv_ca_replace): Likewise.
11321         (try_add_cand_for): Likewise.
11322         (try_improve_iv_set): Likewise.
11323         (find_optimal_iv_set): Likewise.
11325 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11327         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
11328         that internal functions will clobber all caller-saved registers.
11330 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11332         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
11333         Return a better case_values_threshold when optimizing.
11335 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
11337         * config/aarch64/aarch64-simd.md (aarch64_combinez):
11338         Add ? to integer variant.
11339         (aarch64_combinez_be): Likewise.
11341 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
11343         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
11344         instead of x constraint.
11345         (vcvtps2ph256<mask_name>): Likewise.
11347         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
11348         alternative.  Formatting fix.
11350         * config/i386/sse.md
11351         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
11352         to ...
11353         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
11354         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
11355         maybe_evex prefix instead of vex.
11356         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
11357         EXT_REX_SSE_REG_P (op0) case in the splitter.
11359 2016-05-25  Jeff Law  <law@redhat.com>
11361         PR tree-optimization/71272
11362         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
11363         Update comments.  Add test for empty path.
11365 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
11367         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
11368         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
11369         special case builtin.
11370         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11371         code for ALTIVEC_BUILTIN_VEC_CMPNE.
11372         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11373         for __builtin_vec_cmpne.
11375 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11377         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
11378         redundant test and bail out if the type of the new operand is not
11379         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
11381 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11383         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
11384         (x_ix86_target_flags_explicit): Remove.
11385         * config/i386/i386.c (ix86_function_specific_save): Do not copy
11386         x_ix86_target_flags_explicit.
11387         (ix86_function_specific_restore): Ditto.
11389 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
11390             H.J. Lu  <hongjiu.lu@intel.com>
11392         PR target/70738
11393         * common/config/i386/i386-common.c
11394         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
11395         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
11396         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
11397         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
11398         (-mgeneral-regs-only): Add new option.
11399         * config/i386/i386.c (ix86_option_override_internal): Don't enable
11400         x87 instructions if only general registers are allowed.
11401         (ix86_target_string): Add ix86_flags argument. Handle additional
11402         flags options through ix86_flags argument.  Update all callers.
11403         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
11405 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11407         PR rtl-optimization/66940
11408         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
11409         decrementing desired_val will not overflow before performing these
11410         operations.
11412 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
11414         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
11415         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
11416         * config/i386/i386.c (enum ix86_builtins): Add
11417         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
11418         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
11419         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
11420         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
11421         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
11422         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
11423         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
11424         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
11425         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
11426         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
11427         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
11428         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
11429         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
11430         __builtin_ia32_cvtps2dq512_mask.
11431         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
11432         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
11433         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
11434         * config/i386/sse.md
11435         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
11436         Rename to ...
11437         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
11438         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
11439         to ...
11440         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
11441         (avx512f_vec_pack_sfix_v8df): New define_expand.
11442         (avx512f_roundpd512): Rename to ...
11443         (avx512f_round<castmode>512): ... this.  Change iterator.
11444         (avx512f_roundps512_sfix): New define_expand.
11445         (round<mode>2_sfix): Change iterator.
11447 2016-05-25  Nick Clifton  <nickc@redhat.com>
11449         * config/msp430/msp430.c (msp430_attr): Produce an error if a
11450         static interrupt handler is detected.
11451         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
11452         default linker script.
11453         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
11454         the low part of a symbolic pointer.
11456 2016-05-25  Richard Biener  <rguenther@suse.de>
11458         PR tree-optimization/71261
11459         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
11460         interesting stmt instead of immediate uses when looking
11461         for the use operand to replace.
11463 2016-05-25  Martin Liska  <mliska@suse.cz>
11465         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
11467 2016-05-25  Richard Biener  <rguenther@suse.de>
11469         PR tree-optimization/71264
11470         * tree-vect-stmts.c (vect_init_vector): Properly deal with
11471         vector type val.
11473 2016-05-25  Martin Liska  <mliska@suse.cz>
11475         PR tree-optimization/71239
11476         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
11477         if DECL_SIZE is NULL.
11479 2016-05-25  Richard Biener  <rguenther@suse.de>
11481         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
11482         * tree-if-conv.c (pass_data_if_conversion): Use it.
11484 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11486         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
11487         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
11488         * varpool.c (varpool_node::get_availability): Likewise.
11490 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11492         * config/rs6000/altivec.md (VNEG iterator): New iterator for
11493         VNEGW/VNEGD instructions.
11494         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
11495         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
11496         support for ISA 3.0 VNEGW/VNEGD instructions.
11498 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
11500         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
11501         pointers inside OACC_DATA regions.
11502         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
11503         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
11504         (gimplify_adjust_omp_clauses): Fix typo in comment.
11506 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
11508         * config/rs6000/altivec.md (VParity): New mode iterator for vector
11509         parity built-in functions.
11510         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
11511         zeros.
11512         (p9v_parity<mode>2): Likewise.
11513         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
11514         parity.
11515         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
11516         (parity<mode>2): ISA 3.0 expander for vector parity.
11517         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
11518         power9 built-ins.
11519         (BU_P9_64BIT_MISC_0): Likewise.
11520         (BU_P9_MISC_0): Likewise.
11521         (BU_P9V_AV_1): Likewise.
11522         (BU_P9V_AV_2): Likewise.
11523         (BU_P9V_AV_3): Likewise.
11524         (BU_P9V_AV_P): Likewise.
11525         (BU_P9V_VSX_1): Likewise.
11526         (BU_P9V_OVERLOAD_1): Likewise.
11527         (BU_P9V_OVERLOAD_2): Likewise.
11528         (BU_P9V_OVERLOAD_3): Likewise.
11529         (VCTZB): Add vector count trailing zeros support.
11530         (VCTZH): Likewise.
11531         (VCTZW): Likewise.
11532         (VCTZD): Likewise.
11533         (VPRTYBD): Add vector parity support.
11534         (VPRTYBQ): Likewise.
11535         (VPRTYBW): Likewise.
11536         (VCTZ): Add overloaded vector count trailing zeros support.
11537         (VPRTYB): Add overloaded vector parity support.
11538         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11539         overloaded vector count trailing zeros and parity instructions.
11540         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
11541         vector parity support.
11542         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
11543         trailing zeros support.
11544         (vec_cntlz): Likewise.
11545         (vec_vctzb): Likewise.
11546         (vec_vctzd): Likewise.
11547         (vec_vctzh): Likewise.
11548         (vec_vctzw): Likewise.
11549         (vec_vprtyb): Add ISA 3.0 vector parity support.
11550         (vec_vprtybd): Likewise.
11551         (vec_vprtybw): Likewise.
11552         (vec_vprtybq): Likewise.
11553         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11554         the ISA 3.0 vector count trailing zeros and vector parity built-in
11555         functions.
11557 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11559         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
11560         when there is stmt_to_insert.
11562 2016-05-24  Martin Sebor  <msebor@redhat.com>
11564         PR c++/71147
11565         * tree.h (complete_or_array_type_p): New inline function.
11567 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11569         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
11570         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
11571         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
11573         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
11574         Limit 1st alternative to noavx isa, split 2nd alternative into one
11575         noavx and one avx alternative, use *x and Bm in the former and
11576         x and m in the latter.
11578         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
11579         of sse4 for the first alternative, drop %v from the template
11580         and d operand modifier.  Split second alternative into one sse4_noavx
11581         and one avx alternative, use *x instead of *v in the former and v
11582         instead of *v in the latter.
11583         (*sse4_1_extractps): Use noavx isa instead of * for the first
11584         alternative, drop %v from the template.  Split second alternative into
11585         one noavx and one avx alternative, use *x instead of *v in the
11586         former and v instead of *v in the latter.
11587         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
11588         with noavx and the last one with avx.
11589         (sse4_1_phminposuw): Guard first alternative with noavx isa,
11590         split the second one into one noavx and one avx alternative,
11591         use *x and Bm in the former and x and m in the latter one.
11592         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
11593         alternatives.
11595         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
11596         first two alternatives to noavx, use *x instead of *v in the second
11597         one, add avx alternative without *.
11598         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
11599         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
11600         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
11602 2016-05-24  Jeff Law  <law@redhat.com>
11604         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
11605         New function, extracted from...
11606         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
11607         Allow simple copies and constant initializations in the SSA chain.
11609 2016-05-24  Marek Polacek  <polacek@redhat.com>
11611         PR c/71249
11612         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
11613         scope.
11615 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
11617         PR c++/71257
11618         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11619         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11620         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
11621         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
11622         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
11624 2016-05-24  Richard Biener  <rguenther@suse.de>
11626         PR tree-optimization/71240
11627         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
11628         has integral type.
11630 2016-05-24  Richard Biener  <rguenther@suse.de>
11632         PR tree-optimization/71230
11633         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
11635 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11637         * tree-vectorizer.h (vectorizable_comparison): Delete.
11638         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
11639         PURE_SLP_STMT check.
11640         * tree-vect-stmts.c (vectorizable_call): Likewise.
11641         (vectorizable_simd_clone_call): Likewise.
11642         (vectorizable_conversion): Likewise.
11643         (vectorizable_assignment): Likewise.
11644         (vectorizable_shift): Likewise.
11645         (vectorizable_operation): Likewise.
11646         (vectorizable_load): Likewise.
11647         (vectorizable_condition): Likewise.
11648         (vectorizable_store): Likewise.  Assert that we don't have
11649         hybrid SLP.
11650         (vectorizable_comparison): Make static.  Remove redundant
11651         PURE_SLP_STMT check.
11652         (vect_transform_stmt): Assert that we always have an slp_node
11653         if PURE_SLP_STMT.
11655 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11657         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
11658         operands[2] against 1 with comparison against CONST1_RTX.
11659         (<shift>di3_neon): Likewise.
11660         * config/arm/predicates.md (const0_operand): Replace with comparison
11661         against CONST0_RTX.
11663 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11665         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
11666         operands[2] against 1 with comparison against CONST1_RTX.
11667         (ashrdi3): Likewise.
11668         (lshrdi3): Likewise.
11669         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
11670         UINTVAL.
11671         (ashrsi3): Likewise.
11672         (lshrsi3): Likewise.
11673         (rotrsi3): Likewise.
11674         (define_split above *compareqi_eq0): Likewise.
11675         (define_split above "prologue"): Likewise.
11676         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
11677         * config/arm/predicates.md (shift_operator): Likewise.
11678         (shift_nomul_operator): Likewise.
11679         (sat_shift_operator): Likewise.
11680         (thumb1_cmp_operand): Likewise.
11681         (const_neon_scalar_shift_amount_operand): Replace manual range
11682         check with IN_RANGE.
11683         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
11684         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
11686 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11688         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
11689         with HOST_WIDE_INT_1.
11690         (insv): Likewise.
11691         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
11692         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
11693         (arm_canonicalize_comparison): Likewise.
11694         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
11695         HOST_WIDE_INT_1.
11696         (thumb1_size_rtx_costs): Likewise.
11697         (vfp_const_double_index): Replace cast of 1 to unsigned
11698         HOST_WIDE_INT with HOST_WIDE_INT_1U.
11699         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
11700         HOST_WIDE_INT_1.
11701         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
11702         HOST_WIDE_INT with HOST_WIDE_INT_1U.
11703         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
11704         HOST_WIDE_INT with HOST_WIDE_INT_1.
11706 2016-05-24  Marek Polacek  <polacek@redhat.com>
11708         * tree-cfg.h (should_remove_lhs_p): New predicate.
11709         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
11710         * gimplify.c (gimplify_modify_expr): Likewise.
11711         * tree-cfg.c (verify_gimple_call): Likewise.
11712         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
11713         * gimple-fold.c: Include "tree-cfg.h".
11714         (gimple_fold_call): Use should_remove_lhs_p.
11716 2016-05-24  Richard Biener  <rguenther@suse.de>
11718         PR tree-optimization/71253
11719         * cfganal.h (control_dependences): Make robust against edge
11720         and BB removal.
11721         (control_dependences::control_dependences): Remove edge_list argument.
11722         (control_dependences::get_edge): Remove.
11723         (control_dependences::get_edge_src): Add.
11724         (control_dependences::get_edge_dest): Likewise.
11725         (control_dependences::m_el): Make a vector of edge src/dest index.
11726         * cfganal.c (control_dependences::find_control_dependence): Adjust.
11727         (control_dependences::control_dependences): Likewise.
11728         (control_dependences::~control_dependence): Likewise.
11729         (control_dependences::get_edge): Remove.
11730         (control_dependences::get_edge_src): Add.
11731         (control_dependences::get_edge_dest): Likewise.
11732         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
11733         get_edge_src.
11734         (perform_tree_ssa_dce): Adjust.
11735         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
11736         get_edge_src.
11737         (pass_loop_distribution::execute): Adjust.  Do loop destroying
11738         conditional on changed.
11740 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11742         PR target/69857
11743         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
11744         return.  Reindent transformation comment and mention the ARM state
11745         behavior.
11747 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11749         PR middle-end/71252
11750         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
11751         after build_and_add_sum creates new use stmt.
11753 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11755         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
11756         load_lanes/grouped_load classification comes first.  Don't check
11757         whether the vectorization factor is a multiple of the group size
11758         for load_lanes.
11760 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
11762         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
11763         GROUP_GAP for single-element interleaving.
11764         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
11765         variable.
11767 2016-05-24  Richard Biener  <rguenther@suse.de>
11769         PR middle-end/70434
11770         PR c/69504
11771         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
11772         bases which are accessed with non-invariant indices.
11773         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
11774         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
11776 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
11778         PR middle-end/71170
11779         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
11780         (add_to_ops_vec): Add stmt_to_insert.
11781         (add_repeat_to_ops_vec): Init stmt_to_insert.
11782         (insert_stmt_before_use): New.
11783         (transform_add_to_multiply): Remove mult_stmt insertion and add it
11784         to ops vector.
11785         (get_ops): Init stmt_to_insert.
11786         (maybe_optimize_range_tests): Likewise.
11787         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
11788         (rewrite_expr_tree_parallel): Likewise.
11789         (reassociate_bb): Likewise.
11791 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11793         PR target/71201
11794         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
11795         ISA 3.0 xxperm fusion alternative.
11796         (altivec_vperm_v8hiv16qi): Likewise.
11797         (altivec_vperm_<mode>_uns_internal): Likewise.
11798         (vperm_v8hiv4si): Likewise.
11799         (vperm_v16qiv8hi): Likewise.
11801 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11802             Kelvin Nilsen  <kelvin@gcc.gnu.org>
11804         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
11805         vpermr/xxpermr on ISA 3.0.
11806         (altivec_expand_vec_perm_le): Likewise.
11807         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
11808         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
11809         ISA 3.0.
11811 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
11813         * config/i386/i386.h (IS_STACK_MODE): Enable for
11814         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
11815         SSE_FLOAT_MODE_P macros.
11816         * config/i386/i386.c (ix86_preferred_reload_class): Use
11817         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
11818         Cleanup regclass processing for CONST_DOUBLE_P.
11819         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
11820         (ix86_rtx_costs): Remove redundant TARGET_80387 check
11821         with IS_STACK_MODE macro.
11822         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
11823         with TARGET_SSE2.
11824         (*movdf_internal): Use IS_STACK_MODE macro.
11825         (*movsf_internal): Ditto.
11827 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
11829         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
11830         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
11832 2016-05-23  Jeff Law  <law@redhat.com>
11834         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
11835         extracted from ...
11836         (fsm_find_control_statement_thread_paths): Call it.
11838 2016-05-23  Martin Jambor  <mjambor@suse.cz>
11840         PR ipa/71234
11841         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
11842         from_global_constant if t is not NULL.
11844 2016-05-23  Marek Polacek  <polacek@redhat.com>
11846         PR c/49859
11847         * common.opt (Wswitch-unreachable): New option.
11848         * doc/invoke.texi: Document -Wswitch-unreachable.
11849         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
11850         warning.
11852 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
11854         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
11855         TMR_INDEX is non-NULL.
11857 2016-05-23  Richard Biener  <rguenther@suse.de>
11859         PR tree-optimization/71230
11860         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
11861         (try_special_add_to_ops): ... here.  Always test for single-use.
11863 2016-05-23  Martin Jambor  <mjambor@suse.cz>
11865         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
11866         default block if a PHI node in the original one would be resized.
11868 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11870         PR tree-optimization/58135
11871         * tree-vect-slp.c: When group size is not multiple
11872         of vector size, allow splitting of store group at
11873         vector boundary.
11875 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
11877         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
11879 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
11881         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
11882         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
11883         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
11884         of 64x2.
11886         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
11887         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
11888         v constraint instead of x and vinserti32x4 insn.
11890         * config/i386/sse.md (i128vldq): New mode iterator.
11891         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
11892         avx512dq and avx512vl alternatives.
11894         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
11895         constraint, use maybe_evex prefix instead of vex.
11896         (vec_dupv4sf): Use v constraint instead of x for output
11897         operand except for noavx alternative, use Yv constraint
11898         instead of x for input.  Use maybe_evex prefix instead of vex.
11899         (*vec_dupv4si): Likewise.
11900         (*vec_dupv2di): Likewise.
11902 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
11904         PR middle-end/40921
11905         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
11906         (linearize_expr_tree): Call try_special_add_to_ops.
11907         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
11909 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11911         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
11912         to computed stack_usage.
11914 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11916         PR target/71103
11917         * config/avr/avr.md (define_expand "mov<mode>"): If the source
11918         operand is subreg (symbol_ref) then move the symbol ref to register.
11920 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
11922         * tree.c (array_at_struct_end_p): Look through MEM_REF.
11924 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
11926         PR middle-end/71179
11927         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
11928         VECTOR type.
11930 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
11932         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
11933         ranges by calling get_single_symbol and tidy up.  Look more closely
11934         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
11936 2016-05-20  Jeff Law  <law@redhat.com>
11938         * bitmap.c (bitmap_find_bit): Remove useless test.
11940 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
11942         * function.c (thread_prologue_and_epilogue_insns): Commit the
11943         insertion of the epilogue.
11945 2016-05-20  Martin Jambor  <mjambor@suse.cz>
11947         PR tree-optimization/70884
11948         * tree-sra.c (initialize_constant_pool_replacements): Do not check
11949         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
11950         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
11951         of constant pool data as a reason for scalarization.
11953 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
11955         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
11956         for naked functions.
11957         (thumb1_expand_prologue): Likewise.
11959 2016-05-20  Nathan Sidwell  <nathan@acm.org>
11961         * config/nvptx/nptx.c (nvptx_option_override): Only set
11962         flag_toplevel_reorder, if not explicitly specified.  Set
11963         flag_no_common, unless explicitly specified.
11965 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
11967         * calls.c (can_implement_as_sibling_call_p): Mark param
11968         reg_parm_stack_space with ATTRIBUTE_UNUSED.
11970 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
11972         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
11973         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
11974         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
11975         constants.
11976         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
11977         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
11978         and CASE_CONST_ANY.
11980 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
11982         * config/nvptx/nvptx.md (sincossf3): New pattern.
11984 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
11986         * calls.c (maybe_complain_about_tail_call): New function.
11987         (initialize_argument_information): Call
11988         maybe_complain_about_tail_call when clearing *may_tailcall.
11989         (can_implement_as_sibling_call_p): Call
11990         maybe_complain_about_tail_call when returning false.
11991         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
11992         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
11993         if tail-call optimization fails.
11994         * cfgexpand.c (expand_call_stmt): Initialize
11995         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
11996         * gimple-pretty-print.c (dump_gimple_call): Dump
11997         gimple_call_must_tail_p.
11998         * gimple.c (gimple_build_call_from_tree): Call
11999         gimple_call_set_must_tail with the value of
12000         CALL_EXPR_MUST_TAIL_CALL.
12001         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
12002         (gimple_call_set_must_tail): New function.
12003         (gimple_call_must_tail_p): New function.
12004         * print-tree.c (print_node): Update printing of TREE_STATIC
12005         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
12006         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
12007         trailing comment listing applicable flags.
12008         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
12010 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
12012         * calls.c (expand_call): Move "Rest of purposes for tail call
12013         optimizations to fail" to...
12014         (can_implement_as_sibling_call_p): ...this new function, and
12015         split into multiple "if" statements.
12017 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12019         * cfgloop.h (expected_loop_iterations_unbounded,
12020         expected_loop_iterations): Unconstify.
12021         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
12022         profile with known upper bound; return 3 when profile is absent.
12023         (expected_loop_iterations): Update.
12025 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12027         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
12028         and get_max_loop_iterations_int.
12030 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
12032         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
12033         realistic upper bounds here.
12035 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
12037         PR c++/71210
12038         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
12039         calls if the LHS is variable length or has addressable type.
12040         If targets[0]->decl is a noreturn call with void return type and
12041         zero arguments, adjust fntype and remove lhs in that case.
12043 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
12045         PR tree-optimization/71079
12046         PR tree-optimization/71206
12047         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
12049 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12051         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
12052         (get_vec_alignment_for_array_decl): Likewise.
12053         (get_vec_alignment_for_record_decl): Likewise.
12054         (increase_alignment::execute): Move code to find alignment to
12055         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
12056         (type_align_map): New hash_map.
12058 2016-05-20  Richard Guenther  <rguenther@suse.de>
12060         PR tree-optimization/29756
12061         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
12062         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
12063         * fold-const.c (operand_equal_p): Likewise.
12064         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
12065         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
12066         * tree-inline.c (estimate_operator_cost): Likewise.
12067         * tree-pretty-print.c (dump_generic_node): Likewise.
12068         * tree-ssa-operands.c (get_expr_operands): Likewise.
12069         * cfgexpand.c (expand_debug_expr): Likewise.
12070         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
12071         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
12072         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
12073         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
12074         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
12075         (execute_update_addresses_taken): Do it.
12077 2016-05-20  Richard Biener  <rguenther@suse.de>
12079         PR tree-optimization/71185
12080         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
12081         register operations.
12083 2016-05-20  Richard Biener  <rguenther@suse.de>
12085         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
12086         gimple_seq_add_seq_without_update.
12087         (release_bb_predicate): Assert we have no operands to free.
12088         (if_convertible_loop_p_1): Calculate post dominators later.
12089         Do not free BB predicates here.
12090         (combine_blocks): Do not recompute BB predicates.
12091         (version_loop_for_if_conversion): Save BB predicates around
12092         loop versioning.
12094 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12096         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
12097         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
12098         code.  Ignore sibcalls on EDGE_IGNORE edges.
12099         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
12100         on edges for sibcalls that run without prologue.  The rest of the
12101         function is combined from...
12102         (fix_fake_fallthrough_edge): ... this, and ...
12103         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
12104         function argument, make it a local variable.
12106 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12108         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
12109         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
12110         for 32-bit mode and SEH for 64-bit.
12111         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
12112         TARGET_64BIT_DEFAULT.
12114 2016-05-19  Ryan Burn  <contact@rnburn.com>
12116         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
12117         * gengtype.c (open_base_files): Add cilk.h to ifiles.
12119 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
12121         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
12122         force pending loads from memory.
12124 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12126         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
12127         (UNSPEC_DARN_32): New unspec constant.
12128         (UNSPEC_DARN_RAW): New unspec constant.
12129         (darn_32): New instruction.
12130         (darn_raw): New instruction.
12131         (darn): New instruction.
12132         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
12133         support and documentation for this macro.
12134         (BU_P9_MISC_1): New macro definition.
12135         (BU_P9_64BIT_MISC_0): New macro definition.
12136         (BU_P9_MISC_0): New macro definition.
12137         (darn_32): New builtin definition.
12138         (darn_raw): New builtin definition.
12139         (darn): New builtin definition.
12140         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
12141         RS6000_BUILTIN_0 directives to surround each occurrence of
12142         #include "rs6000-builtin.def".
12143         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
12144         RS6000_BTM_64BIT flags to the returned mask, depending on
12145         configuration.
12146         (def_builtin): Correct an error in the assignments made to the
12147         debugging variable attr_string.
12148         (rs6000_expand_builtin): Add support for no-operand built-in
12149         functions.
12150         (builtin_function_type): Remove fatal_error assertion that is no
12151         longer valid.
12152         (rs6000_common_init_builtins): Add support for no-operand built-in
12153         functions.
12154         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
12155         definition.
12156         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
12157         definition.
12158         (RS6000_BTM_64BIT): New macro definition.
12159         * doc/extend.texi: Document __builtin_darn (void),
12160         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
12161         functions.
12163 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
12165         * tree-vect-loop.c (vect_analyze_loop_2): Use also
12166         max_loop_iterations_int.
12168 2016-05-19  Marek Polacek  <polacek@redhat.com>
12170         PR tree-optimization/71031
12171         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
12172         condition and adjust the code a bit.
12174 2016-05-19  Martin Liska  <mliska@suse.cz>
12176         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
12177         auto_vec instead of vec.
12179 2016-05-19  Martin Liska  <mliska@suse.cz>
12181         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
12183 2016-05-19  Martin Liska  <mliska@suse.cz>
12185         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
12187 2016-05-19  Martin Liska  <mliska@suse.cz>
12189         * ipa-pure-const.c (set_function_state): Remove an existing
12190         funct_state.
12191         (remove_node_data): Do not free it as it's released
12192         in set_function_state.
12194 2016-05-19  Martin Liska  <mliska@suse.cz>
12196         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
12197         bitmap.
12199 2016-05-19  Martin Liska  <mliska@suse.cz>
12201         * omp-simd-clone.c (simd_clone_adjust): Release vector.
12203 2016-05-19  Martin Liska  <mliska@suse.cz>
12205         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
12206         an auto_vec instead of re-creating it.
12208 2016-05-19  Martin Liska  <mliska@suse.cz>
12210         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
12211         auto_vec instead of vec.
12213 2016-05-19  Martin Liska  <mliska@suse.cz>
12215         * lto-section-in.c (lto_get_section_data): Call
12216         lto_check_version with additional argument.
12217         * lto-streamer.c (lto_check_version): Add new argument.
12218         * lto-streamer.h (lto_check_version): Likewise.
12220 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12222         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
12223         Don't add cost of inner memory when handling sign-extended loads.
12225 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
12227         PR rtl-optimization/71148
12228         * cse.c (cse_main): Free dominance info.
12229         (rest_of_handle_cse): Don't free dominance info.
12230         (rest_of_handle_cse2): Likewise.
12231         (rest_of_handle_cse_after_global_opts): Likewise.
12233 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12235         PR target/71056
12236         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
12237         NULL_TREE early if NEON is not available.  Remove now redundant check
12238         in ARM_CHECK_BUILTIN_MODE.
12240 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
12242         PR sanitizer/64354
12243         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
12244         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
12245         * doc/cpp.texi: Document new macros.
12247 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
12249         PR tree-optimization/69848
12250         * tree-vect-loop.c (vectorizable_reduction): Don't factor
12251         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
12253 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
12255         * function.c (thread_prologue_and_epilogue_insn): Move the
12256         "goto epilogue_done" one block later.
12258 2016-05-19  Richard Biener  <rguenther@suse.de>
12260         PR tree-optimization/70729
12261         * passes.def: Move LIM pass before PRE.  Remove no longer
12262         required copyprop and move first DCE out of the loop pipeline.
12264 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
12266         PR driver/69265
12267         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
12268         (OBJS-libcommon-target): ...here.
12269         * opts-common.c: Include spellcheck.h.
12270         (cmdline_handle_error): Build a vec of valid options and use it
12271         to suggest provide hints for misspelled arguments.
12273 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12275         PR c++/71100
12276         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
12277         lhs if it has TREE_ADDRESSABLE type.
12279 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
12281         PR target/71145
12282         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
12283         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
12285 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12287         PR ipa/69708
12288         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
12289         input for NOP_EXPR pass-through functions.
12290         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
12291         aggregate global constant VAR_DECLs in constant jump functions.
12293 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12295         PR ipa/69708
12296         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
12297         from TREE_READONLY parameters.
12299 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12301         PR ipa/69708
12302         * cgraph.h (cgraph_indirect_call_info): New field
12303         guaranteed_unmodified.
12304         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
12305         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12306         appropriate.
12307         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
12308         pass the parameter value to ipa_find_agg_cst_for_param.
12309         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
12310         guaranteed_unmodified, store AA results there instead of bailing out
12311         if present.
12312         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
12313         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
12314         (find_constructor_constant_at_offset): New function.
12315         (ipa_find_agg_cst_from_init): Likewise.
12316         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
12317         static initializers of contants, report back through a new paameter
12318         from_global_constant if that was the case.
12319         (try_make_edge_direct_simple_call): Also pass parameter value to
12320         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
12321         appropriate.
12322         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
12323         (ipa_read_indirect_edge_info): Likewise.
12324         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
12325         (ipa_load_from_parm_agg): Likewise.
12327 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
12329         PR rtl-optimization/71150
12330         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
12331         check.
12333 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
12335         PR target/70915
12336         * config/rs6000/constraints.md (wE constraint): New constraint
12337         for a vector constant that can be loaded with XXSPLTIB.
12338         (wM constraint): New constraint for a vector constant of a 1's.
12339         (wS constraint): New constraint for a vector constant that can be
12340         loaded with XXSPLTIB and a vector sign extend instruction.
12341         * config/rs6000/predicates.md (xxspltib_constant_split): New
12342         predicates for wE/wS constraints.
12343         (xxspltib_constant_nosplit): Likewise.
12344         (easy_vector_constant): Add support for constants that can be
12345         loaded via XXSPLTIB.
12346         (all_ones_constant): New predicate for vector constant with all
12347         1's set.
12348         (splat_input_operand): Add support for ISA 3.0 word splat operations.
12349         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
12350         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
12351         instruction and possibly with a sign extension.
12352         (output_vec_const_move): Add support for XXSPLTIB. If we are
12353         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
12354         instead of XXLXOR/XXLORC.
12355         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
12356         operations.
12357         (rs6000_legitimize_reload_address): Likewise.
12358         (rs6000_output_move_128bit): Use output_vec_const_move to emit
12359         constants.
12360         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
12361         combine VSX_M and VSX_M2 into one iterator.
12362         (VSX_M2): Likewise.
12363         (VSINT_84): New iterators for loading constants with XXSPLTIB.
12364         (VSINT_842): Likewise.
12365         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
12366         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
12367         XXSPLTIB instruction.
12368         (xxspltib_<mode>_nosplit): Likewise.
12369         (xxspltib_<mode>_split): New insn to load up constants with
12370         XXSPLTIB and a sign extend instruction.
12371         (vsx_mov<mode>): Replace single move that handled all vector types
12372         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
12373         moves (when -mvsx-timode is in effect) into the main vector
12374         moves.  Eliminate separate moves for <VSr> <VSa>, where the
12375         preferred register class (<VSr>) is listed first, and the
12376         secondary register class (<VSa>) is listed second with a '?' to
12377         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
12378         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
12379         that if the register was involved in a slow operation, the
12380         clear/set operation does not wait for the slow operation to
12381         finish.  Adjust the length attributes for 32-bit mode.  Use
12382         rs6000_output_move_128bit and drop the use of the string
12383         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
12384         spacing so that the alternatives and attributes don't generate
12385         long lines, and put things in columns, so that it is easier to
12386         match up the operands and attributes with the insn alternatives.
12387         (vsx_mov<mode>_64bit): Likewise.
12388         (vsx_mov<mode>_32bit): Likewise.
12389         (vsx_movti_64bit): Fold movti into normal vector moves.
12390         (vsx_movti_32bit): Likewise.
12391         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
12392         splat instructions.
12393         (vsx_splat_v4si_internal): Likewise.
12394         (vsx_splat_v4sf_internal): Likewise.
12395         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
12396         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
12397         extend vector elements.
12398         (vsx_sign_extend_hi_<mode>): Likewise.
12399         (vsx_sign_extend_si_v2di): Likewise.
12400         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
12401         declaration.
12402         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
12403         constraints.  Add trailing period to wL documentation.
12405 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
12407         PR middle-end/71020
12408         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
12409         * tree-dfa.c (replace_abnormal_ssa_names): New function.
12410         * tree-call-cdce.c: Include tree-dfa.h.
12411         (can_guard_call_p): New function, extracted from...
12412         (can_use_internal_fn): ...here.
12413         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
12414         and return void.
12415         (shrink_wrap_one_built_in_call): Likewise.
12416         (use_internal_fn): Likewise.
12417         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
12418         and return void.  Call replace_abnormal_ssa_names.
12419         (pass_call_cdce::execute): Check can_guard_call_p during the
12420         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
12421         will always change something.
12423 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12425         PR ipa/70646
12426         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
12427         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
12429 2016-05-18  Martin Jambor  <mjambor@suse.cz>
12431         PR ipa/70646
12432         * ipa-inline.h (condition): New field size.
12433         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
12434         for comaprison and store it into the new condition.
12435         (evaluate_conditions_for_known_args): Use condition size to check
12436         access sizes for all but CHANGED conditions.
12437         (unmodified_parm_1): New parameter size_p, store access size into it.
12438         (unmodified_parm): Likewise.
12439         (unmodified_parm_or_parm_agg_item): Likewise.
12440         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
12441         (set_cond_stmt_execution_predicate): Extract access sizes and store
12442         them to conditions.
12443         (set_switch_stmt_execution_predicate): Likewise.
12444         (will_be_nonconstant_expr_predicate): Likewise.
12445         (will_be_nonconstant_predicate): Likewise.
12446         (inline_read_section): Stream condition size.
12447         (inline_write_summary): Likewise.
12449 2016-05-18  Richard Biener  <rguenther@suse.de>
12451         * tree-ssa-loop-im.c (determine_max_movement): Properly add
12452         condition cost to PHI cost instead of total_cost.
12454 2016-05-18  Martin Liska  <mliska@suse.cz>
12456         PR fortran/70856
12457         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
12458         merged variables.
12460 2016-05-18  Richard Biener  <rguenther@suse.de>
12462         * lto-streamer.h (LTO_major_version): Bump to 6.
12464 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12466         * function.c (make_split_prologue_seq, make_prologue_seq,
12467         make_epilogue_seq): New functions, factored out from...
12468         (thread_prologue_and_epilogue_insns): Here.
12470 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
12472         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
12473         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
12474         of before.  Add a comment.
12476 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
12478         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
12479         expression pointer, not pointer to the pointer.
12481 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
12483         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
12484         (avx2_pbroadcast<mode>): Add another alternative with v instead
12485         of x constraints in it, using <pbroadcast_evex_isa> isa.
12486         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
12488         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
12489         constraint x instead of v in second alternative, add avx512bw
12490         alternative.
12492         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
12493         constraint x instead of v in second alternative, add avx512bw
12494         alternative.
12496         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
12497         constraint x instead of v in second alternative, add avx512bw
12498         alternative.
12500         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
12501         avx512bw alternative.
12503 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12505         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
12506         array to 128 chars.
12507         (define_insn "*andnottf3"): Ditto.
12508         (define_insn "*<code><mode>3"/any_logic): Ditto.
12509         (define_insn "*<code>tf3"/any_logic): Ditto.
12510         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
12511         operand to block AVX-512VL insn variant emit when it is not enabled.
12513 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
12515         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
12516         constraint fot SF mode.
12518 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
12519             Kirill Yukhin  <kirill.yukhin@intel.com>
12521         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
12522         modifiers.
12523         (define_insn "rsqrt14<mode>"): Ditto.
12524         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
12525         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
12526         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
12527         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
12528         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
12529         Ditto.
12530         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
12531         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
12532         * config/i386/i386.c (ix86_print_operand): Expand check for size
12533         override codes for Intel syntax.
12535 2016-05-18  Richard Biener  <rguenther@suse.de>
12537         PR tree-optimization/71168
12538         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
12539         initialization earlier.
12541 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
12543         * config/aarch64/aarch64-simd.md
12544         (aarch64_reduc_plus_internal<mode>): Rename to...
12545         (reduc_plus_scal): ...This, and remove previous implementation.
12547 2016-05-18  Richard Biener  <rguenther@suse.de>
12549         * passes.def: Put late dse and cd_dce in canonical order.
12551 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
12553         * ipa-inline-transform.c (preserve_function_body_p): Look for
12554         first non-thunk clone.
12555         (save_function_body): Save into first non-thunk.
12556         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
12557         up call stmt id.
12558         (lto_output_node): Inline thunks don't need body in every
12559         partition.
12560         * lto-streamer-in.c: Do not fixup thunk clones.
12561         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
12562         thunks.
12563         * tree-inline.c (copy_bb): Be prepared for target node to be new after
12564         folding suceeds.
12566 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12568         PR middle-end/63586
12569         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
12570         (reassociate_bb): Call transform_add_to_multiply.
12572 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
12574         * config/aarch64/aarch64.c (all_extensions): Removed unused
12575         static variable.
12577 2016-05-17  Nathan Sidwell  <nathan@acm.org>
12579         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
12580         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
12582 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
12584         PR tree-optimization/54579
12585         PR middle-end/55299
12586         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
12588 2016-05-17  Marek Polacek  <polacek@redhat.com>
12590         PR ipa/71146
12591         * tree-inline.c (expand_call_inline): Call
12592         maybe_remove_unused_call_args.
12594 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
12596         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
12597         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
12598         * doc/md.texi (fmin@var{m}3): Likewise.
12600 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12602         * match.pd (X & C): New transformation.
12604 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12606         * match.pd (~X & Y): New transformation.
12608 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
12610         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
12611         information for new SSA_NAME.
12612         (simplify_conversion_using_ranges): Get range through get_range_info
12613         instead of get_value_range.
12615 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12617         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
12618         Remove inline assembly.
12619         (vmvn_s16): Likewise.
12620         (vmvn_s32): Likewise.
12621         (vmvn_u8): Likewise.
12622         (vmvn_u16): Likewise.
12623         (vmvn_u32): Likewise.
12624         (vmvnq_s8): Likewise.
12625         (vmvnq_s16): Likewise.
12626         (vmvnq_s32): Likewise.
12627         (vmvnq_u8): Likewise.
12628         (vmvnq_u16): Likewise.
12629         (vmvnq_u32): Likewise.
12630         (vmvn_p8): Likewise.
12631         (vmvnq_p16): Likewise.
12633 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12635         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
12636         Use builtin.
12637         (vmul_n_s16): Likewise.
12638         (vmul_n_s32): Likewise.
12639         (vmul_n_u16): Likewise.
12640         (vmul_n_u32): Likewise.
12641         (vmulq_n_f32): Likewise.
12642         (vmulq_n_f64): Likewise.
12643         (vmulq_n_s16): Likewise.
12644         (vmulq_n_s32): Likewise.
12645         (vmulq_n_u16): Likewise.
12646         (vmulq_n_u32): Likewise.
12648 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12650         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
12651         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
12653 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
12655         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
12656         to *aarch64_fma4_elt_from_dup<mode>.
12657         (*aarch64_fnma4_elt_to_128df): Rename to
12658         *aarch64_fnma4_elt_from_dup<mode>.
12659         * config/aarch64/arm_neon.h (vfma_n_f64): New.
12660         (vfms_n_f32): Likewise.
12661         (vfms_n_f64): Likewise.
12662         (vfmsq_n_f32): Likewise.
12663         (vfmsq_n_f64): Likewise.
12665 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
12667         * wide-int.h: Change fixed_wide_int_storage from class to struct.
12669 2016-05-17  Richard Biener  <rguenther@suse.de>
12671         PR tree-optimization/71132
12672         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
12673         Only add control dependences for blocks in the loop.
12674         (build_rdg): Adjust.
12675         (generate_code_for_partition): Return whether loop should
12676         be destroyed and delay that.
12677         (distribute_loop): Likewise.
12678         (pass_loop_distribution::execute): Record loops to be destroyed
12679         and perform delayed destroying of loops.
12681 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12683         PR target/70809
12684         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
12686 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
12688         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
12690 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
12692         PR target/71114
12693         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
12694         insertion point for instructions generated by validize_mem.
12696 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
12698         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
12699         in brackets.
12701 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
12703         * config/aarch64/aarch64.c
12704         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
12705         rather than a macro.
12707 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
12709         * doc/invoke.texi (AArch64 Options): Various updates.
12711 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12713         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
12714         into instrumentation thunks.
12715         * cif-code.def (CIF_CHKP): New.
12717 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
12719         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
12721 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12723         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
12724         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
12726 2016-05-16  Marek Polacek  <polacek@redhat.com>
12728         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
12729         commentary.
12731 2016-05-16  Martin Jambor  <mjambor@suse.cz>
12733         PR hsa/70857
12734         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
12735         the outlined kernel function.
12737 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
12739         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
12740         (ISA_HAS_DLSA): Ditto.
12742 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
12744         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
12746 2016-05-16  Nathan Sidwell  <nathan@acm.org>
12748         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
12749         (nvptx_name_replacement): Restore.  Add comment.
12750         (write_fn_proto, write_fn_proto_from_insn,
12751         nvptx_output_call_insn): Restore
12752         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
12754 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
12756         * config/aarch64/aarch64.md
12757         (add<mode>3_compareC_cconly_imm): Remove use of %w.
12758         (add<mode>3_compareC_imm): Likewise.
12759         (<optab>si3_uxtw): Split into register and immediate variants.
12760         (andsi3_compare0_uxtw): Likewise.
12761         (and<mode>3_compare0): Likewise.
12762         (and<mode>3nr_compare0): Likewise.
12763         (stack_protect_test_<mode>): Don't use %x for memory operands.
12765 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
12767         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
12769 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
12771         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
12772         Split integer shifts into shift_reg and bfm.
12773         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
12774         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
12775         (ror<mode>3_insn): Likewise.
12776         (<optab>si3_insn_uxtw): Likewise.
12777         (<optab><mode>3_insn): Change to rotate_imm.
12778         (extr<mode>5_insn_alt): Likewise.
12779         (extrsi5_insn_uxtw): Likewise.
12780         (extrsi5_insn_uxtw_alt): Likewise.
12782 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
12784         * doc/tm.texi: Regenerate.
12785         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
12786         (TARGET_INVALID_RETURN_TYPE): Remove.
12787         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
12788         TARGET_INVALID_RETURN_TYPE.
12789         * target.def (invalid_parameter_type): Remove.
12790         (invalid_return_type): Remove.
12792 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12794         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
12795         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
12796         calls from thunk.
12797         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
12798         gimple body.
12799         (preserve_function_body_p): No need to preserve function body
12800         * cif-codes.def (CIF_THUNK): Remove.
12801         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
12803 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12805         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
12807 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12809         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
12810         for thunks.
12812 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12814         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
12815         (inline_small_functions): Do not look for function symbol when
12816         resetting caches.
12818 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
12820         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
12821         of inline thunks
12823 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
12824             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12825             Jiong Wang  <jiong.wang@arm.com>
12827         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
12828         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
12829         Define __ARM_FP16_ARGS when appropriate.
12830         * config/arm/arm.c (arm_invalid_parameter_type): Remove
12831         declaration.
12832         (arm_invalid_return_type): Likewise.
12833         (TARGET_INVALID_PARAMETER_TYPE): Remove.
12834         (TARGET_INVALID_RETURN_TYPE): Remove.
12835         (aapcs_vfp_sub_candidate): Allow HFmode.
12836         (aapcs_vfp_allocate): Add comment.  Support HFmode.
12837         (aapcs_vfp_allocate_return_reg): Likewise.
12838         (struct aapcs_cp_arg_layout): Slightly reword comments for
12839         is_return_candidate and allocate_return_reg.
12840         (output_mov_vfp): Update assert.
12841         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
12842         condition.
12843         (arm_invalid_parameter_type): Remove.
12844         (amr_invalid_return_type): Remove.
12845         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
12846         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
12847         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
12849 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
12851         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
12852         * config/aarch64/arch64-protos.h
12853         (aarch64_legitimize_reload_address): Remove.
12854         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
12855         Remove.
12857 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12859         * configure.ac: Add ACX_NONCANONICAL_HOST.
12860         * configure: Regenerate.
12861         * Makefile.in: Set host_noncanonical.
12863 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
12865         PR target/71097
12866         * config/i386/i386.md (*movtf_internal): Before register allocation,
12867         do not allow FP constants for CM_MEDIUM memory model, allow only
12868         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
12869         (*movxf_internal): Ditto.
12870         (*movdf_internal): Ditto.
12871         (*movsf_internal): Ditto.
12873 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
12875         PR rtl-optimization/67483
12876         * combine.c (make_compound_operation): Don't call extract_left_shift
12877         with negative shift amounts.
12879 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
12881         PR bootstrap/71071
12882         * fold-const.c (fold_checksum_tree): Allow modification
12883         of TYPE_ALIAS_SET during folding.
12885         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
12886         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
12887         (ix86_split_to_parts): Likewise.  Fix up formatting.
12889 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
12891         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
12892         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
12893         printf format.
12895 2016-05-13  Nathan Sidwell  <nathan@acm.org>
12897         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
12898         (nvptx_name_replacement): Delete.
12899         (write_fn_proto, write_fn_proto_from_insn,
12900         nvptx_output_call_insn): Remove nvptx_name_replacement call.
12901         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
12902         * langhooks.c (add_builtin_funcction_common): Call
12903         targetm.mangle_decl_assembler_name.
12905         * config/nvptx/nvptx.c (write_fn_proto): Handle
12906         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
12908 2016-05-13  Martin Liska  <mliska@suse.cz>
12910         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
12911         and PRIu64 in printf format.
12913 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12915         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
12916         comment.
12918 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12920         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12921         Change --param max-completely-peeled-times to
12922         --param max-completely-peel-times in dump file printing.
12924 2016-05-13  Richard Biener  <rguenther@suse.de>
12926         PR tree-optimization/42587
12927         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
12928         (find_bswap_or_nop_1): Likewise.
12929         (bswap_replace): Likewise.
12931 2016-05-13  Martin Liska  <mliska@suse.cz>
12933         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
12934         Initialize a variable with default value.
12936 2016-05-13  Martin Liska  <mliska@suse.cz>
12938         * doc/invoke.texi: Enhance explanation of error recovery
12939         of sanitizers.
12941 2016-05-13  Martin Liska  <mliska@suse.cz>
12943         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
12944         (struct cost_pair): Change inv_expr_id (int) to inv_expr
12945         (iv_inv_expr_ent *).
12946         (struct iv_inv_expr_ent): Comment struct fields.
12947         (sort_iv_inv_expr_ent): New function.
12948         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
12949         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
12950         a hash_map between iv_inv_expr_ent and number of usages.
12951         (niter_for_exit): Fix coding style.
12952         (tree_ssa_iv_optimize_init): Use renamed variable.
12953         (determine_base_object): Fix coding style.
12954         (alloc_iv): Likewise.
12955         (find_interesting_uses_outside): Likewise.
12956         (add_candidate_1): Likewise.
12957         (add_standard_iv_candidates): Likewise.
12958         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
12959         (prepare_decl_rtl): Fix coding style.
12960         (get_address_cost): Likewise.
12961         (get_shiftadd_cost): Likewise.
12962         (force_expr_to_var_cost): Likewise.
12963         (compare_aff_trees): Likewise.
12964         (get_expr_id): Restructure the function.
12965         (get_loop_invariant_expr_id): Renamed to
12966         get_loop_invariant_expr.
12967         (get_computation_cost_at): Replace usage of inv_expr_id with
12968         inv_expr.
12969         (get_computation_cost): Likewise.
12970         (determine_group_iv_cost_generic): Likewise.
12971         (determine_group_iv_cost_address): Likewise.
12972         (iv_period): Fix coding style.
12973         (iv_elimination_compare_lt): Likewise.
12974         (may_eliminate_iv): Likewise.
12975         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
12976         inv_expr.
12977         (determine_group_iv_costs): Dump invariant expressions.
12978         (iv_ca_recount_cost): Use the newly added hash_map.
12979         (iv_ca_set_remove_invariants): Fix coding style.
12980         (iv_ca_set_add_invariants): Fix coding style.
12981         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
12982         invariants.
12983         (iv_ca_set_cp): Likewise.
12984         (iv_ca_new): Initialize the newly added hash_map and remove
12985         initialization of fields.
12986         (iv_ca_free): Delete the hash_map.
12987         (iv_ca_dump): Dump invariant expressions.
12988         (iv_ca_extend): Fix coding style.
12989         (try_add_cand_for): Likewise.
12990         (create_new_ivs): Dump information about # of avg iterations and
12991         # of used invariant expressions.
12992         (rewrite_use_compare): Fix coding style.
12993         (free_loop_data): Set default value for max_inv_expr_id.
12995 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12997         * cse.c (rest_of_handle_cse): Use cleanup_cfg
12998         returned value cse_cfg_altered computation.
12999         (rest_of_handle_cse2): Likewise.
13000         (rest_of_handle_cse_after_global_opts): Likewise.
13002 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13004         PR target/53440
13005         * config/arm/arm.c (arm32_output_mi_thunk): New.
13006         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
13007         to split Thumb1 vs TARGET_32BIT functionality.
13008         (arm_thumb1_mi_thunk): New.
13010 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13012         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
13013         to true.
13015 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13017         PR target/71080
13018         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
13020 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13022         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
13023         (expand_builtin_trap): Emit a regular call.
13024         (set_builtin_user_assembler_name): Remove obsolete cases.
13025         * dse.c (scan_insn): Adjust.
13026         * except.c: Include calls.h.
13027         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
13028         emit a regular call to setjmp.
13029         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
13030         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
13031         (emit_block_move_via_libcall): Delete.
13032         (block_move_fn): Delete.
13033         (init_block_move_fn): Likewise.
13034         (emit_block_move_libcall_fn): Likewise.
13035         (emit_block_op_via_libcall): New function.
13036         (set_storage_via_libcall): Tidy up and use memset builtin.
13037         (block_clear_fn): Delete.
13038         (init_block_clear_fn): Likewise.
13039         (clear_storage_libcall_fn): Likewise.
13040         (expand_assignment): Call emit_block_move_via_libcall.
13041         Do not include gt-expr.h.
13042         * expr.h (emit_block_op_via_libcall): Declare.
13043         (emit_block_copy_via_libcall): New inline function.
13044         (emit_block_move_via_libcall): Likewise.
13045         (emit_block_comp_via_libcall): Likewise.
13046         (block_clear_fn): Delete.
13047         (init_block_move_fn): Likewise.
13048         (init_block_clear_fn): Likewise.
13049         (emit_block_move_via_libcall): Likewise.
13050         (set_storage_via_libcall): Add default parameter value.
13051         * libfuncs.h (enum libfunc_index): Remove obsolete values.
13052         (abort_libfunc): Delete.
13053         (memcpy_libfunc): Likewise.
13054         (memmove_libfunc): Likewise.
13055         (memcmp_libfunc): Likewise.
13056         (memset_libfunc): Likewise.
13057         (setbits_libfunc): Likewise.
13058         (setjmp_libfunc): Likewise.
13059         (longjmp_libfunc): Likewise.
13060         (profile_function_entry_libfunc): Likewise.
13061         (profile_function_exit_libfunc): Likewise.
13062         (gcov_flush_libfunc): Likewise.
13063         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
13064         and DECL_VISIBILITY on the declaration.
13065         (init_optabs): Do not initialize obsolete libfuncs.
13066         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
13067         * tree-core.h (ECF_RET1): Define.
13068         (ECF_TM_PURE): Adjust.
13069         (ECF_TM_BUILTIN): Likewise.
13070         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
13071         (build_common_builtin_nodes): Initialize abort builtin.
13072         Add ECF_RET1 on memcpy, memmove and memset builtins.
13073         Pass final flags for alloca and alloca_with_align builtins.
13074         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
13075         obsolete builtins.
13076         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
13077         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
13078         set_storage_via_libcall and call emit_block_copy_via_libcall.
13080 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
13082         * config/i386/i386.md (*call_got_x32): Change operand 0 to
13083         DImode before it is passed to ix86_output_call_operand.
13084         (*call_value_got_x32): Ditto for operand 1.
13086 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
13088         PR rtl-optimization/70904
13089         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
13090         reload for wide mode.
13092 2016-05-12  Marek Polacek  <polacek@redhat.com>
13094         PR c/70756
13095         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
13096         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
13097         * langhooks.h (incomplete_type_error): Likewise.
13098         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
13099         parameter, pass it down to incomplete_type_error.
13100         * tree.h (size_in_bytes): New inline overload.
13101         (size_in_bytes_loc): Renamed from size_in_bytes.
13103 2016-05-12  Richard Biener  <rguenther@suse.de>
13105         PR tree-optimization/71059
13106         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
13107         nary before looking up or entering the expression into the VN
13108         hashes.
13109         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
13110         Make sure to re-use NARYs without result as inserted by
13111         phi-translation.
13113 2016-05-12  Richard Biener  <rguenther@suse.de>
13115         PR tree-optimization/71062
13116         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
13117         field.
13118         * tree-ssa-structalias.c (set_uids_in_ptset): Set
13119         vars_contains_restrict if the var is a restrict tag.
13120         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
13121         do not disambiguate pointers against it.
13122         (dump_points_to_solution): Re-structure and adjust for new
13123         vars_contains_restrict flag.
13124         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
13126 2016-05-12  Martin Liska  <mliska@suse.cz>
13128         * doc/invoke.texi: Explain connection between
13129         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
13131 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
13133         PR tree-optimization/71006
13134         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
13135         consider COND_EXPR as a mask producer.
13137 2016-05-12  Marek Polacek  <polacek@redhat.com>
13139         PR driver/71063
13140         * opts.c (common_handle_option): Detect missing argument for --help^.
13142 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13144         PR target/70830
13145         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
13146         when popping the PC and within an interrupt handler routine.
13147         Add missing tab to output of "ldmfd".
13148         (output_return_instruction): Output LDMFD with SP update rather
13149         than POP when returning from interrupt handler.
13151 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
13153         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
13154         TARGET_64BIT && TARGET_AVX512DQ.
13155         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
13156         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
13157         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
13158         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
13159         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
13160         (*vec_extractv4si_zext): Add avx512dq alternative.
13161         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
13162         use v instead of x constraint in other alternatives where possible.
13164         * config/i386/sse.md (sse2_loadld): Use v instead of x
13165         constraint in alternatives 0,1,4.
13167         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
13168         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
13169         v constraints instead of x and <pinsr_evex_isa> isa attribute.
13171         PR target/71019
13172         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
13173         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
13174         is not emitted unless TARGET_AVX512BW.
13175         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
13176         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
13177         for the result operand.
13179         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
13180         constraint instead of x in avx alternatives.  Use maybe_evex instead
13181         of vex prefix.
13183         * config/i386/constraints.md (Yv): New constraint.
13184         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
13185         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
13186         * config/i386/i386.md (avx512fvecmode): New mode attr.
13187         (*pushtf): Use v constraint instead of x.
13188         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
13189         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
13190         (*absneg<mode>2): Use Yv constraint instead of x constraint.
13191         (*absnegtf2_sse): Likewise.
13192         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
13193         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
13194         avx512f alternatives.
13195         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
13197 2016-05-12  Richard Biener  <rguenther@suse.de>
13199         PR tree-optimization/71060
13200         * tree-data-ref.c (initialize_data_dependence_relation): Do not
13201         require exact match of DR_BASE_OBJECT but only matching address and
13202         type.
13204 2016-05-12  Richard Biener  <rguenther@suse.de>
13206         PR tree-optimization/70986
13207         * cfganal.c: Include cfgloop.h.
13208         (dfs_find_deadend): Prefer to take edges exiting loops.
13210 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13212         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
13213         compile and run time.
13215 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
13217         PR c/43651
13218         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
13220 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
13222         * config/i386/i386.c (legitimize_pic_address): Use
13223         copy_to_suggested_reg instead of gen_movsi.
13225 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
13227         * config/rs6000/predicates.md (quad_memory_operand): Move most of
13228         the code into quad_address_p and call it to share code with
13229         vsx_quad_dform_memory_operand.
13230         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
13231         d-form support.
13232         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
13233         bit instead of being a separate word.  Split -mpower9-dform into
13234         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13235         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
13236         for the register class supporting 128-bit quad word memory offsets.
13237         (mode_supports_vsx_dform_quad): Helper function to return if the
13238         register class uses quad word memory offsets.
13239         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
13240         (rs6000_debug_reg_global): Always print if we are using LRA or not.
13241         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
13242         instructions are enabled, set up the appropriate addr_masks for
13243         128-bit types.
13244         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
13245         -mpower9-dform-scalar, instead of -mpower9-dform.
13246         (rs6000_option_override_internal): Split -mpower9-dform into two
13247         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
13248         -mpower9-dform switch sets or clears both.  If we are not using
13249         the LRA register allocator, do not enable -mpower9-dform-vector by
13250         default.  If we are using LRA, enable -mpower9-dform-vector and
13251         -mvsx-timode if it is appropriate.  Issue a warning if either
13252         -mpower9-dform-vector or -mvsx-timode are explicitly used without
13253         enabling LRA.
13254         (quad_address_offset_p): New helper function to return if the
13255         offset is legal for quad word memory instructions.
13256         (quad_address_p): New function to determin if GPR or vector
13257         register quad word memory addresses are legal.
13258         (mem_operand_gpr): Validate quad word address offsets.
13259         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
13260         d-form (register + offset) instructions.
13261         (offsettable_ok_by_alignment): Likewise.
13262         (rs6000_legitimate_offset_address_p): Likewise.
13263         (legitimate_lo_sum_address_p): Likewise.
13264         (rs6000_legitimize_address): Likewise.
13265         (rs6000_legitimize_reload_address): Add more debug statements for
13266         -mdebug=addr.
13267         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
13268         d-form instructions.
13269         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
13270         d-form instructions.  Distinguish different cases in debug
13271         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
13272         d-form instructions.
13273         (rs6000_preferred_reload_class): Likewise.
13274         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
13275         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
13276         of the ISA 2.06 indexed memory instructions.
13277         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
13278         use them to save/restore the saved vector registers instead of
13279         using Altivec instructions.
13280         (rs6000_emit_epilogue): Likewise.
13281         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
13282         (rs6000_opt_masks): Split -mpower9-dform into
13283         -mpower9-dform-scalar and -mpower9-dform-vector.
13284         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
13285         was not selected.
13286         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
13287         ISA 3.0 vector indexed memory instructions, and fold the code into
13288         the normal mov<mode> patterns.
13289         (p9_vecstore_<mode>): Likewise.
13290         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
13291         instructions.
13292         (vsx_movti_64bit): Likewise.
13293         (vsx_movti_32bit): Likewise.
13294         * config/rs6000/constraints.md (wO constraint): New constraint for
13295         ISA 3.0 vector d-form support.
13296         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
13297         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
13298         include -mpower9-dform-vector until we switch over to LRA.
13299         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
13300         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
13301         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
13302         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
13303         for -mpower9-dform and -mlra.
13304         * doc/md.texi (wO constraint): Document wO constraint.
13306 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
13308         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
13309         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
13310         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
13311         Move handling of non-insn arguments inline into the sole user:
13312         (output_trans_func): ...here.
13313         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
13314         in emitted function prototype.
13315         (output_internal_insn_latency_func): Ditto.  Simplify.
13316         (output_internal_maximal_insn_latency_func): Ditto.  Delete
13317         always-unused argument.
13318         (output_insn_latency_func): Ditto.
13319         (output_maximal_insn_latency_func): Ditto.
13321 2016-05-11  Richard Biener  <rguenther@suse.de>
13323         PR tree-optimization/71055
13324         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
13325         sth with precision not equal to access size verify we don't chop
13326         off bits.
13328 2016-05-11  Richard Biener  <rguenther@suse.de>
13330         PR debug/71057
13331         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
13332         (dwarf2out_finish): Move retry_incomplete_types call ...
13333         (dwarf2out_early_finish): ... here.
13335 2016-05-11  Richard Biener  <rguenther@suse.de>
13337         PR middle-end/71002
13338         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
13339         if the langhook insists on it.
13340         * fold-const.c (make_bit_field_ref): Add arg for the original
13341         reference and preserve its alias-set.
13342         (decode_field_reference): Take exp by reference and adjust it
13343         to the original memory reference.
13344         (optimize_bit_field_compare): Adjust callers.
13345         (fold_truth_andor_1): Likewise.
13346         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
13348 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
13350         PR middle-end/70807
13351         * cfgrtl.h (delete_insn_and_edges): Now return bool.
13352         * cfgrtl.c (delete_insn_and_edges): Likewise.
13353         * config/i386/i386.c (convert_scalars_to_vector): Remove
13354         redundant code.
13355         * cse.c (cse_insn): Compute cse_cfg_altered.
13356         (delete_trivially_dead_insns): Likewise.
13357         (cse_cc_succs): Likewise.
13358         (rest_of_handle_cse): Free dominance info if required.
13359         (rest_of_handle_cse2): Likewise.
13360         (rest_of_handle_cse_after_global_opts): Likewise.
13362 2016-05-11  Alan Modra  <amodra@gmail.com>
13364         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
13365         abi_v4_pass_in_fpr): New functions.
13366         (rs6000_function_arg_boundary): Exclude complex IBM long double
13367         from 64-bit alignment when ABI_V4.
13368         (rs6000_function_arg, rs6000_function_arg_advance_1,
13369         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
13371 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
13373         PR rtl-optimization/71028
13374         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
13375         jump with just a return in the fallthrough block if the branch
13376         block contains just a return as well.
13378 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
13380         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
13381         * match.pd ((X & Y) ^ Y): ... this.
13382         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
13383         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
13385 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13387         * read-md.c (require_char_ws): New function.
13388         (read_string): Simplify using require_char_ws.
13389         (handle_constants): Likewise.
13390         (handle_enum): Likewise.
13391         (handle_file): Likewise.
13392         * read-md.h (require_char_ws): New declaration.
13393         * read-rtl.c (read_conditions): Simplify using require_char_ws.
13394         (read_mapping): Likewise.
13395         (read_rtx_code): Likewise.
13396         (read_nested_rtx): Likewise.
13398 2016-05-10  James Norris  <jnorris@codesourcery.com>
13400         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
13401         if offloading is enabled and -fopenacc or -fopenmp is specified.
13402         (CRTOFFLOADEND): Likewise.
13403         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
13404         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
13406 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
13408         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
13409         gotoff_operand code paths.  Use copy_to_suggested_regs and
13410         expand_simple_binop where appropriate.  Cleanup.
13412 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13414         PR target/70799
13415         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
13416         integer constants.
13417         (dimode_scalar_chain::vector_const_cost): New.
13418         (dimode_scalar_chain::compute_convert_gain): Handle constants.
13419         (dimode_scalar_chain::convert_op): Likewise.
13420         (dimode_scalar_chain::convert_insn): Likewise.
13422 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13424         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
13425         unary operation, not a binary one.
13427 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13429         PR middle-end/70877
13430         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
13431         calls with type casted fndecl.
13433 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
13435         PR tree-optimization/70786
13436         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
13437         * calls.c (initialize_argument_information): Bind bounds
13438         with corresponding args passed by reference.
13440 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
13442         PR target/70927
13443         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
13444         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
13445         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
13446         accordingly.
13448 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13450         PR target/70963
13451         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
13452         code for a zero scale factor.
13453         (vsx_xvcvdpuxds_scale): Likewise.
13455 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
13457         * diagnostic-show-locus.c (layout::layout): Call show_ruler
13458         if show_ruler_p was set on the context.
13459         (layout::show_ruler): New method.
13460         * diagnostic.h (struct diagnostic_context): Add field
13461         "show_ruler_p".
13463 2016-05-10  Richard Biener  <rguenther@suse.de>
13465         PR tree-optimization/71039
13466         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
13467         (chk_uses): New function.
13468         (propagate_with_phi): Verify we can safely replicate the lhs of an
13469         aggregate assignment on all incoming edges.
13471 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
13473         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
13474         Forward declare.
13475         (rx_atomic_sequence): New class.
13476         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
13477         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
13478         non-inline.
13479         (rx_atomic_sequence::rx_atomic_sequence,
13480         rx_atomic_sequence::~rx_atomic_sequence): New functions.
13481         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
13482         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
13483         CTRLREG_INTB): New constants.
13484         (FETCHOP): New code iterator.
13485         (fethcop_name, fetchop_name2): New iterator code attributes.
13486         (QIHI): New mode iterator.
13487         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
13488         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
13489         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
13491 2016-05-10  Martin Liska  <mliska@suse.cz>
13493         * tree-inline.c (remap_dependence_clique): Do not remap
13494         debugging statements.
13496 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13498         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
13499         ("*fixuns_truncdfdi2_z13")
13500         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
13501         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
13502         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
13504 2016-05-10  Richard Biener  <rguenther@suse.de>
13506         PR tree-optimization/70497
13507         PR tree-optimization/28367
13508         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
13509         split out from ...
13510         (visit_reference_op_load): ... here.
13511         (vn_reference_lookup_3): Use it to handle subreg-like accesses
13512         with simplified BIT_FIELD_REFs.
13513         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
13514         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
13515         correctly.
13517 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
13519         * dwarf2out.c (add_abstract_origin_attribute): Adjust
13520         documentation comment.  For BLOCK nodes, add a
13521         DW_AT_abstract_origin attribute that points to the DIE generated
13522         for the origin BLOCK.
13523         (gen_lexical_block_die): Call add_abstract_origin_attribute for
13524         blocks from inlined functions.
13526 2016-05-10  Alan Modra  <amodra@gmail.com>
13528         PR target/70947
13529         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
13530         regrename modifying insns saving lr before __morestack call.
13531         * config/rs6000/rs6000.md (split_stack_return): Similarly for
13532         insns restoring lr after __morestack call.
13534 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
13536         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
13537         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
13538         expanders.
13539         * config/i386/sse.md (vec_interleave_high<mode>,
13540         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
13541         <avx512>_vpermt2var<mode>3_maskz): Likewise.
13543 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
13545         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
13546         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
13547         parallel reassociation for power8 and forward.
13549 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
13551         * config/i386/i386.md (absneg splitters with general regs): Use
13552         general_reg_operand predicate.
13553         (btsq peephole2): Use x86_64_immediate_operand to check if new
13554         value is suitable for immediate operand.  Generate emitted insn
13555         using RTL expressions.
13556         (btcq peephole2): Ditto.
13557         (btrq peephole2): Ditto.  Generate correct immediate operand
13558         for AND masking.
13560 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13562         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
13563         bitpos.
13565 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
13567         * tree-affine.c (wide_int_constant_multiple_p): Add missing
13568         pointer dereference.
13570 2016-05-09  Richard Biener  <rguenther@suse.de>
13572         PR tree-optimization/70985
13573         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
13574         op0 isn't a gimple register.
13576 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
13578         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
13579         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
13580         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
13581         (i6400_fpu_mult): New cpu units.
13582         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
13583         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
13584         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
13585         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
13586         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
13587         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
13588         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
13589         (i6400_msa_long_float4, i6400_msa_long_float5)
13590         (i6400_msa_long_float8, i6400_msa_fdiv_df)
13591         (i6400_msa_fdiv_sf): New reservations.
13592         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
13593         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
13594         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
13595         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
13596         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
13597         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
13598         (msa_short_cmp, msa_short_float2, msa_short_logic3)
13599         (msa_short_store4, msa_long_load, msa_short_store)
13600         (msa_long_logic, msa_long_float2, msa_long_float4)
13601         (msa_long_float5, msa_long_float8, msa_long_mult)
13602         (msa_long_fdiv, msa_long_div): New reservations.
13604 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
13605             Sameera Deshpande  <sameera.deshpande@imgtec.com>
13606             Matthew Fortune  <matthew.fortune@imgtec.com>
13607             Graham Stott  <graham.stott@imgtec.com>
13608             Chao-ying Fu  <chao-ying.fu@imgtec.com>
13610         * config.gcc: Add MSA header file for mips*-*-* target.
13611         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
13612         (Ubv8i, Urv8):  New constraints.
13613         * config/mips/mips-ftypes.def: Add function types for MSA
13614         builtins.
13615         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
13616         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
13617         * config/mips/mips-msa.md: New file.
13618         * config/mips/mips-protos.h
13619         (mips_split_128bit_const_insns): New prototype.
13620         (mips_msa_idiv_insns): Likewise.
13621         (mips_split_128bit_move): Likewise.
13622         (mips_split_128bit_move_p): Likewise.
13623         (mips_split_msa_copy_d): Likewise.
13624         (mips_split_msa_insert_d): Likewise.
13625         (mips_split_msa_fill_d): Likewise.
13626         (mips_expand_msa_branch): Likewise.
13627         (mips_const_vector_same_val_p): Likewise.
13628         (mips_const_vector_same_bytes_p): Likewise.
13629         (mips_const_vector_same_int_p): Likewise.
13630         (mips_const_vector_shuffle_set_p): Likewise.
13631         (mips_const_vector_bitimm_set_p): Likewise.
13632         (mips_const_vector_bitimm_clr_p): Likewise.
13633         (mips_msa_vec_parallel_const_half): Likewise.
13634         (mips_msa_output_division): Likewise.
13635         (mips_ldst_scaled_shift): Likewise.
13636         (mips_expand_vec_cond_expr): Likewise.
13637         * config/mips/mips.c (enum mips_builtin_type): Add
13638         MIPS_BUILTIN_MSA_TEST_BRANCH.
13639         (mips_gen_const_int_vector_shuffle): New prototype.
13640         (mips_const_vector_bitimm_set_p): New function.
13641         (mips_const_vector_bitimm_clr_p): Likewise.
13642         (mips_const_vector_same_val_p): Likewise.
13643         (mips_const_vector_same_bytes_p): Likewise.
13644         (mips_const_vector_same_int_p): Likewise.
13645         (mips_const_vector_shuffle_set_p): Likewise.
13646         (mips_symbol_insns): Forbid loading symbols via immediate for
13647         MSA.
13648         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
13649         stores.
13650         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
13651         MSA.
13652         (mips_lx_address_p): Add support load indexed address for MSA.
13653         (mips_address_insns): Add calculation of instructions needed for
13654         stores and loads for MSA.
13655         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
13656         CONST_VECTOR for MSA and let it fall through.
13657         (mips_ldst_scaled_shift): New function.
13658         (mips_subword_at_byte): Likewise.
13659         (mips_msa_idiv_insns): Likewise.
13660         (mips_legitimize_move): Validate MSA moves.
13661         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
13662         calculation of costs for MSA division.
13663         (mips_split_move_p): Check if MSA moves need splitting.
13664         (mips_split_move): Split MSA moves if necessary.
13665         (mips_split_128bit_move_p): New function.
13666         (mips_split_128bit_move): Likewise.
13667         (mips_split_msa_copy_d): Likewise.
13668         (mips_split_msa_insert_d): Likewise.
13669         (mips_split_msa_fill_d): Likewise.
13670         (mips_output_move): Handle MSA moves.
13671         (mips_expand_msa_branch): New function.
13672         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
13673         Reinstate 'y' modifier.
13674         (mips_file_start): Add MSA .gnu_attribute.
13675         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
13676         FPRs.
13677         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
13678         (mips_class_max_nregs): Add register size for MSA supported mode.
13679         (mips_cannot_change_mode_class): Allow conversion between MSA
13680         vector modes and TImode.
13681         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
13682         instruction.
13683         (mips_secondary_reload_class): Force MSA loads/stores via memory.
13684         (mips_preferred_simd_mode): Add preffered modes for MSA.
13685         (mips_vector_mode_supported_p): Add MSA supported modes.
13686         (mips_autovectorize_vector_sizes): New function.
13687         (mips_msa_output_division): Likewise.
13688         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
13689         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
13690         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
13691         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
13692         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
13693         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
13694         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
13695         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
13696         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
13697         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
13698         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
13699         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
13700         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
13701         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
13702         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
13703         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
13704         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
13705         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
13706         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
13707         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
13708         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
13709         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
13710         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
13711         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
13712         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
13713         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
13714         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
13715         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
13716         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
13717         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
13718         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
13719         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
13720         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
13721         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
13722         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
13723         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
13724         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
13725         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
13726         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
13727         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
13728         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
13729         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
13730         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
13731         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
13732         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13733         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13734         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13735         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13736         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
13737         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
13738         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
13739         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
13740         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
13741         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
13742         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
13743         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
13744         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
13745         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
13746         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
13747         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
13748         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
13749         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
13750         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
13751         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
13752         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
13753         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
13754         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
13755         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
13756         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
13757         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
13758         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
13759         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
13760         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
13761         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
13762         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
13763         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
13764         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
13765         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
13766         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
13767         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
13768         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
13769         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
13770         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
13771         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
13772         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
13773         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
13774         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
13775         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
13776         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
13777         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
13778         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
13779         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
13780         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
13781         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
13782         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
13783         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
13784         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
13785         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
13786         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
13787         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
13788         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
13789         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
13790         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
13791         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
13792         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
13793         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
13794         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
13795         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
13796         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
13797         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
13798         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
13799         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
13800         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
13801         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
13802         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
13803         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
13804         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
13805         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
13806         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
13807         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
13808         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
13809         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
13810         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
13811         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
13812         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
13813         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
13814         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
13815         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
13816         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
13817         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
13818         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
13819         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
13820         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
13821         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
13822         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
13823         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
13824         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
13825         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
13826         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
13827         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
13828         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
13829         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
13830         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
13831         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
13832         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
13833         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
13834         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
13835         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
13836         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
13837         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
13838         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
13839         move_v builtins.
13840         (mips_get_builtin_decl_index): New array.
13841         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
13842         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
13843         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
13844         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
13845         (mips_init_builtins): Initialize mips_get_builtin_decl_index
13846         array.
13847         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
13848         hook.
13849         (mips_expand_builtin_insn): Prepare operands for
13850         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
13851         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
13852         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
13853         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
13854         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
13855         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
13856         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
13857         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
13858         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
13859         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
13860         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
13861         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
13862         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
13863         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
13864         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
13865         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
13866         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
13867         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
13868         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
13869         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
13870         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
13871         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
13872         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
13873         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
13874         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
13875         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
13876         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
13877         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
13878         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
13879         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
13880         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
13881         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
13882         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
13883         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
13884         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
13885         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
13886         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
13887         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
13888         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
13889         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
13890         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
13891         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
13892         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
13893         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
13894         These are set implicitly and an error is reported if overridden.
13895         (mips_expand_builtin_msa_test_branch): New function.
13896         (mips_expand_msa_shuffle): Likewise.
13897         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
13898         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
13899         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
13900         (mips_expand_vec_unpack): Add support for MSA.
13901         (mips_expand_vector_init): Likewise.
13902         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
13903         instead of const0_rtx.
13904         (mips_msa_vec_parallel_const_half): New function.
13905         (mips_gen_const_int_vector): Likewise.
13906         (mips_gen_const_int_vector_shuffle): Likewise.
13907         (mips_expand_msa_cmp): Likewise.
13908         (mips_expand_vec_cond_expr): Likewise.
13909         * config/mips/mips.h
13910         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
13911         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
13912         specified.
13913         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
13914         (ISA_HAS_MSA): New macro.
13915         (UNITS_PER_MSA_REG): Likewise.
13916         (BITS_PER_MSA_REG): Likewise.
13917         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
13918         (MSA_REG_FIRST): New macro.
13919         (MSA_REG_LAST): Likewise.
13920         (MSA_REG_NUM): Likewise.
13921         (MSA_REG_P): Likewise.
13922         (MSA_REG_RTX_P): Likewise.
13923         (MSA_SUPPORTED_MODE_P): Likewise.
13924         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
13925         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
13926         * config/mips/mips.md: Include mips-msa.md.
13927         (alu_type): Add simd_add.
13928         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
13929         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
13930         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
13931         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
13932         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
13933         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
13934         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
13935         simd_move, simd_load, simd_store.  Choose "multi" for moves
13936         for "qword_mode".
13937         (qword_mode): New attribute.
13938         (insn_count): Add instruction count for quad moves.
13939         Increase the count for MIPS SIMD division.
13940         (UNITMODE): Add UNITMODEs for vector types.
13941         (addsub): New code iterator.
13942         * config/mips/mips.opt (mmsa): New option.
13943         * config/mips/msa.h: New file.
13944         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
13945         specified.
13946         * config/mips/mti-linux.h: Likewise.
13947         * config/mips/predicates.md
13948         (const_msa_branch_operand): New constraint.
13949         (const_uimm3_operand): Likewise.
13950         (const_uimm4_operand): Likewise.
13951         (const_uimm5_operand): Likewise.
13952         (const_uimm8_operand): Likewise.
13953         (const_imm5_operand): Likewise.
13954         (aq10b_operand): Likewise.
13955         (aq10h_operand): Likewise.
13956         (aq10w_operand): Likewise.
13957         (aq10d_operand): Likewise.
13958         (const_m1_operand): Likewise.
13959         (reg_or_m1_operand): Likewise.
13960         (const_exp_2_operand): Likewise.
13961         (const_exp_4_operand): Likewise.
13962         (const_exp_8_operand): Likewise.
13963         (const_exp_16_operand): Likewise.
13964         (const_vector_same_val_operand): Likewise.
13965         (const_vector_same_simm5_operand): Likewise.
13966         (const_vector_same_uimm5_operand): Likewise.
13967         (const_vector_same_uimm6_operand): Likewise.
13968         (const_vector_same_uimm8_operand): Likewise.
13969         (par_const_vector_shf_set_operand): Likewise.
13970         (reg_or_vector_same_val_operand): Likewise.
13971         (reg_or_vector_same_simm5_operand): Likewise.
13972         (reg_or_vector_same_uimm6_operand): Likewise.
13973         * doc/extend.texi (MIPS SIMD Architecture Functions): New
13974         section.
13975         * doc/invoke.texi (-mmsa): Document new option.
13977 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13979         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
13980         * configure: Regenerate.
13981         * config.in: Regenerate.
13982         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
13983         on -fvtable-verify.
13984         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
13985         (ENDFILE_VTV_SPEC): Define.
13987 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
13989         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
13990         registers in all interrupt handlers if necessary.
13991         (rl78_option_override): Add warning.
13992         (MUST_SAVE_MDUC_REGISTERS): New macro.
13993         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
13994         * config/rl78/rl78.c (check_mduc_usage): New function.
13995         (mduc_regs): New structure to hold MDUC register data.
13996         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
13997         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
13998         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
13999         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
14000         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
14001         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
14003 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
14005         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
14006         (tree-ssa-loop-niter.h): Ditto.
14007         (idx_within_array_bound, ref_within_array_bound): New functions.
14008         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
14009         Factor out check on writable base object to ...
14010         (base_object_writable): ... here.
14012 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14014         * config/arm/arm.md (probe_stack): Add modes to set source
14015         and destination.
14017 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
14019         * regrename.c (base_reg_class_for_rename): New static function.
14020         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
14022 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
14024         * cgraph.c (thunk_adjust): Export.
14025         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
14026         * cgraphunit.c (thunk_adjust): Export.
14027         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
14028         thunks.
14029         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
14030         inlinable.
14031         * tree-inline.c (expand_call_inline): Expand thunks inline.
14033 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
14035         PR target/70998
14036         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
14037         (*sse2_vd_cvtss2sd): Ditto.
14038         * config/i386/i386.md
14039         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
14040         Generate *sse2_vd_cvtsd2ss pattern.
14041         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
14042         Generate *sse2_vd_cvtss2sd pattern.
14044 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14046         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
14047         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
14048         users.
14050 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
14052         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
14053         * config/sh/sh.c: Define and declare variables on first use throughout
14054         the file.
14055         (current_function_interrupt): Change to bool type.
14056         (frame_insn): Rename to emit_frame_insn and update users.
14057         (push_regs): Use bool for 'interrupt_handler' argument.
14058         (save_schedule_s): Remove.
14059         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
14060         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
14061         targetm.asm_out.unaligned_op.di.
14062         (gen_far_branch): Remove redundant forward declaration.
14063         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
14064         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
14065         (sh_set_return_address, sh_function_ok_for_sibcall,
14066         scavenge_reg): Update comments.
14067         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
14068         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
14069         (sh_attr_renesas_p): Remove unnecessary parentheses.
14070         (branch_dest): Simplify.
14071         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
14072         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
14073         (CUMULATIVE_ARGS): Change macro to typedef.
14074         (current_function_interrupt): Change to bool type.
14075         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
14076         Surround with __cplusplus ifdef.
14077         (sh_compare_op0, sh_compare_op1): Remove.
14078         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
14080 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
14082         * config/arm/arm.md: (arch): Add neon.
14083         (arch_enabled): Return yes for arch neon when TARGET_NEON.
14084         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
14085         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
14086         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
14087         attributes for alt renumbering.  Mark alt 3 as non-predicable.
14088         (thumb2_movdf_vfp): Likewise.
14090 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
14092         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
14093         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
14094         (*andqi_1): Add preferred_for_speed attribute to disparage
14095         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
14096         (*<code>qi_1): Ditto.
14097         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
14098         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
14099         (*ashlqi3_1): Ditto.
14100         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
14101         Add preferred_for_size attribute to disparage alternative 0 and
14102         preferred_for_speed attribute to disparage alternative 1 for
14103         TARGET_PARTIAL_REG_STALL targets.
14105 2016-05-07  Tom de Vries  <tom@codesourcery.com>
14107         PR tree-optimization/70956
14108         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
14109         def.
14111 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
14113         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
14114         * config/sh/sh.c (sh_cbranch_distance): Implement it.
14115         * config/sh/sh.md (branch_zero): Remove define_attr.
14116         (define_delay): Disable delay slot if branch distance is one insn.
14118 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14120         * config/i386/i386.md (LEAMODE): New mode attribute.
14121         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
14122         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
14123         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
14124         operand 2 predicate.
14125         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
14126         (*lea<mode>_general_3): Ditto.
14127         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
14129 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14131         * genmddump.c (main): Convert argv from char ** to const char **.
14133 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14135         * coretypes.h (OVERRIDE): New macro.
14136         (FINAL): New macro.
14138 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
14140         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
14141         allow coalescing if the types are compatible.
14143 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14145         * pass_manager.h (pass_manager::register_pass_name): New method.
14146         (pass_manager::get_pass_by_name): New method.
14147         (pass_manager::create_pass_tab): New method.
14148         (pass_manager::m_name_to_pass_map): New field.
14149         * passes.c (name_to_pass_map): Delete global in favor of field
14150         "m_name_to_pass_map" of pass_manager.
14151         (register_pass_name): Rename from a function to...
14152         (pass_manager::register_pass_name): ...this method, updating
14153         for renaming of global "name_to_pass_map" to field
14154         "m_name_to_pass_map".
14155         (create_pass_tab): Rename from a function to...
14156         (pass_manager::create_pass_tab): ...this method, updating
14157         for renaming of global "name_to_pass_map" to field.
14158         (get_pass_by_name): Rename from a function to...
14159         (pass_manager::get_pass_by_name): ...this method.
14160         (enable_disable_pass): Convert use of get_pass_by_name to
14161         a method call, locating the pass_manager singleton.
14163 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
14165         * genattr-common.c (main): Convert argv from char ** to const char **.
14166         * genattr.c (main): Likewise.
14167         * genattrtab.c (main): Likewise.
14168         * genautomata.c (initiate_automaton_gen): Likewise.
14169         (main): Likewise.
14170         * gencodes.c (main): Likewise.
14171         * genconditions.c (main): Likewise.
14172         * genconfig.c (main): Likewise.
14173         * genconstants.c (main): Likewise.
14174         * genemit.c (main): Likewise.
14175         * genenums.c (main): Likewise.
14176         * genextract.c (main): Likewise.
14177         * genflags.c (main): Likewise.
14178         * genmddeps.c (main): Likewise.
14179         * genopinit.c (main): Likewise.
14180         * genoutput.c (main): Likewise.
14181         * genpeep.c (main): Likewise.
14182         * genpreds.c (main): Likewise.
14183         * genrecog.c (main): Likewise.
14184         * gensupport.c (init_rtx_reader_args_cb): Likewise.
14185         (init_rtx_reader_args): Likewise.
14186         * gensupport.h (init_rtx_reader_args_cb): Likewise.
14187         (init_rtx_reader_args): Likewise.
14188         * gentarget-def.c (main): Likewise.
14189         * read-md.c (read_md_files): Likewise.
14190         * read-md.h (read_md_files): Likewise.
14192 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14194         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
14195         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
14196         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
14197         Remove unused predicate.
14198         (register_and_not_fp_reg_operand): Ditto.
14200 2016-05-06  Martin Liska  <mliska@suse.cz>
14202         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
14203         instead of vec as the vector is local to the function.
14205 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
14207         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
14208         avx512bw alternative.
14210         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
14211         before the ashr<mode>3 pattern.
14213         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
14214         v instead of x in vex or maybe_vex alternatives, use
14215         maybe_evex instead of vex in prefix.
14217         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
14218         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
14219         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
14220         in vex or maybe_vex alternatives, use maybe_evex instead of vex
14221         in prefix.
14223         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
14224         v instead of x in vex or maybe_vex alternatives, use
14225         maybe_evex instead of vex in prefix.
14227         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
14228         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
14229         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
14230         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
14231         alternatives, use maybe_evex instead of vex in prefix.
14233         * config/i386/sse.md (vec_interleave_lowv4sf,
14234         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
14235         v instead of x in vex or maybe_vex alternatives, use
14236         maybe_evex instead of vex in prefix.
14238         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
14239         v instead of x in vex or maybe_vex alternatives, use
14240         maybe_evex instead of vex in prefix.
14242         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
14243         v constraint instead of x.
14245 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
14247         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
14248         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
14249         equality first.
14251 2016-05-06  Richard Biener  <rguenther@suse.de>
14253         PR tree-optimization/70948
14254         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14255         Properly clobber all fields of va_list for __builtin_va_start.
14257 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
14259         PR debug/70935
14260         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
14261         loop latch destination.
14263 2016-05-06  Martin Liska  <mliska@suse.cz>
14265         * tree-ssa-uninit.c: Apply manual changes
14266         to the GNU coding style.
14267         (prune_uninit_phi_opnds): Rename from
14268         prune_uninit_phi_opnds_in_unrealizable_paths.
14270 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14272         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
14273         mspace): Remove deprecated options.
14274         * doc/invoke.texi (SH options): Remove -mspace.
14276 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14278         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
14280 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14282         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
14283         corresponding combine split pattern.
14285 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14287         PR target/58219
14288         * config/sh/predicates.md (long_displacement_mem_operand): New.
14289         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
14290         Add movi20, movi20s alternatives.  Adjust length attribute for
14291         alternatives.
14292         (movsi_ie): Allow for any FPU.  Adjust length attribute for
14293         alternatives.
14294         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
14295         attribute for alternatives.
14296         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
14297         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
14298         length attribute for alternatives.
14300 2016-05-06  Richard Biener  <rguenther@suse.de>
14302         PR tree-optimization/70960
14303         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
14305 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14307         PR target/52933
14308         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
14309         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
14311 2016-05-06  Marek Polacek  <polacek@redhat.com>
14313         PR sanitizer/70875
14314         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
14316 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14318         PR target/54089
14319         * config/sh/sh.md (*rotcr): Add another variant.
14321 2016-05-06  Richard Biener  <rguenther@suse.de>
14323         PR middle-end/70931
14324         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
14326 2016-05-06  Richard Biener  <rguenther@suse.de>
14328         PR middle-end/70941
14329         * fold-const.c (split_tree): Always convert to the original type
14330         before negating.
14332 2016-05-06  Richard Biener  <rguenther@suse.de>
14334         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
14335         (fwprop_addr): Likewise.
14337 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
14339         PR target/70873
14340         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
14341         New prototype.
14342         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
14343         * config/i386/i386.md (push mem splitter): Use find_constant_src in
14344         the splitter condition.
14345         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
14346         the splitter condition.
14347         (FP float_extend load splitter): Ditto.
14349 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
14351         * config/i386/i386.md (peehole2 patterns): Change true_regnum
14352         to REGNO in all peephole2 patterns.
14353         (post-reload splitters): Change true_regnum to REGNO in
14354         post-reload splitters.
14355         (zero_extend splitters): Use general_reg_operand and
14356         nonimmediate_gr_operand predicates.
14358 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
14360         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
14361         v constraint instead of x.
14363 2016-05-05  Alan Modra  <amodra@gmail.com>
14365         PR target/68662
14366         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14367         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
14368         TARGET_NO_FP_IN_TOC for -mrelocatable.
14369         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
14370         TARGET_RELOCATABLE test.
14371         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14372         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14373         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14374         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14375         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14376         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14377         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14378         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
14379         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
14380         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14381         Likewise.
14382         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
14383         (rs6000_stack_info): Likewise.
14384         (rs6000_elf_asm_out_constructor): Likewise.
14385         (rs6000_elf_asm_out_destructor): Likewise.
14386         (rs6000_elf_declare_function_name): Likewise.
14387         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
14388         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
14389         Don't define.
14391 2016-05-05  Alan Modra  <amodra@gmail.com>
14393         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
14395 2016-05-05  Alan Modra  <amodra@gmail.com>
14397         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
14398         out-of-line gpr restore for one or two regs if that would add
14399         a save of lr.
14401 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
14403         PR target/70873
14404         * config/i386/i386.md
14405         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
14406         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
14407         as operand 0 predicate.
14408         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
14409         Ditto.
14410         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
14411         Ditto.  Emit the pattern using RTX.
14413         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
14414         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
14415         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
14416         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
14417         Ditto.
14418         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
14419         sse_reg_operand as operand 0 predicate.
14421         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
14422         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
14423         instead of gen_rtx_REG.
14424         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
14425         Ditto.
14427 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14429         * function.c (emit_use_return_register_into_block): Delete.
14430         (gen_return_pattern): Delete.
14431         (emit_return_into_block): Delete.
14432         (active_insn_between): Delete.
14433         (convert_jumps_to_returns): Delete.
14434         (emit_return_for_exit): Delete.
14435         (thread_prologue_and_epilogue_insns): Delete all code dealing with
14436         simple_return for shrink-wrapped blocks.
14437         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
14438         end of blocks that need one.
14439         (get_unconverted_simple_return): Delete.
14440         (convert_to_simple_return): Delete.
14441         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
14442         (convert_to_simple_return): Ditto.
14444 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14446         * cfgcleanup.c (bb_is_just_return): New function.
14447         (try_optimize_cfg): Simplify jumps to return, branches to return,
14448         and branches around return.
14450 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14452         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
14453         branch to a return.
14455 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14457         PR c++/70906
14458         PR c++/70933
14459         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
14460         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
14461         assert flags & OEP_HASH_CHECK, instead of asserting it
14462         never happens.  Handle TARGET_EXPR.
14463         * fold-const.c (operand_equal_p): For hash verification,
14464         or in OEP_HASH_CHECK into flags.
14466 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14468         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
14469         comment.
14470         (compute_samebase_partition_bases): Fix typo.
14472 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
14474         * config/i386/sse.md (vec_interleave_highv8sf,
14475         vec_interleave_lowv8sf, vec_interleave_highv4df,
14476         vec_interleave_lowv4df): Remove constraints from expanders.
14478         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
14480 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14482         * tree-inline.c (expand_call_inline): Fix path dealing with
14483         making lhs of call statement undefined.
14485 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
14487         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
14488         Check availability on NODE, too.
14489         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
14490         (cgraph_node::call_for_symbol_and_aliases): Likewise.
14491         (varpool_node::call_for_symbol_and_aliase): Likewise.
14492         * ipa-pure-const.c (add_new_function): Analyze all bodies.
14493         (propagate_pure_const): Propagate across interposable functions, too.
14494         (skip_function_for_local_pure_const): Do not skip interposable bodies
14495         with aliases.
14496         (pass_local_pure_const::execute): Update.
14498 2016-05-04  Marek Polacek  <polacek@redhat.com>
14500         * doc/invoke.texi: Document -Wdangling-else.
14502 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14504         * config.gcc: Error out when conflicting multilib is detected.  Do not
14505         loop over multilibs since no combination is legal.
14507 2016-05-04  Alan Modra  <amodra@gmail.com>
14509         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
14510         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
14511         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
14512         Align .toc.
14514 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
14516         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
14517         Clean up p5600 comments.
14519 2016-05-04  Richard Biener  <rguenther@suse.de>
14521         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
14522         constructor simplifications.
14523         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
14525 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
14527         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
14528         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
14529         result.set_rtx is null instead of aborting.
14530         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
14531         Always enable.
14532         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
14533         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
14534         *mov<mode>_store_postinc): New patterns.
14536 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
14538         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
14539         as commutative.  Check both conversions are NOP.
14540         ((A & B) OP (C & B)): Remove.
14542 2016-05-04  Alan Modra  <amodra@gmail.com>
14544         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
14546 2016-05-04  Alan Modra  <amodra@gmail.com>
14548         PR target/70866
14549         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
14550         when cr2,3,4 are all fixed regs.
14552 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
14554         PR rtl-optimization/57193
14555         * opts.c (default_options_table): Revert OPT_frename_registers change.
14556         * doc/invoke.texi (-frename-registers, -O2): Likewise.
14558 2016-05-03  Martin Sebor  <msebor@redhat.com>
14560         PR c++/66561
14561         * builtins.c (fold_builtin_FILE): New function.
14562         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
14563         (fold_builtin_0): Call them.
14564         * gimplify.c (gimplify_call_expr): Remove the handling of
14565         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
14567         PR c++/66561
14568         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
14569         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
14570         constants.
14572         PR c++/66639
14573         * doc/extend.texi (Function Names as Strings): Update __func__,
14574         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
14575         constants.
14577 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14578             Richard Biener  <rguenther@suse.de>
14580         PR tree-optimization/70916
14581         * tree-if-conv.c: Include cfganal.h.
14582         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
14583         and remove_fake_exit_edges around the optimization pass.
14585 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
14587         * cgraph.c (symbol_table::create_edge): Set inline_failed.
14588         (cgraph_edge::make_direct): Likewise.
14589         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
14590         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
14591         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
14592         (CIF_THUNK): New code.
14593         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
14594         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
14595         (compute_inline_parameters): Set inline_failed for thunks.
14596         (inline_analyze_function): Cleanup.
14597         * ipa-inline.c (can_inline_edge_p): Do not deal with
14598         call_stmt_cannot_inline_p.
14599         (can_early_inline_edge_p): Likewise.
14600         (early_inliner): Initialize inline_failed.
14601         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
14603 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
14605         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
14606         from nonimm_ssenomem_operand.
14607         (nonimm_ssenomem_operand): New predicate.
14608         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
14609         as operand 0 predicate.
14610         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
14611         Disable unsupported alternatives using "enabled" attribute.
14612         Use register_ssemem_operand as operand 0 predicate.
14613         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
14615 2016-05-03  Marek Polacek  <polacek@redhat.com>
14617         PR c/70859
14618         * input.c (expansion_point_location): New function.
14619         * input.h (expansion_point_location): Declare.
14621 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
14623         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
14624         occurence with frame_offset_ ones.
14626 2016-05-03  Alan Modra  <amodra@gmail.com>
14628         PR rtl-optimization/70890
14629         * ira.c (combine_and_move_insns): When moving def_insn, remove
14630         equivs on use_insn.
14632 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14634         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
14635         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
14636         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
14637         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
14639 2016-05-03  Alan Modra  <amodra@gmail.com>
14641         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
14642         for SAVE_MULTIPLE/STORE_MULTIPLE.
14644 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14646         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
14647         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
14649 2016-05-03  Richard Biener  <rguenther@suse.de>
14651         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
14652         default true.
14653         (gimplify_arg): Likewise.
14654         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
14655         re-writing the result to a decl if required.
14656         (internal_get_tmp_var): Add allow_ssa parameter
14657         and override into_ssa with it.
14658         (get_formal_tmp_var): Adjust.
14659         (get_initialized_tmp_var): Add allow_ssa parameter.
14660         (gimplify_arg): Add allow_ssa parameter and avoid generating
14661         SSA names for the result false.
14662         (gimplify_call_expr): If the call may return twice do not
14663         gimplify parameters into SSA.
14664         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
14665         (gimplify_modify_expr): Adjust assert.  For noreturn calls
14666         with a SSA name LHS adjust its def.
14667         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
14668         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
14669         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
14670         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
14671         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
14672         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
14673         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
14674         (optimize_target_teams): Do not allow SSA names for clause operands.
14675         (gimplify_expr): Likewise for where we mark the result addressable.
14676         * passes.def (pass_init_datastructures): Remove.
14677         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
14678         (rewrite_stmt): Likewise.
14679         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
14680         (replace_locals_op): Replace SSA names.
14681         (copy_gimple_seq_and_replace_locals): Init src_cfun.
14682         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
14683         * cgraph.c (release_function_body): Free CFG annotations only
14684         when we have a CFG.  Simplify.
14685         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
14686         force_gimple_operand instead of get_initialized_tmp_var.
14687         * tree-pass.h (make_pass_init_datastructures): Remove.
14688         * tree-ssa.c (execute_init_datastructures): Remove.
14689         (pass_data_init_datastructures): Likewise.
14690         (class pass_init_datastructures): Likewise.
14691         (make_pass_init_datastructures): Likewise.
14692         * omp-low.c (create_omp_child_function): Init SSA data structures.
14693         (grid_expand_target_grid_body): Likewise.
14694         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
14695         name before adding it to names_to_release.
14696         (remove_bb): Always release SSA defs.
14697         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
14698         before dereferencing it.
14699         * cgraphunit.c (init_lowered_empty_function): Always
14700         int SSA data structures.
14701         * tree-ssanames.c (release_defs): Remove assert that we are in
14702         SSA form.
14703         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
14705 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14706             Uros Bizjak  <ubizjak@gmail.com>
14708         PR rtl-optimization/70467
14709         * config/i386/predicates.md (x86_64_hilo_int_operand,
14710         x86_64_hilo_general_operand): New predicates.
14711         * config/i386/constraints.md (Wd): New constraint.
14712         * config/i386/i386.md (mode attr di): Use Wd instead of e.
14713         (general_hilo_operand): New mode attr.
14714         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
14715         instead of <general_operand>.
14716         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
14717         x86_64_hilo_general_operand instead of <general_operand>.
14719 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
14721         PR tree-optimization/70916
14722         * tree-if-conv.c (constant_or_ssa_name): Removed.
14723         (fold_build_cond_expr): Use is_gimple_val instead of
14724         constant_or_ssa_name.
14726         PR tree-optimization/70916
14727         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
14728         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
14730         PR target/49244
14731         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
14732         (optimize_atomic_bit_test_and): New function.
14733         (pass_fold_builtins::execute): Use it.
14734         * optabs.def (atomic_bit_test_and_set_optab,
14735         atomic_bit_test_and_complement_optab,
14736         atomic_bit_test_and_reset_optab): New optabs.
14737         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
14738         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
14739         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
14740         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
14741         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
14742         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
14743         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
14744         * doc/md.texi (atomic_bit_test_and_set@var{mode},
14745         atomic_bit_test_and_complement@var{mode},
14746         atomic_bit_test_and_reset@var{mode}): Document.
14747         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
14748         atomic_bit_test_and_complement<mode>,
14749         atomic_bit_test_and_reset<mode>): New expanders.
14750         (atomic_bit_test_and_set<mode>_1,
14751         atomic_bit_test_and_complement<mode>_1,
14752         atomic_bit_test_and_reset<mode>_1): New insns.
14754 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
14756         PR rtl-optimization/70687
14757         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
14758         instead of unsigned HOST_WIDE_INT.
14760 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
14762         PR rtl-optimization/44281
14763         * hard-reg-set.h (struct target_hard_regs): New field
14764         x_fixed_nonglobal_reg_set.
14765         (fixed_nonglobal_reg_set): New macro.
14766         * reginfo.c (init_reg_sets_1): Initialize it.
14767         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
14768         of fixed_reg_set.
14769         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
14771 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
14773         PR tree-optimization/56541
14774         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
14775         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
14776         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
14777         (any_complicated_phi): new static variable.
14778         (aggressive_if_conv): delete.
14779         (if_convertible_phi_p): support phis with more than two arguments.
14780         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
14781         critical pred edges.
14782         (ifcvt_split_critical_edges): support phis with more than two
14783         arguments by checking new parameter.  only split critical edges
14784         if needed.
14785         (tree_if_conversion): handle simd pragma marked loop using new
14786         local variable aggressive_if_conv.  check any_complicated_phi.
14788 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
14790         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
14791         before using it.
14793 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
14795         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
14796         cbase.
14798 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
14800         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
14801         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
14802         define_insn_and_split.
14803         (mulsi3_i): New define_insn_and_split.
14804         (mulsi3_call): Convert to define_insn.
14805         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
14806         Remove constraints.
14808 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14810         * machmode.h (mode_complex): Add support to give the complex mode
14811         for a given mode.
14812         (GET_MODE_COMPLEX_MODE): Likewise.
14813         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
14814         stored by build_complex_type and gfc_build_complex_type instead of
14815         trying to figure out the appropriate mode based on the size. Raise
14816         an assertion error, if the type was not set.
14817         * genmodes.c (struct mode_data): Add field for the complex type of
14818         the given type.
14819         (blank_mode): Likewise.
14820         (make_complex_modes): Remember the complex mode created in the
14821         base type.
14822         (emit_mode_complex): Write out the mode_complex array to map a
14823         type mode to the complex version.
14824         (emit_insn_modes_c): Likewise.
14825         * tree.c (build_complex_type): Set the complex type to use before
14826         calling layout_type.
14827         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
14828         support for __float128 complex datatypes.
14829         (rs6000_hard_regno_mode_ok): Likewise.
14830         (rs6000_setup_reg_addr_masks): Likewise.
14831         (rs6000_complex_function_value): Likewise.
14832         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
14833         __float128 and __ibm128 complex.
14834         (FLOAT128_IBM_P): Likewise.
14835         (ALTIVEC_ARG_MAX_RETURN): Likewise.
14836         * doc/extend.texi (Additional Floating Types): Document that
14837         -mfloat128 must be used to enable __float128.  Document complex
14838         __float128 and __ibm128 support.
14840 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
14842         PR target/49244
14843         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
14844         char/short arguments promoted to int because of promote_prototypes.
14846 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
14848         * config/i386/predicates.md (register_ssemem_operand): New predicate.
14849         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
14850         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
14851         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
14852         alternatives using "enabled" attribute.  Use register_ssemem_operand
14853         as operand 1 predicate.
14854         (*cmpi<unord>xf_i387): Split XFmode pattern from
14855         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
14856         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
14857         *absneg<mode>2_i387.  Disable unsupported alternatives using
14858         "enabled" attribute.
14859         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
14861 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
14863         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
14864         marker.
14865         (oacc_loop_process): Check mask for loop termination.
14867 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
14869         * cif-code.def (CIF_THUNK): Add.
14870         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
14871         accidental change.
14873 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
14875         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
14876         (dump_inline_summary): Dump it.
14877         (fp_expression_p): New predicate.
14878         (estimate_function_body_sizes): Use it.
14879         (inline_merge_summary): Merge fp_expressions.
14880         (inline_read_section): Read fp_expressions.
14881         (inline_write_summary): Write fp_expressions.
14882         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
14883         codegen boundary if either caller or callee is !fp_expressions.
14884         * ipa-inline.h (inline_summary): Add fp_expressions.
14885         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
14886         to fp_expressions be sure the fp generation flags are updated.
14888 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
14890         PR rtl-optimization/70467
14891         * cse.c (cse_insn): Handle no-op MEM moves after folding.
14893         PR rtl-optimization/70467
14894         * ipa-pure-const.c (check_call): Handle internal calls even in
14895         ipa mode like in local mode.
14897 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14899         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
14901 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
14903         * match.pd (X u< X, X u> X): New transformations.
14905 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
14907         * flag-types.h (enum warn_strict_overflow_code): Move ...
14908         * coretypes.h: ... here.
14909         * fold-const.h (fold_overflow_warning): Declare.
14910         * fold-const.c (fold_overflow_warning): Make non-static.
14911         (fold_comparison): Move the transformation of X +- C1 CMP C2
14912         into X CMP C2 -+ C1 ...
14913         * match.pd: ... here.
14914         * gimple-fold.c (fold_stmt_1): Protect with
14915         fold_defer_overflow_warnings.
14917 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
14919         * omp-low.c (struct oacc_loop): Add 'inner' field.
14920         (new_oacc_loop_raw): Initialize it to zero.
14921         (oacc_loop_fixed_partitions): Initialize it.
14922         (oacc_loop_auto_partitions): Partition outermost loop to outermost
14923         available partitioning.
14925 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
14927         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
14928         register_operand.
14929         (umulsidi3): Likewise.
14930         (indirect_jump): Fix jump instruction assembly patterns.
14932 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
14934         PR target/70860
14935         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
14936         (nvptx_function_value): Assert non-NULL cfun.
14938 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
14940         PR rtl-optimization/70886
14941         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
14943         * cselib.h (rtx_equal_for_cselib_1): Declare.
14944         (rtx_equal_for_cselib_p: New inline function.
14945         * cselib.c (rtx_equal_for_cselib_p): Delete.
14946         (rtx_equal_for_cselib_1): Make public.
14948 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
14950         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
14951         (register_mixssei387nonimm_operand): Remove predicate.
14952         * config/i386/i386.md (*fop_<mode>_comm): Merge from
14953         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
14954         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
14955         for TARGET_MIX_SSE_I387 alternatives.
14956         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
14957         Disable unsupported alternatives using "enabled" attribute.  Use
14958         nonimm_ssenomem_operand as operand 1 predicate.  Also check
14959         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
14961 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
14963         * tree.c (cst_and_fits_in_hwi): Simplify.
14965 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
14967         * tree.h (wi::to_wide): New function.
14968         * expr.c (expand_expr_real_1): Use wi::to_wide.
14969         * fold-const.c (int_const_binop_1): Likewise.
14970         (extract_muldiv_1): Likewise.
14972 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
14974         * wide-int.h: Update offset_int and widest_int documentation.
14975         (WI_SIGNED_SHIFT_RESULT): New macro.
14976         (wi::binary_shift): Define signed_shift_result_type for
14977         shifts on offset_int- and widest_int-like types.
14978         (generic_wide_int): Support <<= and >>= if << and >> are supported.
14979         * tree.h (int_bit_position): Use shift operators instead of wi::
14980          shifts.
14981         * alias.c (adjust_offset_for_component_ref): Likewise.
14982         * expr.c (get_inner_reference): Likewise.
14983         * fold-const.c (fold_comparison): Likewise.
14984         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
14985         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
14986         * tree-dfa.c (get_ref_base_and_extent): Likewise.
14987         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14988         (stmt_kills_ref_p): Likewise.
14989         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
14990         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
14991         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
14992         (ao_ref_init_from_vn_reference): Likewise.
14994 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
14996         * wide-int.h: Update offset_int and widest_int documentation.
14997         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
14998         (wi::binary_traits): Allow ordered comparisons between offset_int and
14999         offset_int, between widest_int and widest_int, and between either
15000         of these types and basic C types.
15001         (operator <, <=, >, >=): Define for the same combinations.
15002         * tree.h (tree_int_cst_lt): Use comparison operators instead
15003         of wi:: comparisons.
15004         (tree_int_cst_le): Likewise.
15005         * gimple-fold.c (fold_array_ctor_reference): Likewise.
15006         (fold_nonarray_ctor_reference): Likewise.
15007         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
15008         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
15009         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
15010         * tree-sra.c (completely_scalarize): Likewise.
15011         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
15012         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
15013         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
15014         (check_for_binary_op_overflow): Likewise.
15015         (search_for_addr_array): Likewise.
15016         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
15018 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15020         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
15021         (arc_save_restore): Likewise.
15022         (arc_dwarf_register_span): Likewise.
15023         (arc_output_pic_addr_const): Initialize suffix variable.
15025 2016-05-02  Martin Liska  <mliska@suse.cz>
15027         * symbol-summary.h (function_summary::function_summary):
15028         Remove checking assert for all cgraph nodes.
15029         (function_summary::get): Check summary_uid.
15030         (symtab_insertion): Check summary_uid.
15032 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
15034         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
15035         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
15036         bmaskn instruction.
15037         (arc_dwarf_register_span): Remove enum keyword.
15038         (compact_memory_operand_p): New function.
15039         * config/arc/arc.h (reg_class): Add code density register classes.
15040         (REG_CLASS_NAMES): Likewise.
15041         (REG_CLASS_CONTENTS): Likewise.
15042         * config/arc/arc.md (*movqi_insn): Add code density instructions.
15043         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
15044         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
15045         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
15046         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
15047         constraints.
15048         (h, Rcd, Rsd, Rzd): New register constraints.
15049         (T): Use compact_memory_operand_p function.
15050         * config/arc/predicates.md (compact_load_memory_operand): Remove.
15052 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15054         * config/sh/sh.md (*negnegt, *movtt): Remove.
15056 2016-05-02  Marek Polacek  <polacek@redhat.com>
15057             Tom de Vries  <tom@codesourcery.com>
15059         PR tree-optimization/70700
15060         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
15061         bigger than FIRST_REF_NODE.
15063 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
15065         PR target/52898
15066         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
15067         TARGET_CMPEQDI_T.
15068         (prepare_cbranch_operands): Don't use scratch register.  Assume that
15069         function is used when pseudos can be created.
15070         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
15071         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
15072         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
15073         define_expand.  Allow it only when pseudos can be created.
15074         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
15076 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
15078         * config/i386/constraints.md (BC): Only allow -1 operands.
15079         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
15080         Add "enabled" attribute.  Update XI mode attribute calculation.
15081         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
15082         (*movoi_internal_avx): Update XI mode attribute calculation.
15083         (*movti_internal): Ditto.
15085 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15087         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
15088         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
15090 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15092         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
15093         statement on instruction code.  Remove trailing spaces.
15094         (altivec_expand_stv_builtin): Likewise.
15096 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15098         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
15099         (TARGET_FPU_DOUBLE): Simplify.
15100         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
15101         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
15102         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
15103         with 'TARGET_FPU_DOUBLE'.
15104         * config/sh/sh.md: Likewise.
15106 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
15108         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
15109         SH_DIV_STR_FOR_SIZE): Remove.
15110         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
15111         SH_DIV_STR_FOR_SIZE): Remove.
15113 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
15115         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
15116         logical_reg_operand): Delete.
15117         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
15118         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
15119         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
15120         match_operand and match_test.
15121         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
15122         variables on their first use.  Return bool values.
15123         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
15124         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
15125         arith_reg_operand for input operand.  Remove empty constraints.
15126         (xorsi3): Delete.
15127         (*xorsi3_compact): Rename to xorsi3.
15128         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
15129         (*zero_extend<mode>si2_disp_mem): Update comment.
15130         (mov_nop): Delete.
15132 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15134         * config/sh/t-sh: Remove SH5 support.
15135         * config.gcc: Likewise.
15136         * configure: Likewise.
15138 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15140         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
15142 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
15144         * config/sh/sh.c (register_sh_passes, sh_option_override,
15145         sh_print_operand, prepare_move_operands,
15146         sh_can_follow_jump): Remove TARGET_SH1 checks.
15147         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
15148         PROMOTE_MODE): Likewise.
15149         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
15150         movdi): Likewise.
15152 2016-04-30  Alan Modra  <amodra@gmail.com>
15154         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
15155         restoring when fixed_reg_p, but allow out-of-line or stmw save.
15156         Check for user regs later to avoid unnecessary looping over regs.
15157         Merge user reg check with non-saved reg check.  Don't force
15158         inline VR restore when static chain used.
15159         (rs6000_frame_related): Omit eh_frame info for user regs when
15160         saving.
15161         (fixed_regs_p): Delete.
15163 2016-04-30  Alan Modra  <amodra@gmail.com>
15165         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
15166         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
15167         Update all uses.
15169 2016-04-30  Alan Modra  <amodra@gmail.com>
15171         PR target/69645
15172         * config/rs6000/rs6000.c (fixed_reg_p): New function.
15173         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
15174         Update all uses.
15176 2016-04-30  Alan Modra  <amodra@gmail.com>
15178         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
15179         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
15180         flag_pic test for Darwin.
15182 2016-04-30  Alan Modra  <amodra@gmail.com>
15184         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
15185         throw_calls_crossed.
15186         (REG_FREQ_CALLS_CROSSED): Delete.
15187         (REG_N_THROWING_CALLS_CROSSED): Delete.
15188         * regstat.c (regstat_bb_compute_ri): Don't calculate
15189         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
15190         (dump_reg_info): Don't print call cross frequency.
15191         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
15192         and REG_N_THROWING_CALLS_CROSSED.
15194 2016-04-30  Alan Modra  <amodra@gmail.com>
15196         * regs.h (struct reg_info_t): Delete live_length.
15197         (REG_LIVE_LENGTH): Delete macro.
15198         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
15199         local_live, local_processed and local_live_last_luid params.
15200         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
15201         Formatting fixes.
15202         (regstat_compute_ri): Adjust for above.  Don't set
15203         REG_LIVE_LENGTH.
15204         (dump_reg_info): Don't print live length.
15205         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
15206         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
15207         Localize loop_depth var.
15209 2016-04-30  Alan Modra  <amodra@gmail.com>
15211         * ira.c (enum valid_equiv): New.
15212         (validate_equiv_mem): Return enum.
15213         (update_equiv_mem): Create replacement in more cases.
15214         (add_store_equivs): Update validate_equiv_mem call.
15216 2016-04-30  Alan Modra  <amodra@gmail.com>
15218         * ira.c (combine_and_move_insns): Rather than scanning insns,
15219         use DF infrastucture to find use and def insns.
15221 2016-04-30  Alan Modra  <amodra@gmail.com>
15223         ira.c (combine_and_move_insns): Move invariant conditions..
15224         (ira.c): ..to here.  Call combine_and_move_insns before
15225         add_store_equivs.  Call grow_reg_equivs later.  Allocate
15226         req_equiv later using max_reg_num() rather than global max_regno.
15227         (contains_replace_regs): Delete.
15228         (add_store_equivs): Remove contains_replace_regs test.
15230 2016-04-30  Alan Modra  <amodra@gmail.com>
15232         * ira.c (struct equiv_mem_data): New.
15233         (equiv_mem, equiv_mem_modified): Delete static vars.
15234         (validate_equiv_mem_from_store): Use "data" param to communicate..
15235         (validate_equiv_mem): ..from here.
15237 2016-04-30  Alan Modra  <amodra@gmail.com>
15239         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
15240         split out from..
15241         (update_reg_equivs): ..here.  Move allocation and freeing of
15242         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
15243         end_alias_analysis to..
15244         (ira): ..here.
15246 2016-04-30  Alan Modra  <amodra@gmail.com>
15248         * ira.c (pdx_subregs): Delete.
15249         (struct equivalence): Add pdx_subregs field.
15250         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
15251         pdx_subregs access.
15252         (update_equiv_regs): Don't create or free pdx_subregs.  Update
15253         pdx_subregs access.
15255 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15257         * config/rs6000/altivec.h: Change definitions of vec_xl and
15258         vec_xst.
15259         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
15260         (LD_ELEMREV_V2DI): New.
15261         (LD_ELEMREV_V4SF): New.
15262         (LD_ELEMREV_V4SI): New.
15263         (LD_ELEMREV_V8HI): New.
15264         (LD_ELEMREV_V16QI): New.
15265         (ST_ELEMREV_V2DF): New.
15266         (ST_ELEMREV_V2DI): New.
15267         (ST_ELEMREV_V4SF): New.
15268         (ST_ELEMREV_V4SI): New.
15269         (ST_ELEMREV_V8HI): New.
15270         (ST_ELEMREV_V16QI): New.
15271         (XL): New.
15272         (XST): New.
15273         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15274         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
15275         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
15276         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
15277         (altivec_expand_builtin): Add handling for
15278         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
15279         (rs6000_invalid_builtin): Add error-checking for
15280         RS6000_BTM_P9_VECTOR.
15281         (altivec_init_builtins): Define builtins used to implement vec_xl
15282         and vec_xst.
15283         (rs6000_builtin_mask_names): Define power9-vector.
15284         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
15285         (RS6000_BTM_P9_VECTOR): Define.
15286         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
15287         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
15288         (vsx_ld_elemrev_v2df): Likewise.
15289         (vsx_ld_elemrev_v4sf): Likewise.
15290         (vsx_ld_elemrev_v4si): Likewise.
15291         (vsx_ld_elemrev_v8hi): Likewise.
15292         (vsx_ld_elemrev_v16qi): Likewise.
15293         (vsx_st_elemrev_v2df): Likewise.
15294         (vsx_st_elemrev_v2di): Likewise.
15295         (vsx_st_elemrev_v4sf): Likewise.
15296         (vsx_st_elemrev_v4si): Likewise.
15297         (vsx_st_elemrev_v8hi): Likewise.
15298         (vsx_st_elemrev_v16qi): Likewise.
15299         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
15300         grammar.
15302 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
15304         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
15305         out into ...
15306         (simplify_control_stmt_condition_1): ... here.  Recurse into
15307         BIT_AND_EXPRs and BIT_IOR_EXPRs.
15309 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
15311         PR target/69810
15312         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
15313         (zero_extendqi<mode>2_dot): Revert earlier conversion from
15314         define_insn_and_split to define_insn.
15315         (zero_extendqi<mode>2_dot2): Same.
15316         (extendqi<mode>2_dot): Same.
15317         (extendqi<mode>2_dot2): Same.
15319 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15321         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
15322         (probe_stack): New expander.
15323         (probe_stack_<mode>): New insn pattern.
15325 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15327         * config/i386/i386.md
15328         (operations with memory inputs setting flags peephole2):
15329         Remove uneeded REG_P checks.  Cleanup pattern generation.
15331 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
15333         * tree-vect-loop.c (vect_transform_loop): Fix
15334         nb_iterations_upper_bound computation for vectorized loop.
15336 2016-04-29  Marek Polacek  <polacek@redhat.com>
15337             Jakub Jelinek  <jakub@redhat.com>
15339         PR sanitizer/70342
15340         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
15341         TARGET_EXPR_SLOT as a base.
15343 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
15345         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
15346         with 'rCm2' constraints to limit possible immediate size.
15347         (*load_zeroextendqisi_update): Likewise.
15348         (*load_signextendqisi_update): Likewise.
15349         (*loadhi_update): Likewise.
15350         (*load_zeroextendhisi_update): Likewise.
15351         (*load_signextendhisi_update): Likewise.
15352         (*loadsi_update): Likewise.
15353         (*loadsf_update): Likewise.
15355 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15357         * config/i386/predicates.md (constm1_operand): Fix comparison.
15359 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15361         * testsuite/gcc.target/arc/ieee_eq.c: New test.
15363 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
15365         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
15366         remaining SH5 related settings.
15367         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
15368         shmedia_prepare_call_address): Delete.
15369         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
15370         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
15371         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
15372         UNSUPPORTED_SH2A): Remove m5 checks.
15373         (sh_divide_strategy_e): Remove SH5 division strategies.
15374         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
15375         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
15377 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15379         * config/s390/s390.c (s390_rtx_costs): Update documentation.
15381 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15383         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
15384         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
15385         Change lder to ldr.
15386         * config/s390/vector.md ("mov<mode>"): Likewise.
15388 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
15390         * config/s390/constraints.md ("U", "W"): Invoke
15391         s390_mem_constraint with "ZR" and "ZT".
15392         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
15393         addresses when using LRA.  Accept also short displacements for S
15394         and T constraints.  Do not check for long displacement target for
15395         S and T constraints.
15396         (s390_mem_constraint): Remove handling of U and W constraints.
15397         * config/s390/s390.md (various patterns): Remove the short
15398         displacement constraints (Q and R) if a long displacement
15399         constraint is present.  Add longdisp as required CPU capability.
15400         * config/s390/vector.md: Likewise.
15401         * config/s390/vx-builtins.md: Likewise.
15403 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15405         PR target/60040
15406         * reload1.c (reload): Call finish_spills before
15407         restarting reload loop. Skip select_reload_regs
15408         if update_eliminables_and_spill returns true.
15410 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
15412         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
15413         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
15414         (umulhisi3_imm): Update predicates and constraint letters.
15415         (umulhisi3_reg): Declare instruction as commutative.
15416         * config/arc/constraints.md (J12, J16): New constraints.
15417         * config/arc/predicates.md (short_unsigned_const_operand): New
15418         predicate.
15419         (arc_short_operand): Likewise.
15420         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
15422 2016-04-29  Richard Biener  <rguenther@suse.de>
15424         PR tree-optimization/13962
15425         PR tree-optimization/65686
15426         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
15427         * tree-ssa-alias.c (ptrs_compare_unequal): New function
15428         using PTA to compare pointers.
15429         * match.pd: Add pattern for pointer equality compare simplification
15430         using ptrs_compare_unequal.
15432 2016-04-29  Richard Biener  <rguenther@suse.de>
15434         * stor-layout.c (layout_type): Do not build a pointer-to-element
15435         type for arrays.
15437 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
15439         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
15440         Use SWI mode iterator.  Use general_reg_operand predicate.
15441         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
15442         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
15443         predicates.
15445 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
15447         PR middle-end/70843
15448         * fold-const.c (operand_equal_p): Don't verify hash value equality
15449         if arg0 == arg1.
15450         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
15451         and OMP_CLAUSE.
15453 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15455         PR target/70858
15456         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
15457         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
15458         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
15459         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
15460         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
15462 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15464         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
15465         to info.  Don't initialize separate fields to 0.  Clean up
15466         formatting a bit.
15468 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15470         * config/i386/i386.md (peephole2s for operations with memory inputs):
15471         Use SWI mode iterator.
15472         (peephole2s for operations with memory outputs): Ditto.
15473         Do not check for stack checking probe.
15475         (probe_stack): Remove expander.
15477 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15478             Andrew Burgess  <andrew.burgess@embecosm.com>
15480         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
15481         operands as 32-bits.
15483 2016-04-28  Jason Merrill  <jason@redhat.com>
15485         * gdbinit.in: Skip line-map.h.
15487 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15488             Andrew Burgess  <andrew.burgess@embecosm.com>
15490         * config/arc/arc.c (arc_conditional_register_usage): Take
15491         TARGET_RRQ_CLASS into account.
15492         (arc_print_operand): Support printing 'p' and 's' operands.
15493         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
15494         as 0.
15495         (TARGET_RRQ_CLASS): Define.
15496         (IS_POWEROF2_OR_0_P): Define.
15497         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
15498         alternatives.
15499         (*tst_movb): New define_insn.
15500         (*tst): Avoid recognition if it could prevent '*tst_movb'
15501         combination; replace c/CnL with c/Chs alternative.
15502         (*tst_bitfield_tst): New define_insn.
15503         (*tst_bitfield_asr): New define_insn.
15504         (*tst_bitfield): New define_insn.
15505         (andsi3_i): Add Rrq variant.
15506         (extzv): New define_expand.
15507         (insv): New define_expand.
15508         (*insv_i): New define_insn.
15509         (*movb): New define_insn.
15510         (*movb_signed): New define_insn.
15511         (*movb_high): New define_insn.
15512         (*movb_high_signed): New define_insn.
15513         (*movb_high_signed + 1): New define_split pattern.
15514         (*mrgb): New define_insn.
15515         (*mrgb + 1): New define_peephole2 pattern.
15516         (*mrgb + 2): New define_peephole2 pattern.
15517         * config/arc/arc.opt (mbitops): New option for nps400, uses
15518         TARGET_NPS_BITOPS_DEFAULT.
15519         * config/arc/constraints.md (q): Make register class conditional.
15520         (Rrq): New register constraint.
15521         (Chs): New constraint.
15522         (Clo): New constraint.
15523         (Chi): New constraint.
15524         (Cbf): New constraint.
15525         (Cbn): New constraint.
15526         (C18): New constraint.
15527         (Cbi): New constraint.
15529 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15531         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
15532         dst->popcount.
15533         (bitmap_intersection_of_preds): Ditto.
15534         (bitmap_union_of_succs): Ditto.
15535         (bitmap_union_of_preds): Ditto.
15536         * sbitmap.c (do_popcount): Delete.
15537         (BITMAP_DEBUGGING): Delete.
15538         (sbitmap_verify_popcount): Delete.
15539         (sbitmap_alloc): Don't initialize the popcount field.
15540         (sbitmap_alloc_with_popcount): Delete.
15541         (sbitmap_resize): Don't resize the popcount array.
15542         (sbitmap_vector_alloc): Don't initialize the popcount field.
15543         (bitmap_copy): Don't copy the popcount array.
15544         (bitmap_clear): Don't clear the popcount array.
15545         (bitmap_clear): Delete the popcount array handling.
15546         (bitmap_ior_and_compl): Delete the popcount assert.
15547         (bitmap_not): Ditto.
15548         (bitmap_and_compl): Ditto.
15549         (bitmap_and): Delete the popcount array handling.
15550         (bitmap_xor): Ditto.
15551         (bitmap_ior): Ditto.
15552         (bitmap_or_and): Delete the popcount assert.
15553         (bitmap_and_or): Ditto.
15554         (popcount_table): Delete.
15555         (sbitmap_elt_popcount): Delete.
15556         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
15557         (bitmap_set_bit): Delete the popcount assert.
15558         (bitmap_clear_bit): Ditto.
15559         (sbitmap_free): Don't free the popcount array.
15560         (sbitmap_alloc_with_popcount): Delete declaration.
15561         (sbitmap_popcount): Ditto.
15563 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15564             Andrew Burgess  <andrew.burgess@embecosm.com>
15566         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
15567         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
15568         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
15569         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
15570         * config/arc/arc.opt (mcmem): New option.
15571         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
15572         supply length for r/m alternative.
15573         (*extendqisi2_ac): Likewise.
15574         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
15575         r/Uex alternative.
15576         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
15577         (movhi_insn): Likewise.
15578         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
15579         (*zero_extendqihi2_i): Add r/Ucm alternative.
15580         (*zero_extendqisi2_ac): Likewise.
15581         (*zero_extendhisi2_i): Likewise.
15582         * config/arc/constraints.md (Uex): New memory constraint.
15583         (Ucm): New define_constraint.
15584         * config/arc/predicates.md (long_immediate_loadstore_operand):
15585         Return 0 for MEM with cmem_address address.
15586         (cmem_address_0): New predicates.
15587         (cmem_address_1): Likewise.
15588         (cmem_address_2): Likewise.
15589         (cmem_address): Likewise.
15591 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15593         * config/rs6000/rs6000.c (machine_function): Rename
15594         insn_chain_scanned_p to spe_insn_chain_scanned_p.
15595         (rs6000_stack_info): Adjust.
15597 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
15598             Andrew Burgess  <andrew.burgess@embecosm.com>
15600         * config/arc/constraints.md (Usd): Convert to define_constraint.
15601         (Us<): Likewise.
15602         (Us>): Likewise.
15604 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15606         PR target/70821
15607         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
15608         Add new peephole2 where the first insn is *mov<mode>_or instead of
15609         *mov<mode>_internal.
15611 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
15613         * tracer.c (bb_seen): Make static.
15615 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
15617         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
15618         support, setup defaults.
15619         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
15620         * config/arc/arc.c (arc_init): Add NPS400 support.
15621         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
15622         (TARGET_ARC700): NPS400 is also an ARC700.
15623         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
15625 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
15627         PR target/70668
15628         * config/nds32/nds32.md (casesi): Don't access the operands array
15629         out of bounds.
15631 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15633         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
15634         (or $-1,reg peephole2): Ditto.
15635         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
15637 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
15639         * doc/extend.texi (Common Function Attributes) [optimize]:
15640         Discourage use of the optimize attribute.
15642 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
15644         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
15645         special case builtin.
15646         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15647         ALTIVEC_BUILTIN_VEC_ADDE.
15648         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15649         support for ALTIVEC_BUILTIN_VEC_ADDE.
15650         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15651         for __builtin_vec_adde.
15653 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
15655         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
15656         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
15658 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15660         PR testsuite/70595
15661         * doc/sourcebuild.texi (Effective-Target Keywords, Other
15662         attributes): Document cilkplus_runtime.
15664 2016-04-28  Martin Jambor  <mjambor@suse.cz>
15666         * tree-cfg.c (verify_expr): Verify that local declarations belong to
15667         this function.  Call verify_expr on MEM_REFs and bases of other
15668         handled_components.
15670 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15672         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
15673         for WORD_REGISTER_OPERATIONS to runtime check.
15675 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15677         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
15679 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15681         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
15682         big-endian compilation.
15683         * config/arc/arc.md (addf3): Likewise.
15684         (subdf3): Likewise.
15685         (muldf3): Likewise.
15687 2016-04-28  Richard Biener  <rguenther@suse.de>
15689         PR tree-optimization/70840
15690         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
15691         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
15692         Mark x * pow(x,c) -> pow(x,c+1) commutative.
15693         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
15695 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15697         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
15698         and explain why in a comment.
15700 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15702         * config/arc/arc.md (cpu_facility): Add fpx variant.
15703         (subdf3): Prohibit use reverse sub when assist operations option
15704         is enabled.
15705         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
15706         instructions only when FPX is enabled.
15707         * testsuite/gcc.target/arc/trsub.c: New test.
15709 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15711         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
15712         mult_operator when calculating "type" attribute.
15713         (*fop_<mode>_1_i387): Ditto.
15714         (*fop_xf_1_i387): Ditto.
15715         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
15716         Use std::swap to swap operands.  Use RTL expressions to generate
15717         converted pattern.
15719 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15720             Joern Rennecke  <joern.rennecke@embecosm.com>
15722         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
15723         declaration.
15724         (emit_pic_move): Remove.
15725         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
15726         * config/arc/arc.c (emit_pic_move): Removed.
15727         (TARGET_HAVE_TLS): Define.
15728         (arc_conditional_register_usage): Test for arc_tp_regno.
15729         (arc_print_operand, arc_print_operand_address): Handle TLS
15730         unspecs.
15731         (arc_needs_pcl_p): New function.
15732         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
15733         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
15734         (arc_raw_symbolic_reference_mentioned_p): Likewise.
15735         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
15736         (arc_legitimize_tls_address): Likewise.
15737         (DTPOFF_ZERO_SYM): Define.
15738         (arc_legitimize_pic_address): Make it static, handle TLS cases.
15739         (arc_output_pic_addr_const): Print TLS unspecs.
15740         (prepare_pic_move): New function, replaces emit_pic_move.
15741         (arc_legitimate_constant_p): Handle TLS unspecs.
15742         (arc_legitimate_address_p): Likewise.
15743         (arc_rewrite_small_data_p): Use assert for TLS constants.
15744         (prepare_move_operands): Use prepare_pic_move.
15745         (arc_legitimize_address): Legitimize tls addresses.
15746         (arc_epilogue_uses): Check for arc_tp_regno.
15747         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
15748         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
15749         Define.
15750         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
15751         Likewise.
15752         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
15753         %(arc_tls_extra_start_spec).
15754         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
15755         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
15756         (EH_USES): Define.
15757         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
15758         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
15759         (UNSPEC_TLS_OFF): Add.
15760         (R10_REG): Define.
15761         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
15762         (get_thread_pointersi): New patterns.
15763         * config/arc/arc.opt (mtp-regno): New option.
15764         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
15765         (move_dest_operand): Likewise.
15766         * configure: Regenerate.
15767         * configure.ac: Add arc*-*-* case to test for tls.
15768         * doc/invoke.texi (ARC options): Document mtp-regno.
15770 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
15772         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
15773         the new ARC HS SIMD instructions.
15774         (arc_preferred_simd_mode): New function.
15775         (arc_autovectorize_vector_sizes): Likewise.
15776         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
15777         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15778         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
15779         (arc_init_builtins): Add new SIMD builtin types.
15780         (arc_split_move): Handle 64 bit vector moves.
15781         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
15782         (TARGET_PLUS_QMACW): Define.
15783         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
15784         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
15785         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
15786         (VSUBADD4H): New builtins.
15787         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
15788         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
15790 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
15791             Matthias Klose  <doko@debian.org>
15793         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
15795 2016-04-28  Richard Biener  <rguenther@suse.de>
15797         PR middle-end/70777
15798         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
15799         canonicalization.
15801 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
15803         * common/config/sh/sh-common.c: Remove SH5 support.
15804         * config/sh/constraints.md: Likewise.
15805         * config/sh/config/sh/elf.h: Likewise.
15806         * config/sh/linux.h: Likewise.
15807         * config/sh/netbsd-elf.h: Likewise.
15808         * config/sh/predicates.md: Likewise.
15809         * config/sh/sh-c.c: Likewise.
15810         * config/sh/sh-protos.h: Likewise.
15811         * config/sh/sh.c: Likewise.
15812         * config/sh/sh.h: Likewise.
15813         * config/sh/sh.md: Likewise.
15814         * config/sh/sh.opt: Likewise.
15815         * config/sh/sync.md: Likewise.
15816         * config/sh/sh64.h: Delete.
15817         * config/sh/shmedia.h: Likewise.
15818         * config/sh/shmedia.md: Likewise.
15819         * config/sh/sshmedia.h: Likewise.
15820         * config/sh/t-netbsd-sh5-64: Likewise.
15821         * config/sh/t-sh64: Likewise.
15822         * config/sh/ushmedia.h: Likewise.
15824 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
15826         * config/i386/i386.md (sign_extend to memory peephole2s): Use
15827         general_reg_operand instead of register_operand predicate.
15829 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15831         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
15833 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
15835         * match.pd (A - B > A, A + B < A): New transformations.
15837 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
15839         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
15840         which defaults to true.  Emit an outer pair of parentheses only if
15841         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
15842         don't emit parentheses for the right-hand operand.
15844 2016-04-27  Jeff Law  <law@redhat.com>
15846         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
15848 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15850         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
15851         (altivec_lvx_<mode>_internal): Document.
15852         (altivec_lvx_<mode>_2op): New define_insn.
15853         (altivec_lvx_<mode>_1op): Likewise.
15854         (altivec_lvx_<mode>_2op_si): Likewise.
15855         (altivec_lvx_<mode>_1op_si): Likewise.
15856         (altivec_stvx_<mode>): Remove.
15857         (altivec_stvx_<mode>_internal): Document.
15858         (altivec_stvx_<mode>_2op): New define_insn.
15859         (altivec_stvx_<mode>_1op): Likewise.
15860         (altivec_stvx_<mode>_2op_si): Likewise.
15861         (altivec_stvx_<mode>_1op_si): Likewise.
15862         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15863         Expand vec_ld and vec_st during parsing.
15864         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
15865         changes.
15866         (altivec_expand_stvx_be): Likewise.
15867         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
15868         address-masking behavior in RTL.
15869         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
15870         address-masking behavior in RTL.
15871         (altivec_expand_builtin): Change builtin code arguments for calls
15872         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
15873         (insn_is_swappable_p): Avoid incorrect swap optimization in the
15874         presence of lvx/stvx patterns.
15875         (alignment_with_canonical_addr): New function.
15876         (alignment_mask): Likewise.
15877         (find_alignment_op): Likewise.
15878         (recombine_lvx_pattern): Likewise.
15879         (recombine_stvx_pattern): Likewise.
15880         (recombine_lvx_stvx_patterns): Likewise.
15881         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
15882         stvx patterns from expand.
15883         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
15884         expansions.
15885         (vector_altivec_store_<mode>): Likewise.
15887 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
15889         * config/aarch64/aarch64.md
15890         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
15891         remove the "fp" attributes.
15892         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
15893         add the "simd" attributes.
15894         (*movdf_aarch64): Likewise.
15895         (*movtf_aarch64): Remove the "fp" attributes.
15896         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
15897         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
15899 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15901         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
15902         rtx to rtx_code_label *.
15903         * rtl.h (maybe_set_first_label_num): Likewise.
15905 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15907         * df-core.c (df_add_problem): Make the problem param be const.
15908         (df_remove_problem): Make local "problem" be const.
15909         * df-problems.c (problem_RD): Make const.
15910         (problem_LR): Likewise.
15911         (problem_LIVE): Likewise.
15912         (problem_MIR): Likewise.
15913         (problem_CHAIN): Likewise.
15914         (problem_WORD_LR): Likewise.
15915         (problem_NOTE): Likewise.
15916         (problem_MD): Likewise.
15917         * df-scan.c (problem_SCAN): Likewise.
15918         * df.h (struct df_problem): Make field "dependent_problem" be
15919         const.
15920         (struct dataflow): Likewise for field "problem".
15921         (df_add_problem): Make param const.
15923 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
15925         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
15926         inter-unit moves to/from vector registers are enabled.  Do not disable
15927         for TARGET_MMX.
15929 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15931         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
15932         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
15933         #define to...
15934         (enum df_problem_id): ...this new enum.
15935         (struct df_problem): Convert field "id" from "int" to
15936         enum df_problem_id.
15938 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
15940         * rtl.def: Update comment for "things in the instruction chain" to
15941         reflect the removal of the leading "i" field for INSN_UID in
15942         r210360.  Fix bogus apostrophe.
15944 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
15946         * config/i386/i386.md
15947         (lea arith with mem operand + setcc peephole2): Set operator mode.
15949 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
15951         PR target/70155
15952         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
15953         (dimode_scalar_to_vector_candidate_p): This.
15954         (timode_scalar_to_vector_candidate_p): New function.
15955         (scalar_to_vector_candidate_p): Likewise.
15956         (timode_check_non_convertible_regs): Likewise.
15957         (timode_remove_non_convertible_regs): Likewise.
15958         (remove_non_convertible_regs): Likewise.
15959         (remove_non_convertible_regs): Renamed to ...
15960         (dimode_remove_non_convertible_regs): This.
15961         (scalar_chain::~scalar_chain): Make it virtual.
15962         (scalar_chain::compute_convert_gain): Make it pure virtual.
15963         (scalar_chain::mark_dual_mode_def): Likewise.
15964         (scalar_chain::convert_insn): Likewise.
15965         (scalar_chain::convert_registers): Likewise.
15966         (scalar_chain::add_to_queue): Make it protected.
15967         (scalar_chain::emit_conversion_insns): Likewise.
15968         (scalar_chain::replace_with_subreg): Likewise.
15969         (scalar_chain::replace_with_subreg_in_insn): Likewise.
15970         (scalar_chain::convert_op): Likewise.
15971         (scalar_chain::convert_reg): Likewise.
15972         (scalar_chain::make_vector_copies): Likewise.
15973         (scalar_chain::convert_registers): New pure virtual function.
15974         (class dimode_scalar_chain): New class.
15975         (class timode_scalar_chain): Likewise.
15976         (scalar_chain::mark_dual_mode_def): Renamed to ...
15977         (dimode_scalar_chain::mark_dual_mode_def): This.
15978         (timode_scalar_chain::mark_dual_mode_def): New function.
15979         (timode_scalar_chain::convert_insn): Likewise.
15980         (dimode_scalar_chain::convert_registers): Likewise.
15981         (scalar_chain::compute_convert_gain): Renamed to ...
15982         (dimode_scalar_chain::compute_convert_gain): This.
15983         (scalar_chain::replace_with_subreg): Renamed to ...
15984         (dimode_scalar_chain::replace_with_subreg): This.
15985         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
15986         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
15987         (scalar_chain::make_vector_copies): Renamed to ...
15988         (dimode_scalar_chain::make_vector_copies): This.
15989         (scalar_chain::convert_reg): Renamed to ...
15990         (dimode_scalar_chain::convert_reg ): This.
15991         (scalar_chain::convert_op): Renamed to ...
15992         (dimode_scalar_chain::convert_op): This.
15993         (scalar_chain::convert_insn): Renamed to ...
15994         (dimode_scalar_chain::convert_insn): This.
15995         (scalar_chain::convert): Call convert_registers.
15996         (convert_scalars_to_vector): Change to scalar_chain pointer to
15997         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
15998         in 32-bit mode.  Delete scalar_chain pointer.  Call
15999         free_dominance_info in 64-bit mode.
16000         (pass_stv::gate): Remove TARGET_64BIT check.
16001         (ix86_option_override): Put the 64-bit STV pass before the CSE
16002         pass.
16004 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
16006         * dwarf2out.h (struct dw_loc_descr_node): Remove the
16007         dw_loc_frame_offset field.
16008         * dwarf2out.c (new_loc_descr): Likewise.
16009         (resolve_args_picking_1): Turn the VISITED hash set into a
16010         FRAME_OFFSET hash map. Use it to associate a frame offset to
16011         visited nodes. Remove uses of the CHECKING_P macro.
16012         (resolve_args_picking): Update call to resolve_args_picking_1.
16014 2016-04-27  Martin Liska  <mliska@suse.cz>
16016         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
16017         (free_loop_data): Release vuses of groups.
16019 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
16021         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
16022         instead of redundant use_id and boolean have_use_for.
16023         (struct iv_use): Change sub_id into group_id.  Remove field next.
16024         Move fields: related_cands, n_map_members, cost_map and selected
16025         to ...
16026         (struct iv_group): ... here.  New structure.
16027         (struct iv_common_cand): Use structure declaration directly.
16028         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
16029         (MAX_CONSIDERED_USES): Rename macro to ...
16030         (MAX_CONSIDERED_GROUPS): ... here.
16031         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
16032         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
16033         (dump_uses): Rename to ...
16034         (dump_groups): ... here.  Update all uses.
16035         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
16036         (find_induction_variables): Refactor format of dump information.
16037         (record_sub_use): Delete.
16038         (record_use): Update all uses.
16039         (record_group): New function.
16040         (record_group_use, find_interesting_uses_op): Call above functions.
16041         Update all uses.
16042         (find_interesting_uses_cond): Ditto.
16043         (group_compare_offset): New function.
16044         (split_all_small_groups): Rename to ...
16045         (split_small_address_groups_p): ... here.  Update all uses.
16046         (split_address_groups):  Update all uses.
16047         (find_interesting_uses): Refactor format of dump information.
16048         (add_candidate_1): Update all uses.  Remove redundant check on iv,
16049         base and step.
16050         (add_candidate, record_common_cand): Remove redundant assert.
16051         (add_iv_candidate_for_biv): Update use.
16052         (add_iv_candidate_derived_from_uses): Update all uses.
16053         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
16054         (alloc_use_cost_map): Ditto.
16055         (set_use_iv_cost, get_use_iv_cost): Rename to ...
16056         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
16057         (determine_use_iv_cost_generic): Ditto.
16058         (determine_group_iv_cost_generic): Ditto.
16059         (determine_use_iv_cost_address): Ditto.
16060         (determine_group_iv_cost_address): Ditto.
16061         (determine_use_iv_cost_condition): Ditto.
16062         (determine_group_iv_cost_cond): Ditto.
16063         (determine_use_iv_cost): Ditto.
16064         (determine_group_iv_cost): Ditto.
16065         (set_autoinc_for_original_candidates): Update all uses.
16066         (find_iv_candidates): Update all uses.  Refactor dump information.
16067         (determine_use_iv_costs): Ditto.
16068         (determine_iv_costs): Ditto.
16069         (iv_ca_cand_for_use): Rename to ...
16070         (iv_ca_cand_for_group): ... here.  Update all uses.
16071         (iv_ca_add_use, iv_ca_add_group): Ditto.
16072         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
16073         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
16074         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
16075         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
16076         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
16077         (create_new_iv, adjust_iv_update_pos): Ditto.
16078         (rewrite_use_address): Delete.
16079         (rewrite_use_address_1): Rename to ...
16080         (rewrite_use_address): ... here.
16081         (rewrite_use_compare): Update all uses.
16082         (rewrite_use): Delete.
16083         (rewrite_uses): Rename to ...
16084         (rewrite_groups): ... here.  Update all uses.
16085         (remove_unused_ivs, free_loop_data): Update all uses.
16086         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
16088 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16090         * rtlanal.c (nonzero_bits1): Convert preprocessor check
16091         for WORD_REGISTER_OPERATIONS to runtime check.
16093 2016-04-27  Richard Biener  <rguenther@suse.de>
16095         PR ipa/70760
16096         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
16097         aggregate_value_p to determine if a function result is
16098         returned by reference.
16099         (ipa_pta_execute): Functions having their address taken are
16100         not automatically nonlocal.
16102 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16104         PR sanitizer/70683
16105         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
16106         * fold-const.c (operand_equal_p): If flag_checking and
16107         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
16108         and if it returns non-zero, assert iterative_hash_expr on both
16109         args is the same.
16111 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16113         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
16115 2016-04-27  Nick Clifton  <nickc@redhat.com>
16117         PR middle-end/49889
16118         * varasm.c (merge_weak): Generate an error if an attempt is made
16119         to convert a non-weak static function into a weak, public function.
16121 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16123         * params.def (MAX_PARTITION_SIZE): New param.
16124         * doc/invoke.texi: Document lto-max-partition.
16126 2016-04-27  Richard Biener  <rguenther@suse.de>
16128         PR ipa/70785
16129         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
16130         function cummulating used_from_other_partition, externally_visible
16131         and force_output from aliases.
16132         (refered_from_nonlocal_var): Likewise.
16133         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
16134         node flags properly.
16136 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
16138         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
16139         (-Wmemset-elt-size): New item.
16141 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
16143         PR ada/70759
16144         * stor-layout.h (internal_reference_types): Delete.
16145         * stor-layout.c (reference_types_internal): Likewise.
16146         (internal_reference_types): Likewise.
16147         (layout_type) <REFERENCE_TYPE>: Adjust.
16149 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
16151         PR sanitizer/70683
16152         * tree.h (inchash::add_expr): Add FLAGS argument.
16153         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
16154         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
16155         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
16156         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
16157         if swap_tree_comparison (code) is smaller than code, hash that
16158         and arguments in the other order.  Hash CONVERT_EXPR the same
16159         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
16160         of ADDR_EXPR of decl as the decl itself.  Add or remove
16161         OEP_ADDRESS_OF from recursive flags as needed.  For
16162         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
16163         operands commutatively and only the third one normally.
16164         For internal CALL_EXPR hash in CALL_EXPR_IFN.
16166 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16168         * config/rtems.h (LIB_SPEC): Add -latomic.
16170 2016-04-27  Joel Sherrill  <joel@rtems.org>
16172         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
16173         xilink.ld and flags not relevant to RTEMS.
16175 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16177         * toplev.c (backend_init_target): Avoid calling init_reload when using
16178         LRA.
16180 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16182         * reorg.c (try_merge_delay_insns): Declare i and j inside the
16183         for loops rather than one for the whole function.
16185 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16187         * match.pd (X + CST CMP X): New transformation.
16189 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
16191         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
16192         * fold-const.c (fold_binary_loc): Remove 2 transformations
16193         superseded by match.pd.
16194         * match.pd (x+x -> x*2): Generalize to integers.
16196 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
16198         * config/i386/i386.md (operation on memory peephole): Duplicate an
16199         existing peephole and adapt it to match lea rather than an operation
16200         that clobbers CC.
16202         PR rtl-optimization/57193
16203         * opts.c (default_options_table): Add OPT_frename_registers at -O2
16204         and above.
16205         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
16207 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16209         * tree-if-conv.c (any_pred_load_store): New static variable.
16210         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
16211         any_pred_load_store instead of and_mask_load_store.
16212         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
16213         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
16214         (combine_blocks, tree_if_conversion): Ditto.
16216 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
16218         PR tree-optimization/70771
16219         PR tree-optimization/70775
16220         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
16221         virtual PHI nodes.  Delete parameter.
16222         (if_convertible_loop_p_1): Delete argument to above function.
16223         (predicate_all_scalar_phis): Delete code handling single-argument
16224         PHIs.
16225         (tree_if_conversion): Mark and update virtual SSA.
16227 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16229         PR target/61821
16230         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
16231         (x86_elf_aligned_common): Rename to ...
16232         (x86_elf_aligned_decl_common): ... this.
16233         Add decl arg.  Switch to .lbss for largecomm object.  Use
16234         LARGECOMM_SECTION_ASM_OP.
16235         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
16236         renaming.
16237         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
16238         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
16239         Pass new decl arg.
16240         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16241         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
16243 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16245         PR target/59407
16246         * config/i386/i386.c (SECTION_LARGE): Define.
16247         (x86_64_elf_select_section): Set it for large data/bss sections.
16248         Only clear SECTION_WRITE for .lrodata.
16249         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
16250         data/bss sections.
16251         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
16252         * varasm.c (default_elf_asm_named_section): Grow flagchars.
16253         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
16254         SECTION_MACH_DEP.
16255         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
16256         * doc/tm.texi: Regenerate.
16258 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
16260         PR bootstrap/70704
16261         * configure.ac (--enable-checking): Document extra flag, for
16262         non-release builds default to --enable-checking=yes,extra.
16263         If misc checking and extra checking, define CHECKING_P to 2 instead
16264         of 1.
16265         * common.opt (fchecking=): Add.
16266         * doc/invoke.texi (-fchecking=): Document.
16267         * doc/install.texi: Document --enable-checking changes.
16268         * configure: Regenerated.
16269         * config.in: Regenerated.
16271 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16273         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
16274         attribute instead of which_alternative.
16275         * config/i386/sse.md (*mov<mode>_internal): Ditto.
16276         Use EXT_REX_SSE_REG_P where appropriate.
16278 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16280         * config/i386/predicates.md (const0_operand): Do not match
16281         const_wide_int code.
16282         (const1_operand): Ditto.
16284 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16286         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
16287         for SSE constm1 operands and TARGET_AVX512VL.
16288         (*movti_internal): Ditto.
16289         (*mov<mode>_or): Use constm1_operand predicate.
16290         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
16291         for SSE vector_all_ones operands and TARGET_AVX512VL.
16292         * config/i386/predicates.md (constm1_operand): New predicate.
16293         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
16294         emission of constant -1 load.
16296 2016-04-25  Jason Merrill  <jason@redhat.com>
16298         * gdbinit.in: Skip is-a.h.
16300         * attribs.c (register_scoped_attributes): Fix logic.
16301         * attribs.h: Declare register_scoped_attributes.
16303 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16305         * config/rs6000/rs6000-builtin.def: Correct pasto error for
16306         stxvd2x and stxvw4x built-in functions.
16308 2016-04-25  DJ Delorie  <dj@redhat.com>
16310         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
16311         (ashrhi3): Likewise.
16312         (lshrhi3): Likewise.
16314 2016-04-25  Richard Biener  <rguenther@suse.de>
16316         PR tree-optimization/70780
16317         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
16318         wasn't visited yet.
16319         (compute_antic): Mark blocks with abnormal preds as visited as
16320         they have a final empty antic-in solution already.
16322 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16324         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
16326 2016-04-25  Michael Collison  <michael.collison@linaro.org>
16328         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
16329         mode is VQI to improve mixed mode vectorization.
16330         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
16331         define_insn to match low half of signed vaddw.
16332         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
16333         define_insn to match high half of signed vaddw.
16334         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
16335         define_insn to match low half of unsigned vaddw.
16336         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
16337         define_insn to match high half of unsigned vaddw.
16338         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
16339         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16340         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
16341         for new function.
16342         (arm_simd_check_vect_par_cnst_half_p): Likewise.
16343         * config/arm/predicates.md (vect_par_constant_high): Support
16344         big endian and simplify by calling
16345         arm_simd_check_vect_par_cnst_half
16346         (vect_par_constant_low): Likewise.
16348 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
16350         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
16351         predicate for operand 2.
16353 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
16354             H.J. Lu  <hongjiu.lu@intel.com>
16356         * config/i386/i386-protos.h (standard_sse_constant_p): Add
16357         machine_mode argument.
16358         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
16359         constm1_rtx operands.  For VOIDmode constants, get mode from
16360         pred_mode.  Check mode size if the mode is supported by ABI.
16361         (standard_sse_constant_opcode): Do not use standard_constant_p.
16362         Strictly check ABI support for all-ones operands.
16363         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
16364         immediates. Update calls to standard_sse_constant_p.
16365         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
16366         (ix86_rtx_costs): Ditto.
16367         * config/i386/i386.md (*movxi_internal_avx512f): Use
16368         nonimmediate_or_sse_const_operand instead of vector_move_operand.
16369         Use (v,BC) alternative instead of (v,C). Use register_operand
16370         checks instead of MEM_P.
16371         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
16372         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
16373         isa attribute.  Use register_operand checks instead of MEM_P.
16374         (*movti_internal): Use nonimmediate_or_sse_const_operand for
16375         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
16376         alternative and corresponding sse2 isa attribute.
16377         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
16378         to standard_sse_constant_p.
16379         (FP constant splitters): Ditto.
16380         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
16381         (C): Ditto.
16382         * config/i386/predicates.md (constm1_operand): Remove.
16383         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
16384         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
16385         vector_all_ones_operand instead of constm1_operand.
16387 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16389         * print-rtl.c (print_rtx_insn_vec): New function.
16390         * print-rtl.h: New prototype.
16391         * store-motion.c (struct st_expr): Make avail_stores a vector.
16392         (st_expr_entry): Adjust.
16393         (free_st_expr_entry): Likewise.
16394         (print_store_motion_mems): Likewise.
16395         (find_moveable_store): Likewise.
16396         (compute_store_table): Likewise.
16397         (delete_store): Likewise.
16398         (build_store_vectors): Likewise.
16400 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16402         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
16404 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16406         * vec.h (vec_safe_contains): New function.
16407         (vec::contains): Likewise.
16408         (vec::begin): Likewise.
16409         (vec::end): Likewise.
16411 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
16413         PR sanitizer/70712
16414         * cfgexpand.c (expand_stack_vars): Fix typo.
16416 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16418         * system.h (list, map, set, vector): Include conditionally.
16419         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
16420         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
16421         * ipa-icf.c (INCLUDE_LIST): Define.
16422         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
16423         * config/sh/sh.c (INCLUDE_VECTOR): Define.
16424         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
16425         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
16426         * cp/logic.cc (INCLUDE_LIST): Define.
16427         * fortran/trans-common.c (INCLUDE_MAP): Define.
16429 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16431         * auto-profile.c: Remove <string.h> include.
16432         * ipa-icf-gimple.c: Remove <list> include.
16433         * diagnostic.c: Remove <new> include.
16434         * genmatch.c: Likewise.
16435         * pretty-print.c: Likewise.
16436         * toplev.c: Likewise
16437         * c/c-objc-common.c: Likewise.
16438         * cp/error.c: Likewise.
16439         * fortran/error.c: Likewise.
16441 2016-04-22  Richard Biener  <rguenther@suse.de>
16443         * lto-streamer-in.c (input_ssa_names): Do not allocate
16444         GIMPLE_NOP for all SSA names.
16445         * lto-streamer-out.c (output_ssa_names): Do not output
16446         SSA names that should have been released.
16448 2016-04-22  Richard Biener  <rguenther@suse.de>
16450         PR tree-optimization/70740
16451         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
16452         VDEF.
16454 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
16456         PR target/70750
16457         * config/i386/predicates.md (call_insn_operand): Replace
16458         sibcall_memory_operand with memory_operand.
16460 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
16462         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
16463         has_single_use() tests.
16464         (register_edge_assert_for_1): Likewise.
16465         (find_assert_locations_1): Check the liveness bitmap instead of
16466         checking has_single_use().
16468 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
16470         PR target/70728
16471         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
16472         Extract AVX-512BW constraint from AVX.
16474 2016-04-21  Richard Biener  <rguenther@suse.de>
16476         PR tree-optimization/70725
16477         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
16478         for phi_convertible_by_degenerating_args.
16479         (predicate_all_scalar_phis): Handle single-argument PHIs.
16481 2016-04-21  Richard Biener  <rguenther@suse.de>
16483         PR middle-end/70747
16484         * fold-const.c (fold_comparison): Return properly typed
16485         constant boolean.
16487 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
16489         PR tree-optimization/70715
16490         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
16491         after expanding BASE using expand_simple_operations.
16493 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16495         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
16496         New transformations.
16498 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
16500         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
16502 2016-04-20  Jan Hubicka  <jh@suse.cz>
16504         * ipa-inline.c (can_inline_edge_p): Pass caller info to
16505         ultiimate_alias_target.
16506         (update_callee_keys): Likewise.
16507         (lookup_recursive_calls): Likewise.
16508         (speculation_useful_p): Likewise.
16510 2016-04-20  Jan Hubicka  <jh@suse.cz>
16512         PR ipa/70018
16513         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
16514         (set_nothrow_flag_1): ... this; handle interposition correctly;
16515         recurse on aliases and thunks.
16516         (cgraph_node::set_nothrow_flag): New.
16517         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
16518         functions compiled with non-call exceptions that binds to current
16519         def.
16520         (propagate_nothrow): Be safe WRT interposition.
16521         * cgraph.h (set_nothrow_flag): Update prototype.
16523 2016-04-18  Jan Hubicka  <jh@suse.cz>
16525         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
16526         max_loop_iterations_int.
16527         (tree_unswitch_outer_loop): Likewise.
16529 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16531         PR tree-optimization/69489
16532         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
16533         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
16534         Revise dump message.
16535         (if_convertible_bb_p): Remove check on edge count of basic block's
16536         predecessors.
16538 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16540         PR tree-optimization/56625
16541         PR tree-optimization/69489
16542         * tree-data-ref.h (DR_INNERMOST): New macro.
16543         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
16544         hashing struct innermost_loop_behavior.
16545         (ref_DR_map): Remove.
16546         (innermost_DR_map): New map.
16547         (baseref_DR_map): Revise comment.
16548         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
16549         to innermost_DR_map accroding to its innermost loop behavior.
16550         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
16551         to its innermost loop behavior.
16552         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
16553         Add initialization for innermost_DR_map.  Record memory reference
16554         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
16555         have innermost loop behavior.
16556         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
16557         innermost_DR_map.
16559 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
16561         * config/i386/i386.md (*lea<mode>_general_1): Rename from
16562         *lea_general_1.  Use explicit SWI12 mode interator.
16563         (*lea<mode>_general_2): Rename from *lea_general_2.
16564         Use explicit SWI12 mode interator.
16565         (*lea<mode>_general_3): Rename from *lea_general_3.
16566         Use explicit SWI12 mode interator.
16567         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
16568         Use explicit SWI12 mode interator.
16569         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
16570         Use explicit SWI48 mode interator.
16572 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16574         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
16575         Short-cut unaligned load and store cases.  Handle all integer
16576         vector modes.
16577         (ix86_expand_vector_move_misalign): Short-cut unaligned load
16578         and store cases.  Call ix86_avx256_split_vector_move_misalign
16579         directly without checking mode class.
16581 2016-04-20  Andrew Pinski  <apinski@cavium.com>
16582             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16584         PR target/64971
16585         * config/aarch64/aarch64.md (sibcall): Force call
16586         address to be DImode for ILP32.
16587         (sibcall_value): Likewise.
16589 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16591         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
16593 2016-04-20  Richard Biener  <rguenther@suse.de>
16595         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
16596         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
16597         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
16598         (maybe_push_res_to_seq): Adjust.
16599         * gimple-fold.c (maybe_build_generic_op): Likewise.
16601 2016-04-20  Marek Polacek  <polacek@redhat.com>
16603         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
16604         rather than true.
16606 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
16608         * config/i386/sse.md (vec_unpacks_lo_hi): Always
16609         use kmovw to support AVX512F target.
16611 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
16613         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
16615 2016-04-20  Marek Polacek  <polacek@redhat.com>
16617         PR tree-optimization/70725
16618         * tree-if-conv.c (is_false_predicate): New function.
16619         (predicate_mem_writes): Use it.
16621 2016-04-20  Richard Biener  <rguenther@suse.de>
16623         PR tree-optimization/70726
16624         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
16625         shift amounts from a pattern stmt operand.
16627 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16629         PR target/70674
16630         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
16631         stack_restore_from_fpr pattern when restoring r15.
16632         (s390_optimize_prologue): Strip away the memory barrier in the
16633         parallel when trying to get rid of restore insns.
16634         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
16635         definition for loading the stack pointer from an FPR.  Compared to
16636         the normal move insn this pattern includes a full memory barrier.
16638 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
16640         PR middle-end/70680
16641         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
16642         implicitly linear or lastprivate iterator on the outer context.
16644 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16646         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
16647         alignment check.
16648         * config/i386/i386.md (ssememalign): Removed.
16649         * config/i386/sse.md: Remove ssememalign attribute from patterns.
16651 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
16653         PR target/69201
16654         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
16655         const short * to __builtin_ia32_loaddquhi512_mask.
16656         (_mm512_maskz_loadu_epi16): Likewise.
16657         (_mm512_mask_storeu_epi16): Pass short * to
16658         __builtin_ia32_storedquhi512_mask.
16659         (_mm512_mask_loadu_epi8): Pass const char * to
16660         __builtin_ia32_loaddquqi512_mask.
16661         (_mm512_maskz_loadu_epi8): Likewise.
16662         (_mm512_mask_storeu_epi8): Pass char * to
16663         __builtin_ia32_storedquqi512_mask.
16664         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
16665         const double * to __builtin_ia32_loadupd512_mask.
16666         (_mm512_mask_loadu_pd): Likewise.
16667         (_mm512_maskz_loadu_pd): Likewise.
16668         (_mm512_storeu_pd): Pass double * to
16669         __builtin_ia32_storeupd512_mask.
16670         (_mm512_mask_storeu_pd): Likewise.
16671         (_mm512_loadu_ps): Pass const float * to
16672         __builtin_ia32_loadups512_mask.
16673         (_mm512_mask_loadu_ps): Likewise.
16674         (_mm512_maskz_loadu_ps): Likewise.
16675         (_mm512_storeu_ps): Pass float * to
16676         __builtin_ia32_storeups512_mask.
16677         (_mm512_mask_storeu_ps): Likewise.
16678         (_mm512_mask_loadu_epi64): Pass const long long * to
16679         __builtin_ia32_loaddqudi512_mask.
16680         (_mm512_maskz_loadu_epi64): Likewise.
16681         (_mm512_mask_storeu_epi64): Pass long long *
16682         to __builtin_ia32_storedqudi512_mask.
16683         (_mm512_loadu_si512): Pass const int * to
16684         __builtin_ia32_loaddqusi512_mask.
16685         (_mm512_mask_loadu_epi32): Likewise.
16686         (_mm512_maskz_loadu_epi32): Likewise.
16687         (_mm512_storeu_si512): Pass int * to
16688         __builtin_ia32_storedqusi512_mask.
16689         (_mm512_mask_storeu_epi32): Likewise.
16690         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
16691         char * to __builtin_ia32_storedquqi256_mask.
16692         (_mm_mask_storeu_epi8): Likewise.
16693         (_mm256_mask_loadu_epi16): Pass const short * to
16694         __builtin_ia32_loaddquhi256_mask.
16695         (_mm256_maskz_loadu_epi16): Likewise.
16696         (_mm_mask_loadu_epi16): Pass const short * to
16697         __builtin_ia32_loaddquhi128_mask.
16698         (_mm_maskz_loadu_epi16): Likewise.
16699         (_mm256_mask_loadu_epi8): Pass const char * to
16700         __builtin_ia32_loaddquqi256_mask.
16701         (_mm256_maskz_loadu_epi8): Likewise.
16702         (_mm_mask_loadu_epi8): Pass const char * to
16703         __builtin_ia32_loaddquqi128_mask.
16704         (_mm_maskz_loadu_epi8): Likewise.
16705         (_mm256_mask_storeu_epi16): Pass short * to.
16706         __builtin_ia32_storedquhi256_mask.
16707         (_mm_mask_storeu_epi16): Pass short * to.
16708         __builtin_ia32_storedquhi128_mask.
16709         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
16710         const double * to __builtin_ia32_loadupd256_mask.
16711         (_mm256_maskz_loadu_pd): Likewise.
16712         (_mm_mask_loadu_pd): Pass onst double * to
16713         __builtin_ia32_loadupd128_mask.
16714         (_mm_maskz_loadu_pd): Likewise.
16715         (_mm256_mask_storeu_pd): Pass double * to
16716         __builtin_ia32_storeupd256_mask.
16717         (_mm_mask_storeu_pd): Pass double * to
16718         __builtin_ia32_storeupd128_mask.
16719         (_mm256_mask_loadu_ps): Pass const float * to
16720         __builtin_ia32_loadups256_mask.
16721         (_mm256_maskz_loadu_ps): Likewise.
16722         (_mm_mask_loadu_ps): Pass const float * to
16723         __builtin_ia32_loadups128_mask.
16724         (_mm_maskz_loadu_ps): Likewise.
16725         (_mm256_mask_storeu_ps): Pass float * to
16726         __builtin_ia32_storeups256_mask.
16727         (_mm_mask_storeu_ps): ass float * to
16728         __builtin_ia32_storeups128_mask.
16729         (_mm256_mask_loadu_epi64): Pass const long long * to
16730         __builtin_ia32_loaddqudi256_mask.
16731         (_mm256_maskz_loadu_epi64): Likewise.
16732         (_mm_mask_loadu_epi64): Pass const long long * to
16733         __builtin_ia32_loaddqudi128_mask.
16734         (_mm_maskz_loadu_epi64): Likewise.
16735         (_mm256_mask_storeu_epi64): Pass long long * to
16736         __builtin_ia32_storedqudi256_mask.
16737         (_mm_mask_storeu_epi64): Pass long long * to
16738         __builtin_ia32_storedqudi128_mask.
16739         (_mm256_mask_loadu_epi32): Pass const int * to
16740         __builtin_ia32_loaddqusi256_mask.
16741         (_mm256_maskz_loadu_epi32): Likewise.
16742         (_mm_mask_loadu_epi32): Pass const int * to
16743         __builtin_ia32_loaddqusi128_mask.
16744         (_mm_maskz_loadu_epi32): Likewise.
16745         (_mm256_mask_storeu_epi32): Pass int * to
16746         __builtin_ia32_storedqusi256_mask.
16747         (_mm_mask_storeu_epi32): Pass int * to
16748         __builtin_ia32_storedqusi128_mask.
16749         * config/i386/i386-builtin-types.def (PCSHORT): New.
16750         (PINT64): Likewise.
16751         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
16752         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
16753         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
16754         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
16755         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
16756         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
16757         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
16758         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
16759         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
16760         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
16761         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
16762         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
16763         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
16764         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
16765         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
16766         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
16767         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
16768         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
16769         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
16770         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
16771         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
16772         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
16773         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
16774         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
16775         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
16776         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
16777         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
16778         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
16779         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
16780         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
16781         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
16782         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
16783         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
16784         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
16785         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
16786         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
16787         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
16788         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
16789         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
16790         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
16791         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
16792         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
16793         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
16794         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
16795         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
16796         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
16797         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
16798         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
16799         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
16800         use UNSPEC_STOREU.
16801         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
16802         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
16803         load nor store.
16804         (ix86_expand_vector_move_misalign): Likewise.
16805         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
16806         to scalar function prototype for unaligned load/store builtins.
16807         (ix86_expand_special_args_builtin): Updated.
16808         * config/i386/sse.md (UNSPEC_LOADU): Removed.
16809         (UNSPEC_STOREU): Likewise.
16810         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
16811         (VI_ULOADSTORE_F_AVX512VL): Likewise.
16812         (ssescalarsize): Handle V4TI, V2TI and V1TI.
16813         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16814         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
16815         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
16816         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
16817         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
16818         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
16819         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
16820         (<avx512>_storedqu<mode>_mask): Likewise.
16821         (*sse4_2_pcmpestr_unaligned): Likewise.
16822         (*sse4_2_pcmpistr_unaligned): Likewise.
16823         (*mov<mode>_internal): Renamed to ...
16824         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
16825         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
16826         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
16827         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
16829 2016-04-19  Richard Biener  <rguenther@suse.de>
16831         PR tree-optimization/70171
16832         * tree-ssa-phiprop.c: Include stor-layout.h.
16833         (phiprop_insert_phi): Handle the aggregate copy case.
16834         (propagate_with_phi): Likewise.
16836 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
16838         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
16839         instead of simplify_gen_subreg (... , 0).
16840         (ix86_delegitimize_address): Ditto.
16841         (ix86_split_divmod): Ditto.
16842         (ix86_split_copysign_const): Ditto.
16843         (ix86_split_copysign_var): Ditto.
16844         (ix86_expand_args_builtin): Ditto.
16845         (ix86_expand_round_builtin): Ditto.
16846         (ix86_expand_special_args_builtin): Ditto.
16847         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
16848         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
16849         (udivmodqi4): Ditto.
16850         (absneg splitters): Ditto.
16851         (*jcc_bt<mode>_1): Ditto.
16853 2016-04-19  Richard Biener  <rguenther@suse.de>
16855         PR tree-optimization/70724
16856         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
16857         restoring out from ...
16858         (free_scc_vn): ... here.
16859         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
16860         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
16861         tail merging.
16862         (pass_fre::execute): Restore SSA info.
16864 2016-04-19  Richard Biener  <rguenther@suse.de>
16866         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
16867         * gimple-walk.c (walk_gimple_op): Initialize it.
16868         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
16869         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
16870         remapping SSA names of defs.
16871         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
16872         adjustment.
16874 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
16876         PR middle-end/70689
16877         * lra-constraints.c (equiv_substition_p): New.
16878         (process_alt_operands): Use it.
16879         (swap_operands): Swap it.
16880         (curr_insn_transform): Update it.
16882 2016-04-18  Michael Matz  <matz@suse.de>
16884         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
16885         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
16886         * tree-core.h (tree_type_common.align): Use bit-field.
16887         (tree_type_common.spare): New.
16888         (tree_decl_common.off_align): Make smaller.
16889         (tree_decl_common.align): Use bit-field.
16891         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
16892         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
16893         (scan_sharing_clauses): Ditto.
16894         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16895         (omp_finish_file): Ditto.
16896         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
16897         (layout_decl): Ditto.
16898         (relayout_decl): Ditto.
16899         (finalize_record_size): Use SET_TYPE_ALIGN.
16900         (finalize_type_size): Ditto.
16901         (finish_builtin_struct): Ditto.
16902         (layout_type): Ditto.
16903         (initialize_sizetypes): Ditto.
16904         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
16905         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
16906         (lookup_field_for_decl): Use SET_DECL_ALIGN.
16907         (get_chain_field): Ditto.
16908         (get_trampoline_type): Ditto.
16909         (get_nl_goto_field): Ditto.
16910         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16911         SET_DECL_ALIGN.
16912         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
16913         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
16914         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
16915         (build_qualified_type): Use SET_TYPE_ALIGN.
16916         (build_aligned_type, build_range_type_1): Ditto.
16917         (build_atomic_base): Ditto.
16918         (build_common_tree_nodes): Ditto.
16919         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
16920         (expand_one_stack_var_at): Ditto.
16921         * coverage.c (build_var): Use SET_DECL_ALIGN.
16922         * except.c (init_eh): Ditto.
16923         * function.c (assign_parm_setup_block): Ditto.
16924         * symtab.c (increase_alignment_1): Ditto.
16925         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
16926         * tree-vect-stmts.c (ensure_base_align): Ditto.
16927         * varasm.c (align_variable): Ditto.
16928         (assemble_variable): Ditto.
16929         (build_constant_desc): Ditto.
16930         (output_constant_def_contents): Ditto.
16932         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
16933         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
16934         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
16935         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
16936         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
16938 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
16940         PR target/70708
16941         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
16942         replace %vmovsd with "%vmovq".
16943         (vec_concatv2df): Likewise.
16945 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
16947         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
16948         (*vec_extractv2si_0): Ditto.
16949         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
16950         (zero_extended_scalar_load_operand splitters): Ditto.
16951         (vec_extract splitters): Ditto.
16952         (*vec_extractv4si_0_zext): Ditto.
16953         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
16954         and lowpart_subreg.
16955         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
16956         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
16957         (*sse4_1_extractps): Use lowpart_subreg.
16958         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
16960 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16962         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
16963         gld requirements.
16964         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
16965         Mention Solaris 11 packaging changes.
16966         Update gas and gld requirements.
16967         Remove reference to pre-Solaris 10 bug.
16968         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
16969         systems and bugs.
16970         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
16971         with cc.
16973 2016-04-17  Jan Hubicka  <jh@suse.cz>
16975         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
16976         max_loop_iterations_int.
16978 2016-04-18  Richard Biener  <rguenther@suse.de>
16980         PR tree-optimization/43434
16981         * tree-ssa-structalias.c (struct vls_data): New.
16982         (visit_loadstore): Handle all pointer-based accesses.
16983         (compute_dependence_clique): Compute a bitmap of restrict tags
16984         assigned bases and pass it to visit_loadstore.
16986 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
16988         PR target/70711
16989         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
16990         armv8.1-a and armv8.1-a+crc.
16992 2016-04-18  Richard Biener  <rguenther@suse.de>
16994         PR tree-optimization/70701
16995         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
16996         references after translating through a memcpy.
16998 2016-04-18  Richard Biener  <rguenther@suse.de>
17000         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
17001         (compute_antic): ... here.  For partial antic use regular
17002         postorder and scrap iteration.
17003         (compute_partial_antic_aux): Remove unused return value.
17004         (init_pre): Do not allocate postorder.
17005         (fini_pre): Do not free postorder.
17007 2016-04-18  Richard Biener  <rguenther@suse.de>
17009         PR middle-end/37870
17010         * expmed.c (extract_bit_field_1): Remove broken case
17011         using a wider MODE_INT mode.
17013 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
17015         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
17016         unless compiling with at least GCC-4.8.
17018 2016-04-17  Jan Hubicka  <jh@suse.cz>
17020         PR bootstrap/70706
17021         * graphite.c (graphite_finalize): Update call to
17022         tree_estimate_probability.
17023         * predict.h (tree_estimate_probability): Update prototype.
17025 2016-04-17  Jan Hubicka  <jh@suse.cz>
17027         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
17028         (tree_estimate_probability): Likewise.
17029         (pass_profile::execute): Update.
17030         (report_predictor_hitrates): New function.
17031         * profile.c (compute_branch_probabilities): Use it.
17032         * predict.h (report_predictor_hitrates): Declare.
17034 2016-04-17  Jan Hubicka  <jh@suse.cz>
17036         PR ipa/70018
17037         * cgraph.h (cgraph_node::set_const_flag,
17038         cgraph_node::set_pure_flag): Update prototype to return bool;
17039         update comment.
17040         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
17041         of interposable symbol are interposable, too.
17042         (cgraph_set_const_flag_1): Rename to ...
17043         (set_const_flag_1): ... this one; change to self recursive function
17044         instead of call_for_symbol_thunks_and_aliases. Handle correctly
17045         clearnig the flag in all variants and also virtual thunks of const
17046         functions are pure; track if any change was done.
17047         (cgraph_node::set_const_flag): Update.
17048         (struct set_pure_flag_info): New struct.
17049         (cgraph_set_pure_flag_1): Rename to ...
17050         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
17051         rather than pointer encoded flags; track if any changes was done;
17052         handle correctly clearning flag and setting flag of aliases already
17053         declared const.
17054         (cgraph_node::set_pure_flag): Update.
17055         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
17057 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17059         PR other/70433
17060         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
17061         backslash in label.
17063 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17065         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
17066         '{}<> ' as escape-for-record.
17068 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17070         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
17071         structure.
17073 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17075         PR other/70185
17076         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
17077         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
17078         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
17079         * passes.c (finish_optimization_passes): Only call
17080         finish_graph_dump_file if dfi->graph_dump_initialized.
17081         (execute_function_dump, pass_init_dump_file): Use
17082         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
17084 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17086         PR tree-optimization/70256
17087         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
17088         (debug_varmap): New function.
17090 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17092         PR other/70183
17093         * passes.c (pass_manager::register_pass): Propagate pflags.
17095 2016-04-17  Tom de Vries  <tom@codesourcery.com>
17097         PR other/68875
17098         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
17099         * passes.c (pass_manager::pass_manager): Declare and init p_start in
17100         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
17101         check if it's equal to p_start.
17102         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
17104 2016-04-15  Jan Hubicka  <jh@suse.cz>
17106         PR ipa/70018
17107         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
17108         function does not bind to current def.
17109         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
17110         handle conservatively calls to functions that does not need to bind
17111         to current def.
17112         (check_call): Update call of worse_state.
17113         (ignore_edge_for_nothrow): Update.
17114         (ignore_edge_for_pure_const): Likewise.
17115         (propagate_pure_const): Update calls to worse_state.
17116         (skip_function_for_local_pure_const): Reformat comments.
17118 2016-04-15  Jan Hubicka  <jh@suse.cz>
17120         PR ipa/70018
17121         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
17122         (cgraph_node::function_symbol): Likewise.
17123         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17124         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
17125         (symtab_node::ultimate_alias_target): Add REF parameter.
17126         (symtab_node::binds_to_current_def_p): Declare.
17127         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
17128         (cgraph_node::function_symbol): Likewise.
17129         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17130         (cgraph_node::get_availability): Likewise.
17131         (cgraph_edge::binds_to_current_def_p): New inline function.
17132         (varpool_node::get_availability): Add REF parameter.
17133         (varpool_node::ultimate_alias_target): Likewise.
17134         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
17135         (symtab_node::binds_to_current_def_p): Likewise.
17136         * varpool.c (varpool_node::get_availability): Likewise.
17138 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17140         PR target/70662
17141         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
17142         Fix mode size check.
17144 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17146         * BASE-VER: Set to 7.0.0.
17148 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
17150         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
17152 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17154         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
17155         architecture revisions.
17157 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
17159         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
17160         * config/i386/i386.c (ix86_using_red_zone): No longer static.
17161         * config/i386/i386.md (stack decrement to push peepholes): Guard
17162         with !x86_using_red_zone ().
17164 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
17166         PR c++/70675
17167         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17168         to dump_generic_node.
17169         (NIY): Pass also flags to do_niy.
17171 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
17173         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
17174         (simd_clone_vector_of_formal_parm_types)
17175         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
17176         (simd_clone_mangle, simd_clone_create)
17177         (simd_clone_adjust_return_type, create_tmp_simd_array)
17178         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
17179         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
17180         (ipa_simd_modify_function_body, simd_clone_linear_addend)
17181         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
17182         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
17183         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
17184         * omp-simd-clone.c: ... this new file.
17185         (simd_clone_vector_of_formal_parm_types): Make it static.
17186         * Makefile.in (OBJS): Add omp-simd-clone.o.
17188 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
17190         PR target/70662
17191         * config/i386/sse.md: Use proper memory operand modifiers.
17194 2016-04-15  Richard Biener  <rguenther@suse.de>
17195         Alan Modra  <amodra@gmail.com>
17197         PR tree-optimization/70130
17198         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
17199         when alignment stays not the same and no not use the realign
17200         scheme then.
17202 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17204         PR target/70669
17205         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
17206         direct move handlers for KFmode. Change TFmode handlers test from
17207         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
17209 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
17211         PR c++/70594
17212         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
17213         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
17214         (inlined_polymorphic_ctor_dtor_block_p): Use it.
17215         * tree-ssa-live.c (remove_unused_scope_block_p): When
17216         in_ctor_dtor_block, avoid discarding not just BLOCKs with
17217         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
17218         block_ultimate_origin is FUNCTION_DECL.
17219         (remove_unused_locals): If current_function_decl is
17220         polymorphic_ctor_dtor_p, pass initial true to
17221         remove_unused_scope_block_p' is_ctor_dtor_block.
17223 2016-04-14  Martin Sebor  <msebor@redhat.com>
17225         PR c++/69517
17226         PR c++/70019
17227         PR c++/70588
17228         * doc/extend.texi (Variable Length): Revert.
17230 2016-04-14  Marek Polacek  <polacek@redhat.com>
17231             Jan Hubicka  <hubicka@ucw.cz>
17233         PR c++/70029
17234         * tree.c (verify_type): Disable the canonical type of main variant
17235         check.
17237 2016-04-14  Jason Merrill  <jason@redhat.com>
17239         * cfgexpand.c, expr.c: Revert previous change.
17241 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
17243         PR middle-end/70643
17244         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
17245         when building a mem ref for the incoming reduction variable.
17247 2016-04-14  Richard Biener  <rguenther@suse.de>
17249         PR tree-optimization/70614
17250         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
17251         loop if the evolution dropped to chrec_dont_know.
17252         (interpret_condition_phi): Likewise.
17254 2016-04-14  Richard Biener  <rguenther@suse.de>
17256         PR tree-optimization/70623
17257         * tree-ssa-pre.c (changed_blocks): Make global ...
17258         (compute_antic): ... local here.  Move and fix worklist
17259         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
17260         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
17261         worklist handling, dump when ANTIC_IN changed.
17262         (compute_partial_antic_aux): Remove worklist handling.
17263         (init_pre): Do not compute post dominators.  Add a comment about
17264         the CFG order chosen.
17265         (fini_pre): Do not free post dominators.
17267 2016-04-13  Martin Sebor  <msebor@redhat.com>
17269         PR c++/69517
17270         PR c++/70019
17271         PR c++/70588
17272         * doc/extend.texi (Variable Length): Document C++ specifics.
17274 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17276         PR c++/70641
17277         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
17278         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
17279         eh edges have been purged.
17281         PR c++/70594
17282         * tree-sra.c (create_access_replacement,
17283         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
17284         gets fancy name.
17285         * tree-pretty-print.c (dump_fancy_name): New function.
17286         (dump_decl_name, dump_generic_node): Use it.
17288 2016-04-13  Jason Merrill  <jason@redhat.com>
17290         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
17291         * expr.c (expand_expr_real_1): Likewise.
17293 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
17295         * config/i386/i386.md (kunpckhi): Swap operands.
17296         (kunpcksi): Likewise.
17297         (kunpckdi): Likewise.
17298         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
17299         (vec_pack_trunc_<mode>): Likewise.
17301 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
17303         PR debug/70628
17304         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
17306         PR middle-end/70633
17307         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
17308         gimplification turns some element into non-constant.
17310         PR debug/70628
17311         * rtl.h (convert_memory_address_addr_space_1): New prototype.
17312         * explow.c (convert_memory_address_addr_space_1): No longer static,
17313         add NO_EMIT argument and don't call convert_modes if true, pass
17314         it down recursively, remove break after return.
17315         (convert_memory_address_addr_space): Adjust caller.
17316         * simplify-rtx.c (simplify_unary_operation_1): Call
17317         convert_memory_address_addr_space_1 instead of convert_memory_address,
17318         if it returns NULL, don't simplify.
17320 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
17322         PR target/70630
17323         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
17325 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17327         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17328         Bump the upper SIMDLEN limits, so that if the return type or
17329         characteristic type if the return type is void can be passed in
17330         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
17331         allowed.
17333 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17335         PR target/70640
17336         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
17337         Do not use "=" constraint on an input constraint.
17338         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
17339         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
17340         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
17341         generates (neg (abs ...)) instead of (abs ...).
17343 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17345         PR rtl-optimization/70596
17346         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
17347         just invalidate LRA data and reset them.  Adjust dump wording.
17349 2016-04-12  Martin Liska  <mliska@suse.cz>
17351         Revert
17352         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17354         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17355         estimates here.
17356         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17357         max_loop_iterations_int.
17358         (tree_unswitch_outer_loop): Likewise.
17359         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17360         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17362 2016-04-12  Tom de Vries  <tom@codesourcery.com>
17364         PR tree-optimization/68756
17365         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
17366         instead of new_name.
17368 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
17370         PR tree-optimization/70602
17371         * tree-sra.c (generate_subtree_copies): Don't write anything into
17372         constant pool decls.
17374         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
17375         regardless whether there are depend clauses or not.
17377 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
17379         PR target/70381
17380         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
17381         target attribute and pragma from changing the -mfloat128
17382         and -mfloat128-hardware options.
17384         * doc/extend.texi (Additional Floating Types): Document PowerPC
17385         __float128 restrictions.
17387 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17389         PR target/70133
17390         * config/aarch64/driver-aarch64.c
17391         (aarch64_get_extension_string_for_isa_flags): New.
17392         (arch_extension): Rename to...
17393         (aarch64_arch_extension): ...This.
17394         (ext_to_feat_string): Rename to...
17395         (aarch64_extensions): ...This.
17396         (aarch64_core_data): Keep track of architecture extension flags.
17397         (cpu_data): Rename to...
17398         (aarch64_cpu_data): ...This.
17399         (aarch64_arch_driver_info): Keep track of architecture extension
17400         flags.
17401         (get_arch_name_from_id): Rename to...
17402         (get_arch_from_id): ...This, change return type.
17403         (host_detect_local_cpu): Update and reformat for renames, handle
17404         extensions through common infrastructure.
17406 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17408         PR target/70133
17409         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
17410         track of a canonical flag name.
17411         (all_extensions): Likewise.
17412         (arch_to_arch_name): Also track extension flags enabled by the arch.
17413         (all_architectures): Likewise.
17414         (aarch64_parse_extension): Move to here.
17415         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
17416         rework.
17417         (aarch64_rewrite_selected_cpu): Update for above change.
17418         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
17419         are handled, such that the single explicit value enabled by an
17420         extension is kept seperate from the implicit values it also enables.
17421         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
17422         to here.
17423         (aarch64_parse_extension): New.
17424         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
17425         here to config/aarch64/aarch64-protos.h.
17426         (aarch64_parse_extension): Move from here to
17427         common/config/aarch64/aarch64-common.c.
17428         (aarch64_option_print): Update.
17429         (aarch64_declare_function_name): Likewise.
17430         (aarch64_start_file): Likewise.
17431         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
17432         the canonical flag for extensions.
17433         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
17434         flags.
17436 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
17438         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
17439         AARCH64_FL_CRC.
17441 2016-04-09  Tom de Vries  <tom@codesourcery.com>
17443         PR tree-optimization/68953
17444         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
17445         first to last subscript.
17447 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
17449         PR tree-optimization/70586
17450         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
17451         for any calls.
17453 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
17455         PR lto/70289
17456         PR ipa/70348
17457         PR tree-optimization/70373
17458         PR middle-end/70533
17459         PR middle-end/70534
17460         PR middle-end/70535
17461         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
17462         clauses for acc parallel reductions as necessary.  Error on those
17463         that are private.
17464         * omp-low.c (scan_sharing_clauses): Don't install variables which
17465         are used in acc parallel reductions.
17466         (lower_rec_input_clauses): Remove dead code.
17467         (lower_oacc_reductions): Add support for reference reductions.
17468         (lower_reduction_clauses): Remove dead code.
17469         (lower_omp_target): Don't remap variables appearing in acc parallel
17470         reductions.
17471         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
17473 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
17475         PR middle-end/70593
17476         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
17477         with multiple SSA_NAME defs, force the outputs other than first
17478         to be live before calling live_track_process_def on each output.
17480         PR rtl-optimization/70574
17481         * fwprop.c (forward_propagate_and_simplify): Don't add
17482         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
17483         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
17484         paradoxical subregs within *loc.
17486 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
17488         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
17489         -ftree-parallelize-loops={0,1}.
17490         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
17491         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
17492         * config/ia64/hpux.h (LIB_SPEC): Likewise.
17493         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17494         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
17496 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
17498         PR sanitizer/70541
17499         * asan.c (instrument_derefs): If we get unknown location, extract it
17500         with EXPR_LOCATION.
17501         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
17503 2016-04-08  Tom de Vries  <tom@codesourcery.com>
17505         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
17506         implicit firstprivate clause.
17508 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17510         PR target/70566
17511         * config/arm/thumb2.md (tst + branch-> lsls + branch
17512         peephole below *orsi_not_shiftsi_si): Require that condition
17513         register is dead after the peephole.
17514         (second peephole after the above): Likewise.
17516 2016-04-08  Alan Modra  <amodra@gmail.com>
17518         PR target/70117
17519         * builtins.c (fold_builtin_classify): For IBM extended precision,
17520         look at just the high-order double to test for NaN.
17521         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
17522         test just the high double for Inf but both doubles for subnormal
17523         limit.
17525 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
17527         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
17528         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
17529         node->simdclone->mask_mode != VOIDmode masks.
17530         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
17531         earlier, use it instead of node->simdclone.
17532         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17533         Set clonei->mask_mode.
17535 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17537         PR c/70436
17538         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
17539         Pass it through to cp_parser_already_scoped_statement.
17540         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
17541         it through to cp_parser_statement.
17542         (cp_parser_statement): Pass IF_P through to
17543         cp_parser_iteration_statement.
17544         (cp_parser_pragma): Adjust call to
17545         cp_parser_iteration_statement.
17547 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
17549         PR c/70436
17550         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
17551         resolve a future -Wparentheses warning.
17552         * omp-low.c (scan_sharing_clauses): Likewise.
17553         * tree-parloops.c (eliminate_local_variables): Likewise.
17555 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
17557         PR rtl-optimization/70398
17558         * lra-constraints.c (process_address_1): Check zero scale and code
17559         for reloading with zero scale.
17561 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
17563         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
17564         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
17566 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
17568         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17569         Add support for AVX512F clones, include them by default for
17570         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
17571         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
17572         up to 128.
17574         PR middle-end/70550
17575         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
17576         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
17577         firstprivate clauses.
17578         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
17579         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
17580         (lower_omp_target): Set TREE_NO_WARNING for
17581         non-addressable possibly uninitialized vars which are copied into
17582         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
17584 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
17586         * config/pa/predicates.md (integer_store_memory_operand): Accept
17587         REG+D operands with a large offset when reload_in_progress is true.
17588         (floating_point_store_memory_operand): Likewise.
17590 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17592         PR c++/70336
17593         * match.pd (nested int casts): Limit to GIMPLE.
17595 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
17597         PR ipa/66223
17598         * ipa-devirt.c (maybe_record_node): Fix comment; use
17599         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
17601 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17603         PR rtl-optimization/70542
17604         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
17605         if there are any uses other than insn or debug insns.
17607 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
17608             Jakub Jelinek  <jakub@redhat.com>
17610         PR tree-optimization/70509
17611         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
17612         Shift HOST_WIDE_INT_1U instead of 1.
17614 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
17616         PR tree-optimization/70509
17617         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
17618         of the vector base type for index.
17620 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
17622         PR target/70510
17623         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
17625 2016-04-05  Richard Biener  <rguenther@suse.de>
17627         PR tree-optimization/70526
17628         * tree-sra.c (build_ref_for_offset): Use prev_base to
17629         extract the alias pointer type.
17631 2016-04-05  Richard Biener  <rguenther@suse.de>
17633         * dse.c (struct store_info): Remove alias_set member.
17634         (struct read_info_type): Likewise.
17635         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
17636         spill_deleted, clear_alias_set_lookup): Remove.
17637         (get_group_info): Remove dead base == NULL_RTX case.
17638         (dse_step0): Remove initialization of removed variables.
17639         (delete_dead_store_insn): Reomve alias set dumping.
17640         (free_read_records): Remove alias_set handling.
17641         (canon_address): Remove alias_set_out parameter.
17642         (record_store): Remove spill_alias_set, it's always zero.
17643         (check_mem_read_rtx): Likewise.
17644         (dse_step2): Rename from ...
17645         (dse_step2_nospill): ... this.  Adjust.
17646         (scan_stores): Rename from ...
17647         (scan_stores_nospill): ... this.
17648         (scan_reads): Rename from ...
17649         (scan_reads_nospill): ... this.
17650         (scan_stores_spill, scan_reads_spill): Remove.
17651         (dse_step3_scan): Remove for_spills argument which is always false.
17652         (dse_step3): Likewise.
17653         (dse_step5): Rename from ...
17654         (dse_step5_nospill): ... this.  Remove alias_set handling.
17655         (rest_of_handle_dse): Adjust.
17657 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
17659         PR target/70525
17660         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
17661         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
17662         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
17663         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
17665 2016-04-05  Richard Biener  <rguenther@suse.de>
17667         PR middle-end/70499
17668         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
17669         non-register type temporaries into SSA.
17671 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
17673         PR ipa/66223
17674         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
17675         calls when sanitizing.
17676         (possible_polymorphic_call_target_p): Fix formatting.
17678 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17679             Jakub Jelinek  <jakub@redhat.com>
17681         PR middle-end/70457
17682         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
17683         to ensure a call statement is compatible with a built-in's
17684         prototype.
17685         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
17686         Likewise.
17688 2016-04-04  Richard Biener  <rguenther@suse.de>
17690         PR rtl-optimization/70484
17691         * rtl.h (canon_output_dependence): Declare.
17692         * alias.c (canon_output_dependence): New function.
17693         * dse.c (record_store): Use canon_output_dependence rather
17694         than canon_true_dependence.
17696 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17698         PR ipa/68881
17699         * cgraph.h (symtab_node::copy_visibility_from): New function.
17700         * symtab.c (symtab_node::copy_visibility_from): New function.
17701         * ipa-visibility.c (optimize_weakref): New function.
17702         (function_and_variable_visibility): Use it.
17704 2016-04-04  Martin Liska  <mliska@suse.cz>
17706         PR hsa/70402
17707         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
17708         value that is really in range handled by SBR instruction.
17709         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
17710         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
17711         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
17713 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
17715         PR target/70416
17716         PR target/67391
17717         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
17718         set, but not for SP_REG operands.
17720 2016-04-02  Martin Sebor  <msebor@redhat.com>
17722         PR c++/67376
17723         * fold-const.c (maybe_nonzero_address): New function.
17724         (fold_comparison): Call it.  Fold equality and relational
17725         expressions involving null pointers.
17726         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
17728 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
17730         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
17731         the "Y" constraint (scalar FP 0.0 immediate).
17733         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
17734         Add the "const_double" to the list of operand constraints.
17736 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
17738         PR rtl-optimization/70467
17739         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
17740         If low word of the last operand is 0, just emit addition/subtraction
17741         for the high word.
17743 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17745         PR target/70404
17746         * config/s390/s390.c (s390_expand_insv): Check for everything
17747         constant instead of just VOIDmode stuff.
17749 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17751         PR target/70496
17752         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
17754 2016-04-01  Nathan Sidwell  <nathan@acm.org>
17756         * tree.def (TRY_CATCH_EXPR): Correct documentation.
17758 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
17760         PR rtl-optimization/70461
17761         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
17762         is necessary.
17764 2016-03-31  Martin Liska  <mliska@suse.cz>
17766         PR hsa/70399
17767         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
17768         a tree value or an immediate integer value to a buffer
17769         that is eventually copied to a BRIG section.
17770         (emit_immediate_operand): Call the function here.
17771         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
17772         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
17773         of class' fields that are removed.
17774         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
17775         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
17776         m_brig_repr_size fields.
17778 2016-03-31  Martin Liska  <mliska@suse.cz>
17780         PR hsa/70391
17781         * hsa-gen.c (hsa_function_representation::update_dominance): New
17782         function.
17783         (convert_addr_to_flat_segment): Likewise.
17784         (gen_hsa_memory_set): New alignment argument.
17785         (gen_hsa_ctor_assignment): Likewise.
17786         (gen_hsa_insns_for_single_assignment): Provide alignment
17787         to gen_hsa_ctor_assignment.
17788         (gen_hsa_insns_for_direct_call): Add new argument.
17789         (expand_lhs_of_string_op): New function.
17790         (expand_string_operation_builtin): Likewise.
17791         (expand_memory_copy): New function.
17792         (expand_memory_set): New function.
17793         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
17794         (convert_switch_statements): Change signature.
17795         (generate_hsa): Use a return value of the function.
17796         (pass_gen_hsail::execute): Do not call
17797         convert_switch_statements here.
17798         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
17799         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
17800         (hsa_function_representation::update_dominance): New function.
17802 2016-03-31  Martin Liska  <mliska@suse.cz>
17804         PR hsa/70391
17805         * hsa-brig.c (emit_directive_variable): Emit alignment
17806         according to hsa_symbol::m_align.
17807         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
17808         (dump_hsa_symbol): Dump alignment of HSA symbols.
17809         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
17810         (gen_hsa_addr_with_align): New function.
17811         (hsa_bitmemref_alignment): Use newly added function.
17812         (gen_hsa_insns_for_load): Likewise.
17813         (gen_hsa_insns_for_store): Likewise.
17814         (gen_hsa_memory_copy): New argument added.
17815         (gen_hsa_insns_for_single_assignment): Respect
17816         alignment for assignments processed via gen_hsa_memory_copy.
17817         (gen_hsa_insns_for_direct_call): Likewise.
17818         (gen_hsa_insns_for_return): Likewise.
17819         (gen_function_def_parameters): Set default alignment.
17820         * hsa.c (hsa_object_alignment): New function.
17821         (hsa_byte_alignment): Pasted function.
17822         * hsa.h (hsa_symbol::m_align): New field.
17824 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
17826         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
17827         scratch field for goto case.
17829 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
17831         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
17833 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
17835         PR target/70442
17836         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
17837         (scalar_chain::convert_insn): Call convert_op for reg
17838         moves to handle undefined registers.
17840 2016-03-31  Nathan Sidwell  <nathan@acm.org>
17842         PR c++/70393
17843         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
17844         Assert we don't want to move backwards.
17846 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
17848         PR target/70453
17849         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
17851 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
17853         PR rtl-optimization/70460
17854         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
17855         with operand from REG_LABEL_OPERAND, instead substitute
17856         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
17857         Don't do anything for REG_NON_LOCAL_GOTO jumps.
17859 2016-03-31  Martin Liska  <mliska@suse.cz>
17861         * passes.c (execute_one_pass): Do not call
17862         todo_after for a discarded function.
17864 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
17866         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
17867         (no_cost, infinite_cost): Initialize the new field.
17868         (get_computation_cost_at): Record setup cost.
17869         (determine_use_iv_cost_address): Skip cost computation for sub
17870         uses if we can estimate it without losing accuracy.
17872 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
17874         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
17875         estimates here.
17876         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17877         max_loop_iterations_int.
17878         (tree_unswitch_outer_loop): Likewise.
17879         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17880         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17882 2016-03-30  Richard Biener  <rguenther@suse.de>
17884         PR middle-end/70450
17885         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
17887 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
17889         PR target/70421
17890         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
17891         in gen_blendm expander.
17893 2016-03-30  Nick Clifton  <nickc@redhat.com>
17895         PR target/62254
17896         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
17897         case where we are already provided with an SImode SUBREG.
17899 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17901         PR target/70439
17902         * config/i386/i386.c (ix86_expand_epilogue): Properly check
17903         conflict between DRAP register and __builtin_eh_return.
17905 2016-03-30  Michael Matz  <matz@suse.de>
17906             Richard Biener  <rguenther@suse.de>
17908         PR ipa/12392
17909         * ipa-polymorphic-call.c (struct type_change_info): Change
17910         speculative to an unsigned allowing to limit the work we do.
17911         (csftc_abort_walking_p): New inline function..
17912         (check_stmt_for_type_change): Limit the number of may-defs
17913         skipped for speculative devirtualization to
17914         max-speculative-devirt-maydefs.
17915         * params.def (max-speculative-devirt-maydefs): New param.
17916         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
17918 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
17920         PR target/63890
17921         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
17922         and TARGET_MACHO.
17924 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
17926         PR tree-optimization/59124
17927         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
17928         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
17930 2016-03-29  Jeff Law  <law@redhat.com>
17932         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
17934 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
17936         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
17937         to HOST_WIDE_INT.
17939 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
17941         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
17942         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
17943         gcrt0.o if linking dynamically.
17945 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
17947         PR ipa/70283
17948         * ipa-devirt.c (methods_equal_p): New function.
17949         (compare_virtual_tables): Use it.
17950         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
17951         * cgraphclones.c (clone_function_name_1): Use
17952         symbol_table::symbol_suffix_separator.
17953         * coverage.c (build_var): Likewise.
17954         * symtab.c (symbol_table::symbol_suffix_separator): New.
17956 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
17958         PR rtl-optimization/70429
17959         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
17960         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
17961         mode != result_mode.
17963         PR c++/70353
17964         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
17966         PR tree-optimization/70405
17967         * ssa-iterators.h (num_imm_uses): Add missing braces.
17969 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17971         PR rtl-optimization/68695
17972         * ira-color.c (allocno_copy_cost_saving): New.
17973         (improve_allocation): Use it.
17975 2016-03-29  Richard Henderson  <rth@redhat.com>
17977         PR middle-end/70355
17978         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
17980 2016-03-29  Richard Biener  <rguenther@suse.de>
17982         PR middle-end/70424
17983         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
17984         use alignment returned by get_pointer_alignment_1 if it is
17985         bigger than BITS_PER_UNIT.
17986         * builtins.c (get_pointer_alignment_1): Do not return true
17987         for alignment extracted from SSA info.
17989 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
17991         * config/ft32/ft32.opt (mnodiv): New.
17992         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
17993         * doc/invoke.texi (FT32 Options -mnodiv): New.
17995 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
17997         PR target/70406
17998         * config/i386/i386.md (define_split, andn): Fix modes.
18000 2016-03-26  Richard Biener  <rguenther@suse.de>
18001             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18003         PR ipa/70366
18004         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
18005         instead of
18006         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
18007         as 2nd argument to cl_optimization_restore().
18009 2016-03-25  Richard Henderson  <rth@redhat.com>
18011         PR target/70120
18012         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
18013         * config/aarch64/aarch64-protos.h: Declare it.
18014         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
18016 2016-03-25  Alan Modra  <amodra@gmail.com>
18018         PR target/70052
18019         * config/rs6000/constraints.md (j): Simplify.
18020         * config/rs6000/predicates.md (easy_fp_constant): Exclude
18021         decimal float 0.D.
18022         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
18023         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
18024          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
18025         in all constraint alternatives.
18026         (movtd_64bit_nodm): Delete "j" constraint alternative.
18028 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18030         * tree-ssa-propagate.c: Enhance docs for
18031         SSA_PROP_NOT_INTERESTING.
18033 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
18035         * doc/extend.texi: Fix typo in documentation to pure attribute.
18037 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
18039         PR target/70319
18040         * config/pa/pa.md (bswapdi2): Use a scratch register.
18042 2016-03-24  Richard Henderson  <rth@redhat.com>
18044         PR middle-end/69845
18045         * fold-const.c (extract_muldiv_1): Correct test for multiplication
18046         overflow.
18048 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
18050         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
18051         using ix86_expand_binary_operator instead of gen_andsi3.
18053 2016-03-24  Richard Biener  <rguenther@suse.de>
18055         PR tree-optimization/70396
18056         * tree-vect-stmts.c (vectorizable_comparison): Use
18057         get_vectype_for_scalar_type.
18059 2016-03-24  Richard Biener  <rguenther@suse.de>
18061         PR middle-end/70370
18062         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
18063         with register bases.
18065 2016-03-24  Richard Biener  <rguenther@suse.de>
18067         PR tree-optimization/70372
18068         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
18069         build_all_ones_cst to also handle vector types correctly.
18071 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
18073         PR target/70381
18074         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
18075         -mfloat128 here.
18077 2016-03-23  Marek Polacek  <polacek@redhat.com>
18079         PR c++/69884
18080         * doc/invoke.texi: Document -Wignored-attributes.
18082 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18084         PR tree-optimization/69042
18085         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
18086         parameter from 30 to 40.
18088 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
18090         PR tree-optimization/69042
18091         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
18092         for use with constant offset stripped in base.
18094 2016-03-23  Richard Biener  <rguenther@suse.de>
18096         PR middle-end/70251
18097         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
18098         mode compatibility check.
18099         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18101 2016-03-23  Jeff Law  <law@redhat.com>
18103         PR tree-optimization/64058
18104         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
18105         CONFLICT_COUNT.
18106         (struct ssa_conflicts): Move up earlier in the file.
18107         (conflicts_, var_map_): New static variables.
18108         (initialize_conflict_count): New function to initialize the
18109         CONFLICT_COUNT field for each conflict pair.
18110         (compare_pairs): Lazily initialize the conflict count and use it
18111         as the first tie-breaker.
18112         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
18113         and wipe conflicts_ and map_ around the call to qsort.  Remove
18114         special case for 2 coalesce pairs.
18115         * bitmap.c (bitmap_count_unique_bits): New function.
18116         (bitmap_count_bits_in_word): New function, extracted from
18117         bitmap_count_bits.
18118         (bitmap_count_bits): Use bitmap_count_bits_in_word.
18119         * bitmap.h (bitmap_count_unique_bits): Declare it.
18121 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
18123         PR target/69917
18124         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
18125         transparent alias chain for decl assembler name.
18126         * config/sol2.c (solaris_assemble_visibility): Likewise.
18128 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18130         * config/arm/arm1020e.md (1020call_op): Reduce reservation
18131         duration.
18132         (v10_fdivs): Likewise.
18133         (v10_fdivd): Likewise.
18135 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18137         PR driver/70132
18138         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
18139         to not call fclose twice on file.
18141 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
18143         PR tree-optimization/70354
18144         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
18145         oprnd0 is wider than oprnd1 and there is a cast from the wider
18146         type to oprnd1, mask it with the mask of the narrower type.
18148         PR target/70321
18149         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
18150         Optimize TARGET_STV splitters, if high or low word of last argument
18151         is 0 or -1.
18153 2016-03-22  Jeff Law  <law@redhat.com>
18155         PR target/70232
18156         tree-ssa-threadbackward.c
18157         (fsm_find_control_statement_thread_paths): Correctly distinguish
18158         between old style jump threads vs FSM jump threads.
18160 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
18162         PR target/70302
18163         * config/i386/i386.c (scalar_chain::convert_op): Support
18164         uninitialized register usage case.
18166 2016-03-22  Richard Biener  <rguenther@suse.de>
18168         PR middle-end/70251
18169         * genmatch.c (gen_transform): Adjust last parameter to a three-state
18170         int...
18171         (capture::gen_transform): ... to change behavior when substituting
18172         a condition into cond or not-cond expr context.
18173         (dt_simplify::gen_1): Adjust.
18174         * gimple-match-head.c: Include gimplify.h for unshare_expr.
18175         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
18176         last change and instead change to
18177         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
18178         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18180 2016-03-22  Anthony Green  <green@moxielogic.com>
18182         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
18183         issue for moxiebox targets.
18184         (CC1PLUS_SPEC): Ditto.
18186 2016-03-22  Richard Biener  <rguenther@suse.de>
18188         PR middle-end/70333
18189         * fold-const.c (extract_muldiv_1): Properly perform multiplication
18190         in the wide type.
18192 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18194         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
18196 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
18198         PR target/70325
18199         * config/i386/i386.c (def_builtin): Handle
18200         OPTION_MASK_ISA_AVX512VL to be and-ed with other
18201         bits.
18202         (const struct builtin_description bdesc_special_args[]):
18203         Remove duplicate ISA bits.
18205 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
18207         PR target/70329
18208         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
18209         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
18210         in a way that works also for AVX512BW.
18212         PR target/70300
18213         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
18214         instead of source if operands[1] is xmm16 and above and
18215         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
18216         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
18218         PR c++/70295
18219         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
18220         on assign if (*from_p) is a comparison, set it to
18221         TREE_NO_WARNING (*from_p).
18223 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18225         PR middle-end/70326
18226         * lra.c (restore_scratches): Ignore deleted insns.
18228 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
18229             Jakub Jelinek  <jakub@redhat.com>
18231         PR tree-optimization/70317
18232         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
18233         to HONOR_NANS.
18235 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
18237         PR target/70327
18238         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
18239         of ix86_expand_move.
18240         (movoi): Ditto.
18241         (movti): Use general_operand for operand 1 predicate.
18243 2016-03-21  Martin Liska  <mliska@suse.cz>
18245         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
18246         insns.
18247         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
18249 2016-03-21  Martin Liska  <mliska@suse.cz>
18251         PR ipa/70306
18252         * ipa-icf.c (sem_function::parse): Skip static
18253         constructors and destructors.
18255 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
18257         PR target/70296
18258         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
18259         function-like macro, peek following token(s) if it is followed
18260         by CPP_OPEN_PAREN token with optional padding in between, and
18261         if not, don't treat it like a macro.
18263 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18264             Alexander Monakov  <amonakov@ispras.ru>
18266         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
18267         for the stabs debug format.
18269 2016-03-21  Richard Biener  <rguenther@suse.de>
18271         PR tree-optimization/70310
18272         * tree-vect-generic.c (expand_vector_condition): Fold the built
18273         condition.
18275 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18277         PR target/70293
18278         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
18279         Block third alternative for AVX-512VL target,
18281 2016-03-21  Martin Liska  <mliska@suse.cz>
18283         PR hsa/70234
18284         * hsa-brig.c (emit_function_directives): Mark unemitted
18285         global variables for emission.
18286         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
18287         (get_symbol_for_decl): Likewise.
18288         * hsa.h (struct hsa_symbol): New flag.
18290 2016-03-21  Richard Biener  <rguenther@suse.de>
18292         PR tree-optimization/70288
18293         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
18294         we do not estimate unsimplified all-constant conditionals or
18295         switches as optimized away.
18297 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
18299         PR rtl-optimization/69102
18300         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
18301         when we have a readonly dependency context.
18303 2016-03-18  Jeff Law  <law@redhat.com>
18305         PR rtl-optimization/70263
18306         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
18307         (update_equiv_regs): When trying to move a store to after the insn
18308         that sets the source of the store, make sure the store occurs after
18309         the insn that sets the source of the store.  When successful note
18310         the REG_EQUIV note created in the dump file.
18312 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
18313             Bernd Schmidt  <bschmidt@redhat.com>
18315         * doc/extend.texi: Document more potential problems with basic asms.
18317 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
18319         PR rtl-optimization/70278
18320         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
18321         VOIDmode.
18323 2016-03-18  Jason Merrill  <jason@redhat.com>
18325         * calls.c (load_register_parameters): Fix zero size sibcall logic.
18327 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
18329         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
18330         values to 128b regs.
18332 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
18334         PR tree-optimization/70252
18335         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
18336         boolean vector has a proper number of elements.
18337         (supportable_narrowing_operation): Likewise.
18339 2016-03-18  Tom de Vries  <tom@codesourcery.com>
18341         PR ipa/70269
18342         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
18344 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
18346         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
18347         instead of replace_rtx for DEBUG_INSNs.
18349 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18351         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
18352         load type reservations.
18354 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
18356         PR target/70188
18357         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
18358         define_constraint for "Q" and "T" constraints.
18360 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
18362         Tweak the pipeline model for Exynos M1
18364         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
18365         model.
18367 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
18369         PR c/70264
18370         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
18371         where one or both locations aren't within a line_map.
18373 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
18375         PR driver/70192
18376         * opts.c (finish_options): Don't set flag_pie to the default if
18377         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
18378         if it is -1.
18380 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
18382         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
18383         true as ALL_REGS argument to replace_rtx.
18385 2016-03-17  Richard Biener  <rguenther@suse.de>
18387         PR debug/70271
18388         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
18389         last.
18391 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18393         PR target/70245
18394         * rtl.h (replace_rtx): Add ALL_REGS argument.
18395         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
18396         equality and assert mode is the same, instead of just rtx pointer
18397         equality.
18398         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
18399         true as ALL_REGS argument to replace_rtx.
18401 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
18403         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
18404         for boolean vector with vector mode only.
18405         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
18407 2016-03-17  Nick Clifton  <nickc@redhat.com>
18409         PR target/70162
18410         * config/rx/rx.c (rx_print_integer): Print negative constants in
18411         decimal.
18413 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
18415         PR target/70261
18416         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
18418 2016-03-16  Richard Henderson  <rth@redhat.com>
18419             Richard Biener  <rguenth@suse.de>
18421         PR middle-end/70240
18422         PR middle-end/68215
18423         PR tree-opt/68714
18424         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
18425         first operand as is_gimple_condexpr.
18427         PR middle-end/70240
18428         PR middle-end/68215
18429         Revert r231575
18430         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
18431         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
18432         Do not gimplify the result.
18433         (do_unop): Adjust call to tree_vec_extract.
18434         (do_binop): Likewise.
18435         (do_compare): Likewise.
18436         (do_plus_minus): Likewise.
18437         (do_negate): Likewise.
18438         (expand_vector_condition): Likewise.
18439         (do_cond): Likewise.
18441 2016-03-16  Richard Henderson  <rth@redhat.com>
18443         PR target/70048
18444         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
18445         (aarch64_classify_address): Use it.
18446         (aarch64_legitimize_address): Force all subexpressions of PLUS
18447         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
18449 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
18450             Richard Biener  <rguenth@suse.de>
18452         PR target/70245
18453         * rtlanal.c (replace_rtx): For REG, if from is a REG,
18454         return to even if only REGNO is equal, and assert
18455         mode is the same.
18457 2016-03-11  Jeff Law  <law@redhat.com>
18459         PR rtl-optimization/70224
18460         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
18462 2016-03-16  Richard Henderson  <rth@redhat.com>
18464         PR middle-end/70199
18465         * function.h (struct function): Add has_forced_label_in_static.
18466         * gimplify.c (force_labels_r): Set it.
18467         * lto-streamer-in.c (input_struct_function_base): Read it.
18468         * lto-streamer-out.c (output_struct_function_base): Write it.
18469         * tree-inline.c (has_label_address_in_static_1): Remove.
18470         (copy_forbidden): Remove fndecl parameter; test
18471         has_forced_label_in_static.
18472         (inline_forbidden_p): Update call to copy_forbidden.
18473         (tree_versionable_function_p): Likewise.
18474         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
18475         (chkp_versioning): Likewise.
18476         * tree-inline.h (copy_forbidden): Update decl.
18478 2016-03-16  Marek Polacek  <polacek@redhat.com>
18480         PR c/70093
18481         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
18482         function being thunked if the result type doesn't have fixed size.
18483         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
18484         doesn't have fixed size.
18486 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
18488         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
18489         reporting malformed loop nest.
18491 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18493         PR lto/70187
18494         * ipa-devirt.c (possible_polymorphic_call_targets): Move
18495         nodes.length () == 1 test to before first nodes[0] access.
18497 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18499         PR tree-optimization/68715
18500         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
18501         single_pred_p test.
18503 2016-03-16  Tom de Vries  <tom@codesourcery.com>
18505         PR tree-optimization/68809
18506         * graphite-scop-detection.c (same_close_phi_node): Test if result types
18507         are the same.
18509 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
18510             Sandra Loosemore  <sandra@codesourcery.com>
18512         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
18513         on leaf attribute. Mention ELF interposition problems.
18515 2016-03-16  Alan Modra  <amodra@gmail.com>
18517         PR rtl-optimization/69195
18518         PR rtl-optimization/47992
18519         * ira.c (indirect_jump_optimize): Ignore artificial defs.
18520         Add comments.
18522 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
18524         PR bootstrap/69513
18525         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
18527 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
18529         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
18531 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
18533         PR rtl-optimization/70222
18534         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
18535         optimization if mode is different from result_mode, queue up masking
18536         of the result in outer_op.  Formatting fix.
18538         PR middle-end/70239
18539         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
18540         of safe_grow.
18542 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18544         PR rtl-optimization/69032
18545         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
18546         looping backwards over basic block insns.
18548 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18550         PR target/66660
18551         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
18552         to non-speculative when propagating trap bits.
18554 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18556         PR rtl-optimization/63384
18557         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
18558         DEBUG_INSN_P insns.
18560 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
18562         PR target/64411
18563         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
18564         factored out from ...
18565         (sched_analyze_insn): ... here.
18566         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
18567         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
18568         get_implicit_reg_pending_clobbers in it.
18569         (setup_id_reg_sets): Use setup_id_implicit_regs.
18570         (deps_init_id): Ditto.
18572 2016-03-15  Tom de Vries  <tom@codesourcery.com>
18574         PR ipa/70161
18575         * cgraph.c (cgraph_node::get_body): Save, reset and restore
18576         dump_file_name.
18577         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
18578         execute_function_dump.
18579         (execute_one_pass): Don't dump function if it will be dumped after ipa
18580         transform.
18582 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
18584         * genrecog.c (match_pattern_2): If pred is NULL don't call
18585         safe_predicate_mode on it.
18587 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
18589         PR middle-end/70219
18590         * lra-constraints.c (delete_move_and_clobber): Change assertion
18591         to also allow dregno == 0.
18593 2016-03-14  Richard Henderson  <rth@redhat.com>
18595         PR tree-opt/68714
18596         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
18597         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
18598         (reassociate_bb): Use optimize_vec_cond_expr; avoid
18599         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
18600         on vectors.
18602 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
18604         PR target/70083
18605         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
18606         regs.
18607         (lra_create_live_ranges_1): initialize hard register biggest_mode to
18608         VOIDmode.
18609         * lra-constraints.c (split_reg): For hard regs, try to find the
18610         biggest single-register mode used in the function.
18612 2016-03-14  Richard Biener  <rguenther@suse.de>
18614         PR tree-optimization/56365
18615         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
18616         constants to compare against.
18618 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
18620         PR target/70098
18621         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
18622         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
18623         (define_split for the GPR case): Use int_reg_operand instead of
18624         gpc_reg_operand for the output.
18626 2016-03-14  Tom de Vries  <tom@codesourcery.com>
18628         PR tree-optimization/70045
18629         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
18630         create_empty_if_region_on_edge argument.
18632 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
18634         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
18635         (STACK_CHECK_PROTECT): Likewise.
18636         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18637         (STACK_CHECK_PROTECT): Likewise.
18638         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
18639         (STACK_CHECK_PROTECT): Likewise.
18640         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
18641         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18642         (STACK_CHECK_PROTECT): Likewise.
18644 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
18646         PR rtl-optimization/69307
18647         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
18648         registers in modes that span more than one register.
18650 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
18652         PR target/69614
18653         * lra-constraints.c (delete_move_and_clobber): New.
18654         (remove_inheritance_pseudos): Use it.
18656 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
18658         PR ada/70017
18659         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
18660         the libcall is LCT_THROW.
18661         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
18662         for the checking routine.
18664 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18666         PR target/70131
18667         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
18668         optimization if we have direct move.
18669         (roundu32<mode>2_fprs): Likewise.
18671 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
18673         PR target/70123
18674         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
18675         be rematerialized.
18676         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
18677         Arguments swapped.  All callers changed.  Take reg_renumber into
18678         account, and Calculate and compare register ranges for hard regs.
18680 2016-03-11  Jeff Law  <law@redhat.com>
18682         PR tree-optimization/70190
18683         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
18684         Handle cases where we can not extract the taken edge, even though we
18685         found a constant value.
18687         PR tree-optimization/64058
18688         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
18689         (num_coalesce_pairs): Move up earlier in file.
18690         (find_coalesce_pair): Initialize the INDEX field for each pair
18691         discovered.
18692         (compare_pairs): No longer sort on the elements in each pair.
18693         Instead break ties with the index of the coalesce pair.
18695 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18697         PR target/70002
18698         * config/aarch64/aarch64-protos.h
18699         (aarch64_save_restore_target_globals): New prototype.
18700         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
18701         Call the above when popping pragma.
18702         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
18703         New function.
18704         (aarch64_set_current_function): Rewrite using the above.
18706 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
18708         PR tree-optimization/70177
18709         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
18710         (extract_ops_from_tree): ... this.  In the 2 argument
18711         overload remove _1 suffix.
18712         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
18713         (extract_ops_from_tree): ... this.
18714         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
18715         Adjust callers.
18716         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
18717         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
18718         extract_ops_from_tree instead of 2 operand one.
18720 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
18722         PR tree-optimization/70013
18723         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
18724         for constant-pool entries.
18726 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
18728         PR rtl-optimization/70174
18729         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
18730         followed by gen_lowpart on force_reg instead of just gen_lowpart.
18732         PR tree-optimization/70169
18733         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
18734         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
18735         for unknown codes.
18737 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
18738             Jakub Jelinek  <jakub@redhat.com>
18740         PR target/70160
18741         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
18742         of uninitialized values.
18744 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18746         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
18747         define_expand.
18748         ("*trunctddd2"): New pattern definition.
18749         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
18750         TD->DD truncation.
18752 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18754         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
18755         definitions for BFP and DFP rounding modes.
18756         ("fixuns_truncdddi2", "fixuns_trunctddi2")
18757         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
18758         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
18759         ("fix_trunctf<mode>2"): Use the new constants instead of magic
18760         numbers.
18762 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18764         * config/s390/constraints.md: Adjust comment.
18765         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
18766         s390_decompose_addrstyle_without_index.
18767         * config/s390/predicates.md (shift_count_or_setmem_operand):
18768         Rename to setmem_operand.
18769         * config/s390/s390-protos.h
18770         (s390_decompose_shift_count): Rename to
18771         s390_decompose_addrstyle_without_index.
18772         * config/s390/s390.c (s390_decompose_shift_count)
18773         (s390_mem_constraint, print_shift_count_operand)
18774         (print_operand_address, print_operand): Rename
18775         s390_decompose_shift_count to
18776         s390_decompose_addrstyle_without_index and rename
18777         print_shift_count_operand to print_addrstyle_operand troughout the
18778         file.
18779         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
18780         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
18781         Rename shift_count_or_setmem_operand to setmem_operand.
18782         * config/s390/vx-builtins.md ("vec_insert<mode>")
18783         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
18784         nonmemory_operand.
18786 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18788         PR target/70168
18789         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
18790         Handle overlapping retval and newval.
18792 2016-03-10  Nick Clifton  <nickc@redhat.com>
18794         PR target/7044
18795         * config/aarch64/aarch64.c
18796         (aarch64_override_options_after_change_1): When forcing
18797         flag_omit_frame_pointer to be true, use a special value that can
18798         be detected if this function is called again, thus preventing
18799         flag_omit_leaf_frame_pointer from being forced to be false.
18801 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18803         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18804         Set x_flag_omit_leaf_frame_pointer when handling
18805         -momit-leaf-frame-pointer.
18807 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18809         PR lto/69589
18810         * cgraph.c (cgraph_node::dump): Dump split_part and
18811         indirect_call_target.
18812         * cgraph.h (cgraph_node): Add indirect_call_target flag.
18813         * ipa.c (has_addr_references_p): Cleanup.
18814         (is_indirect_call_target_p): New.
18815         (walk_polymorphic_call_targets): Do not mark virtuals that may be
18816         called indirectly as local.
18817         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
18819 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18821         PR ipa/69630
18822         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
18823         on cxa_pure_virtual.
18825 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18827         PR lto/69589
18828         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
18830 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
18832         PR lto/69589
18833         * tree.c (need_assembler_name_p): Only record main variant type names.
18835 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
18837         PR target/70113.
18838         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
18839         Always define to 0 or 1.
18840         (TARGET_FIX_ERR_A53_843419): New macro.
18841         * config/aarch64/aarch64-elf-raw.h
18842         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
18843         * config/aarch64/aarch64-linux.h: Likewise.
18844         * config/aarch64/aarch64.c
18845         (aarch64_override_options_after_change_1): Do not default
18846         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
18847         843419 is on.
18848         (aarch64_attributes): Handle fix-cortex-a53-843419.
18849         (aarch64_can_inline_p): Likewise.
18850         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
18852 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
18853             Jakub Jelinek  <jakub@redhat.com>
18855         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
18856         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
18857         DECL_COMMONS if flag_unconstrained_commons is set.
18858         * tree-dfa.c (get_ref_base_and_extent): Likewise.
18859         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
18860         (funconstrained-commons): Document.
18862 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
18864         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
18865         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
18867 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
18869         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
18870         has a proper number of elements.
18872 2016-03-10  Alan Modra  <amodra@gmail.com>
18874         PR rtl-optimization/69195
18875         PR rtl-optimization/47992
18876         * ira.c (recorded_label_ref): Delete.
18877         (update_equiv_regs): Return void.
18878         (indirect_jump_optimize): New function.
18879         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
18880         before regstat_compute_ri.  Don't rebuild_jump_labels here.
18881         Delete update_regstat.
18883 2016-03-10  Richard Biener  <rguenther@suse.de>
18885         PR tree-optimization/70128
18886         * tree-ssa-structalias.c (set_uids_in_ptset): Set
18887         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
18889 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
18891         PR tree-optimization/70152
18892         * tree-sra.c (replace_removed_params_ssa_names): Copy over
18893         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
18895         PR target/70086
18896         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
18897         instead of gen_sse2_loadlpd.
18898         * config/i386/sse.md (*vec_concatv2df): Rename to...
18899         (vec_concatv2df): ... this.
18901         PR tree-optimization/70127
18902         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
18904 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
18906         PR c/68473
18907         PR c++/70105
18908         * diagnostic-show-locus.c (compatible_locations_p): New function.
18909         (layout::layout): Sanitize ranges using compatible_locations_p.
18911 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
18913         PR c/68473
18914         PR c++/70105
18915         * diagnostic-show-locus.c (layout_range::layout_range): Replace
18916         location_range param with three const expanded_locations * and a
18917         bool.
18918         (layout::layout): Replace call to
18919         rich_location::lazily_expand_location with get_expanded_location.
18920         Extract the range and perform location expansion here, passing
18921         the results to the layout_range ctor.
18922         * diagnostic.c (source_range::debug): Delete.
18923         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
18924         of rich_location::get_expanded_location.
18925         * gcc-rich-location.c (get_range_for_expr): Delete.
18926         (gcc_rich_location::add_expr): Reimplement to avoid the
18927         rich_location::add_range overload that took a location_range,
18928         passing a location_t instead.
18930 2016-03-09  Richard Biener  <rguenther@suse.de>
18931         Jakub Jelinek  <jakub@redhat.com>
18933         PR tree-optimization/70138
18934         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
18935         Also skip vect_double_reduction_def.
18937 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
18939         PR target/70049
18940         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
18941         if the operand is "m".
18943 2016-03-09  Nathan Sidwell  <nathan@acm.org>
18945         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
18947 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
18949         * config/i386/i386.c (processor_target_table): Fix cost table
18950         intialization order for znver1.
18952 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
18954         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
18955         - becuase -> because.
18956         * ipa-reference.c (ignore_module_statics): Likewise.
18957         * cgraph.c (cgraph_node::get_body): Likewise.
18958         * ipa-inline.c (early_inliner): Likewise.
18959         * ipa-devirt.c (types_same_for_odr): Likewise.
18960         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
18961         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
18963 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18965         * tree-ssa-math-opts.c: Fix typo in comment.
18967 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
18969         PR target/70110
18970         * config/i386/i386.c (scalar_chain::make_vector_copies,
18971         scalar_chain::convert_reg): Call end_sequence in between
18972         get_insns and emit_conversion_insns rather than after both
18973         calls.
18975 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
18977         PR target/70064
18978         * config/i386/i386.h (machine_function): Add
18979         pc_thunk_call_expanded flag.
18980         (ix86_pc_thunk_call_expanded): New define.
18981         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
18982         (*set_got): Rename insn pattern from set_got.
18983         (*set_got_labelled): Rename inst pattern from set_got_labelled.
18984         * config/i386/i386.c (ix86_compute_frame_layout): Use
18985         ix86_pc_thunk_call_expanded to prevent red-zone.
18987 2016-03-07  Martin Jambor  <mjambor@suse.cz>
18989         * hsa.h (hsa_get_ctor_statements): Declare.
18990         (hsa_get_dtor_statements): Likewise.
18991         (hsa_get_kernel_dispatch_type): Likewise.
18992         * hsa.c (hsa_get_ctor_statements): New function.
18993         (hsa_get_dtor_statements): Likewise.
18994         (hsa_get_kernel_dispatch_type): Likewise.
18995         * hsa-brig.c (hsa_cdtor_statements): Removed.
18996         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
18997         hsa_get_dtor_statements.
18998         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
18999         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
19001 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
19003         * config/arm/arm-cores.def (cortex-r8): New.
19004         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
19005         * config/arm/arm-tune.md: Likewise.
19006         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
19008 2016-03-07  Martin Sebor  <msebor@redhat.com>
19010         PR rtl-optimization/19705
19011         * doc/invoke.texi (Options That Control Optimization): Clarify
19012         -fno-branch-count-reg.
19014 2016-02-26  Richard Biener  <rguenther@suse.de>
19015             Jeff Law  <law@redhat.com>
19017         PR tree-optimization/69740
19018         * cfghooks.c (remove_edge): Request loop fixups if we delete
19019         an edge that might turn an irreducible loop into a natural
19020         loop.
19021         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
19022         Move after definition of loops_state_clear.
19024 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
19026         PR rtl-optimization/69052
19027         * rtlanal.c (commutative_operand_precedence): Set higher precedence
19028         to CONST_WIDE_INT.
19030 2016-03-07  Tom de Vries  <tom@codesourcery.com>
19032         PR tree-optimization/70116
19033         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
19034         is_tm_ending stmts and ubsan/asan internal functions.
19035         (find_duplicate): Use it.  Don't test is_tm_ending here.
19037 2016-03-07  Richard Biener  <rguenther@suse.de>
19039         PR tree-optimization/70115
19040         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
19041         (propagate_constants_for_unrolling): Use replace_uses_by.
19043 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
19045         PR middle-end/69916
19046         * omp-low.c (struct oacc_loop): Add ifns.
19047         (new_oacc_loop_raw): Initialize it.
19048         (finish_oacc_loop): Clear mask & flags if no ifns.
19049         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
19050         (oacc_loop_xform_loop): Add ifns arg & adjust.
19051         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
19053 2016-03-07  Richard Henderson  <rth@redhat.com>
19055         PR rtl-opt/70061
19056         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
19057         (insert_value_copy_on_edge): Likewise.
19059 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19061         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
19063 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19065         PR target/62281
19066         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
19068 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19070         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
19072 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
19074         Fix sseimul type attribute.
19075         * config/i386/znver1.md
19076         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
19077         znver1_sseimul_avx256_load) : Fix the type attribute.
19078         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
19079         pipe usage and latency.
19081 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
19083         PR c++/70084
19084         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
19085         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
19086         to the right type.
19088 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19090         PR c/69973
19091         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
19093         PR rtl-optimization/69941
19094         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
19095         the reg share its mode.
19097 2016-03-04  Jeff Law  <law@redhat.com>
19099         PR tree-optimization/69196
19100         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19101         If the both SSA_NAMEs are anonymous, then consider them unassociated
19102         and include the PHI in the statement count.
19104 2016-03-05  Tom de Vries  <tom@codesourcery.com>
19106         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
19107         construct in oacc routine.  Check for oacc region in oacc routine.
19109 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19111         PR target/70062
19112         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
19113         2016-02-22 changes, instead don't recurse if RECUR is already true.
19114         Don't change *dynamic_check if RECUR.  Adjust recursive caller
19115         to pass true to the new argument.
19116         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
19118         PR target/70059
19119         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
19120         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
19121         fixes.
19122         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
19124 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
19126         PR rtl-optimization/57676
19127         * lra-assigns.c (lra_assign): Guard test for maximum iterations
19128         with flag_checking.
19130 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
19132         * tree-vect-patterns.c (search_type_for_mask): Handle
19133         comparison of booleans.
19135 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
19137         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
19138         Fix @xref usage.
19140         PR debug/69947
19141         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
19142         all other ops that have dw_val_class_die_ref operands,
19143         and DW_OP_GNU_entry_value.
19145 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19147         PR rtl-optimization/69904
19148         * config/arm/arm.c (arm_cannot_copy_insn_p):
19149         Return true for load-exclusive instructions.
19151 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
19153         PR target/70021
19154         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
19155         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
19156         the pattern no matter if it is used just by non-pattern, pattern
19157         or mix thereof.
19158         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
19159         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19160         oprnd1 def_stmt is in pattern, don't look through it.
19162 2016-03-03  Marek Polacek  <polacek@redhat.com>
19164         PR middle-end/70050
19165         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
19167 2016-03-03  Martin Liska  <mliska@suse.cz>
19169         PR tree-optimization/70043
19170         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
19171         previous statement if we see a debug statement.
19173 2016-03-03  Richard Biener  <rguenther@suse.de>
19175         PR tree-optimization/55936
19176         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
19177         parameter and guard unsafe equivalence use.
19178         (vrp_evaluate_conditional_warnv_with_ops): Always use
19179         safe equivalences but not via the quadratic compare_names
19180         helper.
19182 2016-03-03  Michael Collison  <michael.collison@linaro.org>
19184         PR target/70014
19185         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
19186         for operand 1 to s_register_operand. Change predicate for operand
19187         2 to arm_not_immediate_operand.
19189 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
19191         * doc/tm.texi: Regenerated.
19193 2016-03-02  Richard Henderson  <rth@redhat.com>
19195         PR rtl-opt/67145
19196         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
19197         simplification when all args are positive non-fixed registers.
19199 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19201         * target.def (lra_p): Specify that new ports should use LRA.
19203 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19205         PR libgomp/69555
19206         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
19207         gimplify_type_sizes the type they refer to.
19208         (omp_notice_variable): Handle reference vars to VLAs.
19209         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
19210         reference to VLA decls in the second pass instead of first pass.
19212 2016-03-02  Tom de Vries  <tom@codesourcery.com>
19214         PR tree-optimization/68659
19215         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
19216         new_expr == NULL_TREE.
19217         (get_new_name): Handle ADDR_EXPR.
19219 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
19221         PR rtl-optimization/69052
19222         * loop-invariant.c (canonicalize_address): New function.
19223         (inv_can_prop_to_addr_use): Check validity of address expression
19224         which is canonicalized by above function.
19226 2016-03-02  Alan Modra  <amodra@gmail.com>
19228         PR ipa/69990
19229         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
19230         larger alignment.
19232 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
19234         PR target/70028
19235         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
19236         (*movhi_internal): Put mask moves from and to memory separately
19237         from moves from/to GPRs.
19239 2016-03-02  Richard Biener  <rguenther@suse.de>
19241         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
19242         GENERIC expressions in GIMPLE.
19244 2016-03-02  Richard Biener  <rguenther@suse.de>
19246         * config/i386/i386.c (type_natural_mode): Fix typo.
19248 2016-03-02  Nick Clifton  <nickc@redhat.com>
19250         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
19252 2016-03-02  Richard Biener  <rguenther@suse.de>
19253             Uros Bizjak  <ubizjak@gmail.com>
19255         PR target/67278
19256         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
19258 2016-03-02  Richard Biener  <rguenther@suse.de>
19260         PR middle-end/67278
19261         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
19263 2016-03-02  Marek Polacek  <polacek@redhat.com>
19265         PR c/67854
19266         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
19267         "is promoted to" warning.
19269 2016-03-01  DJ Delorie  <dj@redhat.com>
19271         * config.gcc: Deprecate mep-*.
19273 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
19275         PR middle-end/70025
19276         * lra-constraints.c (regno_val_use_in): New.
19277         (match_reload): Use it instead of regno_use_in.
19279 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19281         PR rtl-optimization/70007
19282         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
19283         references present in REG_EQUAL notes attached to non-SET patterns.
19285 2016-03-01  Jeff Law  <law@redhat.com>
19287         PR tree-optimization/69196
19288         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19289         Appropriately clamp the number of statements to copy when the
19290         thread path does not traverse a loop backedge.
19292         PR tree-optimization/69196
19293         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19294         Do count some PHIs in the thread path against the insn count.  Decrease
19295         final statement count by one as the control statement in the last
19296         block will get removed.  Remove special cased code for handling PHIs
19297         in the last block.
19299 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
19301         PR target/70027
19302         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
19303         asm dialect alternatives to explicit GOTPCREL calls.
19305 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
19307         PR ada/70017
19308         * ira.c (do_reload): Issue warning for generic stack checking here...
19309         * reload1.c (reload): ...instead of here and streamline it.
19311 2016-03-01  Nick Clifton  <nickc@redhat.com>
19313         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
19315 2016-03-01  Richard Biener  <rguenther@suse.de>
19317         PR tree-optimization/69983
19318         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
19319         types and fall back to operand_equal_p.
19321 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19323         Revert
19324         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19326         * config/s390/constraints.md ("jm8"): New constraint.
19327         * config/s390/predicates.md ("const_int_8bitset_operand"): New
19328         predicate.
19329         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
19330         into ...
19331         ("*setmem_long<setmem_and>"): New pattern.
19332         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
19333         into ...
19334         ("*setmem_long_31z<setmem_and>"): New pattern.
19335         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
19336         New substitution rules with the required attributes.
19339 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19341         Revert
19342         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19344         * gensupport.c (process_substs_on_one_elem): Split loop to
19345         complete mark_operands_used_in_match_dup on all expressions in the
19346         vector first.
19347         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19348         and remove function.
19350 2016-03-01  Richard Biener  <rguenther@suse.de>
19352         PR middle-end/70022
19353         * fold-const.c (fold_indirect_ref_1): Fix range checking for
19354         vector BIT_FIELD_REF extract.
19356 2016-03-01  Richard Biener  <rguenther@suse.de>
19358         PR tree-optimization/69994
19359         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
19361 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
19363         PR tree-optimization/69956
19364         * tree-vect-stmts.c (supportable_widening_operation): Support
19365         multi-step conversion of boolean vectors.
19366         (supportable_narrowing_operation): Likewise.
19368 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19370         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
19371         anymore.
19373 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19375         * config/s390/subst.md (DSI_VI): New mode iterator.
19376         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
19377         * config/s390/vector.md ("vec_set<mode>"): Move expander before
19378         the insn definition.
19379         ("*vec_set<mode>"): Change predicate and add alternative to
19380         support only either register or const_int operands as element
19381         selector.
19382         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
19383         operands.
19384         ("vec_extract<mode>"): New expander.
19385         ("*vec_extract<mode>"): New insn definition supporting reg and
19386         const_int element selectors.
19387         ("*vec_extract<mode>_plus"): New insn definition supporting
19388         reg+const_int element selectors.
19389         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
19390         following expander+insn definition.
19391         ("<vec_shifts_name><mode>3"): New expander.
19392         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
19394 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19396         * config/s390/s390.md ("*tabort_1"): Change predicate to
19397         nonmemory_operand.  Add a second alternative to cover
19398         register as well as const int operands.
19399         ("*tabort_1_plus"): New pattern definition.
19401 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19403         * config/s390/s390.md ("*ashrdi3_cc_31")
19404         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
19405         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
19406         Merge insn definitions into ...
19407         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19408         New pattern definition.
19409         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
19410         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
19411         ("*ashr<mode>3_and"): Merge insn definitions into ...
19412         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
19413         New pattern definition.
19414         * config/s390/subst.md ("addr_style_op_cc_subst")
19415         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
19416         substitutions patterns plus attributes.
19417         Add ashiftrt to SUBST iterator.
19419 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19421         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
19422         op2 to nonmemory_operand.
19423         ("*<shift>di3_31", "*<shift>di3_31_and"):
19424         Merge into single pattern definition ...
19425         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
19426         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
19427         pattern definition ...
19428         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
19429         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
19430         iterator.
19432 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19434         * config/s390/predicates.md (const_int_6bitset_operand): New
19435         predicate.
19436         * config/s390/s390.md: Include subst.md.
19437         ("rotl<mode>3"): New expander.
19438         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
19439         ...
19440         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
19441         * config/s390/subst.md: New file.
19443 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19445         * config/s390/s390.md ("op_type", "atype", "length" attributes):
19446         Remove RRR type.  It doesn't really exist.
19447         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
19448         attributes.
19449         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
19450         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
19451         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
19452         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
19453         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
19454         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
19455         `enabled' attribute.
19457 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19459         * gensupport.c (process_substs_on_one_elem): Split loop to
19460         complete mark_operands_used_in_match_dup on all expressions in the
19461         vector first.
19462         (adjust_operands_numbers): Inline into process_substs_on_one_elem
19463         and remove function.
19465 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19467         PR target/69706
19468         * config/sparc/sparc.c (NWORDS_UP): Rename to...
19469         (CEIL_NWORDS): ...this.  Use CEIL macro.
19470         (compute_fp_layout): Adjust to above renaming.
19471         (function_arg_union_value): Likewise.
19472         (sparc_arg_partial_bytes): Likewise.
19473         (sparc_function_arg_advance): Likewise.
19475 2016-02-29  Jeff Law  <law@redhat.com>
19477         PR tree-optimization/70005
19478         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
19479         where an object with a boolean range is compared against a value
19480         outside [0..1].
19482         PR tree-optimization/69999
19483         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
19484         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
19485         loop cleanups.
19487 2016-02-29  Richard Biener  <rguenther@suse.de>
19489         PR tree-optimization/69994
19490         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
19491         (get_unary_op): Look through nop conversions.
19492         (ops_equal_values_p): New function, look for equality diregarding
19493         nop conversions.
19494         (eliminate_plus_minus_pair): Use ops_equal_values_p
19495         (repropagate_negates): Do not use get_unary_op here.
19497 2016-02-29  Martin Liska  <mliska@suse.cz>
19499         * system.h: Poison ENABLE_CHECKING macro.
19501 2016-02-29  Martin Liska  <mliska@suse.cz>
19503         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
19504         is presented in dump flags.
19505         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19506         (hsa_regalloc): Likewise.
19508 2016-02-19  Richard Biener  <rguenther@suse.de>
19510         PR tree-optimization/69980
19511         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
19512         permutation of those we need to keep.
19514 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
19516         PR target/69706
19517         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
19518         (NWORDS_UP): ...this
19519         (init_cumulative_args): Minor tweaks.
19520         (sparc_promote_function_mode): Likewise.
19521         (scan_record_type): Delete.
19522         (traverse_record_type): New function template.
19523         (classify_data_t): New structure type.
19524         (classify_registers): New inline function.
19525         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
19526         exhausted.  Instantiate traverse_record_type on classify_registers and
19527         deal with the case of a structure passed in slot #15 with no FP field
19528         in the first word.
19529         (assign_data_t): New structure type.
19530         (compute_int_layout): New static function.
19531         (compute_fp_layout): Likewise.
19532         (count_registers): New inline function.
19533         (assign_int_registers): New static function.
19534         (assign_fp_registers): Likewise.
19535         (assign_registers): New inline function.
19536         (function_arg_record_value_1): Delete.
19537         (function_arg_record_value_2): Likewise.
19538         (function_arg_record_value_3): Likewise.
19539         (function_arg_record_value): Adjust to above changes.  Instantiate
19540         traverse_record_type on count_registers to first count the number of
19541         registers to be used and then on assign_registers to assign them.
19542         (function_arg_union_value): Adjust to above renaming.
19543         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
19544         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
19545         case of a structure passed in slot #15
19546         (sparc_function_arg_advance): Likewise.
19547         (function_arg_padding): Minor tweak.
19549 2016-02-29  Richard Biener  <rguenther@suse.de>
19551         PR tree-optimization/69720
19552         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
19553         the adjustment_def path for possibly vectorized defs.
19554         (vect_create_epilog_for_reduction): Handle vectorized initial
19555         defs properly.
19557 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
19559         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
19561 2016-02-27  Jeff Law  <law@redhat.com>
19563         Revert
19564         2016-02-26  Richard Biener  <rguenther@suse.de>
19565                     Jeff Law  <law@redhat.com>
19567         PR tree-optimization/69740
19568         * cfghooks.c (remove_edge): Request loop fixups if we delete
19569         an edge that might turn an irreducible loop into a natural
19570         loop.
19572 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
19574         PR rtl-optimization/69896
19575         * tree-vect-generic.c (get_compute_type): Avoid single element
19576         vector types.
19578 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
19580         Rename the AArch64 tuning option and related functions to enable the
19581         Newton series for the reciprocal square root to reflect its
19582         approximative characteristic.
19584         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
19585         function to "aarch64_emit_approx_rsqrt".
19586         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
19587         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
19588         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
19589         (xgene1_tunings): Likewise.
19590         (use_rsqrt_p): Likewise.
19591         (aarch64_emit_swrsqrt): Use new function name.
19592         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
19593         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
19594         text explaining this option.
19595         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
19597 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
19599         PR target/69969
19600         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19601         complain about -mallow-movmisalign without -mvsx if
19602         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
19604 2016-02-26  Joel Sherrill  <joel@rtems.org>
19606         * config.gcc: Add x86_64-*-rtems*.
19607         * config/i386/rtems-64.h: New file.
19609 2016-02-26  Joel Sherrill  <joel@rtems.org>
19611         * config.gcc: Add aarch64-*-rtems*.
19612         * config/aarch64/rtems.h: New file.
19614 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
19616         PR target/69946
19617         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
19618         shift amount using %h.  Add comment.
19620 2016-02-26  Richard Biener  <rguenther@suse.de>
19621             Jeff Law  <law@redhat.com>
19623         PR tree-optimization/69740
19624         * cfghooks.c (remove_edge): Request loop fixups if we delete
19625         an edge that might turn an irreducible loop into a natural
19626         loop.
19628 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19630         PR middle-end/69920
19631         * tree-sra.c (sra_modify_assign): Do not remove loads of
19632         uninitialized aggregates to SSA_NAMEs.
19634 2016-02-26  Richard Henderson  <rth@redhat.com>
19636         PR target/69709
19637         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
19638         pseudo in case the target rtx matches the source of the left
19639         shift.
19641 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19643         PR hsa/69568
19644         * hsa.h (hsa_type_packed_p): Declare.
19645         * hsa.c (hsa_type_packed_p): New function.
19646         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
19647         loads.
19648         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
19649         * hsa-brig.c (emit_basic_insn): Likewise.
19651 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19653         pr hsa/69674
19654         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
19655         pointers.
19656         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
19658 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19660         * hsa.h (is_a_helper): New overload for hsa_op_immed for
19661         hsa_op_with_type operands.
19662         (hsa_unsigned_type_for_type): Declare.
19663         * hsa.c (hsa_unsigned_type_for_type): New function.
19664         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
19665         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
19666         the finalizer.  Do not emit extra move.
19668 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19670         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
19671         atomic operations in private segment.
19673 2016-02-26  Martin Jambor  <mjambor@suse.cz>
19675         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
19676         statements to wi->info.  Also disallow omp simd constructs.
19677         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
19678         for not gridifying.  Dump special string for omp_for.
19680 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19682         PR target/69245
19683         * config/aarch64/aarch64.c (aarch64_set_current_function):
19684         Save/restore target globals when switching to
19685         target_option_default_node.
19687 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19689         PR target/69613
19690         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
19691         Return 0 if !SHIFT_COUNT_TRUNCATED.
19693 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
19694             Eric Botcazou  <ebotcazou@adacore.com>
19696         PR rtl-optimization/69891
19697         * dse.c (scan_insn): If we can't figure out memset arguments
19698         or they are non-constant, call clear_rhs_from_active_local_stores.
19700 2016-02-26  Martin Liska  <mliska@suse.cz>
19702         * doc/extend.texi: Mention clog10, clog10f an clog10l
19703         in Builtins section.
19705 2016-02-26  Martin Liska  <mliska@suse.cz>
19707         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
19708         CHECKING_P.
19709         (resolve_args_picking_1): Likewise.
19710         * dwarf2out.h (struct GTY): Likewise.
19712 2016-02-26  Martin Liska  <mliska@suse.cz>
19714         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
19715         with flag_checking.
19716         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
19718 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
19719             Martin Liska  <mliska@suse.cz>
19721         * doc/install.texi: Mention --enable-valgrind-annotations.
19723 2016-02-26  Richard Biener  <rguenther@suse.de>
19725         PR tree-optimization/69551
19726         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
19727         looking through aliases adjust DECL_PT_UID to refer to the
19728         ultimate alias target.
19730 2016-02-25  Martin Liska  <mliska@suse.cz>
19732         PR middle-end/69919
19733         * alloc-pool.c (after_memory_report): New variable.
19734         * alloc-pool.h (base_pool_allocator ::release): Do not use
19735         the infrastructure if after_memory_report.
19736         * toplev.c (toplev::main): Mark after memory report.
19738 2016-02-25  Richard Biener  <rguenther@suse.de>
19740         PR tree-optimization/48795
19741         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
19743 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
19745         PR driver/68463
19746         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
19747         offloading is enabled and -fopenacc or -fopenmp is specified.
19748         (CRTOFFLOADEND): Likewise.
19749         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
19750         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
19751         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
19752         (offload_objects_file_name): New static var.
19753         (tool_cleanup): Remove offload_objects_file_name file.
19754         (find_offloadbeginend): Replace with ...
19755         (find_crtoffloadtable): ... this.
19756         (run_gcc): Remove offload_argc and offload_argv.
19757         Get offload_objects_file_name from -foffload-objects=... option.
19758         Read names of object files with offload from this file, pass them to
19759         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
19760         don't pass offloadbegin and offloadend to the linker.  Don't pass
19761         offload non-LTO files to the linker, because now they're not claimed.
19763 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
19765         PR ipa/69630
19766         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
19767         on builtin_unreachable.
19769 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
19771         PR rtl-optimization/69896
19772         * regcprop.c: Include cfgrtl.h.
19773         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
19774         than remembered mode, either delete it (if noop_move_p), or
19775         treat like copy_p but not noop_p instruction.
19777 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19779         PR debug/69705
19780         * dwarf2out.c (gen_variable_die): Work around buggy LTO
19781         - allow NULL decl for Fortran DW_TAG_common_block variables.
19783 2016-02-24  Jason Merrill  <jason@redhat.com>
19785         * common.opt (flifetime-dse): Add -flifetime-dse=1.
19787 2016-02-24  Richard Biener  <rguenther@suse.de>
19788             Jakub Jelinek  <jakub@redhat.com>
19790         PR middle-end/69760
19791         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
19792         conditionally executed ops to well-defined overflow behavior.
19794 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19796         PR middle-end/69915
19797         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
19798         elements.
19800 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19802         PR rtl-optimization/69886
19803         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
19804         argument.  Use it when checking validity of set instructions.
19805         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
19806         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
19807         callsite.
19808         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
19809         * store-motion.c (find_moveable_store): Update
19810         can_assign_to_reg_without_clobbers_p callsite.
19812 2016-02-24  Richard Biener  <rguenther@suse.de>
19814         PR middle-end/68963
19815         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
19816         bogus check.
19817         (record_nonwrapping_iv): Do not fall back to the low/high bound
19818         for non-constant IV bases if the stmt is not always executed.
19820 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19822         * config/arm/arm-cores.def (cortex-a32): New entry.
19823         * config/arm/arm-tables.opt: Regenerate.
19824         * config/arm/arm-tune.md: Regenerate.
19825         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
19826         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
19827         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
19828         for -mcpu and -mtune.
19830 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19832         PR target/69875
19833         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
19834         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
19835         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
19836         (atomic_loaddi_1): Delete.
19837         (atomic_loaddi): Rewrite expander using the above changes.
19839 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19841         PR c/69918
19842         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
19843         2 to 3.
19845 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
19846             Richard Biener  <rguenth@suse.de>
19848         PR middle-end/69909
19849         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
19850         set_mem_attributes if tem is SSA_NAME which got expanded
19851         as a MEM.
19853 2016-02-24  Richard Biener  <rguenther@suse.de>
19855         PR tree-optimization/69907
19856         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
19857         end of permutations for BB vectorization.
19859 2016-02-24  Christian Bruel  <christian.bruel@st.com>
19861         * config/arm/arm-c.c (arm_option_override): Initialize
19862         target_option_current_node.
19863         * config/arm/arm.c (arm_pragma_target_parse): Replace
19864         build_target_option_node call by target_option_current_node.
19865         Set target_option_current_node.
19866         Fix comments.
19868 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
19870         PR target/69810
19871         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
19872         define_insn_and_split to define_insn.
19873         (zero_extendqi<mode>2_dot2): Same.
19874         (extendqi<mode>2_dot): Same.
19875         (extendqi<mode>2_dot2): Same.
19877 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
19879         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
19880         and add bypass for AES{D,E} and AESMC pairs.
19881         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
19882         and AESMC pairs.
19884 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
19886         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
19887         series for reciprocal square root in Exynos M1.
19889 2016-02-23  Martin Sebor  <msebor@redhat.com>
19891         PR c/69759
19892         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
19893         __builtin_alloca_with_align.
19895 2016-02-23  Richard Henderson  <rth@redhat.com>
19897         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
19898         (ix86_register_pragmas): Remove __seg_tls.
19899         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
19900         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
19901         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
19902         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
19903         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
19904         * doc/extend.texi (__seg_tls): Remove item.
19906 2016-02-23  Richard Biener  <rguenther@suse.de>
19908         * alloc-pool.h (struct allocation_object): Make id member
19909         conditional on CHECKING_P again.
19910         (get_instance): Adjust.
19911         (base_pool_allocator): Likewise.
19913 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
19915         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
19916         (parallelize_loops): In OpenACC kernels mode, set n_threads to
19917         zero.
19918         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
19919         flag_openacc.
19920         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
19922 2016-02-23  Richard Biener  <rguenther@suse.de>
19924         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
19925         * bitmap.h (struct bitmap_usage): Likewise.
19926         (bitmap_move): Declare.
19927         * bitmap.c (register_overhead): Take size_t argument.
19928         (bitmap_move): New function.
19929         * df-problems.c (df_rd_transfer_function): Use bitmap_move
19930         to properly account overhead.
19931         * tree.c (free_node): Use tree_size.
19933 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
19935         PR c++/69902
19936         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
19937         when inverting comparison.
19939         PR c/69900
19940         * common.opt (Wunreachable-code): Add Warning flag.
19942 2016-02-23  Mark Wielaard  <mjw@redhat.com>
19943             Jakub Jelinek  <jakub@redhat.com>
19945         PR c/69911
19946         * cgraphunit.c (check_global_declaration): Check main_input_filename
19947         and DECL_SOURCE_FILE are not NULL.
19949 2016-02-23  Martin Jambor  <mjambor@suse.cz>
19951         PR tree-optimization/69666
19952         * tree-sra.c (sra_modify_assign): Do not attempt to create
19953         default_def replacements for unscalarizable regions.
19955 2016-02-20  Mark Wielaard  <mjw@redhat.com>
19957         PR c/28901
19958         * cgraphunit.c (check_global_declaration): Check level of
19959         warn_unused_const_variable and main_input_filename.
19960         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
19961         (-Wunused-variable): For C implies -Wunused-const-variable=1.
19962         (-Wunused-const-variable): Explain levels 1 and 2.
19964 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
19966         PR target/69888
19967         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
19968         identical arguments.  Formatting and spelling fixes.
19970         PR target/69885
19971         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
19972         be specified.
19974         PR target/69894
19975         PR target/69895
19976         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
19977         and m68k-devices.def.
19978         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
19979         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
19981 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
19983         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
19984         and HImode registers.
19986 2016-02-22  Richard Biener  <rguenther@suse.de>
19988         PR tree-optimization/69882
19989         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
19990         preserve permutations present because of gaps.
19991         (vect_supported_load_permutation_p): Always continue checking
19992         permutations after vect_attempt_slp_rearrange_stmts.
19994 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
19996         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
19997         min_profitable_estimate, rather than min_profitable_iters.
19999 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
20001         PR target/69885
20002         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
20003         SImode for last match_operand.
20005 2016-02-22  Martin Liska  <mliska@suse.cz>
20007         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
20008         return bitsize - 1 as the return value.
20010 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
20012         PR target/69806
20013         PR target/54089
20014         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
20015         Handle negative shift counts.
20016         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
20017         force_reg on the shift constant.
20018         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
20019         (lshrsi3_d): Handle negative shift counts.
20021 2016-02-22  Richard Biener  <rguenther@suse.de>
20022             Tom de Vries  <tom@codesourcery.com>
20024         * graph.c: Include dumpfile.h.
20025         (print_graph_cfg): Split into three overloads.
20026         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
20028 2016-02-22  Tom de Vries  <tom@codesourcery.com>
20030         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
20031         dump-fn.
20033 2016-02-22  Richard Biener  <rguenther@suse.de>
20035         PR ipa/37448
20036         * ipa-inline-transform.c (inline_call): When not updating
20037         overall summaries adjust self size by the growth estimate.
20038         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
20039         hash-set, do not update overall summaries here.  Renamed from ...
20040         (inline_to_all_callers): ... this which is now wrapping the
20041         above and performing delayed overall summary update.
20042         (early_inline_small_functions): Delay updating of the overall
20043         summary.
20045 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
20047         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
20048         variable.
20050 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20052         PR driver/69805
20053         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
20054         :%* in %:gt() argument.
20055         (greater_than_spec_func): Adjust for expecting only numbers,
20056         if there are more than two numbers, compare the last two.
20058 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
20060         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
20061         -Wnarrowing with -std.
20063 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
20065         PR c++/69851
20066         * expr.c (store_field): Don't use bit-field path if exp is
20067         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
20068         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
20069         and the assignment can be performed by bitwise copy.  Formatting
20070         fix.
20072         PR middle-end/69838
20073         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
20074         call copy_reg_eh_region_note_forward on before and/or after sequences
20075         and remove note from insn if it no longer can throw.
20077         PR target/69820
20078         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
20079         if TARGET_AVX512BW.
20081 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20083         * config/s390/vector.md: Add missing commutative operand markers
20084         to the patterns which qualify for one.
20085         * config/s390/vx-builtins.md: Likewise.
20087 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20089         * config/s390/vector.md (VI, VI_QHS): Add single element vector
20090         types to mode iterators.
20091         (vec_double): ... and mode attribute.
20092         * config/s390/vx-builtins.md (non_vec_int): Likewise.
20094 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20096         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
20097         Change the predicate of op2 from nonimmediate to general and let
20098         reload fix it if necessary.
20100 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20102         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
20104 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20106         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
20107         mode.
20109 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20111         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
20112         * config/s390/s390.c (s390_expand_vec_movstr): New function.
20113         * config/s390/s390.md ("movstr<P:mode>"): Call
20114         s390_expand_vec_movstr.
20116 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20118         * config/s390/s390.md: Add missing output modifier for operand 1
20119         to print it as address properly.
20121 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20123         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
20124         * config/s390/2964.md: New file.
20125         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
20126         of insn grouping attributes depending on the CPU level.
20127         (s390_get_unit_mask): New function.
20128         (s390_sched_score): Remove the OOO from the scheduling macros.
20129         Add loop to calculate a score for the instruction mix.
20130         (s390_sched_reorder): Likewise plus improve debug output.
20131         (s390_sched_variable_issue): Rename macros as above.  Calculate
20132         the unit distances after actually scheduling an insn.  Improve
20133         debug output.
20134         (s390_sched_init): Clear last_scheduled_unit_distance array.
20135         * config/s390/s390.md: Include 2964.md.
20137 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20139         PR target/69671
20140         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
20141         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
20142         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
20143         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
20144         *avx512f_<code>v8div16qi2_mask_1): New insns.
20146 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20148         PR target/68404
20149         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
20150         2016-02-09 change.
20152         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
20153         earlyclobber from target.  Use wF constraint for fused memory
20154         address.
20155         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
20157 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
20158             Martin Liska  <mliska@suse.cz>
20160         PR sanitizer/69863
20161         * cfgexpand.c (asan_sanitize_stack_p): New function.
20162         (partition_stack_vars): Use the function.
20163         (expand_stack_vars): Likewise.
20164         (defer_stack_allocation): Likewise.
20165         (expand_used_vars): Likewise.
20167 2016-02-18  Richard Biener  <rguenther@suse.de>
20169         PR middle-end/69553
20170         * fold-const.c (operand_equal_p): Properly compare offsets for
20171         IMAGPART_EXPR and ARRAY_REF.
20173 2016-02-18  Nick Clifton  <nickc@redhat.com>
20175         PR target/62254
20176         PR target/69610
20177         * config/arm/arm.c (arm_option_override_internal): Disable
20178         interworking if the target does not support thumb instructions.
20179         (arm_reload_in_hi): Handle the case where a register to register
20180         move needs reloading because there is no simple pattern to handle
20181         it.
20182         (arm_reload_out_hi): Likewise.
20184 2016-02-18  Richard Biener  <rguenther@suse.de>
20186         PR middle-end/69854
20187         * match.pd: Don't use fold_binary or fold_unary for folding
20188         constants.
20190 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
20192         PR c++/69850
20193         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
20194         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
20195         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
20196         warn on gimple_no_warning_p statements.
20198 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
20200         * doc/extend.texi (C++ Attributes): Correct description of
20201         warn_unused type attribute.
20203 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20205         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
20206         correct instruction.
20208 2016-02-17  Richard Biener  <rguenther@suse.de>
20210         PR rtl-optimization/69609
20211         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
20212         (find_traces_1_round): When ending a trace update cached priority
20213         of successors.
20214         (bb_to_key): Use cached priority when available.
20215         (copy_bb): Initialize cached priority.
20216         (reorder_basic_blocks_software_trace_cache): Likewise.
20218 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20220         PR target/69161
20221         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
20222         New predicate.
20223         (aarch64_comparison_operator): Break overly long line into two.
20224         (aarch64_comparison_operation): Likewise.
20225         * config/aarch64/aarch64.md (cstorecc4): Use
20226         aarch64_comparison_operator_mode instead of
20227         aarch64_comparison_operator.
20228         (cstore<mode>4): Likewise.
20229         (aarch64_cstore<mode>): Likewise.
20230         (*cstoresi_insn_uxtw): Likewise.
20231         (cstore<mode>_neg): Likewise.
20232         (*cstoresi_neg_uxtw): Likewise.
20234 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20236         PR target/69161
20237         * config/arm/predicates.md (arm_comparison_operator_mode):
20238         New predicate.
20239         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
20240         instead of arm_comparison_operator.
20241         (*mov_negscc): Likewise.
20242         (*mov_notscc): Likewise.
20243         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
20244         (*thumb2_mov_negscc): Likewise.
20245         (*thumb2_mov_negscc_strict_it): Likewise.
20246         (*thumb2_mov_notscc): Likewise.
20247         (*thumb2_mov_notscc_strict_it): Likewise.
20249 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
20251         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
20252         Add missing return.
20254 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
20256         * config/visium/visium.c (machine_libfunc_index): New enum.
20257         (machine_libfuncs): New structure.
20258         (visium_libfuncs): New static variable.
20259         (TARGET_INIT_LIBFUNCS): Define to...
20260         (visium_init_libfuncs): ...this.  New function.
20261         (expand_block_move_4): Use the appropriate libfunc.
20262         (expand_block_move_2): Likewise.
20263         (expand_block_move_1): Likewise.
20264         (expand_block_set_4): Likewise.
20265         (expand_block_set_2): Likewise.
20266         (expand_block_set_1): Likewise.
20267         (visium_trampoline_init): Likewise.
20269 2016-02-17  Nick Clifton  <nickc@redhat.com>
20271         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
20272         TI's devices.csv file as of March 2016.
20274 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20276         PR Target/48344
20277         * opts-global.c (handle_common_deferred_options): Introduce and
20278         initialize two global variables to remember command-line options
20279         specifying a stack-limiting register.
20280         * opts.h: Add extern declarations of the two new global variables.
20281         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
20282         variable based on the values of the two new global variables.
20284 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20286         PR c/69835
20287         * common.opt (Wnonnull-compare): New warning.
20288         * doc/invoke.texi (-Wnonnull): Remove text about comparison
20289         of arguments against NULL.
20290         (-Wnonnull-compare): Document.
20291         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
20292         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
20293         * passes.def (pass_warn_nonnull_compare): Add.
20294         * gimple-ssa-nonnull-compare.c: New file.
20296 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20298         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
20299         AARCH64_EXTRA_TUNE_RECIP_SQRT.
20301 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20303         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
20304         reciprocal sqrt for -mlow-precision-recip-sqrt.
20306 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20307             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20309         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
20310         always use lane loads to construct non-constant vectors.
20312 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20314         * config/aarch64/aarch64.md
20315         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
20316         constraints for operand 3.
20317         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
20319 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20320             Richard Biener  <rguenther@suse.de>
20322         PR tree-optimization/69820
20323         * tree-vect-patterns.c (type_conversion_p): Return false if
20324         *orig_type is unsigned single precision or boolean.
20325         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
20326         Formatting fix.
20328 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20330         PR rtl-optimization/69764
20331         PR rtl-optimization/69771
20332         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
20333         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
20335 2016-02-16  Richard Biener  <rguenther@suse.de>
20337         PR tree-optimization/69776
20338         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
20339         sets from caller.
20340         (indirect_refs_may_alias_p): Likewise.
20341         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
20342         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
20343         according to tbaa_p.
20344         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
20345         (optimize_stmt): For redundant store discovery do not allow tbaa.
20347 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
20349         PR tree-optimization/69714
20350         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
20351         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
20353 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
20355         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
20356         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
20357         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
20358         * config/arc/arc.c (arc_init): Check FPU options.
20359         (get_arc_condition_code): Handle new CC_FPU* modes.
20360         (arc_select_cc_mode): Likewise.
20361         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
20362         register pair only. Allow access for ARCv2 accumulator.
20363         (gen_compare_reg): Whenever we have FPU support use FPU compare
20364         instructions.
20365         (arc_reorg): Don't generate brcc insns when FPU compare
20366         instructions are involved.
20367         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
20368         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
20369         floating point emulation.
20370         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
20371         (REVERSE_CONDITION): Add new CC_FPU* modes.
20372         (TARGET_FP_SP_BASE): Define.
20373         (TARGET_FP_DP_BASE): Likewise.
20374         (TARGET_FP_SP_FUSED): Likewise.
20375         (TARGET_FP_DP_FUSED): Likewise.
20376         (TARGET_FP_SP_CONV): Likewise.
20377         (TARGET_FP_DP_CONV): Likewise.
20378         (TARGET_FP_SP_SQRT): Likewise.
20379         (TARGET_FP_DP_SQRT): Likewise.
20380         (TARGET_FP_DP_AX): Likewise.
20381         * config/arc/arc.md (ARCV2_ACC): New constant.
20382         (type): New fpu type attribute.
20383         (SDF): Conditional iterator.
20384         (cstore<mode>, cbranch<mode>): Change expand condition.
20385         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
20386         handles FPU/FPX cases as well.
20387         * config/arc/arc.opt (mfpu): New option.
20388         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
20389         Renamed.
20390         (adddf3, muldf3, subdf3): Removed.
20391         * config/arc/predicates.md (proper_comparison_operator): Recognize
20392         CC_FPU* modes.
20393         * config/arc/fpu.md: New file.
20394         * doc/invoke.texi (ARC Options): Document mfpu option.
20396 2016-02-16  Richard Biener  <rguenther@suse.de>
20398         PR rtl-optimization/69291
20399         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
20400         noce_operand_ok check.
20402 2016-02-16  Tom de Vries  <tom@codesourcery.com>
20404         PR lto/67709
20405         * omp-low.c (simd_clone_create): Remove call to
20406         symtab->call_cgraph_insertion_hooks.
20408 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
20410         PR tree-optimization/69802
20411         * tree-ssa-reassoc.c (update_range_test): If op is
20412         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
20413         op == 1 test of precision 1 integral op, otherwise handle
20414         that case as op itself.  Fix up formatting.
20415         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
20416         up formatting.
20418 2016-02-16  Richard Biener  <rguenther@suse.de>
20420         PR tree-optimization/69586
20421         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
20422         types for conversion sources.
20424 2016-02-16  Richard Biener  <rguenther@suse.de>
20426         PR middle-end/69801
20427         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
20428         mask OEP_ADDRESS_OF.
20430 2016-02-16  Alan Modra  <amodra@gmail.com>
20432         PR target/68973
20433         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
20434         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
20435         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
20436         (p8_mtvsrwz): New.
20437         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
20438         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
20439         (p8_fmrgow_<mode>): Likewise.
20440         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
20441         changes.
20442         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
20443         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
20444         to use movdi_internal64.  Remove op0_di.
20445         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
20447 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
20449         Add support for the FCCMP insn types
20451         * config/aarch64/aarch64.md (fccmp): Change insn type.
20452         (fccmpe): Likewise.
20453         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
20454         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
20455         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
20456         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
20457         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
20458         * config/arm/types.md (fccmps): Add new insn type.
20459         (fccmpd): Likewise.
20461 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20463         * alias.c (get_alias_set): Fix a typo in comment.
20465 2016-02-15  Richard Biener  <rguenther@suse.de>
20467         PR tree-optimization/69595
20468         * match.pd: Complete range test simplification to true.
20470 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
20472         PR rtl-optimization/69648
20473         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
20474         pic_offset_table_rtx.
20476         PR rtl-optimization/69752
20477         * ira.c (update_equiv_regs): When looking for more than a single SET,
20478         also take other side effects into account.
20480 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20482         * config/s390/s390.c (s390_function_profiler): Add a new sequence
20483         for z900+ CPUs in 31-bit mode.
20485 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
20487         * common/config/s390/s390-common.c (s390_supports_split_stack):
20488         New function.
20489         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
20490         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
20491         * config/s390/s390.c (struct machine_function): New field
20492         split_stack_varargs_pointer.
20493         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
20494         in s390_emit_prologue.
20495         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
20496         vararg pointer.
20497         (morestack_ref): New global.
20498         (SPLIT_STACK_AVAILABLE): New macro.
20499         (s390_expand_split_stack_prologue): New function.
20500         (s390_live_on_entry): New function.
20501         (s390_va_start): Use split-stack vararg pointer if appropriate.
20502         (s390_asm_file_end): Emit the split-stack note sections.
20503         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
20504         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
20505         (UNSPECV_SPLIT_STACK_CALL): New unspec.
20506         (UNSPECV_SPLIT_STACK_DATA): New unspec.
20507         (split_stack_prologue): New expand.
20508         (split_stack_space_check): New expand.
20509         (split_stack_data): New insn.
20510         (split_stack_call): New expand.
20511         (split_stack_call_*): New insn.
20512         (split_stack_cond_call): New expand.
20513         (split_stack_cond_call_*): New insn.
20515 2016-02-15  Richard Biener  <rguenther@suse.de>
20517         PR tree-optimization/69783
20518         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20519         Add trivially correct cases.
20521 2016-02-15  Tom de Vries  <tom@codesourcery.com>
20523         PR lto/69655
20524         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
20525         do_force_output.
20526         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
20528 2016-02-15  Richard Biener  <rguenther@suse.de>
20530         PR tree-optimization/69776
20531         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
20532         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
20533         indicate whether we can use TBAA to disambiguate against stores.
20534         Use alias-set zero if not.
20535         (visit_reference_op_store): Do not use TBAA when looking up
20536         redundant stores.
20537         * tree-ssa-pre.c (compute_avail): Use TBAA here.
20538         (eliminate_dom_walker::before_dom_children): But not when looking
20539         up redundant stores.
20541 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
20543         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
20545 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20547         *  config/i386/znver1.md
20548         (znver1_pop, znver1_pop_mem,
20549         znver1_load_imov_double_store,
20550         znver1_load_imov_direct_store,
20551         znver1_load_imov_direct_load,
20552         znver1_load_imov_double_load): Add new.
20553         (znver1_insn, znver1_insn_load): Add icmov type.
20554         (znver1_sseavx_fma,
20555         znver1_sseavx_fma_load,
20556         znver1_avx256_fma,
20557         znver1_avx256_fma_load): Fix pipe usage.
20559 2016-02-14  Alan Modra  <amodra@gmail.com>
20561         PR target/68973
20562         * reload.c (find_reloads_address_1): For pre/post-inc/dec
20563         with an invalid hard reg, reload just the reg not the entire
20564         pre/post-inc/dec address expression.
20566 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20568         PR target/67260
20569         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
20570         fixed R1_REG scratch reg.
20571         (sibcall_value_pcrel_fdpic): Likewise.
20573 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
20575         PR target/67636
20576         PR target/64345
20577         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
20579 2016-02-12  Walter Lee  <walt@tilera.com>
20581         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
20582         * config/tilegx/t-tilegx: Likewise.
20584 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20586         PR other/69554
20587         * diagnostic-show-locus.c (struct line_span): New struct.
20588         (layout::get_first_line): Delete.
20589         (layout::get_last_line): Delete.
20590         (layout::get_num_line_spans): New member function.
20591         (layout::get_line_span): Likewise.
20592         (layout::print_heading_for_line_span_index_p): Likewise.
20593         (layout::get_expanded_location): Likewise.
20594         (layout::calculate_line_spans): Likewise.
20595         (layout::m_first_line): Delete.
20596         (layout::m_last_line): Delete.
20597         (layout::m_line_spans): New field.
20598         (layout::layout): Update comment.  Replace m_first_line and
20599         m_last_line with m_line_spans, replacing their initialization
20600         with a call to calculate_line_spans.
20601         (diagnostic_show_locus): When printing source lines and
20602         annotations, rather than looping over a single span
20603         of lines, instead loop over each line_span within
20604         the layout, with an inner loop over the lines within them.
20605         Call the context's start_span callback when changing line spans.
20606         * diagnostic.c (diagnostic_initialize): Initialize start_span.
20607         (diagnostic_build_prefix): Break out the building of the location
20608         part of the string into...
20609         (diagnostic_get_location_text): ...this new function, rewriting
20610         it from nested ternary expressions to a sequence of "if"
20611         statements.
20612         (default_diagnostic_start_span_fn): New function.
20613         * diagnostic.h (diagnostic_start_span_fn): New typedef.
20614         (diagnostic_context::start_span): New field.
20615         (default_diagnostic_start_span_fn): New prototype.
20617 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20619         PR driver/69779
20620         * gcc.c (driver::finalize): Fix cleanup of "specs".
20622 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
20624         PR driver/69265
20625         PR driver/69453
20626         * gcc.c (driver::driver): Initialize m_option_suggestions.
20627         (driver::~driver): Clean up m_option_suggestions.
20628         (suggest_option): Convert to...
20629         (driver::suggest_option): ...this, and split out into
20630         driver::build_option_suggestions and find_closest_string.
20631         (driver::build_option_suggestions): New function, from
20632         first half of suggest_option.  Special-case
20633         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
20634         the sanitizer_opts array.  For options of enum types, add the
20635         various enum values to the candidate strings.
20636         (driver::handle_unrecognized_options): Remove "const".
20637         * gcc.h (driver::handle_unrecognized_options): Likewise.
20638         (driver::build_option_suggestions): New decl.
20639         (driver::suggest_option): New decl.
20640         (driver::m_option_suggestions): New field.
20641         * opts-common.c (add_misspelling_candidates): New function.
20642         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
20643         and make non-static.
20644         * opts.h (sanitizer_opts): New array decl.
20645         (add_misspelling_candidates): New function decl.
20646         * spellcheck.c (find_closest_string): New function.
20647         * spellcheck.h (find_closest_string): New function decl.
20649 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20651         PR rtl-optimization/69764
20652         PR rtl-optimization/69771
20653         * optabs.c (expand_binop_directly): For shift_optab_p, force
20654         convert_modes with VOIDmode if xop1 has VOIDmode.
20656 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
20658         PR target/69729
20659         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
20660         to correctly determine instrumentation thunks.
20662 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20664         PR ipa/69241
20665         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
20666         type by reference, force lhs on the call.
20668         PR ipa/68672
20669         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
20670         Compute retval and retbnd early in all cases if split_part_return_p
20671         and return_bb is not EXIT.  Remove all clobber stmts and reset
20672         all debug stmts that refer to SSA_NAMEs defined in split part,
20673         except if it is retval, in that case replace the old retval with the
20674         lhs of the call to the split part.
20676 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20678         revert:
20679         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20681         PR middle-end/66726
20682         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20683         whose result is used in PHI.
20684         (maybe_optimize_range_tests): Likewise.
20685         (final_range_test_p): Likweise.
20687 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
20689         PR middle-end/66726
20690         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
20691         whose result is used in PHI.
20692         (maybe_optimize_range_tests): Likewise.
20693         (final_range_test_p): Likweise.
20695 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
20697         * cgraph.c: Spelling fixes - behaviour -> behavior and
20698         neighbour -> neighbor.
20699         * target.def: Likewise.
20700         * sel-sched.c: Likewise.
20701         * config/mips/mips.c: Likewise.
20702         * config/arc/arc.md: Likewise.
20703         * config/arm/cortex-a57.md: Likewise.
20704         * config/arm/arm.c: Likewise.
20705         * config/arm/neon.md: Likewise.
20706         * config/arm/arm-c.c: Likewise.
20707         * config/vms/vms-c.c: Likewise.
20708         * config/s390/s390.c: Likewise.
20709         * config/i386/znver1.md: Likewise.
20710         * config/i386/i386.c: Likewise.
20711         * config/ia64/hpux-unix2003.h: Likewise.
20712         * config/msp430/msp430.md: Likewise.
20713         * config/rx/rx.c: Likewise.
20714         * config/rx/rx.md: Likewise.
20715         * config/aarch64/aarch64-simd.md: Likewise.
20716         * config/aarch64/aarch64.c: Likewise.
20717         * config/nvptx/nvptx.c: Likewise.
20718         * config/bfin/bfin.c: Likewise.
20719         * config/cris/cris.opt: Likewise.
20720         * config/rs6000/rs6000.c: Likewise.
20721         * target.h: Likewise.
20722         * spellcheck.c: Likewise.
20723         * ira-build.c: Likewise.
20724         * tree-inline.c: Likewise.
20725         * builtins.c: Likewise.
20726         * lra-constraints.c: Likewise.
20727         * explow.c: Likewise.
20728         * hwint.h: Likewise.
20729         * targhooks.c: Likewise.
20730         * tree-vect-data-refs.c: Likewise.
20731         * expr.c: Likewise.
20732         * doc/tm.texi: Likewise.
20733         * doc/extend.texi: Likewise.
20734         * doc/install.texi: Likewise.
20735         * doc/md.texi: Likewise.
20736         * tree-ssa-tail-merge.c: Likewise.
20737         * sched-int.h: Likewise.
20738         * match.pd: Likewise.
20739         * sched-ebb.c: Likewise.
20740         * target.def (omit_struct_return_reg): Likewise.
20741         * gimple-ssa-isolate-paths.c: Likewise.
20742         (find_implicit_erroneous_behaviour): Renamed to...
20743         (find_implicit_erroneous_behavior): ... this.
20744         (find_explicit_erroneous_behaviour): Renamed to...
20745         (find_explicit_erroneous_behavior): ... this.
20746         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
20748 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
20750         PR rtl-optimization/64682
20751         PR rtl-optimization/69567
20752         PR rtl-optimization/69737
20753         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
20754         in I2 as well, just lose it.
20756 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20758         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
20759         New variable.
20760         (aarch64_last_printed_tune_string): Likewise.
20761         (aarch64_declare_function_name): Only output .arch assembler
20762         directive if it will be different from the previously output
20763         directive.  Same for .tune comment but only if -dA is set.
20764         (aarch64_start_file): New function.
20765         (TARGET_ASM_FILE_START): Define.
20767 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
20769         PR plugins/69758
20770         * Makefile.in (PLUGIN_HEADERS): Add params.list.
20772 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
20774         PR target/65313
20775         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
20776         -Wmaybe-uninitialized warning.
20778 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
20780         PR target/69713
20781         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
20783 2016-02-11  Richard Biener  <rguenther@suse.de>
20785         PR rtl-optimization/69291
20786         * ifcvt.c (noce_try_store_flag_constants): Do not allow
20787         subexpressions affected by changing the result.
20789 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
20791         PR target/69148
20792         * lra-constraints.c (curr_insn_transform): Find in/out operands
20793         for secondary memory moves.  Update dups.
20795 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
20797         PR tree-optimization/69652
20798         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
20799         to nested loop, did source re-formatting, skip debug statements,
20800         add check on statement with volatile operand, remove dead scalar
20801         statements.
20803 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
20804             Patrick Palka  <ppalka@gcc.gnu.org>
20806         PR ipa/69241
20807         PR c++/69649
20808         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
20809         calls if the return type is TREE_ADDRESSABLE.
20810         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
20811         * ipa-split.c (split_function): Fix doubled "we" in comment.
20812         Use void return type for the split part even if
20813         !split_point->split_part_set_retval.
20815 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
20817         PR tree-optimization/68021
20818         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
20819         when computing the value of biv cand by itself.
20821 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
20823         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
20824         (cortexa57_tunings): Likewise.
20825         (cortexa72_tunings): Likewise.
20826         (arch_macro_fusion_pair_p): Add support for AES fusion.
20827         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
20828         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
20829         Allow virtual registers before reload so early scheduling works.
20830         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
20831         correct latency and pipeline.
20832         (cortex_a57_crypto_complex): Likewise.
20833         (cortex_a57_crypto_xor): Likewise.
20834         (define_bypass): Add AES bypass.
20836 2016-02-10  Richard Biener  <rguenther@suse.de>
20838         PR tree-optimization/69726
20839         * passes.def: Add DCE pass before late uninit.
20840         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
20841         really fixup if-conversions job.
20843 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
20845         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
20846         (arm_cortex_a57_tune): Likewise.
20847         (aarch_macro_fusion_pair_p): Add support for AES fusion.
20848         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
20850 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
20852         * timevar.def (TV_PHASE_DBGINFO): Delete.
20853         (TV_PHASE_CHECK_DBGINFO): Likewise.
20854         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
20856 2016-02-10  Richard Biener  <rguenther@suse.de>
20858         PR tree-optimization/69719
20859         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
20860         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
20862 2016-02-09  Andrew Pinski  <apinski@cavium.com>
20864         PR tree-opt/69282
20865         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
20866         get_vcond_mask_icode returns false.
20868 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
20870         PR target/68404
20871         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
20872         an ADDIS that adds a pointer to a large constant that sets the
20873         upper16 bits with a load operation.
20875 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
20877         PR target/68532
20878         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
20879         order.
20880         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
20881         endian.
20882         (vzipq_s16): Likewise.
20883         (vzipq_s32): Likewise.
20884         (vzipq_f32): Likewise.
20885         (vzipq_u8): Likewise.
20886         (vzipq_u16): Likewise.
20887         (vzipq_u32): Likewise.
20888         (vzipq_p8): Likewise.
20889         (vzipq_p16): Likewise.
20891 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
20893         PR target/68532
20894         * config/arm/arm.c (neon_endian_lane_map): New function.
20895         (neon_vector_pair_endian_lane_map): New function.
20896         (arm_evpc_neon_vuzp): Allow for big endian lane order.
20897         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
20898         endian.
20899         (vuzpq_s16): Likewise.
20900         (vuzpq_s32): Likewise.
20901         (vuzpq_f32): Likewise.
20902         (vuzpq_u8): Likewise.
20903         (vuzpq_u16): Likewise.
20904         (vuzpq_u32): Likewise.
20905         (vuzpq_p8): Likewise.
20906         (vuzpq_p16): Likewise.
20908 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
20910         PR target/69634
20911         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
20912         debug insns.
20914 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
20916         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
20917         truncate const_int operand 1 to QImode.
20919 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
20921         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
20922         corresponding to an abnormal edge.
20924 2016-02-09  Tom de Vries  <tom@codesourcery.com>
20926         PR tree-optimization/69599
20927         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
20928         function.
20929         (find_func_aliases_for_builtin_call, find_func_clobbers)
20930         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
20931         partition.
20933 2016-02-09  Richard Biener  <rguenther@suse.de>
20935         PR tree-optimization/69715
20936         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
20937         LHS on calls as non-rewritable.
20939 2016-02-09  Tom de Vries  <tom@codesourcery.com>
20941         PR lto/69707
20942         * lto-wrapper.c (append_diag_options): New function.
20943         (compile_offload_image): Call append_diag_options.
20945 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
20947         PR other/69722
20948         * doc/extend.texi (Flag Output Operands): Correct sectioning.
20949         Minor copy-edit to fix verb tenses.
20951 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
20953         PR tree-optimization/69209
20954         * ipa-split.c (split_function): If split part is not
20955         returning retval, retval has gimple type but is not
20956         gimple value, force it into a SSA_NAME first.
20958 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
20960         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
20961         outdated section.
20963 2016-02-08  Jason Merrill  <jason@redhat.com>
20965         PR c++/69631
20966         * convert.c (convert_to_integer_1): Check dofold on truncation
20967         distribution.
20968         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
20969         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
20970         Rename from *_nofold.
20971         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
20972         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
20974 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
20976         PR target/60410
20977         * tree.c (build_common_tree_nodes): Remove short_double argument.
20978         All callers changed.
20979         * tree.h (build_common_tree_nodes): Adjust declaration.
20980         * doc/invoke.texi (-fshort-double): Remove documentation.
20981         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
20982         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
20983         * lto-wrapper.c (merge_and_complain, append_compiler_options)
20984         (append_linker_options): Don't handle OPT_fshort_double.
20986         PR rtl-optimization/68730
20987         * lra-remat.c (insn_to_cand_activation): New static variable.
20988         (lra_remat): Allocate and free it.
20989         (create_cand): New arg activation. Initialize a field in
20990         insn_to_cand_activation if it is nonnull.
20991         (create_cands): Pass the activation insn to create_cand when making
20992         a candidate involving an output reload.  Reorganize code a little.
20993         (do_remat): Keep track of active status of candidates in a separate
20994         bitmap.
20996 2016-02-08  Richard Biener  <rguenther@suse.de>
20998         PR tree-optimization/69719
20999         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21000         Properly use absolute of the difference of the two offsets to
21001         compare or adjust the segment length.
21003 2016-02-08  Richard Biener  <rguenther@suse.de>
21004             Jeff Law  <law@redhat.com>
21006         PR target/68273
21007         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
21008         types for anonymous SSA names.
21010 2016-02-08   Richard Biener  <rguenther@suse.de>
21012         PR rtl-optimization/69274
21013         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
21015 2016-02-08  Jeff Law  <law@redhat.com>
21017         PR tree-optimization/65917
21018         * tree-ssa-dom.c (record_temporary_equivalences): Record both
21019         equivalences from if (x == y) style conditionals.
21020         (loop_depth_of_name): Remove.
21021         (record_equality): Remove loop depth check.
21022         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
21023         (const_and_copies::record_const_or_copy_raw): New member function.
21024         * tree-ssa-scopedtables.c
21025         (const_and_copies::record_const_or_copy_raw): New, factored out of
21026         (const_and_copies::record_const_or_copy): Call new member function.
21028 2016-02-05  Jeff Law  <law@redhat.com>
21030         PR tree-optimization/68541
21031         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
21032         (count_stmts_in_block): New function.
21033         (poor_ifcvt_candidate_code): Likewise.
21034         (is_feasible_trace): Add some heuristics to determine when path
21035         splitting is profitable.
21036         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
21037         is a diamond with a single exit.
21039 2016-02-05  Martin Sebor  <msebor@redhat.com>
21041         PR c++/69662
21042         * doc/invoke.texi: Update -Wplacement-new to take an optional
21043         argument.
21045 2016-02-06  Richard Henderson  <rth@redhat.com>
21047         PR c/69643
21048         * tree.c (tree_nop_conversion_p): Do not strip casts into or
21049         out of non-standard address spaces.
21051 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21053         PR rtl-optimization/69691
21054         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
21056 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
21058         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
21059         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
21060         (*ieee128_mfvsrd_64bit): Likewise.
21061         (*ieee128_mfvsrd_32bit): Likewise.
21063 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
21065         PR target/69369
21066         Revert r232560:
21067         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
21069         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
21070         instrumented_version.
21072 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
21074         * doc/invoke.texi (Optimize Options): In table of --param options
21075         rename second occurrence of tracer-min-branch-ratio to
21076         tracer-min-branch-probability, rename
21077         tracer-min-branch-ratio-feedback to
21078         tracer-min-branch-probability-feedback and clarify description,
21079         rename sched-spec-state-edge-prob-cutoff to
21080         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
21081         to selsched-insns-to-rename, rename lto-minpartition to
21082         lto-min-partition, delete reorder-blocks-duplicate and
21083         reorder-blocks-duplicate-feedback.
21085 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21087         * config/s390/s390.c (s390_register_info_set_ranges): Remove
21088         superfluous loops.
21090 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21092         * doc/extend.texi: S/390: Correct some typos.
21094 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21096         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
21098 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21100         PR target/69625
21101         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
21102         (s390_register_info_gprtofpr): Use new macros above.
21103         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
21104         its name.
21105         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
21106         its name.  Adjust restore and save gpr ranges.
21107         (s390_register_info_set_ranges): New function.
21108         (s390_register_info): Use new macros above.  Call
21109         s390_register_info_set_ranges.
21110         (s390_optimize_register_info): Likewise.
21111         (s390_hard_regno_rename_ok): Use new macros.
21112         (s390_hard_regno_scratch_ok): Likewise.
21113         (s390_emit_epilogue): Likewise.
21114         (s390_can_use_return_insn): Likewise.
21115         (s390_optimize_prologue): Likewise.
21116         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
21118 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
21120         PR bootstrap/69677
21121         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
21122         alignment fixes.
21123         (ix86_option_override_internal): Disable TARGET_STV even for
21124         -m{incoming,preferred}-stack-boundary=3.
21126 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21128         * config.gcc: Mark deprecated rtems targets as obsolete.
21130 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
21132         PR rtl-optimization/64682
21133         PR rtl-optimization/69567
21134         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
21135         before I2 only if the register is both used and set in I2.
21137 2016-02-04  DJ Delorie  <dj@redhat.com>
21139         * config/msp430/msp430.c (msp430_start_function): Add function type.
21141 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21143         PR fortran/69368
21144         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
21146 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
21148         PR rtl-optimization/69577
21149         Revert:
21150         2015-10-29  Richard Henderson  <rth@redhat.com>
21152         PR target/68124
21153         PR rtl-opt/67609
21154         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
21155         sse check to the exact conditions of PR 67609.
21157 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
21159         PR target/69667
21160         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
21161         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
21162         not allowed into the traditional Altivec registers.
21163         (movtd_64bit_nodm): Likewise.
21164         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
21166 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
21168         * config/aarch64/cortex-a57-fma-steering.c
21169         (aarch64_register_fma_steering): Remove "static" from arguments
21170         to register_pass.
21172 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
21174         PR target/69619
21175         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
21176         twice when complex.
21178 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
21180         * doc/invoke.texi: Delete -mno-fma4.
21182 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
21184         PR rtl-optimization/69577
21185         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
21186         (find_subregs_of_mode): Update accordingly.  Iterate over partial
21187         definitions.
21189 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
21191         * config/arm/arm-protos.h (neon_reinterpret): Remove.
21192         * config/arm/arm.c (neon_reinterpret): Remove.
21193         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
21194         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
21195         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
21196         vreinterpretti): Remove.
21197         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
21198         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
21199         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
21200         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
21201         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
21202         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
21203         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
21204         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
21205         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
21206         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
21207         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
21208         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
21209         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
21210         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
21211         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
21212         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
21213         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
21214         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
21215         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
21216         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
21217         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
21218         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
21219         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
21220         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
21221         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
21222         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
21223         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
21224         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
21225         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
21226         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
21227         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
21228         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
21229         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
21230         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
21231         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
21232         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
21233         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
21234         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
21235         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
21236         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
21237         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
21238         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
21239         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
21240         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
21241         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
21242         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
21243         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
21244         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
21245         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
21246         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
21247         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
21248         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
21249         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
21250         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
21251         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
21252         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
21253         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
21254         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
21255         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
21256         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
21257         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
21258         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
21259         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
21260         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
21261         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
21262         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
21263         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
21264         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
21265         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
21266         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
21267         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
21268         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
21269         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
21270         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
21271         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
21272         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
21273         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
21274         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
21275         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
21276         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
21277         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
21278         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
21279         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
21280         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
21281         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
21282         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
21283         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
21284         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
21285         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
21286         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
21287         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
21288         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
21289         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
21290         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
21291         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
21292         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
21293         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
21294         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
21295         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
21296         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
21297         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
21298         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
21299         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
21301 2016-02-04  Martin Liska  <mliska@suse.cz>
21303         PR sanitizer/69276
21304         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
21305         that are gimple_store_p.
21306         (maybe_instrument_call): Likewise.
21308 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
21310         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
21311         register scaling out of memory reference and comment why.
21313 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21315         PR target/65932
21316         PR target/67714
21317         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
21318         folding the source of a SET.
21320 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21322         PR target/65932
21323         PR target/67714
21324         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
21325         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
21327 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
21329         PR target/65932
21330         PR target/67714
21331         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
21332         HImode.
21334 2016-02-04  Christian Bruel  <christian.bruel@st.com>
21336         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
21337         * config/arm/arm.c (arm_set_current_function): Likewise.
21339 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
21340             Ilya Enkovich  <enkovich.gnu@gmail.com>
21341             H.J. Lu  <hongjiu.lu@intel.com>
21343         PR target/69454
21344         * config/i386/i386.c (convert_scalars_to_vector): Remove
21345         stack alignment fixes.
21346         (ix86_option_override_internal): Disable TARGET_STV if stack
21347         might not be aligned enough.
21348         (ix86_minimum_alignment): Assert that TARGET_STV is false.
21350 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
21352         * config/i386/x86-tune.def: Disable default prefetching
21353         for -march=znver1.
21355 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
21356             Vladimir Makarov  <vmakarov@redhat.com>
21358         PR target/69461
21359         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
21360         in validating fused toc addresses.
21362 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
21364         PR c/69627
21365         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
21366         range->m_caret fields if range->m_show_caret_p is false.
21368         PR target/69644
21369         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
21370         Force oldval into register if it does not satisfy reg_or_short_operand
21371         predicate.  Fix up formatting.
21373 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
21374             Alexandre Oliva  <aoliva@redhat.com>
21376         PR target/69461
21377         * lra-constraints.c (simplify_operand_subreg): Check additionally
21378         address validity after potential reloading.
21379         (process_address_1): Check insns validity.  In case of failure do
21380         nothing.
21382 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
21384         PR target/69118
21385         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
21386         Fix target.
21388 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
21390         * wide-int.cc (canonize_uhwi): New function.
21391         (wi::divmod_internal): Use it.
21393 2016-02-02  James Norris  <jnorris@codesourcery.com>
21395         * gimplify.c (omp_notice_variable): Add usage check.
21397 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
21399         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
21400         like LE, GE, LT, GT when emitting relational operator.
21402 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21404         * ira-costs.c (find_costs_and_classes): Add extra argument.
21405         * target.def (ira_change_pseudo_allocno_class): Add parameter.
21406         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
21407         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
21408         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
21409         Add best_class parameter, and return it if not ALL_REGS.
21410         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
21411         Add parameter.
21412         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
21413         Update target hook.
21415 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
21417         * config/aarch64/aarch64.c
21418         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
21419         (aarch64_ira_change_pseudo_allocno_class): New function.
21421 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
21423         PR target/67032
21424         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
21426 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
21428         * config/avr/avr.c (avr_option_override): Set
21429         PARAM_ALLOW_STORE_DATA_RACES to 1.
21431 2016-02-02  Richard Biener  <rguenther@suse.de>
21433         PR tree-optimization/69595
21434         * match.pd: Add range test simplifications to true/false.
21436 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
21438         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
21439         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
21440         instead.
21442 2016-02-02  Richard Biener  <rguenther@suse.de>
21444         PR tree-optimization/69606
21445         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
21446         info on the result before moving a stmt.
21448 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
21450         PR middle-end/68542
21451         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
21452         branch with vector comparison.
21453         * config/i386/sse.md (VI48_AVX): New mode iterator.
21454         (define_expand "cbranch<mode>4): Add support for conditional branch
21455         with vector comparison.
21456         * tree-vect-loop.c (optimize_mask_stores): New function.
21457         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
21458         has_mask_store field of vect_info.
21459         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
21460         vectorized loops having masked stores after vec_info destroy.
21461         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
21462         correspondent macros.
21463         (optimize_mask_stores): Add prototype.
21465 2016-02-02  Alan Modra  <amodra@gmail.com>
21467         PR target/69548
21468         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
21469         allow subregs.
21471 2016-02-02  Alan Modra  <amodra@gmail.com>
21473         PR target/68662
21474         * config/rs6000/rs6000.c (need_toc_init): New var, set it
21475         whenever toc_label_name used.
21476         (rs6000_file_start): Don't set up toc section here,
21477         (rs6000_output_function_epilogue): do so here instead,
21478         (rs6000_xcoff_file_start): and here.
21479         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
21480         (load_toc_aix_di): Likewise.
21482 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21484         PR rtl-optimization/69592
21485         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
21486         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
21487         (num_sign_bit_copies_binary_arith_p): New inline function.
21488         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
21490 2016-02-01  Jeff Law  <law@redhat.com>
21492         PR tree-optimization/69580
21493         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
21494         * tree-ssa-threadbackward.c
21495         (fsm_find_control_statement_thread_paths): Do not try to walk
21496         through large PHI nodes.
21498 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21500         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
21501         when count is incremented above limit, don't analyze further
21502         insns afterwards.
21504         * omp-low.c (oacc_parse_default_dims): Avoid
21505         -Wsign-compare warning, make sure value fits into int
21506         rather than just unsigned int.
21508 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
21510         PR tree-optimization/67921
21511         * fold-const.c (split_tree): New parameters.  Convert pointer
21512         type variable part to proper type before negating.
21513         (fold_binary_loc): Pass new arguments to split_tree.
21515 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
21517         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
21518         (nvptx_goacc_validate_dims): Extend to handle global defaults.
21519         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
21520         * doc/tm.texti: Rebuilt.
21521         * doc/invoke.texi (fopenacc-dim): Document.
21522         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
21523         (append_compiler_options): Likewise.
21524         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
21525         (oacc_parse_default_dims): New.
21526         (oacc_validate_dims): Add USED arg.  Select non-unity default when
21527         possible.
21528         (oacc_loop_fixed_partitions): Return mask of used partitions.
21529         (oacc_loop_auto_partitions): Emit dump info.
21530         (oacc_loop_partition): Return mask of used partitions.
21531         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
21532         loop partitioning and validation calls.
21534 2016-02-01  Richard Biener  <rguenther@suse.de>
21536         PR middle-end/69556
21537         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
21539 2016-02-01  Richard Biener  <rguenther@suse.de>
21541         PR tree-optimization/69574
21542         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
21543         of asserting return chrec_dont_know.
21545 2016-02-01  Martin Liska  <mliska@suse.cz>
21547         * mem-stats-traits.h: Add copyright header.
21548         * mem-stats.h: Likewise.
21550 2016-02-01  Richard Biener  <rguenther@suse.de>
21552         PR tree-optimization/69579
21553         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
21554         Do not propagate through abnormal PHI results.
21556 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
21558         * postreload.c (reload_cse_simplify): Remove dead code.
21560 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
21562         PR rtl-optimization/69570
21563         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
21564         if there is more than one set, not if there is a single set.
21566 2016-02-01  Richard Henderson  <rth@redhat.com>
21568         PR rtl-opt/69535
21569         * combine.c (make_compound_operation): When looking through a
21570         subreg, make sure to re-extend to the width of the outer mode.
21572 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
21574         PR tree-optimization/69546
21575         * wide-int.cc (wi::divmod_internal): For unsigned division
21576         where both operands fit into uhwi, if o1 is 1 and o0 has
21577         msb set, if divident_prec is larger than bits per hwi,
21578         clear another quotient word and return 2 instead of 1.
21579         Similarly for remainder with msb in HWI set, if dividend_prec
21580         is larger than bits per hwi.
21582 2016-01-29  Martin Jambor  <mjambor@suse.cz>
21584         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
21585         Use short lowercase names.
21586         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
21587         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
21588         acq_rel one.  Protect warning agains segfaults if
21589         get_memory_order_name returns NULL.
21590         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
21591         with release semantics.  Do not warn if get_memory_order already did.
21592         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
21593         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
21594         if get_memory_order already did.
21596 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
21598         * doc/install.texi: Document that isl-0.16 is supported.
21600 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
21602         PR target/69299
21603         * config/i386/constraints.md (Bm): Describe as special memory
21604         constraint.
21605         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
21606         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21607         * genpreds.c (struct constraint_data): Add is_special_memory.
21608         (have_special_memory_constraints, special_memory_start): New
21609         static vars.
21610         (special_memory_end): Ditto.
21611         (add_constraint): Add new arg is_special_memory.  Add code to
21612         process its true value.  Update have_special_memory_constraints.
21613         (process_define_constraint): Pass the new arg.
21614         (process_define_register_constraint): Ditto.
21615         (choose_enum_order): Process special memory.
21616         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
21617         function insn_extra_special_memory_constraint.
21618         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21619         * gensupport.c (process_rtx): Process
21620         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
21621         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
21622         * ira-lives.c (single_reg_class): Use
21623         insn_extra_special_memory_constraint.
21624         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
21625         * lra-constraints.c (process_alt_operands): Ditto.
21626         (curr_insn_transform): Use insn_extra_special_memory_constraint.
21627         * recog.c (asm_operand_ok, preprocess_constraints): Process
21628         CT_SPECIAL_MEMORY.
21629         * reload.c (find_reloads): Ditto.
21630         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
21631         * stmt.c (parse_input_constraint): Use
21632         insn_extra_special_memory_constraint.
21634 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21636         PR target/69530
21637         * lra-splill.c (lra_final_code_change): Revert r229087 by
21638         removing all sub-registers.
21640 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
21642         PR target/65604
21643         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
21645 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
21647         PR target/69551
21648         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
21649         SSE1, copy target into the temporary reg first before recursing
21650         on it.
21652 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
21654         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
21655         with vm.
21657 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
21659         * ginclude/stdarg.h: Test __cplusplus instead of
21660         __GXX_EXPERIMENTAL_CXX0X__.
21662 2016-01-29  Richard Biener  <rguenther@suse.de>
21664         PR tree-optimization/69547
21665         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
21666         Do not mark clobbers necessary.
21667         (mark_all_reaching_defs_necessary_1): Likewise.
21669 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21671         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
21672         declaration name with %qs and print it in both error messages.
21673         Also fix indentation.
21675 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21677         PR other/69006
21678         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
21679         trailing blank line from error message.
21681 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
21683         PR c++/69462
21684         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
21685         for C++-11.
21687 2016-01-29  Richard Biener  <rguenther@suse.de>
21689         PR middle-end/69537
21690         * match.pd: Allow all integral types when simplifying a
21691         widening or sign-changing conversion.
21693 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21695         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
21696         back to setting codegen_error to fail codegen.
21698 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
21700         PR target/69459
21701         * config/i386/constraints.md (C): Only accept constant zero operand.
21702         (BC): New constraint.
21703         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
21704         instead of C constraint.
21705         * doc/md.texi (Machine Constraints): Update description
21706         of C constraint.
21708 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
21710         PR target/68400
21711         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
21713 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
21715         PR middle-end/69542
21716         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
21717         non-debug insns.
21719 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
21721         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
21722         branches if using guessed profile.
21724 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
21726         * graphite-optimize-isl.c (optimize_isl): Fix dump.
21728 2016-01-28  Richard Henderson  <rth@redhat.com>
21730         PR target/69305
21731         * config/aarch64/aarch64-modes.def (CC_Cmode): New
21732         * config/aarch64/aarch64-protos.h: Update.
21733         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
21734         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
21735         (aarch64_get_condition_code_1): Handle CC_Cmode.
21736         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
21737         (*add<mode>3_compareC_cconly_imm): New.
21738         (*add<mode>3_compareC_cconly): New.
21739         (*add<mode>3_compareC_imm): New.
21740         (add<mode>3_compareC): New.
21741         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
21742         to be first.  Use aarch64_carry_operation.
21743         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
21744         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
21745         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
21746         (subti3): Use subdi3_compare1.
21747         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
21748         (sub<mode>3_compare1): New.
21749         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
21750         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
21751         (*subsi3_carryin_uxtw): Likewise.
21752         (*ngc<mode>, *ngcsi_uxtw): Likewise.
21753         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
21754         * config/aarch64/iterators.md (DWI): New.
21755         * config/aarch64/predicates.md (aarch64_carry_operation): New.
21756         (aarch64_borrow_operation): New.
21758 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
21760         * graphite-optimize-isl.c (optimize_isl): Print a different debug
21761         message when isl does not return a valid schedule.
21763 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21765         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
21766         Remove comments from class declarations: they are already in the code
21767         close by the defs.
21769 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21771         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
21772         codegen_error_p.
21773         (ternary_op_to_tree): Same.
21774         (unary_op_to_tree): Same.
21775         (nary_op_to_tree): Same.
21776         (gcc_expression_from_isl_expr_op): Same.
21777         (gcc_expression_from_isl_expression): Same.
21778         (graphite_create_new_loop): Same.
21779         (graphite_create_new_loop_guard): Same.
21780         (build_iv_mapping): Same.
21781         (graphite_create_new_guard): Same.
21782         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
21783         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
21785 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
21787         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
21788         instead of setting codegen_error to fail codegen.
21790 2016-01-28  Jason Merrill  <jason@redhat.com>
21792         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
21794 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
21796         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
21797         Remove CONST_INT_P check in CCMP cost calculation.
21799 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
21801         * config/aarch64/aarch64.c (generic_vector_cost):
21802         Set vec_permute_cost.
21803         (cortexa57_vector_cost): Likewise.
21804         (exynosm1_vector_cost): Likewise.
21805         (xgene1_vector_cost): Likewise.
21806         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
21807         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
21808         Add vec_permute_cost entry.
21810 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
21812         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
21813         immediate as %1.
21814         (add<mode>3_compare0): Likewise.
21815         (addsi3_compare0_uxtw): Likewise.
21816         (add<mode>3nr_compare0): Likewise.
21817         (compare_neg<mode>): Likewise.
21818         (<optab><mode>3): Likewise.
21820 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
21822         * tree-vect-stmts.c (vectorizable_comparison): Add
21823         NULL check for vectype.
21825 2016-01-28  Richard Biener  <rguenther@suse.de>
21827         PR tree-optimization/69466
21828         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
21829         Account for PHIs we couldn't duplicate.
21831 2016-01-28  Martin Liska  <mliska@suse.cz>
21833         PR pch/68758
21834         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
21835         instead of ENABLE_VALGRIND_CHECKING.
21837 2016-01-27  Richard Henderson  <rth@redhat.com>
21839         PR rtl-opt/69447
21840         * lra-remat.c (subreg_regs): New.
21841         (dump_candidates_and_remat_bb_data): Dump it.
21842         (operand_to_remat): Reject if operand in subreg_regs.
21843         (set_bb_regs): Collect subreg_regs.
21844         (lra_remat): Init and free subreg_regs.  Compute
21845         calculate_local_reg_remat_bb_data before create_cands.
21847 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
21849         PR target/68986
21850         * config/i386/i386.c (ix86_update_stack_boundary): Don't
21851         change stack_alignment_needed for __tls_get_addr call.
21853 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
21855         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
21857 2016-01-27  Jeff Law  <law@redhat.com>
21859         PR tree-optimization/68398
21860         PR tree-optimization/69196
21861         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
21862         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
21863         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21864         Only count PHIs in the last block in the path.  The others will
21865         const/copy propagate away.  Add heuristic to allow more irreducible
21866         subloops to be created when it is likely profitable to do so.
21868         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21869         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
21870         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
21872 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
21874         PR lto/69254
21875         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
21876         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
21877         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
21878         * tree-streamer-in.c: Include asan.h.
21879         (streamer_get_builtin_tree): For builtins in sanitizer
21880         range call initialize_sanitizer_builtins and retry.
21882 2016-01-27  Ian Lance Taylor  <iant@google.com>
21884         * common.opt (fkeep-gc-roots-live): New undocumented option.
21885         * tree-ssa-loop-ivopts.c (add_candidate_1): If
21886         -fkeep-gc-roots-live, skip pointers.
21887         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
21888         NULL.
21890 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
21892         PR target/69512
21893         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
21894         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
21896 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
21898         PR target/68380
21899         * configure.ac: NetBSD provides SSP in its C library.
21900         * configure: Updated.
21902 2016-01-27  Richard Biener  <rguenther@suse.de>
21904         PR tree-optimization/69166
21905         * tree-vect-loop.c (vect_is_simple_reduction): Always check
21906         reduction code for commutativity / associativity.
21908 2016-01-27  Martin Jambor  <mjambor@suse.cz>
21910         PR tree-optimization/69355
21911         * tree-sra.c (analyze_access_subtree): Correct hole detection when
21912         total_scalarization fails.
21914 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
21916         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
21917         power9.
21919 2016-01-27  Christian Bruel  <christian.bruel@st.com>
21921         PR target/69245
21922         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
21923         Move arm_reset_previous_fndecl and set_target_option_current_node in
21924         the conditional part.  Call save_restore_target_globals.
21925         * config/arm/arm.c (arm_set_current_function):
21926         Refactor to better support #pragma target and attribute mix.
21927         Call save_restore_target_globals.
21928         * config/arm/arm-protos.h (save_restore_target_globals): New function.
21930 2016-01-27  Martin Liska  <mliska@suse.cz>
21932         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
21933         reference for an HSA kernel and its host function.
21935 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
21937         PR tree-optimization/69399
21938         * wide-int.h (wi::lrshift): For larger precisions, only
21939         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
21941 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
21943         * config/arc/predicates.md (proper_comparison_operator): Reject
21944         constant-constant comparison.
21946 2016-01-26  Tom de Vries  <tom@codesourcery.com>
21948         PR tree-optimization/69110
21949         * tree-data-ref.c (initialize_data_dependence_relation): Handle
21950         DR_NUM_DIMENSIONS == 0.
21952 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
21953             Sebastian Pop  <s.pop@samsung.com>
21955         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
21956         isl_ast_op_cond and isl_ast_op_select.
21957         (gcc_expression_from_isl_expr_op): Same.
21959 2016-01-26  Jason Merrill  <jason@redhat.com>
21961         PR c++/68782
21962         * tree.c (recompute_constructor_flags): Split out from
21963         build_constructor.
21964         (verify_constructor_flags): New.
21965         * tree.h: Declare them.
21967 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
21969         PR rtl-optimization/69217
21970         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
21971         are no TYPE_FIELDS set for the record type.
21973 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
21975         PR target/68662
21976         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
21977         toc_label_name unconditionally.
21978         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
21979         SYMBOL_REF string.  Use toc_label_name instead of constructing
21980         LCTOC1.
21981         (rs6000_elf_declare_function_name): Use toc_label_name instead of
21982         constructing LCTOC1.
21984 2016-01-26  Martin Sebor  <msebor@redhat.com>
21986         PR other/69477
21987         * doc/extend.texi (Common Type Attributes): Move text that talks about
21988         attribute packed from attribute aligned to the section discussing
21989         the former attribute for clarity.
21991 2016-01-26  Richard Henderson  <rth@redhat.com>
21993         PR middle-end/60908
21994         * trans-mem.c (tm_region_init): Mark entry block as visited.
21996 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
21998         PR other/69006
21999         * diagnostic-show-locus.c (layout::print_source_line): Replace
22000         call to pp_newline with call to layout::print_newline.
22001         (layout::print_annotation_line): Likewise.
22002         (layout::move_to_column): Likewise.
22003         (layout::print_any_fixits): After printing any fixits, print a
22004         trailing newline, if necessary.
22005         (layout::print_newline): New method, resetting any colorization
22006         before a newline.
22007         (diagnostic_show_locus): Move the pp_newline to before the
22008         early bailout.  Remove dummy block enclosing the layout instance.
22009         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
22010         of pp_newline_and_flush with pp_flush.
22011         (diagnostic_append_note): Delete use of pp_newline.
22012         (diagnostic_append_note_at_rich_loc): Delete.
22013         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
22014         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
22015         when newline characters are added to the buffer.
22017 2016-01-26  Michael Matz  <matz@suse.de>
22019         * configure.ac (ac_cv_std_swap_in_utility): New test.
22020         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
22021         * configure: Regenerate.
22022         * config.in: Regenerate.
22024 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
22026         * config/arc/arc.md (cstoresi4): Force operand into register.
22027         (arcset<code>): Fix predicate.
22028         (arcsetltu): Likewise.
22029         (arcsetgeu): Likewise.
22030         (arcsethi): Likewise.
22031         (arcsetls): Likewise.
22033 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22035         PR tree-optimization/69483
22036         * gimple-fold.c (canonicalize_constructor_val): Return NULL
22037         if base has error_mark_node type.
22039 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
22041         PR target/68620
22042         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
22043         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
22044         New helper macros.
22045         (vget_lane_f16): Handle big-endian.
22046         (vgetq_lane_f16): Likewise.
22047         (vset_lane_f16): Likewise.
22048         (vsetq_lane_f16): Likewise.
22049         * config/arm/iterators.md (VQXMOV): Add V8HF.
22050         (VDQ): Add V4HF and V8HF.
22051         (V_reg): Handle V4HF and V8HF.
22052         (Is_float_mode): Likewise.
22053         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
22054         neon_vdup_nv8hf): New patterns.
22055         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
22056         Use VD_LANE iterator.
22057         (neon_vld1_dup<mode>): Use VQ2 iterator.
22059 2016-01-26  Nathan Sidwell  <nathan@acm.org>
22061         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
22062         (set_oacc_fn_attrib): Add IS_KERNEL arg.
22063         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
22064         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
22065         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
22066         (oacc_validate_dims): Add LEVEL arg, don't return level.
22067         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
22068         oacc_validate_dims.
22069         (execute_oacc_device_lower): Adjust, add more dump output.
22070         * tree-ssa-loop.c (gate_oacc_kernels): Use
22071         oacc_fn_attrib_kernels_p.
22072         * tree-parloops.c (create_parallel_loop): Adjust
22073         set_oacc_fn_attrib call.
22075 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22077         PR lto/69254
22078         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
22079         (append_compiler_options): Handle -fcilkplus.
22080         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
22082 2016-01-26  Nick Clifton  <nickc@redhat.com>
22084         PR target/66655
22085         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
22086         been marked as DECL_ONE_ONLY but we do not the means to make it
22087         so, then do not allow it to bind locally.
22089 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22091         PR lto/69254
22092         * opts.h (parse_sanitizer_options): New prototype.
22093         * opts.c (sanitizer_opts): New array.
22094         (parse_sanitizer_options): New function.
22095         (common_handle_option): Use parse_sanitizer_options.
22097 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
22099         PR target/68986
22100         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
22101         alignment adjustment to ...
22102         (ix86_update_stack_boundary): Here.  Don't over-align stack for
22103         __tls_get_addr.
22104         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
22105         if __tls_get_addr is called.
22107 2016-01-26  Christian Bruel  <christian.bruel@st.com>
22109         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
22111 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
22113         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
22115 2016-01-26  Richard Biener  <rguenther@suse.de>
22117         PR middle-end/69467
22118         * match.pd: Guard X * CST CMP 0 pattern with single_use.
22120 2016-01-26  Richard Biener  <rguenther@suse.de>
22122         PR tree-optimization/69452
22123         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
22124         (move_computations_dom_walker::before_dom_children): Rename
22125         to ...
22126         (move_computations_worker): This.
22127         (move_computations): Perform an RPO rather than a DOM walk.
22129 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
22131         PR target/69442
22132         * combine.c (combine_instructions): For REG_EQUAL note with
22133         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
22134         to the underlying register.
22135         * doc/rtl.texi (REG_EQUAL): Document the behavior of
22136         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
22138 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
22140         PR target/67896
22141         * config/aarch64/aarch64-builtins.c
22142         (aarch64_init_simd_builtin_types): Do not set structural
22143         equality to __Poly{8,16,64,128}_t types.
22145 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
22147         PR tree-optimization/69400
22148         * wide-int.cc (wi_pack): Take the precision as argument and
22149         perform canonicalization here rather than in the callers.
22150         Use the main loop to handle all full-width HWIs.  Add a
22151         zero HWI if in_len isn't a full result.
22152         (wi::divmod_internal): Update accordingly.
22153         (wi::mul_internal): Likewise.  Simplify.
22155 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22156             Sebastian Pop  <s.pop@samsung.com>
22158         * graphite-poly.c (apply_poly_transforms): Simplify.
22159         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
22160         (print_isl_map): Same.
22161         (print_isl_union_map): Same.
22162         (print_isl_schedule): New.
22163         (debug_isl_schedule): New.
22164         * graphite-dependences.c (scop_get_reads): Do not call
22165         isl_union_map_add_map that is undocumented isl functionality.
22166         (scop_get_must_writes): Same.
22167         (scop_get_may_writes): Same.
22168         (scop_get_original_schedule): Remove.
22169         (scop_get_dependences): Do not call isl_union_map_compute_flow that
22170         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
22171         (compute_deps): Remove.
22172         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
22173         (debug_schedule_ast): New.
22174         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
22175         set_separate_option.
22176         (graphite_regenerate_ast_isl): Add dump.
22177         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
22178         from scop->transformed_schedule.
22179         (graphite_regenerate_ast_isl): Add more dump.
22180         * graphite-optimize-isl.c (optimize_isl): Set
22181         scop->transformed_schedule.  Check whether schedules are equal.
22182         (apply_poly_transforms): Move here.
22183         * graphite-poly.c (apply_poly_transforms): ... from here.
22184         (free_poly_bb): Static.
22185         (free_scop): Static.
22186         (pbb_number_of_iterations_at_time): Remove.
22187         (print_isl_ast): New.
22188         (debug_isl_ast): New.
22189         (debug_scop_pbb): New.
22190         * graphite-scop-detection.c (print_edge): Move.
22191         (print_sese): Move.
22192         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
22193         (build_scop_scattering): Remove.
22194         (create_pw_aff_from_tree): Assert instead of bailing out.
22195         (add_condition_to_pbb): Remove unused code, do not fail.
22196         (add_conditions_to_domain): Same.
22197         (add_conditions_to_constraints): Remove.
22198         (build_scop_context): New.
22199         (add_iter_domain_dimension): New.
22200         (build_iteration_domains): Initialize pbb->iterators.
22201         Call add_conditions_to_domain.
22202         (nested_in): New.
22203         (loop_at): New.
22204         (index_outermost_in_loop): New.
22205         (index_pbb_in_loop): New.
22206         (outermost_pbb_in): New.
22207         (add_in_sequence): New.
22208         (add_outer_projection): New.
22209         (outer_projection_mupa): New.
22210         (add_loop_schedule): New.
22211         (build_schedule_pbb): New.
22212         (build_schedule_loop): New.
22213         (embed_in_surrounding_loops): New.
22214         (build_schedule_loop_nest): New.
22215         (build_original_schedule): New.
22216         (build_poly_scop): Call build_original_schedule.
22217         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
22218         (free_poly_dr): Remove.
22219         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
22220         (free_poly_bb): Remove.
22221         (debug_loop_vec): Remove.
22222         (print_isl_ast): Declare.
22223         (debug_isl_ast): Declare.
22224         (scop_do_interchange): Remove.
22225         (scop_do_strip_mine): Remove.
22226         (scop_do_block): Remove.
22227         (flatten_all_loops): Remove.
22228         (optimize_isl): Remove.
22229         (pbb_number_of_iterations_at_time): Remove.
22230         (debug_scop_pbb): Declare.
22231         (print_schedule_ast): Declare.
22232         (debug_schedule_ast): Declare.
22233         (struct scop): Remove schedule.  Add original_schedule,
22234         transformed_schedule.
22235         (free_gimple_poly_bb): Remove.
22236         (print_generated_program): Remove.
22237         (debug_generated_program): Remove.
22238         (unify_scattering_dimensions): Remove.
22239         * sese.c (print_edge): ... here.
22240         (print_sese): ... here.
22241         (debug_edge): ... here.
22242         (debug_sese): ... here.
22243         * sese.h (print_edge): Declare.
22244         (print_sese): Declare.
22245         (dump_edge): Declare.
22246         (dump_sese): Declare.
22248 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
22249             Sebastian Pop  <s.pop@samsung.com>
22251         * Makefile.in: Set ISLVER in site.exp.
22253 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
22255         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
22256         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
22257         through DECL_VALUE_EXPR for expansion.
22259 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22261         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
22262         the frame info after reload completed.
22264 2016-01-25  Jeff Law  <law@redhat.com>
22266         PR tree-optimization/69196
22267         PR tree-optimization/68398
22268         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
22269         tree-ssa-threadupdate.c.
22270         (determine_bb_domination_status): Prototype
22271         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
22272         (determine_bb_domination_status): No longer static.
22273         (valid_jump_thread_path): Remove code to detect characteristics
22274         of the jump thread path not associated with correctness.
22275         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
22276         Correct test for thread path length.  Count PHIs for real operands as
22277         statements that need to be copied.  Do not count ASSERT_EXPRs.
22278         Look at all the blocks in the thread path.  Compute and selectively
22279         filter thread paths based on threading through the latch, threading
22280         a multiway branch or crossing a multiway branch.
22282 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22284         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
22285         decl with __attribute__ ((unused)) annotation.
22287 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
22289         PR target/69421
22290         * tree-vect-stmts.c (vectorizable_condition): Check vectype
22291         of operands is compatible with a statement vectype.
22293 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
22295         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
22296         improve wording for mixed storage order support.
22298 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
22300         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
22301         (vcvt_u64_f64): Likewise.
22302         (vcvta_s64_f64): Likewise.
22303         (vcvta_u64_f64): Likewise.
22304         (vcvtm_s64_f64): Likewise.
22305         (vcvtm_u64_f64): Likewise.
22306         (vcvtn_s64_f64): Likewise.
22307         (vcvtn_u64_f64): Likewise.
22308         (vcvtp_s64_f64): Likewise.
22309         (vcvtp_u64_f64): Likewise.
22311 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
22313         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
22314         (arc_init): Check validity mll64 option.
22315         (arc_save_restore): Use double load/store instruction.
22316         (arc_expand_movmem): Likewise.
22317         (arc_split_move): Don't split if we have double load/store
22318         instructions. Returns a boolean.
22319         (arc_process_double_reg_moves): Change function to return boolean
22320         instead of a sequence of instructions.
22321         (arc_dwarf_register_span): New function.
22322         * config/arc/arc-protos.h (arc_split_move): Change prototype.
22323         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
22324         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
22325         (*movdf_insn): Likewise.
22326         * config/arc/arc.opt (mll64): New option.
22327         * config/arc/predicates.md (even_register_operand): New predicate.
22328         * doc/invoke.texi (ARC Options): Add mll64 documentation.
22330 2016-01-25  Richard Biener  <rguenther@suse.de>
22332         PR lto/69393
22333         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
22334         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
22335         DECL_NAMELESS.
22336         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
22338 2016-01-25  Richard Biener  <rguenther@suse.de>
22340         PR tree-optimization/69376
22341         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
22342         flag.
22343         (VN_INFO_ANTI_RANGE_P): New inline.
22344         (VN_INFO_RANGE_TYPE): Likewise.
22345         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
22346         SSA_NAME_ANTI_RANGE_P.
22347         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
22348         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22349         Properly query VN_INFO_RANGE_TYPE.
22351 2016-01-25  Nick Clifton  <nickc@redhat.com>
22353         PR target/66655
22354         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
22356 2016-01-23  Tom de Vries  <tom@codesourcery.com>
22358         PR tree-optimization/69426
22359         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
22360         removed clobber.
22362 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
22364         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
22365         "the the" with "the" in the comments.
22366         * ipa-devirt.c (build_type_inheritance_graph,
22367         update_type_inheritance_graph): Likewise.
22368         * tree.c (build_function_type_list_1): Likewise.
22369         * cfgloopmanip.c (scale_loop_profile): Likewise.
22370         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
22371         * gimple-ssa-split-paths.c
22372         (find_block_to_duplicate_for_splitting_paths): Likewise.
22373         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
22374         * expr.c (convert_move): Likewise.
22375         * var-tracking.c (vt_stack_adjustments): Likewise.
22376         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
22377         * tree-vrp.c (test_for_singularity): Likewise.
22379         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
22380         directly instead of building a temporary tree.
22382         PR bootstrap/69434
22383         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
22384         remove <algorithm> include.
22386 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22388         PR target/69432
22389         * config/i386/i386.c: Include dojump.h.
22390         (expand_small_movmem_or_setmem,
22391         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
22392         fixes.
22393         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
22394         if dynamic_check != -1.
22396 2016-01-21  Jeff Law  <law@redhat.com>
22398         PR middle-end/69347
22399         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
22400         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
22401         into dominated_by_p.
22402         (cprop_into_successor_phis): Avoid unnecessary tests.
22404 2016-01-22  Richard Henderson  <rth@redhat.com>
22406         PR target/69416
22407         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
22408         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
22410 2016-01-22  Michael Matz  <matz@suse.de>
22412         * system.h (string, algorithm): Include only conditionally.
22413         (new): Include always under C++.
22414         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
22415         * final.c (toplevel): Ditto.
22416         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
22417         * genconditions.c (write_header): Make gencondmd.c define
22418         INCLUDE_STRING.
22419         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
22421         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
22422         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
22424 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22426         PR target/68674
22427         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
22429 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22431         PR target/69403
22432         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
22433         define_insn_and_split.  Ensure operands[1] and operands[0] do not
22434         get assigned the same register.
22436 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
22438         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
22440 2016-01-22  Christian Bruel  <christian.bruel@st.com>
22442         * config/arm/arm-c.c (arm_pragma_target_parse):
22443         Remove warn_builtin_macro_redefined overwrite.
22445 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22447         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
22448         flag_non_call_exceptions compatibility.
22450 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
22452         PR debug/66668
22453         * dwarf2out.c (add_child_die_after): New function.
22454         (dwarf_qual_info_t): New type.
22455         (dwarf_qual_info): New variable.
22456         (qualified_die_p): New function.
22457         (modified_type_die): For -fdebug-types-section, ensure
22458         canonical order of qualifiers.  Put qualified DIEs adjacent
22459         to the corresponding non-qualified type DIE and search there
22460         for existing qualified DIEs.
22462 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22464         * doc/extend.texi (scalar_storage_order type attribute): Document
22465         restriction on type punning and aliasing, and remove future tense.
22467 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
22469         PR target/69252
22470         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
22471         first stage.
22473 2016-01-21  Jeff Law  <law@redhat.com>
22475         PR middle-end/69347
22476         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
22477         useless call to record_temporary_equivalences.
22478         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
22479         allocate 10 slots in the bb_path vector and let it grow as needed.
22480         (fsm_find_control_statement_thread_paths): Similarly for the next_path
22481         vector.
22483 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22485         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
22486         Detangle.
22487         * configure: Regenerate.
22489 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
22491         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
22492         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
22494 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
22496         PR middle-end/66178
22497         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
22498         drop EXPAND_INITIALIZER.
22499         * rtl.h (contains_symbolic_reference_p): Declare.
22500         * rtlanal.c (contains_symbolic_reference_p): New function.
22501         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
22502         a subtraction into a NOT if symbolic constants are involved.
22504 2016-01-21  Anton Blanchard  <anton@samba.org>
22505             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22507         PR target/63354
22508         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
22509         #define.
22510         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
22511         function.
22513 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22515         * config/microblaze/microblaze.c
22516         (get_branch_target): New.
22517         (insert_wic_for_ilb_runout): New.
22518         (insert_wic): New.
22519         (microblaze_machine_dependent_reorg): New.
22520         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
22521         * config/microblaze/microblaze.md
22522         (UNSPEC_IPREFETCH): Define.
22523         (iprefetch): New pattern
22524         * config/microblaze/microblaze.opt
22525         (mxl-prefetch): New flag.
22527 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
22529         * config/microblaze/microblaze.h
22530         (FIXED_REGISTERS): Update in macro.
22531         (CALL_USED_REGISTERS): Update in macro.
22533 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
22535         PR rtl-optimization/68920
22536         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
22537         moves.
22539 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
22541         PR rtl-optimization/68990
22542         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
22543         pseudo instead of inheritance ones.
22545 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22546             Nick Clifton  <nickc@redhat.com>
22548         PR target/69129
22549         PR target/69012
22550         * config/mips/mips.c (mips_compute_frame_info): Initialise
22551         args_size and hard_frame_pointer_offset fields of the frame
22552         structure before calling mips_global_pointer.
22554 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
22556         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
22557         label reference.
22558         * configure: Regenerate.
22560 2016-01-21  Richard Biener  <rguenther@suse.de>
22562         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
22564 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22566         * config/s390/s390.c (s390_asm_declare_function_size): Add code
22567         to actually emit the .size directive.
22569 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
22570              Jakub Jelinek  <jakub@redhat.com>
22572         PR target/69187
22573         PR target/65624
22574         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
22575         args array size by one to avoid buffer overflow.
22577 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
22579         * config/s390/s390.md (pool_section_start): Use switch_to_section
22580         to select proper read-only data section instead of hardcoding
22581         .rodata.
22582         (pool_section_end): Use switch_to_section to match the above.
22584 2016-01-21  Richard Biener  <rguenther@suse.de>
22586         PR tree-optimization/69378
22587         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
22588         (set_ssa_val_to): Use it for dominance checks taking into
22589         account not executable edges.
22591 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
22593         PR c++/69355
22594         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
22595         for bitsize instead of GET_MODE_PRECISION (mode).
22597 2016-01-20  Martin Sebor  <msebor@redhat.com>
22599         PR c/52291
22600         * extend.texi (__sync Builtins): Clarify the semantics of
22601         __sync_fetch_and_OP built-ins on pointers.
22602         (__atomic Builtins): Same.
22604 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22605             Sebastian Pop  <s.pop@samsung.com>
22607         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
22608         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
22609         (is_valid_rename): Same.
22610         (translate_isl_ast_to_gimple::get_rename): Same.
22611         (translate_isl_ast_to_gimple::rename_all_uses): Same.
22612         (translate_isl_ast_to_gimple::rename_uses): Same.
22613         (get_new_name): Check for close_phi nodes.
22614         (copy_loop_phi_args): Use phi_node_kind.
22615         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
22616         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
22618 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22619             Sebastian Pop  <s.pop@samsung.com>
22621         Revert commit r229783.
22622         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
22623         Remove use of parameter_rename_map.
22624         (copy_def): Remove.
22625         (copy_internal_parameters): Remove.
22626         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
22627         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
22628         (free_sese_info): Do not free parameter_rename_map.
22629         (set_rename): Do not use parameter_rename_map.
22630         (rename_uses): Update call to set_rename.
22631         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
22632         * sese.h (parameter_rename_map_t): Remove.
22633         (struct sese_info_t): Remove field parameter_rename_map.
22635 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22636             Sebastian Pop  <s.pop@samsung.com>
22638         * graphite-isl-ast-to-gimple.c: Fix comment.
22639         * graphite-scop-detection.c (defined_in_loop_p): New.
22640         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
22641         names defined in loop.
22643 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22644             Sebastian Pop  <s.pop@samsung.com>
22646         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
22647         Discard unstructured if-then-else regions.
22649 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22650             Sebastian Pop  <s.pop@samsung.com>
22652         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
22653         (cleanup_loop_iter_dom): Remove.
22654         (build_loop_iteration_domains): Remove.
22655         (build_scop_context): Remove.
22656         (build_scop_iteration_domain): Remove.
22657         (add_loop_constraints): New.
22658         (build_iteration_domains): New.
22659         (build_poly_scop): Call build_iteration_domains.
22661 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22662             Sebastian Pop  <s.pop@samsung.com>
22664         * graphite-scop-detection.c
22665         (scop_detection::harmful_loop_in_region): Free dom and loops.
22666         (scop_detection::loop_body_is_valid_scop): Free bbs.
22668 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22669             Sebastian Pop  <s.pop@samsung.com>
22671         * graphite-scop-detection.c (record_loop_in_sese): New.
22672         (gather_bbs::before_dom_children): Call record_loop_in_sese.
22673         (build_scops): Remove call to build_sese_loop_nests.
22674         * sese.c (sese_record_loop): Remove.
22675         (build_sese_loop_nests): Remove.
22676         (new_sese_info): Remove region->loops.
22677         (free_sese_info): Same.
22678         * sese.h (sese_contains_loop): Same.
22679         (build_sese_loop_nests): Remove.
22680         (sese_contains_loop): Remove.
22682 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22683             Sebastian Pop  <s.pop@samsung.com>
22685         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
22686         loop_is_valid_in_scop.
22687         (scop_detection::harmful_stmt_in_region): Renamed
22688         harmful_loop_in_region.
22689         Call loop_is_valid_in_scop.
22691 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22692             Sebastian Pop  <s.pop@samsung.com>
22694         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
22695         isl_ast_node_mark.
22697 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22698             Sebastian Pop  <s.pop@samsung.com>
22700         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
22701         * graphite.h (struct poly_bb): Remove field is_reduction.
22702         (PBB_IS_REDUCTION): Remove.
22704 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
22705             Sebastian Pop  <s.pop@samsung.com>
22707         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
22708         (add_pdr_constraints): Same.
22709         (scop_get_reads): Same.
22710         (scop_get_must_writes): Same.
22711         (scop_get_may_writes): Same.
22712         (scop_get_original_schedule): Same.
22713         (extend_schedule): Same.
22714         (apply_schedule_on_deps): Same.
22715         (carries_deps): Same.
22716         (compute_deps): Same.
22717         (scop_get_dependences): Same.
22718         * graphite-isl-ast-to-gimple.c
22719         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
22720         * graphite-optimize-isl.c (get_schedule_for_band): Same.
22721         (get_schedule_for_band_list): Same.
22722         (get_schedule_map): Same.
22723         (apply_schedule_map_to_scop): Same.
22724         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
22725         (build_loop_iteration_domains): Same.
22726         (add_condition_to_pbb): Same.
22727         (add_param_constraints): Same.
22728         (pdr_add_memory_accesses): Same.
22729         (pdr_add_data_dimensions): Same.
22731 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
22733         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
22734         requirements.
22736 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
22738         * common.opt (feliminate-dwarf2-dups): Replace references to
22739         "DWARF 2" with just "DWARF".
22740         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
22741         * doc/extend.texi: Likewise.
22742         * doc/cpp.texi: Likewise.
22743         * doc/invoke.texi: Likewise.
22744         (Option Summary): Add -gdwarf to list of Debugging Options.
22745         (Debugging Options): Document -gdwarf.
22746         * doc/contrib.texi: Spell "DWARF" like that.
22748 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
22750         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
22751         warning.  Fix up formatting.
22753         PR middle-end/67653
22754         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
22755         attempt to mark memory input operand addressable and
22756         call prepare_gimple_addressable in that case.  Don't adjust
22757         input_location for diagnostics, use error_at instead.
22759 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
22761         * config/rs6000/ppc-auxv.h: New file.
22762         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
22763         (cpu_is): Likewise.
22764         (cpu_supports): Likewise.
22765         * config/rs6000/rs6000.c: include "ppc-auxv.h".
22766         (cpu_is_info): New variable.
22767         (cpu_supports_info): Likewise.
22768         (tcb_verification_symbol): Likewise.
22769         (cpu_builtin_p): Likewise.
22770         (cpu_expand_builtin): New function.
22771         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
22772         (rs6000_init_builtins): Likewise.
22773         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
22774         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
22775         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
22776         * configure: Regenerate.
22777         * config.in: Likewise.
22778         * doc/extend.texi (PowerPC Built-in Functions): Document
22779         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
22781 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
22783         PR target/68609
22784         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
22785         domain check.
22786         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
22787         for V4SFmode.
22789 2016-01-20  Richard Henderson  <rth@redhat.com>
22791         PR bootstrap/69343
22792         PR bootstrap/69339
22793         PR tree-opt/68964
22794         Revert:
22795         * tree.c (tm_define_builtin): New.
22796         (find_tm_vector_type): New.
22797         (build_tm_vector_builtins): New.
22798         (build_common_builtin_nodes): Call it.
22800 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
22802         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
22803         (arm_fp_ok): Likewise.
22804         (arm_fp): Likewise.
22805         (arm_crypto): Likewise.
22807 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
22808             Richard Biener  <rguenther@suse.de>
22810         PR tree-optimization/69328
22811         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
22812         vectors have same number of elements.
22813         (vectorizable_condition): Fix masked version recognition.
22815 2016-01-20  Richard Biener  <rguenther@suse.de>
22817         PR tree-optimization/69345
22818         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
22819         (VN_INFO_PTR_INFO): Likewise.
22820         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
22821         info when it is equal between non-dominating SSA names.
22822         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
22823         Make sure to look at original SSA infos.
22825 2016-01-20  Jeff Law  <law@redhat.com>
22827         PR target/25114
22828         * config/m68k/predicates.md (pow2_m1_operand): New predicate
22829         extracted from ...
22830         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
22831         (pc_or_label_operand): New predicate.
22832         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
22833         tests for small integers that are 2^n - 1.
22835 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
22837         * doc/invoke.texi (Options Summary): Add '.' after @xref.
22839 2016-01-19  Jeff Law  <law@redhat.com>
22841         PR middle-end/69347
22842         * tree-ssa-threadbackwards.c
22843         (fsm_find_control_statement_thread_paths): Do not try to lookup
22844         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
22846 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
22848         * doc/lto.texi: Remove text that says only Gold has linker plugin
22849         support.
22851 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
22853         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
22854         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
22855         the DIE accordingly.
22856         (modified_type_die): Add REVERSE parameter and pass it recursively,
22857         as well as to base_type_die.  Adjust presence check accordingly.
22858         (base_type_for_mode): Adjust call to modified_type_die.
22859         (add_type_attribute): Add REVERSE parameter and pass it to
22860         modified_type_die.
22861         (generic_parameter_die): Adjust call to add_type_attribute.
22862         (add_scalar_info): Likewise.
22863         (add_subscript_info): Likewise.
22864         (gen_array_type_die): Likewise.
22865         (gen_descr_array_type_die): Likewise.
22866         (gen_entry_point_die): Likewise.
22867         (gen_enumeration_type_die): Likewise.
22868         (gen_formal_parameter_die): Likewise.
22869         (gen_subprogram_die): Likewise.
22870         (gen_variable_die ): Likewise.
22871         (gen_const_die): Likewise.
22872         (gen_field_die): Likewise.
22873         (gen_pointer_type_die): Likewise.
22874         (gen_reference_type_die): Likewise.
22875         (gen_ptr_to_mbr_type_die): Likewise.
22876         (gen_inheritance_die): Likewise.
22877         (gen_subroutine_type_die): Likewise.
22878         (gen_typedef_die): Likewise.
22879         (force_type_die): Adjust call to modified_type_die.
22881 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
22883         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
22884         flow throughout the file.  Fix broken link to Objective-C 2.0
22885         documentation.
22886         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
22887         errors.
22889 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22891         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
22893 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
22895         PR ipa/66223
22896         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
22897         (maybe_record_node): Record cxa_pure_virtual as the only possible
22898         target if there are not ohter candidates.
22899         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
22901 2016-01-19  Richard Biener  <rguenther@suse.de>
22903         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
22904         (get_memory_order): Likewise.
22906 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
22908         * tree-vect-stmts.c (vectorizable_store): Check
22909         rhs vectype.
22911 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
22913         PR jit/68446
22914         * gcc.c (driver::decode_argv): Add call to
22915         init_opts_obstack before init_options_struct.
22916         * opts.c (init_opts_obstack): Remove idempotency.
22917         (init_options_struct): Replace call to init_opts_obstack
22918         with a gcc_assert to verify that it has already been called.
22919         * toplev.c (toplev::main): Add call to init_opts_obstack before
22920         calls to init_options_struct.
22921         (toplev::finalize): Move cleanup of opts_obstack next to
22922         cleanup of save_decoded_options, clearing the latter, and
22923         save_decoded_options_count.
22925 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22927         PR target/69135
22928         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
22929         attribute to unconditional.  Remove %? from output template.
22931 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22932             Jiong Wang  <jiong.wang@arm.com>
22934         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
22935         generated from different expand order.
22937 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22939         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
22940         Add support for CCMP costing.
22942 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22944         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
22945         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
22946         (fccmpe<mode>): Likewise.
22947         (fcmp): Rename to fcmp and globalize pattern.
22948         (fcmpe): Likewise.
22949         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
22950         (aarch64_gen_ccmp_next): Add FP support.
22952 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
22954         * target.def (gen_ccmp_first): Update documentation.
22955         (gen_ccmp_next): Likewise.
22956         * doc/tm.texi (gen_ccmp_first): Update documentation.
22957         (gen_ccmp_next): Likewise.
22958         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
22959         expand_ccmp_expr_1.  Improve comments.
22960         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
22961         (ccmp_ior<mode>): Remove pattern.
22962         (cmp<mode>): Remove expand.
22963         (cmp): Globalize pattern.
22964         (cstorecc4): Use cc_register.
22965         (mov<mode>cc): Remove ccmp_cc_register check.
22966         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
22967         Simplify after removal of CC_DNE/* modes.
22968         (aarch64_ccmp_mode_to_code): Remove.
22969         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
22970         In 'k' case use integer as condition.
22971         (aarch64_nzcv_codes): Remove inverted cases.
22972         (aarch64_code_to_ccmode): Remove.
22973         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
22974         comparison with CC register to be used in folowing CCMP/branch/CSEL.
22975         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
22976         pattern.  Return the comparison with CC register.  Invert conditions
22977         when bitcode is OR.
22978         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
22979         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
22981 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
22983         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22984         instrumented_version.
22986 2016-01-19  Richard Biener  <rguenther@suse.de>
22988         PR tree-optimization/69336
22989         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
22990         handled components with get_ref_base_and_extent.
22991         (equal_mem_array_ref_p): Adjust.
22993 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
22995         PR debug/65779
22996         * shrink-wrap.c: Include valtrack.h.
22997         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
22998         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
22999         in between insn and where it will be moved to.  Call
23000         dead_debug_insert_temp.
23001         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
23002         first and dead_debug_local_finish at the end.
23003         For uses and defs bitmap, handle all regs in between REGNO and
23004         END_REGNO, not just the first one.
23006 2016-01-19  Richard Biener  <rguenther@suse.de>
23008         PR tree-optimization/69352
23009         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
23010         (equal_mem_array_ref_p): Constrain size and max size properly.
23011         Compare the reverse flag.
23013 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
23015         * ira.c (ira): Update regstat data if we deleted insns.
23017 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
23019         PR rtl-optimization/68955
23020         PR rtl-optimization/64557
23021         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
23022         here.  Fix up formatting.
23023         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
23025 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23027         PR lto/69133
23028         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
23029         assume that the node has body.
23030         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
23031         check.
23033 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23035         * lto-streamer-out.c (lto_output): Do not stream instrumentation
23036         thunks.
23038 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23040         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
23041         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
23043 2016-01-19  Martin Jambor  <mjambor@suse.cz>
23044             Martin Liska  <mliska@suse.cz>
23045             Michael Matz  <matz@suse.de>
23047         * Makefile.in (OBJS): Add new source files.
23048         (GTFILES): Add hsa.c.
23049         * common.opt (disable_hsa): New variable.
23050         (-Whsa): New warning.
23051         * config.in (ENABLE_HSA): New.
23052         * configure.ac: Treat hsa differently from other accelerators.
23053         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
23054         $enable_offloading.
23055         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
23056         * doc/install.texi (Configuration): Document --with-hsa-runtime,
23057         --with-hsa-runtime-include, --with-hsa-runtime-lib and
23058         --with-hsa-kmt-lib.
23059         * doc/invoke.texi (-Whsa): Document.
23060         (hsa-gen-debug-stores): Likewise.
23061         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
23062         to invoke offload compiler for hsa acclerator.
23063         * opts.c (common_handle_option): Determine whether HSA offloading
23064         should be performed.
23065         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
23066         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
23067         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
23068         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
23069         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
23070         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
23071         GF_OMP_FOR_KIND_GRID_LOOP.
23072         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
23073         (pp_gimple_stmt_1): Likewise.
23074         * gimple-walk.c (walk_gimple_stmt): Likewise.
23075         * gimple.c (gimple_build_omp_grid_body): New function.
23076         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
23077         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
23078         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
23079         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
23080         GF_OMP_TEAMS_GRID_PHONY.
23081         (gimple_statement_omp_single_layout): Updated comments.
23082         (gimple_build_omp_grid_body): New function.
23083         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
23084         (gimple_omp_for_grid_phony): New function.
23085         (gimple_omp_for_set_grid_phony): Likewise.
23086         (gimple_omp_parallel_grid_phony): Likewise.
23087         (gimple_omp_parallel_set_grid_phony): Likewise.
23088         (gimple_omp_teams_grid_phony): Likewise.
23089         (gimple_omp_teams_set_grid_phony): Likewise.
23090         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
23091         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
23092         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
23093         (BUILT_IN_GOMP_TARGET): Updated type.
23094         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
23095         (adjust_for_condition): New function.
23096         (get_omp_for_step_from_incr): Likewise.
23097         (extract_omp_for_data): Moved parts to adjust_for_condition and
23098         get_omp_for_step_from_incr.
23099         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
23100         (fixup_child_record_type): Bail out if receiver_decl is NULL.
23101         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
23102         (scan_omp_parallel): Do not create child functions for phony
23103         constructs.
23104         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
23105         (scan_omp_1_op): Checking assert we are not remapping to
23106         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
23107         (parallel_needs_hsa_kernel_p): New function.
23108         (expand_parallel_call): Register apprpriate parallel child
23109         functions as HSA kernels.
23110         (grid_launch_attributes_trees): New type.
23111         (grid_attr_trees): New variable.
23112         (grid_create_kernel_launch_attr_types): New function.
23113         (grid_insert_store_range_dim): Likewise.
23114         (grid_get_kernel_launch_attributes): Likewise.
23115         (get_target_argument_identifier_1): Likewise.
23116         (get_target_argument_identifier): Likewise.
23117         (get_target_argument_value): Likewise.
23118         (push_target_argument_according_to_value): Likewise.
23119         (get_target_arguments): Likewise.
23120         (expand_omp_target): Call get_target_arguments instead of looking
23121         up for teams and thread limit.
23122         (grid_expand_omp_for_loop): New function.
23123         (grid_arg_decl_map): New type.
23124         (grid_remap_kernel_arg_accesses): New function.
23125         (grid_expand_target_kernel_body): New function.
23126         (expand_omp): Call it.
23127         (lower_omp_for): Do not emit phony constructs.
23128         (lower_omp_taskreg): Do not emit phony constructs but create for them
23129         a temporary variable receiver_decl.
23130         (lower_omp_taskreg): Do not emit phony constructs.
23131         (lower_omp_teams): Likewise.
23132         (lower_omp_grid_body): New function.
23133         (lower_omp_1): Call it.
23134         (grid_reg_assignment_to_local_var_p): New function.
23135         (grid_seq_only_contains_local_assignments): Likewise.
23136         (grid_find_single_omp_among_assignments_1): Likewise.
23137         (grid_find_single_omp_among_assignments): Likewise.
23138         (grid_find_ungridifiable_statement): Likewise.
23139         (grid_target_follows_gridifiable_pattern): Likewise.
23140         (grid_remap_prebody_decls): Likewise.
23141         (grid_copy_leading_local_assignments): Likewise.
23142         (grid_process_kernel_body_copy): Likewise.
23143         (grid_attempt_target_gridification): Likewise.
23144         (grid_gridify_all_targets_stmt): Likewise.
23145         (grid_gridify_all_targets): Likewise.
23146         (execute_lower_omp): Call grid_gridify_all_targets.
23147         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
23148         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
23149         (tree_omp_clause): Added union field dimension.
23150         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
23151         * tree.c (omp_clause_num_ops): Added number of arguments of
23152         OMP_CLAUSE__GRIDDIM_.
23153         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
23154         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
23155         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
23156         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
23157         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
23158         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
23159         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
23160         * tree-pass.h (make_pass_gen_hsail): Declare.
23161         (make_pass_ipa_hsa): Likewise.
23162         * ipa-hsa.c: New file.
23163         * lto-section-in.c (lto_section_name): Add hsa section name.
23164         * lto-streamer.h (lto_section_type): Add hsa section.
23165         * timevar.def (TV_IPA_HSA): New.
23166         * hsa-brig-format.h: New file.
23167         * hsa-brig.c: New file.
23168         * hsa-dump.c: Likewise.
23169         * hsa-gen.c: Likewise.
23170         * hsa.c: Likewise.
23171         * hsa.h: Likewise.
23172         * toplev.c (compile_file): Call hsa_output_brig.
23173         * hsa-regalloc.c: New file.
23175 2016-01-18  Jeff Law  <law@redhat.com>
23177         PR tree-optimization/69320
23178         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
23179         ranged object, do nothing if the RHS constant is not [0..1].
23180         (optimize_stmt): Comparing a boolean ranged object against a
23181         constant outside [0..1] results in a compile-time constant.
23183         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
23184         test.
23186 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
23188         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23189         (Option Summary): Update to reflect new section and moved options.
23190         (C++ Dialect Options): Move -fstats to new section.
23191         (Debugging Options): Move all dump, statistics, and other GCC
23192         developer options to new section.  Rewrite section introduction
23193         and re-order remaining options to put the more basic ones first.
23194         (Optimization Options): Move -fira-verbose and -flto-report* to
23195         new section.
23196         (Developer Options): New section incorporating moved options.
23197         * doc/cppopts.texi (-dM): Update cross-reference.
23199 2016-01-18  Richard Henderson  <rth@redhat.com>
23201         PR target/69176
23202         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
23203         operands to pseudo only if CSE is expected.  Split long immediate
23204         operands only after reload, and for the stack pointer.
23205         (*add<GPI>3_pluslong): Remove.
23206         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
23207         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
23208         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
23209         (*add<GPI>3 peepholes): New.
23210         (*add<GPI>3 splitters): New.
23211         * config/aarch64/constraints.md (Upl): New.
23212         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
23214 2016-01-18  Richard Biener  <rguenther@suse.de>
23216         PR tree-optimization/69297
23217         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
23218         stmt at most once.
23219         (vect_bb_vectorization_profitable_p): Clear visited flag again.
23221 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
23223         PR middle-end/68542
23224         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
23225         of mixind vector and scalar types.
23226         (fold_relational_const): Add handling of vector
23227         comparison with boolean result.
23228         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
23229         comparison of vector operands with boolean result for EQ/NE only.
23230         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
23231         (verify_gimple_cond): Likewise.
23232         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
23233         valid type of VAL.
23235 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
23237         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
23238         !TARGET_OCTEON.
23240 2016-01-18  Richard Biener  <rguenther@suse.de>
23242         PR middle-end/69308
23243         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
23245 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23247         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
23249 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23251         * omp-low.c (set_oacc_fn_attrib): Make extern.
23252         * omp-low.h (set_oacc_fn_attrib): Declare.
23253         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
23254         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
23255         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
23256         Add and handle function parameter oacc_kernels_p.
23257         (find_reduc_addr, get_omp_data_i_param): New function.
23258         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
23259         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
23260         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
23261         Calculate dominance info.  Skip loops that are not in a kernels region
23262         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
23263         (pass_parallelize_loops::execute): Call parallelize_loops with
23264         oacc_kernels_p argument.
23265         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
23266         New member function.
23267         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
23268         * passes.def: Add argument to pass_parallelize_loops instantation.
23270 2016-01-18  Tom de Vries  <tom@codesourcery.com>
23272         * tree-parloops.c (pass_parallelize_loops::execute): Allow
23273         pass_parallelize_loops to be run outside the loop pipeline.
23275 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23277         * tree-scalar-evolution.c (follow_copies_to_constant): New.
23278         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
23280 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23282         PR target/63679
23283         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
23284         using get_ref_base_and_extent.
23285         (equal_mem_array_ref_p): New.
23286         (hashable_expr_equal_p): Add call to previous.
23288 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
23290         PR target/63679
23291         * tree-sra.c (disqualified_constants, constant_decl_p): New.
23292         (sra_initialize): Allocate disqualified_constants.
23293         (sra_deinitialize): Free disqualified_constants.
23294         (disqualify_candidate): Update disqualified_constants when appropriate.
23295         (create_access): Scan for constant-pool entries as we go along.
23296         (scalarizable_type_p): Add check against type_contains_placeholder_p.
23297         (maybe_add_sra_candidate): Allow constant-pool entries.
23298         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
23299         (initialize_constant_pool_replacements): New.
23300         (sra_modify_assign): Avoid mangling assignments created by previous,
23301         and don't generate writes into constant pool.
23302         (sra_modify_function_body): Call initialize_constant_pool_replacements.
23304 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
23306         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
23307         andnot instruction.
23308         (scalar_chain::convert_op): Likewise.
23309         * config/i386/i386.md (*andndi3_doubleword): New.
23311 2016-01-18  Richard Biener  <rguenther@suse.de>
23313         PR tree-optimization/69170
23314         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
23315         building a vector from scalar results of a pattern stmt.
23317 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
23319         * haifa-sched.c (autopref_multipass_init): Work around
23320         -Wmaybe-uninitialized warning.
23322 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23324         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
23325         against the constant 0.
23327 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23329         PR tree-optimization/68799
23330         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
23331         look up phi candidates in the statement-candidate map.
23332         (phi_add_costs): Likewise.
23333         (record_phi_increments): Likewise.
23334         (phi_incr_cost): Likewise.
23335         (ncd_with_phi): Likewise.
23336         (all_phi_incrs_profitable): Likewise.
23338 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
23340         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
23341         -Wmaybe-uninitialized warning.
23343 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
23345         * doc/invoke.texi (Invoking GCC): Add new section to menu.
23346         (Option Summary): Update to reflect new section and moved options.
23347         (C++ Dialect Options): Move -fvtable-verify and related options.
23348         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
23349         and profiling-related options.
23350         (Optimization Options): Move profile generation options and
23351         -fstack-protector and related options.
23352         (Instrumentation Options): New section incorporating moved options.
23353         (Code Generation Options): Move -finstrument-functions and
23354         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
23356 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23358         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
23360 2016-01-16  Tom de Vries  <tom@codesourcery.com>
23362         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
23364 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
23366         * hash-table.h (hash_table::empty): Turn into an inline wrapper
23367         that checks whether the table is already empty.  Rename the
23368         original implementation to...
23369         (hash_table::empty_slot): ...this new private function.
23371 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
23373         PR diagnostic/68899
23374         * diagnostic-show-locus.c (layout::print_source_line): Move x
23375         offset of line until after call to
23376         get_line_width_without_trailing_whitespace.
23378 2016-01-15  Jeff Law  <law@redhat.com>
23380         PR tree-optimization/69270
23381         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
23382         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
23383         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
23384         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
23385         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
23386         ssa_name_has_boolean_range and constant_boolean_node.
23388 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23390         PR rtl-optimization/69030
23391         * lra-spills.c (remove_pseudos): Check nrefs and make the function
23392         returning bool.
23393         (spill_pseudos): Delete debug insn for dead pseudo.
23394         (lra_spill): Initiate spill_hard_reg and slots memory separately.
23396 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
23398         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
23399         New.
23400         (TYPES_UNOPUS): Likewise.
23401         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
23402         builtin type, from UNOP to UNOPUS.
23403         (lbtruncuv4sf): Likewise.
23404         (lbtruncuv2df): Likewise.
23405         (lrounduv2sf): Likewise.
23406         (lrounduv4sf): Likewise.
23407         (lrounduv2df): Likewise.
23408         (lroundusf): Likewise.
23409         (lroundusf): Likewise.
23410         (lceiluv2sf): Likewise.
23411         (lceiluv4sf): Likewise.
23412         (lceiluv2df): Likewise.
23413         (lceilusf): Likewise.
23414         (lceiludf): Likewise.
23415         (lflooruv2sf): Likewise.
23416         (lflooruv4sf): Likewise.
23417         (lflooruv2df): Likewise.
23418         (lfloorusf): Likewise.
23419         (lfloorudf): Likewise.
23420         (lfrintnuv2sf): Likewise.
23421         (lfrintnuv4sf): Likewise.
23422         (lfrintnuv2df): Likewise.
23423         (lfrintnusf): Likewise.
23424         (lfrintnudf): Likewise.
23425         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
23426         conversion.
23427         (vcvtq_u32_f32): Likewise.
23428         (vcvtq_u64_f64): Likewise.
23429         (vcvta_u32_f32): Likewise.
23430         (vcvtaq_u32_f32): Likewise.
23431         (vcvtaq_u64_f64): Likewise.
23432         (vcvtm_u32_f32): Likewise.
23433         (vcvtmq_u32_f32): Likewise.
23434         (vcvtmq_u64_f64): Likewise.
23435         (vcvtn_u32_f32): Likwise.
23436         (vcvtnq_u32_f32): Likewise.
23437         (vcvtnq_u64_f64): Likewise.
23438         (vcvtp_u32_f32): Likewise.
23439         (vcvtpq_u32_f32): Likewise.
23440         (vcvtpq_u64_f64): Likewise.
23441         (vcvtmd_u64_f64): Likewise.
23442         (vcvtms_u32_f32): Likewise.
23443         (vcvtad_u64_f64): Likewise.
23444         (vcvtas_u32_f32): Likewise.
23445         (vcvtnd_u64_f64): Likewise.
23446         (vcvtns_u32_f32): Likewise.
23447         (vcvtpd_u64_f64): Likewise.
23448         (vcvtps_u32_f32): Likewise.
23450 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23452         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
23453         CSEL of zero_extended registers.
23455 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23457         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23458         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
23460 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23462         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
23463         false when argument string is not found in the attributes table
23464         at all.
23466 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
23468         PR target/68609
23469         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
23470         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
23471         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
23472         precision estimate.
23474 2016-01-15  Richard Biener  <rguenther@suse.de>
23476         PR tree-optimization/66856
23477         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
23478         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
23479         (vect_create_new_slp_node): Increment stmt reference count.
23480         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
23481         an SLP tree before swapping operands.
23482         (vect_build_slp_tree): Likewise.
23483         (destroy_bb_vec_info): Free stmt info after SLP instances.
23484         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
23485         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
23486         (STMT_VINFO_NUM_SLP_USES): New macro.
23488 2016-01-15  Richard Biener  <rguenther@suse.de>
23490         PR debug/69137
23491         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
23492         (add_linkage_name): ... here.
23493         (gen_typedef_die): Use add_linkage_name_raw instead of
23494         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
23495         if necessary.
23497 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
23499         * gimplify.c (oacc_default_clause): Decode reference and pointer
23500         types for both kernels and parallel regions.
23502 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23504         PR middle-end/69246
23505         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
23507 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23509         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
23510         (convert_scalars_to_vector): Likewise.
23512 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
23514         * doc/extend.texi (Type Traits): Fix grammar.
23516 2016-01-15  Martin Jambor  <mjambor@suse.cz>
23518         * tree-inline.c (remap_decl): Use existing dclarations if
23519         remapping a type and prevent_decl_creation_for_types.
23520         (replace_locals_stmt): Do an initial remapping of non-VLA typed
23521         decls first.  Do real remapping with
23522         prevent_decl_creation_for_types set.
23523         * tree-inline.h (copy_body_data): New field
23524         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
23525         padding.
23527 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23529         * config/s390/s390.opt (mmvcle): More verbose help text.
23531 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23533         * config/s390/s390.opt: Add period to -mzvector option text.
23535 2016-01-15  Richard Biener  <rguenther@suse.de>
23537         PR tree-optimization/68961
23538         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
23539         of invariants in stores again.
23541 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23543         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
23545 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
23547         * config/i386/i386.c (ix86_expand_branch): Don't split
23548         DI mode xor instruction to SI mode.
23550 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23552         PR ipa/68148
23553         * ipa-icf.c (sem_function::merge): Virtual functions may become
23554         reachable even if they address is not taken and there are no
23555         idrect calls.
23557 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
23559         * lto-streamer-out.c (subtract_estimated_size): New function.
23560         (get_symbol_initial_value): Use it.
23562 2016-01-15  Christian Bruel  <christian.bruel@st.com>
23564         PR target/65837
23565         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
23566         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
23567         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
23568         use add_builtin_function_ext_scope instead of add_builtin_function.
23569         (neon_set_p, neon_crypto_set_p): Remove.
23570         (arm_init_builtins): Always call arm_init_neon_builtins and
23571         arm_init_crypto_builtins.
23572         (arm_expand_builtin): Check that builtins are allowed for the arch.
23573         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
23574         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
23575         arm_init_neon_builtins call.
23577 2016-01-15  Richard Biener  <rguenther@suse.de>
23579         PR tree-optimization/69117
23580         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
23581         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
23582         of the leader conservatively.
23583         (free_scc_vn): Restore original SSA name infos.
23585 2016-01-14  Jeff Law  <law@redhat.com>
23587         PR tree-optimization/69270
23588         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
23589         single bit of precision, verify it's also unsigned.
23590         (record_edge_info): Use constant_boolean_node rather than fold_convert
23591         to convert boolean_true/boolean_false to the right type.
23593 2016-01-14  Richard Henderson  <rth@redhat.com>
23595         PR rtl-opt/69014
23596         * loop-doloop.c (record_reg_sets): New.
23597         (doloop_optimize): Reject the transform if the sequence
23598         clobbers registers live at the end of the loop block.
23599         (doloop_optimize_loops): Enable df_live if needed.
23601 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23603         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
23604         * config/rs6000/rs6000.c: Likewise.
23605         * config/rs6000/rs6000.h: Likewise.
23606         * config/rs6000/rs6000.md: Likewise.
23607         * doc/extend.texi: Likewsie.
23609 2016-01-14  Jeff Law  <law@redhat.com>
23611         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
23612         typo.
23614 2016-01-14  Richard Henderson  <rth@redhat.com>
23616         PR c/69272
23617         PR tree-opt/68964
23618         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
23619         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
23620         instead of builtin_decl_declared_p to test for declaration.
23622 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
23624         * doc/loop.texi (Loop Analysis and Representation): Document
23625         loop_depth function.
23627 2016-01-14  Tom de Vries  <tom@codesourcery.com>
23629         PR tree-optimization/68773
23630         * omp-low.c (expand_omp_target): Don't set force_output.
23631         * varpool.c (varpool_node::get_create): Same.
23632         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
23633         offload_funcs with force_output.
23635 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23637         PR debug/69244
23638         * lra-eliminations.c (move_plus_up): Don't change anything if either
23639         the outer or inner subreg mode is not MODE_INT.
23640         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
23641         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
23643 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
23645         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
23646         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
23647         reduc_uplus_@var{m}): Remove.
23648         * expr.c (expand_expr_real_2): Remove expansion path for
23649         reduc_[us](min|max|plus) optabs.
23650         * optabs-tree.c (scalar_reduc_to_vector): Remove.
23651         * optabs-tree.h (scalar_reduc_to_vector): Remove.
23652         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
23653         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
23654         * tree-vect-loop.c (vectorizable_reduction): Remove test for
23655         reduc_[us](min|max|plus) optabs.
23657 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
23659         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
23660         (reduc_plus_scal_v2sf): New.
23661         (reduc_smax_v2sf): Rename to...
23662         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
23663         (reduc_smin_v2sf): Rename to...
23664         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
23666 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
23668         * alias.c (compare_base_symbol_refs): New function.
23669         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
23670         it.
23672 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23674         PR middle-end/68146
23675         PR tree-optimization/69155
23676         * tree-complex.c: Include cfganal.h.
23677         (phis_to_revisit): New variable.
23678         (extract_component): Add phiarg_p argument.  Assert that returned
23679         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
23680         (update_phi_components): Partly rewrite to use loop over real/imag
23681         components instead of code duplication.  If extract_component returns
23682         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
23683         create_tmp_reg into the PHI node instead, and mention the phi triplet
23684         in phis_to_revisit.
23685         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
23686         in phis_to_revisit at the end.
23688 2016-01-14  Richard Biener  <rguenther@suse.de>
23690         PR tree-optimization/68060
23691         * tree-vect-loop.c (vect_is_simple_reduction): Check the
23692         outer loop reduction is only used in the inner loop before
23693         detecting a double reduction.
23695 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
23697         PR target/68269
23698         * combine.c (expand_field_assignment): Punt if compute_mode is
23699         unsupported scalar mode.
23701 2016-01-14  Richard Biener  <rguenther@suse.de>
23703         PR tree-optimization/66856
23704         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
23705         SLP node only if it built successfully.
23706         (vect_analyze_slp_instance): Adjust.
23708 2016-01-14  Jeff Law  <law@redhat.com>
23710         PR tree-optimization/69270
23711         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
23712         (record_edge_info): Use it.  Convert boolean_{true,false}_node
23713         to the type of op0.
23715 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
23717         PR ipa/66487
23718         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
23719         use block_ultimate_origin
23720         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
23722 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
23724         * doc/invoke.texi (Submodel Options): Rename section to
23725         "Machine-Dependent Options" to better reflect its content.
23726         Rewrite introductory text to remove archaic CPU names.
23727         Update references.
23729 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
23731         * doc/invoke.texi (Code Gen Options): Move section up in file,
23732         before target-specific options.  Update menu and option summary
23733         to reflect the new section ordering.
23735 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
23737         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
23738         (C++ Dialect Options): Add cross-reference to -std option.
23739         * doc/standards.texi (C++ Language): Document C++14 support.
23741 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23743         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
23744         for pack/unpack functions for __ibm128.
23745         (PACK_IF): Likewise.
23746         (UNPACK_IF): Likewise.
23748         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
23749         support for __ibm128 pack/unpack functions.
23750         (rs6000_invalid_builtin): Likewise.
23751         (rs6000_init_builtins): Likewise.
23752         (rs6000_opt_masks): Likewise.
23754         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
23755         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
23756         functions
23757         (RS6000_BTM_COMMON): Likewise.
23759         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
23760         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
23761         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
23762         128-bit floating point.  Add support for the double values to be
23763         in Altivec registers for TF/IF packing and unpacking, but restrict
23764         TD packing sub-fields to be FPR registers.  Don't allow overlapped
23765         register support for packing.  Allow pack inputs to be memory
23766         locations.  Don't build generator functions for unpack<mode>_dm
23767         and unpack<mode>_nodm.
23768         (unpack<mode>_dm): Likewise.
23769         (unpack<mode>_nodm): Likewise.
23770         (pack<mode>): Likewise.
23772         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
23773         built-in functions to pack/unpack explicit __ibm128 values.
23774         (__builtin_unpack_ibm128): Likewise.
23776         * doc/extend.texi (PowerPC Built-in Functions): Document
23777         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
23779 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
23781         PR c/66208
23782         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
23783         Add new arg loc and pass it down as context.
23784         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
23785         to the location to use for the warning.
23786         (check_function_arguments): New arg loc.  All callers changed.  Pass
23787         it to check_function_nonnull.
23788         * c-common.h (check_function_arguments): Adjust declaration.
23790 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
23792         PR tree-optimization/69156
23793         * gimple.c (validate_type): Removed.
23794         (gimple_builtin_call_types_compatible_p): Use
23795         useless_type_conversion_p instead of validate_type.
23796         * value-prof.c (gimple_stringop_fixed_value): Fold
23797         icall_size to correct type.
23799 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
23801         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
23802         effects.
23804 2016-01-13  Richard Henderson  <rth@redhat.com>
23806         PR tree-opt/68964
23807         * target.def (builtin_tm_load, builtin_tm_store): Remove.
23808         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
23809         (ix86_builtin_tm_store): Remove.
23810         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23811         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23812         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
23813         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
23814         * doc/tm.texi: Rebuild.
23816         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
23817         (BUILT_IN_TM_MEMCPY_RTWN): New.
23818         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
23819         fallback from vector to integer helpers.
23820         (build_tm_load): Handle vector types directly, instead of
23821         via target hook.
23822         (build_tm_store): Likewise.
23823         (expand_assign_tm): Prepare for register types not handled by
23824         the above.  Copy them to memory and use memcpy.
23825         * tree.c (tm_define_builtin): New.
23826         (find_tm_vector_type): New.
23827         (build_tm_vector_builtins): New.
23828         (build_common_builtin_nodes): Call it.
23830 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
23832         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
23833         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
23835 2016-01-13  Tom de Vries  <tom@codesourcery.com>
23837         PR tree-optimization/69169
23838         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
23839         handled_struct_type param.
23840         (create_variable_info_for, intra_create_variable_infos): Call
23841         create_variable_info_for_1 with extra arg.
23843 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
23845         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
23846         and "armv8.1-a+crc" entries.
23848 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
23850         PR target/69228
23851         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
23852         Change first operand predicate from register_or_constm1_operand
23853         to register_operand.
23854         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
23855         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
23856         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
23857         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
23858         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
23859         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
23860         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
23861         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
23862         comparison with constm1_rtx from vec_prefetch_gen part.
23864 2016-01-13  Richard Biener  <rguenther@suse.de>
23866         PR tree-optimization/69013
23867         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
23868         Exchange assert for a test.
23870 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23872         PR target/69247
23873         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
23875 2016-01-13  Richard Biener  <rguenther@suse.de>
23877         PR tree-optimization/69242
23878         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
23879         assert with a check.
23881 2016-01-13  Richard Biener  <rguenther@suse.de>
23883         PR tree-optimization/69186
23884         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
23885         Properly guard vect_update_misalignment_for_peel call.
23887 2016-01-12  Jeff Law  <law@redhat.com>
23889         PR tree-optimization/pr67755
23890         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
23891         "need_profile_correction".
23892         (thread_block_1): Initialize new field to false by default.  If we
23893         have multiple thread paths through a common joiner to different
23894         final targets, then set new field to true.
23895         (compute_path_counts): Only do count adjustment when it's really
23896         needed.
23898 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23900         * doc/invoke.texi (Spec Files): Move section down in file, past
23901         all command-line option descriptions.
23903 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23905         PR middle-end/54809
23906         * doc/gty.texi: Remove documentation of mark_hook.
23907         * gengtype.c (struct write_types_data): Remove code to support
23908         mark_hook attribute.
23909         (walk_type): Likewise.
23910         (write_func_for_structure): Likewise.
23912 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23914         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
23915         Directory Options, and -specs= to Overall Options.
23916         (Overall Options): Adjust similarly.  Reorder to group related
23917         options together.  Make -specs= cross-reference the spec file details.
23918         (Directory Options): Adjust similarly.
23920 2016-01-12  Jeff Law  <law@redhat.com>
23922         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
23924 2016-01-12  Olivier Hainque  <hainque@adacore.com>
23926         * gcc.c (spec_undefvar_allowed): New global.
23927         (process_command): Set to true when running for --version or --help,
23928         alone or together.
23929         (getenv_spec_function): When the variable is not defined, use the
23930         variable name as the variable value if we're allowed not to issue
23931         a fatal error.
23933 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
23935         PR tree-optimization/68911
23936         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
23937         information computed for expression "init + nit * step".
23939 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23941         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
23942         about name of GCC executable.  Remove deleted node from menu.
23943         (Directory Options) <-B>: Remove cross-reference to deleted node.
23944         (Target Options): Delete section.
23946 2016-01-12  Christian Bruel  <christian.bruel@st.com>
23948         PR target/69180
23949         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
23950         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
23952 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
23954         PR target/69198
23955         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
23956         aligned_mem is properly set for AVX512-VL floating point masked
23957         stores.
23959         PR target/69175
23960         * ifcvt.c (cond_exec_process_if_block): When removing the last
23961         insn from then_bb, remove also any possible barriers that follow it.
23963 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
23965         PR target/68456
23966         PR target/69226
23967         * config/i386/iamcu.h (SIZE_TYPE): New macro.
23968         (PTRDIFF_TYPE): Likewise.
23969         (WCHAR_TYPE): Likewise.
23970         (WCHAR_TYPE_SIZE): Likewise.
23971         (STDINT_LONG32): Likewise.
23973 2016-01-12  Richard Biener  <rguenther@suse.de>
23975         PR tree-optimization/69053
23976         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
23977         convert initial value for cond reductions.
23979 2016-01-12  Richard Biener  <rguenther@suse.de>
23981         PR tree-optimization/69007
23982         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
23983         widen_sum after dot_prod and sad.
23985 2016-01-12  Richard Biener  <rguenther@suse.de>
23987         PR tree-optimization/69168
23988         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
23989         pattern stmt SLP type.
23990         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
23991         end up unused so cope with that case.
23993 2016-01-12  Richard Biener  <rguenther@suse.de>
23995         PR tree-optimization/69157
23996         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
23997         stmts def type only during analyze phase.
23998         (vectorizable_call): Likewise.
23999         (vectorizable_simd_clone_call): Likewise.
24000         (vectorizable_conversion): Likewise.
24001         (vectorizable_assignment): Likewise.
24002         (vectorizable_shift): Likewise.
24003         (vectorizable_operation): Likewise.
24004         (vectorizable_store): Likewise.
24005         (vectorizable_load): Likewise.
24007 2016-01-12  Richard Biener  <rguenther@suse.de>
24009         PR tree-optimization/69174
24010         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
24011         space.
24012         (vectorizable_load): Properly compute the number of loads needed
24013         for permuted strided SLP loads and do not spuriously assign
24014         to SLP_TREE_VEC_STMTS.
24016 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
24018         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
24019         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
24020         (MD_EXEC_PREFIX): Remove.
24021         (MD_STARTFILE_PREFIX) Removee.
24022         (FILE_NAME_ABSOLUTE_P): Remove.
24023         (CPP_SPEC): Do not read macros from sys/version.h.
24024         (LINK_COMMAND_SPEC): Remove.
24025         (LOCAL_INCLUDE_DIR): Remove.
24026         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
24027         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
24028         (POST_LINK_SPEC): Define to invoke stubify after linker
24029         (LIBSTDCXX): Remove define
24030         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
24031         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
24032         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
24033         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
24034         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
24035         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
24036         (i386_djgpp_asm_named_section): Add propotype of new procedure
24038         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
24039         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
24040         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
24041         in config/i386/djgpp.h).
24042         (STANDARD_STARTFILE_PREFIX_2): Define identical to
24043         STANDARD_STARTFILE_PREFIX_1.
24044         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
24045         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
24046         installation errors.
24047         (MAX_OFILE_ALIGNMENT): Define to 128.
24048         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
24050         * config/i386/djgpp.c: New file. Add implementation of
24051         i386_djgpp_asm_named_section.
24053         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
24055         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
24056         Add rule for building djgpp.o.
24058 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24060         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
24061         (rtx_is_swappable_p): Reductions are swappable.
24062         (insn_is_swappable_p): V2DF reductions are swappable.
24064 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
24066         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
24067         reloads for other unsupported memory operands.
24069 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24070             Jim Wilson  <jim.wilson@linaro.org>
24072         PR target/69194
24073         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
24074         copy_to_mode_reg instead of force_reg.
24076 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24078         PR target/69225
24079         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
24080         TARGET_80387 is true.
24082 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
24084         PR target/69071
24085         * lra-eliminations.c (move_plus_up): Only move plus up
24086         if subreg of the constant can be simplified into constant
24087         and use the simplified subreg of the constant instead of
24088         the original constant.
24090         * fold-const.c (fold_convertible_p): Don't return true
24091         for conversion of VECTOR_TYPE to same sized integral type.
24092         (fold_convert_loc): Fix up formatting.  Fold conversion of
24093         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
24094         instead of NOP_EXPR.
24096         PR tree-optimization/69214
24097         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
24098         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
24099         Formatting fix.
24101         PR tree-optimization/69207
24102         * tree-vect-slp.c (vect_get_constant_vectors): For
24103         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
24104         fold_convertible_p to vector_type's element type, and always
24105         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
24107 2016-01-11  Richard Biener  <rguenther@suse.de>
24109         PR tree-optimization/69173
24110         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
24111         fixup the cycle if all stmts are in a pattern.
24113 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
24115         PR middle-end/68999
24116         * alias.c (base_alias_check): Move check for addresses with
24117         alignment ANDs before the call for compare_base_decls.
24118         (memrefs_conflict_p): Return -1 for different decls
24119         that went through alignment adjustments.
24121 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24123         PR rtl-optimization/68796
24124         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
24125         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
24126         and QImode comparisons against zero with CC_NZmode.
24127         * config/aarch64/iterators.md (short_mask): New mode_attr.
24129 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24131         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
24132         (<avx512>_store<mode>_mask): Likewise.
24134 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
24135             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24137         PR rtl-optimization/68841
24138         * ifcvt.c (struct noce_if_info): Add orig_x field.
24139         (bbs_ok_for_cmove_arith): Add to_rename parameter.
24140         Don't record conflicts on to_rename if it's present.
24141         Allow memory destinations in sets.
24142         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
24143         blocks, passing orig_x to the checks.
24144         (noce_process_if_block): Set if_info->orig_x appropriately.
24146 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24148         PR tree-optimization/69069
24149         * tree-parloops.c (create_parallel_loop): Add missing phi args.
24151 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
24153         PR rtl-optimization/68920
24154         * config/i386/i386.c (ix86_option_override_internal): Restrict number
24155         of conditional moves for  RTL if-conversion to 1 for
24156         TARGET_ONE_IF_CONV_INSN.
24157         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
24158         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
24159         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
24160         parameter to restirct number of conditional moves for
24161         RTL if-conversion.
24162         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
24163         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
24164         conditionl moves.
24166 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
24168         PR bootstrap/69123
24169         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
24170         onepart vars.  Fix typo in comment.  Fix reversed condition in
24171         unshare test.
24172         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
24174         PR bootstrap/69123
24175         * var-tracking.c (dump_onepart_variable_differences): New.
24176         (dataflow_set_different): If a detailed dump is requested,
24177         delay early returns and dump differences between onepart
24178         variables present before and after, and added variables.
24180 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
24182         PR target/69010
24183         * expr.c (expand_expr_real_1): For boolean vector constants
24184         with a scalar mode use const_scalar_mask_from_tree.
24185         (const_scalar_mask_from_tree): New.
24186         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
24187         assigned to a mask type to handle constants.
24189 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24191         PR ipa/69044
24192         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
24193         useless parameters if we cannot change function signature.
24195 2016-01-11  Martin Jambor  <mjambor@suse.cz>
24197         PR ipa/66616
24198         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
24199         flag.
24201 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24203         PR tree-optimization/69109
24204         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
24205         latch with phi.
24207 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24209         PR tree-optimization/69108
24210         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
24211         res is not used in a phi.
24213 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
24215         PR 67425
24216         * common.opt (frandom-seed): Fix parameter name.
24217         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
24219 2016-01-11  Tom de Vries  <tom@codesourcery.com>
24221         PR tree-optimization/69058
24222         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
24223         not supported.
24225 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
24227         * config/arc/arc.opt (mdiv-rem): Add period to the end.
24228         (mcode-density): Likewise.
24230 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24232         PR tree-optimization/69062
24233         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
24234         (parallelize_loops): Don't paralelize loop that has phi with address
24235         arg.
24237 2016-01-10  Tom de Vries  <tom@codesourcery.com>
24239         PR tree-optimization/69039
24240         * tree-parloops.c (try_create_reduction_list): Only allow single exit
24241         phi for reduction.
24243 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
24245         PR middle-end/68743
24246         * match.pd: Require target has function_c99_misc before doing
24247         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
24249 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
24251         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
24252         use GMPINC.
24253         * configure: Regenerate.
24255 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
24257         PR middle-end/50865
24258         PR tree-optimization/69097
24259         * fold-const.h (expr_not_equal_to): New prototype.
24260         * fold-const.c: Include stringpool.h and tree-ssanames.h.
24261         (expr_not_equal_to): New function.
24262         * match.pd (X % -Y is the same as X % Y): Don't optimize
24263         unless X is known not to be equal to minimum or Y is known
24264         not to be equal to -1.
24265         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
24266         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
24267         (simplify_stmt_using_ranges): Adjust caller.
24268         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
24269         substitute_and_fold.
24271 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
24273         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
24274         w/o DECL_NAME.
24276 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24278         PR tree-optimization/69167
24279         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
24280         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
24281         ops[0] comparison.
24282         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
24284 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24285             Richard Biener  <rguenther@suse.de>
24287         PR tree-optimization/68707
24288         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
24289         instances that can be handled via vect_load_lanes.
24291 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
24293         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
24294         if we can't determine address equivalence.
24295         * alias.c (compare_base_decl): Update for changed return value of
24296         symtab_node::equal_address_to.
24298 2016-01-08  Jason Merrill  <jason@redhat.com>
24300         PR c++/68983
24301         PR c++/67557
24302         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
24303         * expr.c (store_field): Not here.
24304         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
24305         call with TREE_ADDRESSABLE type.
24306         * tree-cfg.c (verify_gimple_call): Adjust.
24308 2016-01-08  Olivier Hainque  <hainque@adacore.com>
24310         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
24311         libc_internal.
24313 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
24315         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
24316         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
24317         (reduc_smin_v2sf): Rename to...
24318         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
24319         (reduc_splus_v2sf): Rename to...
24320         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
24322 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24324         PR tree-optimization/69162
24325         * gimplify.c (gimplify_va_arg_expr): Encode original type of
24326         valist argument in another argument.
24327         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
24328         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
24329         to determine the va_list type, build a MEM_REF instead of
24330         build_fold_indirect_ref.
24332         PR tree-optimization/69172
24333         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
24334         gimple_build.
24336 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24338         PR tree-optimization/67781
24339         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
24340         and cmpnop in two steps: first the ones not accessed in original
24341         gimple expression in a endian independent way and then the ones not
24342         accessed in the final result in an endian-specific way.
24344 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
24346         PR tree-optimization/69083
24347         * tree-vect-slp.c (vect_get_constant_vectors): For
24348         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
24349         element type.  If op is fold_convertible_p to vector_type's element
24350         type, use NOP_EXPR instead of VCE.
24352 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
24354         PR rtl-optimization/67778
24355         PR rtl-optimization/68634
24356         PR rtl-optimization/68909
24357         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
24358         block from the stack until done with it.  Remove a superfluous
24359         bitmap set.  Remove a superfluous bitmap test.
24361 2016-01-07  Martin Sebor  <msebor@redhat.com>
24363         PR c/68966
24364         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
24365         constraint on the type of arguments.
24367 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
24369         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
24370         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
24371         unaligned_access on the gcc_options set.
24372         * config/arm/arm.c (arm_option_override_internal): Use
24373         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
24375 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24377         PR target/69140
24378         * config/i386/i386.c (ix86_frame_pointer_required): Enable
24379         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
24381 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
24383         Revert
24384         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24386         PR target/69140
24387         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24388         depending on frame_pointer_needed before remaining integer and SSE
24389         registers are saved.
24391 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24393         PR 1078
24394         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
24396 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
24398         PR target/69171
24399         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
24400         Use the "xBm" constraint.
24401         (float<sseintvecmodelower><mode>2<mask_name><round_name):
24402         Likewise.
24403         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
24404         (sse_cvtsi2ssq<round_name>): Likewise.
24405         (sse_cvtss2si<round_name>): Likewise.
24406         (sse_cvtss2siq<round_name>): Likewise.
24407         (sse2_cvtsi2sdq<round_name>): Likewise.
24408         (sse2_cvtsd2si<round_name>): Likewise.
24409         (sse2_cvtsd2siq<round_name>): Likewise.
24410         * config/i386/subst.md (round_nimm_scalar_predicate): New
24411         predicate.
24413 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
24415         PR middle-end/67639
24416         * varasm.c (make_decl_rtl): Mark invalid register vars as
24417         DECL_EXTERNAL.
24419         PR rtl-optimization/66206
24420         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
24421         All callers changed.
24423 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
24425         PR tree-optimization/69141
24426         * tree-ssa-pre.c: Include langhooks.h.
24427         (eliminate_dom_walker::before_dom_children): Use
24428         lang_hooks.decl_printable_name instead of
24429         cgraph_node::get ()->name ().
24431         PR middle-end/68960
24432         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
24433         it and DECL_ALIGN too.
24435 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
24437         * config/mips/mips-ftypes.def: Sort to lexicographical order.
24439 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
24441         PR target/69140
24442         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
24443         depending on frame_pointer_needed before remaining integer and SSE
24444         registers are saved.
24446 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24448         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
24449         mode iterator with VSX_M2.
24450         (*p9_vecstore_<mode>): Likewise.
24451         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
24452         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
24453         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
24454         (define_split for VSX_LE128 stores): Likewise.
24455         (define_peephole2 for TImode LE swaps): Likewise.
24456         (define_split for VSX_LE128 post-reload stores): Likewise.
24458 2016-01-06  Marek Polacek  <polacek@redhat.com>
24460         PR sanitizer/69099
24461         * convert.c (convert_to_integer_1): Adjust call to
24462         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
24463         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
24464         EXPR instead of ARG.
24465         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
24467 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24469         PR 1078
24470         * doc/extend.texi (RL78 Variable Attributes): New section.
24472 2016-01-05  Marek Polacek  <polacek@redhat.com>
24474         PR c/69104
24475         * builtins.c (get_memmodel): Use expansion point location rather than
24476         the input location.  Call warning_at rather than warning.
24477         (expand_builtin_atomic_compare_exchange): Likewise.
24478         (expand_builtin_atomic_load): Likewise.
24479         (expand_builtin_atomic_store): Likewise.
24480         (expand_builtin_atomic_clear): Likewise.
24482 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24484         PR target/68991
24485         * config/i386/i386.c (ix86_expand_vector_logical_operator):
24486         Replace nonimmediate_operand with vector_operand.
24487         * config/i386/predicates.md (vector_operand): New predicate.
24488         (general_vector_operand): Replace nonimmediate_operand with
24489         vector_operand.
24490         * config/i386/sse.md: Replace nonimmediate_operand with
24491         vector_operand and m constraint with Bm constraint on SSE
24492         patterns with 16-byte memory operand.
24493         * config/i386/subst.md (round_nimm_predicate): Replace
24494         nonimmediate_operand with vector_operand.
24495         (round_saeonly_nimm_predicate): Likewise.
24496         (round_saeonly_nimm_scalar_predicate): New.
24498 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
24500         PR target/68991
24501         * config/i386/constraints.md (Bm): New constraint.
24502         * config/i386/predicates.md (vector_memory_operand): New
24503         predicate.
24504         * config/i386/sse.md: Replace xm with xBm in plusminus and
24505         any_logic patterns.
24507 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24509         PR 1078
24510         * doc/extend.texi (V850 Function Attributes): New section.
24511         (V850 Variable Attributes): New section.
24513 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24515         PR 1078
24516         * doc/extend.texi (MicroBlaze Function Attributes): Document
24517         interrupt_handler and fast_interrupt attributes.
24519 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
24521         PR other/60465
24522         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
24523         for local symbolic operands.
24524         * config/ia64/predicates.md (local_symbolic_operand64): New
24525         predicate.
24527 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24529         PR rtl-optimization/68651
24530         * combine.c (combine_simplify_rtx): Canonicalize x + x into
24531         x << 1.
24533 2016-01-05  Nathan Sidwell  <nathan@acm.org>
24535         * alias.c (compare_base_decls): Use symtab_node::get.
24537 2016-01-05  Nick Clifton  <nickc@redhat.com>
24539         PR target/68770
24540         * ira-costs.c (copy_cost): Initialise the t_icode field of the
24541         secondary_reload_info structure.
24543         PR target/66655
24544         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
24545         decls if weak support is available.
24547 2016-01-04  Martin Sebor  <msebor@redhat.com>
24549         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
24551 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
24553         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
24554         OPTION_MASK_P9_DFORM.
24556         * config/rs6000/constraints.md (wo constraint): New constraint for
24557         ISA 3.0 (power9).
24559         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
24560         for wo constraint.
24561         (rs6000_init_hard_regno_mode_ok): Likewise.
24563         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
24564         wo constraint.
24566         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
24567         expanders not to have constraints.  Add support for ISA 3.0 xxperm
24568         instruction.  Add support for fusing xxlor with xxperm.
24569         (altivec_vperm_<mode>_internal): Likewise.
24570         (altivec_vperm_v8hiv16qi): Likewise.
24571         (altivec_vperm_<mode>v16q): Likewise.
24572         (altivec_vperm_<mode>_uns): Likewise.
24573         (vperm_v8hiv4si): Likewise.
24574         (vperm_v16qiv8hi): Likewise.
24576         * doc/md.texi (RS/6000 constraints): Document wo constraint.
24578 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
24580         Update copyright years.
24582         * gcc.c (process_command): Update copyright notice dates.
24583         * gcov-dump.c (print_version): Ditto.
24584         * gcov.c (print_version): Ditto.
24585         * gcov-tool.c (print_version): Ditto.
24586         * gengtype.c (create_file): Ditto.
24587         * doc/cpp.texi: Bump @copying's copyright year.
24588         * doc/cppinternals.texi: Ditto.
24589         * doc/gcc.texi: Ditto.
24590         * doc/gccint.texi: Ditto.
24591         * doc/gcov.texi: Ditto.
24592         * doc/install.texi: Ditto.
24593         * doc/invoke.texi: Ditto.
24595 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24597         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
24598         modes larger than TImode as TImode if NEON is not enabled.
24600 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24602         PR target/69100
24603         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
24604         mode for %f0-%f31 only if TARGET_FPU.
24606 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24608         PR target/69072
24609         * config/sparc/sparc.c (scan_record_type): Take into account subfields
24610         to compute the PACKED_P predicate.
24611         (function_arg_record_value): Minor tweaks.
24613 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24615         * doc/install.texi (--with-multilib-list): Describe the meaning of the
24616         option for arm*-*-* targets.
24618 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24620         * doc/extend.texi (Common Function Attributes): Move docs for
24621         MSP430-specific attributes to....
24622         (MSP430 Function Attributes): ...here.  Delete the redundant
24623         entries and copy-edit the remaining text.
24624         (MSP430 Variable Attributes): Use uniform format for index
24625         entries and add a cross-reference to the corresponding function
24626         attribute docs.
24628 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
24630         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
24631         -finite-math typo.
24632         (x86 Options): Likewise.
24634 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24636         PR 1078
24638         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
24639         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
24640         to corresponding attribute.
24642 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
24644         * doc/extend.texi (Common Function Attributes) <noplt>: Move
24645         to correct alphabetization of table.  Copy-edit and correct
24646         markup.
24647         <stack_protect>: Likewise.
24648         <target_clones>: Likewise.
24649         <simd>: Likewise.
24650         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
24651         Correct punctuation.
24652         (Code Gen Options) <-fno-plt>: Copy-edit.
24654 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24656         PR target/68917
24657         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
24658         SI values.  Explicitly convert SI to DI and vice-versa.
24660 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
24662         PR tree-optimization/69070
24663         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
24664         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
24666         PR sanitizer/69055
24667         * ubsan.c (ubsan_instrument_float_cast): Call
24668         initialize_sanitizer_builtins.
24670         PR target/69015
24671         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
24673 Copyright (C) 2016 Free Software Foundation, Inc.
24675 Copying and distribution of this file, with or without modification,
24676 are permitted in any medium without royalty provided the copyright
24677 notice and this notice are preserved.