[ARM][doc] Document deprecation of pre-ARMv4T architecture revisions
[official-gcc.git] / gcc / ChangeLog
blob912344cd12175ccc409f6f7922c1a140667918f9
1 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
4         architecture revisions.
6 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
8         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
9         * config/i386/i386.c (ix86_using_red_zone): No longer static.
10         * config/i386/i386.md (stack decrement to push peepholes): Guard
11         with !x86_using_red_zone ().
13 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
15         PR c++/70675
16         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
17         to dump_generic_node.
18         (NIY): Pass also flags to do_niy.
20 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
22         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
23         (simd_clone_vector_of_formal_parm_types)
24         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
25         (simd_clone_mangle, simd_clone_create)
26         (simd_clone_adjust_return_type, create_tmp_simd_array)
27         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
28         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
29         (ipa_simd_modify_function_body, simd_clone_linear_addend)
30         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
31         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
32         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
33         into...
34         * omp-simd-clone.c: ... this new file.
35         (simd_clone_vector_of_formal_parm_types): Make it static.
36         * Makefile.in (OBJS): Add omp-simd-clone.o.
38 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
40         PR target/70662
41         * config/i386/sse.md: Use proper memory operand
42         modifiers.
45 2016-04-15  Richard Biener  <rguenther@suse.de>
46         Alan Modra  <amodra@gmail.com>
48         PR tree-optimization/70130
49         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
50         when alignment stays not the same and no not use the realign
51         scheme then.
53 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
55         PR target/70669
56         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
57         direct move handlers for KFmode. Change TFmode handlers test from
58         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
60 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
62         PR c++/70594
63         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
64         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
65         (inlined_polymorphic_ctor_dtor_block_p): Use it.
66         * tree-ssa-live.c (remove_unused_scope_block_p): When
67         in_ctor_dtor_block, avoid discarding not just BLOCKs with
68         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
69         block_ultimate_origin is FUNCTION_DECL.
70         (remove_unused_locals): If current_function_decl is
71         polymorphic_ctor_dtor_p, pass initial true to
72         remove_unused_scope_block_p' is_ctor_dtor_block.
74 2016-04-14  Martin Sebor  <msebor@redhat.com>
76         PR c++/69517
77         PR c++/70019
78         PR c++/70588
79         * doc/extend.texi (Variable Length): Revert.
81 2016-04-14  Marek Polacek  <polacek@redhat.com>
82             Jan Hubicka  <hubicka@ucw.cz>
84         PR c++/70029
85         * tree.c (verify_type): Disable the canonical type of main variant
86         check.
88 2016-04-14  Jason Merrill  <jason@redhat.com>
90         * cfgexpand.c, expr.c: Revert previous change.
92 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
94         PR middle-end/70643
95         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
96         when building a mem ref for the incoming reduction variable.
98 2016-04-14  Richard Biener  <rguenther@suse.de>
100         PR tree-optimization/70614
101         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
102         loop if the evolution dropped to chrec_dont_know.
103         (interpret_condition_phi): Likewise.
105 2016-04-14  Richard Biener  <rguenther@suse.de>
107         PR tree-optimization/70623
108         * tree-ssa-pre.c (changed_blocks): Make global ...
109         (compute_antic): ... local here.  Move and fix worklist
110         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
111         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
112         worklist handling, dump when ANTIC_IN changed.
113         (compute_partial_antic_aux): Remove worklist handling.
114         (init_pre): Do not compute post dominators.  Add a comment about
115         the CFG order chosen.
116         (fini_pre): Do not free post dominators.
118 2016-04-13  Martin Sebor  <msebor@redhat.com>
120         PR c++/69517
121         PR c++/70019
122         PR c++/70588
123         * doc/extend.texi (Variable Length): Document C++ specifics.
125 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
127         PR c++/70641
128         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
129         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
130         eh edges have been purged.
132         PR c++/70594
133         * tree-sra.c (create_access_replacement,
134         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
135         gets fancy name.
136         * tree-pretty-print.c (dump_fancy_name): New function.
137         (dump_decl_name, dump_generic_node): Use it.
139 2016-04-13  Jason Merrill  <jason@redhat.com>
141         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
142         * expr.c (expand_expr_real_1): Likewise.
144 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
146         * config/i386/i386.md (kunpckhi): Swap operands.
147         (kunpcksi): Likewise.
148         (kunpckdi): Likewise.
149         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
150         (vec_pack_trunc_<mode>): Likewise.
152 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
154         PR debug/70628
155         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
157         PR middle-end/70633
158         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
159         gimplification turns some element into non-constant.
161         PR debug/70628
162         * rtl.h (convert_memory_address_addr_space_1): New prototype.
163         * explow.c (convert_memory_address_addr_space_1): No longer static,
164         add NO_EMIT argument and don't call convert_modes if true, pass
165         it down recursively, remove break after return.
166         (convert_memory_address_addr_space): Adjust caller.
167         * simplify-rtx.c (simplify_unary_operation_1): Call
168         convert_memory_address_addr_space_1 instead of convert_memory_address,
169         if it returns NULL, don't simplify.
171 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
173         PR target/70630
174         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
176 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
178         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
179         Bump the upper SIMDLEN limits, so that if the return type or
180         characteristic type if the return type is void can be passed in
181         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
182         allowed.
184 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
186         PR target/70640
187         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
188         Do not use "=" constraint on an input constraint.
189         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
190         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
191         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
192         generates (neg (abs ...)) instead of (abs ...).
194 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
196         PR rtl-optimization/70596
197         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
198         just invalidate LRA data and reset them.  Adjust dump wording.
200 2016-04-12  Martin Liska  <mliska@suse.cz>
202         Revert
203         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
205         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
206         estimates here.
207         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
208         max_loop_iterations_int.
209         (tree_unswitch_outer_loop): Likewise.
210         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
211         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
213 2016-04-12  Tom de Vries  <tom@codesourcery.com>
215         PR tree-optimization/68756
216         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
217         instead of new_name.
219 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
221         PR tree-optimization/70602
222         * tree-sra.c (generate_subtree_copies): Don't write anything into
223         constant pool decls.
225         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
226         regardless whether there are depend clauses or not.
228 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
230         PR target/70381
231         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
232         target attribute and pragma from changing the -mfloat128
233         and -mfloat128-hardware options.
235         * doc/extend.texi (Additional Floating Types): Document PowerPC
236         __float128 restrictions.
238 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
240         PR target/70133
241         * config/aarch64/driver-aarch64.c
242         (aarch64_get_extension_string_for_isa_flags): New.
243         (arch_extension): Rename to...
244         (aarch64_arch_extension): ...This.
245         (ext_to_feat_string): Rename to...
246         (aarch64_extensions): ...This.
247         (aarch64_core_data): Keep track of architecture extension flags.
248         (cpu_data): Rename to...
249         (aarch64_cpu_data): ...This.
250         (aarch64_arch_driver_info): Keep track of architecture extension
251         flags.
252         (get_arch_name_from_id): Rename to...
253         (get_arch_from_id): ...This, change return type.
254         (host_detect_local_cpu): Update and reformat for renames, handle
255         extensions through common infrastructure.
257 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
259         PR target/70133
260         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
261         track of a canonical flag name.
262         (all_extensions): Likewise.
263         (arch_to_arch_name): Also track extension flags enabled by the arch.
264         (all_architectures): Likewise.
265         (aarch64_parse_extension): Move to here.
266         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
267         rework.
268         (aarch64_rewrite_selected_cpu): Update for above change.
269         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
270         are handled, such that the single explicit value enabled by an
271         extension is kept seperate from the implicit values it also enables.
272         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
273         to here.
274         (aarch64_parse_extension): New.
275         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
276         here to config/aarch64/aarch64-protos.h.
277         (aarch64_parse_extension): Move from here to
278         common/config/aarch64/aarch64-common.c.
279         (aarch64_option_print): Update.
280         (aarch64_declare_function_name): Likewise.
281         (aarch64_start_file): Likewise.
282         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
283         the canonical flag for extensions.
284         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
285         flags.
287 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
289         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
290         AARCH64_FL_CRC.
292 2016-04-09  Tom de Vries  <tom@codesourcery.com>
294         PR tree-optimization/68953
295         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
296         first to last subscript.
298 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
300         PR tree-optimization/70586
301         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
302         for any calls.
304 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
306         PR lto/70289
307         PR ipa/70348
308         PR tree-optimization/70373
309         PR middle-end/70533
310         PR middle-end/70534
311         PR middle-end/70535
312         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
313         clauses for acc parallel reductions as necessary.  Error on those
314         that are private.
315         * omp-low.c (scan_sharing_clauses): Don't install variables which
316         are used in acc parallel reductions.
317         (lower_rec_input_clauses): Remove dead code.
318         (lower_oacc_reductions): Add support for reference reductions.
319         (lower_reduction_clauses): Remove dead code.
320         (lower_omp_target): Don't remap variables appearing in acc parallel
321         reductions.
322         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
324 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
326         PR middle-end/70593
327         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
328         with multiple SSA_NAME defs, force the outputs other than first
329         to be live before calling live_track_process_def on each output.
331         PR rtl-optimization/70574
332         * fwprop.c (forward_propagate_and_simplify): Don't add
333         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
334         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
335         paradoxical subregs within *loc.
337 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
339         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
340         -ftree-parallelize-loops={0,1}.
341         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
342         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
343         * config/ia64/hpux.h (LIB_SPEC): Likewise.
344         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
345         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
347 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
349         PR sanitizer/70541
350         * asan.c (instrument_derefs): If we get unknown location, extract it
351         with EXPR_LOCATION.
352         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
354 2016-04-08  Tom de Vries  <tom@codesourcery.com>
356         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
357         implicit firstprivate clause.
359 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
361         PR target/70566
362         * config/arm/thumb2.md (tst + branch-> lsls + branch
363         peephole below *orsi_not_shiftsi_si): Require that condition
364         register is dead after the peephole.
365         (second peephole after the above): Likewise.
367 2016-04-08  Alan Modra  <amodra@gmail.com>
369         PR target/70117
370         * builtins.c (fold_builtin_classify): For IBM extended precision,
371         look at just the high-order double to test for NaN.
372         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
373         test just the high double for Inf but both doubles for subnormal
374         limit.
376 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
378         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
379         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
380         node->simdclone->mask_mode != VOIDmode masks.
381         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
382         earlier, use it instead of node->simdclone.
383         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
384         Set clonei->mask_mode.
386 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
388         PR c/70436
389         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
390         Pass it through to cp_parser_already_scoped_statement.
391         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
392         it through to cp_parser_statement.
393         (cp_parser_statement): Pass IF_P through to
394         cp_parser_iteration_statement.
395         (cp_parser_pragma): Adjust call to
396         cp_parser_iteration_statement.
398 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
400         PR c/70436
401         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
402         resolve a future -Wparentheses warning.
403         * omp-low.c (scan_sharing_clauses): Likewise.
404         * tree-parloops.c (eliminate_local_variables): Likewise.
406 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
408         PR rtl-optimization/70398
409         * lra-constraints.c (process_address_1): Check zero scale and code
410         for reloading with zero scale.
412 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
414         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
415         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
417 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
419         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
420         Add support for AVX512F clones, include them by default for
421         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
422         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
423         up to 128.
425         PR middle-end/70550
426         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
427         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
428         firstprivate clauses.
429         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
430         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
431         (lower_omp_target): Set TREE_NO_WARNING for
432         non-addressable possibly uninitialized vars which are copied into
433         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
435 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
437         * config/pa/predicates.md (integer_store_memory_operand): Accept
438         REG+D operands with a large offset when reload_in_progress is true.
439         (floating_point_store_memory_operand): Likewise.
441 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
443         PR c++/70336
444         * match.pd (nested int casts): Limit to GIMPLE.
446 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
448         PR ipa/66223
449         * ipa-devirt.c (maybe_record_node): Fix comment; use
450         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
452 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
454         PR rtl-optimization/70542
455         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
456         if there are any uses other than insn or debug insns.
458 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
459             Jakub Jelinek  <jakub@redhat.com>
461         PR tree-optimization/70509
462         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
463         Shift HOST_WIDE_INT_1U instead of 1.
465 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
467         PR tree-optimization/70509
468         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
469         of the vector base type for index.
471 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
473         PR target/70510
474         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
476 2016-04-05  Richard Biener  <rguenther@suse.de>
478         PR tree-optimization/70526
479         * tree-sra.c (build_ref_for_offset): Use prev_base to
480         extract the alias pointer type.
482 2016-04-05  Richard Biener  <rguenther@suse.de>
484         * dse.c (struct store_info): Remove alias_set member.
485         (struct read_info_type): Likewise.
486         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
487         spill_deleted, clear_alias_set_lookup): Remove.
488         (get_group_info): Remove dead base == NULL_RTX case.
489         (dse_step0): Remove initialization of removed variables.
490         (delete_dead_store_insn): Reomve alias set dumping.
491         (free_read_records): Remove alias_set handling.
492         (canon_address): Remove alias_set_out parameter.
493         (record_store): Remove spill_alias_set, it's always zero.
494         (check_mem_read_rtx): Likewise.
495         (dse_step2): Rename from ...
496         (dse_step2_nospill): ... this.  Adjust.
497         (scan_stores): Rename from ...
498         (scan_stores_nospill): ... this.
499         (scan_reads): Rename from ...
500         (scan_reads_nospill): ... this.
501         (scan_stores_spill, scan_reads_spill): Remove.
502         (dse_step3_scan): Remove for_spills argument which is always false.
503         (dse_step3): Likewise.
504         (dse_step5): Rename from ...
505         (dse_step5_nospill): ... this.  Remove alias_set handling.
506         (rest_of_handle_dse): Adjust.
508 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
510         PR target/70525
511         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
512         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
513         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
514         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
516 2016-04-05  Richard Biener  <rguenther@suse.de>
518         PR middle-end/70499
519         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
520         non-register type temporaries into SSA.
522 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
524         PR ipa/66223
525         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
526         calls when sanitizing.
527         (possible_polymorphic_call_target_p): Fix formatting.
529 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
530             Jakub Jelinek <jakub@redhat.com>
532         PR middle-end/70457
533         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
534         to ensure a call statement is compatible with a built-in's
535         prototype.
536         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
537         Likewise.
539 2016-04-04  Richard Biener  <rguenther@suse.de>
541         PR rtl-optimization/70484
542         * rtl.h (canon_output_dependence): Declare.
543         * alias.c (canon_output_dependence): New function.
544         * dse.c (record_store): Use canon_output_dependence rather
545         than canon_true_dependence.
547 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
549         PR ipa/68881
550         * cgraph.h (symtab_node::copy_visibility_from): New function.
551         * symtab.c (symtab_node::copy_visibility_from): New function.
552         * ipa-visibility.c (optimize_weakref): New function.
553         (function_and_variable_visibility): Use it.
555 2016-04-04  Martin Liska  <mliska@suse.cz>
557         PR hsa/70402
558         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
559         value that is really in range handled by SBR instruction.
560         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
561         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
562         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
564 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
566         PR target/70416
567         PR target/67391
568         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
569         set, but not for SP_REG operands.
571 2016-04-02  Martin Sebor  <msebor@redhat.com>
573         PR c++/67376
574         * fold-const.c (maybe_nonzero_address): New function.
575         (fold_comparison): Call it.  Fold equality and relational
576         expressions involving null pointers.
577         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
579 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
581         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
582         the "Y" constraint (scalar FP 0.0 immediate).
584         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
585         Add the "const_double" to the list of operand constraints.
587 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
589         PR rtl-optimization/70467
590         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
591         If low word of the last operand is 0, just emit addition/subtraction
592         for the high word.
594 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
596         PR target/70404
597         * config/s390/s390.c (s390_expand_insv): Check for everything
598         constant instead of just VOIDmode stuff.
600 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
602         PR target/70496
603         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
605 2016-04-01  Nathan Sidwell  <nathan@acm.org>
607         * tree.def (TRY_CATCH_EXPR): Correct documentation.
609 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
611         PR rtl-optimization/70461
612         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
613         is necessary.
615 2016-03-31  Martin Liska  <mliska@suse.cz>
617         PR hsa/70399
618         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
619         a tree value or an immediate integer value to a buffer
620         that is eventually copied to a BRIG section.
621         (emit_immediate_operand): Call the function here.
622         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
623         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
624         of class' fields that are removed.
625         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
626         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
627         m_brig_repr_size fields.
629 2016-03-31  Martin Liska  <mliska@suse.cz>
631         PR hsa/70391
632         * hsa-gen.c (hsa_function_representation::update_dominance): New
633         function.
634         (convert_addr_to_flat_segment): Likewise.
635         (gen_hsa_memory_set): New alignment argument.
636         (gen_hsa_ctor_assignment): Likewise.
637         (gen_hsa_insns_for_single_assignment): Provide alignment
638         to gen_hsa_ctor_assignment.
639         (gen_hsa_insns_for_direct_call): Add new argument.
640         (expand_lhs_of_string_op): New function.
641         (expand_string_operation_builtin): Likewise.
642         (expand_memory_copy): New function.
643         (expand_memory_set): New function.
644         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
645         (convert_switch_statements): Change signature.
646         (generate_hsa): Use a return value of the function.
647         (pass_gen_hsail::execute): Do not call
648         convert_switch_statements here.
649         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
650         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
651         (hsa_function_representation::update_dominance): New function.
653 2016-03-31  Martin Liska  <mliska@suse.cz>
655         PR hsa/70391
656         * hsa-brig.c (emit_directive_variable): Emit alignment
657         according to hsa_symbol::m_align.
658         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
659         (dump_hsa_symbol): Dump alignment of HSA symbols.
660         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
661         (gen_hsa_addr_with_align): New function.
662         (hsa_bitmemref_alignment): Use newly added function.
663         (gen_hsa_insns_for_load): Likewise.
664         (gen_hsa_insns_for_store): Likewise.
665         (gen_hsa_memory_copy): New argument added.
666         (gen_hsa_insns_for_single_assignment): Respect
667         alignment for assignments processed via gen_hsa_memory_copy.
668         (gen_hsa_insns_for_direct_call): Likewise.
669         (gen_hsa_insns_for_return): Likewise.
670         (gen_function_def_parameters): Set default alignment.
671         * hsa.c (hsa_object_alignment): New function.
672         (hsa_byte_alignment): Pasted function.
673         * hsa.h (hsa_symbol::m_align): New field.
675 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
677         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
678         scratch field for goto case.
680 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
682         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
684 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
686         PR target/70442
687         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
688         (scalar_chain::convert_insn): Call convert_op for reg
689         moves to handle undefined registers.
691 2016-03-31  Nathan Sidwell  <nathan@acm.org>
693         PR c++/70393
694         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
695         Assert we don't want to move backwards.
697 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
699         PR target/70453
700         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
702 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
704         PR rtl-optimization/70460
705         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
706         with operand from REG_LABEL_OPERAND, instead substitute
707         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
708         Don't do anything for REG_NON_LOCAL_GOTO jumps.
710 2016-03-31  Martin Liska  <mliska@suse.cz>
712         * passes.c (execute_one_pass): Do not call
713         todo_after for a discarded function.
715 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
717         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
718         (no_cost, infinite_cost): Initialize the new field.
719         (get_computation_cost_at): Record setup cost.
720         (determine_use_iv_cost_address): Skip cost computation for sub
721         uses if we can estimate it without losing accuracy.
723 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
725         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
726         estimates here.
727         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
728         max_loop_iterations_int.
729         (tree_unswitch_outer_loop): Likewise.
730         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
731         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
733 2016-03-30  Richard Biener  <rguenther@suse.de>
735         PR middle-end/70450
736         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
738 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
740         PR target/70421
741         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
742         in gen_blendm expander.
744 2016-03-30  Nick Clifton  <nickc@redhat.com>
746         PR target/62254
747         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
748         case where we are already provided with an SImode SUBREG.
750 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
752         PR target/70439
753         * config/i386/i386.c (ix86_expand_epilogue): Properly check
754         conflict between DRAP register and __builtin_eh_return.
756 2016-03-30  Michael Matz  <matz@suse.de>
757             Richard Biener  <rguenther@suse.de>
759         PR ipa/12392
760         * ipa-polymorphic-call.c (struct type_change_info): Change
761         speculative to an unsigned allowing to limit the work we do.
762         (csftc_abort_walking_p): New inline function..
763         (check_stmt_for_type_change): Limit the number of may-defs
764         skipped for speculative devirtualization to
765         max-speculative-devirt-maydefs.
766         * params.def (max-speculative-devirt-maydefs): New param.
767         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
769 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
771         PR target/63890
772         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
773         and TARGET_MACHO.
775 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
777         PR tree-optimization/59124
778         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
779         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
781 2016-03-29  Jeff Law  <law@redhat.com>
783         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
785 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
787         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
788         to HOST_WIDE_INT.
790 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
792         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
793         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
794         gcrt0.o if linking dynamically.
796 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
798         PR ipa/70283
799         * ipa-devirt.c (methods_equal_p): New function.
800         (compare_virtual_tables): Use it.
801         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
802         * cgraphclones.c (clone_function_name_1): Use
803         symbol_table::symbol_suffix_separator.
804         * coverage.c (build_var): Likewise.
805         * symtab.c (symbol_table::symbol_suffix_separator): New.
807 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
809         PR rtl-optimization/70429
810         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
811         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
812         mode != result_mode.
814         PR c++/70353
815         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
817         PR tree-optimization/70405
818         * ssa-iterators.h (num_imm_uses): Add missing braces.
820 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
822         PR rtl-optimization/68695
823         * ira-color.c (allocno_copy_cost_saving): New.
824         (improve_allocation): Use it.
826 2016-03-29  Richard Henderson  <rth@redhat.com>
828         PR middle-end/70355
829         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
831 2016-03-29  Richard Biener  <rguenther@suse.de>
833         PR middle-end/70424
834         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
835         use alignment returned by get_pointer_alignment_1 if it is
836         bigger than BITS_PER_UNIT.
837         * builtins.c (get_pointer_alignment_1): Do not return true
838         for alignment extracted from SSA info.
840 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
842         * config/ft32/ft32.opt (mnodiv): New.
843         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
844         * doc/invoke.texi (FT32 Options -mnodiv): New.
846 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
848         PR target/70406
849         * config/i386/i386.md (define_split, andn): Fix modes.
851 2016-03-26  Richard Biener  <rguenther@suse.de>
852             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
854         PR ipa/70366
855         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
856         instead of
857         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
858         as 2nd argument to cl_optimization_restore().
860 2016-03-25  Richard Henderson  <rth@redhat.com>
862         PR target/70120
863         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
864         * config/aarch64/aarch64-protos.h: Declare it.
865         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
867 2016-03-25  Alan Modra  <amodra@gmail.com>
869         PR target/70052
870         * config/rs6000/constraints.md (j): Simplify.
871         * config/rs6000/predicates.md (easy_fp_constant): Exclude
872         decimal float 0.D.
873         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
874         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
875          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
876         in all constraint alternatives.
877         (movtd_64bit_nodm): Delete "j" constraint alternative.
879 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
881         * tree-ssa-propagate.c: Enhance docs for
882         SSA_PROP_NOT_INTERESTING.
884 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
886         * doc/extend.texi: Fix typo in documentation to pure attribute.
888 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
890         PR target/70319
891         * config/pa/pa.md (bswapdi2): Use a scratch register.
893 2016-03-24  Richard Henderson  <rth@redhat.com>
895         PR middle-end/69845
896         * fold-const.c (extract_muldiv_1): Correct test for multiplication
897         overflow.
899 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
901         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
902         using ix86_expand_binary_operator instead of gen_andsi3.
904 2016-03-24  Richard Biener  <rguenther@suse.de>
906         PR tree-optimization/70396
907         * tree-vect-stmts.c (vectorizable_comparison): Use
908         get_vectype_for_scalar_type.
910 2016-03-24  Richard Biener  <rguenther@suse.de>
912         PR middle-end/70370
913         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
914         with register bases.
916 2016-03-24  Richard Biener  <rguenther@suse.de>
918         PR tree-optimization/70372
919         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
920         build_all_ones_cst to also handle vector types correctly.
922 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
924         PR target/70381
925         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
926         -mfloat128 here.
928 2016-03-23  Marek Polacek  <polacek@redhat.com>
930         PR c++/69884
931         * doc/invoke.texi: Document -Wignored-attributes.
933 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
935         PR tree-optimization/69042
936         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
937         parameter from 30 to 40.
939 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
941         PR tree-optimization/69042
942         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
943         for use with constant offset stripped in base.
945 2016-03-23  Richard Biener  <rguenther@suse.de>
947         PR middle-end/70251
948         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
949         mode compatibility check.
950         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
952 2016-03-23  Jeff Law  <law@redhat.com>
954         PR tree-optimization/64058
955         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
956         CONFLICT_COUNT.
957         (struct ssa_conflicts): Move up earlier in the file.
958         (conflicts_, var_map_): New static variables.
959         (initialize_conflict_count): New function to initialize the
960         CONFLICT_COUNT field for each conflict pair.
961         (compare_pairs): Lazily initialize the conflict count and use it
962         as the first tie-breaker.
963         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
964         and wipe conflicts_ and map_ around the call to qsort.  Remove
965         special case for 2 coalesce pairs.
966         * bitmap.c (bitmap_count_unique_bits): New function.
967         (bitmap_count_bits_in_word): New function, extracted from
968         bitmap_count_bits.
969         (bitmap_count_bits): Use bitmap_count_bits_in_word.
970         * bitmap.h (bitmap_count_unique_bits): Declare it.
972 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
974         PR target/69917
975         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
976         transparent alias chain for decl assembler name.
977         * config/sol2.c (solaris_assemble_visibility): Likewise.
979 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
981         * config/arm/arm1020e.md (1020call_op): Reduce reservation
982         duration.
983         (v10_fdivs): Likewise.
984         (v10_fdivd): Likewise.
986 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
988         PR driver/70132
989         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
990         to not call fclose twice on file.
992 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
994         PR tree-optimization/70354
995         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
996         oprnd0 is wider than oprnd1 and there is a cast from the wider
997         type to oprnd1, mask it with the mask of the narrower type.
999         PR target/70321
1000         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
1001         Optimize TARGET_STV splitters, if high or low word of last argument
1002         is 0 or -1.
1004 2016-03-22  Jeff Law  <law@redhat.com>
1006         PR target/70232
1007         tree-ssa-threadbackward.c
1008         (fsm_find_control_statement_thread_paths): Correctly distinguish
1009         between old style jump threads vs FSM jump threads.
1011 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
1013         PR target/70302
1014         * config/i386/i386.c (scalar_chain::convert_op): Support
1015         uninitialized register usage case.
1017 2016-03-22  Richard Biener  <rguenther@suse.de>
1019         PR middle-end/70251
1020         * genmatch.c (gen_transform): Adjust last parameter to a three-state
1021         int...
1022         (capture::gen_transform): ... to change behavior when substituting
1023         a condition into cond or not-cond expr context.
1024         (dt_simplify::gen_1): Adjust.
1025         * gimple-match-head.c: Include gimplify.h for unshare_expr.
1026         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
1027         last change and instead change to
1028         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
1029         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1031 2016-03-22  Anthony Green  <green@moxielogic.com>
1033         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
1034         issue for moxiebox targets.
1035         (CC1PLUS_SPEC): Ditto.
1037 2016-03-22  Richard Biener  <rguenther@suse.de>
1039         PR middle-end/70333
1040         * fold-const.c (extract_muldiv_1): Properly perform multiplication
1041         in the wide type.
1043 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1045         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
1047 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
1049         PR target/70325
1050         * config/i386/i386.c (def_builtin): Handle
1051         OPTION_MASK_ISA_AVX512VL to be and-ed with other
1052         bits.
1053         (const struct builtin_description bdesc_special_args[]):
1054         Remove duplicate ISA bits.
1056 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
1058         PR target/70329
1059         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
1060         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
1061         in a way that works also for AVX512BW.
1063         PR target/70300
1064         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
1065         instead of source if operands[1] is xmm16 and above and
1066         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
1067         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
1069         PR c++/70295
1070         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
1071         on assign if (*from_p) is a comparison, set it to
1072         TREE_NO_WARNING (*from_p).
1074 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
1076         PR middle-end/70326
1077         * lra.c (restore_scratches): Ignore deleted insns.
1079 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
1080             Jakub Jelinek  <jakub@redhat.com>
1082         PR tree-optimization/70317
1083         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
1084         to HONOR_NANS.
1086 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
1088         PR target/70327
1089         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
1090         of ix86_expand_move.
1091         (movoi): Ditto.
1092         (movti): Use general_operand for operand 1 predicate.
1094 2016-03-21  Martin Liska  <mliska@suse.cz>
1096         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
1097         insns.
1098         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
1100 2016-03-21  Martin Liska  <mliska@suse.cz>
1102         PR ipa/70306
1103         * ipa-icf.c (sem_function::parse): Skip static
1104         constructors and destructors.
1106 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
1108         PR target/70296
1109         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
1110         function-like macro, peek following token(s) if it is followed
1111         by CPP_OPEN_PAREN token with optional padding in between, and
1112         if not, don't treat it like a macro.
1114 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1115             Alexander Monakov  <amonakov@ispras.ru>
1117         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
1118         for the stabs debug format.
1120 2016-03-21  Richard Biener  <rguenther@suse.de>
1122         PR tree-optimization/70310
1123         * tree-vect-generic.c (expand_vector_condition): Fold the built
1124         condition.
1126 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1128         PR target/70293
1129         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
1130         Block third alternative for AVX-512VL target,
1132 2016-03-21  Martin Liska  <mliska@suse.cz>
1134         PR hsa/70234
1135         * hsa-brig.c (emit_function_directives): Mark unemitted
1136         global variables for emission.
1137         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
1138         (get_symbol_for_decl): Likewise.
1139         * hsa.h (struct hsa_symbol): New flag.
1141 2016-03-21  Richard Biener  <rguenther@suse.de>
1143         PR tree-optimization/70288
1144         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
1145         we do not estimate unsimplified all-constant conditionals or
1146         switches as optimized away.
1148 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
1150         PR rtl-optimization/69102
1151         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
1152         when we have a readonly dependency context.
1154 2016-03-18  Jeff Law  <law@redhat.com>
1156         PR rtl-optimization/70263
1157         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
1158         (update_equiv_regs): When trying to move a store to after the insn
1159         that sets the source of the store, make sure the store occurs after
1160         the insn that sets the source of the store.  When successful note
1161         the REG_EQUIV note created in the dump file.
1163 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
1164             Bernd Schmidt  <bschmidt@redhat.com>
1166         * doc/extend.texi: Document more potential problems with basic asms.
1168 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
1170         PR rtl-optimization/70278
1171         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
1172         VOIDmode.
1174 2016-03-18  Jason Merrill  <jason@redhat.com>
1176         * calls.c (load_register_parameters): Fix zero size sibcall logic.
1178 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
1180         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
1181         values to 128b regs.
1183 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
1185         PR tree-optimization/70252
1186         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
1187         boolean vector has a proper number of elements.
1188         (supportable_narrowing_operation): Likewise.
1190 2016-03-18  Tom de Vries  <tom@codesourcery.com>
1192         PR ipa/70269
1193         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
1195 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
1197         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
1198         instead of replace_rtx for DEBUG_INSNs.
1200 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1202         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
1203         load type reservations.
1205 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
1207         PR target/70188
1208         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
1209         define_constraint for "Q" and "T" constraints.
1211 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
1213         Tweak the pipeline model for Exynos M1
1215         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
1216         model.
1218 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
1220         PR c/70264
1221         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
1222         where one or both locations aren't within a line_map.
1224 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1226         PR driver/70192
1227         * opts.c (finish_options): Don't set flag_pie to the default if
1228         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
1229         if it is -1.
1231 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
1233         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
1234         true as ALL_REGS argument to replace_rtx.
1236 2016-03-17  Richard Biener  <rguenther@suse.de>
1238         PR debug/70271
1239         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
1240         last.
1242 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
1244         PR target/70245
1245         * rtl.h (replace_rtx): Add ALL_REGS argument.
1246         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
1247         equality and assert mode is the same, instead of just rtx pointer
1248         equality.
1249         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
1250         true as ALL_REGS argument to replace_rtx.
1252 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
1254         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
1255         for boolean vector with vector mode only.
1256         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1258 2016-03-17  Nick Clifton  <nickc@redhat.com>
1260         PR target/70162
1261         * config/rx/rx.c (rx_print_integer): Print negative constants in
1262         decimal.
1264 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
1266         PR target/70261
1267         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
1269 2016-03-16  Richard Henderson  <rth@redhat.com>
1270             Richard Biener  <rguenth@suse.de>
1272         PR middle-end/70240
1273         PR middle-end/68215
1274         PR tree-opt/68714
1275         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
1276         first operand as is_gimple_condexpr.
1278         PR middle-end/70240
1279         PR middle-end/68215
1280         Revert r231575
1281         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
1282         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
1283         Do not gimplify the result.
1284         (do_unop): Adjust call to tree_vec_extract.
1285         (do_binop): Likewise.
1286         (do_compare): Likewise.
1287         (do_plus_minus): Likewise.
1288         (do_negate): Likewise.
1289         (expand_vector_condition): Likewise.
1290         (do_cond): Likewise.
1292 2016-03-16  Richard Henderson  <rth@redhat.com>
1294         PR target/70048
1295         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
1296         (aarch64_classify_address): Use it.
1297         (aarch64_legitimize_address): Force all subexpressions of PLUS
1298         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
1300 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
1301             Richard Biener  <rguenth@suse.de>
1303         PR target/70245
1304         * rtlanal.c (replace_rtx): For REG, if from is a REG,
1305         return to even if only REGNO is equal, and assert
1306         mode is the same.
1308 2016-03-11  Jeff Law  <law@redhat.com>
1310         PR rtl-optimization/70224
1311         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
1313 2016-03-16  Richard Henderson  <rth@redhat.com>
1315         PR middle-end/70199
1316         * function.h (struct function): Add has_forced_label_in_static.
1317         * gimplify.c (force_labels_r): Set it.
1318         * lto-streamer-in.c (input_struct_function_base): Read it.
1319         * lto-streamer-out.c (output_struct_function_base): Write it.
1320         * tree-inline.c (has_label_address_in_static_1): Remove.
1321         (copy_forbidden): Remove fndecl parameter; test
1322         has_forced_label_in_static.
1323         (inline_forbidden_p): Update call to copy_forbidden.
1324         (tree_versionable_function_p): Likewise.
1325         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
1326         (chkp_versioning): Likewise.
1327         * tree-inline.h (copy_forbidden): Update decl.
1329 2016-03-16  Marek Polacek  <polacek@redhat.com>
1331         PR c/70093
1332         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
1333         function being thunked if the result type doesn't have fixed size.
1334         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
1335         doesn't have fixed size.
1337 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
1339         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
1340         reporting malformed loop nest.
1342 2016-03-16  Tom de Vries  <tom@codesourcery.com>
1344         PR lto/70187
1345         * ipa-devirt.c (possible_polymorphic_call_targets): Move
1346         nodes.length () == 1 test to before first nodes[0] access.
1348 2016-03-16  Tom de Vries  <tom@codesourcery.com>
1350         PR tree-optimization/68715
1351         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
1352         single_pred_p test.
1354 2016-03-16  Tom de Vries  <tom@codesourcery.com>
1356         PR tree-optimization/68809
1357         * graphite-scop-detection.c (same_close_phi_node): Test if result types
1358         are the same.
1360 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
1361             Sandra Loosemore  <sandra@codesourcery.com>
1363         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
1364         on leaf attribute. Mention ELF interposition problems.
1366 2016-03-16  Alan Modra  <amodra@gmail.com>
1368         PR rtl-optimization/69195
1369         PR rtl-optimization/47992
1370         * ira.c (indirect_jump_optimize): Ignore artificial defs.
1371         Add comments.
1373 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
1375         PR bootstrap/69513
1376         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
1378 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1380         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
1382 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
1384         PR rtl-optimization/70222
1385         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
1386         optimization if mode is different from result_mode, queue up masking
1387         of the result in outer_op.  Formatting fix.
1389         PR middle-end/70239
1390         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
1391         of safe_grow.
1393 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
1395         PR rtl-optimization/69032
1396         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
1397         looping backwards over basic block insns.
1399 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
1401         PR target/66660
1402         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
1403         to non-speculative when propagating trap bits.
1405 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
1407         PR rtl-optimization/63384
1408         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
1409         DEBUG_INSN_P insns.
1411 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
1413         PR target/64411
1414         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
1415         factored out from ...
1416         (sched_analyze_insn): ... here.
1417         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
1418         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
1419         get_implicit_reg_pending_clobbers in it.
1420         (setup_id_reg_sets): Use setup_id_implicit_regs.
1421         (deps_init_id): Ditto.
1423 2016-03-15  Tom de Vries  <tom@codesourcery.com>
1425         PR ipa/70161
1426         * cgraph.c (cgraph_node::get_body): Save, reset and restore
1427         dump_file_name.
1428         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
1429         execute_function_dump.
1430         (execute_one_pass): Don't dump function if it will be dumped after ipa
1431         transform.
1433 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
1435         * genrecog.c (match_pattern_2): If pred is NULL don't call
1436         safe_predicate_mode on it.
1438 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
1440         PR middle-end/70219
1441         * lra-constraints.c (delete_move_and_clobber): Change assertion
1442         to also allow dregno == 0.
1444 2016-03-14  Richard Henderson  <rth@redhat.com>
1446         PR tree-opt/68714
1447         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
1448         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
1449         (reassociate_bb): Use optimize_vec_cond_expr; avoid
1450         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
1451         on vectors.
1453 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
1455         PR target/70083
1456         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
1457         regs.
1458         (lra_create_live_ranges_1): initialize hard register biggest_mode to
1459         VOIDmode.
1460         * lra-constraints.c (split_reg): For hard regs, try to find the
1461         biggest single-register mode used in the function.
1463 2016-03-14  Richard Biener  <rguenther@suse.de>
1465         PR tree-optimization/56365
1466         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
1467         constants to compare against.
1469 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
1471         PR target/70098
1472         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1473         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
1474         (define_split for the GPR case): Use int_reg_operand instead of
1475         gpc_reg_operand for the output.
1477 2016-03-14  Tom de Vries  <tom@codesourcery.com>
1479         PR tree-optimization/70045
1480         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
1481         create_empty_if_region_on_edge argument.
1483 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
1485         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
1486         (STACK_CHECK_PROTECT): Likewise.
1487         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1488         (STACK_CHECK_PROTECT): Likewise.
1489         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1490         (STACK_CHECK_PROTECT): Likewise.
1491         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
1492         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1493         (STACK_CHECK_PROTECT): Likewise.
1495 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
1497         PR rtl-optimization/69307
1498         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
1499         registers in modes that span more than one register.
1501 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
1503         PR target/69614
1504         * lra-constraints.c (delete_move_and_clobber): New.
1505         (remove_inheritance_pseudos): Use it.
1507 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
1509         PR ada/70017
1510         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
1511         the libcall is LCT_THROW.
1512         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
1513         for the checking routine.
1515 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1517         PR target/70131
1518         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
1519         optimization if we have direct move.
1520         (roundu32<mode>2_fprs): Likewise.
1522 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
1524         PR target/70123
1525         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
1526         be rematerialized.
1527         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
1528         Arguments swapped.  All callers changed.  Take reg_renumber into
1529         account, and Calculate and compare register ranges for hard regs.
1531 2016-03-11  Jeff Law  <law@redhat.com>
1533         PR tree-optimization/70190
1534         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1535         Handle cases where we can not extract the taken edge, even though we
1536         found a constant value.
1538         PR tree-optimization/64058
1539         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
1540         (num_coalesce_pairs): Move up earlier in file.
1541         (find_coalesce_pair): Initialize the INDEX field for each pair
1542         discovered.
1543         (compare_pairs): No longer sort on the elements in each pair.
1544         Instead break ties with the index of the coalesce pair.
1546 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1548         PR target/70002
1549         * config/aarch64/aarch64-protos.h
1550         (aarch64_save_restore_target_globals): New prototype.
1551         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
1552         Call the above when popping pragma.
1553         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
1554         New function.
1555         (aarch64_set_current_function): Rewrite using the above.
1557 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
1559         PR tree-optimization/70177
1560         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
1561         (extract_ops_from_tree): ... this.  In the 2 argument
1562         overload remove _1 suffix.
1563         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
1564         (extract_ops_from_tree): ... this.
1565         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
1566         Adjust callers.
1567         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1568         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
1569         extract_ops_from_tree instead of 2 operand one.
1571 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
1573         PR tree-optimization/70013
1574         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
1575         for constant-pool entries.
1577 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
1579         PR rtl-optimization/70174
1580         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
1581         followed by gen_lowpart on force_reg instead of just gen_lowpart.
1583         PR tree-optimization/70169
1584         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
1585         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
1586         for unknown codes.
1588 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
1589             Jakub Jelinek  <jakub@redhat.com>
1591         PR target/70160
1592         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
1593         of uninitialized values.
1595 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1597         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
1598         define_expand.
1599         ("*trunctddd2"): New pattern definition.
1600         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
1601         TD->DD truncation.
1603 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1605         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
1606         definitions for BFP and DFP rounding modes.
1607         ("fixuns_truncdddi2", "fixuns_trunctddi2")
1608         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
1609         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
1610         ("fix_trunctf<mode>2"): Use the new constants instead of magic
1611         numbers.
1613 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1615         * config/s390/constraints.md: Adjust comment.
1616         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
1617         s390_decompose_addrstyle_without_index.
1618         * config/s390/predicates.md (shift_count_or_setmem_operand):
1619         Rename to setmem_operand.
1620         * config/s390/s390-protos.h
1621         (s390_decompose_shift_count): Rename to
1622         s390_decompose_addrstyle_without_index.
1623         * config/s390/s390.c (s390_decompose_shift_count)
1624         (s390_mem_constraint, print_shift_count_operand)
1625         (print_operand_address, print_operand): Rename
1626         s390_decompose_shift_count to
1627         s390_decompose_addrstyle_without_index and rename
1628         print_shift_count_operand to print_addrstyle_operand troughout the
1629         file.
1630         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
1631         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
1632         Rename shift_count_or_setmem_operand to setmem_operand.
1633         * config/s390/vx-builtins.md ("vec_insert<mode>")
1634         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
1635         nonmemory_operand.
1637 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1639         PR target/70168
1640         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1641         Handle overlapping retval and newval.
1643 2016-03-10  Nick Clifton  <nickc@redhat.com>
1645         PR target/7044
1646         * config/aarch64/aarch64.c
1647         (aarch64_override_options_after_change_1): When forcing
1648         flag_omit_frame_pointer to be true, use a special value that can
1649         be detected if this function is called again, thus preventing
1650         flag_omit_leaf_frame_pointer from being forced to be false.
1652 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1654         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
1655         Set x_flag_omit_leaf_frame_pointer when handling
1656         -momit-leaf-frame-pointer.
1658 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
1660         PR lto/69589
1661         * cgraph.c (cgraph_node::dump): Dump split_part and
1662         indirect_call_target.
1663         * cgraph.h (cgraph_node): Add indirect_call_target flag.
1664         * ipa.c (has_addr_references_p): Cleanup.
1665         (is_indirect_call_target_p): New.
1666         (walk_polymorphic_call_targets): Do not mark virtuals that may be
1667         called indirectly as local.
1668         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
1670 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
1672         PR ipa/69630
1673         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1674         on cxa_pure_virtual.
1676 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
1678         PR lto/69589
1679         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
1681 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
1683         PR lto/69589
1684         * tree.c (need_assembler_name_p): Only record main variant type names.
1686 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
1688         PR target/70113.
1689         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
1690         Always define to 0 or 1.
1691         (TARGET_FIX_ERR_A53_843419): New macro.
1692         * config/aarch64/aarch64-elf-raw.h
1693         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
1694         * config/aarch64/aarch64-linux.h: Likewise.
1695         * config/aarch64/aarch64.c
1696         (aarch64_override_options_after_change_1): Do not default
1697         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
1698         843419 is on.
1699         (aarch64_attributes): Handle fix-cortex-a53-843419.
1700         (aarch64_can_inline_p): Likewise.
1701         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
1703 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
1704         Jakub Jelinek <jakub@redhat.com>
1706         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
1707         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
1708         DECL_COMMONS if flag_unconstrained_commons is set.
1709         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1710         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
1711         (funconstrained-commons): Document.
1713 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
1715         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
1716         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
1718 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
1720         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
1721         has a proper number of elements.
1723 2016-03-10  Alan Modra  <amodra@gmail.com>
1725         PR rtl-optimization/69195
1726         PR rtl-optimization/47992
1727         * ira.c (recorded_label_ref): Delete.
1728         (update_equiv_regs): Return void.
1729         (indirect_jump_optimize): New function.
1730         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
1731         before regstat_compute_ri.  Don't rebuild_jump_labels here.
1732         Delete update_regstat.
1734 2016-03-10  Richard Biener  <rguenther@suse.de>
1736         PR tree-optimization/70128
1737         * tree-ssa-structalias.c (set_uids_in_ptset): Set
1738         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
1740 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
1742         PR tree-optimization/70152
1743         * tree-sra.c (replace_removed_params_ssa_names): Copy over
1744         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
1746         PR target/70086
1747         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
1748         instead of gen_sse2_loadlpd.
1749         * config/i386/sse.md (*vec_concatv2df): Rename to...
1750         (vec_concatv2df): ... this.
1752         PR tree-optimization/70127
1753         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
1755 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
1757         PR c/68473
1758         PR c++/70105
1759         * diagnostic-show-locus.c (compatible_locations_p): New function.
1760         (layout::layout): Sanitize ranges using compatible_locations_p.
1762 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
1764         PR c/68473
1765         PR c++/70105
1766         * diagnostic-show-locus.c (layout_range::layout_range): Replace
1767         location_range param with three const expanded_locations * and a
1768         bool.
1769         (layout::layout): Replace call to
1770         rich_location::lazily_expand_location with get_expanded_location.
1771         Extract the range and perform location expansion here, passing
1772         the results to the layout_range ctor.
1773         * diagnostic.c (source_range::debug): Delete.
1774         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
1775         of rich_location::get_expanded_location.
1776         * gcc-rich-location.c (get_range_for_expr): Delete.
1777         (gcc_rich_location::add_expr): Reimplement to avoid the
1778         rich_location::add_range overload that took a location_range,
1779         passing a location_t instead.
1781 2016-03-09  Richard Biener  <rguenther@suse.de>
1782         Jakub Jelinek  <jakub@redhat.com>
1784         PR tree-optimization/70138
1785         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1786         Also skip vect_double_reduction_def.
1788 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
1790         PR target/70049
1791         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
1792         if the operand is "m".
1794 2016-03-09  Nathan Sidwell  <nathan@acm.org>
1796         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
1798 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1800         * config/i386/i386.c (processor_target_table): Fix cost table
1801         intialization order for znver1.
1803 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
1805         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
1806         - becuase -> because.
1807         * ipa-reference.c (ignore_module_statics): Likewise.
1808         * cgraph.c (cgraph_node::get_body): Likewise.
1809         * ipa-inline.c (early_inliner): Likewise.
1810         * ipa-devirt.c (types_same_for_odr): Likewise.
1811         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
1812         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
1814 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1816         * tree-ssa-math-opts.c: Fix typo in comment.
1818 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
1820         PR target/70110
1821         * config/i386/i386.c (scalar_chain::make_vector_copies,
1822         scalar_chain::convert_reg): Call end_sequence in between
1823         get_insns and emit_conversion_insns rather than after both
1824         calls.
1826 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
1828         PR target/70064
1829         * config/i386/i386.h (machine_function): Add
1830         pc_thunk_call_expanded flag.
1831         (ix86_pc_thunk_call_expanded): New define.
1832         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
1833         (*set_got): Rename insn pattern from set_got.
1834         (*set_got_labelled): Rename inst pattern from set_got_labelled.
1835         * config/i386/i386.c (ix86_compute_frame_layout): Use
1836         ix86_pc_thunk_call_expanded to prevent red-zone.
1838 2016-03-07  Martin Jambor  <mjambor@suse.cz>
1840         * hsa.h (hsa_get_ctor_statements): Declare.
1841         (hsa_get_dtor_statements): Likewise.
1842         (hsa_get_kernel_dispatch_type): Likewise.
1843         * hsa.c (hsa_get_ctor_statements): New function.
1844         (hsa_get_dtor_statements): Likewise.
1845         (hsa_get_kernel_dispatch_type): Likewise.
1846         * hsa-brig.c (hsa_cdtor_statements): Removed.
1847         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
1848         hsa_get_dtor_statements.
1849         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
1850         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
1852 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1854         * config/arm/arm-cores.def (cortex-r8): New.
1855         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
1856         * config/arm/arm-tune.md: Likewise.
1857         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
1859 2016-03-07  Martin Sebor  <msebor@redhat.com>
1861         PR rtl-optimization/19705
1862         * doc/invoke.texi (Options That Control Optimization): Clarify
1863         -fno-branch-count-reg.
1865 2016-02-26  Richard Biener  <rguenther@suse.de>
1866             Jeff Law  <law@redhat.com>
1868         PR tree-optimization/69740
1869         * cfghooks.c (remove_edge): Request loop fixups if we delete
1870         an edge that might turn an irreducible loop into a natural
1871         loop.
1872         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
1873         Move after definition of loops_state_clear.
1875 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
1877         PR rtl-optimization/69052
1878         * rtlanal.c (commutative_operand_precedence): Set higher precedence
1879         to CONST_WIDE_INT.
1881 2016-03-07  Tom de Vries  <tom@codesourcery.com>
1883         PR tree-optimization/70116
1884         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
1885         is_tm_ending stmts and ubsan/asan internal functions.
1886         (find_duplicate): Use it.  Don't test is_tm_ending here.
1888 2016-03-07  Richard Biener  <rguenther@suse.de>
1890         PR tree-optimization/70115
1891         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
1892         (propagate_constants_for_unrolling): Use replace_uses_by.
1894 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
1896         PR middle-end/69916
1897         * omp-low.c (struct oacc_loop): Add ifns.
1898         (new_oacc_loop_raw): Initialize it.
1899         (finish_oacc_loop): Clear mask & flags if no ifns.
1900         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
1901         (oacc_loop_xform_loop): Add ifns arg & adjust.
1902         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
1904 2016-03-07  Richard Henderson  <rth@redhat.com>
1906         PR rtl-opt/70061
1907         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
1908         (insert_value_copy_on_edge): Likewise.
1910 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1912         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
1914 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1916         PR target/62281
1917         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
1919 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
1921         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
1923 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
1925         Fix sseimul type attribute.
1926         * config/i386/znver1.md
1927         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
1928         znver1_sseimul_avx256_load) : Fix the type attribute.
1929         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
1930         pipe usage and latency.
1932 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
1934         PR c++/70084
1935         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
1936         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
1937         to the right type.
1939 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
1941         PR c/69973
1942         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
1944         PR rtl-optimization/69941
1945         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
1946         the reg share its mode.
1948 2016-03-04  Jeff Law  <law@redhat.com>
1950         PR tree-optimization/69196
1951         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1952         If the both SSA_NAMEs are anonymous, then consider them unassociated
1953         and include the PHI in the statement count.
1955 2016-03-05  Tom de Vries  <tom@codesourcery.com>
1957         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
1958         construct in oacc routine.  Check for oacc region in oacc routine.
1960 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
1962         PR target/70062
1963         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
1964         2016-02-22 changes, instead don't recurse if RECUR is already true.
1965         Don't change *dynamic_check if RECUR.  Adjust recursive caller
1966         to pass true to the new argument.
1967         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
1969         PR target/70059
1970         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
1971         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
1972         fixes.
1973         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
1975 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
1977         PR rtl-optimization/57676
1978         * lra-assigns.c (lra_assign): Guard test for maximum iterations
1979         with flag_checking.
1981 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
1983         * tree-vect-patterns.c (search_type_for_mask): Handle
1984         comparison of booleans.
1986 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
1988         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
1989         Fix @xref usage.
1991         PR debug/69947
1992         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
1993         all other ops that have dw_val_class_die_ref operands,
1994         and DW_OP_GNU_entry_value.
1996 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1998         PR rtl-optimization/69904
1999         * config/arm/arm.c (arm_cannot_copy_insn_p):
2000         Return true for load-exclusive instructions.
2002 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
2004         PR target/70021
2005         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
2006         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
2007         the pattern no matter if it is used just by non-pattern, pattern
2008         or mix thereof.
2009         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
2010         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2011         oprnd1 def_stmt is in pattern, don't look through it.
2013 2016-03-03  Marek Polacek  <polacek@redhat.com>
2015         PR middle-end/70050
2016         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
2018 2016-03-03  Martin Liska  <mliska@suse.cz>
2020         PR tree-optimization/70043
2021         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
2022         previous statement if we see a debug statement.
2024 2016-03-03  Richard Biener  <rguenther@suse.de>
2026         PR tree-optimization/55936
2027         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
2028         parameter and guard unsafe equivalence use.
2029         (vrp_evaluate_conditional_warnv_with_ops): Always use
2030         safe equivalences but not via the quadratic compare_names
2031         helper.
2033 2016-03-03  Michael Collison  <michael.collison@linaro.org>
2035         PR target/70014
2036         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
2037         for operand 1 to s_register_operand. Change predicate for operand
2038         2 to arm_not_immediate_operand.
2040 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
2042         * doc/tm.texi: Regenerated.
2044 2016-03-02  Richard Henderson  <rth@redhat.com>
2046         PR rtl-opt/67145
2047         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
2048         simplification when all args are positive non-fixed registers.
2050 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2052         * target.def (lra_p): Specify that new ports should use LRA.
2054 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
2056         PR libgomp/69555
2057         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
2058         gimplify_type_sizes the type they refer to.
2059         (omp_notice_variable): Handle reference vars to VLAs.
2060         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
2061         reference to VLA decls in the second pass instead of first pass.
2063 2016-03-02  Tom de Vries  <tom@codesourcery.com>
2065         PR tree-optimization/68659
2066         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
2067         new_expr == NULL_TREE.
2068         (get_new_name): Handle ADDR_EXPR.
2070 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
2072         PR rtl-optimization/69052
2073         * loop-invariant.c (canonicalize_address): New function.
2074         (inv_can_prop_to_addr_use): Check validity of address expression
2075         which is canonicalized by above function.
2077 2016-03-02  Alan Modra  <amodra@gmail.com>
2079         PR ipa/69990
2080         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
2081         larger alignment.
2083 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
2085         PR target/70028
2086         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
2087         (*movhi_internal): Put mask moves from and to memory separately
2088         from moves from/to GPRs.
2090 2016-03-02  Richard Biener  <rguenther@suse.de>
2092         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
2093         GENERIC expressions in GIMPLE.
2095 2016-03-02  Richard Biener  <rguenther@suse.de>
2097         * config/i386/i386.c (type_natural_mode): Fix typo.
2099 2016-03-02  Nick Clifton  <nickc@redhat.com>
2101         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
2103 2016-03-02  Richard Biener  <rguenther@suse.de>
2104             Uros Bizjak  <ubizjak@gmail.com>
2106         PR target/67278
2107         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
2109 2016-03-02  Richard Biener  <rguenther@suse.de>
2111         PR middle-end/67278
2112         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
2114 2016-03-02  Marek Polacek  <polacek@redhat.com>
2116         PR c/67854
2117         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
2118         "is promoted to" warning.
2120 2016-03-01  DJ Delorie  <dj@redhat.com>
2122         * config.gcc: Deprecate mep-*.
2124 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
2126         PR middle-end/70025
2127         * lra-constraints.c (regno_val_use_in): New.
2128         (match_reload): Use it instead of regno_use_in.
2130 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
2132         PR rtl-optimization/70007
2133         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
2134         references present in REG_EQUAL notes attached to non-SET patterns.
2136 2016-03-01  Jeff Law  <law@redhat.com>
2138         PR tree-optimization/69196
2139         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2140         Appropriately clamp the number of statements to copy when the
2141         thread path does not traverse a loop backedge.
2143         PR tree-optimization/69196
2144         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2145         Do count some PHIs in the thread path against the insn count.  Decrease
2146         final statement count by one as the control statement in the last
2147         block will get removed.  Remove special cased code for handling PHIs
2148         in the last block.
2150 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
2152         PR target/70027
2153         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
2154         asm dialect alternatives to explicit GOTPCREL calls.
2156 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
2158         PR ada/70017
2159         * ira.c (do_reload): Issue warning for generic stack checking here...
2160         * reload1.c (reload): ...instead of here and streamline it.
2162 2016-03-01  Nick Clifton  <nickc@redhat.com>
2164         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
2166 2016-03-01  Richard Biener  <rguenther@suse.de>
2168         PR tree-optimization/69983
2169         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
2170         types and fall back to operand_equal_p.
2172 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2174         Revert
2175         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2177         * config/s390/constraints.md ("jm8"): New constraint.
2178         * config/s390/predicates.md ("const_int_8bitset_operand"): New
2179         predicate.
2180         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
2181         into ...
2182         ("*setmem_long<setmem_and>"): New pattern.
2183         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
2184         into ...
2185         ("*setmem_long_31z<setmem_and>"): New pattern.
2186         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
2187         New substitution rules with the required attributes.
2190 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2192         Revert
2193         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2195         * gensupport.c (process_substs_on_one_elem): Split loop to
2196         complete mark_operands_used_in_match_dup on all expressions in the
2197         vector first.
2198         (adjust_operands_numbers): Inline into process_substs_on_one_elem
2199         and remove function.
2201 2016-03-01  Richard Biener  <rguenther@suse.de>
2203         PR middle-end/70022
2204         * fold-const.c (fold_indirect_ref_1): Fix range checking for
2205         vector BIT_FIELD_REF extract.
2207 2016-03-01  Richard Biener  <rguenther@suse.de>
2209         PR tree-optimization/69994
2210         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
2212 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
2214         PR tree-optimization/69956
2215         * tree-vect-stmts.c (supportable_widening_operation): Support
2216         multi-step conversion of boolean vectors.
2217         (supportable_narrowing_operation): Likewise.
2219 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2221         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
2222         anymore.
2224 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2226         * config/s390/subst.md (DSI_VI): New mode iterator.
2227         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
2228         * config/s390/vector.md ("vec_set<mode>"): Move expander before
2229         the insn definition.
2230         ("*vec_set<mode>"): Change predicate and add alternative to
2231         support only either register or const_int operands as element
2232         selector.
2233         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
2234         operands.
2235         ("vec_extract<mode>"): New expander.
2236         ("*vec_extract<mode>"): New insn definition supporting reg and
2237         const_int element selectors.
2238         ("*vec_extract<mode>_plus"): New insn definition supporting
2239         reg+const_int element selectors.
2240         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
2241         following expander+insn definition.
2242         ("<vec_shifts_name><mode>3"): New expander.
2243         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
2245 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2247         * config/s390/s390.md ("*tabort_1"): Change predicate to
2248         nonmemory_operand.  Add a second alternative to cover
2249         register as well as const int operands.
2250         ("*tabort_1_plus"): New pattern definition.
2252 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2254         * config/s390/s390.md ("*ashrdi3_cc_31")
2255         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
2256         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
2257         Merge insn definitions into ...
2258         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
2259         New pattern definition.
2260         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
2261         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
2262         ("*ashr<mode>3_and"): Merge insn definitions into ...
2263         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
2264         New pattern definition.
2265         * config/s390/subst.md ("addr_style_op_cc_subst")
2266         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
2267         substitutions patterns plus attributes.
2268         Add ashiftrt to SUBST iterator.
2270 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2272         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
2273         op2 to nonmemory_operand.
2274         ("*<shift>di3_31", "*<shift>di3_31_and"):
2275         Merge into single pattern definition ...
2276         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
2277         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
2278         pattern definition ...
2279         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
2280         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
2281         iterator.
2283 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2285         * config/s390/predicates.md (const_int_6bitset_operand): New
2286         predicate.
2287         * config/s390/s390.md: Include subst.md.
2288         ("rotl<mode>3"): New expander.
2289         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
2290         ...
2291         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
2292         * config/s390/subst.md: New file.
2294 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2296         * config/s390/s390.md ("op_type", "atype", "length" attributes):
2297         Remove RRR type.  It doesn't really exist.
2298         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
2299         attributes.
2300         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
2301         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
2302         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
2303         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
2304         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
2305         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
2306         `enabled' attribute.
2308 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2310         * gensupport.c (process_substs_on_one_elem): Split loop to
2311         complete mark_operands_used_in_match_dup on all expressions in the
2312         vector first.
2313         (adjust_operands_numbers): Inline into process_substs_on_one_elem
2314         and remove function.
2316 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
2318         PR target/69706
2319         * config/sparc/sparc.c (NWORDS_UP): Rename to...
2320         (CEIL_NWORDS): ...this.  Use CEIL macro.
2321         (compute_fp_layout): Adjust to above renaming.
2322         (function_arg_union_value): Likewise.
2323         (sparc_arg_partial_bytes): Likewise.
2324         (sparc_function_arg_advance): Likewise.
2326 2016-02-29  Jeff Law  <law@redhat.com>
2328         PR tree-optimization/70005
2329         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
2330         where an object with a boolean range is compared against a value
2331         outside [0..1].
2333         PR tree-optimization/69999
2334         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
2335         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
2336         loop cleanups.
2338 2016-02-29  Richard Biener  <rguenther@suse.de>
2340         PR tree-optimization/69994
2341         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
2342         (get_unary_op): Look through nop conversions.
2343         (ops_equal_values_p): New function, look for equality diregarding
2344         nop conversions.
2345         (eliminate_plus_minus_pair): Use ops_equal_values_p
2346         (repropagate_negates): Do not use get_unary_op here.
2348 2016-02-29  Martin Liska  <mliska@suse.cz>
2350         * system.h: Poison ENABLE_CHECKING macro.
2352 2016-02-29  Martin Liska  <mliska@suse.cz>
2354         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
2355         is presented in dump flags.
2356         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2357         (hsa_regalloc): Likewise.
2359 2016-02-19  Richard Biener  <rguenther@suse.de>
2361         PR tree-optimization/69980
2362         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
2363         permutation of those we need to keep.
2365 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
2367         PR target/69706
2368         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
2369         (NWORDS_UP): ...this
2370         (init_cumulative_args): Minor tweaks.
2371         (sparc_promote_function_mode): Likewise.
2372         (scan_record_type): Delete.
2373         (traverse_record_type): New function template.
2374         (classify_data_t): New structure type.
2375         (classify_registers): New inline function.
2376         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
2377         exhausted.  Instantiate traverse_record_type on classify_registers and
2378         deal with the case of a structure passed in slot #15 with no FP field
2379         in the first word.
2380         (assign_data_t): New structure type.
2381         (compute_int_layout): New static function.
2382         (compute_fp_layout): Likewise.
2383         (count_registers): New inline function.
2384         (assign_int_registers): New static function.
2385         (assign_fp_registers): Likewise.
2386         (assign_registers): New inline function.
2387         (function_arg_record_value_1): Delete.
2388         (function_arg_record_value_2): Likewise.
2389         (function_arg_record_value_3): Likewise.
2390         (function_arg_record_value): Adjust to above changes.  Instantiate
2391         traverse_record_type on count_registers to first count the number of
2392         registers to be used and then on assign_registers to assign them.
2393         (function_arg_union_value): Adjust to above renaming.
2394         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
2395         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
2396         case of a structure passed in slot #15
2397         (sparc_function_arg_advance): Likewise.
2398         (function_arg_padding): Minor tweak.
2400 2016-02-29  Richard Biener  <rguenther@suse.de>
2402         PR tree-optimization/69720
2403         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
2404         the adjustment_def path for possibly vectorized defs.
2405         (vect_create_epilog_for_reduction): Handle vectorized initial
2406         defs properly.
2408 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
2410         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
2412 2016-02-27  Jeff Law  <law@redhat.com>
2414         Revert
2415         2016-02-26  Richard Biener  <rguenther@suse.de>
2416                     Jeff Law  <law@redhat.com>
2418         PR tree-optimization/69740
2419         * cfghooks.c (remove_edge): Request loop fixups if we delete
2420         an edge that might turn an irreducible loop into a natural
2421         loop.
2423 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
2425         PR rtl-optimization/69896
2426         * tree-vect-generic.c (get_compute_type): Avoid single element
2427         vector types.
2429 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
2431         Rename the AArch64 tuning option and related functions to enable the
2432         Newton series for the reciprocal square root to reflect its
2433         approximative characteristic.
2435         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
2436         function to "aarch64_emit_approx_rsqrt".
2437         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
2438         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
2439         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
2440         (xgene1_tunings): Likewise.
2441         (use_rsqrt_p): Likewise.
2442         (aarch64_emit_swrsqrt): Use new function name.
2443         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
2444         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
2445         text explaining this option.
2446         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
2448 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
2450         PR target/69969
2451         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2452         complain about -mallow-movmisalign without -mvsx if
2453         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
2455 2016-02-26  Joel Sherrill  <joel@rtems.org>
2457         * config.gcc: Add x86_64-*-rtems*.
2458         * gcc/config/i386/rtems-64.h: New file.
2460 2016-02-26  Joel Sherrill  <joel@rtems.org>
2462         * config.gcc: Add aarch64-*-rtems*.
2463         * gcc/config/aarch64/rtems.h: New file.
2465 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
2467         PR target/69946
2468         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
2469         shift amount using %h.  Add comment.
2471 2016-02-26  Richard Biener  <rguenther@suse.de>
2472             Jeff Law  <law@redhat.com>
2474         PR tree-optimization/69740
2475         * cfghooks.c (remove_edge): Request loop fixups if we delete
2476         an edge that might turn an irreducible loop into a natural
2477         loop.
2479 2016-02-26  Martin Jambor  <mjambor@suse.cz>
2481         PR middle-end/69920
2482         * tree-sra.c (sra_modify_assign): Do not remove loads of
2483         uninitialized aggregates to SSA_NAMEs.
2485 2016-02-26  Richard Henderson  <rth@redhat.com>
2487         PR target/69709
2488         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
2489         pseudo in case the target rtx matches the source of the left
2490         shift.
2492 2016-02-26  Martin Jambor  <mjambor@suse.cz>
2494         PR hsa/69568
2495         * hsa.h (hsa_type_packed_p): Declare.
2496         * hsa.c (hsa_type_packed_p): New function.
2497         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
2498         loads.
2499         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
2500         * hsa-brig.c (emit_basic_insn): Likewise.
2502 2016-02-26  Martin Jambor  <mjambor@suse.cz>
2504         pr hsa/69674
2505         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
2506         pointers.
2507         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
2509 2016-02-26  Martin Jambor  <mjambor@suse.cz>
2511         * hsa.h (is_a_helper): New overload for hsa_op_immed for
2512         hsa_op_with_type operands.
2513         (hsa_unsigned_type_for_type): Declare.
2514         * hsa.c (hsa_unsigned_type_for_type): New function.
2515         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
2516         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
2517         the finalizer.  Do not emit extra move.
2519 2016-02-26  Martin Jambor  <mjambor@suse.cz>
2521         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
2522         atomic operations in private segment.
2524 2016-02-26  Martin Jambor  <mjambor@suse.cz>
2526         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
2527         statements to wi->info.  Also disallow omp simd constructs.
2528         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
2529         for not gridifying.  Dump special string for omp_for.
2531 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2533         PR target/69245
2534         * config/aarch64/aarch64.c (aarch64_set_current_function):
2535         Save/restore target globals when switching to
2536         target_option_default_node.
2538 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2540         PR target/69613
2541         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
2542         Return 0 if !SHIFT_COUNT_TRUNCATED.
2544 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
2545             Eric Botcazou  <ebotcazou@adacore.com>
2547         PR rtl-optimization/69891
2548         * dse.c (scan_insn): If we can't figure out memset arguments
2549         or they are non-constant, call clear_rhs_from_active_local_stores.
2551 2016-02-26  Martin Liska  <mliska@suse.cz>
2553         * doc/extend.texi: Mention clog10, clog10f an clog10l
2554         in Builtins section.
2556 2016-02-26  Martin Liska  <mliska@suse.cz>
2558         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
2559         CHECKING_P.
2560         (resolve_args_picking_1): Likewise.
2561         * dwarf2out.h (struct GTY): Likewise.
2563 2016-02-26  Martin Liska  <mliska@suse.cz>
2565         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
2566         with flag_checking.
2567         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2569 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2570             Martin Liska  <mliska@suse.cz>
2572         * doc/install.texi: Mention --enable-valgrind-annotations.
2574 2016-02-26  Richard Biener  <rguenther@suse.de>
2576         PR tree-optimization/69551
2577         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
2578         looking through aliases adjust DECL_PT_UID to refer to the
2579         ultimate alias target.
2581 2016-02-25  Martin Liska  <mliska@suse.cz>
2583         PR middle-end/69919
2584         * alloc-pool.c (after_memory_report): New variable.
2585         * alloc-pool.h (base_pool_allocator ::release): Do not use
2586         the infrastructure if after_memory_report.
2587         * toplev.c (toplev::main): Mark after memory report.
2589 2016-02-25  Richard Biener  <rguenther@suse.de>
2591         PR tree-optimization/48795
2592         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
2594 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
2596         PR driver/68463
2597         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
2598         offloading is enabled and -fopenacc or -fopenmp is specified.
2599         (CRTOFFLOADEND): Likewise.
2600         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
2601         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
2602         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
2603         (offload_objects_file_name): New static var.
2604         (tool_cleanup): Remove offload_objects_file_name file.
2605         (find_offloadbeginend): Replace with ...
2606         (find_crtoffloadtable): ... this.
2607         (run_gcc): Remove offload_argc and offload_argv.
2608         Get offload_objects_file_name from -foffload-objects=... option.
2609         Read names of object files with offload from this file, pass them to
2610         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
2611         don't pass offloadbegin and offloadend to the linker.  Don't pass
2612         offload non-LTO files to the linker, because now they're not claimed.
2614 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
2616         PR ipa/69630
2617         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
2618         on builtin_unreachable.
2620 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
2622         PR rtl-optimization/69896
2623         * regcprop.c: Include cfgrtl.h.
2624         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
2625         than remembered mode, either delete it (if noop_move_p), or
2626         treat like copy_p but not noop_p instruction.
2628 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
2630         PR debug/69705
2631         * dwarf2out.c (gen_variable_die): Work around buggy LTO
2632         - allow NULL decl for Fortran DW_TAG_common_block variables.
2634 2016-02-24  Jason Merrill  <jason@redhat.com>
2636         * common.opt (flifetime-dse): Add -flifetime-dse=1.
2638 2016-02-24  Richard Biener  <rguenther@suse.de>
2639             Jakub Jelinek  <jakub@redhat.com>
2641         PR middle-end/69760
2642         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
2643         conditionally executed ops to well-defined overflow behavior.
2645 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
2647         PR middle-end/69915
2648         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
2649         elements.
2651 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2653         PR rtl-optimization/69886
2654         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
2655         argument.  Use it when checking validity of set instructions.
2656         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
2657         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
2658         callsite.
2659         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
2660         * store-motion.c (find_moveable_store): Update
2661         can_assign_to_reg_without_clobbers_p callsite.
2663 2016-02-24  Richard Biener  <rguenther@suse.de>
2665         PR middle-end/68963
2666         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
2667         bogus check.
2668         (record_nonwrapping_iv): Do not fall back to the low/high bound
2669         for non-constant IV bases if the stmt is not always executed.
2671 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2673         * config/arm/arm-cores.def (cortex-a32): New entry.
2674         * config/arm/arm-tables.opt: Regenerate.
2675         * config/arm/arm-tune.md: Regenerate.
2676         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
2677         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
2678         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
2679         for -mcpu and -mtune.
2681 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2683         PR target/69875
2684         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
2685         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
2686         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
2687         (atomic_loaddi_1): Delete.
2688         (atomic_loaddi): Rewrite expander using the above changes.
2690 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
2692         PR c/69918
2693         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
2694         2 to 3.
2696 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
2697             Richard Biener  <rguenth@suse.de>
2699         PR middle-end/69909
2700         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
2701         set_mem_attributes if tem is SSA_NAME which got expanded
2702         as a MEM.
2704 2016-02-24  Richard Biener  <rguenther@suse.de>
2706         PR tree-optimization/69907
2707         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
2708         end of permutations for BB vectorization.
2710 2016-02-24  Christian Bruel  <christian.bruel@st.com>
2712         * config/arm/arm-c.c (arm_option_override): Initialize
2713         target_option_current_node.
2714         * config/arm/arm.c (arm_pragma_target_parse): Replace
2715         build_target_option_node call by target_option_current_node.
2716         Set target_option_current_node.
2717         Fix comments.
2719 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
2721         PR target/69810
2722         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
2723         define_insn_and_split to define_insn.
2724         (zero_extendqi<mode>2_dot2): Same.
2725         (extendqi<mode>2_dot): Same.
2726         (extendqi<mode>2_dot2): Same.
2728 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
2730         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
2731         and add bypass for AES{D,E} and AESMC pairs.
2732         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
2733         and AESMC pairs.
2735 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
2737         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
2738         series for reciprocal square root in Exynos M1.
2740 2016-02-23  Martin Sebor  <msebor@redhat.com>
2742         PR c/69759
2743         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
2744         __builtin_alloca_with_align.
2746 2016-02-23  Richard Henderson  <rth@redhat.com>
2748         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
2749         (ix86_register_pragmas): Remove __seg_tls.
2750         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
2751         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
2752         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
2753         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
2754         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
2755         * doc/extend.texi (__seg_tls): Remove item.
2757 2016-02-23  Richard Biener  <rguenther@suse.de>
2759         * alloc-pool.h (struct allocation_object): Make id member
2760         conditional on CHECKING_P again.
2761         (get_instance): Adjust.
2762         (base_pool_allocator): Likewise.
2764 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
2766         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
2767         (parallelize_loops): In OpenACC kernels mode, set n_threads to
2768         zero.
2769         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
2770         flag_openacc.
2771         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2773 2016-02-23  Richard Biener  <rguenther@suse.de>
2775         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
2776         * bitmap.h (struct bitmap_usage): Likewise.
2777         (bitmap_move): Declare.
2778         * bitmap.c (register_overhead): Take size_t argument.
2779         (bitmap_move): New function.
2780         * df-problems.c (df_rd_transfer_function): Use bitmap_move
2781         to properly account overhead.
2782         * tree.c (free_node): Use tree_size.
2784 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
2786         PR c++/69902
2787         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
2788         when inverting comparison.
2790         PR c/69900
2791         * common.opt (Wunreachable-code): Add Warning flag.
2793 2016-02-23  Mark Wielaard  <mjw@redhat.com>
2794             Jakub Jelinek  <jakub@redhat.com>
2796         PR c/69911
2797         * cgraphunit.c (check_global_declaration): Check main_input_filename
2798         and DECL_SOURCE_FILE are not NULL.
2800 2016-02-23  Martin Jambor  <mjambor@suse.cz>
2802         PR tree-optimization/69666
2803         * tree-sra.c (sra_modify_assign): Do not attempt to create
2804         default_def replacements for unscalarizable regions.
2806 2016-02-20  Mark Wielaard  <mjw@redhat.com>
2808         PR c/28901
2809         * cgraphunit.c (check_global_declaration): Check level of
2810         warn_unused_const_variable and main_input_filename.
2811         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
2812         (-Wunused-variable): For C implies -Wunused-const-variable=1.
2813         (-Wunused-const-variable): Explain levels 1 and 2.
2815 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
2817         PR target/69888
2818         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
2819         identical arguments.  Formatting and spelling fixes.
2821         PR target/69885
2822         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
2823         be specified.
2825         PR target/69894
2826         PR target/69895
2827         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
2828         and m68k-devices.def.
2829         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
2830         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
2832 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
2834         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
2835         and HImode registers.
2837 2016-02-22  Richard Biener  <rguenther@suse.de>
2839         PR tree-optimization/69882
2840         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
2841         preserve permutations present because of gaps.
2842         (vect_supported_load_permutation_p): Always continue checking
2843         permutations after vect_attempt_slp_rearrange_stmts.
2845 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
2847         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
2848         min_profitable_estimate, rather than min_profitable_iters.
2850 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
2852         PR target/69885
2853         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
2854         SImode for last match_operand.
2856 2016-02-22  Martin Liska  <mliska@suse.cz>
2858         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
2859         return bitsize - 1 as the return value.
2861 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
2863         PR target/69806
2864         PR target/54089
2865         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
2866         Handle negative shift counts.
2867         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
2868         force_reg on the shift constant.
2869         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
2870         (lshrsi3_d): Handle negative shift counts.
2872 2016-02-22  Richard Biener  <rguenther@suse.de>
2873             Tom de Vries  <tom@codesourcery.com>
2875         * graph.c: Include dumpfile.h.
2876         (print_graph_cfg): Split into three overloads.
2877         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
2879 2016-02-22  Tom de Vries  <tom@codesourcery.com>
2881         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
2882         dump-fn.
2884 2016-02-22  Richard Biener  <rguenther@suse.de>
2886         PR ipa/37448
2887         * ipa-inline-transform.c (inline_call): When not updating
2888         overall summaries adjust self size by the growth estimate.
2889         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
2890         hash-set, do not update overall summaries here.  Renamed from ...
2891         (inline_to_all_callers): ... this which is now wrapping the
2892         above and performing delayed overall summary update.
2893         (early_inline_small_functions): Delay updating of the overall
2894         summary.
2896 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2898         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
2899         variable.
2901 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
2903         PR driver/69805
2904         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
2905         :%* in %:gt() argument.
2906         (greater_than_spec_func): Adjust for expecting only numbers,
2907         if there are more than two numbers, compare the last two.
2909 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
2911         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
2912         -Wnarrowing with -std.
2914 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
2916         PR c++/69851
2917         * expr.c (store_field): Don't use bit-field path if exp is
2918         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
2919         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
2920         and the assignment can be performed by bitwise copy.  Formatting
2921         fix.
2923         PR middle-end/69838
2924         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
2925         call copy_reg_eh_region_note_forward on before and/or after sequences
2926         and remove note from insn if it no longer can throw.
2928         PR target/69820
2929         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
2930         if TARGET_AVX512BW.
2932 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2934         * config/s390/vector.md: Add missing commutative operand markers
2935         to the patterns which qualify for one.
2936         * config/s390/vx-builtins.md: Likewise.
2938 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2940         * config/s390/vector.md (VI, VI_QHS): Add single element vector
2941         types to mode iterators.
2942         (vec_double): ... and mode attribute.
2943         * config/s390/vx-builtins.md (non_vec_int): Likewise.
2945 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2947         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
2948         Change the predicate of op2 from nonimmediate to general and let
2949         reload fix it if necessary.
2951 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2953         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
2955 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2957         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
2958         mode.
2960 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2962         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
2963         * config/s390/s390.c (s390_expand_vec_movstr): New function.
2964         * config/s390/s390.md ("movstr<P:mode>"): Call
2965         s390_expand_vec_movstr.
2967 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2969         * config/s390/s390.md: Add missing output modifier for operand 1
2970         to print it as address properly.
2972 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2974         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
2975         * config/s390/2964.md: New file.
2976         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
2977         of insn grouping attributes depending on the CPU level.
2978         (s390_get_unit_mask): New function.
2979         (s390_sched_score): Remove the OOO from the scheduling macros.
2980         Add loop to calculate a score for the instruction mix.
2981         (s390_sched_reorder): Likewise plus improve debug output.
2982         (s390_sched_variable_issue): Rename macros as above.  Calculate
2983         the unit distances after actually scheduling an insn.  Improve
2984         debug output.
2985         (s390_sched_init): Clear last_scheduled_unit_distance array.
2986         * config/s390/s390.md: Include 2964.md.
2988 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
2990         PR target/69671
2991         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
2992         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
2993         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
2994         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
2995         *avx512f_<code>v8div16qi2_mask_1): New insns.
2997 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2999         PR target/68404
3000         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
3001         2016-02-09 change.
3003         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
3004         earlyclobber from target.  Use wF constraint for fused memory
3005         address.
3006         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3008 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
3009             Martin Liska  <mliska@suse.cz>
3011         PR sanitizer/69863
3012         * cfgexpand.c (asan_sanitize_stack_p): New function.
3013         (partition_stack_vars): Use the function.
3014         (expand_stack_vars): Likewise.
3015         (defer_stack_allocation): Likewise.
3016         (expand_used_vars): Likewise.
3018 2016-02-18  Richard Biener  <rguenther@suse.de>
3020         PR middle-end/69553
3021         * fold-const.c (operand_equal_p): Properly compare offsets for
3022         IMAGPART_EXPR and ARRAY_REF.
3024 2016-02-18  Nick Clifton  <nickc@redhat.com>
3026         PR target/62254
3027         PR target/69610
3028         * config/arm/arm.c (arm_option_override_internal): Disable
3029         interworking if the target does not support thumb instructions.
3030         (arm_reload_in_hi): Handle the case where a register to register
3031         move needs reloading because there is no simple pattern to handle
3032         it.
3033         (arm_reload_out_hi): Likewise.
3035 2016-02-18  Richard Biener  <rguenther@suse.de>
3037         PR middle-end/69854
3038         * match.pd: Don't use fold_binary or fold_unary for folding
3039         constants.
3041 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
3043         PR c++/69850
3044         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
3045         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
3046         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
3047         warn on gimple_no_warning_p statements.
3049 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
3051         * doc/extend.texi (C++ Attributes): Correct description of
3052         warn_unused type attribute.
3054 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3056         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
3057         correct instruction.
3059 2016-02-17  Richard Biener  <rguenther@suse.de>
3061         PR rtl-optimization/69609
3062         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
3063         (find_traces_1_round): When ending a trace update cached priority
3064         of successors.
3065         (bb_to_key): Use cached priority when available.
3066         (copy_bb): Initialize cached priority.
3067         (reorder_basic_blocks_software_trace_cache): Likewise.
3069 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3071         PR target/69161
3072         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
3073         New predicate.
3074         (aarch64_comparison_operator): Break overly long line into two.
3075         (aarch64_comparison_operation): Likewise.
3076         * config/aarch64/aarch64.md (cstorecc4): Use
3077         aarch64_comparison_operator_mode instead of
3078         aarch64_comparison_operator.
3079         (cstore<mode>4): Likewise.
3080         (aarch64_cstore<mode>): Likewise.
3081         (*cstoresi_insn_uxtw): Likewise.
3082         (cstore<mode>_neg): Likewise.
3083         (*cstoresi_neg_uxtw): Likewise.
3085 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3087         PR target/69161
3088         * config/arm/predicates.md (arm_comparison_operator_mode):
3089         New predicate.
3090         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
3091         instead of arm_comparison_operator.
3092         (*mov_negscc): Likewise.
3093         (*mov_notscc): Likewise.
3094         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
3095         (*thumb2_mov_negscc): Likewise.
3096         (*thumb2_mov_negscc_strict_it): Likewise.
3097         (*thumb2_mov_notscc): Likewise.
3098         (*thumb2_mov_notscc_strict_it): Likewise.
3100 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
3102         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
3103         Add missing return.
3105 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
3107         * config/visium/visium.c (machine_libfunc_index): New enum.
3108         (machine_libfuncs): New structure.
3109         (visium_libfuncs): New static variable.
3110         (TARGET_INIT_LIBFUNCS): Define to...
3111         (visium_init_libfuncs): ...this.  New function.
3112         (expand_block_move_4): Use the appropriate libfunc.
3113         (expand_block_move_2): Likewise.
3114         (expand_block_move_1): Likewise.
3115         (expand_block_set_4): Likewise.
3116         (expand_block_set_2): Likewise.
3117         (expand_block_set_1): Likewise.
3118         (visium_trampoline_init): Likewise.
3120 2016-02-17  Nick Clifton  <nickc@redhat.com>
3122         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
3123         TI's devices.csv file as of March 2016.
3125 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3127         PR Target/48344
3128         * opts-global.c (handle_common_deferred_options): Introduce and
3129         initialize two global variables to remember command-line options
3130         specifying a stack-limiting register.
3131         * opts.h: Add extern declarations of the two new global variables.
3132         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
3133         variable based on the values of the two new global variables.
3135 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
3137         PR c/69835
3138         * common.opt (Wnonnull-compare): New warning.
3139         * doc/invoke.texi (-Wnonnull): Remove text about comparison
3140         of arguments against NULL.
3141         (-Wnonnull-compare): Document.
3142         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
3143         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
3144         * passes.def (pass_warn_nonnull_compare): Add.
3145         * gimple-ssa-nonnull-compare.c: New file.
3147 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
3149         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
3150         AARCH64_EXTRA_TUNE_RECIP_SQRT.
3152 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
3154         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
3155         reciprocal sqrt for -mlow-precision-recip-sqrt.
3157 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
3158             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3160         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
3161         always use lane loads to construct non-constant vectors.
3163 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
3165         * config/aarch64/aarch64.md
3166         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
3167         constraints for operand 3.
3168         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
3170 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
3171             Richard Biener  <rguenther@suse.de>
3173         PR tree-optimization/69820
3174         * tree-vect-patterns.c (type_conversion_p): Return false if
3175         *orig_type is unsigned single precision or boolean.
3176         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
3177         Formatting fix.
3179 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
3181         PR rtl-optimization/69764
3182         PR rtl-optimization/69771
3183         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
3184         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
3186 2016-02-16  Richard Biener  <rguenther@suse.de>
3188         PR tree-optimization/69776
3189         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
3190         sets from caller.
3191         (indirect_refs_may_alias_p): Likewise.
3192         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
3193         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
3194         according to tbaa_p.
3195         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
3196         (optimize_stmt): For redundant store discovery do not allow tbaa.
3198 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
3200         PR tree-optimization/69714
3201         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
3202         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
3204 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
3206         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
3207         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
3208         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
3209         * config/arc/arc.c (arc_init): Check FPU options.
3210         (get_arc_condition_code): Handle new CC_FPU* modes.
3211         (arc_select_cc_mode): Likewise.
3212         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
3213         register pair only. Allow access for ARCv2 accumulator.
3214         (gen_compare_reg): Whenever we have FPU support use FPU compare
3215         instructions.
3216         (arc_reorg): Don't generate brcc insns when FPU compare
3217         instructions are involved.
3218         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
3219         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
3220         floating point emulation.
3221         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
3222         (REVERSE_CONDITION): Add new CC_FPU* modes.
3223         (TARGET_FP_SP_BASE): Define.
3224         (TARGET_FP_DP_BASE): Likewise.
3225         (TARGET_FP_SP_FUSED): Likewise.
3226         (TARGET_FP_DP_FUSED): Likewise.
3227         (TARGET_FP_SP_CONV): Likewise.
3228         (TARGET_FP_DP_CONV): Likewise.
3229         (TARGET_FP_SP_SQRT): Likewise.
3230         (TARGET_FP_DP_SQRT): Likewise.
3231         (TARGET_FP_DP_AX): Likewise.
3232         * config/arc/arc.md (ARCV2_ACC): New constant.
3233         (type): New fpu type attribute.
3234         (SDF): Conditional iterator.
3235         (cstore<mode>, cbranch<mode>): Change expand condition.
3236         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
3237         handles FPU/FPX cases as well.
3238         * config/arc/arc.opt (mfpu): New option.
3239         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
3240         Renamed.
3241         (adddf3, muldf3, subdf3): Removed.
3242         * config/arc/predicates.md (proper_comparison_operator): Recognize
3243         CC_FPU* modes.
3244         * config/arc/fpu.md: New file.
3245         * doc/invoke.texi (ARC Options): Document mfpu option.
3247 2016-02-16  Richard Biener  <rguenther@suse.de>
3249         PR rtl-optimization/69291
3250         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
3251         noce_operand_ok check.
3253 2016-02-16  Tom de Vries  <tom@codesourcery.com>
3255         PR lto/67709
3256         * omp-low.c (simd_clone_create): Remove call to
3257         symtab->call_cgraph_insertion_hooks.
3259 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
3261         PR tree-optimization/69802
3262         * tree-ssa-reassoc.c (update_range_test): If op is
3263         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
3264         op == 1 test of precision 1 integral op, otherwise handle
3265         that case as op itself.  Fix up formatting.
3266         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
3267         up formatting.
3269 2016-02-16  Richard Biener  <rguenther@suse.de>
3271         PR tree-optimization/69586
3272         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
3273         types for conversion sources.
3275 2016-02-16  Richard Biener  <rguenther@suse.de>
3277         PR middle-end/69801
3278         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
3279         mask OEP_ADDRESS_OF.
3281 2016-02-16  Alan Modra  <amodra@gmail.com>
3283         PR target/68973
3284         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
3285         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
3286         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
3287         (p8_mtvsrwz): New.
3288         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
3289         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
3290         (p8_fmrgow_<mode>): Likewise.
3291         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
3292         changes.
3293         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
3294         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
3295         to use movdi_internal64.  Remove op0_di.
3296         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
3298 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
3300         Add support for the FCCMP insn types
3302         * config/aarch64/aarch64.md (fccmp): Change insn type.
3303         (fccmpe): Likewise.
3304         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
3305         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
3306         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
3307         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
3308         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
3309         * config/arm/types.md (fccmps): Add new insn type.
3310         (fccmpd): Likewise.
3312 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3314         * alias.c (get_alias_set): Fix a typo in comment.
3316 2016-02-15  Richard Biener  <rguenther@suse.de>
3318         PR tree-optimization/69595
3319         * match.pd: Complete range test simplification to true.
3321 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
3323         PR rtl-optimization/69648
3324         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
3325         pic_offset_table_rtx.
3327         PR rtl-optimization/69752
3328         * ira.c (update_equiv_regs): When looking for more than a single SET,
3329         also take other side effects into account.
3331 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
3333         * config/s390/s390.c (s390_function_profiler): Add a new sequence
3334         for z900+ CPUs in 31-bit mode.
3336 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
3338         * common/config/s390/s390-common.c (s390_supports_split_stack):
3339         New function.
3340         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
3341         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
3342         * config/s390/s390.c (struct machine_function): New field
3343         split_stack_varargs_pointer.
3344         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
3345         in s390_emit_prologue.
3346         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
3347         vararg pointer.
3348         (morestack_ref): New global.
3349         (SPLIT_STACK_AVAILABLE): New macro.
3350         (s390_expand_split_stack_prologue): New function.
3351         (s390_live_on_entry): New function.
3352         (s390_va_start): Use split-stack vararg pointer if appropriate.
3353         (s390_asm_file_end): Emit the split-stack note sections.
3354         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
3355         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
3356         (UNSPECV_SPLIT_STACK_CALL): New unspec.
3357         (UNSPECV_SPLIT_STACK_DATA): New unspec.
3358         (split_stack_prologue): New expand.
3359         (split_stack_space_check): New expand.
3360         (split_stack_data): New insn.
3361         (split_stack_call): New expand.
3362         (split_stack_call_*): New insn.
3363         (split_stack_cond_call): New expand.
3364         (split_stack_cond_call_*): New insn.
3366 2016-02-15  Richard Biener  <rguenther@suse.de>
3368         PR tree-optimization/69783
3369         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3370         Add trivially correct cases.
3372 2016-02-15  Tom de Vries  <tom@codesourcery.com>
3374         PR lto/69655
3375         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
3376         do_force_output.
3377         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
3379 2016-02-15  Richard Biener  <rguenther@suse.de>
3381         PR tree-optimization/69776
3382         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3383         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
3384         indicate whether we can use TBAA to disambiguate against stores.
3385         Use alias-set zero if not.
3386         (visit_reference_op_store): Do not use TBAA when looking up
3387         redundant stores.
3388         * tree-ssa-pre.c (compute_avail): Use TBAA here.
3389         (eliminate_dom_walker::before_dom_children): But not when looking
3390         up redundant stores.
3392 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
3394         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
3396 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3398         *  config/i386/znver1.md
3399         (znver1_pop, znver1_pop_mem,
3400         znver1_load_imov_double_store,
3401         znver1_load_imov_direct_store,
3402         znver1_load_imov_direct_load,
3403         znver1_load_imov_double_load): Add new.
3404         (znver1_insn, znver1_insn_load): Add icmov type.
3405         (znver1_sseavx_fma,
3406         znver1_sseavx_fma_load,
3407         znver1_avx256_fma,
3408         znver1_avx256_fma_load): Fix pipe usage.
3410 2016-02-14  Alan Modra  <amodra@gmail.com>
3412         PR target/68973
3413         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
3414         with an invalid hard reg, reload just the reg not the entire
3415         pre/post-inc/dec address expression.
3417 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
3419         PR target/67260
3420         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
3421         fixed R1_REG scratch reg.
3422         (sibcall_value_pcrel_fdpic): Likewise.
3424 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
3426         PR target/67636
3427         PR target/64345
3428         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
3430 2016-02-12  Walter Lee  <walt@tilera.com>
3432         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
3433         * config/tilegx/t-tilegx: Likewise.
3435 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
3437         PR other/69554
3438         * diagnostic-show-locus.c (struct line_span): New struct.
3439         (layout::get_first_line): Delete.
3440         (layout::get_last_line): Delete.
3441         (layout::get_num_line_spans): New member function.
3442         (layout::get_line_span): Likewise.
3443         (layout::print_heading_for_line_span_index_p): Likewise.
3444         (layout::get_expanded_location): Likewise.
3445         (layout::calculate_line_spans): Likewise.
3446         (layout::m_first_line): Delete.
3447         (layout::m_last_line): Delete.
3448         (layout::m_line_spans): New field.
3449         (layout::layout): Update comment.  Replace m_first_line and
3450         m_last_line with m_line_spans, replacing their initialization
3451         with a call to calculate_line_spans.
3452         (diagnostic_show_locus): When printing source lines and
3453         annotations, rather than looping over a single span
3454         of lines, instead loop over each line_span within
3455         the layout, with an inner loop over the lines within them.
3456         Call the context's start_span callback when changing line spans.
3457         * diagnostic.c (diagnostic_initialize): Initialize start_span.
3458         (diagnostic_build_prefix): Break out the building of the location
3459         part of the string into...
3460         (diagnostic_get_location_text): ...this new function, rewriting
3461         it from nested ternary expressions to a sequence of "if"
3462         statements.
3463         (default_diagnostic_start_span_fn): New function.
3464         * diagnostic.h (diagnostic_start_span_fn): New typedef.
3465         (diagnostic_context::start_span): New field.
3466         (default_diagnostic_start_span_fn): New prototype.
3468 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
3470         PR driver/69779
3471         * gcc.c (driver::finalize): Fix cleanup of "specs".
3473 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
3475         PR driver/69265
3476         PR driver/69453
3477         * gcc.c (driver::driver): Initialize m_option_suggestions.
3478         (driver::~driver): Clean up m_option_suggestions.
3479         (suggest_option): Convert to...
3480         (driver::suggest_option): ...this, and split out into
3481         driver::build_option_suggestions and find_closest_string.
3482         (driver::build_option_suggestions): New function, from
3483         first half of suggest_option.  Special-case
3484         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
3485         the sanitizer_opts array.  For options of enum types, add the
3486         various enum values to the candidate strings.
3487         (driver::handle_unrecognized_options): Remove "const".
3488         * gcc.h (driver::handle_unrecognized_options): Likewise.
3489         (driver::build_option_suggestions): New decl.
3490         (driver::suggest_option): New decl.
3491         (driver::m_option_suggestions): New field.
3492         * opts-common.c (add_misspelling_candidates): New function.
3493         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
3494         and make non-static.
3495         * opts.h (sanitizer_opts): New array decl.
3496         (add_misspelling_candidates): New function decl.
3497         * spellcheck.c (find_closest_string): New function.
3498         * spellcheck.h (find_closest_string): New function decl.
3500 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
3502         PR rtl-optimization/69764
3503         PR rtl-optimization/69771
3504         * optabs.c (expand_binop_directly): For shift_optab_p, force
3505         convert_modes with VOIDmode if xop1 has VOIDmode.
3507 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
3509         PR target/69729
3510         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
3511         to correctly determine instrumentation thunks.
3513 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
3515         PR ipa/69241
3516         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
3517         type by reference, force lhs on the call.
3519         PR ipa/68672
3520         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
3521         Compute retval and retbnd early in all cases if split_part_return_p
3522         and return_bb is not EXIT.  Remove all clobber stmts and reset
3523         all debug stmts that refer to SSA_NAMEs defined in split part,
3524         except if it is retval, in that case replace the old retval with the
3525         lhs of the call to the split part.
3527 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3529         revert:
3530         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3532         PR middle-end/66726
3533         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3534         whose result is used in PHI.
3535         (maybe_optimize_range_tests): Likewise.
3536         (final_range_test_p): Likweise.
3538 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3540         PR middle-end/66726
3541         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3542         whose result is used in PHI.
3543         (maybe_optimize_range_tests): Likewise.
3544         (final_range_test_p): Likweise.
3546 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
3548         * cgraph.c: Spelling fixes - behaviour -> behavior and
3549         neighbour -> neighbor.
3550         * target.def: Likewise.
3551         * sel-sched.c: Likewise.
3552         * config/mips/mips.c: Likewise.
3553         * config/arc/arc.md: Likewise.
3554         * config/arm/cortex-a57.md: Likewise.
3555         * config/arm/arm.c: Likewise.
3556         * config/arm/neon.md: Likewise.
3557         * config/arm/arm-c.c: Likewise.
3558         * config/vms/vms-c.c: Likewise.
3559         * config/s390/s390.c: Likewise.
3560         * config/i386/znver1.md: Likewise.
3561         * config/i386/i386.c: Likewise.
3562         * config/ia64/hpux-unix2003.h: Likewise.
3563         * config/msp430/msp430.md: Likewise.
3564         * config/rx/rx.c: Likewise.
3565         * config/rx/rx.md: Likewise.
3566         * config/aarch64/aarch64-simd.md: Likewise.
3567         * config/aarch64/aarch64.c: Likewise.
3568         * config/nvptx/nvptx.c: Likewise.
3569         * config/bfin/bfin.c: Likewise.
3570         * config/cris/cris.opt: Likewise.
3571         * config/rs6000/rs6000.c: Likewise.
3572         * target.h: Likewise.
3573         * spellcheck.c: Likewise.
3574         * ira-build.c: Likewise.
3575         * tree-inline.c: Likewise.
3576         * builtins.c: Likewise.
3577         * lra-constraints.c: Likewise.
3578         * explow.c: Likewise.
3579         * hwint.h: Likewise.
3580         * targhooks.c: Likewise.
3581         * tree-vect-data-refs.c: Likewise.
3582         * expr.c: Likewise.
3583         * doc/tm.texi: Likewise.
3584         * doc/extend.texi: Likewise.
3585         * doc/install.texi: Likewise.
3586         * doc/md.texi: Likewise.
3587         * tree-ssa-tail-merge.c: Likewise.
3588         * sched-int.h: Likewise.
3589         * match.pd: Likewise.
3590         * sched-ebb.c: Likewise.
3591         * target.def (omit_struct_return_reg): Likewise.
3592         * gimple-ssa-isolate-paths.c: Likewise.
3593         (find_implicit_erroneous_behaviour): Renamed to...
3594         (find_implicit_erroneous_behavior): ... this.
3595         (find_explicit_erroneous_behaviour): Renamed to...
3596         (find_explicit_erroneous_behavior): ... this.
3597         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
3599 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
3601         PR rtl-optimization/64682
3602         PR rtl-optimization/69567
3603         PR rtl-optimization/69737
3604         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
3605         in I2 as well, just lose it.
3607 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3609         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
3610         New variable.
3611         (aarch64_last_printed_tune_string): Likewise.
3612         (aarch64_declare_function_name): Only output .arch assembler
3613         directive if it will be different from the previously output
3614         directive.  Same for .tune comment but only if -dA is set.
3615         (aarch64_start_file): New function.
3616         (TARGET_ASM_FILE_START): Define.
3618 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
3620         PR plugins/69758
3621         * Makefile.in (PLUGIN_HEADERS): Add params.list.
3623 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
3625         PR target/65313
3626         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
3627         -Wmaybe-uninitialized warning.
3629 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
3631         PR target/69713
3632         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
3634 2016-02-11  Richard Biener  <rguenther@suse.de>
3636         PR rtl-optimization/69291
3637         * ifcvt.c (noce_try_store_flag_constants): Do not allow
3638         subexpressions affected by changing the result.
3640 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
3642         PR target/69148
3643         * lra-constraints.c (curr_insn_transform): Find in/out operands
3644         for secondary memory moves.  Update dups.
3646 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
3648         PR tree-optimization/69652
3649         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
3650         to nested loop, did source re-formatting, skip debug statements,
3651         add check on statement with volatile operand, remove dead scalar
3652         statements.
3654 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
3655             Patrick Palka  <ppalka@gcc.gnu.org>
3657         PR ipa/69241
3658         PR c++/69649
3659         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
3660         calls if the return type is TREE_ADDRESSABLE.
3661         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
3662         * ipa-split.c (split_function): Fix doubled "we" in comment.
3663         Use void return type for the split part even if
3664         !split_point->split_part_set_retval.
3666 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
3668         PR tree-optimization/68021
3669         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
3670         when computing the value of biv cand by itself.
3672 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3674         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
3675         (cortexa57_tunings): Likewise.
3676         (cortexa72_tunings): Likewise.
3677         (arch_macro_fusion_pair_p): Add support for AES fusion.
3678         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
3679         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3680         Allow virtual registers before reload so early scheduling works.
3681         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
3682         correct latency and pipeline.
3683         (cortex_a57_crypto_complex): Likewise.
3684         (cortex_a57_crypto_xor): Likewise.
3685         (define_bypass): Add AES bypass.
3687 2016-02-10  Richard Biener  <rguenther@suse.de>
3689         PR tree-optimization/69726
3690         * passes.def: Add DCE pass before late uninit.
3691         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
3692         really fixup if-conversions job.
3694 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
3696         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
3697         (arm_cortex_a57_tune): Likewise.
3698         (aarch_macro_fusion_pair_p): Add support for AES fusion.
3699         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
3701 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
3703         * timevar.def (TV_PHASE_DBGINFO): Delete.
3704         (TV_PHASE_CHECK_DBGINFO): Likewise.
3705         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
3707 2016-02-10  Richard Biener  <rguenther@suse.de>
3709         PR tree-optimization/69719
3710         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3711         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
3713 2016-02-09  Andrew Pinski  <apinski@cavium.com>
3715         PR tree-opt/69282
3716         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
3717         get_vcond_mask_icode returns false.
3719 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3721         PR target/68404
3722         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
3723         an ADDIS that adds a pointer to a large constant that sets the
3724         upper16 bits with a load operation.
3726 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
3728         PR target/68532
3729         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
3730         order.
3731         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
3732         endian.
3733         (vzipq_s16): Likewise.
3734         (vzipq_s32): Likewise.
3735         (vzipq_f32): Likewise.
3736         (vzipq_u8): Likewise.
3737         (vzipq_u16): Likewise.
3738         (vzipq_u32): Likewise.
3739         (vzipq_p8): Likewise.
3740         (vzipq_p16): Likewise.
3742 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
3744         PR target/68532
3745         * config/arm/arm.c (neon_endian_lane_map): New function.
3746         (neon_vector_pair_endian_lane_map): New function.
3747         (arm_evpc_neon_vuzp): Allow for big endian lane order.
3748         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
3749         endian.
3750         (vuzpq_s16): Likewise.
3751         (vuzpq_s32): Likewise.
3752         (vuzpq_f32): Likewise.
3753         (vuzpq_u8): Likewise.
3754         (vuzpq_u16): Likewise.
3755         (vuzpq_u32): Likewise.
3756         (vuzpq_p8): Likewise.
3757         (vuzpq_p16): Likewise.
3759 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
3761         PR target/69634
3762         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
3763         debug insns.
3765 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
3767         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
3768         truncate const_int operand 1 to QImode.
3770 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
3772         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
3773         corresponding to an abnormal edge.
3775 2016-02-09  Tom de Vries  <tom@codesourcery.com>
3777         PR tree-optimization/69599
3778         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
3779         function.
3780         (find_func_aliases_for_builtin_call, find_func_clobbers)
3781         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
3782         partition.
3784 2016-02-09  Richard Biener  <rguenther@suse.de>
3786         PR tree-optimization/69715
3787         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
3788         LHS on calls as non-rewritable.
3790 2016-02-09  Tom de Vries  <tom@codesourcery.com>
3792         PR lto/69707
3793         * lto-wrapper.c (append_diag_options): New function.
3794         (compile_offload_image): Call append_diag_options.
3796 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
3798         PR other/69722
3799         * doc/extend.texi (Flag Output Operands): Correct sectioning.
3800         Minor copy-edit to fix verb tenses.
3802 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
3804         PR tree-optimization/69209
3805         * ipa-split.c (split_function): If split part is not
3806         returning retval, retval has gimple type but is not
3807         gimple value, force it into a SSA_NAME first.
3809 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
3811         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
3812         outdated section.
3814 2016-02-08  Jason Merrill  <jason@redhat.com>
3816         PR c++/69631
3817         * convert.c (convert_to_integer_1): Check dofold on truncation
3818         distribution.
3819         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
3820         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
3821         Rename from *_nofold.
3822         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
3823         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
3825 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
3827         PR target/60410
3828         * tree.c (build_common_tree_nodes): Remove short_double argument.
3829         All callers changed.
3830         * tree.h (build_common_tree_nodes): Adjust declaration.
3831         * doc/invoke.texi (-fshort-double): Remove documentation.
3832         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3833         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
3834         * lto-wrapper.c (merge_and_complain, append_compiler_options)
3835         (append_linker_options): Don't handle OPT_fshort_double.
3837         PR rtl-optimization/68730
3838         * lra-remat.c (insn_to_cand_activation): New static variable.
3839         (lra_remat): Allocate and free it.
3840         (create_cand): New arg activation. Initialize a field in
3841         insn_to_cand_activation if it is nonnull.
3842         (create_cands): Pass the activation insn to create_cand when making
3843         a candidate involving an output reload.  Reorganize code a little.
3844         (do_remat): Keep track of active status of candidates in a separate
3845         bitmap.
3847 2016-02-08  Richard Biener  <rguenther@suse.de>
3849         PR tree-optimization/69719
3850         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3851         Properly use absolute of the difference of the two offsets to
3852         compare or adjust the segment length.
3854 2016-02-08  Richard Biener  <rguenther@suse.de>
3855             Jeff Law  <law@redhat.com>
3857         PR target/68273
3858         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
3859         types for anonymous SSA names.
3861 2016-02-08   Richard Biener  <rguenther@suse.de>
3863         PR rtl-optimization/69274
3864         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
3866 2016-02-08  Jeff Law  <law@redhat.com>
3868         PR tree-optimization/65917
3869         * tree-ssa-dom.c (record_temporary_equivalences): Record both
3870         equivalences from if (x == y) style conditionals.
3871         (loop_depth_of_name): Remove.
3872         (record_equality): Remove loop depth check.
3873         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
3874         (const_and_copies::record_const_or_copy_raw): New member function.
3875         * tree-ssa-scopedtables.c
3876         (const_and_copies::record_const_or_copy_raw): New, factored out of
3877         (const_and_copies::record_const_or_copy): Call new member function.
3879 2016-02-05  Jeff Law  <law@redhat.com>
3881         PR tree-optimization/68541
3882         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
3883         (count_stmts_in_block): New function.
3884         (poor_ifcvt_candidate_code): Likewise.
3885         (is_feasible_trace): Add some heuristics to determine when path
3886         splitting is profitable.
3887         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
3888         is a diamond with a single exit.
3890 2016-02-05  Martin Sebor  <msebor@redhat.com>
3892         PR c++/69662
3893         * doc/invoke.texi: Update -Wplacement-new to take an optional
3894         argument.
3896 2016-02-06  Richard Henderson  <rth@redhat.com>
3898         PR c/69643
3899         * tree.c (tree_nop_conversion_p): Do not strip casts into or
3900         out of non-standard address spaces.
3902 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
3904         PR rtl-optimization/69691
3905         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
3907 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
3909         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
3910         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
3911         (*ieee128_mfvsrd_64bit): Likewise.
3912         (*ieee128_mfvsrd_32bit): Likewise.
3914 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
3916         PR target/69369
3917         Revert r232560:
3918         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
3920         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
3921         instrumented_version.
3923 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
3925         * doc/invoke.texi (Optimize Options): In table of --param options
3926         rename second occurrence of tracer-min-branch-ratio to
3927         tracer-min-branch-probability, rename
3928         tracer-min-branch-ratio-feedback to
3929         tracer-min-branch-probability-feedback and clarify description,
3930         rename sched-spec-state-edge-prob-cutoff to
3931         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
3932         to selsched-insns-to-rename, rename lto-minpartition to
3933         lto-min-partition, delete reorder-blocks-duplicate and
3934         reorder-blocks-duplicate-feedback.
3936 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3938         * config/s390/s390.c (s390_register_info_set_ranges): Remove
3939         superfluous loops.
3941 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3943         * doc/extend.texi: S/390: Correct some typos.
3945 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3947         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
3949 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3951         PR target/69625
3952         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
3953         (s390_register_info_gprtofpr): Use new macros above.
3954         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
3955         its name.
3956         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
3957         its name.  Adjust restore and save gpr ranges.
3958         (s390_register_info_set_ranges): New function.
3959         (s390_register_info): Use new macros above.  Call
3960         s390_register_info_set_ranges.
3961         (s390_optimize_register_info): Likewise.
3962         (s390_hard_regno_rename_ok): Use new macros.
3963         (s390_hard_regno_scratch_ok): Likewise.
3964         (s390_emit_epilogue): Likewise.
3965         (s390_can_use_return_insn): Likewise.
3966         (s390_optimize_prologue): Likewise.
3967         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
3969 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
3971         PR bootstrap/69677
3972         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
3973         alignment fixes.
3974         (ix86_option_override_internal): Disable TARGET_STV even for
3975         -m{incoming,preferred}-stack-boundary=3.
3977 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3979         * config.gcc: Mark deprecated rtems targets as obsolete.
3981 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
3983         PR rtl-optimization/64682
3984         PR rtl-optimization/69567
3985         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
3986         before I2 only if the register is both used and set in I2.
3988 2016-02-04  DJ Delorie  <dj@redhat.com>
3990         * config/msp430/msp430.c (msp430_start_function): Add function type.
3992 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
3994         PR fortran/69368
3995         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
3997 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
3999         PR rtl-optimization/69577
4000         Revert:
4001         2015-10-29  Richard Henderson  <rth@redhat.com>
4003         PR target/68124
4004         PR rtl-opt/67609
4005         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4006         sse check to the exact conditions of PR 67609.
4008 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
4010         PR target/69667
4011         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
4012         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
4013         not allowed into the traditional Altivec registers.
4014         (movtd_64bit_nodm): Likewise.
4015         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
4017 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
4019         * config/aarch64/cortex-a57-fma-steering.c
4020         (aarch64_register_fma_steering): Remove "static" from arguments
4021         to register_pass.
4023 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
4025         PR target/69619
4026         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
4027         twice when complex.
4029 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
4031         * doc/invoke.texi: Delete -mno-fma4.
4033 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
4035         PR rtl-optimization/69577
4036         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
4037         (find_subregs_of_mode): Update accordingly.  Iterate over partial
4038         definitions.
4040 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
4042         * config/arm/arm-protos.h (neon_reinterpret): Remove.
4043         * config/arm/arm.c (neon_reinterpret): Remove.
4044         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
4045         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
4046         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
4047         vreinterpretti): Remove.
4048         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
4049         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
4050         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
4051         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
4052         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
4053         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
4054         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
4055         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
4056         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
4057         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
4058         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
4059         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
4060         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
4061         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
4062         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
4063         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
4064         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
4065         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
4066         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
4067         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
4068         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
4069         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
4070         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
4071         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
4072         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
4073         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
4074         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
4075         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
4076         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
4077         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
4078         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
4079         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
4080         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
4081         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
4082         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
4083         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
4084         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
4085         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
4086         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
4087         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
4088         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
4089         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
4090         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
4091         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
4092         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
4093         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
4094         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
4095         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
4096         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
4097         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
4098         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
4099         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
4100         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
4101         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
4102         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
4103         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
4104         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
4105         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
4106         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
4107         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
4108         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
4109         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
4110         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
4111         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
4112         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
4113         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
4114         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
4115         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
4116         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
4117         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
4118         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
4119         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
4120         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
4121         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
4122         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
4123         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
4124         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
4125         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
4126         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
4127         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
4128         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
4129         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
4130         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
4131         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
4132         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
4133         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
4134         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
4135         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
4136         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
4137         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
4138         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
4139         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
4140         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
4141         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
4142         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
4143         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
4144         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
4145         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
4146         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
4147         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
4148         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
4149         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
4150         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
4152 2016-02-04  Martin Liska  <mliska@suse.cz>
4154         PR sanitizer/69276
4155         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
4156         that are gimple_store_p.
4157         (maybe_instrument_call): Likewise.
4159 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
4161         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
4162         register scaling out of memory reference and comment why.
4164 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4166         PR target/65932
4167         PR target/67714
4168         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
4169         folding the source of a SET.
4171 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4173         PR target/65932
4174         PR target/67714
4175         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
4176         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
4178 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
4180         PR target/65932
4181         PR target/67714
4182         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
4183         HImode.
4185 2016-02-04  Christian Bruel  <christian.bruel@st.com>
4187         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
4188         * config/arm/arm.c (arm_set_current_function): Likewise.
4190 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
4191             Ilya Enkovich  <enkovich.gnu@gmail.com>
4192             H.J. Lu  <hongjiu.lu@intel.com>
4194         PR target/69454
4195         * config/i386/i386.c (convert_scalars_to_vector): Remove
4196         stack alignment fixes.
4197         (ix86_option_override_internal): Disable TARGET_STV if stack
4198         might not be aligned enough.
4199         (ix86_minimum_alignment): Assert that TARGET_STV is false.
4201 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
4203         * gcc/config/i386/x86-tune.def: Disable default prefetching
4204         for -march=znver1.
4206 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4207             Vladimir Makarov  <vmakarov@redhat.com>
4209         PR target/69461
4210         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
4211         in validating fused toc addresses.
4213 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
4215         PR c/69627
4216         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
4217         range->m_caret fields if range->m_show_caret_p is false.
4219         PR target/69644
4220         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4221         Force oldval into register if it does not satisfy reg_or_short_operand
4222         predicate.  Fix up formatting.
4224 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
4225             Alexandre Oliva  <aoliva@redhat.com>
4227         PR target/69461
4228         * lra-constraints.c (simplify_operand_subreg): Check additionally
4229         address validity after potential reloading.
4230         (process_address_1): Check insns validity.  In case of failure do
4231         nothing.
4233 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
4235         PR target/69118
4236         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
4237         Fix target.
4239 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
4241         * wide-int.cc (canonize_uhwi): New function.
4242         (wi::divmod_internal): Use it.
4244 2016-02-02  James Norris  <jnorris@codesourcery.com
4246         * gimplify.c (omp_notice_variable): Add usage check.
4248 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
4250         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
4251         like LE, GE, LT, GT when emitting relational operator.
4253 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
4255         * ira-costs.c (find_costs_and_classes): Add extra argument.
4256         * target.def (ira_change_pseudo_allocno_class): Add parameter.
4257         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
4258         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
4259         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
4260         Add best_class parameter, and return it if not ALL_REGS.
4261         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
4262         Add parameter.
4263         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
4264         Update target hook.
4266 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
4268         * config/aarch64/aarch64.c
4269         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
4270         (aarch64_ira_change_pseudo_allocno_class): New function.
4272 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
4274         PR target/67032
4275         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
4277 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4279         * config/avr/avr.c (avr_option_override): Set
4280         PARAM_ALLOW_STORE_DATA_RACES to 1.
4282 2016-02-02  Richard Biener  <rguenther@suse.de>
4284         PR tree-optimization/69595
4285         * match.pd: Add range test simplifications to true/false.
4287 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
4289         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
4290         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
4291         instead.
4293 2016-02-02  Richard Biener  <rguenther@suse.de>
4295         PR tree-optimization/69606
4296         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
4297         info on the result before moving a stmt.
4299 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
4301         PR middle-end/68542
4302         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
4303         branch with vector comparison.
4304         * config/i386/sse.md (VI48_AVX): New mode iterator.
4305         (define_expand "cbranch<mode>4): Add support for conditional branch
4306         with vector comparison.
4307         * tree-vect-loop.c (optimize_mask_stores): New function.
4308         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
4309         has_mask_store field of vect_info.
4310         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
4311         vectorized loops having masked stores after vec_info destroy.
4312         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
4313         correspondent macros.
4314         (optimize_mask_stores): Add prototype.
4316 2016-02-02  Alan Modra  <amodra@gmail.com>
4318         PR target/69548
4319         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
4320         allow subregs.
4322 2016-02-02  Alan Modra  <amodra@gmail.com>
4324         PR target/68662
4325         * config/rs6000/rs6000.c (need_toc_init): New var, set it
4326         whenever toc_label_name used.
4327         (rs6000_file_start): Don't set up toc section here,
4328         (rs6000_output_function_epilogue): do so here instead,
4329         (rs6000_xcoff_file_start): and here.
4330         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
4331         (load_toc_aix_di): Likewise.
4333 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
4335         PR rtl-optimization/69592
4336         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
4337         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
4338         (num_sign_bit_copies_binary_arith_p): New inline function.
4339         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
4341 2016-02-01  Jeff Law  <law@redhat.com>
4343         PR tree-optimization/69580
4344         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
4345         * tree-ssa-threadbackward.c
4346         (fsm_find_control_statement_thread_paths): Do not try to walk
4347         through large PHI nodes.
4349 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
4351         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
4352         when count is incremented above limit, don't analyze further
4353         insns afterwards.
4355         * omp-low.c (oacc_parse_default_dims): Avoid
4356         -Wsign-compare warning, make sure value fits into int
4357         rather than just unsigned int.
4359 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
4361         PR tree-optimization/67921
4362         * fold-const.c (split_tree): New parameters.  Convert pointer
4363         type variable part to proper type before negating.
4364         (fold_binary_loc): Pass new arguments to split_tree.
4366 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
4368         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
4369         (nvptx_goacc_validate_dims): Extend to handle global defaults.
4370         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
4371         * doc/tm.texti: Rebuilt.
4372         * doc/invoke.texi (fopenacc-dim): Document.
4373         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
4374         (append_compiler_options): Likewise.
4375         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
4376         (oacc_parse_default_dims): New.
4377         (oacc_validate_dims): Add USED arg.  Select non-unity default when
4378         possible.
4379         (oacc_loop_fixed_partitions): Return mask of used partitions.
4380         (oacc_loop_auto_partitions): Emit dump info.
4381         (oacc_loop_partition): Return mask of used partitions.
4382         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
4383         loop partitioning and validation calls.
4385 2016-02-01  Richard Biener  <rguenther@suse.de>
4387         PR middle-end/69556
4388         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
4390 2016-02-01  Richard Biener  <rguenther@suse.de>
4392         PR tree-optimization/69574
4393         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
4394         of asserting return chrec_dont_know.
4396 2016-02-01  Martin Liska  <mliska@suse.cz>
4398         * mem-stats-traits.h: Add copyright header.
4399         * mem-stats.h: Likewise.
4401 2016-02-01  Richard Biener  <rguenther@suse.de>
4403         PR tree-optimization/69579
4404         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
4405         Do not propagate through abnormal PHI results.
4407 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
4409         * postreload.c (reload_cse_simplify): Remove dead code.
4411 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
4413         PR rtl-optimization/69570
4414         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
4415         if there is more than one set, not if there is a single set.
4417 2016-02-01  Richard Henderson  <rth@redhat.com>
4419         PR rtl-opt/69535
4420         * combine.c (make_compound_operation): When looking through a
4421         subreg, make sure to re-extend to the width of the outer mode.
4423 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
4425         PR tree-optimization/69546
4426         * wide-int.cc (wi::divmod_internal): For unsigned division
4427         where both operands fit into uhwi, if o1 is 1 and o0 has
4428         msb set, if divident_prec is larger than bits per hwi,
4429         clear another quotient word and return 2 instead of 1.
4430         Similarly for remainder with msb in HWI set, if dividend_prec
4431         is larger than bits per hwi.
4433 2016-01-29  Martin Jambor  <mjambor@suse.cz>
4435         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
4436         Use short lowercase names.
4437         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
4438         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
4439         acq_rel one.  Protect warning agains segfaults if
4440         get_memory_order_name returns NULL.
4441         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
4442         with release semantics.  Do not warn if get_memory_order already did.
4443         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
4444         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
4445         if get_memory_order already did.
4447 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
4449         * doc/install.texi: Document that isl-0.16 is supported.
4451 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
4453         PR target/69299
4454         * config/i386/constraints.md (Bm): Describe as special memory
4455         constraint.
4456         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
4457         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4458         * genpreds.c (struct constraint_data): Add is_special_memory.
4459         (have_special_memory_constraints, special_memory_start): New
4460         static vars.
4461         (special_memory_end): Ditto.
4462         (add_constraint): Add new arg is_special_memory.  Add code to
4463         process its true value.  Update have_special_memory_constraints.
4464         (process_define_constraint): Pass the new arg.
4465         (process_define_register_constraint): Ditto.
4466         (choose_enum_order): Process special memory.
4467         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
4468         function insn_extra_special_memory_constraint.
4469         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4470         * gensupport.c (process_rtx): Process
4471         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4472         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
4473         * ira-lives.c (single_reg_class): Use
4474         insn_extra_special_memory_constraint.
4475         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
4476         * lra-constraints.c (process_alt_operands): Ditto.
4477         (curr_insn_transform): Use insn_extra_special_memory_constraint.
4478         * recog.c (asm_operand_ok, preprocess_constraints): Process
4479         CT_SPECIAL_MEMORY.
4480         * reload.c (find_reloads): Ditto.
4481         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
4482         * stmt.c (parse_input_constraint): Use
4483         insn_extra_special_memory_constraint.
4485 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
4487         PR target/69530
4488         * lra-splill.c (lra_final_code_change): Revert r229087 by
4489         removing all sub-registers.
4491 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
4493         PR target/65604
4494         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
4496 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
4498         PR target/69551
4499         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
4500         SSE1, copy target into the temporary reg first before recursing
4501         on it.
4503 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
4505         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
4506         with vm.
4508 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
4510         * ginclude/stdarg.h: Test __cplusplus instead of
4511         __GXX_EXPERIMENTAL_CXX0X__.
4513 2016-01-29  Richard Biener  <rguenther@suse.de>
4515         PR tree-optimization/69547
4516         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
4517         Do not mark clobbers necessary.
4518         (mark_all_reaching_defs_necessary_1): Likewise.
4520 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4522         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
4523         declaration name with %qs and print it in both error messages.
4524         Also fix indentation.
4526 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4528         PR other/69006
4529         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
4530         trailing blank line from error message.
4532 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
4534         PR c++/69462
4535         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
4536         for C++-11.
4538 2016-01-29  Richard Biener  <rguenther@suse.de>
4540         PR middle-end/69537
4541         * match.pd: Allow all integral types when simplifying a
4542         widening or sign-changing conversion.
4544 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
4546         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
4547         back to setting codegen_error to fail codegen.
4549 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
4551         PR target/69459
4552         * config/i386/constraints.md (C): Only accept constant zero operand.
4553         (BC): New constraint.
4554         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
4555         instead of C constraint.
4556         * doc/md.texi (Machine Constraints): Update description
4557         of C constraint.
4559 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
4561         PR target/68400
4562         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
4564 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
4566         PR middle-end/69542
4567         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
4568         non-debug insns.
4570 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
4572         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
4573         branches if using guessed profile.
4575 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
4577         * graphite-optimize-isl.c (optimize_isl): Fix dump.
4579 2016-01-28  Richard Henderson  <rth@redhat.com>
4581         PR target/69305
4582         * config/aarch64/aarch64-modes.def (CC_Cmode): New
4583         * config/aarch64/aarch64-protos.h: Update.
4584         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
4585         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
4586         (aarch64_get_condition_code_1): Handle CC_Cmode.
4587         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
4588         (*add<mode>3_compareC_cconly_imm): New.
4589         (*add<mode>3_compareC_cconly): New.
4590         (*add<mode>3_compareC_imm): New.
4591         (add<mode>3_compareC): New.
4592         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
4593         to be first.  Use aarch64_carry_operation.
4594         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
4595         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
4596         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
4597         (subti3): Use subdi3_compare1.
4598         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
4599         (sub<mode>3_compare1): New.
4600         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
4601         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
4602         (*subsi3_carryin_uxtw): Likewise.
4603         (*ngc<mode>, *ngcsi_uxtw): Likewise.
4604         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
4605         * config/aarch64/iterators.md (DWI): New.
4606         * config/aarch64/predicates.md (aarch64_carry_operation): New.
4607         (aarch64_borrow_operation): New.
4609 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4611         * graphite-optimize-isl.c (optimize_isl): Print a different debug
4612         message when isl does not return a valid schedule.
4614 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
4616         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4617         Remove comments from class declarations: they are already in the code
4618         close by the defs.
4620 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
4622         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
4623         codegen_error_p.
4624         (ternary_op_to_tree): Same.
4625         (unary_op_to_tree): Same.
4626         (nary_op_to_tree): Same.
4627         (gcc_expression_from_isl_expr_op): Same.
4628         (gcc_expression_from_isl_expression): Same.
4629         (graphite_create_new_loop): Same.
4630         (graphite_create_new_loop_guard): Same.
4631         (build_iv_mapping): Same.
4632         (graphite_create_new_guard): Same.
4633         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
4634         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
4636 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
4638         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
4639         instead of setting codegen_error to fail codegen.
4641 2016-01-28  Jason Merrill  <jason@redhat.com>
4643         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
4645 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
4647         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4648         Remove CONST_INT_P check in CCMP cost calculation.
4650 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
4652         * config/aarch64/aarch64.c (generic_vector_cost):
4653         Set vec_permute_cost.
4654         (cortexa57_vector_cost): Likewise.
4655         (exynosm1_vector_cost): Likewise.
4656         (xgene1_vector_cost): Likewise.
4657         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
4658         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
4659         Add vec_permute_cost entry.
4661 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
4663         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
4664         immediate as %1.
4665         (add<mode>3_compare0): Likewise.
4666         (addsi3_compare0_uxtw): Likewise.
4667         (add<mode>3nr_compare0): Likewise.
4668         (compare_neg<mode>): Likewise.
4669         (<optab><mode>3): Likewise.
4671 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
4673         * tree-vect-stmts.c (vectorizable_comparison): Add
4674         NULL check for vectype.
4676 2016-01-28  Richard Biener  <rguenther@suse.de>
4678         PR tree-optimization/69466
4679         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4680         Account for PHIs we couldn't duplicate.
4682 2016-01-28  Martin Liska  <mliska@suse.cz>
4684         PR pch/68758
4685         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
4686         instead of ENABLE_VALGRIND_CHECKING.
4688 2016-01-27  Richard Henderson  <rth@redhat.com>
4690         PR rtl-opt/69447
4691         * lra-remat.c (subreg_regs): New.
4692         (dump_candidates_and_remat_bb_data): Dump it.
4693         (operand_to_remat): Reject if operand in subreg_regs.
4694         (set_bb_regs): Collect subreg_regs.
4695         (lra_remat): Init and free subreg_regs.  Compute
4696         calculate_local_reg_remat_bb_data before create_cands.
4698 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
4700         PR target/68986
4701         * config/i386/i386.c (ix86_update_stack_boundary): Don't
4702         change stack_alignment_needed for __tls_get_addr call.
4704 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
4706         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
4708 2016-01-27  Jeff Law  <law@redhat.com>
4710         PR tree-optimization/68398
4711         PR tree-optimization/69196
4712         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
4713         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
4714         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4715         Only count PHIs in the last block in the path.  The others will
4716         const/copy propagate away.  Add heuristic to allow more irreducible
4717         subloops to be created when it is likely profitable to do so.
4719         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4720         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
4721         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
4723 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
4725         PR lto/69254
4726         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
4727         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
4728         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
4729         * tree-streamer-in.c: Include asan.h.
4730         (streamer_get_builtin_tree): For builtins in sanitizer
4731         range call initialize_sanitizer_builtins and retry.
4733 2016-01-27  Ian Lance Taylor  <iant@google.com>
4735         * common.opt (fkeep-gc-roots-live): New undocumented option.
4736         * tree-ssa-loop-ivopts.c (add_candidate_1): If
4737         -fkeep-gc-roots-live, skip pointers.
4738         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
4739         NULL.
4741 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
4743         PR target/69512
4744         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
4745         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
4747 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
4749         PR target/68380
4750         * configure.ac: NetBSD provides SSP in its C library.
4751         * configure: Updated.
4753 2016-01-27  Richard Biener  <rguenther@suse.de>
4755         PR tree-optimization/69166
4756         * tree-vect-loop.c (vect_is_simple_reduction): Always check
4757         reduction code for commutativity / associativity.
4759 2016-01-27  Martin Jambor  <mjambor@suse.cz>
4761         PR tree-optimization/69355
4762         * tree-sra.c (analyze_access_subtree): Correct hole detection when
4763         total_scalarization fails.
4765 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
4767         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
4768         power9.
4770 2016-01-27  Christian Bruel  <christian.bruel@st.com>
4772         PR target/69245
4773         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
4774         Move arm_reset_previous_fndecl and set_target_option_current_node in
4775         the conditional part.  Call save_restore_target_globals.
4776         * config/arm/arm.c (arm_set_current_function):
4777         Refactor to better support #pragma target and attribute mix.
4778         Call save_restore_target_globals.
4779         * config/arm/arm-protos.h (save_restore_target_globals): New function.
4781 2016-01-27  Martin Liska  <mliska@suse.cz>
4783         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
4784         reference for an HSA kernel and its host function.
4786 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
4788         PR tree-optimization/69399
4789         * wide-int.h (wi::lrshift): For larger precisions, only
4790         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
4792 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
4794         * config/arc/predicates.md (proper_comparison_operator): Reject
4795         constant-constant comparison.
4797 2016-01-26  Tom de Vries  <tom@codesourcery.com>
4799         PR tree-optimization/69110
4800         * tree-data-ref.c (initialize_data_dependence_relation): Handle
4801         DR_NUM_DIMENSIONS == 0.
4803 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
4804             Sebastian Pop  <s.pop@samsung.com>
4806         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
4807         isl_ast_op_cond and isl_ast_op_select.
4808         (gcc_expression_from_isl_expr_op): Same.
4810 2016-01-26  Jason Merrill  <jason@redhat.com>
4812         PR c++/68782
4813         * tree.c (recompute_constructor_flags): Split out from
4814         build_constructor.
4815         (verify_constructor_flags): New.
4816         * tree.h: Declare them.
4818 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
4820         PR rtl-optimization/69217
4821         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
4822         are no TYPE_FIELDS set for the record type.
4824 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
4826         PR target/68662
4827         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
4828         toc_label_name unconditionally.
4829         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
4830         SYMBOL_REF string.  Use toc_label_name instead of constructing
4831         LCTOC1.
4832         (rs6000_elf_declare_function_name): Use toc_label_name instead of
4833         constructing LCTOC1.
4835 2016-01-26  Martin Sebor  <msebor@redhat.com>
4837         PR other/69477
4838         * doc/extend.texi (Common Type Attributes): Move text that talks about
4839         attribute packed from attribute aligned to the section discussing
4840         the former attribute for clarity.
4842 2016-01-26  Richard Henderson  <rth@redhat.com>
4844         PR middle-end/60908
4845         * trans-mem.c (tm_region_init): Mark entry block as visited.
4847 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
4849         PR other/69006
4850         * diagnostic-show-locus.c (layout::print_source_line): Replace
4851         call to pp_newline with call to layout::print_newline.
4852         (layout::print_annotation_line): Likewise.
4853         (layout::move_to_column): Likewise.
4854         (layout::print_any_fixits): After printing any fixits, print a
4855         trailing newline, if necessary.
4856         (layout::print_newline): New method, resetting any colorization
4857         before a newline.
4858         (diagnostic_show_locus): Move the pp_newline to before the
4859         early bailout.  Remove dummy block enclosing the layout instance.
4860         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
4861         of pp_newline_and_flush with pp_flush.
4862         (diagnostic_append_note): Delete use of pp_newline.
4863         (diagnostic_append_note_at_rich_loc): Delete.
4864         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
4865         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
4866         when newline characters are added to the buffer.
4868 2016-01-26  Michael Matz  <matz@suse.de>
4870         * configure.ac (ac_cv_std_swap_in_utility): New test.
4871         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
4872         * configure: Regenerate.
4873         * config.in: Regenerate.
4875 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
4877         * config/arc/arc.md (cstoresi4): Force operand into register.
4878         (arcset<code>): Fix predicate.
4879         (arcsetltu): Likewise.
4880         (arcsetgeu): Likewise.
4881         (arcsethi): Likewise.
4882         (arcsetls): Likewise.
4884 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
4886         PR tree-optimization/69483
4887         * gimple-fold.c (canonicalize_constructor_val): Return NULL
4888         if base has error_mark_node type.
4890 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
4892         PR target/68620
4893         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
4894         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
4895         New helper macros.
4896         (vget_lane_f16): Handle big-endian.
4897         (vgetq_lane_f16): Likewise.
4898         (vset_lane_f16): Likewise.
4899         (vsetq_lane_f16): Likewise.
4900         * config/arm/iterators.md (VQXMOV): Add V8HF.
4901         (VDQ): Add V4HF and V8HF.
4902         (V_reg): Handle V4HF and V8HF.
4903         (Is_float_mode): Likewise.
4904         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
4905         neon_vdup_nv8hf): New patterns.
4906         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
4907         Use VD_LANE iterator.
4908         (neon_vld1_dup<mode>): Use VQ2 iterator.
4910 2016-01-26  Nathan Sidwell  <nathan@acm.org>
4912         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
4913         (set_oacc_fn_attrib): Add IS_KERNEL arg.
4914         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
4915         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
4916         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
4917         (oacc_validate_dims): Add LEVEL arg, don't return level.
4918         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
4919         oacc_validate_dims.
4920         (execute_oacc_device_lower): Adjust, add more dump output.
4921         * tree-ssa-loop.c (gate_oacc_kernels): Use
4922         oacc_fn_attrib_kernels_p.
4923         * tree-parloops.c (create_parallel_loop): Adjust
4924         set_oacc_fn_attrib call.
4926 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
4928         PR lto/69254
4929         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
4930         (append_compiler_options): Handle -fcilkplus.
4931         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
4933 2016-01-26  Nick Clifton  <nickc@redhat.com>
4935         PR target/66655
4936         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
4937         been marked as DECL_ONE_ONLY but we do not the means to make it
4938         so, then do not allow it to bind locally.
4940 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
4942         PR lto/69254
4943         * opts.h (parse_sanitizer_options): New prototype.
4944         * opts.c (sanitizer_opts): New array.
4945         (parse_sanitizer_options): New function.
4946         (common_handle_option): Use parse_sanitizer_options.
4948 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
4950         PR target/68986
4951         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
4952         alignment adjustment to ...
4953         (ix86_update_stack_boundary): Here.  Don't over-align stack for
4954         __tls_get_addr.
4955         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
4956         if __tls_get_addr is called.
4958 2016-01-26  Christian Bruel  <christian.bruel@st.com>
4960         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
4962 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
4964         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
4966 2016-01-26  Richard Biener  <rguenther@suse.de>
4968         PR middle-end/69467
4969         * match.pd: Guard X * CST CMP 0 pattern with single_use.
4971 2016-01-26  Richard Biener  <rguenther@suse.de>
4973         PR tree-optimization/69452
4974         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
4975         (move_computations_dom_walker::before_dom_children): Rename
4976         to ...
4977         (move_computations_worker): This.
4978         (move_computations): Perform an RPO rather than a DOM walk.
4980 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
4982         PR target/69442
4983         * combine.c (combine_instructions): For REG_EQUAL note with
4984         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
4985         to the underlying register.
4986         * doc/rtl.texi (REG_EQUAL): Document the behavior of
4987         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
4989 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
4991         PR target/67896
4992         * config/aarch64/aarch64-builtins.c
4993         (aarch64_init_simd_builtin_types): Do not set structural
4994         equality to __Poly{8,16,64,128}_t types.
4996 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
4998         PR tree-optimization/69400
4999         * wide-int.cc (wi_pack): Take the precision as argument and
5000         perform canonicalization here rather than in the callers.
5001         Use the main loop to handle all full-width HWIs.  Add a
5002         zero HWI if in_len isn't a full result.
5003         (wi::divmod_internal): Update accordingly.
5004         (wi::mul_internal): Likewise.  Simplify.
5006 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
5007             Sebastian Pop  <s.pop@samsung.com>
5009         * graphite-poly.c (apply_poly_transforms): Simplify.
5010         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
5011         (print_isl_map): Same.
5012         (print_isl_union_map): Same.
5013         (print_isl_schedule): New.
5014         (debug_isl_schedule): New.
5015         * graphite-dependences.c (scop_get_reads): Do not call
5016         isl_union_map_add_map that is undocumented isl functionality.
5017         (scop_get_must_writes): Same.
5018         (scop_get_may_writes): Same.
5019         (scop_get_original_schedule): Remove.
5020         (scop_get_dependences): Do not call isl_union_map_compute_flow that
5021         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
5022         (compute_deps): Remove.
5023         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
5024         (debug_schedule_ast): New.
5025         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
5026         set_separate_option.
5027         (graphite_regenerate_ast_isl): Add dump.
5028         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
5029         from scop->transformed_schedule.
5030         (graphite_regenerate_ast_isl): Add more dump.
5031         * graphite-optimize-isl.c (optimize_isl): Set
5032         scop->transformed_schedule.  Check whether schedules are equal.
5033         (apply_poly_transforms): Move here.
5034         * graphite-poly.c (apply_poly_transforms): ... from here.
5035         (free_poly_bb): Static.
5036         (free_scop): Static.
5037         (pbb_number_of_iterations_at_time): Remove.
5038         (print_isl_ast): New.
5039         (debug_isl_ast): New.
5040         (debug_scop_pbb): New.
5041         * graphite-scop-detection.c (print_edge): Move.
5042         (print_sese): Move.
5043         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5044         (build_scop_scattering): Remove.
5045         (create_pw_aff_from_tree): Assert instead of bailing out.
5046         (add_condition_to_pbb): Remove unused code, do not fail.
5047         (add_conditions_to_domain): Same.
5048         (add_conditions_to_constraints): Remove.
5049         (build_scop_context): New.
5050         (add_iter_domain_dimension): New.
5051         (build_iteration_domains): Initialize pbb->iterators.
5052         Call add_conditions_to_domain.
5053         (nested_in): New.
5054         (loop_at): New.
5055         (index_outermost_in_loop): New.
5056         (index_pbb_in_loop): New.
5057         (outermost_pbb_in): New.
5058         (add_in_sequence): New.
5059         (add_outer_projection): New.
5060         (outer_projection_mupa): New.
5061         (add_loop_schedule): New.
5062         (build_schedule_pbb): New.
5063         (build_schedule_loop): New.
5064         (embed_in_surrounding_loops): New.
5065         (build_schedule_loop_nest): New.
5066         (build_original_schedule): New.
5067         (build_poly_scop): Call build_original_schedule.
5068         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
5069         (free_poly_dr): Remove.
5070         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
5071         (free_poly_bb): Remove.
5072         (debug_loop_vec): Remove.
5073         (print_isl_ast): Declare.
5074         (debug_isl_ast): Declare.
5075         (scop_do_interchange): Remove.
5076         (scop_do_strip_mine): Remove.
5077         (scop_do_block): Remove.
5078         (flatten_all_loops): Remove.
5079         (optimize_isl): Remove.
5080         (pbb_number_of_iterations_at_time): Remove.
5081         (debug_scop_pbb): Declare.
5082         (print_schedule_ast): Declare.
5083         (debug_schedule_ast): Declare.
5084         (struct scop): Remove schedule.  Add original_schedule,
5085         transformed_schedule.
5086         (free_gimple_poly_bb): Remove.
5087         (print_generated_program): Remove.
5088         (debug_generated_program): Remove.
5089         (unify_scattering_dimensions): Remove.
5090         * sese.c (print_edge): ... here.
5091         (print_sese): ... here.
5092         (debug_edge): ... here.
5093         (debug_sese): ... here.
5094         * sese.h (print_edge): Declare.
5095         (print_sese): Declare.
5096         (dump_edge): Declare.
5097         (dump_sese): Declare.
5099 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
5100             Sebastian Pop  <s.pop@samsung.com>
5102         * Makefile.in: Set ISLVER in site.exp.
5104 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
5106         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
5107         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
5108         through DECL_VALUE_EXPR for expansion.
5110 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5112         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
5113         the frame info after reload completed.
5115 2016-01-25  Jeff Law  <law@redhat.com>
5117         PR tree-optimization/69196
5118         PR tree-optimization/68398
5119         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
5120         tree-ssa-threadupdate.c.
5121         (determine_bb_domination_status): Prototype
5122         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
5123         (determine_bb_domination_status): No longer static.
5124         (valid_jump_thread_path): Remove code to detect characteristics
5125         of the jump thread path not associated with correctness.
5126         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
5127         Correct test for thread path length.  Count PHIs for real operands as
5128         statements that need to be copied.  Do not count ASSERT_EXPRs.
5129         Look at all the blocks in the thread path.  Compute and selectively
5130         filter thread paths based on threading through the latch, threading
5131         a multiway branch or crossing a multiway branch.
5133 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5135         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
5136         decl with __attribute__ ((unused)) annotation.
5138 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
5140         PR target/69421
5141         * tree-vect-stmts.c (vectorizable_condition): Check vectype
5142         of operands is compatible with a statement vectype.
5144 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
5146         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
5147         improve wording for mixed storage order support.
5149 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
5151         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
5152         (vcvt_u64_f64): Likewise.
5153         (vcvta_s64_f64): Likewise.
5154         (vcvta_u64_f64): Likewise.
5155         (vcvtm_s64_f64): Likewise.
5156         (vcvtm_u64_f64): Likewise.
5157         (vcvtn_s64_f64): Likewise.
5158         (vcvtn_u64_f64): Likewise.
5159         (vcvtp_s64_f64): Likewise.
5160         (vcvtp_u64_f64): Likewise.
5162 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
5164         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
5165         (arc_init): Check validity mll64 option.
5166         (arc_save_restore): Use double load/store instruction.
5167         (arc_expand_movmem): Likewise.
5168         (arc_split_move): Don't split if we have double load/store
5169         instructions. Returns a boolean.
5170         (arc_process_double_reg_moves): Change function to return boolean
5171         instead of a sequence of instructions.
5172         (arc_dwarf_register_span): New function.
5173         * config/arc/arc-protos.h (arc_split_move): Change prototype.
5174         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
5175         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
5176         (*movdf_insn): Likewise.
5177         * config/arc/arc.opt (mll64): New option.
5178         * config/arc/predicates.md (even_register_operand): New predicate.
5179         * doc/invoke.texi (ARC Options): Add mll64 documentation.
5181 2016-01-25  Richard Biener  <rguenther@suse.de>
5183         PR lto/69393
5184         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
5185         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
5186         DECL_NAMELESS.
5187         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
5189 2016-01-25  Richard Biener  <rguenther@suse.de>
5191         PR tree-optimization/69376
5192         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
5193         flag.
5194         (VN_INFO_ANTI_RANGE_P): New inline.
5195         (VN_INFO_RANGE_TYPE): Likewise.
5196         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
5197         SSA_NAME_ANTI_RANGE_P.
5198         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
5199         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5200         Properly query VN_INFO_RANGE_TYPE.
5202 2016-01-25  Nick Clifton  <nickc@redhat.com>
5204         PR target/66655
5205         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
5207 2016-01-23  Tom de Vries  <tom@codesourcery.com>
5209         PR tree-optimization/69426
5210         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
5211         removed clobber.
5213 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
5215         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
5216         "the the" with "the" in the comments.
5217         * ipa-devirt.c (build_type_inheritance_graph,
5218         update_type_inheritance_graph): Likewise.
5219         * tree.c (build_function_type_list_1): Likewise.
5220         * cfgloopmanip.c (scale_loop_profile): Likewise.
5221         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
5222         * gimple-ssa-split-paths.c
5223         (find_block_to_duplicate_for_splitting_paths): Likewise.
5224         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
5225         * expr.c (convert_move): Likewise.
5226         * var-tracking.c (vt_stack_adjustments): Likewise.
5227         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5228         * tree-vrp.c (test_for_singularity): Likewise.
5230         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
5231         directly instead of building a temporary tree.
5233         PR bootstrap/69434
5234         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
5235         remove <algorithm> include.
5237 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
5239         PR target/69432
5240         * config/i386/i386.c: Include dojump.h.
5241         (expand_small_movmem_or_setmem,
5242         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
5243         fixes.
5244         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
5245         if dynamic_check != -1.
5247 2016-01-21  Jeff Law  <law@redhat.com>
5249         PR middle-end/69347
5250         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
5251         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
5252         into dominated_by_p.
5253         (cprop_into_successor_phis): Avoid unnecessary tests.
5255 2016-01-22  Richard Henderson  <rth@redhat.com>
5257         PR target/69416
5258         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
5259         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
5261 2016-01-22  Michael Matz  <matz@suse.de>
5263         * system.h (string, algorithm): Include only conditionally.
5264         (new): Include always under C++.
5265         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
5266         * final.c (toplevel): Ditto.
5267         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
5268         * genconditions.c (write_header): Make gencondmd.c define
5269         INCLUDE_STRING.
5270         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
5272         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
5273         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
5275 2016-01-22  Christian Bruel  <christian.bruel@st.com>
5277         PR target/68674
5278         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
5280 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5282         PR target/69403
5283         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
5284         define_insn_and_split.  Ensure operands[1] and operands[0] do not
5285         get assigned the same register.
5287 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
5289         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
5291 2016-01-22  Christian Bruel  <christian.bruel@st.com>
5293         * config/arm/arm-c.c (arm_pragma_target_parse):
5294         Remove warn_builtin_macro_redefined overwrite.
5296 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
5298         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
5299         flag_non_call_exceptions compatibility.
5301 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
5303         PR debug/66668
5304         * dwarf2out.c (add_child_die_after): New function.
5305         (dwarf_qual_info_t): New type.
5306         (dwarf_qual_info): New variable.
5307         (qualified_die_p): New function.
5308         (modified_type_die): For -fdebug-types-section, ensure
5309         canonical order of qualifiers.  Put qualified DIEs adjacent
5310         to the corresponding non-qualified type DIE and search there
5311         for existing qualified DIEs.
5313 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
5315         * doc/extend.texi (scalar_storage_order type attribute): Document
5316         restriction on type punning and aliasing, and remove future tense.
5318 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
5320         PR target/69252
5321         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
5322         first stage.
5324 2016-01-21  Jeff Law  <law@redhat.com>
5326         PR middle-end/69347
5327         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
5328         useless call to record_temporary_equivalences.
5329         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
5330         allocate 10 slots in the bb_path vector and let it grow as needed.
5331         (fsm_find_control_statement_thread_paths): Similarly for the next_path
5332         vector.
5334 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
5336         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
5337         Detangle.
5338         * configure: Regenerate.
5340 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
5342         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
5343         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
5345 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
5347         PR middle-end/66178
5348         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
5349         drop EXPAND_INITIALIZER.
5350         * rtl.h (contains_symbolic_reference_p): Declare.
5351         * rtlanal.c (contains_symbolic_reference_p): New function.
5352         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
5353         a subtraction into a NOT if symbolic constants are involved.
5355 2016-01-21  Anton Blanchard  <anton@samba.org>
5356             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5358         PR target/63354
5359         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
5360         #define.
5361         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
5362         function.
5364 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
5366         * config/microblaze/microblaze.c
5367         (get_branch_target): New.
5368         (insert_wic_for_ilb_runout): New.
5369         (insert_wic): New.
5370         (microblaze_machine_dependent_reorg): New.
5371         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
5372         * config/microblaze/microblaze.md
5373         (UNSPEC_IPREFETCH): Define.
5374         (iprefetch): New pattern
5375         * config/microblaze/microblaze.opt
5376         (mxl-prefetch): New flag.
5378 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
5380         * config/microblaze/microblaze.h
5381         (FIXED_REGISTERS): Update in macro.
5382         (CALL_USED_REGISTERS): Update in macro.
5384 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
5386         PR rtl-optimization/68920
5387         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
5388         moves.
5390 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
5392         PR rtl-optimization/68990
5393         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
5394         pseudo instead of inheritance ones.
5396 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5397             Nick Clifton  <nickc@redhat.com>
5399         PR target/69129
5400         PR target/69012
5401         * config/mips/mips.c (mips_compute_frame_info): Initialise
5402         args_size and hard_frame_pointer_offset fields of the frame
5403         structure before calling mips_global_pointer.
5405 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
5407         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
5408         label reference.
5409         * configure: Regenerate.
5411 2016-01-21  Richard Biener  <rguenther@suse.de>
5413         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
5415 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
5417         * config/s390/s390.c (s390_asm_declare_function_size): Add code
5418         to actually emit the .size directive.
5420 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
5421              Jakub Jelinek  <jakub@redhat.com>
5423         PR target/69187
5424         PR target/65624
5425         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
5426         args array size by one to avoid buffer overflow.
5428 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
5430         * config/s390/s390.md (pool_section_start): Use switch_to_section
5431         to select proper read-only data section instead of hardcoding
5432         .rodata.
5433         (pool_section_end): Use switch_to_section to match the above.
5435 2016-01-21  Richard Biener  <rguenther@suse.de>
5437         PR tree-optimization/69378
5438         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
5439         (set_ssa_val_to): Use it for dominance checks taking into
5440         account not executable edges.
5442 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
5444         PR c++/69355
5445         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
5446         for bitsize instead of GET_MODE_PRECISION (mode).
5448 2016-01-20  Martin Sebor  <msebor@redhat.com>
5450         PR c/52291
5451         * extend.texi (__sync Builtins): Clarify the semantics of
5452         __sync_fetch_and_OP built-ins on pointers.
5453         (__atomic Builtins): Same.
5455 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5456             Sebastian Pop  <s.pop@samsung.com>
5458         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
5459         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
5460         (is_valid_rename): Same.
5461         (translate_isl_ast_to_gimple::get_rename): Same.
5462         (translate_isl_ast_to_gimple::rename_all_uses): Same.
5463         (translate_isl_ast_to_gimple::rename_uses): Same.
5464         (get_new_name): Check for close_phi nodes.
5465         (copy_loop_phi_args): Use phi_node_kind.
5466         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
5467         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
5469 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5470             Sebastian Pop  <s.pop@samsung.com>
5472         Revert commit r229783.
5473         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5474         Remove use of parameter_rename_map.
5475         (copy_def): Remove.
5476         (copy_internal_parameters): Remove.
5477         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5478         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5479         (free_sese_info): Do not free parameter_rename_map.
5480         (set_rename): Do not use parameter_rename_map.
5481         (rename_uses): Update call to set_rename.
5482         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5483         * sese.h (parameter_rename_map_t): Remove.
5484         (struct sese_info_t): Remove field parameter_rename_map.
5486 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5487             Sebastian Pop  <s.pop@samsung.com>
5489         * graphite-isl-ast-to-gimple.c: Fix comment.
5490         * graphite-scop-detection.c (defined_in_loop_p): New.
5491         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
5492         names defined in loop.
5494 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5495             Sebastian Pop  <s.pop@samsung.com>
5497         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
5498         Discard unstructured if-then-else regions.
5500 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5501             Sebastian Pop  <s.pop@samsung.com>
5503         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
5504         (cleanup_loop_iter_dom): Remove.
5505         (build_loop_iteration_domains): Remove.
5506         (build_scop_context): Remove.
5507         (build_scop_iteration_domain): Remove.
5508         (add_loop_constraints): New.
5509         (build_iteration_domains): New.
5510         (build_poly_scop): Call build_iteration_domains.
5512 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5513             Sebastian Pop  <s.pop@samsung.com>
5515         * graphite-scop-detection.c
5516         (scop_detection::harmful_loop_in_region): Free dom and loops.
5517         (scop_detection::loop_body_is_valid_scop): Free bbs.
5519 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5520             Sebastian Pop  <s.pop@samsung.com>
5522         * graphite-scop-detection.c (record_loop_in_sese): New.
5523         (gather_bbs::before_dom_children): Call record_loop_in_sese.
5524         (build_scops): Remove call to build_sese_loop_nests.
5525         * sese.c (sese_record_loop): Remove.
5526         (build_sese_loop_nests): Remove.
5527         (new_sese_info): Remove region->loops.
5528         (free_sese_info): Same.
5529         * sese.h (sese_contains_loop): Same.
5530         (build_sese_loop_nests): Remove.
5531         (sese_contains_loop): Remove.
5533 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5534             Sebastian Pop  <s.pop@samsung.com>
5536         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
5537         loop_is_valid_in_scop.
5538         (scop_detection::harmful_stmt_in_region): Renamed
5539         harmful_loop_in_region.
5540         Call loop_is_valid_in_scop.
5542 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5543             Sebastian Pop  <s.pop@samsung.com>
5545         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
5546         isl_ast_node_mark.
5548 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5549             Sebastian Pop  <s.pop@samsung.com>
5551         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
5552         * graphite.h (struct poly_bb): Remove field is_reduction.
5553         (PBB_IS_REDUCTION): Remove.
5555 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
5556             Sebastian Pop  <s.pop@samsung.com>
5558         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
5559         (add_pdr_constraints): Same.
5560         (scop_get_reads): Same.
5561         (scop_get_must_writes): Same.
5562         (scop_get_may_writes): Same.
5563         (scop_get_original_schedule): Same.
5564         (extend_schedule): Same.
5565         (apply_schedule_on_deps): Same.
5566         (carries_deps): Same.
5567         (compute_deps): Same.
5568         (scop_get_dependences): Same.
5569         * graphite-isl-ast-to-gimple.c
5570         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
5571         * graphite-optimize-isl.c (get_schedule_for_band): Same.
5572         (get_schedule_for_band_list): Same.
5573         (get_schedule_map): Same.
5574         (apply_schedule_map_to_scop): Same.
5575         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
5576         (build_loop_iteration_domains): Same.
5577         (add_condition_to_pbb): Same.
5578         (add_param_constraints): Same.
5579         (pdr_add_memory_accesses): Same.
5580         (pdr_add_data_dimensions): Same.
5582 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
5584         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
5585         requirements.
5587 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
5589         * common.opt (feliminate-dwarf2-dups): Replace references to
5590         "DWARF 2" with just "DWARF".
5591         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
5592         * doc/extend.texi: Likewise.
5593         * doc/cpp.texi: Likewise.
5594         * doc/invoke.texi: Likewise.
5595         (Option Summary): Add -gdwarf to list of Debugging Options.
5596         (Debugging Options): Document -gdwarf.
5597         * doc/contrib.texi: Spell "DWARF" like that.
5599 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
5601         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
5602         warning.  Fix up formatting.
5604         PR middle-end/67653
5605         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
5606         attempt to mark memory input operand addressable and
5607         call prepare_gimple_addressable in that case.  Don't adjust
5608         input_location for diagnostics, use error_at instead.
5610 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
5612         * config/rs6000/ppc-auxv.h: New file.
5613         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
5614         (cpu_is): Likewise.
5615         (cpu_supports): Likewise.
5616         * config/rs6000/rs6000.c: include "ppc-auxv.h".
5617         (cpu_is_info): New variable.
5618         (cpu_supports_info): Likewise.
5619         (tcb_verification_symbol): Likewise.
5620         (cpu_builtin_p): Likewise.
5621         (cpu_expand_builtin): New function.
5622         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
5623         (rs6000_init_builtins): Likewise.
5624         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
5625         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
5626         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
5627         * configure: Regenerate.
5628         * config.in: Likewise.
5629         * doc/extend.texi (PowerPC Built-in Functions): Document
5630         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
5632 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
5634         PR target/68609
5635         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
5636         domain check.
5637         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
5638         for V4SFmode.
5640 2016-01-20  Richard Henderson  <rth@redhat.com>
5642         PR bootstrap/69343
5643         PR bootstrap/69339
5644         PR tree-opt/68964
5645         Revert:
5646         * tree.c (tm_define_builtin): New.
5647         (find_tm_vector_type): New.
5648         (build_tm_vector_builtins): New.
5649         (build_common_builtin_nodes): Call it.
5651 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
5653         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
5654         (arm_fp_ok): Likewise.
5655         (arm_fp): Likewise.
5656         (arm_crypto): Likewise.
5658 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
5659             Richard Biener  <rguenther@suse.de>
5661         PR tree-optimization/69328
5662         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
5663         vectors have same number of elements.
5664         (vectorizable_condition): Fix masked version recognition.
5666 2016-01-20  Richard Biener  <rguenther@suse.de>
5668         PR tree-optimization/69345
5669         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
5670         (VN_INFO_PTR_INFO): Likewise.
5671         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
5672         info when it is equal between non-dominating SSA names.
5673         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5674         Make sure to look at original SSA infos.
5676 2016-01-20  Jeff Law  <law@redhat.com>
5678         PR target/25114
5679         * config/m68k/predicates.md (pow2_m1_operand): New predicate
5680         extracted from ...
5681         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
5682         (pc_or_label_operand): New predicate.
5683         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
5684         tests for small integers that are 2^n - 1.
5686 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
5688         * doc/invoke.texi (Options Summary): Add '.' after @xref.
5690 2016-01-19  Jeff Law  <law@redhat.com>
5692         PR middle-end/69347
5693         * tree-ssa-threadbackwards.c
5694         (fsm_find_control_statement_thread_paths): Do not try to lookup
5695         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
5697 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5699         * doc/lto.texi: Remove text that says only Gold has linker plugin
5700         support.
5702 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
5704         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
5705         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
5706         the DIE accordingly.
5707         (modified_type_die): Add REVERSE parameter and pass it recursively,
5708         as well as to base_type_die.  Adjust presence check accordingly.
5709         (base_type_for_mode): Adjust call to modified_type_die.
5710         (add_type_attribute): Add REVERSE parameter and pass it to
5711         modified_type_die.
5712         (generic_parameter_die): Adjust call to add_type_attribute.
5713         (add_scalar_info): Likewise.
5714         (add_subscript_info): Likewise.
5715         (gen_array_type_die): Likewise.
5716         (gen_descr_array_type_die): Likewise.
5717         (gen_entry_point_die): Likewise.
5718         (gen_enumeration_type_die): Likewise.
5719         (gen_formal_parameter_die): Likewise.
5720         (gen_subprogram_die): Likewise.
5721         (gen_variable_die ): Likewise.
5722         (gen_const_die): Likewise.
5723         (gen_field_die): Likewise.
5724         (gen_pointer_type_die): Likewise.
5725         (gen_reference_type_die): Likewise.
5726         (gen_ptr_to_mbr_type_die): Likewise.
5727         (gen_inheritance_die): Likewise.
5728         (gen_subroutine_type_die): Likewise.
5729         (gen_typedef_die): Likewise.
5730         (force_type_die): Adjust call to modified_type_die.
5732 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
5734         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
5735         flow throughout the file.  Fix broken link to Objective-C 2.0
5736         documentation.
5737         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
5738         errors.
5740 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
5742         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
5744 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
5746         PR ipa/66223
5747         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
5748         (maybe_record_node): Record cxa_pure_virtual as the only possible
5749         target if there are not ohter candidates.
5750         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
5752 2016-01-19  Richard Biener  <rguenther@suse.de>
5754         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
5755         (get_memory_order): Likewise.
5757 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
5759         * tree-vect-stmts.c (vectorizable_store): Check
5760         rhs vectype.
5762 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
5764         PR jit/68446
5765         * gcc.c (driver::decode_argv): Add call to
5766         init_opts_obstack before init_options_struct.
5767         * opts.c (init_opts_obstack): Remove idempotency.
5768         (init_options_struct): Replace call to init_opts_obstack
5769         with a gcc_assert to verify that it has already been called.
5770         * toplev.c (toplev::main): Add call to init_opts_obstack before
5771         calls to init_options_struct.
5772         (toplev::finalize): Move cleanup of opts_obstack next to
5773         cleanup of save_decoded_options, clearing the latter, and
5774         save_decoded_options_count.
5776 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5778         PR target/69135
5779         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
5780         attribute to unconditional.  Remove %? from output template.
5782 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
5783             Jiong Wang  <jiong.wang@arm.com>
5785         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
5786         generated from different expand order.
5788 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
5790         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
5791         Add support for CCMP costing.
5793 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
5795         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
5796         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
5797         (fccmpe<mode>): Likewise.
5798         (fcmp): Rename to fcmp and globalize pattern.
5799         (fcmpe): Likewise.
5800         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
5801         (aarch64_gen_ccmp_next): Add FP support.
5803 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
5805         * target.def (gen_ccmp_first): Update documentation.
5806         (gen_ccmp_next): Likewise.
5807         * doc/tm.texi (gen_ccmp_first): Update documentation.
5808         (gen_ccmp_next): Likewise.
5809         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
5810         expand_ccmp_expr_1.  Improve comments.
5811         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
5812         (ccmp_ior<mode>): Remove pattern.
5813         (cmp<mode>): Remove expand.
5814         (cmp): Globalize pattern.
5815         (cstorecc4): Use cc_register.
5816         (mov<mode>cc): Remove ccmp_cc_register check.
5817         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
5818         Simplify after removal of CC_DNE/* modes.
5819         (aarch64_ccmp_mode_to_code): Remove.
5820         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
5821         In 'k' case use integer as condition.
5822         (aarch64_nzcv_codes): Remove inverted cases.
5823         (aarch64_code_to_ccmode): Remove.
5824         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
5825         comparison with CC register to be used in folowing CCMP/branch/CSEL.
5826         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
5827         pattern.  Return the comparison with CC register.  Invert conditions
5828         when bitcode is OR.
5829         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
5830         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
5832 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
5834         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5835         instrumented_version.
5837 2016-01-19  Richard Biener  <rguenther@suse.de>
5839         PR tree-optimization/69336
5840         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
5841         handled components with get_ref_base_and_extent.
5842         (equal_mem_array_ref_p): Adjust.
5844 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
5846         PR debug/65779
5847         * shrink-wrap.c: Include valtrack.h.
5848         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
5849         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
5850         in between insn and where it will be moved to.  Call
5851         dead_debug_insert_temp.
5852         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
5853         first and dead_debug_local_finish at the end.
5854         For uses and defs bitmap, handle all regs in between REGNO and
5855         END_REGNO, not just the first one.
5857 2016-01-19  Richard Biener  <rguenther@suse.de>
5859         PR tree-optimization/69352
5860         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
5861         (equal_mem_array_ref_p): Constrain size and max size properly.
5862         Compare the reverse flag.
5864 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
5866         * ira.c (ira): Update regstat data if we deleted insns.
5868 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
5870         PR rtl-optimization/68955
5871         PR rtl-optimization/64557
5872         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
5873         here.  Fix up formatting.
5874         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
5876 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
5878         PR lto/69133
5879         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
5880         assume that the node has body.
5881         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
5882         check.
5884 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
5886         * lto-streamer-out.c (lto_output): Do not stream instrumentation
5887         thunks.
5889 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
5891         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
5892         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
5894 2016-01-19  Martin Jambor  <mjambor@suse.cz>
5895             Martin Liska  <mliska@suse.cz>
5896             Michael Matz  <matz@suse.de>
5898         * Makefile.in (OBJS): Add new source files.
5899         (GTFILES): Add hsa.c.
5900         * common.opt (disable_hsa): New variable.
5901         (-Whsa): New warning.
5902         * config.in (ENABLE_HSA): New.
5903         * configure.ac: Treat hsa differently from other accelerators.
5904         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
5905         $enable_offloading.
5906         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
5907         * doc/install.texi (Configuration): Document --with-hsa-runtime,
5908         --with-hsa-runtime-include, --with-hsa-runtime-lib and
5909         --with-hsa-kmt-lib.
5910         * doc/invoke.texi (-Whsa): Document.
5911         (hsa-gen-debug-stores): Likewise.
5912         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
5913         to invoke offload compiler for hsa acclerator.
5914         * opts.c (common_handle_option): Determine whether HSA offloading
5915         should be performed.
5916         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
5917         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
5918         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
5919         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
5920         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
5921         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
5922         GF_OMP_FOR_KIND_GRID_LOOP.
5923         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
5924         (pp_gimple_stmt_1): Likewise.
5925         * gimple-walk.c (walk_gimple_stmt): Likewise.
5926         * gimple.c (gimple_build_omp_grid_body): New function.
5927         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
5928         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
5929         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
5930         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
5931         GF_OMP_TEAMS_GRID_PHONY.
5932         (gimple_statement_omp_single_layout): Updated comments.
5933         (gimple_build_omp_grid_body): New function.
5934         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
5935         (gimple_omp_for_grid_phony): New function.
5936         (gimple_omp_for_set_grid_phony): Likewise.
5937         (gimple_omp_parallel_grid_phony): Likewise.
5938         (gimple_omp_parallel_set_grid_phony): Likewise.
5939         (gimple_omp_teams_grid_phony): Likewise.
5940         (gimple_omp_teams_set_grid_phony): Likewise.
5941         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
5942         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
5943         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
5944         (BUILT_IN_GOMP_TARGET): Updated type.
5945         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
5946         (adjust_for_condition): New function.
5947         (get_omp_for_step_from_incr): Likewise.
5948         (extract_omp_for_data): Moved parts to adjust_for_condition and
5949         get_omp_for_step_from_incr.
5950         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
5951         (fixup_child_record_type): Bail out if receiver_decl is NULL.
5952         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
5953         (scan_omp_parallel): Do not create child functions for phony
5954         constructs.
5955         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
5956         (scan_omp_1_op): Checking assert we are not remapping to
5957         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
5958         (parallel_needs_hsa_kernel_p): New function.
5959         (expand_parallel_call): Register apprpriate parallel child
5960         functions as HSA kernels.
5961         (grid_launch_attributes_trees): New type.
5962         (grid_attr_trees): New variable.
5963         (grid_create_kernel_launch_attr_types): New function.
5964         (grid_insert_store_range_dim): Likewise.
5965         (grid_get_kernel_launch_attributes): Likewise.
5966         (get_target_argument_identifier_1): Likewise.
5967         (get_target_argument_identifier): Likewise.
5968         (get_target_argument_value): Likewise.
5969         (push_target_argument_according_to_value): Likewise.
5970         (get_target_arguments): Likewise.
5971         (expand_omp_target): Call get_target_arguments instead of looking
5972         up for teams and thread limit.
5973         (grid_expand_omp_for_loop): New function.
5974         (grid_arg_decl_map): New type.
5975         (grid_remap_kernel_arg_accesses): New function.
5976         (grid_expand_target_kernel_body): New function.
5977         (expand_omp): Call it.
5978         (lower_omp_for): Do not emit phony constructs.
5979         (lower_omp_taskreg): Do not emit phony constructs but create for them
5980         a temporary variable receiver_decl.
5981         (lower_omp_taskreg): Do not emit phony constructs.
5982         (lower_omp_teams): Likewise.
5983         (lower_omp_grid_body): New function.
5984         (lower_omp_1): Call it.
5985         (grid_reg_assignment_to_local_var_p): New function.
5986         (grid_seq_only_contains_local_assignments): Likewise.
5987         (grid_find_single_omp_among_assignments_1): Likewise.
5988         (grid_find_single_omp_among_assignments): Likewise.
5989         (grid_find_ungridifiable_statement): Likewise.
5990         (grid_target_follows_gridifiable_pattern): Likewise.
5991         (grid_remap_prebody_decls): Likewise.
5992         (grid_copy_leading_local_assignments): Likewise.
5993         (grid_process_kernel_body_copy): Likewise.
5994         (grid_attempt_target_gridification): Likewise.
5995         (grid_gridify_all_targets_stmt): Likewise.
5996         (grid_gridify_all_targets): Likewise.
5997         (execute_lower_omp): Call grid_gridify_all_targets.
5998         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
5999         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
6000         (tree_omp_clause): Added union field dimension.
6001         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
6002         * tree.c (omp_clause_num_ops): Added number of arguments of
6003         OMP_CLAUSE__GRIDDIM_.
6004         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
6005         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
6006         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
6007         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
6008         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
6009         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
6010         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
6011         * tree-pass.h (make_pass_gen_hsail): Declare.
6012         (make_pass_ipa_hsa): Likewise.
6013         * ipa-hsa.c: New file.
6014         * lto-section-in.c (lto_section_name): Add hsa section name.
6015         * lto-streamer.h (lto_section_type): Add hsa section.
6016         * timevar.def (TV_IPA_HSA): New.
6017         * hsa-brig-format.h: New file.
6018         * hsa-brig.c: New file.
6019         * hsa-dump.c: Likewise.
6020         * hsa-gen.c: Likewise.
6021         * hsa.c: Likewise.
6022         * hsa.h: Likewise.
6023         * toplev.c (compile_file): Call hsa_output_brig.
6024         * hsa-regalloc.c: New file.
6026 2016-01-18  Jeff Law  <law@redhat.com>
6028         PR tree-optimization/69320
6029         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
6030         ranged object, do nothing if the RHS constant is not [0..1].
6031         (optimize_stmt): Comparing a boolean ranged object against a
6032         constant outside [0..1] results in a compile-time constant.
6034         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
6035         test.
6037 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
6039         * doc/invoke.texi (Invoking GCC): Add new section to menu.
6040         (Option Summary): Update to reflect new section and moved options.
6041         (C++ Dialect Options): Move -fstats to new section.
6042         (Debugging Options): Move all dump, statistics, and other GCC
6043         developer options to new section.  Rewrite section introduction
6044         and re-order remaining options to put the more basic ones first.
6045         (Optimization Options): Move -fira-verbose and -flto-report* to
6046         new section.
6047         (Developer Options): New section incorporating moved options.
6048         * doc/cppopts.texi (-dM): Update cross-reference.
6050 2016-01-18  Richard Henderson  <rth@redhat.com>
6052         PR target/69176
6053         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
6054         operands to pseudo only if CSE is expected.  Split long immediate
6055         operands only after reload, and for the stack pointer.
6056         (*add<GPI>3_pluslong): Remove.
6057         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
6058         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
6059         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
6060         (*add<GPI>3 peepholes): New.
6061         (*add<GPI>3 splitters): New.
6062         * config/aarch64/constraints.md (Upl): New.
6063         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
6065 2016-01-18  Richard Biener  <rguenther@suse.de>
6067         PR tree-optimization/69297
6068         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
6069         stmt at most once.
6070         (vect_bb_vectorization_profitable_p): Clear visited flag again.
6072 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
6074         PR middle-end/68542
6075         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
6076         of mixind vector and scalar types.
6077         (fold_relational_const): Add handling of vector
6078         comparison with boolean result.
6079         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
6080         comparison of vector operands with boolean result for EQ/NE only.
6081         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
6082         (verify_gimple_cond): Likewise.
6083         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
6084         valid type of VAL.
6086 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
6088         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
6089         !TARGET_OCTEON.
6091 2016-01-18  Richard Biener  <rguenther@suse.de>
6093         PR middle-end/69308
6094         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
6096 2016-01-18  Tom de Vries  <tom@codesourcery.com>
6098         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
6100 2016-01-18  Tom de Vries  <tom@codesourcery.com>
6102         * omp-low.c (set_oacc_fn_attrib): Make extern.
6103         * omp-low.h (set_oacc_fn_attrib): Declare.
6104         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
6105         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
6106         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
6107         Add and handle function parameter oacc_kernels_p.
6108         (find_reduc_addr, get_omp_data_i_param): New function.
6109         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
6110         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
6111         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
6112         Calculate dominance info.  Skip loops that are not in a kernels region
6113         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
6114         (pass_parallelize_loops::execute): Call parallelize_loops with
6115         oacc_kernels_p argument.
6116         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
6117         New member function.
6118         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
6119         * passes.def: Add argument to pass_parallelize_loops instantation.
6121 2016-01-18  Tom de Vries  <tom@codesourcery.com>
6123         * tree-parloops.c (pass_parallelize_loops::execute): Allow
6124         pass_parallelize_loops to be run outside the loop pipeline.
6126 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
6128         * tree-scalar-evolution.c (follow_copies_to_constant): New.
6129         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
6131 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
6133         PR target/63679
6134         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
6135         using get_ref_base_and_extent.
6136         (equal_mem_array_ref_p): New.
6137         (hashable_expr_equal_p): Add call to previous.
6139 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
6141         PR target/63679
6142         * tree-sra.c (disqualified_constants, constant_decl_p): New.
6143         (sra_initialize): Allocate disqualified_constants.
6144         (sra_deinitialize): Free disqualified_constants.
6145         (disqualify_candidate): Update disqualified_constants when appropriate.
6146         (create_access): Scan for constant-pool entries as we go along.
6147         (scalarizable_type_p): Add check against type_contains_placeholder_p.
6148         (maybe_add_sra_candidate): Allow constant-pool entries.
6149         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
6150         (initialize_constant_pool_replacements): New.
6151         (sra_modify_assign): Avoid mangling assignments created by previous,
6152         and don't generate writes into constant pool.
6153         (sra_modify_function_body): Call initialize_constant_pool_replacements.
6155 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
6157         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
6158         andnot instruction.
6159         (scalar_chain::convert_op): Likewise.
6160         * config/i386/i386.md (*andndi3_doubleword): New.
6162 2016-01-18  Richard Biener  <rguenther@suse.de>
6164         PR tree-optimization/69170
6165         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
6166         building a vector from scalar results of a pattern stmt.
6168 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
6170         * haifa-sched.c (autopref_multipass_init): Work around
6171         -Wmaybe-uninitialized warning.
6173 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6175         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
6176         against the constant 0.
6178 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6180         PR tree-optimization/68799
6181         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
6182         look up phi candidates in the statement-candidate map.
6183         (phi_add_costs): Likewise.
6184         (record_phi_increments): Likewise.
6185         (phi_incr_cost): Likewise.
6186         (ncd_with_phi): Likewise.
6187         (all_phi_incrs_profitable): Likewise.
6189 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
6191         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
6192         -Wmaybe-uninitialized warning.
6194 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
6196         * doc/invoke.texi (Invoking GCC): Add new section to menu.
6197         (Option Summary): Update to reflect new section and moved options.
6198         (C++ Dialect Options): Move -fvtable-verify and related options.
6199         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
6200         and profiling-related options.
6201         (Optimization Options): Move profile generation options and
6202         -fstack-protector and related options.
6203         (Instrumentation Options): New section incorporating moved options.
6204         (Code Generation Options): Move -finstrument-functions and
6205         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
6207 2016-01-16  Tom de Vries  <tom@codesourcery.com>
6209         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
6211 2016-01-16  Tom de Vries  <tom@codesourcery.com>
6213         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
6215 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
6217         * hash-table.h (hash_table::empty): Turn into an inline wrapper
6218         that checks whether the table is already empty.  Rename the
6219         original implementation to...
6220         (hash_table::empty_slot): ...this new private function.
6222 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
6224         PR diagnostic/68899
6225         * diagnostic-show-locus.c (layout::print_source_line): Move x
6226         offset of line until after call to
6227         get_line_width_without_trailing_whitespace.
6229 2016-01-15  Jeff Law  <law@redhat.com>
6231         PR tree-optimization/69270
6232         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
6233         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
6234         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
6235         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
6236         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
6237         ssa_name_has_boolean_range and constant_boolean_node.
6239 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
6241         PR rtl-optimization/69030
6242         * lra-spills.c (remove_pseudos): Check nrefs and make the function
6243         returning bool.
6244         (spill_pseudos): Delete debug insn for dead pseudo.
6245         (lra_spill): Initiate spill_hard_reg and slots memory separately.
6247 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
6249         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
6250         New.
6251         (TYPES_UNOPUS): Likewise.
6252         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
6253         builtin type, from UNOP to UNOPUS.
6254         (lbtruncuv4sf): Likewise.
6255         (lbtruncuv2df): Likewise.
6256         (lrounduv2sf): Likewise.
6257         (lrounduv4sf): Likewise.
6258         (lrounduv2df): Likewise.
6259         (lroundusf): Likewise.
6260         (lroundusf): Likewise.
6261         (lceiluv2sf): Likewise.
6262         (lceiluv4sf): Likewise.
6263         (lceiluv2df): Likewise.
6264         (lceilusf): Likewise.
6265         (lceiludf): Likewise.
6266         (lflooruv2sf): Likewise.
6267         (lflooruv4sf): Likewise.
6268         (lflooruv2df): Likewise.
6269         (lfloorusf): Likewise.
6270         (lfloorudf): Likewise.
6271         (lfrintnuv2sf): Likewise.
6272         (lfrintnuv4sf): Likewise.
6273         (lfrintnuv2df): Likewise.
6274         (lfrintnusf): Likewise.
6275         (lfrintnudf): Likewise.
6276         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
6277         conversion.
6278         (vcvtq_u32_f32): Likewise.
6279         (vcvtq_u64_f64): Likewise.
6280         (vcvta_u32_f32): Likewise.
6281         (vcvtaq_u32_f32): Likewise.
6282         (vcvtaq_u64_f64): Likewise.
6283         (vcvtm_u32_f32): Likewise.
6284         (vcvtmq_u32_f32): Likewise.
6285         (vcvtmq_u64_f64): Likewise.
6286         (vcvtn_u32_f32): Likwise.
6287         (vcvtnq_u32_f32): Likewise.
6288         (vcvtnq_u64_f64): Likewise.
6289         (vcvtp_u32_f32): Likewise.
6290         (vcvtpq_u32_f32): Likewise.
6291         (vcvtpq_u64_f64): Likewise.
6292         (vcvtmd_u64_f64): Likewise.
6293         (vcvtms_u32_f32): Likewise.
6294         (vcvtad_u64_f64): Likewise.
6295         (vcvtas_u32_f32): Likewise.
6296         (vcvtnd_u64_f64): Likewise.
6297         (vcvtns_u32_f32): Likewise.
6298         (vcvtpd_u64_f64): Likewise.
6299         (vcvtps_u32_f32): Likewise.
6301 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6303         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
6304         CSEL of zero_extended registers.
6306 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6308         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
6309         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
6311 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6313         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
6314         false when argument string is not found in the attributes table
6315         at all.
6317 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
6319         PR target/68609
6320         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
6321         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
6322         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
6323         precision estimate.
6325 2016-01-15  Richard Biener  <rguenther@suse.de>
6327         PR tree-optimization/66856
6328         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
6329         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
6330         (vect_create_new_slp_node): Increment stmt reference count.
6331         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
6332         an SLP tree before swapping operands.
6333         (vect_build_slp_tree): Likewise.
6334         (destroy_bb_vec_info): Free stmt info after SLP instances.
6335         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
6336         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
6337         (STMT_VINFO_NUM_SLP_USES): New macro.
6339 2016-01-15  Richard Biener  <rguenther@suse.de>
6341         PR debug/69137
6342         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
6343         (add_linkage_name): ... here.
6344         (gen_typedef_die): Use add_linkage_name_raw instead of
6345         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
6346         if necessary.
6348 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
6350         * gimplify.c (oacc_default_clause): Decode reference and pointer
6351         types for both kernels and parallel regions.
6353 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
6355         PR middle-end/69246
6356         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
6358 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
6360         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
6361         (convert_scalars_to_vector): Likewise.
6363 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
6365         * doc/extend.texi (Type Traits): Fix grammar.
6367 2016-01-15  Martin Jambor  <mjambor@suse.cz>
6369         * tree-inline.c (remap_decl): Use existing dclarations if
6370         remapping a type and prevent_decl_creation_for_types.
6371         (replace_locals_stmt): Do an initial remapping of non-VLA typed
6372         decls first.  Do real remapping with
6373         prevent_decl_creation_for_types set.
6374         * tree-inline.h (copy_body_data): New field
6375         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
6376         padding.
6378 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6380         * config/s390/s390.opt (mmvcle): More verbose help text.
6382 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6384         * config/s390/s390.opt: Add period to -mzvector option text.
6386 2016-01-15  Richard Biener  <rguenther@suse.de>
6388         PR tree-optimization/68961
6389         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
6390         of invariants in stores again.
6392 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6394         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
6396 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
6398         * config/i386/i386.c (ix86_expand_branch): Don't split
6399         DI mode xor instruction to SI mode.
6401 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
6403         PR ipa/68148
6404         * ipa-icf.c (sem_function::merge): Virtual functions may become
6405         reachable even if they address is not taken and there are no
6406         idrect calls.
6408 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
6410         * lto-streamer-out.c (subtract_estimated_size): New function.
6411         (get_symbol_initial_value): Use it.
6413 2016-01-15  Christian Bruel  <christian.bruel@st.com>
6415         PR target/65837
6416         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
6417         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
6418         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
6419         use add_builtin_function_ext_scope instead of add_builtin_function.
6420         (neon_set_p, neon_crypto_set_p): Remove.
6421         (arm_init_builtins): Always call arm_init_neon_builtins and
6422         arm_init_crypto_builtins.
6423         (arm_expand_builtin): Check that builtins are allowed for the arch.
6424         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
6425         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
6426         arm_init_neon_builtins call.
6428 2016-01-15  Richard Biener  <rguenther@suse.de>
6430         PR tree-optimization/69117
6431         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
6432         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
6433         of the leader conservatively.
6434         (free_scc_vn): Restore original SSA name infos.
6436 2016-01-14  Jeff Law  <law@redhat.com>
6438         PR tree-optimization/69270
6439         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
6440         single bit of precision, verify it's also unsigned.
6441         (record_edge_info): Use constant_boolean_node rather than fold_convert
6442         to convert boolean_true/boolean_false to the right type.
6444 2016-01-14  Richard Henderson  <rth@redhat.com>
6446         PR rtl-opt/69014
6447         * loop-doloop.c (record_reg_sets): New.
6448         (doloop_optimize): Reject the transform if the sequence
6449         clobbers registers live at the end of the loop block.
6450         (doloop_optimize_loops): Enable df_live if needed.
6452 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6454         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
6455         * gcc/config/rs6000/rs6000.c: Likewise.
6456         * gcc/config/rs6000/rs6000.h: Likewise.
6457         * gcc/config/rs6000/rs6000.md: Likewise.
6458         * gcc/doc/extend.texi: Likewsie.
6460 2016-01-14  Jeff Law  <law@redhat.com>
6462         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
6463         typo.
6465 2016-01-14  Richard Henderson  <rth@redhat.com>
6467         PR c/69272
6468         PR tree-opt/68964
6469         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
6470         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
6471         instead of builtin_decl_declared_p to test for declaration.
6473 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
6475         * doc/loop.texi (Loop Analysis and Representation): Document
6476         loop_depth function.
6478 2016-01-14  Tom de Vries  <tom@codesourcery.com>
6480         PR tree-optimization/68773
6481         * omp-low.c (expand_omp_target): Don't set force_output.
6482         * varpool.c (varpool_node::get_create): Same.
6483         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
6484         offload_funcs with force_output.
6486 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
6488         PR debug/69244
6489         * lra-eliminations.c (move_plus_up): Don't change anything if either
6490         the outer or inner subreg mode is not MODE_INT.
6491         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
6492         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
6494 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
6496         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
6497         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
6498         reduc_uplus_@var{m}): Remove.
6499         * expr.c (expand_expr_real_2): Remove expansion path for
6500         reduc_[us](min|max|plus) optabs.
6501         * optabs-tree.c (scalar_reduc_to_vector): Remove.
6502         * optabs-tree.h (scalar_reduc_to_vector): Remove.
6503         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
6504         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
6505         * tree-vect-loop.c (vectorizable_reduction): Remove test for
6506         reduc_[us](min|max|plus) optabs.
6508 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
6510         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
6511         (reduc_plus_scal_v2sf): New.
6512         (reduc_smax_v2sf): Rename to...
6513         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
6514         (reduc_smin_v2sf): Rename to...
6515         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
6517 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
6519         * alias.c (compare_base_symbol_refs): New function.
6520         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
6521         it.
6523 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
6525         PR middle-end/68146
6526         PR tree-optimization/69155
6527         * tree-complex.c: Include cfganal.h.
6528         (phis_to_revisit): New variable.
6529         (extract_component): Add phiarg_p argument.  Assert that returned
6530         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
6531         (update_phi_components): Partly rewrite to use loop over real/imag
6532         components instead of code duplication.  If extract_component returns
6533         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
6534         create_tmp_reg into the PHI node instead, and mention the phi triplet
6535         in phis_to_revisit.
6536         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
6537         in phis_to_revisit at the end.
6539 2016-01-14  Richard Biener  <rguenther@suse.de>
6541         PR tree-optimization/68060
6542         * tree-vect-loop.c (vect_is_simple_reduction): Check the
6543         outer loop reduction is only used in the inner loop before
6544         detecting a double reduction.
6546 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
6548         PR target/68269
6549         * combine.c (expand_field_assignment): Punt if compute_mode is
6550         unsupported scalar mode.
6552 2016-01-14  Richard Biener  <rguenther@suse.de>
6554         PR tree-optimization/66856
6555         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
6556         SLP node only if it built successfully.
6557         (vect_analyze_slp_instance): Adjust.
6559 2016-01-14  Jeff Law  <law@redhat.com>
6561         PR tree-optimization/69270
6562         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
6563         (record_edge_info): Use it.  Convert boolean_{true,false}_node
6564         to the type of op0.
6566 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
6568         PR ipa/66487
6569         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
6570         use block_ultimate_origin
6571         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
6573 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
6575         * doc/invoke.texi (Submodel Options): Rename section to
6576         "Machine-Dependent Options" to better reflect its content.
6577         Rewrite introductory text to remove archaic CPU names.
6578         Update references.
6580 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
6582         * doc/invoke.texi (Code Gen Options): Move section up in file,
6583         before target-specific options.  Update menu and option summary
6584         to reflect the new section ordering.
6586 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
6588         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
6589         (C++ Dialect Options): Add cross-reference to -std option.
6590         * doc/standards.texi (C++ Language): Document C++14 support.
6592 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
6594         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
6595         for pack/unpack functions for __ibm128.
6596         (PACK_IF): Likewise.
6597         (UNPACK_IF): Likewise.
6599         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
6600         support for __ibm128 pack/unpack functions.
6601         (rs6000_invalid_builtin): Likewise.
6602         (rs6000_init_builtins): Likewise.
6603         (rs6000_opt_masks): Likewise.
6605         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
6606         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
6607         functions
6608         (RS6000_BTM_COMMON): Likewise.
6610         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
6611         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
6612         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
6613         128-bit floating point.  Add support for the double values to be
6614         in Altivec registers for TF/IF packing and unpacking, but restrict
6615         TD packing sub-fields to be FPR registers.  Don't allow overlapped
6616         register support for packing.  Allow pack inputs to be memory
6617         locations.  Don't build generator functions for unpack<mode>_dm
6618         and unpack<mode>_nodm.
6619         (unpack<mode>_dm): Likewise.
6620         (unpack<mode>_nodm): Likewise.
6621         (pack<mode>): Likewise.
6623         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
6624         built-in functions to pack/unpack explicit __ibm128 values.
6625         (__builtin_unpack_ibm128): Likewise.
6627         * doc/extend.texi (PowerPC Built-in Functions): Document
6628         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
6630 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
6632         PR c/66208
6633         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
6634         Add new arg loc and pass it down as context.
6635         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
6636         to the location to use for the warning.
6637         (check_function_arguments): New arg loc.  All callers changed.  Pass
6638         it to check_function_nonnull.
6639         * c-common.h (check_function_arguments): Adjust declaration.
6641 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
6643         PR tree-optimization/69156
6644         * gimple.c (validate_type): Removed.
6645         (gimple_builtin_call_types_compatible_p): Use
6646         useless_type_conversion_p instead of validate_type.
6647         * value-prof.c (gimple_stringop_fixed_value): Fold
6648         icall_size to correct type.
6650 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
6652         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
6653         effects.
6655 2016-01-13  Richard Henderson  <rth@redhat.com>
6657         PR tree-opt/68964
6658         * target.def (builtin_tm_load, builtin_tm_store): Remove.
6659         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
6660         (ix86_builtin_tm_store): Remove.
6661         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6662         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6663         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6664         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6665         * doc/tm.texi: Rebuild.
6667         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
6668         (BUILT_IN_TM_MEMCPY_RTWN): New.
6669         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
6670         fallback from vector to integer helpers.
6671         (build_tm_load): Handle vector types directly, instead of
6672         via target hook.
6673         (build_tm_store): Likewise.
6674         (expand_assign_tm): Prepare for register types not handled by
6675         the above.  Copy them to memory and use memcpy.
6676         * tree.c (tm_define_builtin): New.
6677         (find_tm_vector_type): New.
6678         (build_tm_vector_builtins): New.
6679         (build_common_builtin_nodes): Call it.
6681 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
6683         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
6684         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
6686 2016-01-13  Tom de Vries  <tom@codesourcery.com>
6688         PR tree-optimization/69169
6689         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
6690         handled_struct_type param.
6691         (create_variable_info_for, intra_create_variable_infos): Call
6692         create_variable_info_for_1 with extra arg.
6694 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
6696         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
6697         and "armv8.1-a+crc" entries.
6699 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
6701         PR target/69228
6702         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
6703         Change first operand predicate from register_or_constm1_operand
6704         to register_operand.
6705         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
6706         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
6707         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
6708         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
6709         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
6710         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
6711         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
6712         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
6713         comparison with constm1_rtx from vec_prefetch_gen part.
6715 2016-01-13  Richard Biener  <rguenther@suse.de>
6717         PR tree-optimization/69013
6718         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
6719         Exchange assert for a test.
6721 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6723         PR target/69247
6724         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
6726 2016-01-13  Richard Biener  <rguenther@suse.de>
6728         PR tree-optimization/69242
6729         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
6730         assert with a check.
6732 2016-01-13  Richard Biener  <rguenther@suse.de>
6734         PR tree-optimization/69186
6735         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6736         Properly guard vect_update_misalignment_for_peel call.
6738 2016-01-12  Jeff Law  <law@redhat.com>
6740         PR tree-optimization/pr67755
6741         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
6742         "need_profile_correction".
6743         (thread_block_1): Initialize new field to false by default.  If we
6744         have multiple thread paths through a common joiner to different
6745         final targets, then set new field to true.
6746         (compute_path_counts): Only do count adjustment when it's really
6747         needed.
6749 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
6751         * doc/invoke.texi (Spec Files): Move section down in file, past
6752         all command-line option descriptions.
6754 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6756         PR middle-end/54809
6757         * doc/gty.texi: Remove documentation of mark_hook.
6758         * gengtype.c (struct write_types_data): Remove code to support
6759         mark_hook attribute.
6760         (walk_type): Likewise.
6761         (write_func_for_structure): Likewise.
6763 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
6765         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
6766         Directory Options, and -specs= to Overall Options.
6767         (Overall Options): Adjust similarly.  Reorder to group related
6768         options together.  Make -specs= cross-reference the spec file details.
6769         (Directory Options): Adjust similarly.
6771 2016-01-12  Jeff Law  <law@redhat.com>
6773         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
6775 2016-01-12  Olivier Hainque  <hainque@adacore.com>
6777         * gcc.c (spec_undefvar_allowed): New global.
6778         (process_command): Set to true when running for --version or --help,
6779         alone or together.
6780         (getenv_spec_function): When the variable is not defined, use the
6781         variable name as the variable value if we're allowed not to issue
6782         a fatal error.
6784 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
6786         PR tree-optimization/68911
6787         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
6788         information computed for expression "init + nit * step".
6790 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
6792         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
6793         about name of GCC executable.  Remove deleted node from menu.
6794         (Directory Options) <-B>: Remove cross-reference to deleted node.
6795         (Target Options): Delete section.
6797 2016-01-12  Christian Bruel  <christian.bruel@st.com>
6799         PR target/69180
6800         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
6801         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
6803 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
6805         PR target/69198
6806         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
6807         aligned_mem is properly set for AVX512-VL floating point masked
6808         stores.
6810         PR target/69175
6811         * ifcvt.c (cond_exec_process_if_block): When removing the last
6812         insn from then_bb, remove also any possible barriers that follow it.
6814 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
6816         PR target/68456
6817         PR target/69226
6818         * config/i386/iamcu.h (SIZE_TYPE): New macro.
6819         (PTRDIFF_TYPE): Likewise.
6820         (WCHAR_TYPE): Likewise.
6821         (WCHAR_TYPE_SIZE): Likewise.
6822         (STDINT_LONG32): Likewise.
6824 2016-01-12  Richard Biener  <rguenther@suse.de>
6826         PR tree-optimization/69053
6827         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
6828         convert initial value for cond reductions.
6830 2016-01-12  Richard Biener  <rguenther@suse.de>
6832         PR tree-optimization/69007
6833         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
6834         widen_sum after dot_prod and sad.
6836 2016-01-12  Richard Biener  <rguenther@suse.de>
6838         PR tree-optimization/69168
6839         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
6840         pattern stmt SLP type.
6841         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
6842         end up unused so cope with that case.
6844 2016-01-12  Richard Biener  <rguenther@suse.de>
6846         PR tree-optimization/69157
6847         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
6848         stmts def type only during analyze phase.
6849         (vectorizable_call): Likewise.
6850         (vectorizable_simd_clone_call): Likewise.
6851         (vectorizable_conversion): Likewise.
6852         (vectorizable_assignment): Likewise.
6853         (vectorizable_shift): Likewise.
6854         (vectorizable_operation): Likewise.
6855         (vectorizable_store): Likewise.
6856         (vectorizable_load): Likewise.
6858 2016-01-12  Richard Biener  <rguenther@suse.de>
6860         PR tree-optimization/69174
6861         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
6862         space.
6863         (vectorizable_load): Properly compute the number of loads needed
6864         for permuted strided SLP loads and do not spuriously assign
6865         to SLP_TREE_VEC_STMTS.
6867 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
6869         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
6870         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
6871         (MD_EXEC_PREFIX): Remove.
6872         (MD_STARTFILE_PREFIX) Removee.
6873         (FILE_NAME_ABSOLUTE_P): Remove.
6874         (CPP_SPEC): Do not read macros from sys/version.h.
6875         (LINK_COMMAND_SPEC): Remove.
6876         (LOCAL_INCLUDE_DIR): Remove.
6877         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
6878         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
6879         (POST_LINK_SPEC): Define to invoke stubify after linker
6880         (LIBSTDCXX): Remove define
6881         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
6882         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
6883         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
6884         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
6885         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
6886         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
6887         (i386_djgpp_asm_named_section): Add propotype of new procedure
6889         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
6890         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
6891         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
6892         in config/i386/djgpp.h).
6893         (STANDARD_STARTFILE_PREFIX_2): Define identical to
6894         STANDARD_STARTFILE_PREFIX_1.
6895         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
6896         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
6897         installation errors.
6898         (MAX_OFILE_ALIGNMENT): Define to 128.
6899         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
6901         * config/i386/djgpp.c: New file. Add implementation of
6902         i386_djgpp_asm_named_section.
6904         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
6906         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
6907         Add rule for building djgpp.o.
6909 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6911         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
6912         (rtx_is_swappable_p): Reductions are swappable.
6913         (insn_is_swappable_p): V2DF reductions are swappable.
6915 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
6917         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
6918         reloads for other unsupported memory operands.
6920 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6921             Jim Wilson  <jim.wilson@linaro.org>
6923         PR target/69194
6924         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
6925         copy_to_mode_reg instead of force_reg.
6927 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
6929         PR target/69225
6930         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
6931         TARGET_80387 is true.
6933 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
6935         PR target/69071
6936         * lra-eliminations.c (move_plus_up): Only move plus up
6937         if subreg of the constant can be simplified into constant
6938         and use the simplified subreg of the constant instead of
6939         the original constant.
6941         * fold-const.c (fold_convertible_p): Don't return true
6942         for conversion of VECTOR_TYPE to same sized integral type.
6943         (fold_convert_loc): Fix up formatting.  Fold conversion of
6944         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
6945         instead of NOP_EXPR.
6947         PR tree-optimization/69214
6948         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
6949         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6950         Formatting fix.
6952         PR tree-optimization/69207
6953         * tree-vect-slp.c (vect_get_constant_vectors): For
6954         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
6955         fold_convertible_p to vector_type's element type, and always
6956         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
6958 2016-01-11  Richard Biener  <rguenther@suse.de>
6960         PR tree-optimization/69173
6961         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
6962         fixup the cycle if all stmts are in a pattern.
6964 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
6966         PR middle-end/68999
6967         * alias.c (base_alias_check): Move check for addresses with
6968         alignment ANDs before the call for compare_base_decls.
6969         (memrefs_conflict_p): Return -1 for different decls
6970         that went through alignment adjustments.
6972 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6974         PR rtl-optimization/68796
6975         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
6976         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
6977         and QImode comparisons against zero with CC_NZmode.
6978         * config/aarch64/iterators.md (short_mask): New mode_attr.
6980 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
6982         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
6983         (<avx512>_store<mode>_mask): Likewise.
6985 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
6986             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6988         PR rtl-optimization/68841
6989         * ifcvt.c (struct noce_if_info): Add orig_x field.
6990         (bbs_ok_for_cmove_arith): Add to_rename parameter.
6991         Don't record conflicts on to_rename if it's present.
6992         Allow memory destinations in sets.
6993         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
6994         blocks, passing orig_x to the checks.
6995         (noce_process_if_block): Set if_info->orig_x appropriately.
6997 2016-01-11  Tom de Vries  <tom@codesourcery.com>
6999         PR tree-optimization/69069
7000         * tree-parloops.c (create_parallel_loop): Add missing phi args.
7002 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
7004         PR rtl-optimization/68920
7005         * config/i386/i386.c (ix86_option_override_internal): Restrict number
7006         of conditional moves for  RTL if-conversion to 1 for
7007         TARGET_ONE_IF_CONV_INSN.
7008         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
7009         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
7010         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
7011         parameter to restirct number of conditional moves for
7012         RTL if-conversion.
7013         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
7014         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
7015         conditionl moves.
7017 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
7019         PR bootstrap/69123
7020         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
7021         onepart vars.  Fix typo in comment.  Fix reversed condition in
7022         unshare test.
7023         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
7025         PR bootstrap/69123
7026         * var-tracking.c (dump_onepart_variable_differences): New.
7027         (dataflow_set_different): If a detailed dump is requested,
7028         delay early returns and dump differences between onepart
7029         variables present before and after, and added variables.
7031 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
7033         PR target/69010
7034         * expr.c (expand_expr_real_1): For boolean vector constants
7035         with a scalar mode use const_scalar_mask_from_tree.
7036         (const_scalar_mask_from_tree): New.
7037         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
7038         assigned to a mask type to handle constants.
7040 2016-01-11  Martin Jambor  <mjambor@suse.cz>
7042         PR ipa/69044
7043         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
7044         useless parameters if we cannot change function signature.
7046 2016-01-11  Martin Jambor  <mjambor@suse.cz>
7048         PR ipa/66616
7049         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
7050         flag.
7052 2016-01-11  Tom de Vries  <tom@codesourcery.com>
7054         PR tree-optimization/69109
7055         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
7056         latch with phi.
7058 2016-01-11  Tom de Vries  <tom@codesourcery.com>
7060         PR tree-optimization/69108
7061         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
7062         res is not used in a phi.
7064 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
7066         PR 67425
7067         * common.opt (frandom-seed): Fix parameter name.
7068         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
7070 2016-01-11  Tom de Vries  <tom@codesourcery.com>
7072         PR tree-optimization/69058
7073         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
7074         not supported.
7076 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
7078         * config/arc/arc.opt (mdiv-rem): Add period to the end.
7079         (mcode-density): Likewise.
7081 2016-01-10  Tom de Vries  <tom@codesourcery.com>
7083         PR tree-optimization/69062
7084         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
7085         (parallelize_loops): Don't paralelize loop that has phi with address
7086         arg.
7088 2016-01-10  Tom de Vries  <tom@codesourcery.com>
7090         PR tree-optimization/69039
7091         * tree-parloops.c (try_create_reduction_list): Only allow single exit
7092         phi for reduction.
7094 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
7096         PR middle-end/68743
7097         * match.pd: Require target has function_c99_misc before doing
7098         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
7100 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
7102         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
7103         use GMPINC.
7104         * configure: Regenerate.
7106 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
7108         PR middle-end/50865
7109         PR tree-optimization/69097
7110         * fold-const.h (expr_not_equal_to): New prototype.
7111         * fold-const.c: Include stringpool.h and tree-ssanames.h.
7112         (expr_not_equal_to): New function.
7113         * match.pd (X % -Y is the same as X % Y): Don't optimize
7114         unless X is known not to be equal to minimum or Y is known
7115         not to be equal to -1.
7116         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
7117         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
7118         (simplify_stmt_using_ranges): Adjust caller.
7119         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
7120         substitute_and_fold.
7122 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
7124         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
7125         w/o DECL_NAME.
7127 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
7129         PR tree-optimization/69167
7130         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
7131         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
7132         ops[0] comparison.
7133         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
7135 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
7136             Richard Biener  <rguenther@suse.de>
7138         PR tree-optimization/68707
7139         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
7140         instances that can be handled via vect_load_lanes.
7142 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
7144         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
7145         if we can't determine address equivalence.
7146         * alias.c (compare_base_decl): Update for changed return value of
7147         symtab_node::equal_address_to.
7149 2016-01-08  Jason Merrill  <jason@redhat.com>
7151         PR c++/68983
7152         PR c++/67557
7153         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
7154         * expr.c (store_field): Not here.
7155         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
7156         call with TREE_ADDRESSABLE type.
7157         * tree-cfg.c (verify_gimple_call): Adjust.
7159 2016-01-08  Olivier Hainque  <hainque@adacore.com>
7161         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
7162         libc_internal.
7164 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
7166         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
7167         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
7168         (reduc_smin_v2sf): Rename to...
7169         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
7170         (reduc_splus_v2sf): Rename to...
7171         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
7173 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
7175         PR tree-optimization/69162
7176         * gimplify.c (gimplify_va_arg_expr): Encode original type of
7177         valist argument in another argument.
7178         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
7179         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
7180         to determine the va_list type, build a MEM_REF instead of
7181         build_fold_indirect_ref.
7183         PR tree-optimization/69172
7184         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
7185         gimple_build.
7187 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7189         PR tree-optimization/67781
7190         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
7191         and cmpnop in two steps: first the ones not accessed in original
7192         gimple expression in a endian independent way and then the ones not
7193         accessed in the final result in an endian-specific way.
7195 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
7197         PR tree-optimization/69083
7198         * tree-vect-slp.c (vect_get_constant_vectors): For
7199         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
7200         element type.  If op is fold_convertible_p to vector_type's element
7201         type, use NOP_EXPR instead of VCE.
7203 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
7205         PR rtl-optimization/67778
7206         PR rtl-optimization/68634
7207         PR rtl-optimization/68909
7208         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
7209         block from the stack until done with it.  Remove a superfluous
7210         bitmap set.  Remove a superfluous bitmap test.
7212 2016-01-07  Martin Sebor  <msebor@redhat.com>
7214         PR c/68966
7215         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
7216         constraint on the type of arguments.
7218 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
7220         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
7221         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
7222         unaligned_access on the gcc_options set.
7223         * config/arm/arm.c (arm_option_override_internal): Use
7224         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
7226 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
7228         PR target/69140
7229         * config/i386/i386.c (ix86_frame_pointer_required): Enable
7230         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
7232 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
7234         Revert
7235         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
7237         PR target/69140
7238         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
7239         depending on frame_pointer_needed before remaining integer and SSE
7240         registers are saved.
7242 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
7244         PR 1078
7245         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
7247 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
7249         PR target/69171
7250         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
7251         Use the "xBm" constraint.
7252         (float<sseintvecmodelower><mode>2<mask_name><round_name):
7253         Likewise.
7254         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
7255         (sse_cvtsi2ssq<round_name>): Likewise.
7256         (sse_cvtss2si<round_name>): Likewise.
7257         (sse_cvtss2siq<round_name>): Likewise.
7258         (sse2_cvtsi2sdq<round_name>): Likewise.
7259         (sse2_cvtsd2si<round_name>): Likewise.
7260         (sse2_cvtsd2siq<round_name>): Likewise.
7261         * config/i386/subst.md (round_nimm_scalar_predicate): New
7262         predicate.
7264 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
7266         PR middle-end/67639
7267         * varasm.c (make_decl_rtl): Mark invalid register vars as
7268         DECL_EXTERNAL.
7270         PR rtl-optimization/66206
7271         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
7272         All callers changed.
7274 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
7276         PR tree-optimization/69141
7277         * tree-ssa-pre.c: Include langhooks.h.
7278         (eliminate_dom_walker::before_dom_children): Use
7279         lang_hooks.decl_printable_name instead of
7280         cgraph_node::get ()->name ().
7282         PR middle-end/68960
7283         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
7284         it and DECL_ALIGN too.
7286 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
7288         * config/mips/mips-ftypes.def: Sort to lexicographical order.
7290 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
7292         PR target/69140
7293         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
7294         depending on frame_pointer_needed before remaining integer and SSE
7295         registers are saved.
7297 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7299         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
7300         mode iterator with VSX_M2.
7301         (*p9_vecstore_<mode>): Likewise.
7302         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
7303         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
7304         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
7305         (define_split for VSX_LE128 stores): Likewise.
7306         (define_peephole2 for TImode LE swaps): Likewise.
7307         (define_split for VSX_LE128 post-reload stores): Likewise.
7309 2016-01-06  Marek Polacek  <polacek@redhat.com>
7311         PR sanitizer/69099
7312         * convert.c (convert_to_integer_1): Adjust call to
7313         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
7314         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
7315         EXPR instead of ARG.
7316         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
7318 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
7320         PR 1078
7321         * doc/extend.texi (RL78 Variable Attributes): New section.
7323 2016-01-05  Marek Polacek  <polacek@redhat.com>
7325         PR c/69104
7326         * builtins.c (get_memmodel): Use expansion point location rather than
7327         the input location.  Call warning_at rather than warning.
7328         (expand_builtin_atomic_compare_exchange): Likewise.
7329         (expand_builtin_atomic_load): Likewise.
7330         (expand_builtin_atomic_store): Likewise.
7331         (expand_builtin_atomic_clear): Likewise.
7333 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
7335         PR target/68991
7336         * config/i386/i386.c (ix86_expand_vector_logical_operator):
7337         Replace nonimmediate_operand with vector_operand.
7338         * config/i386/predicates.md (vector_operand): New predicate.
7339         (general_vector_operand): Replace nonimmediate_operand with
7340         vector_operand.
7341         * config/i386/sse.md: Replace nonimmediate_operand with
7342         vector_operand and m constraint with Bm constraint on SSE
7343         patterns with 16-byte memory operand.
7344         * config/i386/subst.md (round_nimm_predicate): Replace
7345         nonimmediate_operand with vector_operand.
7346         (round_saeonly_nimm_predicate): Likewise.
7347         (round_saeonly_nimm_scalar_predicate): New.
7349 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
7351         PR target/68991
7352         * config/i386/constraints.md (Bm): New constraint.
7353         * config/i386/predicates.md (vector_memory_operand): New
7354         predicate.
7355         * config/i386/sse.md: Replace xm with xBm in plusminus and
7356         any_logic patterns.
7358 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
7360         PR 1078
7361         * doc/extend.texi (V850 Function Attributes): New section.
7362         (V850 Variable Attributes): New section.
7364 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
7366         PR 1078
7367         * doc/extend.texi (MicroBlaze Function Attributes): Document
7368         interrupt_handler and fast_interrupt attributes.
7370 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
7372         PR other/60465
7373         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
7374         for local symbolic operands.
7375         * config/ia64/predicates.md (local_symbolic_operand64): New
7376         predicate.
7378 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7380         PR rtl-optimization/68651
7381         * combine.c (combine_simplify_rtx): Canonicalize x + x into
7382         x << 1.
7384 2016-01-05  Nathan Sidwell  <nathan@acm.org>
7386         * alias.c (compare_base_decls): Use symtab_node::get.
7388 2016-01-05  Nick Clifton  <nickc@redhat.com>
7390         PR target/68770
7391         * ira-costs.c (copy_cost): Initialise the t_icode field of the
7392         secondary_reload_info structure.
7394         PR target/66655
7395         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
7396         decls if weak support is available.
7398 2016-01-04  Martin Sebor  <msebor@redhat.com>
7400         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
7402 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
7404         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7405         OPTION_MASK_P9_DFORM.
7407         * config/rs6000/constraints.md (wo constraint): New constraint for
7408         ISA 3.0 (power9).
7410         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
7411         for wo constraint.
7412         (rs6000_init_hard_regno_mode_ok): Likewise.
7414         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
7415         wo constraint.
7417         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
7418         expanders not to have constraints.  Add support for ISA 3.0 xxperm
7419         instruction.  Add support for fusing xxlor with xxperm.
7420         (altivec_vperm_<mode>_internal): Likewise.
7421         (altivec_vperm_v8hiv16qi): Likewise.
7422         (altivec_vperm_<mode>v16q): Likewise.
7423         (altivec_vperm_<mode>_uns): Likewise.
7424         (vperm_v8hiv4si): Likewise.
7425         (vperm_v16qiv8hi): Likewise.
7427         * doc/md.texi (RS/6000 constraints): Document wo constraint.
7429 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
7431         Update copyright years.
7433         * gcc.c (process_command): Update copyright notice dates.
7434         * gcov-dump.c (print_version): Ditto.
7435         * gcov.c (print_version): Ditto.
7436         * gcov-tool.c (print_version): Ditto.
7437         * gengtype.c (create_file): Ditto.
7438         * doc/cpp.texi: Bump @copying's copyright year.
7439         * doc/cppinternals.texi: Ditto.
7440         * doc/gcc.texi: Ditto.
7441         * doc/gccint.texi: Ditto.
7442         * doc/gcov.texi: Ditto.
7443         * doc/install.texi: Ditto.
7444         * doc/invoke.texi: Ditto.
7446 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7448         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
7449         modes larger than TImode as TImode if NEON is not enabled.
7451 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7453         PR target/69100
7454         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
7455         mode for %f0-%f31 only if TARGET_FPU.
7457 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
7459         PR target/69072
7460         * config/sparc/sparc.c (scan_record_type): Take into account subfields
7461         to compute the PACKED_P predicate.
7462         (function_arg_record_value): Minor tweaks.
7464 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7466         * doc/install.texi (--with-multilib-list): Describe the meaning of the
7467         option for arm*-*-* targets.
7469 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
7471         * doc/extend.texi (Common Function Attributes): Move docs for
7472         MSP430-specific attributes to....
7473         (MSP430 Function Attributes): ...here.  Delete the redundant
7474         entries and copy-edit the remaining text.
7475         (MSP430 Variable Attributes): Use uniform format for index
7476         entries and add a cross-reference to the corresponding function
7477         attribute docs.
7479 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
7481         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
7482         -finite-math typo.
7483         (x86 Options): Likewise.
7485 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
7487         PR 1078
7489         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
7490         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
7491         to corresponding attribute.
7493 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
7495         * doc/extend.texi (Common Function Attributes) <noplt>: Move
7496         to correct alphabetization of table.  Copy-edit and correct
7497         markup.
7498         <stack_protect>: Likewise.
7499         <target_clones>: Likewise.
7500         <simd>: Likewise.
7501         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
7502         Correct punctuation.
7503         (Code Gen Options) <-fno-plt>: Copy-edit.
7505 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7507         PR target/68917
7508         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
7509         SI values.  Explicitly convert SI to DI and vice-versa.
7511 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
7513         PR tree-optimization/69070
7514         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
7515         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
7517         PR sanitizer/69055
7518         * ubsan.c (ubsan_instrument_float_cast): Call
7519         initialize_sanitizer_builtins.
7521         PR target/69015
7522         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
7524 Copyright (C) 2016 Free Software Foundation, Inc.
7526 Copying and distribution of this file, with or without modification,
7527 are permitted in any medium without royalty provided the copyright
7528 notice and this notice are preserved.