1 2016-04-27 Release Manager
5 2016-04-25 Richard Biener <rguenther@suse.de>
7 PR tree-optimization/70780
8 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
10 (compute_antic): Mark blocks with abnormal preds as visited as
11 they have a final empty antic-in solution already.
13 2016-04-22 H.J. Lu <hongjiu.lu@intel.com>
15 Backport from mainline
16 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
18 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
20 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
22 * system.h (list, map, set, vector): Include conditionally.
23 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
24 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
25 * ipa-icf.c (INCLUDE_LIST): Define.
26 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
27 * config/sh/sh.c (INCLUDE_VECTOR): Define.
28 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
29 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
30 * cp/logic.cc (INCLUDE_LIST): Define.
31 * fortran/trans-common.c (INCLUDE_MAP): Define.
33 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
35 * auto-profile.c: Remove <string.h> include.
36 * ipa-icf-gimple.c: Remove <list> include.
37 * diagnostic.c: Remove <new> include.
38 * genmatch.c: Likewise.
39 * pretty-print.c: Likewise.
41 * c/c-objc-common.c: Likewise.
42 * cp/error.c: Likewise.
43 * fortran/error.c: Likewise.
45 2016-04-21 Richard Biener <rguenther@suse.de>
48 * fold-const.c (fold_comparison): Return properly typed
51 2016-04-20 Andrew Pinski <apinski@cavium.com>
52 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
55 * config/aarch64/aarch64.md (sibcall): Force call
56 address to be DImode for ILP32.
57 (sibcall_value): Likewise.
59 2016-04-20 Marek Polacek <polacek@redhat.com>
61 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
64 2016-04-20 Marek Polacek <polacek@redhat.com>
66 PR tree-optimization/70725
67 * tree-if-conv.c (is_false_predicate): New function.
68 (predicate_mem_writes): Use it.
70 2016-04-20 Richard Biener <rguenther@suse.de>
72 PR tree-optimization/70726
73 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
74 shift amounts from a pattern stmt operand.
76 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
79 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
80 stack_restore_from_fpr pattern when restoring r15.
81 (s390_optimize_prologue): Strip away the memory barrier in the
82 parallel when trying to get rid of restore insns.
83 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
84 definition for loading the stack pointer from an FPR. Compared to
85 the normal move insn this pattern includes a full memory barrier.
87 2016-04-19 Richard Biener <rguenther@suse.de>
89 PR tree-optimization/70724
90 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
91 restoring out from ...
92 (free_scc_vn): ... here.
93 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
94 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
96 (pass_fre::execute): Restore SSA info.
98 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
100 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
102 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc
104 Mention Solaris 11 packaging changes.
105 Update gas and gld requirements.
106 Remove reference to pre-Solaris 10 bug.
107 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
109 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
112 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
115 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
116 armv8.1-a and armv8.1-a+crc.
118 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
120 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
121 unless compiling with at least GCC-4.8.
123 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
126 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode><mask_name>"):
129 2016-04-15 Jakub Jelinek <jakub@redhat.com>
131 * BASE-VER: Set to 6.0.1.
132 * DEV-PHASE: Set to prerelease.
134 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
136 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
138 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
140 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
141 architecture revisions.
143 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
145 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
146 * config/i386/i386.c (ix86_using_red_zone): No longer static.
147 * config/i386/i386.md (stack decrement to push peepholes): Guard
148 with !x86_using_red_zone ().
150 2016-04-15 Jakub Jelinek <jakub@redhat.com>
153 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
154 to dump_generic_node.
155 (NIY): Pass also flags to do_niy.
157 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
159 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
160 (simd_clone_vector_of_formal_parm_types)
161 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
162 (simd_clone_mangle, simd_clone_create)
163 (simd_clone_adjust_return_type, create_tmp_simd_array)
164 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
165 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
166 (ipa_simd_modify_function_body, simd_clone_linear_addend)
167 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
168 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
169 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move
171 * omp-simd-clone.c: ... this new file.
172 (simd_clone_vector_of_formal_parm_types): Make it static.
173 * Makefile.in (OBJS): Add omp-simd-clone.o.
175 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
178 * config/i386/sse.md: Use proper memory operand
182 2016-04-15 Richard Biener <rguenther@suse.de>
183 Alan Modra <amodra@gmail.com>
185 PR tree-optimization/70130
186 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
187 when alignment stays not the same and no not use the realign
190 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
193 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
194 direct move handlers for KFmode. Change TFmode handlers test from
195 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
197 2016-04-14 Jakub Jelinek <jakub@redhat.com>
200 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
201 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
202 (inlined_polymorphic_ctor_dtor_block_p): Use it.
203 * tree-ssa-live.c (remove_unused_scope_block_p): When
204 in_ctor_dtor_block, avoid discarding not just BLOCKs with
205 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
206 block_ultimate_origin is FUNCTION_DECL.
207 (remove_unused_locals): If current_function_decl is
208 polymorphic_ctor_dtor_p, pass initial true to
209 remove_unused_scope_block_p' is_ctor_dtor_block.
211 2016-04-14 Martin Sebor <msebor@redhat.com>
216 * doc/extend.texi (Variable Length): Revert.
218 2016-04-14 Marek Polacek <polacek@redhat.com>
219 Jan Hubicka <hubicka@ucw.cz>
222 * tree.c (verify_type): Disable the canonical type of main variant
225 2016-04-14 Jason Merrill <jason@redhat.com>
227 * cfgexpand.c, expr.c: Revert previous change.
229 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
232 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
233 when building a mem ref for the incoming reduction variable.
235 2016-04-14 Richard Biener <rguenther@suse.de>
237 PR tree-optimization/70614
238 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
239 loop if the evolution dropped to chrec_dont_know.
240 (interpret_condition_phi): Likewise.
242 2016-04-14 Richard Biener <rguenther@suse.de>
244 PR tree-optimization/70623
245 * tree-ssa-pre.c (changed_blocks): Make global ...
246 (compute_antic): ... local here. Move and fix worklist
247 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
248 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
249 worklist handling, dump when ANTIC_IN changed.
250 (compute_partial_antic_aux): Remove worklist handling.
251 (init_pre): Do not compute post dominators. Add a comment about
252 the CFG order chosen.
253 (fini_pre): Do not free post dominators.
255 2016-04-13 Martin Sebor <msebor@redhat.com>
260 * doc/extend.texi (Variable Length): Document C++ specifics.
262 2016-04-13 Jakub Jelinek <jakub@redhat.com>
265 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
266 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
267 eh edges have been purged.
270 * tree-sra.c (create_access_replacement,
271 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
273 * tree-pretty-print.c (dump_fancy_name): New function.
274 (dump_decl_name, dump_generic_node): Use it.
276 2016-04-13 Jason Merrill <jason@redhat.com>
278 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
279 * expr.c (expand_expr_real_1): Likewise.
281 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
283 * config/i386/i386.md (kunpckhi): Swap operands.
284 (kunpcksi): Likewise.
285 (kunpckdi): Likewise.
286 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
287 (vec_pack_trunc_<mode>): Likewise.
289 2016-04-13 Jakub Jelinek <jakub@redhat.com>
292 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
295 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
296 gimplification turns some element into non-constant.
299 * rtl.h (convert_memory_address_addr_space_1): New prototype.
300 * explow.c (convert_memory_address_addr_space_1): No longer static,
301 add NO_EMIT argument and don't call convert_modes if true, pass
302 it down recursively, remove break after return.
303 (convert_memory_address_addr_space): Adjust caller.
304 * simplify-rtx.c (simplify_unary_operation_1): Call
305 convert_memory_address_addr_space_1 instead of convert_memory_address,
306 if it returns NULL, don't simplify.
308 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
311 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
313 2016-04-12 Jakub Jelinek <jakub@redhat.com>
315 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
316 Bump the upper SIMDLEN limits, so that if the return type or
317 characteristic type if the return type is void can be passed in
318 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
321 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
324 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
325 Do not use "=" constraint on an input constraint.
326 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
327 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
328 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
329 generates (neg (abs ...)) instead of (abs ...).
331 2016-04-12 Jakub Jelinek <jakub@redhat.com>
333 PR rtl-optimization/70596
334 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
335 just invalidate LRA data and reset them. Adjust dump wording.
337 2016-04-12 Martin Liska <mliska@suse.cz>
340 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
342 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
344 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
345 max_loop_iterations_int.
346 (tree_unswitch_outer_loop): Likewise.
347 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
348 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
350 2016-04-12 Tom de Vries <tom@codesourcery.com>
352 PR tree-optimization/68756
353 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
356 2016-04-12 Jakub Jelinek <jakub@redhat.com>
358 PR tree-optimization/70602
359 * tree-sra.c (generate_subtree_copies): Don't write anything into
362 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
363 regardless whether there are depend clauses or not.
365 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
368 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
369 target attribute and pragma from changing the -mfloat128
370 and -mfloat128-hardware options.
372 * doc/extend.texi (Additional Floating Types): Document PowerPC
373 __float128 restrictions.
375 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
378 * config/aarch64/driver-aarch64.c
379 (aarch64_get_extension_string_for_isa_flags): New.
380 (arch_extension): Rename to...
381 (aarch64_arch_extension): ...This.
382 (ext_to_feat_string): Rename to...
383 (aarch64_extensions): ...This.
384 (aarch64_core_data): Keep track of architecture extension flags.
385 (cpu_data): Rename to...
386 (aarch64_cpu_data): ...This.
387 (aarch64_arch_driver_info): Keep track of architecture extension
389 (get_arch_name_from_id): Rename to...
390 (get_arch_from_id): ...This, change return type.
391 (host_detect_local_cpu): Update and reformat for renames, handle
392 extensions through common infrastructure.
394 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
397 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
398 track of a canonical flag name.
399 (all_extensions): Likewise.
400 (arch_to_arch_name): Also track extension flags enabled by the arch.
401 (all_architectures): Likewise.
402 (aarch64_parse_extension): Move to here.
403 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
405 (aarch64_rewrite_selected_cpu): Update for above change.
406 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
407 are handled, such that the single explicit value enabled by an
408 extension is kept seperate from the implicit values it also enables.
409 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
411 (aarch64_parse_extension): New.
412 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
413 here to config/aarch64/aarch64-protos.h.
414 (aarch64_parse_extension): Move from here to
415 common/config/aarch64/aarch64-common.c.
416 (aarch64_option_print): Update.
417 (aarch64_declare_function_name): Likewise.
418 (aarch64_start_file): Likewise.
419 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
420 the canonical flag for extensions.
421 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
424 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
426 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
429 2016-04-09 Tom de Vries <tom@codesourcery.com>
431 PR tree-optimization/68953
432 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
433 first to last subscript.
435 2016-04-09 Jakub Jelinek <jakub@redhat.com>
437 PR tree-optimization/70586
438 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
441 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
445 PR tree-optimization/70373
449 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
450 clauses for acc parallel reductions as necessary. Error on those
452 * omp-low.c (scan_sharing_clauses): Don't install variables which
453 are used in acc parallel reductions.
454 (lower_rec_input_clauses): Remove dead code.
455 (lower_oacc_reductions): Add support for reference reductions.
456 (lower_reduction_clauses): Remove dead code.
457 (lower_omp_target): Don't remap variables appearing in acc parallel
459 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
461 2016-04-08 Jakub Jelinek <jakub@redhat.com>
464 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
465 with multiple SSA_NAME defs, force the outputs other than first
466 to be live before calling live_track_process_def on each output.
468 PR rtl-optimization/70574
469 * fwprop.c (forward_propagate_and_simplify): Don't add
470 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
471 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
472 paradoxical subregs within *loc.
474 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
476 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
477 -ftree-parallelize-loops={0,1}.
478 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
479 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
480 * config/ia64/hpux.h (LIB_SPEC): Likewise.
481 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
482 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
484 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
487 * asan.c (instrument_derefs): If we get unknown location, extract it
489 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
491 2016-04-08 Tom de Vries <tom@codesourcery.com>
493 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
494 implicit firstprivate clause.
496 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
499 * config/arm/thumb2.md (tst + branch-> lsls + branch
500 peephole below *orsi_not_shiftsi_si): Require that condition
501 register is dead after the peephole.
502 (second peephole after the above): Likewise.
504 2016-04-08 Alan Modra <amodra@gmail.com>
507 * builtins.c (fold_builtin_classify): For IBM extended precision,
508 look at just the high-order double to test for NaN.
509 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
510 test just the high double for Inf but both doubles for subnormal
513 2016-04-07 Jakub Jelinek <jakub@redhat.com>
515 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
516 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
517 node->simdclone->mask_mode != VOIDmode masks.
518 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
519 earlier, use it instead of node->simdclone.
520 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
521 Set clonei->mask_mode.
523 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
526 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
527 Pass it through to cp_parser_already_scoped_statement.
528 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
529 it through to cp_parser_statement.
530 (cp_parser_statement): Pass IF_P through to
531 cp_parser_iteration_statement.
532 (cp_parser_pragma): Adjust call to
533 cp_parser_iteration_statement.
535 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
538 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
539 resolve a future -Wparentheses warning.
540 * omp-low.c (scan_sharing_clauses): Likewise.
541 * tree-parloops.c (eliminate_local_variables): Likewise.
543 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
545 PR rtl-optimization/70398
546 * lra-constraints.c (process_address_1): Check zero scale and code
547 for reloading with zero scale.
549 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
551 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
552 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
554 2016-04-06 Jakub Jelinek <jakub@redhat.com>
556 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
557 Add support for AVX512F clones, include them by default for
558 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
559 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
563 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
564 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
565 firstprivate clauses.
566 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
567 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
568 (lower_omp_target): Set TREE_NO_WARNING for
569 non-addressable possibly uninitialized vars which are copied into
570 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
572 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
574 * config/pa/predicates.md (integer_store_memory_operand): Accept
575 REG+D operands with a large offset when reload_in_progress is true.
576 (floating_point_store_memory_operand): Likewise.
578 2016-04-05 Jakub Jelinek <jakub@redhat.com>
581 * match.pd (nested int casts): Limit to GIMPLE.
583 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
586 * ipa-devirt.c (maybe_record_node): Fix comment; use
587 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
589 2016-04-05 Jakub Jelinek <jakub@redhat.com>
591 PR rtl-optimization/70542
592 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
593 if there are any uses other than insn or debug insns.
595 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
596 Jakub Jelinek <jakub@redhat.com>
598 PR tree-optimization/70509
599 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
600 Shift HOST_WIDE_INT_1U instead of 1.
602 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
604 PR tree-optimization/70509
605 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
606 of the vector base type for index.
608 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
611 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
613 2016-04-05 Richard Biener <rguenther@suse.de>
615 PR tree-optimization/70526
616 * tree-sra.c (build_ref_for_offset): Use prev_base to
617 extract the alias pointer type.
619 2016-04-05 Richard Biener <rguenther@suse.de>
621 * dse.c (struct store_info): Remove alias_set member.
622 (struct read_info_type): Likewise.
623 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
624 spill_deleted, clear_alias_set_lookup): Remove.
625 (get_group_info): Remove dead base == NULL_RTX case.
626 (dse_step0): Remove initialization of removed variables.
627 (delete_dead_store_insn): Reomve alias set dumping.
628 (free_read_records): Remove alias_set handling.
629 (canon_address): Remove alias_set_out parameter.
630 (record_store): Remove spill_alias_set, it's always zero.
631 (check_mem_read_rtx): Likewise.
632 (dse_step2): Rename from ...
633 (dse_step2_nospill): ... this. Adjust.
634 (scan_stores): Rename from ...
635 (scan_stores_nospill): ... this.
636 (scan_reads): Rename from ...
637 (scan_reads_nospill): ... this.
638 (scan_stores_spill, scan_reads_spill): Remove.
639 (dse_step3_scan): Remove for_spills argument which is always false.
640 (dse_step3): Likewise.
641 (dse_step5): Rename from ...
642 (dse_step5_nospill): ... this. Remove alias_set handling.
643 (rest_of_handle_dse): Adjust.
645 2016-04-05 Jakub Jelinek <jakub@redhat.com>
648 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
649 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
650 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
651 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
653 2016-04-05 Richard Biener <rguenther@suse.de>
656 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
657 non-register type temporaries into SSA.
659 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
662 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
663 calls when sanitizing.
664 (possible_polymorphic_call_target_p): Fix formatting.
666 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
667 Jakub Jelinek <jakub@redhat.com>
670 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
671 to ensure a call statement is compatible with a built-in's
673 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
676 2016-04-04 Richard Biener <rguenther@suse.de>
678 PR rtl-optimization/70484
679 * rtl.h (canon_output_dependence): Declare.
680 * alias.c (canon_output_dependence): New function.
681 * dse.c (record_store): Use canon_output_dependence rather
682 than canon_true_dependence.
684 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
687 * cgraph.h (symtab_node::copy_visibility_from): New function.
688 * symtab.c (symtab_node::copy_visibility_from): New function.
689 * ipa-visibility.c (optimize_weakref): New function.
690 (function_and_variable_visibility): Use it.
692 2016-04-04 Martin Liska <mliska@suse.cz>
695 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
696 value that is really in range handled by SBR instruction.
697 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
698 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
699 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
701 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
705 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
706 set, but not for SP_REG operands.
708 2016-04-02 Martin Sebor <msebor@redhat.com>
711 * fold-const.c (maybe_nonzero_address): New function.
712 (fold_comparison): Call it. Fold equality and relational
713 expressions involving null pointers.
714 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
716 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
718 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
719 the "Y" constraint (scalar FP 0.0 immediate).
721 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
722 Add the "const_double" to the list of operand constraints.
724 2016-04-01 Jakub Jelinek <jakub@redhat.com>
726 PR rtl-optimization/70467
727 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
728 If low word of the last operand is 0, just emit addition/subtraction
731 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
734 * config/s390/s390.c (s390_expand_insv): Check for everything
735 constant instead of just VOIDmode stuff.
737 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
740 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
742 2016-04-01 Nathan Sidwell <nathan@acm.org>
744 * tree.def (TRY_CATCH_EXPR): Correct documentation.
746 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
748 PR rtl-optimization/70461
749 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
752 2016-03-31 Martin Liska <mliska@suse.cz>
755 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
756 a tree value or an immediate integer value to a buffer
757 that is eventually copied to a BRIG section.
758 (emit_immediate_operand): Call the function here.
759 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
760 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
761 of class' fields that are removed.
762 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
763 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
764 m_brig_repr_size fields.
766 2016-03-31 Martin Liska <mliska@suse.cz>
769 * hsa-gen.c (hsa_function_representation::update_dominance): New
771 (convert_addr_to_flat_segment): Likewise.
772 (gen_hsa_memory_set): New alignment argument.
773 (gen_hsa_ctor_assignment): Likewise.
774 (gen_hsa_insns_for_single_assignment): Provide alignment
775 to gen_hsa_ctor_assignment.
776 (gen_hsa_insns_for_direct_call): Add new argument.
777 (expand_lhs_of_string_op): New function.
778 (expand_string_operation_builtin): Likewise.
779 (expand_memory_copy): New function.
780 (expand_memory_set): New function.
781 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
782 (convert_switch_statements): Change signature.
783 (generate_hsa): Use a return value of the function.
784 (pass_gen_hsail::execute): Do not call
785 convert_switch_statements here.
786 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
787 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
788 (hsa_function_representation::update_dominance): New function.
790 2016-03-31 Martin Liska <mliska@suse.cz>
793 * hsa-brig.c (emit_directive_variable): Emit alignment
794 according to hsa_symbol::m_align.
795 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
796 (dump_hsa_symbol): Dump alignment of HSA symbols.
797 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
798 (gen_hsa_addr_with_align): New function.
799 (hsa_bitmemref_alignment): Use newly added function.
800 (gen_hsa_insns_for_load): Likewise.
801 (gen_hsa_insns_for_store): Likewise.
802 (gen_hsa_memory_copy): New argument added.
803 (gen_hsa_insns_for_single_assignment): Respect
804 alignment for assignments processed via gen_hsa_memory_copy.
805 (gen_hsa_insns_for_direct_call): Likewise.
806 (gen_hsa_insns_for_return): Likewise.
807 (gen_function_def_parameters): Set default alignment.
808 * hsa.c (hsa_object_alignment): New function.
809 (hsa_byte_alignment): Pasted function.
810 * hsa.h (hsa_symbol::m_align): New field.
812 2016-03-31 Bin Cheng <bin.cheng@arm.com>
814 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
815 scratch field for goto case.
817 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
819 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
821 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
824 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
825 (scalar_chain::convert_insn): Call convert_op for reg
826 moves to handle undefined registers.
828 2016-03-31 Nathan Sidwell <nathan@acm.org>
831 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
832 Assert we don't want to move backwards.
834 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
837 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
839 2016-03-31 Jakub Jelinek <jakub@redhat.com>
841 PR rtl-optimization/70460
842 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
843 with operand from REG_LABEL_OPERAND, instead substitute
844 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
845 Don't do anything for REG_NON_LOCAL_GOTO jumps.
847 2016-03-31 Martin Liska <mliska@suse.cz>
849 * passes.c (execute_one_pass): Do not call
850 todo_after for a discarded function.
852 2016-03-31 Bin Cheng <bin.cheng@arm.com>
854 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
855 (no_cost, infinite_cost): Initialize the new field.
856 (get_computation_cost_at): Record setup cost.
857 (determine_use_iv_cost_address): Skip cost computation for sub
858 uses if we can estimate it without losing accuracy.
860 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
862 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
864 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
865 max_loop_iterations_int.
866 (tree_unswitch_outer_loop): Likewise.
867 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
868 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
870 2016-03-30 Richard Biener <rguenther@suse.de>
873 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
875 2016-03-30 Jakub Jelinek <jakub@redhat.com>
878 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
879 in gen_blendm expander.
881 2016-03-30 Nick Clifton <nickc@redhat.com>
884 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
885 case where we are already provided with an SImode SUBREG.
887 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
890 * config/i386/i386.c (ix86_expand_epilogue): Properly check
891 conflict between DRAP register and __builtin_eh_return.
893 2016-03-30 Michael Matz <matz@suse.de>
894 Richard Biener <rguenther@suse.de>
897 * ipa-polymorphic-call.c (struct type_change_info): Change
898 speculative to an unsigned allowing to limit the work we do.
899 (csftc_abort_walking_p): New inline function..
900 (check_stmt_for_type_change): Limit the number of may-defs
901 skipped for speculative devirtualization to
902 max-speculative-devirt-maydefs.
903 * params.def (max-speculative-devirt-maydefs): New param.
904 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
906 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
909 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
912 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
914 PR tree-optimization/59124
915 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
916 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
918 2016-03-29 Jeff Law <law@redhat.com>
920 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
922 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
924 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
927 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
929 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
930 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
931 gcrt0.o if linking dynamically.
933 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
936 * ipa-devirt.c (methods_equal_p): New function.
937 (compare_virtual_tables): Use it.
938 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
939 * cgraphclones.c (clone_function_name_1): Use
940 symbol_table::symbol_suffix_separator.
941 * coverage.c (build_var): Likewise.
942 * symtab.c (symbol_table::symbol_suffix_separator): New.
944 2016-03-29 Jakub Jelinek <jakub@redhat.com>
946 PR rtl-optimization/70429
947 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
948 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
952 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
954 PR tree-optimization/70405
955 * ssa-iterators.h (num_imm_uses): Add missing braces.
957 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
959 PR rtl-optimization/68695
960 * ira-color.c (allocno_copy_cost_saving): New.
961 (improve_allocation): Use it.
963 2016-03-29 Richard Henderson <rth@redhat.com>
966 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
968 2016-03-29 Richard Biener <rguenther@suse.de>
971 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
972 use alignment returned by get_pointer_alignment_1 if it is
973 bigger than BITS_PER_UNIT.
974 * builtins.c (get_pointer_alignment_1): Do not return true
975 for alignment extracted from SSA info.
977 2016-03-28 James Bowman <james.bowman@ftdichip.com>
979 * config/ft32/ft32.opt (mnodiv): New.
980 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
981 * doc/invoke.texi (FT32 Options -mnodiv): New.
983 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
986 * config/i386/i386.md (define_split, andn): Fix modes.
988 2016-03-26 Richard Biener <rguenther@suse.de>
989 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
992 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
994 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
995 as 2nd argument to cl_optimization_restore().
997 2016-03-25 Richard Henderson <rth@redhat.com>
1000 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
1001 * config/aarch64/aarch64-protos.h: Declare it.
1002 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
1004 2016-03-25 Alan Modra <amodra@gmail.com>
1007 * config/rs6000/constraints.md (j): Simplify.
1008 * config/rs6000/predicates.md (easy_fp_constant): Exclude
1010 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
1011 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
1012 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
1013 in all constraint alternatives.
1014 (movtd_64bit_nodm): Delete "j" constraint alternative.
1016 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
1018 * tree-ssa-propagate.c: Enhance docs for
1019 SSA_PROP_NOT_INTERESTING.
1021 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
1023 * doc/extend.texi: Fix typo in documentation to pure attribute.
1025 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
1028 * config/pa/pa.md (bswapdi2): Use a scratch register.
1030 2016-03-24 Richard Henderson <rth@redhat.com>
1033 * fold-const.c (extract_muldiv_1): Correct test for multiplication
1036 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
1038 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
1039 using ix86_expand_binary_operator instead of gen_andsi3.
1041 2016-03-24 Richard Biener <rguenther@suse.de>
1043 PR tree-optimization/70396
1044 * tree-vect-stmts.c (vectorizable_comparison): Use
1045 get_vectype_for_scalar_type.
1047 2016-03-24 Richard Biener <rguenther@suse.de>
1050 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
1051 with register bases.
1053 2016-03-24 Richard Biener <rguenther@suse.de>
1055 PR tree-optimization/70372
1056 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
1057 build_all_ones_cst to also handle vector types correctly.
1059 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1062 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
1065 2016-03-23 Marek Polacek <polacek@redhat.com>
1068 * doc/invoke.texi: Document -Wignored-attributes.
1070 2016-03-23 Bin Cheng <bin.cheng@arm.com>
1072 PR tree-optimization/69042
1073 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
1074 parameter from 30 to 40.
1076 2016-03-23 Bin Cheng <bin.cheng@arm.com>
1078 PR tree-optimization/69042
1079 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
1080 for use with constant offset stripped in base.
1082 2016-03-23 Richard Biener <rguenther@suse.de>
1085 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
1086 mode compatibility check.
1087 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1089 2016-03-23 Jeff Law <law@redhat.com>
1091 PR tree-optimization/64058
1092 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
1094 (struct ssa_conflicts): Move up earlier in the file.
1095 (conflicts_, var_map_): New static variables.
1096 (initialize_conflict_count): New function to initialize the
1097 CONFLICT_COUNT field for each conflict pair.
1098 (compare_pairs): Lazily initialize the conflict count and use it
1099 as the first tie-breaker.
1100 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
1101 and wipe conflicts_ and map_ around the call to qsort. Remove
1102 special case for 2 coalesce pairs.
1103 * bitmap.c (bitmap_count_unique_bits): New function.
1104 (bitmap_count_bits_in_word): New function, extracted from
1106 (bitmap_count_bits): Use bitmap_count_bits_in_word.
1107 * bitmap.h (bitmap_count_unique_bits): Declare it.
1109 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1112 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
1113 transparent alias chain for decl assembler name.
1114 * config/sol2.c (solaris_assemble_visibility): Likewise.
1116 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1118 * config/arm/arm1020e.md (1020call_op): Reduce reservation
1120 (v10_fdivs): Likewise.
1121 (v10_fdivd): Likewise.
1123 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1126 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
1127 to not call fclose twice on file.
1129 2016-03-23 Jakub Jelinek <jakub@redhat.com>
1131 PR tree-optimization/70354
1132 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
1133 oprnd0 is wider than oprnd1 and there is a cast from the wider
1134 type to oprnd1, mask it with the mask of the narrower type.
1137 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
1138 Optimize TARGET_STV splitters, if high or low word of last argument
1141 2016-03-22 Jeff Law <law@redhat.com>
1144 tree-ssa-threadbackward.c
1145 (fsm_find_control_statement_thread_paths): Correctly distinguish
1146 between old style jump threads vs FSM jump threads.
1148 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
1151 * config/i386/i386.c (scalar_chain::convert_op): Support
1152 uninitialized register usage case.
1154 2016-03-22 Richard Biener <rguenther@suse.de>
1157 * genmatch.c (gen_transform): Adjust last parameter to a three-state
1159 (capture::gen_transform): ... to change behavior when substituting
1160 a condition into cond or not-cond expr context.
1161 (dt_simplify::gen_1): Adjust.
1162 * gimple-match-head.c: Include gimplify.h for unshare_expr.
1163 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
1164 last change and instead change to
1165 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
1166 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1168 2016-03-22 Anthony Green <green@moxielogic.com>
1170 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
1171 issue for moxiebox targets.
1172 (CC1PLUS_SPEC): Ditto.
1174 2016-03-22 Richard Biener <rguenther@suse.de>
1177 * fold-const.c (extract_muldiv_1): Properly perform multiplication
1180 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
1182 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
1184 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
1187 * config/i386/i386.c (def_builtin): Handle
1188 OPTION_MASK_ISA_AVX512VL to be and-ed with other
1190 (const struct builtin_description bdesc_special_args[]):
1191 Remove duplicate ISA bits.
1193 2016-03-22 Jakub Jelinek <jakub@redhat.com>
1196 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
1197 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
1198 in a way that works also for AVX512BW.
1201 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
1202 instead of source if operands[1] is xmm16 and above and
1203 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
1204 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
1207 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
1208 on assign if (*from_p) is a comparison, set it to
1209 TREE_NO_WARNING (*from_p).
1211 2016-03-21 Jakub Jelinek <jakub@redhat.com>
1214 * lra.c (restore_scratches): Ignore deleted insns.
1216 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
1217 Jakub Jelinek <jakub@redhat.com>
1219 PR tree-optimization/70317
1220 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
1223 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
1226 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
1227 of ix86_expand_move.
1229 (movti): Use general_operand for operand 1 predicate.
1231 2016-03-21 Martin Liska <mliska@suse.cz>
1233 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
1235 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
1237 2016-03-21 Martin Liska <mliska@suse.cz>
1240 * ipa-icf.c (sem_function::parse): Skip static
1241 constructors and destructors.
1243 2016-03-21 Jakub Jelinek <jakub@redhat.com>
1246 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
1247 function-like macro, peek following token(s) if it is followed
1248 by CPP_OPEN_PAREN token with optional padding in between, and
1249 if not, don't treat it like a macro.
1251 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
1252 Alexander Monakov <amonakov@ispras.ru>
1254 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
1255 for the stabs debug format.
1257 2016-03-21 Richard Biener <rguenther@suse.de>
1259 PR tree-optimization/70310
1260 * tree-vect-generic.c (expand_vector_condition): Fold the built
1263 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
1266 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
1267 Block third alternative for AVX-512VL target,
1269 2016-03-21 Martin Liska <mliska@suse.cz>
1272 * hsa-brig.c (emit_function_directives): Mark unemitted
1273 global variables for emission.
1274 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
1275 (get_symbol_for_decl): Likewise.
1276 * hsa.h (struct hsa_symbol): New flag.
1278 2016-03-21 Richard Biener <rguenther@suse.de>
1280 PR tree-optimization/70288
1281 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
1282 we do not estimate unsimplified all-constant conditionals or
1283 switches as optimized away.
1285 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
1287 PR rtl-optimization/69102
1288 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
1289 when we have a readonly dependency context.
1291 2016-03-18 Jeff Law <law@redhat.com>
1293 PR rtl-optimization/70263
1294 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
1295 (update_equiv_regs): When trying to move a store to after the insn
1296 that sets the source of the store, make sure the store occurs after
1297 the insn that sets the source of the store. When successful note
1298 the REG_EQUIV note created in the dump file.
1300 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
1301 Bernd Schmidt <bschmidt@redhat.com>
1303 * doc/extend.texi: Document more potential problems with basic asms.
1305 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
1307 PR rtl-optimization/70278
1308 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
1311 2016-03-18 Jason Merrill <jason@redhat.com>
1313 * calls.c (load_register_parameters): Fix zero size sibcall logic.
1315 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
1317 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
1318 values to 128b regs.
1320 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1322 PR tree-optimization/70252
1323 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
1324 boolean vector has a proper number of elements.
1325 (supportable_narrowing_operation): Likewise.
1327 2016-03-18 Tom de Vries <tom@codesourcery.com>
1330 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
1332 2016-03-18 Jakub Jelinek <jakub@redhat.com>
1334 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
1335 instead of replace_rtx for DEBUG_INSNs.
1337 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1339 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
1340 load type reservations.
1342 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
1345 * config/pa/constraints.md: Revert 2015-02-13 change. Use
1346 define_constraint for "Q" and "T" constraints.
1348 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
1350 Tweak the pipeline model for Exynos M1
1352 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
1355 2016-03-17 David Malcolm <dmalcolm@redhat.com>
1358 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
1359 where one or both locations aren't within a line_map.
1361 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
1364 * opts.c (finish_options): Don't set flag_pie to the default if
1365 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
1368 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
1370 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
1371 true as ALL_REGS argument to replace_rtx.
1373 2016-03-17 Richard Biener <rguenther@suse.de>
1376 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
1379 2016-03-17 Jakub Jelinek <jakub@redhat.com>
1382 * rtl.h (replace_rtx): Add ALL_REGS argument.
1383 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
1384 equality and assert mode is the same, instead of just rtx pointer
1386 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
1387 true as ALL_REGS argument to replace_rtx.
1389 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
1391 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
1392 for boolean vector with vector mode only.
1393 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
1395 2016-03-17 Nick Clifton <nickc@redhat.com>
1398 * config/rx/rx.c (rx_print_integer): Print negative constants in
1401 2016-03-17 Jakub Jelinek <jakub@redhat.com>
1404 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
1406 2016-03-16 Richard Henderson <rth@redhat.com>
1407 Richard Biener <rguenth@suse.de>
1412 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
1413 first operand as is_gimple_condexpr.
1418 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
1419 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
1420 Do not gimplify the result.
1421 (do_unop): Adjust call to tree_vec_extract.
1422 (do_binop): Likewise.
1423 (do_compare): Likewise.
1424 (do_plus_minus): Likewise.
1425 (do_negate): Likewise.
1426 (expand_vector_condition): Likewise.
1427 (do_cond): Likewise.
1429 2016-03-16 Richard Henderson <rth@redhat.com>
1432 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
1433 (aarch64_classify_address): Use it.
1434 (aarch64_legitimize_address): Force all subexpressions of PLUS
1435 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
1437 2016-03-16 Jakub Jelinek <jakub@redhat.com>
1438 Richard Biener <rguenth@suse.de>
1441 * rtlanal.c (replace_rtx): For REG, if from is a REG,
1442 return to even if only REGNO is equal, and assert
1445 2016-03-11 Jeff Law <law@redhat.com>
1447 PR rtl-optimization/70224
1448 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
1450 2016-03-16 Richard Henderson <rth@redhat.com>
1453 * function.h (struct function): Add has_forced_label_in_static.
1454 * gimplify.c (force_labels_r): Set it.
1455 * lto-streamer-in.c (input_struct_function_base): Read it.
1456 * lto-streamer-out.c (output_struct_function_base): Write it.
1457 * tree-inline.c (has_label_address_in_static_1): Remove.
1458 (copy_forbidden): Remove fndecl parameter; test
1459 has_forced_label_in_static.
1460 (inline_forbidden_p): Update call to copy_forbidden.
1461 (tree_versionable_function_p): Likewise.
1462 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
1463 (chkp_versioning): Likewise.
1464 * tree-inline.h (copy_forbidden): Update decl.
1466 2016-03-16 Marek Polacek <polacek@redhat.com>
1469 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
1470 function being thunked if the result type doesn't have fixed size.
1471 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
1472 doesn't have fixed size.
1474 2016-03-16 Bin Cheng <bin.cheng@arm.com>
1476 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
1477 reporting malformed loop nest.
1479 2016-03-16 Tom de Vries <tom@codesourcery.com>
1482 * ipa-devirt.c (possible_polymorphic_call_targets): Move
1483 nodes.length () == 1 test to before first nodes[0] access.
1485 2016-03-16 Tom de Vries <tom@codesourcery.com>
1487 PR tree-optimization/68715
1488 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
1491 2016-03-16 Tom de Vries <tom@codesourcery.com>
1493 PR tree-optimization/68809
1494 * graphite-scop-detection.c (same_close_phi_node): Test if result types
1497 2016-03-16 Carlos O'Donell <carlos@redhat.com>
1498 Sandra Loosemore <sandra@codesourcery.com>
1500 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
1501 on leaf attribute. Mention ELF interposition problems.
1503 2016-03-16 Alan Modra <amodra@gmail.com>
1505 PR rtl-optimization/69195
1506 PR rtl-optimization/47992
1507 * ira.c (indirect_jump_optimize): Ignore artificial defs.
1510 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
1513 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
1515 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1517 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
1519 2016-03-15 Jakub Jelinek <jakub@redhat.com>
1521 PR rtl-optimization/70222
1522 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
1523 optimization if mode is different from result_mode, queue up masking
1524 of the result in outer_op. Formatting fix.
1527 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
1530 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1532 PR rtl-optimization/69032
1533 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
1534 looping backwards over basic block insns.
1536 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1539 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
1540 to non-speculative when propagating trap bits.
1542 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1544 PR rtl-optimization/63384
1545 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
1548 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
1551 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
1552 factored out from ...
1553 (sched_analyze_insn): ... here.
1554 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
1555 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
1556 get_implicit_reg_pending_clobbers in it.
1557 (setup_id_reg_sets): Use setup_id_implicit_regs.
1558 (deps_init_id): Ditto.
1560 2016-03-15 Tom de Vries <tom@codesourcery.com>
1563 * cgraph.c (cgraph_node::get_body): Save, reset and restore
1565 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
1566 execute_function_dump.
1567 (execute_one_pass): Don't dump function if it will be dumped after ipa
1570 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
1572 * genrecog.c (match_pattern_2): If pred is NULL don't call
1573 safe_predicate_mode on it.
1575 2016-03-14 Jakub Jelinek <jakub@redhat.com>
1578 * lra-constraints.c (delete_move_and_clobber): Change assertion
1579 to also allow dregno == 0.
1581 2016-03-14 Richard Henderson <rth@redhat.com>
1584 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
1585 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
1586 (reassociate_bb): Use optimize_vec_cond_expr; avoid
1587 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
1590 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
1593 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
1595 (lra_create_live_ranges_1): initialize hard register biggest_mode to
1597 * lra-constraints.c (split_reg): For hard regs, try to find the
1598 biggest single-register mode used in the function.
1600 2016-03-14 Richard Biener <rguenther@suse.de>
1602 PR tree-optimization/56365
1603 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
1604 constants to compare against.
1606 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
1609 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
1610 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
1611 (define_split for the GPR case): Use int_reg_operand instead of
1612 gpc_reg_operand for the output.
1614 2016-03-14 Tom de Vries <tom@codesourcery.com>
1616 PR tree-optimization/70045
1617 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
1618 create_empty_if_region_on_edge argument.
1620 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
1622 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
1623 (STACK_CHECK_PROTECT): Likewise.
1624 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1625 (STACK_CHECK_PROTECT): Likewise.
1626 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
1627 (STACK_CHECK_PROTECT): Likewise.
1628 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
1629 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1630 (STACK_CHECK_PROTECT): Likewise.
1632 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
1634 PR rtl-optimization/69307
1635 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
1636 registers in modes that span more than one register.
1638 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
1641 * lra-constraints.c (delete_move_and_clobber): New.
1642 (remove_inheritance_pseudos): Use it.
1644 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
1647 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
1648 the libcall is LCT_THROW.
1649 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
1650 for the checking routine.
1652 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1655 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
1656 optimization if we have direct move.
1657 (roundu32<mode>2_fprs): Likewise.
1659 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
1662 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
1664 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
1665 Arguments swapped. All callers changed. Take reg_renumber into
1666 account, and Calculate and compare register ranges for hard regs.
1668 2016-03-11 Jeff Law <law@redhat.com>
1670 PR tree-optimization/70190
1671 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1672 Handle cases where we can not extract the taken edge, even though we
1673 found a constant value.
1675 PR tree-optimization/64058
1676 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
1677 (num_coalesce_pairs): Move up earlier in file.
1678 (find_coalesce_pair): Initialize the INDEX field for each pair
1680 (compare_pairs): No longer sort on the elements in each pair.
1681 Instead break ties with the index of the coalesce pair.
1683 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1686 * config/aarch64/aarch64-protos.h
1687 (aarch64_save_restore_target_globals): New prototype.
1688 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
1689 Call the above when popping pragma.
1690 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
1692 (aarch64_set_current_function): Rewrite using the above.
1694 2016-03-11 Jakub Jelinek <jakub@redhat.com>
1696 PR tree-optimization/70177
1697 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
1698 (extract_ops_from_tree): ... this. In the 2 argument
1699 overload remove _1 suffix.
1700 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
1701 (extract_ops_from_tree): ... this.
1702 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
1704 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1705 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
1706 extract_ops_from_tree instead of 2 operand one.
1708 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
1710 PR tree-optimization/70013
1711 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
1712 for constant-pool entries.
1714 2016-03-11 Jakub Jelinek <jakub@redhat.com>
1716 PR rtl-optimization/70174
1717 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
1718 followed by gen_lowpart on force_reg instead of just gen_lowpart.
1720 PR tree-optimization/70169
1721 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
1722 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
1725 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1726 Jakub Jelinek <jakub@redhat.com>
1729 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
1730 of uninitialized values.
1732 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1734 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
1736 ("*trunctddd2"): New pattern definition.
1737 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
1740 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1742 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
1743 definitions for BFP and DFP rounding modes.
1744 ("fixuns_truncdddi2", "fixuns_trunctddi2")
1745 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
1746 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
1747 ("fix_trunctf<mode>2"): Use the new constants instead of magic
1750 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1752 * config/s390/constraints.md: Adjust comment.
1753 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
1754 s390_decompose_addrstyle_without_index.
1755 * config/s390/predicates.md (shift_count_or_setmem_operand):
1756 Rename to setmem_operand.
1757 * config/s390/s390-protos.h
1758 (s390_decompose_shift_count): Rename to
1759 s390_decompose_addrstyle_without_index.
1760 * config/s390/s390.c (s390_decompose_shift_count)
1761 (s390_mem_constraint, print_shift_count_operand)
1762 (print_operand_address, print_operand): Rename
1763 s390_decompose_shift_count to
1764 s390_decompose_addrstyle_without_index and rename
1765 print_shift_count_operand to print_addrstyle_operand troughout the
1767 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
1768 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
1769 Rename shift_count_or_setmem_operand to setmem_operand.
1770 * config/s390/vx-builtins.md ("vec_insert<mode>")
1771 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
1774 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1777 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
1778 Handle overlapping retval and newval.
1780 2016-03-10 Nick Clifton <nickc@redhat.com>
1783 * config/aarch64/aarch64.c
1784 (aarch64_override_options_after_change_1): When forcing
1785 flag_omit_frame_pointer to be true, use a special value that can
1786 be detected if this function is called again, thus preventing
1787 flag_omit_leaf_frame_pointer from being forced to be false.
1789 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1791 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
1792 Set x_flag_omit_leaf_frame_pointer when handling
1793 -momit-leaf-frame-pointer.
1795 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1798 * cgraph.c (cgraph_node::dump): Dump split_part and
1799 indirect_call_target.
1800 * cgraph.h (cgraph_node): Add indirect_call_target flag.
1801 * ipa.c (has_addr_references_p): Cleanup.
1802 (is_indirect_call_target_p): New.
1803 (walk_polymorphic_call_targets): Do not mark virtuals that may be
1804 called indirectly as local.
1805 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
1807 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1810 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1811 on cxa_pure_virtual.
1813 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1816 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
1818 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
1821 * tree.c (need_assembler_name_p): Only record main variant type names.
1823 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
1826 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
1827 Always define to 0 or 1.
1828 (TARGET_FIX_ERR_A53_843419): New macro.
1829 * config/aarch64/aarch64-elf-raw.h
1830 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
1831 * config/aarch64/aarch64-linux.h: Likewise.
1832 * config/aarch64/aarch64.c
1833 (aarch64_override_options_after_change_1): Do not default
1834 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
1836 (aarch64_attributes): Handle fix-cortex-a53-843419.
1837 (aarch64_can_inline_p): Likewise.
1838 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
1840 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
1841 Jakub Jelinek <jakub@redhat.com>
1843 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
1844 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
1845 DECL_COMMONS if flag_unconstrained_commons is set.
1846 * tree-dfa.c (get_ref_base_and_extent): Likewise.
1847 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
1848 (funconstrained-commons): Document.
1850 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
1852 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
1853 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
1855 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1857 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
1858 has a proper number of elements.
1860 2016-03-10 Alan Modra <amodra@gmail.com>
1862 PR rtl-optimization/69195
1863 PR rtl-optimization/47992
1864 * ira.c (recorded_label_ref): Delete.
1865 (update_equiv_regs): Return void.
1866 (indirect_jump_optimize): New function.
1867 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
1868 before regstat_compute_ri. Don't rebuild_jump_labels here.
1869 Delete update_regstat.
1871 2016-03-10 Richard Biener <rguenther@suse.de>
1873 PR tree-optimization/70128
1874 * tree-ssa-structalias.c (set_uids_in_ptset): Set
1875 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
1877 2016-03-09 Jakub Jelinek <jakub@redhat.com>
1879 PR tree-optimization/70152
1880 * tree-sra.c (replace_removed_params_ssa_names): Copy over
1881 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
1884 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
1885 instead of gen_sse2_loadlpd.
1886 * config/i386/sse.md (*vec_concatv2df): Rename to...
1887 (vec_concatv2df): ... this.
1889 PR tree-optimization/70127
1890 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
1892 2016-03-09 David Malcolm <dmalcolm@redhat.com>
1896 * diagnostic-show-locus.c (compatible_locations_p): New function.
1897 (layout::layout): Sanitize ranges using compatible_locations_p.
1899 2016-03-09 David Malcolm <dmalcolm@redhat.com>
1903 * diagnostic-show-locus.c (layout_range::layout_range): Replace
1904 location_range param with three const expanded_locations * and a
1906 (layout::layout): Replace call to
1907 rich_location::lazily_expand_location with get_expanded_location.
1908 Extract the range and perform location expansion here, passing
1909 the results to the layout_range ctor.
1910 * diagnostic.c (source_range::debug): Delete.
1911 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
1912 of rich_location::get_expanded_location.
1913 * gcc-rich-location.c (get_range_for_expr): Delete.
1914 (gcc_rich_location::add_expr): Reimplement to avoid the
1915 rich_location::add_range overload that took a location_range,
1916 passing a location_t instead.
1918 2016-03-09 Richard Biener <rguenther@suse.de>
1919 Jakub Jelinek <jakub@redhat.com>
1921 PR tree-optimization/70138
1922 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
1923 Also skip vect_double_reduction_def.
1925 2016-03-09 Jakub Jelinek <jakub@redhat.com>
1928 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
1929 if the operand is "m".
1931 2016-03-09 Nathan Sidwell <nathan@acm.org>
1933 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
1935 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
1937 * config/i386/i386.c (processor_target_table): Fix cost table
1938 intialization order for znver1.
1940 2016-03-08 Jakub Jelinek <jakub@redhat.com>
1942 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
1943 - becuase -> because.
1944 * ipa-reference.c (ignore_module_statics): Likewise.
1945 * cgraph.c (cgraph_node::get_body): Likewise.
1946 * ipa-inline.c (early_inliner): Likewise.
1947 * ipa-devirt.c (types_same_for_odr): Likewise.
1948 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
1949 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
1951 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1953 * tree-ssa-math-opts.c: Fix typo in comment.
1955 2016-03-08 Jakub Jelinek <jakub@redhat.com>
1958 * config/i386/i386.c (scalar_chain::make_vector_copies,
1959 scalar_chain::convert_reg): Call end_sequence in between
1960 get_insns and emit_conversion_insns rather than after both
1963 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
1966 * config/i386/i386.h (machine_function): Add
1967 pc_thunk_call_expanded flag.
1968 (ix86_pc_thunk_call_expanded): New define.
1969 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
1970 (*set_got): Rename insn pattern from set_got.
1971 (*set_got_labelled): Rename inst pattern from set_got_labelled.
1972 * config/i386/i386.c (ix86_compute_frame_layout): Use
1973 ix86_pc_thunk_call_expanded to prevent red-zone.
1975 2016-03-07 Martin Jambor <mjambor@suse.cz>
1977 * hsa.h (hsa_get_ctor_statements): Declare.
1978 (hsa_get_dtor_statements): Likewise.
1979 (hsa_get_kernel_dispatch_type): Likewise.
1980 * hsa.c (hsa_get_ctor_statements): New function.
1981 (hsa_get_dtor_statements): Likewise.
1982 (hsa_get_kernel_dispatch_type): Likewise.
1983 * hsa-brig.c (hsa_cdtor_statements): Removed.
1984 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
1985 hsa_get_dtor_statements.
1986 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
1987 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
1989 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
1991 * config/arm/arm-cores.def (cortex-r8): New.
1992 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
1993 * config/arm/arm-tune.md: Likewise.
1994 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
1996 2016-03-07 Martin Sebor <msebor@redhat.com>
1998 PR rtl-optimization/19705
1999 * doc/invoke.texi (Options That Control Optimization): Clarify
2000 -fno-branch-count-reg.
2002 2016-02-26 Richard Biener <rguenther@suse.de>
2003 Jeff Law <law@redhat.com>
2005 PR tree-optimization/69740
2006 * cfghooks.c (remove_edge): Request loop fixups if we delete
2007 an edge that might turn an irreducible loop into a natural
2009 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
2010 Move after definition of loops_state_clear.
2012 2016-03-07 Bin Cheng <bin.cheng@arm.com>
2014 PR rtl-optimization/69052
2015 * rtlanal.c (commutative_operand_precedence): Set higher precedence
2018 2016-03-07 Tom de Vries <tom@codesourcery.com>
2020 PR tree-optimization/70116
2021 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
2022 is_tm_ending stmts and ubsan/asan internal functions.
2023 (find_duplicate): Use it. Don't test is_tm_ending here.
2025 2016-03-07 Richard Biener <rguenther@suse.de>
2027 PR tree-optimization/70115
2028 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
2029 (propagate_constants_for_unrolling): Use replace_uses_by.
2031 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
2034 * omp-low.c (struct oacc_loop): Add ifns.
2035 (new_oacc_loop_raw): Initialize it.
2036 (finish_oacc_loop): Clear mask & flags if no ifns.
2037 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
2038 (oacc_loop_xform_loop): Add ifns arg & adjust.
2039 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
2041 2016-03-07 Richard Henderson <rth@redhat.com>
2044 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
2045 (insert_value_copy_on_edge): Likewise.
2047 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2049 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
2051 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2054 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
2056 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2058 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
2060 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2062 Fix sseimul type attribute.
2063 * config/i386/znver1.md
2064 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
2065 znver1_sseimul_avx256_load) : Fix the type attribute.
2066 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
2067 pipe usage and latency.
2069 2016-03-05 Jakub Jelinek <jakub@redhat.com>
2072 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
2073 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
2076 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
2079 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
2081 PR rtl-optimization/69941
2082 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
2083 the reg share its mode.
2085 2016-03-04 Jeff Law <law@redhat.com>
2087 PR tree-optimization/69196
2088 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2089 If the both SSA_NAMEs are anonymous, then consider them unassociated
2090 and include the PHI in the statement count.
2092 2016-03-05 Tom de Vries <tom@codesourcery.com>
2094 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
2095 construct in oacc routine. Check for oacc region in oacc routine.
2097 2016-03-04 Jakub Jelinek <jakub@redhat.com>
2100 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
2101 2016-02-22 changes, instead don't recurse if RECUR is already true.
2102 Don't change *dynamic_check if RECUR. Adjust recursive caller
2103 to pass true to the new argument.
2104 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
2107 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
2108 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
2110 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
2112 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
2114 PR rtl-optimization/57676
2115 * lra-assigns.c (lra_assign): Guard test for maximum iterations
2118 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2120 * tree-vect-patterns.c (search_type_for_mask): Handle
2121 comparison of booleans.
2123 2016-03-04 Jakub Jelinek <jakub@redhat.com>
2125 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
2129 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
2130 all other ops that have dw_val_class_die_ref operands,
2131 and DW_OP_GNU_entry_value.
2133 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2135 PR rtl-optimization/69904
2136 * config/arm/arm.c (arm_cannot_copy_insn_p):
2137 Return true for load-exclusive instructions.
2139 2016-03-03 Jakub Jelinek <jakub@redhat.com>
2142 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
2143 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
2144 the pattern no matter if it is used just by non-pattern, pattern
2146 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
2147 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2148 oprnd1 def_stmt is in pattern, don't look through it.
2150 2016-03-03 Marek Polacek <polacek@redhat.com>
2153 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
2155 2016-03-03 Martin Liska <mliska@suse.cz>
2157 PR tree-optimization/70043
2158 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
2159 previous statement if we see a debug statement.
2161 2016-03-03 Richard Biener <rguenther@suse.de>
2163 PR tree-optimization/55936
2164 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
2165 parameter and guard unsafe equivalence use.
2166 (vrp_evaluate_conditional_warnv_with_ops): Always use
2167 safe equivalences but not via the quadratic compare_names
2170 2016-03-03 Michael Collison <michael.collison@linaro.org>
2173 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
2174 for operand 1 to s_register_operand. Change predicate for operand
2175 2 to arm_not_immediate_operand.
2177 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
2179 * doc/tm.texi: Regenerated.
2181 2016-03-02 Richard Henderson <rth@redhat.com>
2184 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
2185 simplification when all args are positive non-fixed registers.
2187 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2189 * target.def (lra_p): Specify that new ports should use LRA.
2191 2016-03-02 Jakub Jelinek <jakub@redhat.com>
2194 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
2195 gimplify_type_sizes the type they refer to.
2196 (omp_notice_variable): Handle reference vars to VLAs.
2197 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
2198 reference to VLA decls in the second pass instead of first pass.
2200 2016-03-02 Tom de Vries <tom@codesourcery.com>
2202 PR tree-optimization/68659
2203 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
2204 new_expr == NULL_TREE.
2205 (get_new_name): Handle ADDR_EXPR.
2207 2016-03-02 Bin Cheng <bin.cheng@arm.com>
2209 PR rtl-optimization/69052
2210 * loop-invariant.c (canonicalize_address): New function.
2211 (inv_can_prop_to_addr_use): Check validity of address expression
2212 which is canonicalized by above function.
2214 2016-03-02 Alan Modra <amodra@gmail.com>
2217 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
2220 2016-03-02 Jakub Jelinek <jakub@redhat.com>
2223 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
2224 (*movhi_internal): Put mask moves from and to memory separately
2225 from moves from/to GPRs.
2227 2016-03-02 Richard Biener <rguenther@suse.de>
2229 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
2230 GENERIC expressions in GIMPLE.
2232 2016-03-02 Richard Biener <rguenther@suse.de>
2234 * config/i386/i386.c (type_natural_mode): Fix typo.
2236 2016-03-02 Nick Clifton <nickc@redhat.com>
2238 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
2240 2016-03-02 Richard Biener <rguenther@suse.de>
2241 Uros Bizjak <ubizjak@gmail.com>
2244 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
2246 2016-03-02 Richard Biener <rguenther@suse.de>
2249 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
2251 2016-03-02 Marek Polacek <polacek@redhat.com>
2254 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
2255 "is promoted to" warning.
2257 2016-03-01 DJ Delorie <dj@redhat.com>
2259 * config.gcc: Deprecate mep-*.
2261 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
2264 * lra-constraints.c (regno_val_use_in): New.
2265 (match_reload): Use it instead of regno_use_in.
2267 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
2269 PR rtl-optimization/70007
2270 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
2271 references present in REG_EQUAL notes attached to non-SET patterns.
2273 2016-03-01 Jeff Law <law@redhat.com>
2275 PR tree-optimization/69196
2276 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2277 Appropriately clamp the number of statements to copy when the
2278 thread path does not traverse a loop backedge.
2280 PR tree-optimization/69196
2281 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
2282 Do count some PHIs in the thread path against the insn count. Decrease
2283 final statement count by one as the control statement in the last
2284 block will get removed. Remove special cased code for handling PHIs
2287 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
2290 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
2291 asm dialect alternatives to explicit GOTPCREL calls.
2293 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
2296 * ira.c (do_reload): Issue warning for generic stack checking here...
2297 * reload1.c (reload): ...instead of here and streamline it.
2299 2016-03-01 Nick Clifton <nickc@redhat.com>
2301 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
2303 2016-03-01 Richard Biener <rguenther@suse.de>
2305 PR tree-optimization/69983
2306 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
2307 types and fall back to operand_equal_p.
2309 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2312 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2314 * config/s390/constraints.md ("jm8"): New constraint.
2315 * config/s390/predicates.md ("const_int_8bitset_operand"): New
2317 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
2319 ("*setmem_long<setmem_and>"): New pattern.
2320 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
2322 ("*setmem_long_31z<setmem_and>"): New pattern.
2323 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
2324 New substitution rules with the required attributes.
2327 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2330 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2332 * gensupport.c (process_substs_on_one_elem): Split loop to
2333 complete mark_operands_used_in_match_dup on all expressions in the
2335 (adjust_operands_numbers): Inline into process_substs_on_one_elem
2336 and remove function.
2338 2016-03-01 Richard Biener <rguenther@suse.de>
2341 * fold-const.c (fold_indirect_ref_1): Fix range checking for
2342 vector BIT_FIELD_REF extract.
2344 2016-03-01 Richard Biener <rguenther@suse.de>
2346 PR tree-optimization/69994
2347 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
2349 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2351 PR tree-optimization/69956
2352 * tree-vect-stmts.c (supportable_widening_operation): Support
2353 multi-step conversion of boolean vectors.
2354 (supportable_narrowing_operation): Likewise.
2356 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2358 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
2361 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2363 * config/s390/subst.md (DSI_VI): New mode iterator.
2364 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
2365 * config/s390/vector.md ("vec_set<mode>"): Move expander before
2366 the insn definition.
2367 ("*vec_set<mode>"): Change predicate and add alternative to
2368 support only either register or const_int operands as element
2370 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
2372 ("vec_extract<mode>"): New expander.
2373 ("*vec_extract<mode>"): New insn definition supporting reg and
2374 const_int element selectors.
2375 ("*vec_extract<mode>_plus"): New insn definition supporting
2376 reg+const_int element selectors.
2377 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
2378 following expander+insn definition.
2379 ("<vec_shifts_name><mode>3"): New expander.
2380 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
2382 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2384 * config/s390/s390.md ("*tabort_1"): Change predicate to
2385 nonmemory_operand. Add a second alternative to cover
2386 register as well as const int operands.
2387 ("*tabort_1_plus"): New pattern definition.
2389 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2391 * config/s390/s390.md ("*ashrdi3_cc_31")
2392 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
2393 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
2394 Merge insn definitions into ...
2395 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
2396 New pattern definition.
2397 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
2398 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
2399 ("*ashr<mode>3_and"): Merge insn definitions into ...
2400 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
2401 New pattern definition.
2402 * config/s390/subst.md ("addr_style_op_cc_subst")
2403 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
2404 substitutions patterns plus attributes.
2405 Add ashiftrt to SUBST iterator.
2407 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2409 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
2410 op2 to nonmemory_operand.
2411 ("*<shift>di3_31", "*<shift>di3_31_and"):
2412 Merge into single pattern definition ...
2413 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
2414 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
2415 pattern definition ...
2416 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
2417 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
2420 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2422 * config/s390/predicates.md (const_int_6bitset_operand): New
2424 * config/s390/s390.md: Include subst.md.
2425 ("rotl<mode>3"): New expander.
2426 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
2428 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
2429 * config/s390/subst.md: New file.
2431 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2433 * config/s390/s390.md ("op_type", "atype", "length" attributes):
2434 Remove RRR type. It doesn't really exist.
2435 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
2437 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
2438 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
2439 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
2440 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
2441 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
2442 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
2443 `enabled' attribute.
2445 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2447 * gensupport.c (process_substs_on_one_elem): Split loop to
2448 complete mark_operands_used_in_match_dup on all expressions in the
2450 (adjust_operands_numbers): Inline into process_substs_on_one_elem
2451 and remove function.
2453 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
2456 * config/sparc/sparc.c (NWORDS_UP): Rename to...
2457 (CEIL_NWORDS): ...this. Use CEIL macro.
2458 (compute_fp_layout): Adjust to above renaming.
2459 (function_arg_union_value): Likewise.
2460 (sparc_arg_partial_bytes): Likewise.
2461 (sparc_function_arg_advance): Likewise.
2463 2016-02-29 Jeff Law <law@redhat.com>
2465 PR tree-optimization/70005
2466 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
2467 where an object with a boolean range is compared against a value
2470 PR tree-optimization/69999
2471 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
2472 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
2475 2016-02-29 Richard Biener <rguenther@suse.de>
2477 PR tree-optimization/69994
2478 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
2479 (get_unary_op): Look through nop conversions.
2480 (ops_equal_values_p): New function, look for equality diregarding
2482 (eliminate_plus_minus_pair): Use ops_equal_values_p
2483 (repropagate_negates): Do not use get_unary_op here.
2485 2016-02-29 Martin Liska <mliska@suse.cz>
2487 * system.h: Poison ENABLE_CHECKING macro.
2489 2016-02-29 Martin Liska <mliska@suse.cz>
2491 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
2492 is presented in dump flags.
2493 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2494 (hsa_regalloc): Likewise.
2496 2016-02-19 Richard Biener <rguenther@suse.de>
2498 PR tree-optimization/69980
2499 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
2500 permutation of those we need to keep.
2502 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
2505 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
2506 (NWORDS_UP): ...this
2507 (init_cumulative_args): Minor tweaks.
2508 (sparc_promote_function_mode): Likewise.
2509 (scan_record_type): Delete.
2510 (traverse_record_type): New function template.
2511 (classify_data_t): New structure type.
2512 (classify_registers): New inline function.
2513 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
2514 exhausted. Instantiate traverse_record_type on classify_registers and
2515 deal with the case of a structure passed in slot #15 with no FP field
2517 (assign_data_t): New structure type.
2518 (compute_int_layout): New static function.
2519 (compute_fp_layout): Likewise.
2520 (count_registers): New inline function.
2521 (assign_int_registers): New static function.
2522 (assign_fp_registers): Likewise.
2523 (assign_registers): New inline function.
2524 (function_arg_record_value_1): Delete.
2525 (function_arg_record_value_2): Likewise.
2526 (function_arg_record_value_3): Likewise.
2527 (function_arg_record_value): Adjust to above changes. Instantiate
2528 traverse_record_type on count_registers to first count the number of
2529 registers to be used and then on assign_registers to assign them.
2530 (function_arg_union_value): Adjust to above renaming.
2531 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
2532 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
2533 case of a structure passed in slot #15
2534 (sparc_function_arg_advance): Likewise.
2535 (function_arg_padding): Minor tweak.
2537 2016-02-29 Richard Biener <rguenther@suse.de>
2539 PR tree-optimization/69720
2540 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
2541 the adjustment_def path for possibly vectorized defs.
2542 (vect_create_epilog_for_reduction): Handle vectorized initial
2545 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
2547 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
2549 2016-02-27 Jeff Law <law@redhat.com>
2552 2016-02-26 Richard Biener <rguenther@suse.de>
2553 Jeff Law <law@redhat.com>
2555 PR tree-optimization/69740
2556 * cfghooks.c (remove_edge): Request loop fixups if we delete
2557 an edge that might turn an irreducible loop into a natural
2560 2016-02-27 Jakub Jelinek <jakub@redhat.com>
2562 PR rtl-optimization/69896
2563 * tree-vect-generic.c (get_compute_type): Avoid single element
2566 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
2568 Rename the AArch64 tuning option and related functions to enable the
2569 Newton series for the reciprocal square root to reflect its
2570 approximative characteristic.
2572 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
2573 function to "aarch64_emit_approx_rsqrt".
2574 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
2575 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
2576 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
2577 (xgene1_tunings): Likewise.
2578 (use_rsqrt_p): Likewise.
2579 (aarch64_emit_swrsqrt): Use new function name.
2580 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
2581 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
2582 text explaining this option.
2583 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
2585 2016-02-26 Jakub Jelinek <jakub@redhat.com>
2588 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2589 complain about -mallow-movmisalign without -mvsx if
2590 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
2592 2016-02-26 Joel Sherrill <joel@rtems.org>
2594 * config.gcc: Add x86_64-*-rtems*.
2595 * gcc/config/i386/rtems-64.h: New file.
2597 2016-02-26 Joel Sherrill <joel@rtems.org>
2599 * config.gcc: Add aarch64-*-rtems*.
2600 * gcc/config/aarch64/rtems.h: New file.
2602 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
2605 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
2606 shift amount using %h. Add comment.
2608 2016-02-26 Richard Biener <rguenther@suse.de>
2609 Jeff Law <law@redhat.com>
2611 PR tree-optimization/69740
2612 * cfghooks.c (remove_edge): Request loop fixups if we delete
2613 an edge that might turn an irreducible loop into a natural
2616 2016-02-26 Martin Jambor <mjambor@suse.cz>
2619 * tree-sra.c (sra_modify_assign): Do not remove loads of
2620 uninitialized aggregates to SSA_NAMEs.
2622 2016-02-26 Richard Henderson <rth@redhat.com>
2625 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
2626 pseudo in case the target rtx matches the source of the left
2629 2016-02-26 Martin Jambor <mjambor@suse.cz>
2632 * hsa.h (hsa_type_packed_p): Declare.
2633 * hsa.c (hsa_type_packed_p): New function.
2634 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
2636 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
2637 * hsa-brig.c (emit_basic_insn): Likewise.
2639 2016-02-26 Martin Jambor <mjambor@suse.cz>
2642 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
2644 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
2646 2016-02-26 Martin Jambor <mjambor@suse.cz>
2648 * hsa.h (is_a_helper): New overload for hsa_op_immed for
2649 hsa_op_with_type operands.
2650 (hsa_unsigned_type_for_type): Declare.
2651 * hsa.c (hsa_unsigned_type_for_type): New function.
2652 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
2653 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
2654 the finalizer. Do not emit extra move.
2656 2016-02-26 Martin Jambor <mjambor@suse.cz>
2658 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
2659 atomic operations in private segment.
2661 2016-02-26 Martin Jambor <mjambor@suse.cz>
2663 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
2664 statements to wi->info. Also disallow omp simd constructs.
2665 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
2666 for not gridifying. Dump special string for omp_for.
2668 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2671 * config/aarch64/aarch64.c (aarch64_set_current_function):
2672 Save/restore target globals when switching to
2673 target_option_default_node.
2675 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2678 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
2679 Return 0 if !SHIFT_COUNT_TRUNCATED.
2681 2016-02-26 Jakub Jelinek <jakub@redhat.com>
2682 Eric Botcazou <ebotcazou@adacore.com>
2684 PR rtl-optimization/69891
2685 * dse.c (scan_insn): If we can't figure out memset arguments
2686 or they are non-constant, call clear_rhs_from_active_local_stores.
2688 2016-02-26 Martin Liska <mliska@suse.cz>
2690 * doc/extend.texi: Mention clog10, clog10f an clog10l
2691 in Builtins section.
2693 2016-02-26 Martin Liska <mliska@suse.cz>
2695 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
2697 (resolve_args_picking_1): Likewise.
2698 * dwarf2out.h (struct GTY): Likewise.
2700 2016-02-26 Martin Liska <mliska@suse.cz>
2702 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
2704 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
2706 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
2707 Martin Liska <mliska@suse.cz>
2709 * doc/install.texi: Mention --enable-valgrind-annotations.
2711 2016-02-26 Richard Biener <rguenther@suse.de>
2713 PR tree-optimization/69551
2714 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
2715 looking through aliases adjust DECL_PT_UID to refer to the
2716 ultimate alias target.
2718 2016-02-25 Martin Liska <mliska@suse.cz>
2721 * alloc-pool.c (after_memory_report): New variable.
2722 * alloc-pool.h (base_pool_allocator ::release): Do not use
2723 the infrastructure if after_memory_report.
2724 * toplev.c (toplev::main): Mark after memory report.
2726 2016-02-25 Richard Biener <rguenther@suse.de>
2728 PR tree-optimization/48795
2729 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
2731 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
2734 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
2735 offloading is enabled and -fopenacc or -fopenmp is specified.
2736 (CRTOFFLOADEND): Likewise.
2737 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
2738 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
2739 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
2740 (offload_objects_file_name): New static var.
2741 (tool_cleanup): Remove offload_objects_file_name file.
2742 (find_offloadbeginend): Replace with ...
2743 (find_crtoffloadtable): ... this.
2744 (run_gcc): Remove offload_argc and offload_argv.
2745 Get offload_objects_file_name from -foffload-objects=... option.
2746 Read names of object files with offload from this file, pass them to
2747 compile_images_for_offload_targets. Don't call find_offloadbeginend and
2748 don't pass offloadbegin and offloadend to the linker. Don't pass
2749 offload non-LTO files to the linker, because now they're not claimed.
2751 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
2754 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
2755 on builtin_unreachable.
2757 2016-02-25 Jakub Jelinek <jakub@redhat.com>
2759 PR rtl-optimization/69896
2760 * regcprop.c: Include cfgrtl.h.
2761 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
2762 than remembered mode, either delete it (if noop_move_p), or
2763 treat like copy_p but not noop_p instruction.
2765 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2768 * dwarf2out.c (gen_variable_die): Work around buggy LTO
2769 - allow NULL decl for Fortran DW_TAG_common_block variables.
2771 2016-02-24 Jason Merrill <jason@redhat.com>
2773 * common.opt (flifetime-dse): Add -flifetime-dse=1.
2775 2016-02-24 Richard Biener <rguenther@suse.de>
2776 Jakub Jelinek <jakub@redhat.com>
2779 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
2780 conditionally executed ops to well-defined overflow behavior.
2782 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2785 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
2788 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2790 PR rtl-optimization/69886
2791 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
2792 argument. Use it when checking validity of set instructions.
2793 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
2794 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
2796 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
2797 * store-motion.c (find_moveable_store): Update
2798 can_assign_to_reg_without_clobbers_p callsite.
2800 2016-02-24 Richard Biener <rguenther@suse.de>
2803 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
2805 (record_nonwrapping_iv): Do not fall back to the low/high bound
2806 for non-constant IV bases if the stmt is not always executed.
2808 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2810 * config/arm/arm-cores.def (cortex-a32): New entry.
2811 * config/arm/arm-tables.opt: Regenerate.
2812 * config/arm/arm-tune.md: Regenerate.
2813 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
2814 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
2815 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
2816 for -mcpu and -mtune.
2818 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2821 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
2822 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
2823 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
2824 (atomic_loaddi_1): Delete.
2825 (atomic_loaddi): Rewrite expander using the above changes.
2827 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2830 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
2833 2016-02-24 Jakub Jelinek <jakub@redhat.com>
2834 Richard Biener <rguenth@suse.de>
2837 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
2838 set_mem_attributes if tem is SSA_NAME which got expanded
2841 2016-02-24 Richard Biener <rguenther@suse.de>
2843 PR tree-optimization/69907
2844 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
2845 end of permutations for BB vectorization.
2847 2016-02-24 Christian Bruel <christian.bruel@st.com>
2849 * config/arm/arm-c.c (arm_option_override): Initialize
2850 target_option_current_node.
2851 * config/arm/arm.c (arm_pragma_target_parse): Replace
2852 build_target_option_node call by target_option_current_node.
2853 Set target_option_current_node.
2856 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
2859 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
2860 define_insn_and_split to define_insn.
2861 (zero_extendqi<mode>2_dot2): Same.
2862 (extendqi<mode>2_dot): Same.
2863 (extendqi<mode>2_dot2): Same.
2865 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
2867 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
2868 and add bypass for AES{D,E} and AESMC pairs.
2869 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
2872 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
2874 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
2875 series for reciprocal square root in Exynos M1.
2877 2016-02-23 Martin Sebor <msebor@redhat.com>
2880 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
2881 __builtin_alloca_with_align.
2883 2016-02-23 Richard Henderson <rth@redhat.com>
2885 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
2886 (ix86_register_pragmas): Remove __seg_tls.
2887 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
2888 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
2889 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
2890 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
2891 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
2892 * doc/extend.texi (__seg_tls): Remove item.
2894 2016-02-23 Richard Biener <rguenther@suse.de>
2896 * alloc-pool.h (struct allocation_object): Make id member
2897 conditional on CHECKING_P again.
2898 (get_instance): Adjust.
2899 (base_pool_allocator): Likewise.
2901 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
2903 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
2904 (parallelize_loops): In OpenACC kernels mode, set n_threads to
2906 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
2908 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
2910 2016-02-23 Richard Biener <rguenther@suse.de>
2912 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
2913 * bitmap.h (struct bitmap_usage): Likewise.
2914 (bitmap_move): Declare.
2915 * bitmap.c (register_overhead): Take size_t argument.
2916 (bitmap_move): New function.
2917 * df-problems.c (df_rd_transfer_function): Use bitmap_move
2918 to properly account overhead.
2919 * tree.c (free_node): Use tree_size.
2921 2016-02-23 Jakub Jelinek <jakub@redhat.com>
2924 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
2925 when inverting comparison.
2928 * common.opt (Wunreachable-code): Add Warning flag.
2930 2016-02-23 Mark Wielaard <mjw@redhat.com>
2931 Jakub Jelinek <jakub@redhat.com>
2934 * cgraphunit.c (check_global_declaration): Check main_input_filename
2935 and DECL_SOURCE_FILE are not NULL.
2937 2016-02-23 Martin Jambor <mjambor@suse.cz>
2939 PR tree-optimization/69666
2940 * tree-sra.c (sra_modify_assign): Do not attempt to create
2941 default_def replacements for unscalarizable regions.
2943 2016-02-20 Mark Wielaard <mjw@redhat.com>
2946 * cgraphunit.c (check_global_declaration): Check level of
2947 warn_unused_const_variable and main_input_filename.
2948 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
2949 (-Wunused-variable): For C implies -Wunused-const-variable=1.
2950 (-Wunused-const-variable): Explain levels 1 and 2.
2952 2016-02-22 Jakub Jelinek <jakub@redhat.com>
2955 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
2956 identical arguments. Formatting and spelling fixes.
2959 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
2964 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
2965 and m68k-devices.def.
2966 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
2967 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
2969 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
2971 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
2972 and HImode registers.
2974 2016-02-22 Richard Biener <rguenther@suse.de>
2976 PR tree-optimization/69882
2977 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
2978 preserve permutations present because of gaps.
2979 (vect_supported_load_permutation_p): Always continue checking
2980 permutations after vect_attempt_slp_rearrange_stmts.
2982 2016-02-22 Bin Cheng <bin.cheng@arm.com>
2984 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
2985 min_profitable_estimate, rather than min_profitable_iters.
2987 2016-02-22 Jakub Jelinek <jakub@redhat.com>
2990 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
2991 SImode for last match_operand.
2993 2016-02-22 Martin Liska <mliska@suse.cz>
2995 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
2996 return bitsize - 1 as the return value.
2998 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
3002 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
3003 Handle negative shift counts.
3004 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
3005 force_reg on the shift constant.
3006 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
3007 (lshrsi3_d): Handle negative shift counts.
3009 2016-02-22 Richard Biener <rguenther@suse.de>
3010 Tom de Vries <tom@codesourcery.com>
3012 * graph.c: Include dumpfile.h.
3013 (print_graph_cfg): Split into three overloads.
3014 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
3016 2016-02-22 Tom de Vries <tom@codesourcery.com>
3018 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
3021 2016-02-22 Richard Biener <rguenther@suse.de>
3024 * ipa-inline-transform.c (inline_call): When not updating
3025 overall summaries adjust self size by the growth estimate.
3026 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
3027 hash-set, do not update overall summaries here. Renamed from ...
3028 (inline_to_all_callers): ... this which is now wrapping the
3029 above and performing delayed overall summary update.
3030 (early_inline_small_functions): Delay updating of the overall
3033 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
3035 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
3038 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3041 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
3042 :%* in %:gt() argument.
3043 (greater_than_spec_func): Adjust for expecting only numbers,
3044 if there are more than two numbers, compare the last two.
3046 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
3048 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
3049 -Wnarrowing with -std.
3051 2016-02-19 Jakub Jelinek <jakub@redhat.com>
3054 * expr.c (store_field): Don't use bit-field path if exp is
3055 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
3056 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
3057 and the assignment can be performed by bitwise copy. Formatting
3061 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
3062 call copy_reg_eh_region_note_forward on before and/or after sequences
3063 and remove note from insn if it no longer can throw.
3066 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
3069 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3071 * config/s390/vector.md: Add missing commutative operand markers
3072 to the patterns which qualify for one.
3073 * config/s390/vx-builtins.md: Likewise.
3075 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3077 * config/s390/vector.md (VI, VI_QHS): Add single element vector
3078 types to mode iterators.
3079 (vec_double): ... and mode attribute.
3080 * config/s390/vx-builtins.md (non_vec_int): Likewise.
3082 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3084 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
3085 Change the predicate of op2 from nonimmediate to general and let
3086 reload fix it if necessary.
3088 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3090 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
3092 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3094 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
3097 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3099 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
3100 * config/s390/s390.c (s390_expand_vec_movstr): New function.
3101 * config/s390/s390.md ("movstr<P:mode>"): Call
3102 s390_expand_vec_movstr.
3104 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3106 * config/s390/s390.md: Add missing output modifier for operand 1
3107 to print it as address properly.
3109 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3111 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
3112 * config/s390/2964.md: New file.
3113 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
3114 of insn grouping attributes depending on the CPU level.
3115 (s390_get_unit_mask): New function.
3116 (s390_sched_score): Remove the OOO from the scheduling macros.
3117 Add loop to calculate a score for the instruction mix.
3118 (s390_sched_reorder): Likewise plus improve debug output.
3119 (s390_sched_variable_issue): Rename macros as above. Calculate
3120 the unit distances after actually scheduling an insn. Improve
3122 (s390_sched_init): Clear last_scheduled_unit_distance array.
3123 * config/s390/s390.md: Include 2964.md.
3125 2016-02-18 Jakub Jelinek <jakub@redhat.com>
3128 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
3129 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
3130 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
3131 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
3132 *avx512f_<code>v8div16qi2_mask_1): New insns.
3134 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3137 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
3140 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
3141 earlyclobber from target. Use wF constraint for fused memory
3143 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
3145 2016-02-18 Jakub Jelinek <jakub@redhat.com>
3146 Martin Liska <mliska@suse.cz>
3149 * cfgexpand.c (asan_sanitize_stack_p): New function.
3150 (partition_stack_vars): Use the function.
3151 (expand_stack_vars): Likewise.
3152 (defer_stack_allocation): Likewise.
3153 (expand_used_vars): Likewise.
3155 2016-02-18 Richard Biener <rguenther@suse.de>
3158 * fold-const.c (operand_equal_p): Properly compare offsets for
3159 IMAGPART_EXPR and ARRAY_REF.
3161 2016-02-18 Nick Clifton <nickc@redhat.com>
3165 * config/arm/arm.c (arm_option_override_internal): Disable
3166 interworking if the target does not support thumb instructions.
3167 (arm_reload_in_hi): Handle the case where a register to register
3168 move needs reloading because there is no simple pattern to handle
3170 (arm_reload_out_hi): Likewise.
3172 2016-02-18 Richard Biener <rguenther@suse.de>
3175 * match.pd: Don't use fold_binary or fold_unary for folding
3178 2016-02-17 Jakub Jelinek <jakub@redhat.com>
3181 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
3182 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
3183 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
3184 warn on gimple_no_warning_p statements.
3186 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
3188 * doc/extend.texi (C++ Attributes): Correct description of
3189 warn_unused type attribute.
3191 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3193 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
3194 correct instruction.
3196 2016-02-17 Richard Biener <rguenther@suse.de>
3198 PR rtl-optimization/69609
3199 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
3200 (find_traces_1_round): When ending a trace update cached priority
3202 (bb_to_key): Use cached priority when available.
3203 (copy_bb): Initialize cached priority.
3204 (reorder_basic_blocks_software_trace_cache): Likewise.
3206 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3209 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
3211 (aarch64_comparison_operator): Break overly long line into two.
3212 (aarch64_comparison_operation): Likewise.
3213 * config/aarch64/aarch64.md (cstorecc4): Use
3214 aarch64_comparison_operator_mode instead of
3215 aarch64_comparison_operator.
3216 (cstore<mode>4): Likewise.
3217 (aarch64_cstore<mode>): Likewise.
3218 (*cstoresi_insn_uxtw): Likewise.
3219 (cstore<mode>_neg): Likewise.
3220 (*cstoresi_neg_uxtw): Likewise.
3222 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3225 * config/arm/predicates.md (arm_comparison_operator_mode):
3227 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
3228 instead of arm_comparison_operator.
3229 (*mov_negscc): Likewise.
3230 (*mov_notscc): Likewise.
3231 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
3232 (*thumb2_mov_negscc): Likewise.
3233 (*thumb2_mov_negscc_strict_it): Likewise.
3234 (*thumb2_mov_notscc): Likewise.
3235 (*thumb2_mov_notscc_strict_it): Likewise.
3237 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
3239 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
3242 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
3244 * config/visium/visium.c (machine_libfunc_index): New enum.
3245 (machine_libfuncs): New structure.
3246 (visium_libfuncs): New static variable.
3247 (TARGET_INIT_LIBFUNCS): Define to...
3248 (visium_init_libfuncs): ...this. New function.
3249 (expand_block_move_4): Use the appropriate libfunc.
3250 (expand_block_move_2): Likewise.
3251 (expand_block_move_1): Likewise.
3252 (expand_block_set_4): Likewise.
3253 (expand_block_set_2): Likewise.
3254 (expand_block_set_1): Likewise.
3255 (visium_trampoline_init): Likewise.
3257 2016-02-17 Nick Clifton <nickc@redhat.com>
3259 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
3260 TI's devices.csv file as of March 2016.
3262 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
3265 * opts-global.c (handle_common_deferred_options): Introduce and
3266 initialize two global variables to remember command-line options
3267 specifying a stack-limiting register.
3268 * opts.h: Add extern declarations of the two new global variables.
3269 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
3270 variable based on the values of the two new global variables.
3272 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3275 * common.opt (Wnonnull-compare): New warning.
3276 * doc/invoke.texi (-Wnonnull): Remove text about comparison
3277 of arguments against NULL.
3278 (-Wnonnull-compare): Document.
3279 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
3280 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
3281 * passes.def (pass_warn_nonnull_compare): Add.
3282 * gimple-ssa-nonnull-compare.c: New file.
3284 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3286 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
3287 AARCH64_EXTRA_TUNE_RECIP_SQRT.
3289 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3291 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
3292 reciprocal sqrt for -mlow-precision-recip-sqrt.
3294 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3295 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3297 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
3298 always use lane loads to construct non-constant vectors.
3300 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
3302 * config/aarch64/aarch64.md
3303 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
3304 constraints for operand 3.
3305 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
3307 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3308 Richard Biener <rguenther@suse.de>
3310 PR tree-optimization/69820
3311 * tree-vect-patterns.c (type_conversion_p): Return false if
3312 *orig_type is unsigned single precision or boolean.
3313 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
3316 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3318 PR rtl-optimization/69764
3319 PR rtl-optimization/69771
3320 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
3321 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
3323 2016-02-16 Richard Biener <rguenther@suse.de>
3325 PR tree-optimization/69776
3326 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
3328 (indirect_refs_may_alias_p): Likewise.
3329 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
3330 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
3331 according to tbaa_p.
3332 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
3333 (optimize_stmt): For redundant store discovery do not allow tbaa.
3335 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
3337 PR tree-optimization/69714
3338 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
3339 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
3341 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
3343 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
3344 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
3345 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
3346 * config/arc/arc.c (arc_init): Check FPU options.
3347 (get_arc_condition_code): Handle new CC_FPU* modes.
3348 (arc_select_cc_mode): Likewise.
3349 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
3350 register pair only. Allow access for ARCv2 accumulator.
3351 (gen_compare_reg): Whenever we have FPU support use FPU compare
3353 (arc_reorg): Don't generate brcc insns when FPU compare
3354 instructions are involved.
3355 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
3356 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
3357 floating point emulation.
3358 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
3359 (REVERSE_CONDITION): Add new CC_FPU* modes.
3360 (TARGET_FP_SP_BASE): Define.
3361 (TARGET_FP_DP_BASE): Likewise.
3362 (TARGET_FP_SP_FUSED): Likewise.
3363 (TARGET_FP_DP_FUSED): Likewise.
3364 (TARGET_FP_SP_CONV): Likewise.
3365 (TARGET_FP_DP_CONV): Likewise.
3366 (TARGET_FP_SP_SQRT): Likewise.
3367 (TARGET_FP_DP_SQRT): Likewise.
3368 (TARGET_FP_DP_AX): Likewise.
3369 * config/arc/arc.md (ARCV2_ACC): New constant.
3370 (type): New fpu type attribute.
3371 (SDF): Conditional iterator.
3372 (cstore<mode>, cbranch<mode>): Change expand condition.
3373 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
3374 handles FPU/FPX cases as well.
3375 * config/arc/arc.opt (mfpu): New option.
3376 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
3378 (adddf3, muldf3, subdf3): Removed.
3379 * config/arc/predicates.md (proper_comparison_operator): Recognize
3381 * config/arc/fpu.md: New file.
3382 * doc/invoke.texi (ARC Options): Document mfpu option.
3384 2016-02-16 Richard Biener <rguenther@suse.de>
3386 PR rtl-optimization/69291
3387 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
3388 noce_operand_ok check.
3390 2016-02-16 Tom de Vries <tom@codesourcery.com>
3393 * omp-low.c (simd_clone_create): Remove call to
3394 symtab->call_cgraph_insertion_hooks.
3396 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3398 PR tree-optimization/69802
3399 * tree-ssa-reassoc.c (update_range_test): If op is
3400 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
3401 op == 1 test of precision 1 integral op, otherwise handle
3402 that case as op itself. Fix up formatting.
3403 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
3406 2016-02-16 Richard Biener <rguenther@suse.de>
3408 PR tree-optimization/69586
3409 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
3410 types for conversion sources.
3412 2016-02-16 Richard Biener <rguenther@suse.de>
3415 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
3416 mask OEP_ADDRESS_OF.
3418 2016-02-16 Alan Modra <amodra@gmail.com>
3421 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
3422 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
3423 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
3425 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
3426 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
3427 (p8_fmrgow_<mode>): Likewise.
3428 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
3430 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
3431 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
3432 to use movdi_internal64. Remove op0_di.
3433 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
3435 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
3437 Add support for the FCCMP insn types
3439 * config/aarch64/aarch64.md (fccmp): Change insn type.
3441 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
3442 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
3443 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
3444 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
3445 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
3446 * config/arm/types.md (fccmps): Add new insn type.
3449 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
3451 * alias.c (get_alias_set): Fix a typo in comment.
3453 2016-02-15 Richard Biener <rguenther@suse.de>
3455 PR tree-optimization/69595
3456 * match.pd: Complete range test simplification to true.
3458 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
3460 PR rtl-optimization/69648
3461 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
3462 pic_offset_table_rtx.
3464 PR rtl-optimization/69752
3465 * ira.c (update_equiv_regs): When looking for more than a single SET,
3466 also take other side effects into account.
3468 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
3470 * config/s390/s390.c (s390_function_profiler): Add a new sequence
3471 for z900+ CPUs in 31-bit mode.
3473 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
3475 * common/config/s390/s390-common.c (s390_supports_split_stack):
3477 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
3478 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
3479 * config/s390/s390.c (struct machine_function): New field
3480 split_stack_varargs_pointer.
3481 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
3482 in s390_emit_prologue.
3483 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
3485 (morestack_ref): New global.
3486 (SPLIT_STACK_AVAILABLE): New macro.
3487 (s390_expand_split_stack_prologue): New function.
3488 (s390_live_on_entry): New function.
3489 (s390_va_start): Use split-stack vararg pointer if appropriate.
3490 (s390_asm_file_end): Emit the split-stack note sections.
3491 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
3492 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
3493 (UNSPECV_SPLIT_STACK_CALL): New unspec.
3494 (UNSPECV_SPLIT_STACK_DATA): New unspec.
3495 (split_stack_prologue): New expand.
3496 (split_stack_space_check): New expand.
3497 (split_stack_data): New insn.
3498 (split_stack_call): New expand.
3499 (split_stack_call_*): New insn.
3500 (split_stack_cond_call): New expand.
3501 (split_stack_cond_call_*): New insn.
3503 2016-02-15 Richard Biener <rguenther@suse.de>
3505 PR tree-optimization/69783
3506 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3507 Add trivially correct cases.
3509 2016-02-15 Tom de Vries <tom@codesourcery.com>
3512 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
3514 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
3516 2016-02-15 Richard Biener <rguenther@suse.de>
3518 PR tree-optimization/69776
3519 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3520 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
3521 indicate whether we can use TBAA to disambiguate against stores.
3522 Use alias-set zero if not.
3523 (visit_reference_op_store): Do not use TBAA when looking up
3525 * tree-ssa-pre.c (compute_avail): Use TBAA here.
3526 (eliminate_dom_walker::before_dom_children): But not when looking
3527 up redundant stores.
3529 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
3531 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
3533 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3535 * config/i386/znver1.md
3536 (znver1_pop, znver1_pop_mem,
3537 znver1_load_imov_double_store,
3538 znver1_load_imov_direct_store,
3539 znver1_load_imov_direct_load,
3540 znver1_load_imov_double_load): Add new.
3541 (znver1_insn, znver1_insn_load): Add icmov type.
3543 znver1_sseavx_fma_load,
3545 znver1_avx256_fma_load): Fix pipe usage.
3547 2016-02-14 Alan Modra <amodra@gmail.com>
3550 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
3551 with an invalid hard reg, reload just the reg not the entire
3552 pre/post-inc/dec address expression.
3554 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
3557 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
3558 fixed R1_REG scratch reg.
3559 (sibcall_value_pcrel_fdpic): Likewise.
3561 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
3565 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
3567 2016-02-12 Walter Lee <walt@tilera.com>
3569 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
3570 * config/tilegx/t-tilegx: Likewise.
3572 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3575 * diagnostic-show-locus.c (struct line_span): New struct.
3576 (layout::get_first_line): Delete.
3577 (layout::get_last_line): Delete.
3578 (layout::get_num_line_spans): New member function.
3579 (layout::get_line_span): Likewise.
3580 (layout::print_heading_for_line_span_index_p): Likewise.
3581 (layout::get_expanded_location): Likewise.
3582 (layout::calculate_line_spans): Likewise.
3583 (layout::m_first_line): Delete.
3584 (layout::m_last_line): Delete.
3585 (layout::m_line_spans): New field.
3586 (layout::layout): Update comment. Replace m_first_line and
3587 m_last_line with m_line_spans, replacing their initialization
3588 with a call to calculate_line_spans.
3589 (diagnostic_show_locus): When printing source lines and
3590 annotations, rather than looping over a single span
3591 of lines, instead loop over each line_span within
3592 the layout, with an inner loop over the lines within them.
3593 Call the context's start_span callback when changing line spans.
3594 * diagnostic.c (diagnostic_initialize): Initialize start_span.
3595 (diagnostic_build_prefix): Break out the building of the location
3596 part of the string into...
3597 (diagnostic_get_location_text): ...this new function, rewriting
3598 it from nested ternary expressions to a sequence of "if"
3600 (default_diagnostic_start_span_fn): New function.
3601 * diagnostic.h (diagnostic_start_span_fn): New typedef.
3602 (diagnostic_context::start_span): New field.
3603 (default_diagnostic_start_span_fn): New prototype.
3605 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3608 * gcc.c (driver::finalize): Fix cleanup of "specs".
3610 2016-02-12 David Malcolm <dmalcolm@redhat.com>
3614 * gcc.c (driver::driver): Initialize m_option_suggestions.
3615 (driver::~driver): Clean up m_option_suggestions.
3616 (suggest_option): Convert to...
3617 (driver::suggest_option): ...this, and split out into
3618 driver::build_option_suggestions and find_closest_string.
3619 (driver::build_option_suggestions): New function, from
3620 first half of suggest_option. Special-case
3621 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
3622 the sanitizer_opts array. For options of enum types, add the
3623 various enum values to the candidate strings.
3624 (driver::handle_unrecognized_options): Remove "const".
3625 * gcc.h (driver::handle_unrecognized_options): Likewise.
3626 (driver::build_option_suggestions): New decl.
3627 (driver::suggest_option): New decl.
3628 (driver::m_option_suggestions): New field.
3629 * opts-common.c (add_misspelling_candidates): New function.
3630 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
3631 and make non-static.
3632 * opts.h (sanitizer_opts): New array decl.
3633 (add_misspelling_candidates): New function decl.
3634 * spellcheck.c (find_closest_string): New function.
3635 * spellcheck.h (find_closest_string): New function decl.
3637 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3639 PR rtl-optimization/69764
3640 PR rtl-optimization/69771
3641 * optabs.c (expand_binop_directly): For shift_optab_p, force
3642 convert_modes with VOIDmode if xop1 has VOIDmode.
3644 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3647 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
3648 to correctly determine instrumentation thunks.
3650 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3653 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
3654 type by reference, force lhs on the call.
3657 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
3658 Compute retval and retbnd early in all cases if split_part_return_p
3659 and return_bb is not EXIT. Remove all clobber stmts and reset
3660 all debug stmts that refer to SSA_NAMEs defined in split part,
3661 except if it is retval, in that case replace the old retval with the
3662 lhs of the call to the split part.
3664 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3667 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3670 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3671 whose result is used in PHI.
3672 (maybe_optimize_range_tests): Likewise.
3673 (final_range_test_p): Likweise.
3675 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3678 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
3679 whose result is used in PHI.
3680 (maybe_optimize_range_tests): Likewise.
3681 (final_range_test_p): Likweise.
3683 2016-02-12 Jakub Jelinek <jakub@redhat.com>
3685 * cgraph.c: Spelling fixes - behaviour -> behavior and
3686 neighbour -> neighbor.
3687 * target.def: Likewise.
3688 * sel-sched.c: Likewise.
3689 * config/mips/mips.c: Likewise.
3690 * config/arc/arc.md: Likewise.
3691 * config/arm/cortex-a57.md: Likewise.
3692 * config/arm/arm.c: Likewise.
3693 * config/arm/neon.md: Likewise.
3694 * config/arm/arm-c.c: Likewise.
3695 * config/vms/vms-c.c: Likewise.
3696 * config/s390/s390.c: Likewise.
3697 * config/i386/znver1.md: Likewise.
3698 * config/i386/i386.c: Likewise.
3699 * config/ia64/hpux-unix2003.h: Likewise.
3700 * config/msp430/msp430.md: Likewise.
3701 * config/rx/rx.c: Likewise.
3702 * config/rx/rx.md: Likewise.
3703 * config/aarch64/aarch64-simd.md: Likewise.
3704 * config/aarch64/aarch64.c: Likewise.
3705 * config/nvptx/nvptx.c: Likewise.
3706 * config/bfin/bfin.c: Likewise.
3707 * config/cris/cris.opt: Likewise.
3708 * config/rs6000/rs6000.c: Likewise.
3709 * target.h: Likewise.
3710 * spellcheck.c: Likewise.
3711 * ira-build.c: Likewise.
3712 * tree-inline.c: Likewise.
3713 * builtins.c: Likewise.
3714 * lra-constraints.c: Likewise.
3715 * explow.c: Likewise.
3716 * hwint.h: Likewise.
3717 * targhooks.c: Likewise.
3718 * tree-vect-data-refs.c: Likewise.
3720 * doc/tm.texi: Likewise.
3721 * doc/extend.texi: Likewise.
3722 * doc/install.texi: Likewise.
3723 * doc/md.texi: Likewise.
3724 * tree-ssa-tail-merge.c: Likewise.
3725 * sched-int.h: Likewise.
3726 * match.pd: Likewise.
3727 * sched-ebb.c: Likewise.
3728 * target.def (omit_struct_return_reg): Likewise.
3729 * gimple-ssa-isolate-paths.c: Likewise.
3730 (find_implicit_erroneous_behaviour): Renamed to...
3731 (find_implicit_erroneous_behavior): ... this.
3732 (find_explicit_erroneous_behaviour): Renamed to...
3733 (find_explicit_erroneous_behavior): ... this.
3734 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
3736 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
3738 PR rtl-optimization/64682
3739 PR rtl-optimization/69567
3740 PR rtl-optimization/69737
3741 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
3742 in I2 as well, just lose it.
3744 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3746 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
3748 (aarch64_last_printed_tune_string): Likewise.
3749 (aarch64_declare_function_name): Only output .arch assembler
3750 directive if it will be different from the previously output
3751 directive. Same for .tune comment but only if -dA is set.
3752 (aarch64_start_file): New function.
3753 (TARGET_ASM_FILE_START): Define.
3755 2016-02-11 David Malcolm <dmalcolm@redhat.com>
3758 * Makefile.in (PLUGIN_HEADERS): Add params.list.
3760 2016-02-11 Jakub Jelinek <jakub@redhat.com>
3763 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
3764 -Wmaybe-uninitialized warning.
3766 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
3769 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
3771 2016-02-11 Richard Biener <rguenther@suse.de>
3773 PR rtl-optimization/69291
3774 * ifcvt.c (noce_try_store_flag_constants): Do not allow
3775 subexpressions affected by changing the result.
3777 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
3780 * lra-constraints.c (curr_insn_transform): Find in/out operands
3781 for secondary memory moves. Update dups.
3783 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
3785 PR tree-optimization/69652
3786 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
3787 to nested loop, did source re-formatting, skip debug statements,
3788 add check on statement with volatile operand, remove dead scalar
3791 2016-02-10 Jakub Jelinek <jakub@redhat.com>
3792 Patrick Palka <ppalka@gcc.gnu.org>
3796 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
3797 calls if the return type is TREE_ADDRESSABLE.
3798 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
3799 * ipa-split.c (split_function): Fix doubled "we" in comment.
3800 Use void return type for the split part even if
3801 !split_point->split_part_set_retval.
3803 2016-02-10 Bin Cheng <bin.cheng@arm.com>
3805 PR tree-optimization/68021
3806 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
3807 when computing the value of biv cand by itself.
3809 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
3811 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
3812 (cortexa57_tunings): Likewise.
3813 (cortexa72_tunings): Likewise.
3814 (arch_macro_fusion_pair_p): Add support for AES fusion.
3815 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
3816 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
3817 Allow virtual registers before reload so early scheduling works.
3818 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
3819 correct latency and pipeline.
3820 (cortex_a57_crypto_complex): Likewise.
3821 (cortex_a57_crypto_xor): Likewise.
3822 (define_bypass): Add AES bypass.
3824 2016-02-10 Richard Biener <rguenther@suse.de>
3826 PR tree-optimization/69726
3827 * passes.def: Add DCE pass before late uninit.
3828 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
3829 really fixup if-conversions job.
3831 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
3833 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
3834 (arm_cortex_a57_tune): Likewise.
3835 (aarch_macro_fusion_pair_p): Add support for AES fusion.
3836 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
3838 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
3840 * timevar.def (TV_PHASE_DBGINFO): Delete.
3841 (TV_PHASE_CHECK_DBGINFO): Likewise.
3842 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
3844 2016-02-10 Richard Biener <rguenther@suse.de>
3846 PR tree-optimization/69719
3847 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3848 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
3850 2016-02-09 Andrew Pinski <apinski@cavium.com>
3853 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
3854 get_vcond_mask_icode returns false.
3856 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3859 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
3860 an ADDIS that adds a pointer to a large constant that sets the
3861 upper16 bits with a load operation.
3863 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
3866 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
3868 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
3870 (vzipq_s16): Likewise.
3871 (vzipq_s32): Likewise.
3872 (vzipq_f32): Likewise.
3873 (vzipq_u8): Likewise.
3874 (vzipq_u16): Likewise.
3875 (vzipq_u32): Likewise.
3876 (vzipq_p8): Likewise.
3877 (vzipq_p16): Likewise.
3879 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
3882 * config/arm/arm.c (neon_endian_lane_map): New function.
3883 (neon_vector_pair_endian_lane_map): New function.
3884 (arm_evpc_neon_vuzp): Allow for big endian lane order.
3885 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
3887 (vuzpq_s16): Likewise.
3888 (vuzpq_s32): Likewise.
3889 (vuzpq_f32): Likewise.
3890 (vuzpq_u8): Likewise.
3891 (vuzpq_u16): Likewise.
3892 (vuzpq_u32): Likewise.
3893 (vuzpq_p8): Likewise.
3894 (vuzpq_p16): Likewise.
3896 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
3899 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
3902 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
3904 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
3905 truncate const_int operand 1 to QImode.
3907 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
3909 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
3910 corresponding to an abnormal edge.
3912 2016-02-09 Tom de Vries <tom@codesourcery.com>
3914 PR tree-optimization/69599
3915 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
3917 (find_func_aliases_for_builtin_call, find_func_clobbers)
3918 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
3921 2016-02-09 Richard Biener <rguenther@suse.de>
3923 PR tree-optimization/69715
3924 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
3925 LHS on calls as non-rewritable.
3927 2016-02-09 Tom de Vries <tom@codesourcery.com>
3930 * lto-wrapper.c (append_diag_options): New function.
3931 (compile_offload_image): Call append_diag_options.
3933 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
3936 * doc/extend.texi (Flag Output Operands): Correct sectioning.
3937 Minor copy-edit to fix verb tenses.
3939 2016-02-08 Jakub Jelinek <jakub@redhat.com>
3941 PR tree-optimization/69209
3942 * ipa-split.c (split_function): If split part is not
3943 returning retval, retval has gimple type but is not
3944 gimple value, force it into a SSA_NAME first.
3946 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
3948 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
3951 2016-02-08 Jason Merrill <jason@redhat.com>
3954 * convert.c (convert_to_integer_1): Check dofold on truncation
3956 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
3957 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
3958 Rename from *_nofold.
3959 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
3960 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
3962 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
3965 * tree.c (build_common_tree_nodes): Remove short_double argument.
3966 All callers changed.
3967 * tree.h (build_common_tree_nodes): Adjust declaration.
3968 * doc/invoke.texi (-fshort-double): Remove documentation.
3969 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3970 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
3971 * lto-wrapper.c (merge_and_complain, append_compiler_options)
3972 (append_linker_options): Don't handle OPT_fshort_double.
3974 PR rtl-optimization/68730
3975 * lra-remat.c (insn_to_cand_activation): New static variable.
3976 (lra_remat): Allocate and free it.
3977 (create_cand): New arg activation. Initialize a field in
3978 insn_to_cand_activation if it is nonnull.
3979 (create_cands): Pass the activation insn to create_cand when making
3980 a candidate involving an output reload. Reorganize code a little.
3981 (do_remat): Keep track of active status of candidates in a separate
3984 2016-02-08 Richard Biener <rguenther@suse.de>
3986 PR tree-optimization/69719
3987 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
3988 Properly use absolute of the difference of the two offsets to
3989 compare or adjust the segment length.
3991 2016-02-08 Richard Biener <rguenther@suse.de>
3992 Jeff Law <law@redhat.com>
3995 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
3996 types for anonymous SSA names.
3998 2016-02-08 Richard Biener <rguenther@suse.de>
4000 PR rtl-optimization/69274
4001 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
4003 2016-02-08 Jeff Law <law@redhat.com>
4005 PR tree-optimization/65917
4006 * tree-ssa-dom.c (record_temporary_equivalences): Record both
4007 equivalences from if (x == y) style conditionals.
4008 (loop_depth_of_name): Remove.
4009 (record_equality): Remove loop depth check.
4010 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
4011 (const_and_copies::record_const_or_copy_raw): New member function.
4012 * tree-ssa-scopedtables.c
4013 (const_and_copies::record_const_or_copy_raw): New, factored out of
4014 (const_and_copies::record_const_or_copy): Call new member function.
4016 2016-02-05 Jeff Law <law@redhat.com>
4018 PR tree-optimization/68541
4019 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
4020 (count_stmts_in_block): New function.
4021 (poor_ifcvt_candidate_code): Likewise.
4022 (is_feasible_trace): Add some heuristics to determine when path
4023 splitting is profitable.
4024 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
4025 is a diamond with a single exit.
4027 2016-02-05 Martin Sebor <msebor@redhat.com>
4030 * doc/invoke.texi: Update -Wplacement-new to take an optional
4033 2016-02-06 Richard Henderson <rth@redhat.com>
4036 * tree.c (tree_nop_conversion_p): Do not strip casts into or
4037 out of non-standard address spaces.
4039 2016-02-05 Jakub Jelinek <jakub@redhat.com>
4041 PR rtl-optimization/69691
4042 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
4044 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
4046 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
4047 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
4048 (*ieee128_mfvsrd_64bit): Likewise.
4049 (*ieee128_mfvsrd_32bit): Likewise.
4051 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
4055 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4057 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4058 instrumented_version.
4060 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
4062 * doc/invoke.texi (Optimize Options): In table of --param options
4063 rename second occurrence of tracer-min-branch-ratio to
4064 tracer-min-branch-probability, rename
4065 tracer-min-branch-ratio-feedback to
4066 tracer-min-branch-probability-feedback and clarify description,
4067 rename sched-spec-state-edge-prob-cutoff to
4068 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
4069 to selsched-insns-to-rename, rename lto-minpartition to
4070 lto-min-partition, delete reorder-blocks-duplicate and
4071 reorder-blocks-duplicate-feedback.
4073 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4075 * config/s390/s390.c (s390_register_info_set_ranges): Remove
4078 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
4080 * doc/extend.texi: S/390: Correct some typos.
4082 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4084 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
4086 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4089 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
4090 (s390_register_info_gprtofpr): Use new macros above.
4091 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
4093 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
4094 its name. Adjust restore and save gpr ranges.
4095 (s390_register_info_set_ranges): New function.
4096 (s390_register_info): Use new macros above. Call
4097 s390_register_info_set_ranges.
4098 (s390_optimize_register_info): Likewise.
4099 (s390_hard_regno_rename_ok): Use new macros.
4100 (s390_hard_regno_scratch_ok): Likewise.
4101 (s390_emit_epilogue): Likewise.
4102 (s390_can_use_return_insn): Likewise.
4103 (s390_optimize_prologue): Likewise.
4104 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
4106 2016-02-05 Jakub Jelinek <jakub@redhat.com>
4109 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
4111 (ix86_option_override_internal): Disable TARGET_STV even for
4112 -m{incoming,preferred}-stack-boundary=3.
4114 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4116 * config.gcc: Mark deprecated rtems targets as obsolete.
4118 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
4120 PR rtl-optimization/64682
4121 PR rtl-optimization/69567
4122 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
4123 before I2 only if the register is both used and set in I2.
4125 2016-02-04 DJ Delorie <dj@redhat.com>
4127 * config/msp430/msp430.c (msp430_start_function): Add function type.
4129 2016-02-04 Jakub Jelinek <jakub@redhat.com>
4132 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
4134 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
4136 PR rtl-optimization/69577
4138 2015-10-29 Richard Henderson <rth@redhat.com>
4142 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
4143 sse check to the exact conditions of PR 67609.
4145 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4148 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
4149 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
4150 not allowed into the traditional Altivec registers.
4151 (movtd_64bit_nodm): Likewise.
4152 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
4154 2016-02-04 David Malcolm <dmalcolm@redhat.com>
4156 * config/aarch64/cortex-a57-fma-steering.c
4157 (aarch64_register_fma_steering): Remove "static" from arguments
4160 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
4163 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
4166 2016-02-04 Mike Frysinger <vapier@gentoo.org>
4168 * doc/invoke.texi: Delete -mno-fma4.
4170 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
4172 PR rtl-optimization/69577
4173 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
4174 (find_subregs_of_mode): Update accordingly. Iterate over partial
4177 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
4179 * config/arm/arm-protos.h (neon_reinterpret): Remove.
4180 * config/arm/arm.c (neon_reinterpret): Remove.
4181 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
4182 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
4183 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
4184 vreinterpretti): Remove.
4185 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
4186 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
4187 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
4188 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
4189 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
4190 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
4191 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
4192 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
4193 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
4194 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
4195 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
4196 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
4197 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
4198 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
4199 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
4200 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
4201 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
4202 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
4203 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
4204 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
4205 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
4206 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
4207 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
4208 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
4209 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
4210 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
4211 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
4212 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
4213 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
4214 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
4215 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
4216 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
4217 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
4218 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
4219 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
4220 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
4221 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
4222 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
4223 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
4224 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
4225 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
4226 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
4227 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
4228 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
4229 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
4230 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
4231 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
4232 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
4233 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
4234 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
4235 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
4236 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
4237 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
4238 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
4239 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
4240 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
4241 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
4242 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
4243 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
4244 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
4245 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
4246 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
4247 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
4248 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
4249 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
4250 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
4251 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
4252 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
4253 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
4254 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
4255 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
4256 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
4257 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
4258 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
4259 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
4260 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
4261 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
4262 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
4263 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
4264 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
4265 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
4266 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
4267 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
4268 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
4269 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
4270 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
4271 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
4272 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
4273 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
4274 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
4275 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
4276 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
4277 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
4278 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
4279 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
4280 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
4281 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
4282 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
4283 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
4284 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
4285 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
4286 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
4287 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
4289 2016-02-04 Martin Liska <mliska@suse.cz>
4292 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
4293 that are gimple_store_p.
4294 (maybe_instrument_call): Likewise.
4296 2016-02-04 Bin Cheng <bin.cheng@arm.com>
4298 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
4299 register scaling out of memory reference and comment why.
4301 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4305 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
4306 folding the source of a SET.
4308 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4312 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
4313 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
4315 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
4319 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
4322 2016-02-04 Christian Bruel <christian.bruel@st.com>
4324 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
4325 * config/arm/arm.c (arm_set_current_function): Likewise.
4327 2016-02-04 Jakub Jelinek <jakub@redhat.com>
4328 Ilya Enkovich <enkovich.gnu@gmail.com>
4329 H.J. Lu <hongjiu.lu@intel.com>
4332 * config/i386/i386.c (convert_scalars_to_vector): Remove
4333 stack alignment fixes.
4334 (ix86_option_override_internal): Disable TARGET_STV if stack
4335 might not be aligned enough.
4336 (ix86_minimum_alignment): Assert that TARGET_STV is false.
4338 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
4340 * gcc/config/i386/x86-tune.def: Disable default prefetching
4343 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4344 Vladimir Makarov <vmakarov@redhat.com>
4347 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
4348 in validating fused toc addresses.
4350 2016-02-03 Jakub Jelinek <jakub@redhat.com>
4353 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
4354 range->m_caret fields if range->m_show_caret_p is false.
4357 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4358 Force oldval into register if it does not satisfy reg_or_short_operand
4359 predicate. Fix up formatting.
4361 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
4362 Alexandre Oliva <aoliva@redhat.com>
4365 * lra-constraints.c (simplify_operand_subreg): Check additionally
4366 address validity after potential reloading.
4367 (process_address_1): Check insns validity. In case of failure do
4370 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
4373 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
4376 2016-02-02 Jakub Jelinek <jakub@redhat.com>
4378 * wide-int.cc (canonize_uhwi): New function.
4379 (wi::divmod_internal): Use it.
4381 2016-02-02 James Norris <jnorris@codesourcery.com
4383 * gimplify.c (omp_notice_variable): Add usage check.
4385 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4387 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
4388 like LE, GE, LT, GT when emitting relational operator.
4390 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
4392 * ira-costs.c (find_costs_and_classes): Add extra argument.
4393 * target.def (ira_change_pseudo_allocno_class): Add parameter.
4394 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
4395 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
4396 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
4397 Add best_class parameter, and return it if not ALL_REGS.
4398 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
4400 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
4403 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
4405 * config/aarch64/aarch64.c
4406 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
4407 (aarch64_ira_change_pseudo_allocno_class): New function.
4409 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
4412 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
4414 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4416 * config/avr/avr.c (avr_option_override): Set
4417 PARAM_ALLOW_STORE_DATA_RACES to 1.
4419 2016-02-02 Richard Biener <rguenther@suse.de>
4421 PR tree-optimization/69595
4422 * match.pd: Add range test simplifications to true/false.
4424 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4426 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
4427 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
4430 2016-02-02 Richard Biener <rguenther@suse.de>
4432 PR tree-optimization/69606
4433 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
4434 info on the result before moving a stmt.
4436 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
4439 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
4440 branch with vector comparison.
4441 * config/i386/sse.md (VI48_AVX): New mode iterator.
4442 (define_expand "cbranch<mode>4): Add support for conditional branch
4443 with vector comparison.
4444 * tree-vect-loop.c (optimize_mask_stores): New function.
4445 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
4446 has_mask_store field of vect_info.
4447 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
4448 vectorized loops having masked stores after vec_info destroy.
4449 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
4450 correspondent macros.
4451 (optimize_mask_stores): Add prototype.
4453 2016-02-02 Alan Modra <amodra@gmail.com>
4456 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
4459 2016-02-02 Alan Modra <amodra@gmail.com>
4462 * config/rs6000/rs6000.c (need_toc_init): New var, set it
4463 whenever toc_label_name used.
4464 (rs6000_file_start): Don't set up toc section here,
4465 (rs6000_output_function_epilogue): do so here instead,
4466 (rs6000_xcoff_file_start): and here.
4467 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
4468 (load_toc_aix_di): Likewise.
4470 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4472 PR rtl-optimization/69592
4473 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
4474 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
4475 (num_sign_bit_copies_binary_arith_p): New inline function.
4476 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
4478 2016-02-01 Jeff Law <law@redhat.com>
4480 PR tree-optimization/69580
4481 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
4482 * tree-ssa-threadbackward.c
4483 (fsm_find_control_statement_thread_paths): Do not try to walk
4484 through large PHI nodes.
4486 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4488 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
4489 when count is incremented above limit, don't analyze further
4492 * omp-low.c (oacc_parse_default_dims): Avoid
4493 -Wsign-compare warning, make sure value fits into int
4494 rather than just unsigned int.
4496 2016-02-01 Bin Cheng <bin.cheng@arm.com>
4498 PR tree-optimization/67921
4499 * fold-const.c (split_tree): New parameters. Convert pointer
4500 type variable part to proper type before negating.
4501 (fold_binary_loc): Pass new arguments to split_tree.
4503 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4505 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
4506 (nvptx_goacc_validate_dims): Extend to handle global defaults.
4507 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
4508 * doc/tm.texti: Rebuilt.
4509 * doc/invoke.texi (fopenacc-dim): Document.
4510 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
4511 (append_compiler_options): Likewise.
4512 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
4513 (oacc_parse_default_dims): New.
4514 (oacc_validate_dims): Add USED arg. Select non-unity default when
4516 (oacc_loop_fixed_partitions): Return mask of used partitions.
4517 (oacc_loop_auto_partitions): Emit dump info.
4518 (oacc_loop_partition): Return mask of used partitions.
4519 (execute_oacc_device_lower): Parse default dimension arg. Adjust
4520 loop partitioning and validation calls.
4522 2016-02-01 Richard Biener <rguenther@suse.de>
4525 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
4527 2016-02-01 Richard Biener <rguenther@suse.de>
4529 PR tree-optimization/69574
4530 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
4531 of asserting return chrec_dont_know.
4533 2016-02-01 Martin Liska <mliska@suse.cz>
4535 * mem-stats-traits.h: Add copyright header.
4536 * mem-stats.h: Likewise.
4538 2016-02-01 Richard Biener <rguenther@suse.de>
4540 PR tree-optimization/69579
4541 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
4542 Do not propagate through abnormal PHI results.
4544 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
4546 * postreload.c (reload_cse_simplify): Remove dead code.
4548 2016-02-01 Jakub Jelinek <jakub@redhat.com>
4550 PR rtl-optimization/69570
4551 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
4552 if there is more than one set, not if there is a single set.
4554 2016-02-01 Richard Henderson <rth@redhat.com>
4557 * combine.c (make_compound_operation): When looking through a
4558 subreg, make sure to re-extend to the width of the outer mode.
4560 2016-01-30 Jakub Jelinek <jakub@redhat.com>
4562 PR tree-optimization/69546
4563 * wide-int.cc (wi::divmod_internal): For unsigned division
4564 where both operands fit into uhwi, if o1 is 1 and o0 has
4565 msb set, if divident_prec is larger than bits per hwi,
4566 clear another quotient word and return 2 instead of 1.
4567 Similarly for remainder with msb in HWI set, if dividend_prec
4568 is larger than bits per hwi.
4570 2016-01-29 Martin Jambor <mjambor@suse.cz>
4572 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
4573 Use short lowercase names.
4574 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
4575 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
4576 acq_rel one. Protect warning agains segfaults if
4577 get_memory_order_name returns NULL.
4578 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
4579 with release semantics. Do not warn if get_memory_order already did.
4580 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
4581 semantics. Fix check for relaxed or acquire semantics. Do not warn
4582 if get_memory_order already did.
4584 2016-01-29 Sebastian Pop <s.pop@samsung.com>
4586 * doc/install.texi: Document that isl-0.16 is supported.
4588 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
4591 * config/i386/constraints.md (Bm): Describe as special memory
4593 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
4594 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4595 * genpreds.c (struct constraint_data): Add is_special_memory.
4596 (have_special_memory_constraints, special_memory_start): New
4598 (special_memory_end): Ditto.
4599 (add_constraint): Add new arg is_special_memory. Add code to
4600 process its true value. Update have_special_memory_constraints.
4601 (process_define_constraint): Pass the new arg.
4602 (process_define_register_constraint): Ditto.
4603 (choose_enum_order): Process special memory.
4604 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
4605 function insn_extra_special_memory_constraint.
4606 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4607 * gensupport.c (process_rtx): Process
4608 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
4609 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
4610 * ira-lives.c (single_reg_class): Use
4611 insn_extra_special_memory_constraint.
4612 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
4613 * lra-constraints.c (process_alt_operands): Ditto.
4614 (curr_insn_transform): Use insn_extra_special_memory_constraint.
4615 * recog.c (asm_operand_ok, preprocess_constraints): Process
4617 * reload.c (find_reloads): Ditto.
4618 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
4619 * stmt.c (parse_input_constraint): Use
4620 insn_extra_special_memory_constraint.
4622 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
4625 * lra-splill.c (lra_final_code_change): Revert r229087 by
4626 removing all sub-registers.
4628 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
4631 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
4633 2016-01-29 Jakub Jelinek <jakub@redhat.com>
4636 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
4637 SSE1, copy target into the temporary reg first before recursing
4640 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
4642 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
4645 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
4647 * ginclude/stdarg.h: Test __cplusplus instead of
4648 __GXX_EXPERIMENTAL_CXX0X__.
4650 2016-01-29 Richard Biener <rguenther@suse.de>
4652 PR tree-optimization/69547
4653 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
4654 Do not mark clobbers necessary.
4655 (mark_all_reaching_defs_necessary_1): Likewise.
4657 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4659 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
4660 declaration name with %qs and print it in both error messages.
4661 Also fix indentation.
4663 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
4666 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
4667 trailing blank line from error message.
4669 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
4672 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
4675 2016-01-29 Richard Biener <rguenther@suse.de>
4678 * match.pd: Allow all integral types when simplifying a
4679 widening or sign-changing conversion.
4681 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4683 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
4684 back to setting codegen_error to fail codegen.
4686 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
4689 * config/i386/constraints.md (C): Only accept constant zero operand.
4690 (BC): New constraint.
4691 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
4692 instead of C constraint.
4693 * doc/md.texi (Machine Constraints): Update description
4696 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
4699 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
4701 2016-01-28 Jakub Jelinek <jakub@redhat.com>
4704 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
4707 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
4709 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
4710 branches if using guessed profile.
4712 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
4714 * graphite-optimize-isl.c (optimize_isl): Fix dump.
4716 2016-01-28 Richard Henderson <rth@redhat.com>
4719 * config/aarch64/aarch64-modes.def (CC_Cmode): New
4720 * config/aarch64/aarch64-protos.h: Update.
4721 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
4722 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
4723 (aarch64_get_condition_code_1): Handle CC_Cmode.
4724 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
4725 (*add<mode>3_compareC_cconly_imm): New.
4726 (*add<mode>3_compareC_cconly): New.
4727 (*add<mode>3_compareC_imm): New.
4728 (add<mode>3_compareC): New.
4729 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
4730 to be first. Use aarch64_carry_operation.
4731 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
4732 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
4733 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
4734 (subti3): Use subdi3_compare1.
4735 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
4736 (sub<mode>3_compare1): New.
4737 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
4738 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
4739 (*subsi3_carryin_uxtw): Likewise.
4740 (*ngc<mode>, *ngcsi_uxtw): Likewise.
4741 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
4742 * config/aarch64/iterators.md (DWI): New.
4743 * config/aarch64/predicates.md (aarch64_carry_operation): New.
4744 (aarch64_borrow_operation): New.
4746 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4748 * graphite-optimize-isl.c (optimize_isl): Print a different debug
4749 message when isl does not return a valid schedule.
4751 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4753 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4754 Remove comments from class declarations: they are already in the code
4757 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4759 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
4761 (ternary_op_to_tree): Same.
4762 (unary_op_to_tree): Same.
4763 (nary_op_to_tree): Same.
4764 (gcc_expression_from_isl_expr_op): Same.
4765 (gcc_expression_from_isl_expression): Same.
4766 (graphite_create_new_loop): Same.
4767 (graphite_create_new_loop_guard): Same.
4768 (build_iv_mapping): Same.
4769 (graphite_create_new_guard): Same.
4770 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
4771 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
4773 2016-01-28 Sebastian Pop <s.pop@samsung.com>
4775 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
4776 instead of setting codegen_error to fail codegen.
4778 2016-01-28 Jason Merrill <jason@redhat.com>
4780 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
4782 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4784 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4785 Remove CONST_INT_P check in CCMP cost calculation.
4787 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4789 * config/aarch64/aarch64.c (generic_vector_cost):
4790 Set vec_permute_cost.
4791 (cortexa57_vector_cost): Likewise.
4792 (exynosm1_vector_cost): Likewise.
4793 (xgene1_vector_cost): Likewise.
4794 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
4795 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
4796 Add vec_permute_cost entry.
4798 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
4800 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
4802 (add<mode>3_compare0): Likewise.
4803 (addsi3_compare0_uxtw): Likewise.
4804 (add<mode>3nr_compare0): Likewise.
4805 (compare_neg<mode>): Likewise.
4806 (<optab><mode>3): Likewise.
4808 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
4810 * tree-vect-stmts.c (vectorizable_comparison): Add
4811 NULL check for vectype.
4813 2016-01-28 Richard Biener <rguenther@suse.de>
4815 PR tree-optimization/69466
4816 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4817 Account for PHIs we couldn't duplicate.
4819 2016-01-28 Martin Liska <mliska@suse.cz>
4822 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
4823 instead of ENABLE_VALGRIND_CHECKING.
4825 2016-01-27 Richard Henderson <rth@redhat.com>
4828 * lra-remat.c (subreg_regs): New.
4829 (dump_candidates_and_remat_bb_data): Dump it.
4830 (operand_to_remat): Reject if operand in subreg_regs.
4831 (set_bb_regs): Collect subreg_regs.
4832 (lra_remat): Init and free subreg_regs. Compute
4833 calculate_local_reg_remat_bb_data before create_cands.
4835 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
4838 * config/i386/i386.c (ix86_update_stack_boundary): Don't
4839 change stack_alignment_needed for __tls_get_addr call.
4841 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
4843 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
4845 2016-01-27 Jeff Law <law@redhat.com>
4847 PR tree-optimization/68398
4848 PR tree-optimization/69196
4849 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
4850 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
4851 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4852 Only count PHIs in the last block in the path. The others will
4853 const/copy propagate away. Add heuristic to allow more irreducible
4854 subloops to be created when it is likely profitable to do so.
4856 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4857 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
4858 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
4860 2016-01-27 Jakub Jelinek <jakub@redhat.com>
4863 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
4864 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
4865 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
4866 * tree-streamer-in.c: Include asan.h.
4867 (streamer_get_builtin_tree): For builtins in sanitizer
4868 range call initialize_sanitizer_builtins and retry.
4870 2016-01-27 Ian Lance Taylor <iant@google.com>
4872 * common.opt (fkeep-gc-roots-live): New undocumented option.
4873 * tree-ssa-loop-ivopts.c (add_candidate_1): If
4874 -fkeep-gc-roots-live, skip pointers.
4875 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
4878 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
4881 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
4882 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
4884 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
4887 * configure.ac: NetBSD provides SSP in its C library.
4888 * configure: Updated.
4890 2016-01-27 Richard Biener <rguenther@suse.de>
4892 PR tree-optimization/69166
4893 * tree-vect-loop.c (vect_is_simple_reduction): Always check
4894 reduction code for commutativity / associativity.
4896 2016-01-27 Martin Jambor <mjambor@suse.cz>
4898 PR tree-optimization/69355
4899 * tree-sra.c (analyze_access_subtree): Correct hole detection when
4900 total_scalarization fails.
4902 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
4904 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
4907 2016-01-27 Christian Bruel <christian.bruel@st.com>
4910 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
4911 Move arm_reset_previous_fndecl and set_target_option_current_node in
4912 the conditional part. Call save_restore_target_globals.
4913 * config/arm/arm.c (arm_set_current_function):
4914 Refactor to better support #pragma target and attribute mix.
4915 Call save_restore_target_globals.
4916 * config/arm/arm-protos.h (save_restore_target_globals): New function.
4918 2016-01-27 Martin Liska <mliska@suse.cz>
4920 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
4921 reference for an HSA kernel and its host function.
4923 2016-01-27 Jakub Jelinek <jakub@redhat.com>
4925 PR tree-optimization/69399
4926 * wide-int.h (wi::lrshift): For larger precisions, only
4927 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
4929 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
4931 * config/arc/predicates.md (proper_comparison_operator): Reject
4932 constant-constant comparison.
4934 2016-01-26 Tom de Vries <tom@codesourcery.com>
4936 PR tree-optimization/69110
4937 * tree-data-ref.c (initialize_data_dependence_relation): Handle
4938 DR_NUM_DIMENSIONS == 0.
4940 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4941 Sebastian Pop <s.pop@samsung.com>
4943 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
4944 isl_ast_op_cond and isl_ast_op_select.
4945 (gcc_expression_from_isl_expr_op): Same.
4947 2016-01-26 Jason Merrill <jason@redhat.com>
4950 * tree.c (recompute_constructor_flags): Split out from
4952 (verify_constructor_flags): New.
4953 * tree.h: Declare them.
4955 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
4957 PR rtl-optimization/69217
4958 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
4959 are no TYPE_FIELDS set for the record type.
4961 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4964 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
4965 toc_label_name unconditionally.
4966 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
4967 SYMBOL_REF string. Use toc_label_name instead of constructing
4969 (rs6000_elf_declare_function_name): Use toc_label_name instead of
4970 constructing LCTOC1.
4972 2016-01-26 Martin Sebor <msebor@redhat.com>
4975 * doc/extend.texi (Common Type Attributes): Move text that talks about
4976 attribute packed from attribute aligned to the section discussing
4977 the former attribute for clarity.
4979 2016-01-26 Richard Henderson <rth@redhat.com>
4982 * trans-mem.c (tm_region_init): Mark entry block as visited.
4984 2016-01-26 David Malcolm <dmalcolm@redhat.com>
4987 * diagnostic-show-locus.c (layout::print_source_line): Replace
4988 call to pp_newline with call to layout::print_newline.
4989 (layout::print_annotation_line): Likewise.
4990 (layout::move_to_column): Likewise.
4991 (layout::print_any_fixits): After printing any fixits, print a
4992 trailing newline, if necessary.
4993 (layout::print_newline): New method, resetting any colorization
4995 (diagnostic_show_locus): Move the pp_newline to before the
4996 early bailout. Remove dummy block enclosing the layout instance.
4997 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
4998 of pp_newline_and_flush with pp_flush.
4999 (diagnostic_append_note): Delete use of pp_newline.
5000 (diagnostic_append_note_at_rich_loc): Delete.
5001 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
5002 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
5003 when newline characters are added to the buffer.
5005 2016-01-26 Michael Matz <matz@suse.de>
5007 * configure.ac (ac_cv_std_swap_in_utility): New test.
5008 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
5009 * configure: Regenerate.
5010 * config.in: Regenerate.
5012 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
5014 * config/arc/arc.md (cstoresi4): Force operand into register.
5015 (arcset<code>): Fix predicate.
5016 (arcsetltu): Likewise.
5017 (arcsetgeu): Likewise.
5018 (arcsethi): Likewise.
5019 (arcsetls): Likewise.
5021 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5023 PR tree-optimization/69483
5024 * gimple-fold.c (canonicalize_constructor_val): Return NULL
5025 if base has error_mark_node type.
5027 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
5030 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
5031 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
5033 (vget_lane_f16): Handle big-endian.
5034 (vgetq_lane_f16): Likewise.
5035 (vset_lane_f16): Likewise.
5036 (vsetq_lane_f16): Likewise.
5037 * config/arm/iterators.md (VQXMOV): Add V8HF.
5038 (VDQ): Add V4HF and V8HF.
5039 (V_reg): Handle V4HF and V8HF.
5040 (Is_float_mode): Likewise.
5041 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
5042 neon_vdup_nv8hf): New patterns.
5043 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
5044 Use VD_LANE iterator.
5045 (neon_vld1_dup<mode>): Use VQ2 iterator.
5047 2016-01-26 Nathan Sidwell <nathan@acm.org>
5049 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
5050 (set_oacc_fn_attrib): Add IS_KERNEL arg.
5051 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
5052 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
5053 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
5054 (oacc_validate_dims): Add LEVEL arg, don't return level.
5055 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
5057 (execute_oacc_device_lower): Adjust, add more dump output.
5058 * tree-ssa-loop.c (gate_oacc_kernels): Use
5059 oacc_fn_attrib_kernels_p.
5060 * tree-parloops.c (create_parallel_loop): Adjust
5061 set_oacc_fn_attrib call.
5063 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5066 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
5067 (append_compiler_options): Handle -fcilkplus.
5068 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
5070 2016-01-26 Nick Clifton <nickc@redhat.com>
5073 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
5074 been marked as DECL_ONE_ONLY but we do not the means to make it
5075 so, then do not allow it to bind locally.
5077 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5080 * opts.h (parse_sanitizer_options): New prototype.
5081 * opts.c (sanitizer_opts): New array.
5082 (parse_sanitizer_options): New function.
5083 (common_handle_option): Use parse_sanitizer_options.
5085 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
5088 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
5089 alignment adjustment to ...
5090 (ix86_update_stack_boundary): Here. Don't over-align stack for
5092 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
5093 if __tls_get_addr is called.
5095 2016-01-26 Christian Bruel <christian.bruel@st.com>
5097 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
5099 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
5101 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
5103 2016-01-26 Richard Biener <rguenther@suse.de>
5106 * match.pd: Guard X * CST CMP 0 pattern with single_use.
5108 2016-01-26 Richard Biener <rguenther@suse.de>
5110 PR tree-optimization/69452
5111 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
5112 (move_computations_dom_walker::before_dom_children): Rename
5114 (move_computations_worker): This.
5115 (move_computations): Perform an RPO rather than a DOM walk.
5117 2016-01-26 Jakub Jelinek <jakub@redhat.com>
5120 * combine.c (combine_instructions): For REG_EQUAL note with
5121 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
5122 to the underlying register.
5123 * doc/rtl.texi (REG_EQUAL): Document the behavior of
5124 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
5126 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
5129 * config/aarch64/aarch64-builtins.c
5130 (aarch64_init_simd_builtin_types): Do not set structural
5131 equality to __Poly{8,16,64,128}_t types.
5133 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
5135 PR tree-optimization/69400
5136 * wide-int.cc (wi_pack): Take the precision as argument and
5137 perform canonicalization here rather than in the callers.
5138 Use the main loop to handle all full-width HWIs. Add a
5139 zero HWI if in_len isn't a full result.
5140 (wi::divmod_internal): Update accordingly.
5141 (wi::mul_internal): Likewise. Simplify.
5143 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
5144 Sebastian Pop <s.pop@samsung.com>
5146 * graphite-poly.c (apply_poly_transforms): Simplify.
5147 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
5148 (print_isl_map): Same.
5149 (print_isl_union_map): Same.
5150 (print_isl_schedule): New.
5151 (debug_isl_schedule): New.
5152 * graphite-dependences.c (scop_get_reads): Do not call
5153 isl_union_map_add_map that is undocumented isl functionality.
5154 (scop_get_must_writes): Same.
5155 (scop_get_may_writes): Same.
5156 (scop_get_original_schedule): Remove.
5157 (scop_get_dependences): Do not call isl_union_map_compute_flow that
5158 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
5159 (compute_deps): Remove.
5160 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
5161 (debug_schedule_ast): New.
5162 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
5163 set_separate_option.
5164 (graphite_regenerate_ast_isl): Add dump.
5165 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
5166 from scop->transformed_schedule.
5167 (graphite_regenerate_ast_isl): Add more dump.
5168 * graphite-optimize-isl.c (optimize_isl): Set
5169 scop->transformed_schedule. Check whether schedules are equal.
5170 (apply_poly_transforms): Move here.
5171 * graphite-poly.c (apply_poly_transforms): ... from here.
5172 (free_poly_bb): Static.
5173 (free_scop): Static.
5174 (pbb_number_of_iterations_at_time): Remove.
5175 (print_isl_ast): New.
5176 (debug_isl_ast): New.
5177 (debug_scop_pbb): New.
5178 * graphite-scop-detection.c (print_edge): Move.
5180 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5181 (build_scop_scattering): Remove.
5182 (create_pw_aff_from_tree): Assert instead of bailing out.
5183 (add_condition_to_pbb): Remove unused code, do not fail.
5184 (add_conditions_to_domain): Same.
5185 (add_conditions_to_constraints): Remove.
5186 (build_scop_context): New.
5187 (add_iter_domain_dimension): New.
5188 (build_iteration_domains): Initialize pbb->iterators.
5189 Call add_conditions_to_domain.
5192 (index_outermost_in_loop): New.
5193 (index_pbb_in_loop): New.
5194 (outermost_pbb_in): New.
5195 (add_in_sequence): New.
5196 (add_outer_projection): New.
5197 (outer_projection_mupa): New.
5198 (add_loop_schedule): New.
5199 (build_schedule_pbb): New.
5200 (build_schedule_loop): New.
5201 (embed_in_surrounding_loops): New.
5202 (build_schedule_loop_nest): New.
5203 (build_original_schedule): New.
5204 (build_poly_scop): Call build_original_schedule.
5205 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
5206 (free_poly_dr): Remove.
5207 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
5208 (free_poly_bb): Remove.
5209 (debug_loop_vec): Remove.
5210 (print_isl_ast): Declare.
5211 (debug_isl_ast): Declare.
5212 (scop_do_interchange): Remove.
5213 (scop_do_strip_mine): Remove.
5214 (scop_do_block): Remove.
5215 (flatten_all_loops): Remove.
5216 (optimize_isl): Remove.
5217 (pbb_number_of_iterations_at_time): Remove.
5218 (debug_scop_pbb): Declare.
5219 (print_schedule_ast): Declare.
5220 (debug_schedule_ast): Declare.
5221 (struct scop): Remove schedule. Add original_schedule,
5222 transformed_schedule.
5223 (free_gimple_poly_bb): Remove.
5224 (print_generated_program): Remove.
5225 (debug_generated_program): Remove.
5226 (unify_scattering_dimensions): Remove.
5227 * sese.c (print_edge): ... here.
5228 (print_sese): ... here.
5229 (debug_edge): ... here.
5230 (debug_sese): ... here.
5231 * sese.h (print_edge): Declare.
5232 (print_sese): Declare.
5233 (dump_edge): Declare.
5234 (dump_sese): Declare.
5236 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
5237 Sebastian Pop <s.pop@samsung.com>
5239 * Makefile.in: Set ISLVER in site.exp.
5241 2016-01-25 Jakub Jelinek <jakub@redhat.com>
5243 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
5244 DECL_VALUE_EXPR of new_var even for the non-array case. Look
5245 through DECL_VALUE_EXPR for expansion.
5247 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5249 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
5250 the frame info after reload completed.
5252 2016-01-25 Jeff Law <law@redhat.com>
5254 PR tree-optimization/69196
5255 PR tree-optimization/68398
5256 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
5257 tree-ssa-threadupdate.c.
5258 (determine_bb_domination_status): Prototype
5259 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
5260 (determine_bb_domination_status): No longer static.
5261 (valid_jump_thread_path): Remove code to detect characteristics
5262 of the jump thread path not associated with correctness.
5263 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
5264 Correct test for thread path length. Count PHIs for real operands as
5265 statements that need to be copied. Do not count ASSERT_EXPRs.
5266 Look at all the blocks in the thread path. Compute and selectively
5267 filter thread paths based on threading through the latch, threading
5268 a multiway branch or crossing a multiway branch.
5270 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5272 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
5273 decl with __attribute__ ((unused)) annotation.
5275 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
5278 * tree-vect-stmts.c (vectorizable_condition): Check vectype
5279 of operands is compatible with a statement vectype.
5281 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
5283 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
5284 improve wording for mixed storage order support.
5286 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
5288 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
5289 (vcvt_u64_f64): Likewise.
5290 (vcvta_s64_f64): Likewise.
5291 (vcvta_u64_f64): Likewise.
5292 (vcvtm_s64_f64): Likewise.
5293 (vcvtm_u64_f64): Likewise.
5294 (vcvtn_s64_f64): Likewise.
5295 (vcvtn_u64_f64): Likewise.
5296 (vcvtp_s64_f64): Likewise.
5297 (vcvtp_u64_f64): Likewise.
5299 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
5301 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
5302 (arc_init): Check validity mll64 option.
5303 (arc_save_restore): Use double load/store instruction.
5304 (arc_expand_movmem): Likewise.
5305 (arc_split_move): Don't split if we have double load/store
5306 instructions. Returns a boolean.
5307 (arc_process_double_reg_moves): Change function to return boolean
5308 instead of a sequence of instructions.
5309 (arc_dwarf_register_span): New function.
5310 * config/arc/arc-protos.h (arc_split_move): Change prototype.
5311 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
5312 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
5313 (*movdf_insn): Likewise.
5314 * config/arc/arc.opt (mll64): New option.
5315 * config/arc/predicates.md (even_register_operand): New predicate.
5316 * doc/invoke.texi (ARC Options): Add mll64 documentation.
5318 2016-01-25 Richard Biener <rguenther@suse.de>
5321 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
5322 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
5324 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
5326 2016-01-25 Richard Biener <rguenther@suse.de>
5328 PR tree-optimization/69376
5329 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
5331 (VN_INFO_ANTI_RANGE_P): New inline.
5332 (VN_INFO_RANGE_TYPE): Likewise.
5333 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
5334 SSA_NAME_ANTI_RANGE_P.
5335 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
5336 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5337 Properly query VN_INFO_RANGE_TYPE.
5339 2016-01-25 Nick Clifton <nickc@redhat.com>
5342 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
5344 2016-01-23 Tom de Vries <tom@codesourcery.com>
5346 PR tree-optimization/69426
5347 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
5350 2016-01-23 Jakub Jelinek <jakub@redhat.com>
5352 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
5353 "the the" with "the" in the comments.
5354 * ipa-devirt.c (build_type_inheritance_graph,
5355 update_type_inheritance_graph): Likewise.
5356 * tree.c (build_function_type_list_1): Likewise.
5357 * cfgloopmanip.c (scale_loop_profile): Likewise.
5358 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
5359 * gimple-ssa-split-paths.c
5360 (find_block_to_duplicate_for_splitting_paths): Likewise.
5361 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
5362 * expr.c (convert_move): Likewise.
5363 * var-tracking.c (vt_stack_adjustments): Likewise.
5364 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
5365 * tree-vrp.c (test_for_singularity): Likewise.
5367 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
5368 directly instead of building a temporary tree.
5371 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
5372 remove <algorithm> include.
5374 2016-01-22 Jakub Jelinek <jakub@redhat.com>
5377 * config/i386/i386.c: Include dojump.h.
5378 (expand_small_movmem_or_setmem,
5379 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
5381 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
5382 if dynamic_check != -1.
5384 2016-01-21 Jeff Law <law@redhat.com>
5387 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
5388 record_temporary_equivalences. Rewritten to avoid unnecessary calls
5389 into dominated_by_p.
5390 (cprop_into_successor_phis): Avoid unnecessary tests.
5392 2016-01-22 Richard Henderson <rth@redhat.com>
5395 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
5396 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
5398 2016-01-22 Michael Matz <matz@suse.de>
5400 * system.h (string, algorithm): Include only conditionally.
5401 (new): Include always under C++.
5402 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
5403 * final.c (toplevel): Ditto.
5404 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
5405 * genconditions.c (write_header): Make gencondmd.c define
5407 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
5409 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
5410 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
5412 2016-01-22 Christian Bruel <christian.bruel@st.com>
5415 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
5417 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5420 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
5421 define_insn_and_split. Ensure operands[1] and operands[0] do not
5422 get assigned the same register.
5424 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
5426 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
5428 2016-01-22 Christian Bruel <christian.bruel@st.com>
5430 * config/arm/arm-c.c (arm_pragma_target_parse):
5431 Remove warn_builtin_macro_redefined overwrite.
5433 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
5435 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
5436 flag_non_call_exceptions compatibility.
5438 2016-01-22 Jakub Jelinek <jakub@redhat.com>
5441 * dwarf2out.c (add_child_die_after): New function.
5442 (dwarf_qual_info_t): New type.
5443 (dwarf_qual_info): New variable.
5444 (qualified_die_p): New function.
5445 (modified_type_die): For -fdebug-types-section, ensure
5446 canonical order of qualifiers. Put qualified DIEs adjacent
5447 to the corresponding non-qualified type DIE and search there
5448 for existing qualified DIEs.
5450 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
5452 * doc/extend.texi (scalar_storage_order type attribute): Document
5453 restriction on type punning and aliasing, and remove future tense.
5455 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
5458 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
5461 2016-01-21 Jeff Law <law@redhat.com>
5464 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
5465 useless call to record_temporary_equivalences.
5466 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
5467 allocate 10 slots in the bb_path vector and let it grow as needed.
5468 (fsm_find_control_statement_thread_paths): Similarly for the next_path
5471 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
5473 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
5475 * configure: Regenerate.
5477 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
5479 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
5480 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
5482 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
5485 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
5486 drop EXPAND_INITIALIZER.
5487 * rtl.h (contains_symbolic_reference_p): Declare.
5488 * rtlanal.c (contains_symbolic_reference_p): New function.
5489 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
5490 a subtraction into a NOT if symbolic constants are involved.
5492 2016-01-21 Anton Blanchard <anton@samba.org>
5493 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5496 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
5498 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
5501 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5503 * config/microblaze/microblaze.c
5504 (get_branch_target): New.
5505 (insert_wic_for_ilb_runout): New.
5507 (microblaze_machine_dependent_reorg): New.
5508 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
5509 * config/microblaze/microblaze.md
5510 (UNSPEC_IPREFETCH): Define.
5511 (iprefetch): New pattern
5512 * config/microblaze/microblaze.opt
5513 (mxl-prefetch): New flag.
5515 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
5517 * config/microblaze/microblaze.h
5518 (FIXED_REGISTERS): Update in macro.
5519 (CALL_USED_REGISTERS): Update in macro.
5521 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
5523 PR rtl-optimization/68920
5524 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
5527 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
5529 PR rtl-optimization/68990
5530 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
5531 pseudo instead of inheritance ones.
5533 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
5534 Nick Clifton <nickc@redhat.com>
5538 * config/mips/mips.c (mips_compute_frame_info): Initialise
5539 args_size and hard_frame_pointer_offset fields of the frame
5540 structure before calling mips_global_pointer.
5542 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
5544 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
5546 * configure: Regenerate.
5548 2016-01-21 Richard Biener <rguenther@suse.de>
5550 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
5552 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5554 * config/s390/s390.c (s390_asm_declare_function_size): Add code
5555 to actually emit the .size directive.
5557 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
5558 Jakub Jelinek <jakub@redhat.com>
5562 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
5563 args array size by one to avoid buffer overflow.
5565 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
5567 * config/s390/s390.md (pool_section_start): Use switch_to_section
5568 to select proper read-only data section instead of hardcoding
5570 (pool_section_end): Use switch_to_section to match the above.
5572 2016-01-21 Richard Biener <rguenther@suse.de>
5574 PR tree-optimization/69378
5575 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
5576 (set_ssa_val_to): Use it for dominance checks taking into
5577 account not executable edges.
5579 2016-01-21 Jakub Jelinek <jakub@redhat.com>
5582 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
5583 for bitsize instead of GET_MODE_PRECISION (mode).
5585 2016-01-20 Martin Sebor <msebor@redhat.com>
5588 * extend.texi (__sync Builtins): Clarify the semantics of
5589 __sync_fetch_and_OP built-ins on pointers.
5590 (__atomic Builtins): Same.
5592 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5593 Sebastian Pop <s.pop@samsung.com>
5595 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
5596 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
5597 (is_valid_rename): Same.
5598 (translate_isl_ast_to_gimple::get_rename): Same.
5599 (translate_isl_ast_to_gimple::rename_all_uses): Same.
5600 (translate_isl_ast_to_gimple::rename_uses): Same.
5601 (get_new_name): Check for close_phi nodes.
5602 (copy_loop_phi_args): Use phi_node_kind.
5603 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
5604 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
5606 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5607 Sebastian Pop <s.pop@samsung.com>
5609 Revert commit r229783.
5610 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
5611 Remove use of parameter_rename_map.
5613 (copy_internal_parameters): Remove.
5614 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
5615 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
5616 (free_sese_info): Do not free parameter_rename_map.
5617 (set_rename): Do not use parameter_rename_map.
5618 (rename_uses): Update call to set_rename.
5619 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
5620 * sese.h (parameter_rename_map_t): Remove.
5621 (struct sese_info_t): Remove field parameter_rename_map.
5623 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5624 Sebastian Pop <s.pop@samsung.com>
5626 * graphite-isl-ast-to-gimple.c: Fix comment.
5627 * graphite-scop-detection.c (defined_in_loop_p): New.
5628 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
5629 names defined in loop.
5631 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5632 Sebastian Pop <s.pop@samsung.com>
5634 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
5635 Discard unstructured if-then-else regions.
5637 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5638 Sebastian Pop <s.pop@samsung.com>
5640 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
5641 (cleanup_loop_iter_dom): Remove.
5642 (build_loop_iteration_domains): Remove.
5643 (build_scop_context): Remove.
5644 (build_scop_iteration_domain): Remove.
5645 (add_loop_constraints): New.
5646 (build_iteration_domains): New.
5647 (build_poly_scop): Call build_iteration_domains.
5649 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5650 Sebastian Pop <s.pop@samsung.com>
5652 * graphite-scop-detection.c
5653 (scop_detection::harmful_loop_in_region): Free dom and loops.
5654 (scop_detection::loop_body_is_valid_scop): Free bbs.
5656 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5657 Sebastian Pop <s.pop@samsung.com>
5659 * graphite-scop-detection.c (record_loop_in_sese): New.
5660 (gather_bbs::before_dom_children): Call record_loop_in_sese.
5661 (build_scops): Remove call to build_sese_loop_nests.
5662 * sese.c (sese_record_loop): Remove.
5663 (build_sese_loop_nests): Remove.
5664 (new_sese_info): Remove region->loops.
5665 (free_sese_info): Same.
5666 * sese.h (sese_contains_loop): Same.
5667 (build_sese_loop_nests): Remove.
5668 (sese_contains_loop): Remove.
5670 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5671 Sebastian Pop <s.pop@samsung.com>
5673 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
5674 loop_is_valid_in_scop.
5675 (scop_detection::harmful_stmt_in_region): Renamed
5676 harmful_loop_in_region.
5677 Call loop_is_valid_in_scop.
5679 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5680 Sebastian Pop <s.pop@samsung.com>
5682 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
5685 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5686 Sebastian Pop <s.pop@samsung.com>
5688 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
5689 * graphite.h (struct poly_bb): Remove field is_reduction.
5690 (PBB_IS_REDUCTION): Remove.
5692 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
5693 Sebastian Pop <s.pop@samsung.com>
5695 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
5696 (add_pdr_constraints): Same.
5697 (scop_get_reads): Same.
5698 (scop_get_must_writes): Same.
5699 (scop_get_may_writes): Same.
5700 (scop_get_original_schedule): Same.
5701 (extend_schedule): Same.
5702 (apply_schedule_on_deps): Same.
5703 (carries_deps): Same.
5704 (compute_deps): Same.
5705 (scop_get_dependences): Same.
5706 * graphite-isl-ast-to-gimple.c
5707 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
5708 * graphite-optimize-isl.c (get_schedule_for_band): Same.
5709 (get_schedule_for_band_list): Same.
5710 (get_schedule_map): Same.
5711 (apply_schedule_map_to_scop): Same.
5712 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
5713 (build_loop_iteration_domains): Same.
5714 (add_condition_to_pbb): Same.
5715 (add_param_constraints): Same.
5716 (pdr_add_memory_accesses): Same.
5717 (pdr_add_data_dimensions): Same.
5719 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
5721 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
5724 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
5726 * common.opt (feliminate-dwarf2-dups): Replace references to
5727 "DWARF 2" with just "DWARF".
5728 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
5729 * doc/extend.texi: Likewise.
5730 * doc/cpp.texi: Likewise.
5731 * doc/invoke.texi: Likewise.
5732 (Option Summary): Add -gdwarf to list of Debugging Options.
5733 (Debugging Options): Document -gdwarf.
5734 * doc/contrib.texi: Spell "DWARF" like that.
5736 2016-01-21 Jakub Jelinek <jakub@redhat.com>
5738 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
5739 warning. Fix up formatting.
5742 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
5743 attempt to mark memory input operand addressable and
5744 call prepare_gimple_addressable in that case. Don't adjust
5745 input_location for diagnostics, use error_at instead.
5747 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
5749 * config/rs6000/ppc-auxv.h: New file.
5750 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
5752 (cpu_supports): Likewise.
5753 * config/rs6000/rs6000.c: include "ppc-auxv.h".
5754 (cpu_is_info): New variable.
5755 (cpu_supports_info): Likewise.
5756 (tcb_verification_symbol): Likewise.
5757 (cpu_builtin_p): Likewise.
5758 (cpu_expand_builtin): New function.
5759 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
5760 (rs6000_init_builtins): Likewise.
5761 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
5762 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
5763 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
5764 * configure: Regenerate.
5765 * config.in: Likewise.
5766 * doc/extend.texi (PowerPC Built-in Functions): Document
5767 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
5769 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
5772 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
5774 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
5777 2016-01-20 Richard Henderson <rth@redhat.com>
5783 * tree.c (tm_define_builtin): New.
5784 (find_tm_vector_type): New.
5785 (build_tm_vector_builtins): New.
5786 (build_common_builtin_nodes): Call it.
5788 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
5790 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
5791 (arm_fp_ok): Likewise.
5793 (arm_crypto): Likewise.
5795 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
5796 Richard Biener <rguenther@suse.de>
5798 PR tree-optimization/69328
5799 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
5800 vectors have same number of elements.
5801 (vectorizable_condition): Fix masked version recognition.
5803 2016-01-20 Richard Biener <rguenther@suse.de>
5805 PR tree-optimization/69345
5806 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
5807 (VN_INFO_PTR_INFO): Likewise.
5808 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
5809 info when it is equal between non-dominating SSA names.
5810 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5811 Make sure to look at original SSA infos.
5813 2016-01-20 Jeff Law <law@redhat.com>
5816 * config/m68k/predicates.md (pow2_m1_operand): New predicate
5818 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
5819 (pc_or_label_operand): New predicate.
5820 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
5821 tests for small integers that are 2^n - 1.
5823 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
5825 * doc/invoke.texi (Options Summary): Add '.' after @xref.
5827 2016-01-19 Jeff Law <law@redhat.com>
5830 * tree-ssa-threadbackwards.c
5831 (fsm_find_control_statement_thread_paths): Do not try to lookup
5832 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
5834 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
5836 * doc/lto.texi: Remove text that says only Gold has linker plugin
5839 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
5841 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
5842 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
5843 the DIE accordingly.
5844 (modified_type_die): Add REVERSE parameter and pass it recursively,
5845 as well as to base_type_die. Adjust presence check accordingly.
5846 (base_type_for_mode): Adjust call to modified_type_die.
5847 (add_type_attribute): Add REVERSE parameter and pass it to
5849 (generic_parameter_die): Adjust call to add_type_attribute.
5850 (add_scalar_info): Likewise.
5851 (add_subscript_info): Likewise.
5852 (gen_array_type_die): Likewise.
5853 (gen_descr_array_type_die): Likewise.
5854 (gen_entry_point_die): Likewise.
5855 (gen_enumeration_type_die): Likewise.
5856 (gen_formal_parameter_die): Likewise.
5857 (gen_subprogram_die): Likewise.
5858 (gen_variable_die ): Likewise.
5859 (gen_const_die): Likewise.
5860 (gen_field_die): Likewise.
5861 (gen_pointer_type_die): Likewise.
5862 (gen_reference_type_die): Likewise.
5863 (gen_ptr_to_mbr_type_die): Likewise.
5864 (gen_inheritance_die): Likewise.
5865 (gen_subroutine_type_die): Likewise.
5866 (gen_typedef_die): Likewise.
5867 (force_type_die): Adjust call to modified_type_die.
5869 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
5871 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
5872 flow throughout the file. Fix broken link to Objective-C 2.0
5874 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
5877 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5879 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
5881 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5884 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
5885 (maybe_record_node): Record cxa_pure_virtual as the only possible
5886 target if there are not ohter candidates.
5887 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
5889 2016-01-19 Richard Biener <rguenther@suse.de>
5891 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
5892 (get_memory_order): Likewise.
5894 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
5896 * tree-vect-stmts.c (vectorizable_store): Check
5899 2016-01-19 David Malcolm <dmalcolm@redhat.com>
5902 * gcc.c (driver::decode_argv): Add call to
5903 init_opts_obstack before init_options_struct.
5904 * opts.c (init_opts_obstack): Remove idempotency.
5905 (init_options_struct): Replace call to init_opts_obstack
5906 with a gcc_assert to verify that it has already been called.
5907 * toplev.c (toplev::main): Add call to init_opts_obstack before
5908 calls to init_options_struct.
5909 (toplev::finalize): Move cleanup of opts_obstack next to
5910 cleanup of save_decoded_options, clearing the latter, and
5911 save_decoded_options_count.
5913 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5916 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
5917 attribute to unconditional. Remove %? from output template.
5919 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5920 Jiong Wang <jiong.wang@arm.com>
5922 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
5923 generated from different expand order.
5925 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5927 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
5928 Add support for CCMP costing.
5930 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5932 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
5933 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
5934 (fccmpe<mode>): Likewise.
5935 (fcmp): Rename to fcmp and globalize pattern.
5937 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
5938 (aarch64_gen_ccmp_next): Add FP support.
5940 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
5942 * target.def (gen_ccmp_first): Update documentation.
5943 (gen_ccmp_next): Likewise.
5944 * doc/tm.texi (gen_ccmp_first): Update documentation.
5945 (gen_ccmp_next): Likewise.
5946 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
5947 expand_ccmp_expr_1. Improve comments.
5948 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
5949 (ccmp_ior<mode>): Remove pattern.
5950 (cmp<mode>): Remove expand.
5951 (cmp): Globalize pattern.
5952 (cstorecc4): Use cc_register.
5953 (mov<mode>cc): Remove ccmp_cc_register check.
5954 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
5955 Simplify after removal of CC_DNE/* modes.
5956 (aarch64_ccmp_mode_to_code): Remove.
5957 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
5958 In 'k' case use integer as condition.
5959 (aarch64_nzcv_codes): Remove inverted cases.
5960 (aarch64_code_to_ccmode): Remove.
5961 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
5962 comparison with CC register to be used in folowing CCMP/branch/CSEL.
5963 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
5964 pattern. Return the comparison with CC register. Invert conditions
5966 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
5967 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
5969 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5971 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5972 instrumented_version.
5974 2016-01-19 Richard Biener <rguenther@suse.de>
5976 PR tree-optimization/69336
5977 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
5978 handled components with get_ref_base_and_extent.
5979 (equal_mem_array_ref_p): Adjust.
5981 2016-01-19 Jakub Jelinek <jakub@redhat.com>
5984 * shrink-wrap.c: Include valtrack.h.
5985 (move_insn_for_shrink_wrap): Add DEBUG argument. If
5986 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
5987 in between insn and where it will be moved to. Call
5988 dead_debug_insert_temp.
5989 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
5990 first and dead_debug_local_finish at the end.
5991 For uses and defs bitmap, handle all regs in between REGNO and
5992 END_REGNO, not just the first one.
5994 2016-01-19 Richard Biener <rguenther@suse.de>
5996 PR tree-optimization/69352
5997 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
5998 (equal_mem_array_ref_p): Constrain size and max size properly.
5999 Compare the reverse flag.
6001 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
6003 * ira.c (ira): Update regstat data if we deleted insns.
6005 2016-01-19 Jakub Jelinek <jakub@redhat.com>
6007 PR rtl-optimization/68955
6008 PR rtl-optimization/64557
6009 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
6010 here. Fix up formatting.
6011 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
6013 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6016 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
6017 assume that the node has body.
6018 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
6021 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6023 * lto-streamer-out.c (lto_output): Do not stream instrumentation
6026 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6028 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
6029 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
6031 2016-01-19 Martin Jambor <mjambor@suse.cz>
6032 Martin Liska <mliska@suse.cz>
6033 Michael Matz <matz@suse.de>
6035 * Makefile.in (OBJS): Add new source files.
6036 (GTFILES): Add hsa.c.
6037 * common.opt (disable_hsa): New variable.
6038 (-Whsa): New warning.
6039 * config.in (ENABLE_HSA): New.
6040 * configure.ac: Treat hsa differently from other accelerators.
6041 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
6043 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
6044 * doc/install.texi (Configuration): Document --with-hsa-runtime,
6045 --with-hsa-runtime-include, --with-hsa-runtime-lib and
6047 * doc/invoke.texi (-Whsa): Document.
6048 (hsa-gen-debug-stores): Likewise.
6049 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
6050 to invoke offload compiler for hsa acclerator.
6051 * opts.c (common_handle_option): Determine whether HSA offloading
6052 should be performed.
6053 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
6054 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
6055 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
6056 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
6057 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
6058 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
6059 GF_OMP_FOR_KIND_GRID_LOOP.
6060 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
6061 (pp_gimple_stmt_1): Likewise.
6062 * gimple-walk.c (walk_gimple_stmt): Likewise.
6063 * gimple.c (gimple_build_omp_grid_body): New function.
6064 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
6065 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
6066 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
6067 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
6068 GF_OMP_TEAMS_GRID_PHONY.
6069 (gimple_statement_omp_single_layout): Updated comments.
6070 (gimple_build_omp_grid_body): New function.
6071 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
6072 (gimple_omp_for_grid_phony): New function.
6073 (gimple_omp_for_set_grid_phony): Likewise.
6074 (gimple_omp_parallel_grid_phony): Likewise.
6075 (gimple_omp_parallel_set_grid_phony): Likewise.
6076 (gimple_omp_teams_grid_phony): Likewise.
6077 (gimple_omp_teams_set_grid_phony): Likewise.
6078 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
6079 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
6080 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
6081 (BUILT_IN_GOMP_TARGET): Updated type.
6082 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
6083 (adjust_for_condition): New function.
6084 (get_omp_for_step_from_incr): Likewise.
6085 (extract_omp_for_data): Moved parts to adjust_for_condition and
6086 get_omp_for_step_from_incr.
6087 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
6088 (fixup_child_record_type): Bail out if receiver_decl is NULL.
6089 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
6090 (scan_omp_parallel): Do not create child functions for phony
6092 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
6093 (scan_omp_1_op): Checking assert we are not remapping to
6094 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
6095 (parallel_needs_hsa_kernel_p): New function.
6096 (expand_parallel_call): Register apprpriate parallel child
6097 functions as HSA kernels.
6098 (grid_launch_attributes_trees): New type.
6099 (grid_attr_trees): New variable.
6100 (grid_create_kernel_launch_attr_types): New function.
6101 (grid_insert_store_range_dim): Likewise.
6102 (grid_get_kernel_launch_attributes): Likewise.
6103 (get_target_argument_identifier_1): Likewise.
6104 (get_target_argument_identifier): Likewise.
6105 (get_target_argument_value): Likewise.
6106 (push_target_argument_according_to_value): Likewise.
6107 (get_target_arguments): Likewise.
6108 (expand_omp_target): Call get_target_arguments instead of looking
6109 up for teams and thread limit.
6110 (grid_expand_omp_for_loop): New function.
6111 (grid_arg_decl_map): New type.
6112 (grid_remap_kernel_arg_accesses): New function.
6113 (grid_expand_target_kernel_body): New function.
6114 (expand_omp): Call it.
6115 (lower_omp_for): Do not emit phony constructs.
6116 (lower_omp_taskreg): Do not emit phony constructs but create for them
6117 a temporary variable receiver_decl.
6118 (lower_omp_taskreg): Do not emit phony constructs.
6119 (lower_omp_teams): Likewise.
6120 (lower_omp_grid_body): New function.
6121 (lower_omp_1): Call it.
6122 (grid_reg_assignment_to_local_var_p): New function.
6123 (grid_seq_only_contains_local_assignments): Likewise.
6124 (grid_find_single_omp_among_assignments_1): Likewise.
6125 (grid_find_single_omp_among_assignments): Likewise.
6126 (grid_find_ungridifiable_statement): Likewise.
6127 (grid_target_follows_gridifiable_pattern): Likewise.
6128 (grid_remap_prebody_decls): Likewise.
6129 (grid_copy_leading_local_assignments): Likewise.
6130 (grid_process_kernel_body_copy): Likewise.
6131 (grid_attempt_target_gridification): Likewise.
6132 (grid_gridify_all_targets_stmt): Likewise.
6133 (grid_gridify_all_targets): Likewise.
6134 (execute_lower_omp): Call grid_gridify_all_targets.
6135 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
6136 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
6137 (tree_omp_clause): Added union field dimension.
6138 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
6139 * tree.c (omp_clause_num_ops): Added number of arguments of
6140 OMP_CLAUSE__GRIDDIM_.
6141 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
6142 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
6143 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
6144 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
6145 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
6146 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
6147 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
6148 * tree-pass.h (make_pass_gen_hsail): Declare.
6149 (make_pass_ipa_hsa): Likewise.
6150 * ipa-hsa.c: New file.
6151 * lto-section-in.c (lto_section_name): Add hsa section name.
6152 * lto-streamer.h (lto_section_type): Add hsa section.
6153 * timevar.def (TV_IPA_HSA): New.
6154 * hsa-brig-format.h: New file.
6155 * hsa-brig.c: New file.
6156 * hsa-dump.c: Likewise.
6157 * hsa-gen.c: Likewise.
6160 * toplev.c (compile_file): Call hsa_output_brig.
6161 * hsa-regalloc.c: New file.
6163 2016-01-18 Jeff Law <law@redhat.com>
6165 PR tree-optimization/69320
6166 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
6167 ranged object, do nothing if the RHS constant is not [0..1].
6168 (optimize_stmt): Comparing a boolean ranged object against a
6169 constant outside [0..1] results in a compile-time constant.
6171 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
6174 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
6176 * doc/invoke.texi (Invoking GCC): Add new section to menu.
6177 (Option Summary): Update to reflect new section and moved options.
6178 (C++ Dialect Options): Move -fstats to new section.
6179 (Debugging Options): Move all dump, statistics, and other GCC
6180 developer options to new section. Rewrite section introduction
6181 and re-order remaining options to put the more basic ones first.
6182 (Optimization Options): Move -fira-verbose and -flto-report* to
6184 (Developer Options): New section incorporating moved options.
6185 * doc/cppopts.texi (-dM): Update cross-reference.
6187 2016-01-18 Richard Henderson <rth@redhat.com>
6190 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
6191 operands to pseudo only if CSE is expected. Split long immediate
6192 operands only after reload, and for the stack pointer.
6193 (*add<GPI>3_pluslong): Remove.
6194 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
6195 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
6196 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
6197 (*add<GPI>3 peepholes): New.
6198 (*add<GPI>3 splitters): New.
6199 * config/aarch64/constraints.md (Upl): New.
6200 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
6202 2016-01-18 Richard Biener <rguenther@suse.de>
6204 PR tree-optimization/69297
6205 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
6207 (vect_bb_vectorization_profitable_p): Clear visited flag again.
6209 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
6212 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
6213 of mixind vector and scalar types.
6214 (fold_relational_const): Add handling of vector
6215 comparison with boolean result.
6216 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
6217 comparison of vector operands with boolean result for EQ/NE only.
6218 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
6219 (verify_gimple_cond): Likewise.
6220 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
6223 2016-01-18 Joseph Myers <joseph@codesourcery.com>
6225 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
6228 2016-01-18 Richard Biener <rguenther@suse.de>
6231 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
6233 2016-01-18 Tom de Vries <tom@codesourcery.com>
6235 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
6237 2016-01-18 Tom de Vries <tom@codesourcery.com>
6239 * omp-low.c (set_oacc_fn_attrib): Make extern.
6240 * omp-low.h (set_oacc_fn_attrib): Declare.
6241 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
6242 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
6243 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
6244 Add and handle function parameter oacc_kernels_p.
6245 (find_reduc_addr, get_omp_data_i_param): New function.
6246 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
6247 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
6248 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
6249 Calculate dominance info. Skip loops that are not in a kernels region
6250 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
6251 (pass_parallelize_loops::execute): Call parallelize_loops with
6252 oacc_kernels_p argument.
6253 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
6254 New member function.
6255 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
6256 * passes.def: Add argument to pass_parallelize_loops instantation.
6258 2016-01-18 Tom de Vries <tom@codesourcery.com>
6260 * tree-parloops.c (pass_parallelize_loops::execute): Allow
6261 pass_parallelize_loops to be run outside the loop pipeline.
6263 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
6265 * tree-scalar-evolution.c (follow_copies_to_constant): New.
6266 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
6268 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
6271 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
6272 using get_ref_base_and_extent.
6273 (equal_mem_array_ref_p): New.
6274 (hashable_expr_equal_p): Add call to previous.
6276 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
6279 * tree-sra.c (disqualified_constants, constant_decl_p): New.
6280 (sra_initialize): Allocate disqualified_constants.
6281 (sra_deinitialize): Free disqualified_constants.
6282 (disqualify_candidate): Update disqualified_constants when appropriate.
6283 (create_access): Scan for constant-pool entries as we go along.
6284 (scalarizable_type_p): Add check against type_contains_placeholder_p.
6285 (maybe_add_sra_candidate): Allow constant-pool entries.
6286 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
6287 (initialize_constant_pool_replacements): New.
6288 (sra_modify_assign): Avoid mangling assignments created by previous,
6289 and don't generate writes into constant pool.
6290 (sra_modify_function_body): Call initialize_constant_pool_replacements.
6292 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
6294 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
6296 (scalar_chain::convert_op): Likewise.
6297 * config/i386/i386.md (*andndi3_doubleword): New.
6299 2016-01-18 Richard Biener <rguenther@suse.de>
6301 PR tree-optimization/69170
6302 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
6303 building a vector from scalar results of a pattern stmt.
6305 2016-01-18 Jakub Jelinek <jakub@redhat.com>
6307 * haifa-sched.c (autopref_multipass_init): Work around
6308 -Wmaybe-uninitialized warning.
6310 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
6312 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
6313 against the constant 0.
6315 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6317 PR tree-optimization/68799
6318 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
6319 look up phi candidates in the statement-candidate map.
6320 (phi_add_costs): Likewise.
6321 (record_phi_increments): Likewise.
6322 (phi_incr_cost): Likewise.
6323 (ncd_with_phi): Likewise.
6324 (all_phi_incrs_profitable): Likewise.
6326 2016-01-17 Jakub Jelinek <jakub@redhat.com>
6328 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
6329 -Wmaybe-uninitialized warning.
6331 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
6333 * doc/invoke.texi (Invoking GCC): Add new section to menu.
6334 (Option Summary): Update to reflect new section and moved options.
6335 (C++ Dialect Options): Move -fvtable-verify and related options.
6336 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
6337 and profiling-related options.
6338 (Optimization Options): Move profile generation options and
6339 -fstack-protector and related options.
6340 (Instrumentation Options): New section incorporating moved options.
6341 (Code Generation Options): Move -finstrument-functions and
6342 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
6344 2016-01-16 Tom de Vries <tom@codesourcery.com>
6346 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
6348 2016-01-16 Tom de Vries <tom@codesourcery.com>
6350 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
6352 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
6354 * hash-table.h (hash_table::empty): Turn into an inline wrapper
6355 that checks whether the table is already empty. Rename the
6356 original implementation to...
6357 (hash_table::empty_slot): ...this new private function.
6359 2016-01-15 David Malcolm <dmalcolm@redhat.com>
6362 * diagnostic-show-locus.c (layout::print_source_line): Move x
6363 offset of line until after call to
6364 get_line_width_without_trailing_whitespace.
6366 2016-01-15 Jeff Law <law@redhat.com>
6368 PR tree-optimization/69270
6369 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
6370 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
6371 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
6372 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
6373 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
6374 ssa_name_has_boolean_range and constant_boolean_node.
6376 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
6378 PR rtl-optimization/69030
6379 * lra-spills.c (remove_pseudos): Check nrefs and make the function
6381 (spill_pseudos): Delete debug insn for dead pseudo.
6382 (lra_spill): Initiate spill_hard_reg and slots memory separately.
6384 2016-01-15 Jiong Wang <jiong.wang@arm.com>
6386 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
6388 (TYPES_UNOPUS): Likewise.
6389 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
6390 builtin type, from UNOP to UNOPUS.
6391 (lbtruncuv4sf): Likewise.
6392 (lbtruncuv2df): Likewise.
6393 (lrounduv2sf): Likewise.
6394 (lrounduv4sf): Likewise.
6395 (lrounduv2df): Likewise.
6396 (lroundusf): Likewise.
6397 (lroundusf): Likewise.
6398 (lceiluv2sf): Likewise.
6399 (lceiluv4sf): Likewise.
6400 (lceiluv2df): Likewise.
6401 (lceilusf): Likewise.
6402 (lceiludf): Likewise.
6403 (lflooruv2sf): Likewise.
6404 (lflooruv4sf): Likewise.
6405 (lflooruv2df): Likewise.
6406 (lfloorusf): Likewise.
6407 (lfloorudf): Likewise.
6408 (lfrintnuv2sf): Likewise.
6409 (lfrintnuv4sf): Likewise.
6410 (lfrintnuv2df): Likewise.
6411 (lfrintnusf): Likewise.
6412 (lfrintnudf): Likewise.
6413 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
6415 (vcvtq_u32_f32): Likewise.
6416 (vcvtq_u64_f64): Likewise.
6417 (vcvta_u32_f32): Likewise.
6418 (vcvtaq_u32_f32): Likewise.
6419 (vcvtaq_u64_f64): Likewise.
6420 (vcvtm_u32_f32): Likewise.
6421 (vcvtmq_u32_f32): Likewise.
6422 (vcvtmq_u64_f64): Likewise.
6423 (vcvtn_u32_f32): Likwise.
6424 (vcvtnq_u32_f32): Likewise.
6425 (vcvtnq_u64_f64): Likewise.
6426 (vcvtp_u32_f32): Likewise.
6427 (vcvtpq_u32_f32): Likewise.
6428 (vcvtpq_u64_f64): Likewise.
6429 (vcvtmd_u64_f64): Likewise.
6430 (vcvtms_u32_f32): Likewise.
6431 (vcvtad_u64_f64): Likewise.
6432 (vcvtas_u32_f32): Likewise.
6433 (vcvtnd_u64_f64): Likewise.
6434 (vcvtns_u32_f32): Likewise.
6435 (vcvtpd_u64_f64): Likewise.
6436 (vcvtps_u32_f32): Likewise.
6438 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6440 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
6441 CSEL of zero_extended registers.
6443 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6445 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
6446 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
6448 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6450 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
6451 false when argument string is not found in the attributes table
6454 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
6457 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
6458 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
6459 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
6462 2016-01-15 Richard Biener <rguenther@suse.de>
6464 PR tree-optimization/66856
6465 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
6466 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
6467 (vect_create_new_slp_node): Increment stmt reference count.
6468 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
6469 an SLP tree before swapping operands.
6470 (vect_build_slp_tree): Likewise.
6471 (destroy_bb_vec_info): Free stmt info after SLP instances.
6472 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
6473 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
6474 (STMT_VINFO_NUM_SLP_USES): New macro.
6476 2016-01-15 Richard Biener <rguenther@suse.de>
6479 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
6480 (add_linkage_name): ... here.
6481 (gen_typedef_die): Use add_linkage_name_raw instead of
6482 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
6485 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6487 * gimplify.c (oacc_default_clause): Decode reference and pointer
6488 types for both kernels and parallel regions.
6490 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
6493 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
6495 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6497 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
6498 (convert_scalars_to_vector): Likewise.
6500 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
6502 * doc/extend.texi (Type Traits): Fix grammar.
6504 2016-01-15 Martin Jambor <mjambor@suse.cz>
6506 * tree-inline.c (remap_decl): Use existing dclarations if
6507 remapping a type and prevent_decl_creation_for_types.
6508 (replace_locals_stmt): Do an initial remapping of non-VLA typed
6509 decls first. Do real remapping with
6510 prevent_decl_creation_for_types set.
6511 * tree-inline.h (copy_body_data): New field
6512 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
6515 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
6517 * config/s390/s390.opt (mmvcle): More verbose help text.
6519 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
6521 * config/s390/s390.opt: Add period to -mzvector option text.
6523 2016-01-15 Richard Biener <rguenther@suse.de>
6525 PR tree-optimization/68961
6526 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
6527 of invariants in stores again.
6529 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6531 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
6533 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
6535 * config/i386/i386.c (ix86_expand_branch): Don't split
6536 DI mode xor instruction to SI mode.
6538 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
6541 * ipa-icf.c (sem_function::merge): Virtual functions may become
6542 reachable even if they address is not taken and there are no
6545 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
6547 * lto-streamer-out.c (subtract_estimated_size): New function.
6548 (get_symbol_initial_value): Use it.
6550 2016-01-15 Christian Bruel <christian.bruel@st.com>
6553 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
6554 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
6555 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
6556 use add_builtin_function_ext_scope instead of add_builtin_function.
6557 (neon_set_p, neon_crypto_set_p): Remove.
6558 (arm_init_builtins): Always call arm_init_neon_builtins and
6559 arm_init_crypto_builtins.
6560 (arm_expand_builtin): Check that builtins are allowed for the arch.
6561 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
6562 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
6563 arm_init_neon_builtins call.
6565 2016-01-15 Richard Biener <rguenther@suse.de>
6567 PR tree-optimization/69117
6568 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
6569 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
6570 of the leader conservatively.
6571 (free_scc_vn): Restore original SSA name infos.
6573 2016-01-14 Jeff Law <law@redhat.com>
6575 PR tree-optimization/69270
6576 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
6577 single bit of precision, verify it's also unsigned.
6578 (record_edge_info): Use constant_boolean_node rather than fold_convert
6579 to convert boolean_true/boolean_false to the right type.
6581 2016-01-14 Richard Henderson <rth@redhat.com>
6584 * loop-doloop.c (record_reg_sets): New.
6585 (doloop_optimize): Reject the transform if the sequence
6586 clobbers registers live at the end of the loop block.
6587 (doloop_optimize_loops): Enable df_live if needed.
6589 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6591 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
6592 * gcc/config/rs6000/rs6000.c: Likewise.
6593 * gcc/config/rs6000/rs6000.h: Likewise.
6594 * gcc/config/rs6000/rs6000.md: Likewise.
6595 * gcc/doc/extend.texi: Likewsie.
6597 2016-01-14 Jeff Law <law@redhat.com>
6599 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
6602 2016-01-14 Richard Henderson <rth@redhat.com>
6606 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
6607 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
6608 instead of builtin_decl_declared_p to test for declaration.
6610 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
6612 * doc/loop.texi (Loop Analysis and Representation): Document
6613 loop_depth function.
6615 2016-01-14 Tom de Vries <tom@codesourcery.com>
6617 PR tree-optimization/68773
6618 * omp-low.c (expand_omp_target): Don't set force_output.
6619 * varpool.c (varpool_node::get_create): Same.
6620 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
6621 offload_funcs with force_output.
6623 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6626 * lra-eliminations.c (move_plus_up): Don't change anything if either
6627 the outer or inner subreg mode is not MODE_INT.
6628 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
6629 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
6631 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
6633 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
6634 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
6635 reduc_uplus_@var{m}): Remove.
6636 * expr.c (expand_expr_real_2): Remove expansion path for
6637 reduc_[us](min|max|plus) optabs.
6638 * optabs-tree.c (scalar_reduc_to_vector): Remove.
6639 * optabs-tree.h (scalar_reduc_to_vector): Remove.
6640 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
6641 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
6642 * tree-vect-loop.c (vectorizable_reduction): Remove test for
6643 reduc_[us](min|max|plus) optabs.
6645 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
6647 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
6648 (reduc_plus_scal_v2sf): New.
6649 (reduc_smax_v2sf): Rename to...
6650 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
6651 (reduc_smin_v2sf): Rename to...
6652 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
6654 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
6656 * alias.c (compare_base_symbol_refs): New function.
6657 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
6660 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6663 PR tree-optimization/69155
6664 * tree-complex.c: Include cfganal.h.
6665 (phis_to_revisit): New variable.
6666 (extract_component): Add phiarg_p argument. Assert that returned
6667 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
6668 (update_phi_components): Partly rewrite to use loop over real/imag
6669 components instead of code duplication. If extract_component returns
6670 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
6671 create_tmp_reg into the PHI node instead, and mention the phi triplet
6673 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
6674 in phis_to_revisit at the end.
6676 2016-01-14 Richard Biener <rguenther@suse.de>
6678 PR tree-optimization/68060
6679 * tree-vect-loop.c (vect_is_simple_reduction): Check the
6680 outer loop reduction is only used in the inner loop before
6681 detecting a double reduction.
6683 2016-01-14 Jakub Jelinek <jakub@redhat.com>
6686 * combine.c (expand_field_assignment): Punt if compute_mode is
6687 unsupported scalar mode.
6689 2016-01-14 Richard Biener <rguenther@suse.de>
6691 PR tree-optimization/66856
6692 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
6693 SLP node only if it built successfully.
6694 (vect_analyze_slp_instance): Adjust.
6696 2016-01-14 Jeff Law <law@redhat.com>
6698 PR tree-optimization/69270
6699 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
6700 (record_edge_info): Use it. Convert boolean_{true,false}_node
6703 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
6706 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
6707 use block_ultimate_origin
6708 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
6710 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
6712 * doc/invoke.texi (Submodel Options): Rename section to
6713 "Machine-Dependent Options" to better reflect its content.
6714 Rewrite introductory text to remove archaic CPU names.
6717 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
6719 * doc/invoke.texi (Code Gen Options): Move section up in file,
6720 before target-specific options. Update menu and option summary
6721 to reflect the new section ordering.
6723 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
6725 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
6726 (C++ Dialect Options): Add cross-reference to -std option.
6727 * doc/standards.texi (C++ Language): Document C++14 support.
6729 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
6731 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
6732 for pack/unpack functions for __ibm128.
6733 (PACK_IF): Likewise.
6734 (UNPACK_IF): Likewise.
6736 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
6737 support for __ibm128 pack/unpack functions.
6738 (rs6000_invalid_builtin): Likewise.
6739 (rs6000_init_builtins): Likewise.
6740 (rs6000_opt_masks): Likewise.
6742 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
6743 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
6745 (RS6000_BTM_COMMON): Likewise.
6747 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
6748 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
6749 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
6750 128-bit floating point. Add support for the double values to be
6751 in Altivec registers for TF/IF packing and unpacking, but restrict
6752 TD packing sub-fields to be FPR registers. Don't allow overlapped
6753 register support for packing. Allow pack inputs to be memory
6754 locations. Don't build generator functions for unpack<mode>_dm
6755 and unpack<mode>_nodm.
6756 (unpack<mode>_dm): Likewise.
6757 (unpack<mode>_nodm): Likewise.
6758 (pack<mode>): Likewise.
6760 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
6761 built-in functions to pack/unpack explicit __ibm128 values.
6762 (__builtin_unpack_ibm128): Likewise.
6764 * doc/extend.texi (PowerPC Built-in Functions): Document
6765 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
6767 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
6770 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
6771 Add new arg loc and pass it down as context.
6772 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
6773 to the location to use for the warning.
6774 (check_function_arguments): New arg loc. All callers changed. Pass
6775 it to check_function_nonnull.
6776 * c-common.h (check_function_arguments): Adjust declaration.
6778 2016-01-13 Jakub Jelinek <jakub@redhat.com>
6780 PR tree-optimization/69156
6781 * gimple.c (validate_type): Removed.
6782 (gimple_builtin_call_types_compatible_p): Use
6783 useless_type_conversion_p instead of validate_type.
6784 * value-prof.c (gimple_stringop_fixed_value): Fold
6785 icall_size to correct type.
6787 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
6789 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
6792 2016-01-13 Richard Henderson <rth@redhat.com>
6795 * target.def (builtin_tm_load, builtin_tm_store): Remove.
6796 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
6797 (ix86_builtin_tm_store): Remove.
6798 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6799 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6800 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
6801 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
6802 * doc/tm.texi: Rebuild.
6804 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
6805 (BUILT_IN_TM_MEMCPY_RTWN): New.
6806 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
6807 fallback from vector to integer helpers.
6808 (build_tm_load): Handle vector types directly, instead of
6810 (build_tm_store): Likewise.
6811 (expand_assign_tm): Prepare for register types not handled by
6812 the above. Copy them to memory and use memcpy.
6813 * tree.c (tm_define_builtin): New.
6814 (find_tm_vector_type): New.
6815 (build_tm_vector_builtins): New.
6816 (build_common_builtin_nodes): Call it.
6818 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
6820 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
6821 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
6823 2016-01-13 Tom de Vries <tom@codesourcery.com>
6825 PR tree-optimization/69169
6826 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
6827 handled_struct_type param.
6828 (create_variable_info_for, intra_create_variable_infos): Call
6829 create_variable_info_for_1 with extra arg.
6831 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
6833 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
6834 and "armv8.1-a+crc" entries.
6836 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
6839 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
6840 Change first operand predicate from register_or_constm1_operand
6841 to register_operand.
6842 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
6843 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
6844 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
6845 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
6846 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
6847 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
6848 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
6849 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
6850 comparison with constm1_rtx from vec_prefetch_gen part.
6852 2016-01-13 Richard Biener <rguenther@suse.de>
6854 PR tree-optimization/69013
6855 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
6856 Exchange assert for a test.
6858 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6861 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
6863 2016-01-13 Richard Biener <rguenther@suse.de>
6865 PR tree-optimization/69242
6866 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
6867 assert with a check.
6869 2016-01-13 Richard Biener <rguenther@suse.de>
6871 PR tree-optimization/69186
6872 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6873 Properly guard vect_update_misalignment_for_peel call.
6875 2016-01-12 Jeff Law <law@redhat.com>
6877 PR tree-optimization/pr67755
6878 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
6879 "need_profile_correction".
6880 (thread_block_1): Initialize new field to false by default. If we
6881 have multiple thread paths through a common joiner to different
6882 final targets, then set new field to true.
6883 (compute_path_counts): Only do count adjustment when it's really
6886 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
6888 * doc/invoke.texi (Spec Files): Move section down in file, past
6889 all command-line option descriptions.
6891 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6894 * doc/gty.texi: Remove documentation of mark_hook.
6895 * gengtype.c (struct write_types_data): Remove code to support
6896 mark_hook attribute.
6897 (walk_type): Likewise.
6898 (write_func_for_structure): Likewise.
6900 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
6902 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
6903 Directory Options, and -specs= to Overall Options.
6904 (Overall Options): Adjust similarly. Reorder to group related
6905 options together. Make -specs= cross-reference the spec file details.
6906 (Directory Options): Adjust similarly.
6908 2016-01-12 Jeff Law <law@redhat.com>
6910 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
6912 2016-01-12 Olivier Hainque <hainque@adacore.com>
6914 * gcc.c (spec_undefvar_allowed): New global.
6915 (process_command): Set to true when running for --version or --help,
6917 (getenv_spec_function): When the variable is not defined, use the
6918 variable name as the variable value if we're allowed not to issue
6921 2016-01-12 Bin Cheng <bin.cheng@arm.com>
6923 PR tree-optimization/68911
6924 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
6925 information computed for expression "init + nit * step".
6927 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
6929 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
6930 about name of GCC executable. Remove deleted node from menu.
6931 (Directory Options) <-B>: Remove cross-reference to deleted node.
6932 (Target Options): Delete section.
6934 2016-01-12 Christian Bruel <christian.bruel@st.com>
6937 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
6938 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
6940 2016-01-12 Jakub Jelinek <jakub@redhat.com>
6943 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
6944 aligned_mem is properly set for AVX512-VL floating point masked
6948 * ifcvt.c (cond_exec_process_if_block): When removing the last
6949 insn from then_bb, remove also any possible barriers that follow it.
6951 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
6955 * config/i386/iamcu.h (SIZE_TYPE): New macro.
6956 (PTRDIFF_TYPE): Likewise.
6957 (WCHAR_TYPE): Likewise.
6958 (WCHAR_TYPE_SIZE): Likewise.
6959 (STDINT_LONG32): Likewise.
6961 2016-01-12 Richard Biener <rguenther@suse.de>
6963 PR tree-optimization/69053
6964 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
6965 convert initial value for cond reductions.
6967 2016-01-12 Richard Biener <rguenther@suse.de>
6969 PR tree-optimization/69007
6970 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
6971 widen_sum after dot_prod and sad.
6973 2016-01-12 Richard Biener <rguenther@suse.de>
6975 PR tree-optimization/69168
6976 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
6977 pattern stmt SLP type.
6978 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
6979 end up unused so cope with that case.
6981 2016-01-12 Richard Biener <rguenther@suse.de>
6983 PR tree-optimization/69157
6984 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
6985 stmts def type only during analyze phase.
6986 (vectorizable_call): Likewise.
6987 (vectorizable_simd_clone_call): Likewise.
6988 (vectorizable_conversion): Likewise.
6989 (vectorizable_assignment): Likewise.
6990 (vectorizable_shift): Likewise.
6991 (vectorizable_operation): Likewise.
6992 (vectorizable_store): Likewise.
6993 (vectorizable_load): Likewise.
6995 2016-01-12 Richard Biener <rguenther@suse.de>
6997 PR tree-optimization/69174
6998 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
7000 (vectorizable_load): Properly compute the number of loads needed
7001 for permuted strided SLP loads and do not spuriously assign
7002 to SLP_TREE_VEC_STMTS.
7004 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
7006 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
7007 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
7008 (MD_EXEC_PREFIX): Remove.
7009 (MD_STARTFILE_PREFIX) Removee.
7010 (FILE_NAME_ABSOLUTE_P): Remove.
7011 (CPP_SPEC): Do not read macros from sys/version.h.
7012 (LINK_COMMAND_SPEC): Remove.
7013 (LOCAL_INCLUDE_DIR): Remove.
7014 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
7015 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
7016 (POST_LINK_SPEC): Define to invoke stubify after linker
7017 (LIBSTDCXX): Remove define
7018 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
7019 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
7020 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
7021 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
7022 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
7023 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
7024 (i386_djgpp_asm_named_section): Add propotype of new procedure
7026 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
7027 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
7028 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
7029 in config/i386/djgpp.h).
7030 (STANDARD_STARTFILE_PREFIX_2): Define identical to
7031 STANDARD_STARTFILE_PREFIX_1.
7032 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
7033 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
7034 installation errors.
7035 (MAX_OFILE_ALIGNMENT): Define to 128.
7036 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
7038 * config/i386/djgpp.c: New file. Add implementation of
7039 i386_djgpp_asm_named_section.
7041 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
7043 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
7044 Add rule for building djgpp.o.
7046 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7048 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
7049 (rtx_is_swappable_p): Reductions are swappable.
7050 (insn_is_swappable_p): V2DF reductions are swappable.
7052 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
7054 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
7055 reloads for other unsupported memory operands.
7057 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
7058 Jim Wilson <jim.wilson@linaro.org>
7061 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
7062 copy_to_mode_reg instead of force_reg.
7064 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
7067 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
7068 TARGET_80387 is true.
7070 2016-01-11 Jakub Jelinek <jakub@redhat.com>
7073 * lra-eliminations.c (move_plus_up): Only move plus up
7074 if subreg of the constant can be simplified into constant
7075 and use the simplified subreg of the constant instead of
7076 the original constant.
7078 * fold-const.c (fold_convertible_p): Don't return true
7079 for conversion of VECTOR_TYPE to same sized integral type.
7080 (fold_convert_loc): Fix up formatting. Fold conversion of
7081 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
7082 instead of NOP_EXPR.
7084 PR tree-optimization/69214
7085 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
7086 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
7089 PR tree-optimization/69207
7090 * tree-vect-slp.c (vect_get_constant_vectors): For
7091 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
7092 fold_convertible_p to vector_type's element type, and always
7093 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
7095 2016-01-11 Richard Biener <rguenther@suse.de>
7097 PR tree-optimization/69173
7098 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
7099 fixup the cycle if all stmts are in a pattern.
7101 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
7104 * alias.c (base_alias_check): Move check for addresses with
7105 alignment ANDs before the call for compare_base_decls.
7106 (memrefs_conflict_p): Return -1 for different decls
7107 that went through alignment adjustments.
7109 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7111 PR rtl-optimization/68796
7112 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
7113 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
7114 and QImode comparisons against zero with CC_NZmode.
7115 * config/aarch64/iterators.md (short_mask): New mode_attr.
7117 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
7119 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
7120 (<avx512>_store<mode>_mask): Likewise.
7122 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
7123 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7125 PR rtl-optimization/68841
7126 * ifcvt.c (struct noce_if_info): Add orig_x field.
7127 (bbs_ok_for_cmove_arith): Add to_rename parameter.
7128 Don't record conflicts on to_rename if it's present.
7129 Allow memory destinations in sets.
7130 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
7131 blocks, passing orig_x to the checks.
7132 (noce_process_if_block): Set if_info->orig_x appropriately.
7134 2016-01-11 Tom de Vries <tom@codesourcery.com>
7136 PR tree-optimization/69069
7137 * tree-parloops.c (create_parallel_loop): Add missing phi args.
7139 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
7141 PR rtl-optimization/68920
7142 * config/i386/i386.c (ix86_option_override_internal): Restrict number
7143 of conditional moves for RTL if-conversion to 1 for
7144 TARGET_ONE_IF_CONV_INSN.
7145 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
7146 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
7147 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
7148 parameter to restirct number of conditional moves for
7150 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
7151 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
7154 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
7157 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
7158 onepart vars. Fix typo in comment. Fix reversed condition in
7160 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
7163 * var-tracking.c (dump_onepart_variable_differences): New.
7164 (dataflow_set_different): If a detailed dump is requested,
7165 delay early returns and dump differences between onepart
7166 variables present before and after, and added variables.
7168 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
7171 * expr.c (expand_expr_real_1): For boolean vector constants
7172 with a scalar mode use const_scalar_mask_from_tree.
7173 (const_scalar_mask_from_tree): New.
7174 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
7175 assigned to a mask type to handle constants.
7177 2016-01-11 Martin Jambor <mjambor@suse.cz>
7180 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
7181 useless parameters if we cannot change function signature.
7183 2016-01-11 Martin Jambor <mjambor@suse.cz>
7186 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
7189 2016-01-11 Tom de Vries <tom@codesourcery.com>
7191 PR tree-optimization/69109
7192 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
7195 2016-01-11 Tom de Vries <tom@codesourcery.com>
7197 PR tree-optimization/69108
7198 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
7199 res is not used in a phi.
7201 2016-01-11 Yury Gribov <y.gribov@samsung.com>
7204 * common.opt (frandom-seed): Fix parameter name.
7205 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
7207 2016-01-11 Tom de Vries <tom@codesourcery.com>
7209 PR tree-optimization/69058
7210 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
7213 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
7215 * config/arc/arc.opt (mdiv-rem): Add period to the end.
7216 (mcode-density): Likewise.
7218 2016-01-10 Tom de Vries <tom@codesourcery.com>
7220 PR tree-optimization/69062
7221 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
7222 (parallelize_loops): Don't paralelize loop that has phi with address
7225 2016-01-10 Tom de Vries <tom@codesourcery.com>
7227 PR tree-optimization/69039
7228 * tree-parloops.c (try_create_reduction_list): Only allow single exit
7231 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
7234 * match.pd: Require target has function_c99_misc before doing
7235 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
7237 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
7239 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
7241 * configure: Regenerate.
7243 2016-01-09 Jakub Jelinek <jakub@redhat.com>
7246 PR tree-optimization/69097
7247 * fold-const.h (expr_not_equal_to): New prototype.
7248 * fold-const.c: Include stringpool.h and tree-ssanames.h.
7249 (expr_not_equal_to): New function.
7250 * match.pd (X % -Y is the same as X % Y): Don't optimize
7251 unless X is known not to be equal to minimum or Y is known
7252 not to be equal to -1.
7253 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
7254 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
7255 (simplify_stmt_using_ranges): Adjust caller.
7256 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
7257 substitute_and_fold.
7259 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
7261 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
7264 2016-01-08 Jakub Jelinek <jakub@redhat.com>
7266 PR tree-optimization/69167
7267 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
7268 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
7270 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
7272 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
7273 Richard Biener <rguenther@suse.de>
7275 PR tree-optimization/68707
7276 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
7277 instances that can be handled via vect_load_lanes.
7279 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
7281 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
7282 if we can't determine address equivalence.
7283 * alias.c (compare_base_decl): Update for changed return value of
7284 symtab_node::equal_address_to.
7286 2016-01-08 Jason Merrill <jason@redhat.com>
7290 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
7291 * expr.c (store_field): Not here.
7292 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
7293 call with TREE_ADDRESSABLE type.
7294 * tree-cfg.c (verify_gimple_call): Adjust.
7296 2016-01-08 Olivier Hainque <hainque@adacore.com>
7298 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
7301 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
7303 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
7304 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
7305 (reduc_smin_v2sf): Rename to...
7306 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
7307 (reduc_splus_v2sf): Rename to...
7308 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
7310 2016-01-08 Jakub Jelinek <jakub@redhat.com>
7312 PR tree-optimization/69162
7313 * gimplify.c (gimplify_va_arg_expr): Encode original type of
7314 valist argument in another argument.
7315 (gimplify_modify_expr): Adjust for the above change. Cleanup.
7316 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
7317 to determine the va_list type, build a MEM_REF instead of
7318 build_fold_indirect_ref.
7320 PR tree-optimization/69172
7321 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
7324 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
7326 PR tree-optimization/67781
7327 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
7328 and cmpnop in two steps: first the ones not accessed in original
7329 gimple expression in a endian independent way and then the ones not
7330 accessed in the final result in an endian-specific way.
7332 2016-01-08 Jakub Jelinek <jakub@redhat.com>
7334 PR tree-optimization/69083
7335 * tree-vect-slp.c (vect_get_constant_vectors): For
7336 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
7337 element type. If op is fold_convertible_p to vector_type's element
7338 type, use NOP_EXPR instead of VCE.
7340 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
7342 PR rtl-optimization/67778
7343 PR rtl-optimization/68634
7344 PR rtl-optimization/68909
7345 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
7346 block from the stack until done with it. Remove a superfluous
7347 bitmap set. Remove a superfluous bitmap test.
7349 2016-01-07 Martin Sebor <msebor@redhat.com>
7352 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
7353 constraint on the type of arguments.
7355 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
7357 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
7358 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
7359 unaligned_access on the gcc_options set.
7360 * config/arm/arm.c (arm_option_override_internal): Use
7361 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
7363 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
7366 * config/i386/i386.c (ix86_frame_pointer_required): Enable
7367 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
7369 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
7372 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
7375 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
7376 depending on frame_pointer_needed before remaining integer and SSE
7377 registers are saved.
7379 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
7382 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
7384 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
7387 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
7388 Use the "xBm" constraint.
7389 (float<sseintvecmodelower><mode>2<mask_name><round_name):
7391 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
7392 (sse_cvtsi2ssq<round_name>): Likewise.
7393 (sse_cvtss2si<round_name>): Likewise.
7394 (sse_cvtss2siq<round_name>): Likewise.
7395 (sse2_cvtsi2sdq<round_name>): Likewise.
7396 (sse2_cvtsd2si<round_name>): Likewise.
7397 (sse2_cvtsd2siq<round_name>): Likewise.
7398 * config/i386/subst.md (round_nimm_scalar_predicate): New
7401 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
7404 * varasm.c (make_decl_rtl): Mark invalid register vars as
7407 PR rtl-optimization/66206
7408 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
7409 All callers changed.
7411 2016-01-07 Jakub Jelinek <jakub@redhat.com>
7413 PR tree-optimization/69141
7414 * tree-ssa-pre.c: Include langhooks.h.
7415 (eliminate_dom_walker::before_dom_children): Use
7416 lang_hooks.decl_printable_name instead of
7417 cgraph_node::get ()->name ().
7420 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
7421 it and DECL_ALIGN too.
7423 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
7425 * config/mips/mips-ftypes.def: Sort to lexicographical order.
7427 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
7430 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
7431 depending on frame_pointer_needed before remaining integer and SSE
7432 registers are saved.
7434 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7436 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
7437 mode iterator with VSX_M2.
7438 (*p9_vecstore_<mode>): Likewise.
7439 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
7440 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
7441 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
7442 (define_split for VSX_LE128 stores): Likewise.
7443 (define_peephole2 for TImode LE swaps): Likewise.
7444 (define_split for VSX_LE128 post-reload stores): Likewise.
7446 2016-01-06 Marek Polacek <polacek@redhat.com>
7449 * convert.c (convert_to_integer_1): Adjust call to
7450 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
7451 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
7452 EXPR instead of ARG.
7453 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
7455 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7458 * doc/extend.texi (RL78 Variable Attributes): New section.
7460 2016-01-05 Marek Polacek <polacek@redhat.com>
7463 * builtins.c (get_memmodel): Use expansion point location rather than
7464 the input location. Call warning_at rather than warning.
7465 (expand_builtin_atomic_compare_exchange): Likewise.
7466 (expand_builtin_atomic_load): Likewise.
7467 (expand_builtin_atomic_store): Likewise.
7468 (expand_builtin_atomic_clear): Likewise.
7470 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
7473 * config/i386/i386.c (ix86_expand_vector_logical_operator):
7474 Replace nonimmediate_operand with vector_operand.
7475 * config/i386/predicates.md (vector_operand): New predicate.
7476 (general_vector_operand): Replace nonimmediate_operand with
7478 * config/i386/sse.md: Replace nonimmediate_operand with
7479 vector_operand and m constraint with Bm constraint on SSE
7480 patterns with 16-byte memory operand.
7481 * config/i386/subst.md (round_nimm_predicate): Replace
7482 nonimmediate_operand with vector_operand.
7483 (round_saeonly_nimm_predicate): Likewise.
7484 (round_saeonly_nimm_scalar_predicate): New.
7486 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
7489 * config/i386/constraints.md (Bm): New constraint.
7490 * config/i386/predicates.md (vector_memory_operand): New
7492 * config/i386/sse.md: Replace xm with xBm in plusminus and
7495 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7498 * doc/extend.texi (V850 Function Attributes): New section.
7499 (V850 Variable Attributes): New section.
7501 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
7504 * doc/extend.texi (MicroBlaze Function Attributes): Document
7505 interrupt_handler and fast_interrupt attributes.
7507 2016-01-05 Sergei Trofimovich <siarheit@google.com>
7510 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
7511 for local symbolic operands.
7512 * config/ia64/predicates.md (local_symbolic_operand64): New
7515 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7517 PR rtl-optimization/68651
7518 * combine.c (combine_simplify_rtx): Canonicalize x + x into
7521 2016-01-05 Nathan Sidwell <nathan@acm.org>
7523 * alias.c (compare_base_decls): Use symtab_node::get.
7525 2016-01-05 Nick Clifton <nickc@redhat.com>
7528 * ira-costs.c (copy_cost): Initialise the t_icode field of the
7529 secondary_reload_info structure.
7532 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
7533 decls if weak support is available.
7535 2016-01-04 Martin Sebor <msebor@redhat.com>
7537 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
7539 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
7541 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
7542 OPTION_MASK_P9_DFORM.
7544 * config/rs6000/constraints.md (wo constraint): New constraint for
7547 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
7549 (rs6000_init_hard_regno_mode_ok): Likewise.
7551 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
7554 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
7555 expanders not to have constraints. Add support for ISA 3.0 xxperm
7556 instruction. Add support for fusing xxlor with xxperm.
7557 (altivec_vperm_<mode>_internal): Likewise.
7558 (altivec_vperm_v8hiv16qi): Likewise.
7559 (altivec_vperm_<mode>v16q): Likewise.
7560 (altivec_vperm_<mode>_uns): Likewise.
7561 (vperm_v8hiv4si): Likewise.
7562 (vperm_v16qiv8hi): Likewise.
7564 * doc/md.texi (RS/6000 constraints): Document wo constraint.
7566 2016-01-04 Jakub Jelinek <jakub@redhat.com>
7568 Update copyright years.
7570 * gcc.c (process_command): Update copyright notice dates.
7571 * gcov-dump.c (print_version): Ditto.
7572 * gcov.c (print_version): Ditto.
7573 * gcov-tool.c (print_version): Ditto.
7574 * gengtype.c (create_file): Ditto.
7575 * doc/cpp.texi: Bump @copying's copyright year.
7576 * doc/cppinternals.texi: Ditto.
7577 * doc/gcc.texi: Ditto.
7578 * doc/gccint.texi: Ditto.
7579 * doc/gcov.texi: Ditto.
7580 * doc/install.texi: Ditto.
7581 * doc/invoke.texi: Ditto.
7583 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7585 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
7586 modes larger than TImode as TImode if NEON is not enabled.
7588 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7591 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
7592 mode for %f0-%f31 only if TARGET_FPU.
7594 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
7597 * config/sparc/sparc.c (scan_record_type): Take into account subfields
7598 to compute the PACKED_P predicate.
7599 (function_arg_record_value): Minor tweaks.
7601 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
7603 * doc/install.texi (--with-multilib-list): Describe the meaning of the
7604 option for arm*-*-* targets.
7606 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
7608 * doc/extend.texi (Common Function Attributes): Move docs for
7609 MSP430-specific attributes to....
7610 (MSP430 Function Attributes): ...here. Delete the redundant
7611 entries and copy-edit the remaining text.
7612 (MSP430 Variable Attributes): Use uniform format for index
7613 entries and add a cross-reference to the corresponding function
7616 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
7618 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
7620 (x86 Options): Likewise.
7622 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
7626 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
7627 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
7628 to corresponding attribute.
7630 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
7632 * doc/extend.texi (Common Function Attributes) <noplt>: Move
7633 to correct alphabetization of table. Copy-edit and correct
7635 <stack_protect>: Likewise.
7636 <target_clones>: Likewise.
7638 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
7639 Correct punctuation.
7640 (Code Gen Options) <-fno-plt>: Copy-edit.
7642 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7645 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
7646 SI values. Explicitly convert SI to DI and vice-versa.
7648 2016-01-01 Jakub Jelinek <jakub@redhat.com>
7650 PR tree-optimization/69070
7651 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
7652 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
7655 * ubsan.c (ubsan_instrument_float_cast): Call
7656 initialize_sanitizer_builtins.
7659 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
7661 Copyright (C) 2016 Free Software Foundation, Inc.
7663 Copying and distribution of this file, with or without modification,
7664 are permitted in any medium without royalty provided the copyright
7665 notice and this notice are preserved.