1 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
4 * config/pa/pa.md (bswapdi2): Use a scratch register.
6 2016-03-24 Richard Henderson <rth@redhat.com>
9 * fold-const.c (extract_muldiv_1): Correct test for multiplication
12 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
14 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
15 using ix86_expand_binary_operator instead of gen_andsi3.
17 2016-03-24 Richard Biener <rguenther@suse.de>
19 PR tree-optimization/70396
20 * tree-vect-stmts.c (vectorizable_comparison): Use
21 get_vectype_for_scalar_type.
23 2016-03-24 Richard Biener <rguenther@suse.de>
26 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
29 2016-03-24 Richard Biener <rguenther@suse.de>
31 PR tree-optimization/70372
32 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
33 build_all_ones_cst to also handle vector types correctly.
35 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
38 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
41 2016-03-23 Marek Polacek <polacek@redhat.com>
44 * doc/invoke.texi: Document -Wignored-attributes.
46 2016-03-23 Bin Cheng <bin.cheng@arm.com>
48 PR tree-optimization/69042
49 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
50 parameter from 30 to 40.
52 2016-03-23 Bin Cheng <bin.cheng@arm.com>
54 PR tree-optimization/69042
55 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
56 for use with constant offset stripped in base.
58 2016-03-23 Richard Biener <rguenther@suse.de>
61 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
62 mode compatibility check.
63 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
65 2016-03-23 Jeff Law <law@redhat.com>
67 PR tree-optimization/64058
68 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
70 (struct ssa_conflicts): Move up earlier in the file.
71 (conflicts_, var_map_): New static variables.
72 (initialize_conflict_count): New function to initialize the
73 CONFLICT_COUNT field for each conflict pair.
74 (compare_pairs): Lazily initialize the conflict count and use it
75 as the first tie-breaker.
76 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
77 and wipe conflicts_ and map_ around the call to qsort. Remove
78 special case for 2 coalesce pairs.
79 * bitmap.c (bitmap_count_unique_bits): New function.
80 (bitmap_count_bits_in_word): New function, extracted from
82 (bitmap_count_bits): Use bitmap_count_bits_in_word.
83 * bitmap.h (bitmap_count_unique_bits): Declare it.
85 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
88 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
89 transparent alias chain for decl assembler name.
90 * config/sol2.c (solaris_assemble_visibility): Likewise.
92 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
94 * config/arm/arm1020e.md (1020call_op): Reduce reservation
96 (v10_fdivs): Likewise.
97 (v10_fdivd): Likewise.
99 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
102 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
103 to not call fclose twice on file.
105 2016-03-23 Jakub Jelinek <jakub@redhat.com>
107 PR tree-optimization/70354
108 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
109 oprnd0 is wider than oprnd1 and there is a cast from the wider
110 type to oprnd1, mask it with the mask of the narrower type.
113 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
114 Optimize TARGET_STV splitters, if high or low word of last argument
117 2016-03-22 Jeff Law <law@redhat.com>
120 tree-ssa-threadbackward.c
121 (fsm_find_control_statement_thread_paths): Correctly distinguish
122 between old style jump threads vs FSM jump threads.
124 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
127 * config/i386/i386.c (scalar_chain::convert_op): Support
128 uninitialized register usage case.
130 2016-03-22 Richard Biener <rguenther@suse.de>
133 * genmatch.c (gen_transform): Adjust last parameter to a three-state
135 (capture::gen_transform): ... to change behavior when substituting
136 a condition into cond or not-cond expr context.
137 (dt_simplify::gen_1): Adjust.
138 * gimple-match-head.c: Include gimplify.h for unshare_expr.
139 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
140 last change and instead change to
141 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
142 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
144 2016-03-22 Anthony Green <green@moxielogic.com>
146 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
147 issue for moxiebox targets.
148 (CC1PLUS_SPEC): Ditto.
150 2016-03-22 Richard Biener <rguenther@suse.de>
153 * fold-const.c (extract_muldiv_1): Properly perform multiplication
156 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
158 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
160 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
163 * config/i386/i386.c (def_builtin): Handle
164 OPTION_MASK_ISA_AVX512VL to be and-ed with other
166 (const struct builtin_description bdesc_special_args[]):
167 Remove duplicate ISA bits.
169 2016-03-22 Jakub Jelinek <jakub@redhat.com>
172 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
173 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
174 in a way that works also for AVX512BW.
177 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
178 instead of source if operands[1] is xmm16 and above and
179 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
180 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
183 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
184 on assign if (*from_p) is a comparison, set it to
185 TREE_NO_WARNING (*from_p).
187 2016-03-21 Jakub Jelinek <jakub@redhat.com>
190 * lra.c (restore_scratches): Ignore deleted insns.
192 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
193 Jakub Jelinek <jakub@redhat.com>
195 PR tree-optimization/70317
196 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
199 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
202 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
205 (movti): Use general_operand for operand 1 predicate.
207 2016-03-21 Martin Liska <mliska@suse.cz>
209 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
211 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
213 2016-03-21 Martin Liska <mliska@suse.cz>
216 * ipa-icf.c (sem_function::parse): Skip static
217 constructors and destructors.
219 2016-03-21 Jakub Jelinek <jakub@redhat.com>
222 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
223 function-like macro, peek following token(s) if it is followed
224 by CPP_OPEN_PAREN token with optional padding in between, and
225 if not, don't treat it like a macro.
227 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
228 Alexander Monakov <amonakov@ispras.ru>
230 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
231 for the stabs debug format.
233 2016-03-21 Richard Biener <rguenther@suse.de>
235 PR tree-optimization/70310
236 * tree-vect-generic.c (expand_vector_condition): Fold the built
239 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
242 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
243 Block third alternative for AVX-512VL target,
245 2016-03-21 Martin Liska <mliska@suse.cz>
248 * hsa-brig.c (emit_function_directives): Mark unemitted
249 global variables for emission.
250 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
251 (get_symbol_for_decl): Likewise.
252 * hsa.h (struct hsa_symbol): New flag.
254 2016-03-21 Richard Biener <rguenther@suse.de>
256 PR tree-optimization/70288
257 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
258 we do not estimate unsimplified all-constant conditionals or
259 switches as optimized away.
261 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
263 PR rtl-optimization/69102
264 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
265 when we have a readonly dependency context.
267 2016-03-18 Jeff Law <law@redhat.com>
269 PR rtl-optimization/70263
270 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
271 (update_equiv_regs): When trying to move a store to after the insn
272 that sets the source of the store, make sure the store occurs after
273 the insn that sets the source of the store. When successful note
274 the REG_EQUIV note created in the dump file.
276 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
277 Bernd Schmidt <bschmidt@redhat.com>
279 * doc/extend.texi: Document more potential problems with basic asms.
281 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
283 PR rtl-optimization/70278
284 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
287 2016-03-18 Jason Merrill <jason@redhat.com>
289 * calls.c (load_register_parameters): Fix zero size sibcall logic.
291 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
293 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
296 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
298 PR tree-optimization/70252
299 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
300 boolean vector has a proper number of elements.
301 (supportable_narrowing_operation): Likewise.
303 2016-03-18 Tom de Vries <tom@codesourcery.com>
306 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
308 2016-03-18 Jakub Jelinek <jakub@redhat.com>
310 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
311 instead of replace_rtx for DEBUG_INSNs.
313 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
315 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
316 load type reservations.
318 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
321 * config/pa/constraints.md: Revert 2015-02-13 change. Use
322 define_constraint for "Q" and "T" constraints.
324 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
326 Tweak the pipeline model for Exynos M1
328 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
331 2016-03-17 David Malcolm <dmalcolm@redhat.com>
334 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
335 where one or both locations aren't within a line_map.
337 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
340 * opts.c (finish_options): Don't set flag_pie to the default if
341 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
344 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
346 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
347 true as ALL_REGS argument to replace_rtx.
349 2016-03-17 Richard Biener <rguenther@suse.de>
352 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
355 2016-03-17 Jakub Jelinek <jakub@redhat.com>
358 * rtl.h (replace_rtx): Add ALL_REGS argument.
359 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
360 equality and assert mode is the same, instead of just rtx pointer
362 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
363 true as ALL_REGS argument to replace_rtx.
365 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
367 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
368 for boolean vector with vector mode only.
369 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
371 2016-03-17 Nick Clifton <nickc@redhat.com>
374 * config/rx/rx.c (rx_print_integer): Print negative constants in
377 2016-03-17 Jakub Jelinek <jakub@redhat.com>
380 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
382 2016-03-16 Richard Henderson <rth@redhat.com>
383 Richard Biener <rguenth@suse.de>
388 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
389 first operand as is_gimple_condexpr.
394 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
395 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
396 Do not gimplify the result.
397 (do_unop): Adjust call to tree_vec_extract.
398 (do_binop): Likewise.
399 (do_compare): Likewise.
400 (do_plus_minus): Likewise.
401 (do_negate): Likewise.
402 (expand_vector_condition): Likewise.
405 2016-03-16 Richard Henderson <rth@redhat.com>
408 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
409 (aarch64_classify_address): Use it.
410 (aarch64_legitimize_address): Force all subexpressions of PLUS
411 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
413 2016-03-16 Jakub Jelinek <jakub@redhat.com>
414 Richard Biener <rguenth@suse.de>
417 * rtlanal.c (replace_rtx): For REG, if from is a REG,
418 return to even if only REGNO is equal, and assert
421 2016-03-11 Jeff Law <law@redhat.com>
423 PR rtl-optimization/70224
424 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
426 2016-03-16 Richard Henderson <rth@redhat.com>
429 * function.h (struct function): Add has_forced_label_in_static.
430 * gimplify.c (force_labels_r): Set it.
431 * lto-streamer-in.c (input_struct_function_base): Read it.
432 * lto-streamer-out.c (output_struct_function_base): Write it.
433 * tree-inline.c (has_label_address_in_static_1): Remove.
434 (copy_forbidden): Remove fndecl parameter; test
435 has_forced_label_in_static.
436 (inline_forbidden_p): Update call to copy_forbidden.
437 (tree_versionable_function_p): Likewise.
438 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
439 (chkp_versioning): Likewise.
440 * tree-inline.h (copy_forbidden): Update decl.
442 2016-03-16 Marek Polacek <polacek@redhat.com>
445 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
446 function being thunked if the result type doesn't have fixed size.
447 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
448 doesn't have fixed size.
450 2016-03-16 Bin Cheng <bin.cheng@arm.com>
452 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
453 reporting malformed loop nest.
455 2016-03-16 Tom de Vries <tom@codesourcery.com>
458 * ipa-devirt.c (possible_polymorphic_call_targets): Move
459 nodes.length () == 1 test to before first nodes[0] access.
461 2016-03-16 Tom de Vries <tom@codesourcery.com>
463 PR tree-optimization/68715
464 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
467 2016-03-16 Tom de Vries <tom@codesourcery.com>
469 PR tree-optimization/68809
470 * graphite-scop-detection.c (same_close_phi_node): Test if result types
473 2016-03-16 Carlos O'Donell <carlos@redhat.com>
474 Sandra Loosemore <sandra@codesourcery.com>
476 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
477 on leaf attribute. Mention ELF interposition problems.
479 2016-03-16 Alan Modra <amodra@gmail.com>
481 PR rtl-optimization/69195
482 PR rtl-optimization/47992
483 * ira.c (indirect_jump_optimize): Ignore artificial defs.
486 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
489 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
491 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
493 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
495 2016-03-15 Jakub Jelinek <jakub@redhat.com>
497 PR rtl-optimization/70222
498 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
499 optimization if mode is different from result_mode, queue up masking
500 of the result in outer_op. Formatting fix.
503 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
506 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
508 PR rtl-optimization/69032
509 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
510 looping backwards over basic block insns.
512 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
515 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
516 to non-speculative when propagating trap bits.
518 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
520 PR rtl-optimization/63384
521 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
524 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
527 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
528 factored out from ...
529 (sched_analyze_insn): ... here.
530 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
531 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
532 get_implicit_reg_pending_clobbers in it.
533 (setup_id_reg_sets): Use setup_id_implicit_regs.
534 (deps_init_id): Ditto.
536 2016-03-15 Tom de Vries <tom@codesourcery.com>
539 * cgraph.c (cgraph_node::get_body): Save, reset and restore
541 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
542 execute_function_dump.
543 (execute_one_pass): Don't dump function if it will be dumped after ipa
546 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
548 * genrecog.c (match_pattern_2): If pred is NULL don't call
549 safe_predicate_mode on it.
551 2016-03-14 Jakub Jelinek <jakub@redhat.com>
554 * lra-constraints.c (delete_move_and_clobber): Change assertion
555 to also allow dregno == 0.
557 2016-03-14 Richard Henderson <rth@redhat.com>
560 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
561 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
562 (reassociate_bb): Use optimize_vec_cond_expr; avoid
563 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
566 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
569 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
571 (lra_create_live_ranges_1): initialize hard register biggest_mode to
573 * lra-constraints.c (split_reg): For hard regs, try to find the
574 biggest single-register mode used in the function.
576 2016-03-14 Richard Biener <rguenther@suse.de>
578 PR tree-optimization/56365
579 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
580 constants to compare against.
582 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
585 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
586 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
587 (define_split for the GPR case): Use int_reg_operand instead of
588 gpc_reg_operand for the output.
590 2016-03-14 Tom de Vries <tom@codesourcery.com>
592 PR tree-optimization/70045
593 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
594 create_empty_if_region_on_edge argument.
596 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
598 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
599 (STACK_CHECK_PROTECT): Likewise.
600 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
601 (STACK_CHECK_PROTECT): Likewise.
602 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
603 (STACK_CHECK_PROTECT): Likewise.
604 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
605 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
606 (STACK_CHECK_PROTECT): Likewise.
608 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
610 PR rtl-optimization/69307
611 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
612 registers in modes that span more than one register.
614 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
617 * lra-constraints.c (delete_move_and_clobber): New.
618 (remove_inheritance_pseudos): Use it.
620 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
623 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
624 the libcall is LCT_THROW.
625 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
626 for the checking routine.
628 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
631 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
632 optimization if we have direct move.
633 (roundu32<mode>2_fprs): Likewise.
635 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
638 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
640 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
641 Arguments swapped. All callers changed. Take reg_renumber into
642 account, and Calculate and compare register ranges for hard regs.
644 2016-03-11 Jeff Law <law@redhat.com>
646 PR tree-optimization/70190
647 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
648 Handle cases where we can not extract the taken edge, even though we
649 found a constant value.
651 PR tree-optimization/64058
652 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
653 (num_coalesce_pairs): Move up earlier in file.
654 (find_coalesce_pair): Initialize the INDEX field for each pair
656 (compare_pairs): No longer sort on the elements in each pair.
657 Instead break ties with the index of the coalesce pair.
659 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
662 * config/aarch64/aarch64-protos.h
663 (aarch64_save_restore_target_globals): New prototype.
664 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
665 Call the above when popping pragma.
666 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
668 (aarch64_set_current_function): Rewrite using the above.
670 2016-03-11 Jakub Jelinek <jakub@redhat.com>
672 PR tree-optimization/70177
673 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
674 (extract_ops_from_tree): ... this. In the 2 argument
675 overload remove _1 suffix.
676 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
677 (extract_ops_from_tree): ... this.
678 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
680 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
681 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
682 extract_ops_from_tree instead of 2 operand one.
684 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
686 PR tree-optimization/70013
687 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
688 for constant-pool entries.
690 2016-03-11 Jakub Jelinek <jakub@redhat.com>
692 PR rtl-optimization/70174
693 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
694 followed by gen_lowpart on force_reg instead of just gen_lowpart.
696 PR tree-optimization/70169
697 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
698 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
701 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
702 Jakub Jelinek <jakub@redhat.com>
705 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
706 of uninitialized values.
708 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
710 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
712 ("*trunctddd2"): New pattern definition.
713 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
716 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
718 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
719 definitions for BFP and DFP rounding modes.
720 ("fixuns_truncdddi2", "fixuns_trunctddi2")
721 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
722 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
723 ("fix_trunctf<mode>2"): Use the new constants instead of magic
726 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
728 * config/s390/constraints.md: Adjust comment.
729 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
730 s390_decompose_addrstyle_without_index.
731 * config/s390/predicates.md (shift_count_or_setmem_operand):
732 Rename to setmem_operand.
733 * config/s390/s390-protos.h
734 (s390_decompose_shift_count): Rename to
735 s390_decompose_addrstyle_without_index.
736 * config/s390/s390.c (s390_decompose_shift_count)
737 (s390_mem_constraint, print_shift_count_operand)
738 (print_operand_address, print_operand): Rename
739 s390_decompose_shift_count to
740 s390_decompose_addrstyle_without_index and rename
741 print_shift_count_operand to print_addrstyle_operand troughout the
743 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
744 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
745 Rename shift_count_or_setmem_operand to setmem_operand.
746 * config/s390/vx-builtins.md ("vec_insert<mode>")
747 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
750 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
753 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
754 Handle overlapping retval and newval.
756 2016-03-10 Nick Clifton <nickc@redhat.com>
759 * config/aarch64/aarch64.c
760 (aarch64_override_options_after_change_1): When forcing
761 flag_omit_frame_pointer to be true, use a special value that can
762 be detected if this function is called again, thus preventing
763 flag_omit_leaf_frame_pointer from being forced to be false.
765 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
767 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
768 Set x_flag_omit_leaf_frame_pointer when handling
769 -momit-leaf-frame-pointer.
771 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
774 * cgraph.c (cgraph_node::dump): Dump split_part and
775 indirect_call_target.
776 * cgraph.h (cgraph_node): Add indirect_call_target flag.
777 * ipa.c (has_addr_references_p): Cleanup.
778 (is_indirect_call_target_p): New.
779 (walk_polymorphic_call_targets): Do not mark virtuals that may be
780 called indirectly as local.
781 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
783 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
786 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
789 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
792 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
794 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
797 * tree.c (need_assembler_name_p): Only record main variant type names.
799 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
802 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
803 Always define to 0 or 1.
804 (TARGET_FIX_ERR_A53_843419): New macro.
805 * config/aarch64/aarch64-elf-raw.h
806 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
807 * config/aarch64/aarch64-linux.h: Likewise.
808 * config/aarch64/aarch64.c
809 (aarch64_override_options_after_change_1): Do not default
810 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
812 (aarch64_attributes): Handle fix-cortex-a53-843419.
813 (aarch64_can_inline_p): Likewise.
814 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
816 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
817 Jakub Jelinek <jakub@redhat.com>
819 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
820 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
821 DECL_COMMONS if flag_unconstrained_commons is set.
822 * tree-dfa.c (get_ref_base_and_extent): Likewise.
823 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
824 (funconstrained-commons): Document.
826 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
828 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
829 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
831 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
833 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
834 has a proper number of elements.
836 2016-03-10 Alan Modra <amodra@gmail.com>
838 PR rtl-optimization/69195
839 PR rtl-optimization/47992
840 * ira.c (recorded_label_ref): Delete.
841 (update_equiv_regs): Return void.
842 (indirect_jump_optimize): New function.
843 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
844 before regstat_compute_ri. Don't rebuild_jump_labels here.
845 Delete update_regstat.
847 2016-03-10 Richard Biener <rguenther@suse.de>
849 PR tree-optimization/70128
850 * tree-ssa-structalias.c (set_uids_in_ptset): Set
851 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
853 2016-03-09 Jakub Jelinek <jakub@redhat.com>
855 PR tree-optimization/70152
856 * tree-sra.c (replace_removed_params_ssa_names): Copy over
857 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
860 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
861 instead of gen_sse2_loadlpd.
862 * config/i386/sse.md (*vec_concatv2df): Rename to...
863 (vec_concatv2df): ... this.
865 PR tree-optimization/70127
866 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
868 2016-03-09 David Malcolm <dmalcolm@redhat.com>
872 * diagnostic-show-locus.c (compatible_locations_p): New function.
873 (layout::layout): Sanitize ranges using compatible_locations_p.
875 2016-03-09 David Malcolm <dmalcolm@redhat.com>
879 * diagnostic-show-locus.c (layout_range::layout_range): Replace
880 location_range param with three const expanded_locations * and a
882 (layout::layout): Replace call to
883 rich_location::lazily_expand_location with get_expanded_location.
884 Extract the range and perform location expansion here, passing
885 the results to the layout_range ctor.
886 * diagnostic.c (source_range::debug): Delete.
887 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
888 of rich_location::get_expanded_location.
889 * gcc-rich-location.c (get_range_for_expr): Delete.
890 (gcc_rich_location::add_expr): Reimplement to avoid the
891 rich_location::add_range overload that took a location_range,
892 passing a location_t instead.
894 2016-03-09 Richard Biener <rguenther@suse.de>
895 Jakub Jelinek <jakub@redhat.com>
897 PR tree-optimization/70138
898 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
899 Also skip vect_double_reduction_def.
901 2016-03-09 Jakub Jelinek <jakub@redhat.com>
904 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
905 if the operand is "m".
907 2016-03-09 Nathan Sidwell <nathan@acm.org>
909 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
911 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
913 * config/i386/i386.c (processor_target_table): Fix cost table
914 intialization order for znver1.
916 2016-03-08 Jakub Jelinek <jakub@redhat.com>
918 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
919 - becuase -> because.
920 * ipa-reference.c (ignore_module_statics): Likewise.
921 * cgraph.c (cgraph_node::get_body): Likewise.
922 * ipa-inline.c (early_inliner): Likewise.
923 * ipa-devirt.c (types_same_for_odr): Likewise.
924 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
925 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
927 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
929 * tree-ssa-math-opts.c: Fix typo in comment.
931 2016-03-08 Jakub Jelinek <jakub@redhat.com>
934 * config/i386/i386.c (scalar_chain::make_vector_copies,
935 scalar_chain::convert_reg): Call end_sequence in between
936 get_insns and emit_conversion_insns rather than after both
939 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
942 * config/i386/i386.h (machine_function): Add
943 pc_thunk_call_expanded flag.
944 (ix86_pc_thunk_call_expanded): New define.
945 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
946 (*set_got): Rename insn pattern from set_got.
947 (*set_got_labelled): Rename inst pattern from set_got_labelled.
948 * config/i386/i386.c (ix86_compute_frame_layout): Use
949 ix86_pc_thunk_call_expanded to prevent red-zone.
951 2016-03-07 Martin Jambor <mjambor@suse.cz>
953 * hsa.h (hsa_get_ctor_statements): Declare.
954 (hsa_get_dtor_statements): Likewise.
955 (hsa_get_kernel_dispatch_type): Likewise.
956 * hsa.c (hsa_get_ctor_statements): New function.
957 (hsa_get_dtor_statements): Likewise.
958 (hsa_get_kernel_dispatch_type): Likewise.
959 * hsa-brig.c (hsa_cdtor_statements): Removed.
960 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
961 hsa_get_dtor_statements.
962 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
963 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
965 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
967 * config/arm/arm-cores.def (cortex-r8): New.
968 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
969 * config/arm/arm-tune.md: Likewise.
970 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
972 2016-03-07 Martin Sebor <msebor@redhat.com>
974 PR rtl-optimization/19705
975 * doc/invoke.texi (Options That Control Optimization): Clarify
976 -fno-branch-count-reg.
978 2016-02-26 Richard Biener <rguenther@suse.de>
979 Jeff Law <law@redhat.com>
981 PR tree-optimization/69740
982 * cfghooks.c (remove_edge): Request loop fixups if we delete
983 an edge that might turn an irreducible loop into a natural
985 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
986 Move after definition of loops_state_clear.
988 2016-03-07 Bin Cheng <bin.cheng@arm.com>
990 PR rtl-optimization/69052
991 * rtlanal.c (commutative_operand_precedence): Set higher precedence
994 2016-03-07 Tom de Vries <tom@codesourcery.com>
996 PR tree-optimization/70116
997 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
998 is_tm_ending stmts and ubsan/asan internal functions.
999 (find_duplicate): Use it. Don't test is_tm_ending here.
1001 2016-03-07 Richard Biener <rguenther@suse.de>
1003 PR tree-optimization/70115
1004 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
1005 (propagate_constants_for_unrolling): Use replace_uses_by.
1007 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
1010 * omp-low.c (struct oacc_loop): Add ifns.
1011 (new_oacc_loop_raw): Initialize it.
1012 (finish_oacc_loop): Clear mask & flags if no ifns.
1013 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
1014 (oacc_loop_xform_loop): Add ifns arg & adjust.
1015 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
1017 2016-03-07 Richard Henderson <rth@redhat.com>
1020 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
1021 (insert_value_copy_on_edge): Likewise.
1023 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1025 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
1027 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1030 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
1032 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1034 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
1036 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
1038 Fix sseimul type attribute.
1039 * config/i386/znver1.md
1040 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
1041 znver1_sseimul_avx256_load) : Fix the type attribute.
1042 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
1043 pipe usage and latency.
1045 2016-03-05 Jakub Jelinek <jakub@redhat.com>
1048 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
1049 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
1052 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
1055 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
1057 PR rtl-optimization/69941
1058 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
1059 the reg share its mode.
1061 2016-03-04 Jeff Law <law@redhat.com>
1063 PR tree-optimization/69196
1064 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1065 If the both SSA_NAMEs are anonymous, then consider them unassociated
1066 and include the PHI in the statement count.
1068 2016-03-05 Tom de Vries <tom@codesourcery.com>
1070 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
1071 construct in oacc routine. Check for oacc region in oacc routine.
1073 2016-03-04 Jakub Jelinek <jakub@redhat.com>
1076 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
1077 2016-02-22 changes, instead don't recurse if RECUR is already true.
1078 Don't change *dynamic_check if RECUR. Adjust recursive caller
1079 to pass true to the new argument.
1080 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
1083 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
1084 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
1086 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
1088 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
1090 PR rtl-optimization/57676
1091 * lra-assigns.c (lra_assign): Guard test for maximum iterations
1094 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
1096 * tree-vect-patterns.c (search_type_for_mask): Handle
1097 comparison of booleans.
1099 2016-03-04 Jakub Jelinek <jakub@redhat.com>
1101 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
1105 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
1106 all other ops that have dw_val_class_die_ref operands,
1107 and DW_OP_GNU_entry_value.
1109 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1111 PR rtl-optimization/69904
1112 * config/arm/arm.c (arm_cannot_copy_insn_p):
1113 Return true for load-exclusive instructions.
1115 2016-03-03 Jakub Jelinek <jakub@redhat.com>
1118 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
1119 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
1120 the pattern no matter if it is used just by non-pattern, pattern
1122 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
1123 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
1124 oprnd1 def_stmt is in pattern, don't look through it.
1126 2016-03-03 Marek Polacek <polacek@redhat.com>
1129 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
1131 2016-03-03 Martin Liska <mliska@suse.cz>
1133 PR tree-optimization/70043
1134 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
1135 previous statement if we see a debug statement.
1137 2016-03-03 Richard Biener <rguenther@suse.de>
1139 PR tree-optimization/55936
1140 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
1141 parameter and guard unsafe equivalence use.
1142 (vrp_evaluate_conditional_warnv_with_ops): Always use
1143 safe equivalences but not via the quadratic compare_names
1146 2016-03-03 Michael Collison <michael.collison@linaro.org>
1149 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
1150 for operand 1 to s_register_operand. Change predicate for operand
1151 2 to arm_not_immediate_operand.
1153 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
1155 * doc/tm.texi: Regenerated.
1157 2016-03-02 Richard Henderson <rth@redhat.com>
1160 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
1161 simplification when all args are positive non-fixed registers.
1163 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1165 * target.def (lra_p): Specify that new ports should use LRA.
1167 2016-03-02 Jakub Jelinek <jakub@redhat.com>
1170 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
1171 gimplify_type_sizes the type they refer to.
1172 (omp_notice_variable): Handle reference vars to VLAs.
1173 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
1174 reference to VLA decls in the second pass instead of first pass.
1176 2016-03-02 Tom de Vries <tom@codesourcery.com>
1178 PR tree-optimization/68659
1179 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
1180 new_expr == NULL_TREE.
1181 (get_new_name): Handle ADDR_EXPR.
1183 2016-03-02 Bin Cheng <bin.cheng@arm.com>
1185 PR rtl-optimization/69052
1186 * loop-invariant.c (canonicalize_address): New function.
1187 (inv_can_prop_to_addr_use): Check validity of address expression
1188 which is canonicalized by above function.
1190 2016-03-02 Alan Modra <amodra@gmail.com>
1193 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
1196 2016-03-02 Jakub Jelinek <jakub@redhat.com>
1199 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
1200 (*movhi_internal): Put mask moves from and to memory separately
1201 from moves from/to GPRs.
1203 2016-03-02 Richard Biener <rguenther@suse.de>
1205 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
1206 GENERIC expressions in GIMPLE.
1208 2016-03-02 Richard Biener <rguenther@suse.de>
1210 * config/i386/i386.c (type_natural_mode): Fix typo.
1212 2016-03-02 Nick Clifton <nickc@redhat.com>
1214 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
1216 2016-03-02 Richard Biener <rguenther@suse.de>
1217 Uros Bizjak <ubizjak@gmail.com>
1220 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
1222 2016-03-02 Richard Biener <rguenther@suse.de>
1225 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
1227 2016-03-02 Marek Polacek <polacek@redhat.com>
1230 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
1231 "is promoted to" warning.
1233 2016-03-01 DJ Delorie <dj@redhat.com>
1235 * config.gcc: Deprecate mep-*.
1237 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
1240 * lra-constraints.c (regno_val_use_in): New.
1241 (match_reload): Use it instead of regno_use_in.
1243 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
1245 PR rtl-optimization/70007
1246 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
1247 references present in REG_EQUAL notes attached to non-SET patterns.
1249 2016-03-01 Jeff Law <law@redhat.com>
1251 PR tree-optimization/69196
1252 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1253 Appropriately clamp the number of statements to copy when the
1254 thread path does not traverse a loop backedge.
1256 PR tree-optimization/69196
1257 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1258 Do count some PHIs in the thread path against the insn count. Decrease
1259 final statement count by one as the control statement in the last
1260 block will get removed. Remove special cased code for handling PHIs
1263 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
1266 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
1267 asm dialect alternatives to explicit GOTPCREL calls.
1269 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
1272 * ira.c (do_reload): Issue warning for generic stack checking here...
1273 * reload1.c (reload): ...instead of here and streamline it.
1275 2016-03-01 Nick Clifton <nickc@redhat.com>
1277 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
1279 2016-03-01 Richard Biener <rguenther@suse.de>
1281 PR tree-optimization/69983
1282 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
1283 types and fall back to operand_equal_p.
1285 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1288 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1290 * config/s390/constraints.md ("jm8"): New constraint.
1291 * config/s390/predicates.md ("const_int_8bitset_operand"): New
1293 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
1295 ("*setmem_long<setmem_and>"): New pattern.
1296 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
1298 ("*setmem_long_31z<setmem_and>"): New pattern.
1299 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
1300 New substitution rules with the required attributes.
1303 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1306 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1308 * gensupport.c (process_substs_on_one_elem): Split loop to
1309 complete mark_operands_used_in_match_dup on all expressions in the
1311 (adjust_operands_numbers): Inline into process_substs_on_one_elem
1312 and remove function.
1314 2016-03-01 Richard Biener <rguenther@suse.de>
1317 * fold-const.c (fold_indirect_ref_1): Fix range checking for
1318 vector BIT_FIELD_REF extract.
1320 2016-03-01 Richard Biener <rguenther@suse.de>
1322 PR tree-optimization/69994
1323 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
1325 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1327 PR tree-optimization/69956
1328 * tree-vect-stmts.c (supportable_widening_operation): Support
1329 multi-step conversion of boolean vectors.
1330 (supportable_narrowing_operation): Likewise.
1332 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1334 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
1337 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1339 * config/s390/subst.md (DSI_VI): New mode iterator.
1340 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
1341 * config/s390/vector.md ("vec_set<mode>"): Move expander before
1342 the insn definition.
1343 ("*vec_set<mode>"): Change predicate and add alternative to
1344 support only either register or const_int operands as element
1346 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
1348 ("vec_extract<mode>"): New expander.
1349 ("*vec_extract<mode>"): New insn definition supporting reg and
1350 const_int element selectors.
1351 ("*vec_extract<mode>_plus"): New insn definition supporting
1352 reg+const_int element selectors.
1353 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
1354 following expander+insn definition.
1355 ("<vec_shifts_name><mode>3"): New expander.
1356 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
1358 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1360 * config/s390/s390.md ("*tabort_1"): Change predicate to
1361 nonmemory_operand. Add a second alternative to cover
1362 register as well as const int operands.
1363 ("*tabort_1_plus"): New pattern definition.
1365 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1367 * config/s390/s390.md ("*ashrdi3_cc_31")
1368 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
1369 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
1370 Merge insn definitions into ...
1371 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
1372 New pattern definition.
1373 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
1374 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
1375 ("*ashr<mode>3_and"): Merge insn definitions into ...
1376 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
1377 New pattern definition.
1378 * config/s390/subst.md ("addr_style_op_cc_subst")
1379 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
1380 substitutions patterns plus attributes.
1381 Add ashiftrt to SUBST iterator.
1383 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1385 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
1386 op2 to nonmemory_operand.
1387 ("*<shift>di3_31", "*<shift>di3_31_and"):
1388 Merge into single pattern definition ...
1389 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
1390 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
1391 pattern definition ...
1392 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
1393 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
1396 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1398 * config/s390/predicates.md (const_int_6bitset_operand): New
1400 * config/s390/s390.md: Include subst.md.
1401 ("rotl<mode>3"): New expander.
1402 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
1404 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
1405 * config/s390/subst.md: New file.
1407 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1409 * config/s390/s390.md ("op_type", "atype", "length" attributes):
1410 Remove RRR type. It doesn't really exist.
1411 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
1413 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
1414 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
1415 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
1416 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
1417 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
1418 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
1419 `enabled' attribute.
1421 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1423 * gensupport.c (process_substs_on_one_elem): Split loop to
1424 complete mark_operands_used_in_match_dup on all expressions in the
1426 (adjust_operands_numbers): Inline into process_substs_on_one_elem
1427 and remove function.
1429 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
1432 * config/sparc/sparc.c (NWORDS_UP): Rename to...
1433 (CEIL_NWORDS): ...this. Use CEIL macro.
1434 (compute_fp_layout): Adjust to above renaming.
1435 (function_arg_union_value): Likewise.
1436 (sparc_arg_partial_bytes): Likewise.
1437 (sparc_function_arg_advance): Likewise.
1439 2016-02-29 Jeff Law <law@redhat.com>
1441 PR tree-optimization/70005
1442 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
1443 where an object with a boolean range is compared against a value
1446 PR tree-optimization/69999
1447 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
1448 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
1451 2016-02-29 Richard Biener <rguenther@suse.de>
1453 PR tree-optimization/69994
1454 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
1455 (get_unary_op): Look through nop conversions.
1456 (ops_equal_values_p): New function, look for equality diregarding
1458 (eliminate_plus_minus_pair): Use ops_equal_values_p
1459 (repropagate_negates): Do not use get_unary_op here.
1461 2016-02-29 Martin Liska <mliska@suse.cz>
1463 * system.h: Poison ENABLE_CHECKING macro.
1465 2016-02-29 Martin Liska <mliska@suse.cz>
1467 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
1468 is presented in dump flags.
1469 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
1470 (hsa_regalloc): Likewise.
1472 2016-02-19 Richard Biener <rguenther@suse.de>
1474 PR tree-optimization/69980
1475 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
1476 permutation of those we need to keep.
1478 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
1481 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
1482 (NWORDS_UP): ...this
1483 (init_cumulative_args): Minor tweaks.
1484 (sparc_promote_function_mode): Likewise.
1485 (scan_record_type): Delete.
1486 (traverse_record_type): New function template.
1487 (classify_data_t): New structure type.
1488 (classify_registers): New inline function.
1489 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
1490 exhausted. Instantiate traverse_record_type on classify_registers and
1491 deal with the case of a structure passed in slot #15 with no FP field
1493 (assign_data_t): New structure type.
1494 (compute_int_layout): New static function.
1495 (compute_fp_layout): Likewise.
1496 (count_registers): New inline function.
1497 (assign_int_registers): New static function.
1498 (assign_fp_registers): Likewise.
1499 (assign_registers): New inline function.
1500 (function_arg_record_value_1): Delete.
1501 (function_arg_record_value_2): Likewise.
1502 (function_arg_record_value_3): Likewise.
1503 (function_arg_record_value): Adjust to above changes. Instantiate
1504 traverse_record_type on count_registers to first count the number of
1505 registers to be used and then on assign_registers to assign them.
1506 (function_arg_union_value): Adjust to above renaming.
1507 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
1508 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
1509 case of a structure passed in slot #15
1510 (sparc_function_arg_advance): Likewise.
1511 (function_arg_padding): Minor tweak.
1513 2016-02-29 Richard Biener <rguenther@suse.de>
1515 PR tree-optimization/69720
1516 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
1517 the adjustment_def path for possibly vectorized defs.
1518 (vect_create_epilog_for_reduction): Handle vectorized initial
1521 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
1523 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
1525 2016-02-27 Jeff Law <law@redhat.com>
1528 2016-02-26 Richard Biener <rguenther@suse.de>
1529 Jeff Law <law@redhat.com>
1531 PR tree-optimization/69740
1532 * cfghooks.c (remove_edge): Request loop fixups if we delete
1533 an edge that might turn an irreducible loop into a natural
1536 2016-02-27 Jakub Jelinek <jakub@redhat.com>
1538 PR rtl-optimization/69896
1539 * tree-vect-generic.c (get_compute_type): Avoid single element
1542 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
1544 Rename the AArch64 tuning option and related functions to enable the
1545 Newton series for the reciprocal square root to reflect its
1546 approximative characteristic.
1548 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
1549 function to "aarch64_emit_approx_rsqrt".
1550 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
1551 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
1552 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
1553 (xgene1_tunings): Likewise.
1554 (use_rsqrt_p): Likewise.
1555 (aarch64_emit_swrsqrt): Use new function name.
1556 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
1557 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
1558 text explaining this option.
1559 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
1561 2016-02-26 Jakub Jelinek <jakub@redhat.com>
1564 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1565 complain about -mallow-movmisalign without -mvsx if
1566 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
1568 2016-02-26 Joel Sherrill <joel@rtems.org>
1570 * config.gcc: Add x86_64-*-rtems*.
1571 * gcc/config/i386/rtems-64.h: New file.
1573 2016-02-26 Joel Sherrill <joel@rtems.org>
1575 * config.gcc: Add aarch64-*-rtems*.
1576 * gcc/config/aarch64/rtems.h: New file.
1578 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
1581 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
1582 shift amount using %h. Add comment.
1584 2016-02-26 Richard Biener <rguenther@suse.de>
1585 Jeff Law <law@redhat.com>
1587 PR tree-optimization/69740
1588 * cfghooks.c (remove_edge): Request loop fixups if we delete
1589 an edge that might turn an irreducible loop into a natural
1592 2016-02-26 Martin Jambor <mjambor@suse.cz>
1595 * tree-sra.c (sra_modify_assign): Do not remove loads of
1596 uninitialized aggregates to SSA_NAMEs.
1598 2016-02-26 Richard Henderson <rth@redhat.com>
1601 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
1602 pseudo in case the target rtx matches the source of the left
1605 2016-02-26 Martin Jambor <mjambor@suse.cz>
1608 * hsa.h (hsa_type_packed_p): Declare.
1609 * hsa.c (hsa_type_packed_p): New function.
1610 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
1612 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
1613 * hsa-brig.c (emit_basic_insn): Likewise.
1615 2016-02-26 Martin Jambor <mjambor@suse.cz>
1618 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
1620 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
1622 2016-02-26 Martin Jambor <mjambor@suse.cz>
1624 * hsa.h (is_a_helper): New overload for hsa_op_immed for
1625 hsa_op_with_type operands.
1626 (hsa_unsigned_type_for_type): Declare.
1627 * hsa.c (hsa_unsigned_type_for_type): New function.
1628 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
1629 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
1630 the finalizer. Do not emit extra move.
1632 2016-02-26 Martin Jambor <mjambor@suse.cz>
1634 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
1635 atomic operations in private segment.
1637 2016-02-26 Martin Jambor <mjambor@suse.cz>
1639 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
1640 statements to wi->info. Also disallow omp simd constructs.
1641 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
1642 for not gridifying. Dump special string for omp_for.
1644 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1647 * config/aarch64/aarch64.c (aarch64_set_current_function):
1648 Save/restore target globals when switching to
1649 target_option_default_node.
1651 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1654 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
1655 Return 0 if !SHIFT_COUNT_TRUNCATED.
1657 2016-02-26 Jakub Jelinek <jakub@redhat.com>
1658 Eric Botcazou <ebotcazou@adacore.com>
1660 PR rtl-optimization/69891
1661 * dse.c (scan_insn): If we can't figure out memset arguments
1662 or they are non-constant, call clear_rhs_from_active_local_stores.
1664 2016-02-26 Martin Liska <mliska@suse.cz>
1666 * doc/extend.texi: Mention clog10, clog10f an clog10l
1667 in Builtins section.
1669 2016-02-26 Martin Liska <mliska@suse.cz>
1671 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
1673 (resolve_args_picking_1): Likewise.
1674 * dwarf2out.h (struct GTY): Likewise.
1676 2016-02-26 Martin Liska <mliska@suse.cz>
1678 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
1680 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
1682 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
1683 Martin Liska <mliska@suse.cz>
1685 * doc/install.texi: Mention --enable-valgrind-annotations.
1687 2016-02-26 Richard Biener <rguenther@suse.de>
1689 PR tree-optimization/69551
1690 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
1691 looking through aliases adjust DECL_PT_UID to refer to the
1692 ultimate alias target.
1694 2016-02-25 Martin Liska <mliska@suse.cz>
1697 * alloc-pool.c (after_memory_report): New variable.
1698 * alloc-pool.h (base_pool_allocator ::release): Do not use
1699 the infrastructure if after_memory_report.
1700 * toplev.c (toplev::main): Mark after memory report.
1702 2016-02-25 Richard Biener <rguenther@suse.de>
1704 PR tree-optimization/48795
1705 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
1707 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
1710 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
1711 offloading is enabled and -fopenacc or -fopenmp is specified.
1712 (CRTOFFLOADEND): Likewise.
1713 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
1714 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
1715 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
1716 (offload_objects_file_name): New static var.
1717 (tool_cleanup): Remove offload_objects_file_name file.
1718 (find_offloadbeginend): Replace with ...
1719 (find_crtoffloadtable): ... this.
1720 (run_gcc): Remove offload_argc and offload_argv.
1721 Get offload_objects_file_name from -foffload-objects=... option.
1722 Read names of object files with offload from this file, pass them to
1723 compile_images_for_offload_targets. Don't call find_offloadbeginend and
1724 don't pass offloadbegin and offloadend to the linker. Don't pass
1725 offload non-LTO files to the linker, because now they're not claimed.
1727 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
1730 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
1731 on builtin_unreachable.
1733 2016-02-25 Jakub Jelinek <jakub@redhat.com>
1735 PR rtl-optimization/69896
1736 * regcprop.c: Include cfgrtl.h.
1737 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
1738 than remembered mode, either delete it (if noop_move_p), or
1739 treat like copy_p but not noop_p instruction.
1741 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1744 * dwarf2out.c (gen_variable_die): Work around buggy LTO
1745 - allow NULL decl for Fortran DW_TAG_common_block variables.
1747 2016-02-24 Jason Merrill <jason@redhat.com>
1749 * common.opt (flifetime-dse): Add -flifetime-dse=1.
1751 2016-02-24 Richard Biener <rguenther@suse.de>
1752 Jakub Jelinek <jakub@redhat.com>
1755 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
1756 conditionally executed ops to well-defined overflow behavior.
1758 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1761 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
1764 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1766 PR rtl-optimization/69886
1767 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
1768 argument. Use it when checking validity of set instructions.
1769 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
1770 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
1772 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
1773 * store-motion.c (find_moveable_store): Update
1774 can_assign_to_reg_without_clobbers_p callsite.
1776 2016-02-24 Richard Biener <rguenther@suse.de>
1779 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
1781 (record_nonwrapping_iv): Do not fall back to the low/high bound
1782 for non-constant IV bases if the stmt is not always executed.
1784 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1786 * config/arm/arm-cores.def (cortex-a32): New entry.
1787 * config/arm/arm-tables.opt: Regenerate.
1788 * config/arm/arm-tune.md: Regenerate.
1789 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
1790 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
1791 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
1792 for -mcpu and -mtune.
1794 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1797 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
1798 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
1799 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
1800 (atomic_loaddi_1): Delete.
1801 (atomic_loaddi): Rewrite expander using the above changes.
1803 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1806 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
1809 2016-02-24 Jakub Jelinek <jakub@redhat.com>
1810 Richard Biener <rguenth@suse.de>
1813 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
1814 set_mem_attributes if tem is SSA_NAME which got expanded
1817 2016-02-24 Richard Biener <rguenther@suse.de>
1819 PR tree-optimization/69907
1820 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
1821 end of permutations for BB vectorization.
1823 2016-02-24 Christian Bruel <christian.bruel@st.com>
1825 * config/arm/arm-c.c (arm_option_override): Initialize
1826 target_option_current_node.
1827 * config/arm/arm.c (arm_pragma_target_parse): Replace
1828 build_target_option_node call by target_option_current_node.
1829 Set target_option_current_node.
1832 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
1835 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
1836 define_insn_and_split to define_insn.
1837 (zero_extendqi<mode>2_dot2): Same.
1838 (extendqi<mode>2_dot): Same.
1839 (extendqi<mode>2_dot2): Same.
1841 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
1843 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
1844 and add bypass for AES{D,E} and AESMC pairs.
1845 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
1848 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
1850 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
1851 series for reciprocal square root in Exynos M1.
1853 2016-02-23 Martin Sebor <msebor@redhat.com>
1856 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
1857 __builtin_alloca_with_align.
1859 2016-02-23 Richard Henderson <rth@redhat.com>
1861 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
1862 (ix86_register_pragmas): Remove __seg_tls.
1863 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
1864 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
1865 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
1866 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
1867 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
1868 * doc/extend.texi (__seg_tls): Remove item.
1870 2016-02-23 Richard Biener <rguenther@suse.de>
1872 * alloc-pool.h (struct allocation_object): Make id member
1873 conditional on CHECKING_P again.
1874 (get_instance): Adjust.
1875 (base_pool_allocator): Likewise.
1877 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
1879 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
1880 (parallelize_loops): In OpenACC kernels mode, set n_threads to
1882 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
1884 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
1886 2016-02-23 Richard Biener <rguenther@suse.de>
1888 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
1889 * bitmap.h (struct bitmap_usage): Likewise.
1890 (bitmap_move): Declare.
1891 * bitmap.c (register_overhead): Take size_t argument.
1892 (bitmap_move): New function.
1893 * df-problems.c (df_rd_transfer_function): Use bitmap_move
1894 to properly account overhead.
1895 * tree.c (free_node): Use tree_size.
1897 2016-02-23 Jakub Jelinek <jakub@redhat.com>
1900 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
1901 when inverting comparison.
1904 * common.opt (Wunreachable-code): Add Warning flag.
1906 2016-02-23 Mark Wielaard <mjw@redhat.com>
1907 Jakub Jelinek <jakub@redhat.com>
1910 * cgraphunit.c (check_global_declaration): Check main_input_filename
1911 and DECL_SOURCE_FILE are not NULL.
1913 2016-02-23 Martin Jambor <mjambor@suse.cz>
1915 PR tree-optimization/69666
1916 * tree-sra.c (sra_modify_assign): Do not attempt to create
1917 default_def replacements for unscalarizable regions.
1919 2016-02-20 Mark Wielaard <mjw@redhat.com>
1922 * cgraphunit.c (check_global_declaration): Check level of
1923 warn_unused_const_variable and main_input_filename.
1924 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
1925 (-Wunused-variable): For C implies -Wunused-const-variable=1.
1926 (-Wunused-const-variable): Explain levels 1 and 2.
1928 2016-02-22 Jakub Jelinek <jakub@redhat.com>
1931 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
1932 identical arguments. Formatting and spelling fixes.
1935 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
1940 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
1941 and m68k-devices.def.
1942 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
1943 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
1945 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
1947 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
1948 and HImode registers.
1950 2016-02-22 Richard Biener <rguenther@suse.de>
1952 PR tree-optimization/69882
1953 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
1954 preserve permutations present because of gaps.
1955 (vect_supported_load_permutation_p): Always continue checking
1956 permutations after vect_attempt_slp_rearrange_stmts.
1958 2016-02-22 Bin Cheng <bin.cheng@arm.com>
1960 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
1961 min_profitable_estimate, rather than min_profitable_iters.
1963 2016-02-22 Jakub Jelinek <jakub@redhat.com>
1966 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
1967 SImode for last match_operand.
1969 2016-02-22 Martin Liska <mliska@suse.cz>
1971 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
1972 return bitsize - 1 as the return value.
1974 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
1978 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
1979 Handle negative shift counts.
1980 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
1981 force_reg on the shift constant.
1982 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
1983 (lshrsi3_d): Handle negative shift counts.
1985 2016-02-22 Richard Biener <rguenther@suse.de>
1986 Tom de Vries <tom@codesourcery.com>
1988 * graph.c: Include dumpfile.h.
1989 (print_graph_cfg): Split into three overloads.
1990 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
1992 2016-02-22 Tom de Vries <tom@codesourcery.com>
1994 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
1997 2016-02-22 Richard Biener <rguenther@suse.de>
2000 * ipa-inline-transform.c (inline_call): When not updating
2001 overall summaries adjust self size by the growth estimate.
2002 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
2003 hash-set, do not update overall summaries here. Renamed from ...
2004 (inline_to_all_callers): ... this which is now wrapping the
2005 above and performing delayed overall summary update.
2006 (early_inline_small_functions): Delay updating of the overall
2009 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
2011 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
2014 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2017 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
2018 :%* in %:gt() argument.
2019 (greater_than_spec_func): Adjust for expecting only numbers,
2020 if there are more than two numbers, compare the last two.
2022 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
2024 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
2025 -Wnarrowing with -std.
2027 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2030 * expr.c (store_field): Don't use bit-field path if exp is
2031 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
2032 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
2033 and the assignment can be performed by bitwise copy. Formatting
2037 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
2038 call copy_reg_eh_region_note_forward on before and/or after sequences
2039 and remove note from insn if it no longer can throw.
2042 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
2045 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2047 * config/s390/vector.md: Add missing commutative operand markers
2048 to the patterns which qualify for one.
2049 * config/s390/vx-builtins.md: Likewise.
2051 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2053 * config/s390/vector.md (VI, VI_QHS): Add single element vector
2054 types to mode iterators.
2055 (vec_double): ... and mode attribute.
2056 * config/s390/vx-builtins.md (non_vec_int): Likewise.
2058 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2060 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
2061 Change the predicate of op2 from nonimmediate to general and let
2062 reload fix it if necessary.
2064 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2066 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
2068 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2070 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
2073 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2075 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
2076 * config/s390/s390.c (s390_expand_vec_movstr): New function.
2077 * config/s390/s390.md ("movstr<P:mode>"): Call
2078 s390_expand_vec_movstr.
2080 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2082 * config/s390/s390.md: Add missing output modifier for operand 1
2083 to print it as address properly.
2085 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2087 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
2088 * config/s390/2964.md: New file.
2089 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
2090 of insn grouping attributes depending on the CPU level.
2091 (s390_get_unit_mask): New function.
2092 (s390_sched_score): Remove the OOO from the scheduling macros.
2093 Add loop to calculate a score for the instruction mix.
2094 (s390_sched_reorder): Likewise plus improve debug output.
2095 (s390_sched_variable_issue): Rename macros as above. Calculate
2096 the unit distances after actually scheduling an insn. Improve
2098 (s390_sched_init): Clear last_scheduled_unit_distance array.
2099 * config/s390/s390.md: Include 2964.md.
2101 2016-02-18 Jakub Jelinek <jakub@redhat.com>
2104 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
2105 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
2106 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
2107 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
2108 *avx512f_<code>v8div16qi2_mask_1): New insns.
2110 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2113 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
2116 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
2117 earlyclobber from target. Use wF constraint for fused memory
2119 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
2121 2016-02-18 Jakub Jelinek <jakub@redhat.com>
2122 Martin Liska <mliska@suse.cz>
2125 * cfgexpand.c (asan_sanitize_stack_p): New function.
2126 (partition_stack_vars): Use the function.
2127 (expand_stack_vars): Likewise.
2128 (defer_stack_allocation): Likewise.
2129 (expand_used_vars): Likewise.
2131 2016-02-18 Richard Biener <rguenther@suse.de>
2134 * fold-const.c (operand_equal_p): Properly compare offsets for
2135 IMAGPART_EXPR and ARRAY_REF.
2137 2016-02-18 Nick Clifton <nickc@redhat.com>
2141 * config/arm/arm.c (arm_option_override_internal): Disable
2142 interworking if the target does not support thumb instructions.
2143 (arm_reload_in_hi): Handle the case where a register to register
2144 move needs reloading because there is no simple pattern to handle
2146 (arm_reload_out_hi): Likewise.
2148 2016-02-18 Richard Biener <rguenther@suse.de>
2151 * match.pd: Don't use fold_binary or fold_unary for folding
2154 2016-02-17 Jakub Jelinek <jakub@redhat.com>
2157 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
2158 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
2159 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
2160 warn on gimple_no_warning_p statements.
2162 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
2164 * doc/extend.texi (C++ Attributes): Correct description of
2165 warn_unused type attribute.
2167 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2169 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
2170 correct instruction.
2172 2016-02-17 Richard Biener <rguenther@suse.de>
2174 PR rtl-optimization/69609
2175 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
2176 (find_traces_1_round): When ending a trace update cached priority
2178 (bb_to_key): Use cached priority when available.
2179 (copy_bb): Initialize cached priority.
2180 (reorder_basic_blocks_software_trace_cache): Likewise.
2182 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2185 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
2187 (aarch64_comparison_operator): Break overly long line into two.
2188 (aarch64_comparison_operation): Likewise.
2189 * config/aarch64/aarch64.md (cstorecc4): Use
2190 aarch64_comparison_operator_mode instead of
2191 aarch64_comparison_operator.
2192 (cstore<mode>4): Likewise.
2193 (aarch64_cstore<mode>): Likewise.
2194 (*cstoresi_insn_uxtw): Likewise.
2195 (cstore<mode>_neg): Likewise.
2196 (*cstoresi_neg_uxtw): Likewise.
2198 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2201 * config/arm/predicates.md (arm_comparison_operator_mode):
2203 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
2204 instead of arm_comparison_operator.
2205 (*mov_negscc): Likewise.
2206 (*mov_notscc): Likewise.
2207 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
2208 (*thumb2_mov_negscc): Likewise.
2209 (*thumb2_mov_negscc_strict_it): Likewise.
2210 (*thumb2_mov_notscc): Likewise.
2211 (*thumb2_mov_notscc_strict_it): Likewise.
2213 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
2215 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
2218 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
2220 * config/visium/visium.c (machine_libfunc_index): New enum.
2221 (machine_libfuncs): New structure.
2222 (visium_libfuncs): New static variable.
2223 (TARGET_INIT_LIBFUNCS): Define to...
2224 (visium_init_libfuncs): ...this. New function.
2225 (expand_block_move_4): Use the appropriate libfunc.
2226 (expand_block_move_2): Likewise.
2227 (expand_block_move_1): Likewise.
2228 (expand_block_set_4): Likewise.
2229 (expand_block_set_2): Likewise.
2230 (expand_block_set_1): Likewise.
2231 (visium_trampoline_init): Likewise.
2233 2016-02-17 Nick Clifton <nickc@redhat.com>
2235 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
2236 TI's devices.csv file as of March 2016.
2238 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
2241 * opts-global.c (handle_common_deferred_options): Introduce and
2242 initialize two global variables to remember command-line options
2243 specifying a stack-limiting register.
2244 * opts.h: Add extern declarations of the two new global variables.
2245 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
2246 variable based on the values of the two new global variables.
2248 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2251 * common.opt (Wnonnull-compare): New warning.
2252 * doc/invoke.texi (-Wnonnull): Remove text about comparison
2253 of arguments against NULL.
2254 (-Wnonnull-compare): Document.
2255 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
2256 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
2257 * passes.def (pass_warn_nonnull_compare): Add.
2258 * gimple-ssa-nonnull-compare.c: New file.
2260 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2262 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
2263 AARCH64_EXTRA_TUNE_RECIP_SQRT.
2265 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2267 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
2268 reciprocal sqrt for -mlow-precision-recip-sqrt.
2270 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2271 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2273 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
2274 always use lane loads to construct non-constant vectors.
2276 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
2278 * config/aarch64/aarch64.md
2279 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
2280 constraints for operand 3.
2281 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
2283 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2284 Richard Biener <rguenther@suse.de>
2286 PR tree-optimization/69820
2287 * tree-vect-patterns.c (type_conversion_p): Return false if
2288 *orig_type is unsigned single precision or boolean.
2289 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
2292 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2294 PR rtl-optimization/69764
2295 PR rtl-optimization/69771
2296 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
2297 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
2299 2016-02-16 Richard Biener <rguenther@suse.de>
2301 PR tree-optimization/69776
2302 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
2304 (indirect_refs_may_alias_p): Likewise.
2305 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
2306 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
2307 according to tbaa_p.
2308 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
2309 (optimize_stmt): For redundant store discovery do not allow tbaa.
2311 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
2313 PR tree-optimization/69714
2314 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
2315 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
2317 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
2319 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
2320 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
2321 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
2322 * config/arc/arc.c (arc_init): Check FPU options.
2323 (get_arc_condition_code): Handle new CC_FPU* modes.
2324 (arc_select_cc_mode): Likewise.
2325 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
2326 register pair only. Allow access for ARCv2 accumulator.
2327 (gen_compare_reg): Whenever we have FPU support use FPU compare
2329 (arc_reorg): Don't generate brcc insns when FPU compare
2330 instructions are involved.
2331 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
2332 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
2333 floating point emulation.
2334 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
2335 (REVERSE_CONDITION): Add new CC_FPU* modes.
2336 (TARGET_FP_SP_BASE): Define.
2337 (TARGET_FP_DP_BASE): Likewise.
2338 (TARGET_FP_SP_FUSED): Likewise.
2339 (TARGET_FP_DP_FUSED): Likewise.
2340 (TARGET_FP_SP_CONV): Likewise.
2341 (TARGET_FP_DP_CONV): Likewise.
2342 (TARGET_FP_SP_SQRT): Likewise.
2343 (TARGET_FP_DP_SQRT): Likewise.
2344 (TARGET_FP_DP_AX): Likewise.
2345 * config/arc/arc.md (ARCV2_ACC): New constant.
2346 (type): New fpu type attribute.
2347 (SDF): Conditional iterator.
2348 (cstore<mode>, cbranch<mode>): Change expand condition.
2349 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
2350 handles FPU/FPX cases as well.
2351 * config/arc/arc.opt (mfpu): New option.
2352 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
2354 (adddf3, muldf3, subdf3): Removed.
2355 * config/arc/predicates.md (proper_comparison_operator): Recognize
2357 * config/arc/fpu.md: New file.
2358 * doc/invoke.texi (ARC Options): Document mfpu option.
2360 2016-02-16 Richard Biener <rguenther@suse.de>
2362 PR rtl-optimization/69291
2363 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
2364 noce_operand_ok check.
2366 2016-02-16 Tom de Vries <tom@codesourcery.com>
2369 * omp-low.c (simd_clone_create): Remove call to
2370 symtab->call_cgraph_insertion_hooks.
2372 2016-02-16 Jakub Jelinek <jakub@redhat.com>
2374 PR tree-optimization/69802
2375 * tree-ssa-reassoc.c (update_range_test): If op is
2376 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
2377 op == 1 test of precision 1 integral op, otherwise handle
2378 that case as op itself. Fix up formatting.
2379 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
2382 2016-02-16 Richard Biener <rguenther@suse.de>
2384 PR tree-optimization/69586
2385 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
2386 types for conversion sources.
2388 2016-02-16 Richard Biener <rguenther@suse.de>
2391 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
2392 mask OEP_ADDRESS_OF.
2394 2016-02-16 Alan Modra <amodra@gmail.com>
2397 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
2398 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
2399 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
2401 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
2402 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
2403 (p8_fmrgow_<mode>): Likewise.
2404 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
2406 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
2407 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
2408 to use movdi_internal64. Remove op0_di.
2409 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
2411 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
2413 Add support for the FCCMP insn types
2415 * config/aarch64/aarch64.md (fccmp): Change insn type.
2417 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
2418 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
2419 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
2420 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
2421 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
2422 * config/arm/types.md (fccmps): Add new insn type.
2425 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
2427 * alias.c (get_alias_set): Fix a typo in comment.
2429 2016-02-15 Richard Biener <rguenther@suse.de>
2431 PR tree-optimization/69595
2432 * match.pd: Complete range test simplification to true.
2434 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
2436 PR rtl-optimization/69648
2437 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
2438 pic_offset_table_rtx.
2440 PR rtl-optimization/69752
2441 * ira.c (update_equiv_regs): When looking for more than a single SET,
2442 also take other side effects into account.
2444 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
2446 * config/s390/s390.c (s390_function_profiler): Add a new sequence
2447 for z900+ CPUs in 31-bit mode.
2449 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
2451 * common/config/s390/s390-common.c (s390_supports_split_stack):
2453 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
2454 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
2455 * config/s390/s390.c (struct machine_function): New field
2456 split_stack_varargs_pointer.
2457 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
2458 in s390_emit_prologue.
2459 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
2461 (morestack_ref): New global.
2462 (SPLIT_STACK_AVAILABLE): New macro.
2463 (s390_expand_split_stack_prologue): New function.
2464 (s390_live_on_entry): New function.
2465 (s390_va_start): Use split-stack vararg pointer if appropriate.
2466 (s390_asm_file_end): Emit the split-stack note sections.
2467 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
2468 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
2469 (UNSPECV_SPLIT_STACK_CALL): New unspec.
2470 (UNSPECV_SPLIT_STACK_DATA): New unspec.
2471 (split_stack_prologue): New expand.
2472 (split_stack_space_check): New expand.
2473 (split_stack_data): New insn.
2474 (split_stack_call): New expand.
2475 (split_stack_call_*): New insn.
2476 (split_stack_cond_call): New expand.
2477 (split_stack_cond_call_*): New insn.
2479 2016-02-15 Richard Biener <rguenther@suse.de>
2481 PR tree-optimization/69783
2482 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2483 Add trivially correct cases.
2485 2016-02-15 Tom de Vries <tom@codesourcery.com>
2488 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
2490 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
2492 2016-02-15 Richard Biener <rguenther@suse.de>
2494 PR tree-optimization/69776
2495 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
2496 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
2497 indicate whether we can use TBAA to disambiguate against stores.
2498 Use alias-set zero if not.
2499 (visit_reference_op_store): Do not use TBAA when looking up
2501 * tree-ssa-pre.c (compute_avail): Use TBAA here.
2502 (eliminate_dom_walker::before_dom_children): But not when looking
2503 up redundant stores.
2505 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
2507 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
2509 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2511 * config/i386/znver1.md
2512 (znver1_pop, znver1_pop_mem,
2513 znver1_load_imov_double_store,
2514 znver1_load_imov_direct_store,
2515 znver1_load_imov_direct_load,
2516 znver1_load_imov_double_load): Add new.
2517 (znver1_insn, znver1_insn_load): Add icmov type.
2519 znver1_sseavx_fma_load,
2521 znver1_avx256_fma_load): Fix pipe usage.
2523 2016-02-14 Alan Modra <amodra@gmail.com>
2526 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
2527 with an invalid hard reg, reload just the reg not the entire
2528 pre/post-inc/dec address expression.
2530 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
2533 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
2534 fixed R1_REG scratch reg.
2535 (sibcall_value_pcrel_fdpic): Likewise.
2537 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
2541 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
2543 2016-02-12 Walter Lee <walt@tilera.com>
2545 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
2546 * config/tilegx/t-tilegx: Likewise.
2548 2016-02-12 David Malcolm <dmalcolm@redhat.com>
2551 * diagnostic-show-locus.c (struct line_span): New struct.
2552 (layout::get_first_line): Delete.
2553 (layout::get_last_line): Delete.
2554 (layout::get_num_line_spans): New member function.
2555 (layout::get_line_span): Likewise.
2556 (layout::print_heading_for_line_span_index_p): Likewise.
2557 (layout::get_expanded_location): Likewise.
2558 (layout::calculate_line_spans): Likewise.
2559 (layout::m_first_line): Delete.
2560 (layout::m_last_line): Delete.
2561 (layout::m_line_spans): New field.
2562 (layout::layout): Update comment. Replace m_first_line and
2563 m_last_line with m_line_spans, replacing their initialization
2564 with a call to calculate_line_spans.
2565 (diagnostic_show_locus): When printing source lines and
2566 annotations, rather than looping over a single span
2567 of lines, instead loop over each line_span within
2568 the layout, with an inner loop over the lines within them.
2569 Call the context's start_span callback when changing line spans.
2570 * diagnostic.c (diagnostic_initialize): Initialize start_span.
2571 (diagnostic_build_prefix): Break out the building of the location
2572 part of the string into...
2573 (diagnostic_get_location_text): ...this new function, rewriting
2574 it from nested ternary expressions to a sequence of "if"
2576 (default_diagnostic_start_span_fn): New function.
2577 * diagnostic.h (diagnostic_start_span_fn): New typedef.
2578 (diagnostic_context::start_span): New field.
2579 (default_diagnostic_start_span_fn): New prototype.
2581 2016-02-12 David Malcolm <dmalcolm@redhat.com>
2584 * gcc.c (driver::finalize): Fix cleanup of "specs".
2586 2016-02-12 David Malcolm <dmalcolm@redhat.com>
2590 * gcc.c (driver::driver): Initialize m_option_suggestions.
2591 (driver::~driver): Clean up m_option_suggestions.
2592 (suggest_option): Convert to...
2593 (driver::suggest_option): ...this, and split out into
2594 driver::build_option_suggestions and find_closest_string.
2595 (driver::build_option_suggestions): New function, from
2596 first half of suggest_option. Special-case
2597 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
2598 the sanitizer_opts array. For options of enum types, add the
2599 various enum values to the candidate strings.
2600 (driver::handle_unrecognized_options): Remove "const".
2601 * gcc.h (driver::handle_unrecognized_options): Likewise.
2602 (driver::build_option_suggestions): New decl.
2603 (driver::suggest_option): New decl.
2604 (driver::m_option_suggestions): New field.
2605 * opts-common.c (add_misspelling_candidates): New function.
2606 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
2607 and make non-static.
2608 * opts.h (sanitizer_opts): New array decl.
2609 (add_misspelling_candidates): New function decl.
2610 * spellcheck.c (find_closest_string): New function.
2611 * spellcheck.h (find_closest_string): New function decl.
2613 2016-02-12 Jakub Jelinek <jakub@redhat.com>
2615 PR rtl-optimization/69764
2616 PR rtl-optimization/69771
2617 * optabs.c (expand_binop_directly): For shift_optab_p, force
2618 convert_modes with VOIDmode if xop1 has VOIDmode.
2620 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
2623 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
2624 to correctly determine instrumentation thunks.
2626 2016-02-12 Jakub Jelinek <jakub@redhat.com>
2629 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
2630 type by reference, force lhs on the call.
2633 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
2634 Compute retval and retbnd early in all cases if split_part_return_p
2635 and return_bb is not EXIT. Remove all clobber stmts and reset
2636 all debug stmts that refer to SSA_NAMEs defined in split part,
2637 except if it is retval, in that case replace the old retval with the
2638 lhs of the call to the split part.
2640 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
2643 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
2646 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
2647 whose result is used in PHI.
2648 (maybe_optimize_range_tests): Likewise.
2649 (final_range_test_p): Likweise.
2651 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
2654 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
2655 whose result is used in PHI.
2656 (maybe_optimize_range_tests): Likewise.
2657 (final_range_test_p): Likweise.
2659 2016-02-12 Jakub Jelinek <jakub@redhat.com>
2661 * cgraph.c: Spelling fixes - behaviour -> behavior and
2662 neighbour -> neighbor.
2663 * target.def: Likewise.
2664 * sel-sched.c: Likewise.
2665 * config/mips/mips.c: Likewise.
2666 * config/arc/arc.md: Likewise.
2667 * config/arm/cortex-a57.md: Likewise.
2668 * config/arm/arm.c: Likewise.
2669 * config/arm/neon.md: Likewise.
2670 * config/arm/arm-c.c: Likewise.
2671 * config/vms/vms-c.c: Likewise.
2672 * config/s390/s390.c: Likewise.
2673 * config/i386/znver1.md: Likewise.
2674 * config/i386/i386.c: Likewise.
2675 * config/ia64/hpux-unix2003.h: Likewise.
2676 * config/msp430/msp430.md: Likewise.
2677 * config/rx/rx.c: Likewise.
2678 * config/rx/rx.md: Likewise.
2679 * config/aarch64/aarch64-simd.md: Likewise.
2680 * config/aarch64/aarch64.c: Likewise.
2681 * config/nvptx/nvptx.c: Likewise.
2682 * config/bfin/bfin.c: Likewise.
2683 * config/cris/cris.opt: Likewise.
2684 * config/rs6000/rs6000.c: Likewise.
2685 * target.h: Likewise.
2686 * spellcheck.c: Likewise.
2687 * ira-build.c: Likewise.
2688 * tree-inline.c: Likewise.
2689 * builtins.c: Likewise.
2690 * lra-constraints.c: Likewise.
2691 * explow.c: Likewise.
2692 * hwint.h: Likewise.
2693 * targhooks.c: Likewise.
2694 * tree-vect-data-refs.c: Likewise.
2696 * doc/tm.texi: Likewise.
2697 * doc/extend.texi: Likewise.
2698 * doc/install.texi: Likewise.
2699 * doc/md.texi: Likewise.
2700 * tree-ssa-tail-merge.c: Likewise.
2701 * sched-int.h: Likewise.
2702 * match.pd: Likewise.
2703 * sched-ebb.c: Likewise.
2704 * target.def (omit_struct_return_reg): Likewise.
2705 * gimple-ssa-isolate-paths.c: Likewise.
2706 (find_implicit_erroneous_behaviour): Renamed to...
2707 (find_implicit_erroneous_behavior): ... this.
2708 (find_explicit_erroneous_behaviour): Renamed to...
2709 (find_explicit_erroneous_behavior): ... this.
2710 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
2712 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
2714 PR rtl-optimization/64682
2715 PR rtl-optimization/69567
2716 PR rtl-optimization/69737
2717 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
2718 in I2 as well, just lose it.
2720 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2722 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
2724 (aarch64_last_printed_tune_string): Likewise.
2725 (aarch64_declare_function_name): Only output .arch assembler
2726 directive if it will be different from the previously output
2727 directive. Same for .tune comment but only if -dA is set.
2728 (aarch64_start_file): New function.
2729 (TARGET_ASM_FILE_START): Define.
2731 2016-02-11 David Malcolm <dmalcolm@redhat.com>
2734 * Makefile.in (PLUGIN_HEADERS): Add params.list.
2736 2016-02-11 Jakub Jelinek <jakub@redhat.com>
2739 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
2740 -Wmaybe-uninitialized warning.
2742 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
2745 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
2747 2016-02-11 Richard Biener <rguenther@suse.de>
2749 PR rtl-optimization/69291
2750 * ifcvt.c (noce_try_store_flag_constants): Do not allow
2751 subexpressions affected by changing the result.
2753 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
2756 * lra-constraints.c (curr_insn_transform): Find in/out operands
2757 for secondary memory moves. Update dups.
2759 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
2761 PR tree-optimization/69652
2762 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
2763 to nested loop, did source re-formatting, skip debug statements,
2764 add check on statement with volatile operand, remove dead scalar
2767 2016-02-10 Jakub Jelinek <jakub@redhat.com>
2768 Patrick Palka <ppalka@gcc.gnu.org>
2772 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
2773 calls if the return type is TREE_ADDRESSABLE.
2774 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
2775 * ipa-split.c (split_function): Fix doubled "we" in comment.
2776 Use void return type for the split part even if
2777 !split_point->split_part_set_retval.
2779 2016-02-10 Bin Cheng <bin.cheng@arm.com>
2781 PR tree-optimization/68021
2782 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
2783 when computing the value of biv cand by itself.
2785 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
2787 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
2788 (cortexa57_tunings): Likewise.
2789 (cortexa72_tunings): Likewise.
2790 (arch_macro_fusion_pair_p): Add support for AES fusion.
2791 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
2792 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
2793 Allow virtual registers before reload so early scheduling works.
2794 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
2795 correct latency and pipeline.
2796 (cortex_a57_crypto_complex): Likewise.
2797 (cortex_a57_crypto_xor): Likewise.
2798 (define_bypass): Add AES bypass.
2800 2016-02-10 Richard Biener <rguenther@suse.de>
2802 PR tree-optimization/69726
2803 * passes.def: Add DCE pass before late uninit.
2804 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
2805 really fixup if-conversions job.
2807 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
2809 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
2810 (arm_cortex_a57_tune): Likewise.
2811 (aarch_macro_fusion_pair_p): Add support for AES fusion.
2812 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
2814 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
2816 * timevar.def (TV_PHASE_DBGINFO): Delete.
2817 (TV_PHASE_CHECK_DBGINFO): Likewise.
2818 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
2820 2016-02-10 Richard Biener <rguenther@suse.de>
2822 PR tree-optimization/69719
2823 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2824 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
2826 2016-02-09 Andrew Pinski <apinski@cavium.com>
2829 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
2830 get_vcond_mask_icode returns false.
2832 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2835 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
2836 an ADDIS that adds a pointer to a large constant that sets the
2837 upper16 bits with a load operation.
2839 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
2842 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
2844 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
2846 (vzipq_s16): Likewise.
2847 (vzipq_s32): Likewise.
2848 (vzipq_f32): Likewise.
2849 (vzipq_u8): Likewise.
2850 (vzipq_u16): Likewise.
2851 (vzipq_u32): Likewise.
2852 (vzipq_p8): Likewise.
2853 (vzipq_p16): Likewise.
2855 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
2858 * config/arm/arm.c (neon_endian_lane_map): New function.
2859 (neon_vector_pair_endian_lane_map): New function.
2860 (arm_evpc_neon_vuzp): Allow for big endian lane order.
2861 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
2863 (vuzpq_s16): Likewise.
2864 (vuzpq_s32): Likewise.
2865 (vuzpq_f32): Likewise.
2866 (vuzpq_u8): Likewise.
2867 (vuzpq_u16): Likewise.
2868 (vuzpq_u32): Likewise.
2869 (vuzpq_p8): Likewise.
2870 (vuzpq_p16): Likewise.
2872 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
2875 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
2878 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
2880 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
2881 truncate const_int operand 1 to QImode.
2883 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
2885 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
2886 corresponding to an abnormal edge.
2888 2016-02-09 Tom de Vries <tom@codesourcery.com>
2890 PR tree-optimization/69599
2891 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
2893 (find_func_aliases_for_builtin_call, find_func_clobbers)
2894 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
2897 2016-02-09 Richard Biener <rguenther@suse.de>
2899 PR tree-optimization/69715
2900 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
2901 LHS on calls as non-rewritable.
2903 2016-02-09 Tom de Vries <tom@codesourcery.com>
2906 * lto-wrapper.c (append_diag_options): New function.
2907 (compile_offload_image): Call append_diag_options.
2909 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
2912 * doc/extend.texi (Flag Output Operands): Correct sectioning.
2913 Minor copy-edit to fix verb tenses.
2915 2016-02-08 Jakub Jelinek <jakub@redhat.com>
2917 PR tree-optimization/69209
2918 * ipa-split.c (split_function): If split part is not
2919 returning retval, retval has gimple type but is not
2920 gimple value, force it into a SSA_NAME first.
2922 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
2924 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
2927 2016-02-08 Jason Merrill <jason@redhat.com>
2930 * convert.c (convert_to_integer_1): Check dofold on truncation
2932 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
2933 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
2934 Rename from *_nofold.
2935 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
2936 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
2938 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
2941 * tree.c (build_common_tree_nodes): Remove short_double argument.
2942 All callers changed.
2943 * tree.h (build_common_tree_nodes): Adjust declaration.
2944 * doc/invoke.texi (-fshort-double): Remove documentation.
2945 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2946 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
2947 * lto-wrapper.c (merge_and_complain, append_compiler_options)
2948 (append_linker_options): Don't handle OPT_fshort_double.
2950 PR rtl-optimization/68730
2951 * lra-remat.c (insn_to_cand_activation): New static variable.
2952 (lra_remat): Allocate and free it.
2953 (create_cand): New arg activation. Initialize a field in
2954 insn_to_cand_activation if it is nonnull.
2955 (create_cands): Pass the activation insn to create_cand when making
2956 a candidate involving an output reload. Reorganize code a little.
2957 (do_remat): Keep track of active status of candidates in a separate
2960 2016-02-08 Richard Biener <rguenther@suse.de>
2962 PR tree-optimization/69719
2963 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
2964 Properly use absolute of the difference of the two offsets to
2965 compare or adjust the segment length.
2967 2016-02-08 Richard Biener <rguenther@suse.de>
2968 Jeff Law <law@redhat.com>
2971 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
2972 types for anonymous SSA names.
2974 2016-02-08 Richard Biener <rguenther@suse.de>
2976 PR rtl-optimization/69274
2977 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
2979 2016-02-08 Jeff Law <law@redhat.com>
2981 PR tree-optimization/65917
2982 * tree-ssa-dom.c (record_temporary_equivalences): Record both
2983 equivalences from if (x == y) style conditionals.
2984 (loop_depth_of_name): Remove.
2985 (record_equality): Remove loop depth check.
2986 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
2987 (const_and_copies::record_const_or_copy_raw): New member function.
2988 * tree-ssa-scopedtables.c
2989 (const_and_copies::record_const_or_copy_raw): New, factored out of
2990 (const_and_copies::record_const_or_copy): Call new member function.
2992 2016-02-05 Jeff Law <law@redhat.com>
2994 PR tree-optimization/68541
2995 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
2996 (count_stmts_in_block): New function.
2997 (poor_ifcvt_candidate_code): Likewise.
2998 (is_feasible_trace): Add some heuristics to determine when path
2999 splitting is profitable.
3000 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
3001 is a diamond with a single exit.
3003 2016-02-05 Martin Sebor <msebor@redhat.com>
3006 * doc/invoke.texi: Update -Wplacement-new to take an optional
3009 2016-02-06 Richard Henderson <rth@redhat.com>
3012 * tree.c (tree_nop_conversion_p): Do not strip casts into or
3013 out of non-standard address spaces.
3015 2016-02-05 Jakub Jelinek <jakub@redhat.com>
3017 PR rtl-optimization/69691
3018 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
3020 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
3022 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
3023 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
3024 (*ieee128_mfvsrd_64bit): Likewise.
3025 (*ieee128_mfvsrd_32bit): Likewise.
3027 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
3031 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
3033 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
3034 instrumented_version.
3036 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
3038 * doc/invoke.texi (Optimize Options): In table of --param options
3039 rename second occurrence of tracer-min-branch-ratio to
3040 tracer-min-branch-probability, rename
3041 tracer-min-branch-ratio-feedback to
3042 tracer-min-branch-probability-feedback and clarify description,
3043 rename sched-spec-state-edge-prob-cutoff to
3044 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
3045 to selsched-insns-to-rename, rename lto-minpartition to
3046 lto-min-partition, delete reorder-blocks-duplicate and
3047 reorder-blocks-duplicate-feedback.
3049 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3051 * config/s390/s390.c (s390_register_info_set_ranges): Remove
3054 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
3056 * doc/extend.texi: S/390: Correct some typos.
3058 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3060 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
3062 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3065 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
3066 (s390_register_info_gprtofpr): Use new macros above.
3067 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
3069 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
3070 its name. Adjust restore and save gpr ranges.
3071 (s390_register_info_set_ranges): New function.
3072 (s390_register_info): Use new macros above. Call
3073 s390_register_info_set_ranges.
3074 (s390_optimize_register_info): Likewise.
3075 (s390_hard_regno_rename_ok): Use new macros.
3076 (s390_hard_regno_scratch_ok): Likewise.
3077 (s390_emit_epilogue): Likewise.
3078 (s390_can_use_return_insn): Likewise.
3079 (s390_optimize_prologue): Likewise.
3080 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
3082 2016-02-05 Jakub Jelinek <jakub@redhat.com>
3085 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
3087 (ix86_option_override_internal): Disable TARGET_STV even for
3088 -m{incoming,preferred}-stack-boundary=3.
3090 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3092 * config.gcc: Mark deprecated rtems targets as obsolete.
3094 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
3096 PR rtl-optimization/64682
3097 PR rtl-optimization/69567
3098 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
3099 before I2 only if the register is both used and set in I2.
3101 2016-02-04 DJ Delorie <dj@redhat.com>
3103 * config/msp430/msp430.c (msp430_start_function): Add function type.
3105 2016-02-04 Jakub Jelinek <jakub@redhat.com>
3108 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
3110 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
3112 PR rtl-optimization/69577
3114 2015-10-29 Richard Henderson <rth@redhat.com>
3118 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3119 sse check to the exact conditions of PR 67609.
3121 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
3124 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
3125 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
3126 not allowed into the traditional Altivec registers.
3127 (movtd_64bit_nodm): Likewise.
3128 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
3130 2016-02-04 David Malcolm <dmalcolm@redhat.com>
3132 * config/aarch64/cortex-a57-fma-steering.c
3133 (aarch64_register_fma_steering): Remove "static" from arguments
3136 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
3139 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
3142 2016-02-04 Mike Frysinger <vapier@gentoo.org>
3144 * doc/invoke.texi: Delete -mno-fma4.
3146 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
3148 PR rtl-optimization/69577
3149 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
3150 (find_subregs_of_mode): Update accordingly. Iterate over partial
3153 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
3155 * config/arm/arm-protos.h (neon_reinterpret): Remove.
3156 * config/arm/arm.c (neon_reinterpret): Remove.
3157 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
3158 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
3159 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
3160 vreinterpretti): Remove.
3161 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
3162 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
3163 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
3164 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
3165 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
3166 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
3167 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
3168 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
3169 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
3170 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
3171 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
3172 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
3173 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
3174 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
3175 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
3176 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
3177 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
3178 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
3179 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
3180 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
3181 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
3182 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
3183 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
3184 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
3185 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
3186 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
3187 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
3188 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
3189 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
3190 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
3191 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
3192 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
3193 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
3194 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
3195 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
3196 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
3197 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
3198 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
3199 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
3200 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
3201 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
3202 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
3203 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
3204 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
3205 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
3206 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
3207 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
3208 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
3209 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
3210 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
3211 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
3212 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
3213 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
3214 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
3215 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
3216 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
3217 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
3218 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
3219 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
3220 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
3221 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
3222 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
3223 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
3224 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
3225 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
3226 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
3227 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
3228 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
3229 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
3230 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
3231 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
3232 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
3233 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
3234 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
3235 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
3236 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
3237 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
3238 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
3239 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
3240 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
3241 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
3242 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
3243 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
3244 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
3245 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
3246 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
3247 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
3248 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
3249 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
3250 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
3251 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
3252 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
3253 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
3254 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
3255 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
3256 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
3257 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
3258 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
3259 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
3260 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
3261 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
3262 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
3263 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
3265 2016-02-04 Martin Liska <mliska@suse.cz>
3268 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
3269 that are gimple_store_p.
3270 (maybe_instrument_call): Likewise.
3272 2016-02-04 Bin Cheng <bin.cheng@arm.com>
3274 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
3275 register scaling out of memory reference and comment why.
3277 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3281 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
3282 folding the source of a SET.
3284 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3288 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
3289 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
3291 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
3295 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
3298 2016-02-04 Christian Bruel <christian.bruel@st.com>
3300 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
3301 * config/arm/arm.c (arm_set_current_function): Likewise.
3303 2016-02-04 Jakub Jelinek <jakub@redhat.com>
3304 Ilya Enkovich <enkovich.gnu@gmail.com>
3305 H.J. Lu <hongjiu.lu@intel.com>
3308 * config/i386/i386.c (convert_scalars_to_vector): Remove
3309 stack alignment fixes.
3310 (ix86_option_override_internal): Disable TARGET_STV if stack
3311 might not be aligned enough.
3312 (ix86_minimum_alignment): Assert that TARGET_STV is false.
3314 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
3316 * gcc/config/i386/x86-tune.def: Disable default prefetching
3319 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3320 Vladimir Makarov <vmakarov@redhat.com>
3323 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
3324 in validating fused toc addresses.
3326 2016-02-03 Jakub Jelinek <jakub@redhat.com>
3329 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
3330 range->m_caret fields if range->m_show_caret_p is false.
3333 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3334 Force oldval into register if it does not satisfy reg_or_short_operand
3335 predicate. Fix up formatting.
3337 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
3338 Alexandre Oliva <aoliva@redhat.com>
3341 * lra-constraints.c (simplify_operand_subreg): Check additionally
3342 address validity after potential reloading.
3343 (process_address_1): Check insns validity. In case of failure do
3346 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
3349 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
3352 2016-02-02 Jakub Jelinek <jakub@redhat.com>
3354 * wide-int.cc (canonize_uhwi): New function.
3355 (wi::divmod_internal): Use it.
3357 2016-02-02 James Norris <jnorris@codesourcery.com
3359 * gimplify.c (omp_notice_variable): Add usage check.
3361 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
3363 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
3364 like LE, GE, LT, GT when emitting relational operator.
3366 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
3368 * ira-costs.c (find_costs_and_classes): Add extra argument.
3369 * target.def (ira_change_pseudo_allocno_class): Add parameter.
3370 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
3371 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
3372 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
3373 Add best_class parameter, and return it if not ALL_REGS.
3374 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
3376 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
3379 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
3381 * config/aarch64/aarch64.c
3382 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
3383 (aarch64_ira_change_pseudo_allocno_class): New function.
3385 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
3388 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
3390 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3392 * config/avr/avr.c (avr_option_override): Set
3393 PARAM_ALLOW_STORE_DATA_RACES to 1.
3395 2016-02-02 Richard Biener <rguenther@suse.de>
3397 PR tree-optimization/69595
3398 * match.pd: Add range test simplifications to true/false.
3400 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
3402 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
3403 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
3406 2016-02-02 Richard Biener <rguenther@suse.de>
3408 PR tree-optimization/69606
3409 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
3410 info on the result before moving a stmt.
3412 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
3415 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
3416 branch with vector comparison.
3417 * config/i386/sse.md (VI48_AVX): New mode iterator.
3418 (define_expand "cbranch<mode>4): Add support for conditional branch
3419 with vector comparison.
3420 * tree-vect-loop.c (optimize_mask_stores): New function.
3421 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
3422 has_mask_store field of vect_info.
3423 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
3424 vectorized loops having masked stores after vec_info destroy.
3425 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
3426 correspondent macros.
3427 (optimize_mask_stores): Add prototype.
3429 2016-02-02 Alan Modra <amodra@gmail.com>
3432 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
3435 2016-02-02 Alan Modra <amodra@gmail.com>
3438 * config/rs6000/rs6000.c (need_toc_init): New var, set it
3439 whenever toc_label_name used.
3440 (rs6000_file_start): Don't set up toc section here,
3441 (rs6000_output_function_epilogue): do so here instead,
3442 (rs6000_xcoff_file_start): and here.
3443 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
3444 (load_toc_aix_di): Likewise.
3446 2016-02-01 Jakub Jelinek <jakub@redhat.com>
3448 PR rtl-optimization/69592
3449 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
3450 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
3451 (num_sign_bit_copies_binary_arith_p): New inline function.
3452 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
3454 2016-02-01 Jeff Law <law@redhat.com>
3456 PR tree-optimization/69580
3457 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
3458 * tree-ssa-threadbackward.c
3459 (fsm_find_control_statement_thread_paths): Do not try to walk
3460 through large PHI nodes.
3462 2016-02-01 Jakub Jelinek <jakub@redhat.com>
3464 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
3465 when count is incremented above limit, don't analyze further
3468 * omp-low.c (oacc_parse_default_dims): Avoid
3469 -Wsign-compare warning, make sure value fits into int
3470 rather than just unsigned int.
3472 2016-02-01 Bin Cheng <bin.cheng@arm.com>
3474 PR tree-optimization/67921
3475 * fold-const.c (split_tree): New parameters. Convert pointer
3476 type variable part to proper type before negating.
3477 (fold_binary_loc): Pass new arguments to split_tree.
3479 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3481 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
3482 (nvptx_goacc_validate_dims): Extend to handle global defaults.
3483 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
3484 * doc/tm.texti: Rebuilt.
3485 * doc/invoke.texi (fopenacc-dim): Document.
3486 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
3487 (append_compiler_options): Likewise.
3488 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
3489 (oacc_parse_default_dims): New.
3490 (oacc_validate_dims): Add USED arg. Select non-unity default when
3492 (oacc_loop_fixed_partitions): Return mask of used partitions.
3493 (oacc_loop_auto_partitions): Emit dump info.
3494 (oacc_loop_partition): Return mask of used partitions.
3495 (execute_oacc_device_lower): Parse default dimension arg. Adjust
3496 loop partitioning and validation calls.
3498 2016-02-01 Richard Biener <rguenther@suse.de>
3501 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
3503 2016-02-01 Richard Biener <rguenther@suse.de>
3505 PR tree-optimization/69574
3506 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
3507 of asserting return chrec_dont_know.
3509 2016-02-01 Martin Liska <mliska@suse.cz>
3511 * mem-stats-traits.h: Add copyright header.
3512 * mem-stats.h: Likewise.
3514 2016-02-01 Richard Biener <rguenther@suse.de>
3516 PR tree-optimization/69579
3517 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
3518 Do not propagate through abnormal PHI results.
3520 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
3522 * postreload.c (reload_cse_simplify): Remove dead code.
3524 2016-02-01 Jakub Jelinek <jakub@redhat.com>
3526 PR rtl-optimization/69570
3527 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
3528 if there is more than one set, not if there is a single set.
3530 2016-02-01 Richard Henderson <rth@redhat.com>
3533 * combine.c (make_compound_operation): When looking through a
3534 subreg, make sure to re-extend to the width of the outer mode.
3536 2016-01-30 Jakub Jelinek <jakub@redhat.com>
3538 PR tree-optimization/69546
3539 * wide-int.cc (wi::divmod_internal): For unsigned division
3540 where both operands fit into uhwi, if o1 is 1 and o0 has
3541 msb set, if divident_prec is larger than bits per hwi,
3542 clear another quotient word and return 2 instead of 1.
3543 Similarly for remainder with msb in HWI set, if dividend_prec
3544 is larger than bits per hwi.
3546 2016-01-29 Martin Jambor <mjambor@suse.cz>
3548 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
3549 Use short lowercase names.
3550 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
3551 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
3552 acq_rel one. Protect warning agains segfaults if
3553 get_memory_order_name returns NULL.
3554 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
3555 with release semantics. Do not warn if get_memory_order already did.
3556 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
3557 semantics. Fix check for relaxed or acquire semantics. Do not warn
3558 if get_memory_order already did.
3560 2016-01-29 Sebastian Pop <s.pop@samsung.com>
3562 * doc/install.texi: Document that isl-0.16 is supported.
3564 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
3567 * config/i386/constraints.md (Bm): Describe as special memory
3569 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
3570 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3571 * genpreds.c (struct constraint_data): Add is_special_memory.
3572 (have_special_memory_constraints, special_memory_start): New
3574 (special_memory_end): Ditto.
3575 (add_constraint): Add new arg is_special_memory. Add code to
3576 process its true value. Update have_special_memory_constraints.
3577 (process_define_constraint): Pass the new arg.
3578 (process_define_register_constraint): Ditto.
3579 (choose_enum_order): Process special memory.
3580 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
3581 function insn_extra_special_memory_constraint.
3582 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3583 * gensupport.c (process_rtx): Process
3584 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
3585 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
3586 * ira-lives.c (single_reg_class): Use
3587 insn_extra_special_memory_constraint.
3588 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
3589 * lra-constraints.c (process_alt_operands): Ditto.
3590 (curr_insn_transform): Use insn_extra_special_memory_constraint.
3591 * recog.c (asm_operand_ok, preprocess_constraints): Process
3593 * reload.c (find_reloads): Ditto.
3594 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
3595 * stmt.c (parse_input_constraint): Use
3596 insn_extra_special_memory_constraint.
3598 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
3601 * lra-splill.c (lra_final_code_change): Revert r229087 by
3602 removing all sub-registers.
3604 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
3607 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
3609 2016-01-29 Jakub Jelinek <jakub@redhat.com>
3612 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
3613 SSE1, copy target into the temporary reg first before recursing
3616 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
3618 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
3621 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
3623 * ginclude/stdarg.h: Test __cplusplus instead of
3624 __GXX_EXPERIMENTAL_CXX0X__.
3626 2016-01-29 Richard Biener <rguenther@suse.de>
3628 PR tree-optimization/69547
3629 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
3630 Do not mark clobbers necessary.
3631 (mark_all_reaching_defs_necessary_1): Likewise.
3633 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
3635 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
3636 declaration name with %qs and print it in both error messages.
3637 Also fix indentation.
3639 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
3642 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
3643 trailing blank line from error message.
3645 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
3648 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
3651 2016-01-29 Richard Biener <rguenther@suse.de>
3654 * match.pd: Allow all integral types when simplifying a
3655 widening or sign-changing conversion.
3657 2016-01-28 Sebastian Pop <s.pop@samsung.com>
3659 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
3660 back to setting codegen_error to fail codegen.
3662 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
3665 * config/i386/constraints.md (C): Only accept constant zero operand.
3666 (BC): New constraint.
3667 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
3668 instead of C constraint.
3669 * doc/md.texi (Machine Constraints): Update description
3672 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
3675 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
3677 2016-01-28 Jakub Jelinek <jakub@redhat.com>
3680 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
3683 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
3685 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
3686 branches if using guessed profile.
3688 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
3690 * graphite-optimize-isl.c (optimize_isl): Fix dump.
3692 2016-01-28 Richard Henderson <rth@redhat.com>
3695 * config/aarch64/aarch64-modes.def (CC_Cmode): New
3696 * config/aarch64/aarch64-protos.h: Update.
3697 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
3698 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
3699 (aarch64_get_condition_code_1): Handle CC_Cmode.
3700 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
3701 (*add<mode>3_compareC_cconly_imm): New.
3702 (*add<mode>3_compareC_cconly): New.
3703 (*add<mode>3_compareC_imm): New.
3704 (add<mode>3_compareC): New.
3705 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
3706 to be first. Use aarch64_carry_operation.
3707 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
3708 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
3709 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
3710 (subti3): Use subdi3_compare1.
3711 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
3712 (sub<mode>3_compare1): New.
3713 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
3714 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
3715 (*subsi3_carryin_uxtw): Likewise.
3716 (*ngc<mode>, *ngcsi_uxtw): Likewise.
3717 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
3718 * config/aarch64/iterators.md (DWI): New.
3719 * config/aarch64/predicates.md (aarch64_carry_operation): New.
3720 (aarch64_borrow_operation): New.
3722 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3724 * graphite-optimize-isl.c (optimize_isl): Print a different debug
3725 message when isl does not return a valid schedule.
3727 2016-01-28 Sebastian Pop <s.pop@samsung.com>
3729 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3730 Remove comments from class declarations: they are already in the code
3733 2016-01-28 Sebastian Pop <s.pop@samsung.com>
3735 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
3737 (ternary_op_to_tree): Same.
3738 (unary_op_to_tree): Same.
3739 (nary_op_to_tree): Same.
3740 (gcc_expression_from_isl_expr_op): Same.
3741 (gcc_expression_from_isl_expression): Same.
3742 (graphite_create_new_loop): Same.
3743 (graphite_create_new_loop_guard): Same.
3744 (build_iv_mapping): Same.
3745 (graphite_create_new_guard): Same.
3746 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
3747 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
3749 2016-01-28 Sebastian Pop <s.pop@samsung.com>
3751 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
3752 instead of setting codegen_error to fail codegen.
3754 2016-01-28 Jason Merrill <jason@redhat.com>
3756 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
3758 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
3760 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
3761 Remove CONST_INT_P check in CCMP cost calculation.
3763 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
3765 * config/aarch64/aarch64.c (generic_vector_cost):
3766 Set vec_permute_cost.
3767 (cortexa57_vector_cost): Likewise.
3768 (exynosm1_vector_cost): Likewise.
3769 (xgene1_vector_cost): Likewise.
3770 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
3771 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
3772 Add vec_permute_cost entry.
3774 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
3776 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
3778 (add<mode>3_compare0): Likewise.
3779 (addsi3_compare0_uxtw): Likewise.
3780 (add<mode>3nr_compare0): Likewise.
3781 (compare_neg<mode>): Likewise.
3782 (<optab><mode>3): Likewise.
3784 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
3786 * tree-vect-stmts.c (vectorizable_comparison): Add
3787 NULL check for vectype.
3789 2016-01-28 Richard Biener <rguenther@suse.de>
3791 PR tree-optimization/69466
3792 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
3793 Account for PHIs we couldn't duplicate.
3795 2016-01-28 Martin Liska <mliska@suse.cz>
3798 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
3799 instead of ENABLE_VALGRIND_CHECKING.
3801 2016-01-27 Richard Henderson <rth@redhat.com>
3804 * lra-remat.c (subreg_regs): New.
3805 (dump_candidates_and_remat_bb_data): Dump it.
3806 (operand_to_remat): Reject if operand in subreg_regs.
3807 (set_bb_regs): Collect subreg_regs.
3808 (lra_remat): Init and free subreg_regs. Compute
3809 calculate_local_reg_remat_bb_data before create_cands.
3811 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
3814 * config/i386/i386.c (ix86_update_stack_boundary): Don't
3815 change stack_alignment_needed for __tls_get_addr call.
3817 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
3819 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
3821 2016-01-27 Jeff Law <law@redhat.com>
3823 PR tree-optimization/68398
3824 PR tree-optimization/69196
3825 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
3826 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
3827 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3828 Only count PHIs in the last block in the path. The others will
3829 const/copy propagate away. Add heuristic to allow more irreducible
3830 subloops to be created when it is likely profitable to do so.
3832 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3833 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
3834 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
3836 2016-01-27 Jakub Jelinek <jakub@redhat.com>
3839 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
3840 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
3841 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
3842 * tree-streamer-in.c: Include asan.h.
3843 (streamer_get_builtin_tree): For builtins in sanitizer
3844 range call initialize_sanitizer_builtins and retry.
3846 2016-01-27 Ian Lance Taylor <iant@google.com>
3848 * common.opt (fkeep-gc-roots-live): New undocumented option.
3849 * tree-ssa-loop-ivopts.c (add_candidate_1): If
3850 -fkeep-gc-roots-live, skip pointers.
3851 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
3854 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
3857 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
3858 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
3860 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
3863 * configure.ac: NetBSD provides SSP in its C library.
3864 * configure: Updated.
3866 2016-01-27 Richard Biener <rguenther@suse.de>
3868 PR tree-optimization/69166
3869 * tree-vect-loop.c (vect_is_simple_reduction): Always check
3870 reduction code for commutativity / associativity.
3872 2016-01-27 Martin Jambor <mjambor@suse.cz>
3874 PR tree-optimization/69355
3875 * tree-sra.c (analyze_access_subtree): Correct hole detection when
3876 total_scalarization fails.
3878 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
3880 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
3883 2016-01-27 Christian Bruel <christian.bruel@st.com>
3886 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
3887 Move arm_reset_previous_fndecl and set_target_option_current_node in
3888 the conditional part. Call save_restore_target_globals.
3889 * config/arm/arm.c (arm_set_current_function):
3890 Refactor to better support #pragma target and attribute mix.
3891 Call save_restore_target_globals.
3892 * config/arm/arm-protos.h (save_restore_target_globals): New function.
3894 2016-01-27 Martin Liska <mliska@suse.cz>
3896 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
3897 reference for an HSA kernel and its host function.
3899 2016-01-27 Jakub Jelinek <jakub@redhat.com>
3901 PR tree-optimization/69399
3902 * wide-int.h (wi::lrshift): For larger precisions, only
3903 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
3905 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
3907 * config/arc/predicates.md (proper_comparison_operator): Reject
3908 constant-constant comparison.
3910 2016-01-26 Tom de Vries <tom@codesourcery.com>
3912 PR tree-optimization/69110
3913 * tree-data-ref.c (initialize_data_dependence_relation): Handle
3914 DR_NUM_DIMENSIONS == 0.
3916 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3917 Sebastian Pop <s.pop@samsung.com>
3919 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
3920 isl_ast_op_cond and isl_ast_op_select.
3921 (gcc_expression_from_isl_expr_op): Same.
3923 2016-01-26 Jason Merrill <jason@redhat.com>
3926 * tree.c (recompute_constructor_flags): Split out from
3928 (verify_constructor_flags): New.
3929 * tree.h: Declare them.
3931 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
3933 PR rtl-optimization/69217
3934 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
3935 are no TYPE_FIELDS set for the record type.
3937 2016-01-26 Jakub Jelinek <jakub@redhat.com>
3940 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
3941 toc_label_name unconditionally.
3942 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
3943 SYMBOL_REF string. Use toc_label_name instead of constructing
3945 (rs6000_elf_declare_function_name): Use toc_label_name instead of
3946 constructing LCTOC1.
3948 2016-01-26 Martin Sebor <msebor@redhat.com>
3951 * doc/extend.texi (Common Type Attributes): Move text that talks about
3952 attribute packed from attribute aligned to the section discussing
3953 the former attribute for clarity.
3955 2016-01-26 Richard Henderson <rth@redhat.com>
3958 * trans-mem.c (tm_region_init): Mark entry block as visited.
3960 2016-01-26 David Malcolm <dmalcolm@redhat.com>
3963 * diagnostic-show-locus.c (layout::print_source_line): Replace
3964 call to pp_newline with call to layout::print_newline.
3965 (layout::print_annotation_line): Likewise.
3966 (layout::move_to_column): Likewise.
3967 (layout::print_any_fixits): After printing any fixits, print a
3968 trailing newline, if necessary.
3969 (layout::print_newline): New method, resetting any colorization
3971 (diagnostic_show_locus): Move the pp_newline to before the
3972 early bailout. Remove dummy block enclosing the layout instance.
3973 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
3974 of pp_newline_and_flush with pp_flush.
3975 (diagnostic_append_note): Delete use of pp_newline.
3976 (diagnostic_append_note_at_rich_loc): Delete.
3977 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
3978 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
3979 when newline characters are added to the buffer.
3981 2016-01-26 Michael Matz <matz@suse.de>
3983 * configure.ac (ac_cv_std_swap_in_utility): New test.
3984 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
3985 * configure: Regenerate.
3986 * config.in: Regenerate.
3988 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
3990 * config/arc/arc.md (cstoresi4): Force operand into register.
3991 (arcset<code>): Fix predicate.
3992 (arcsetltu): Likewise.
3993 (arcsetgeu): Likewise.
3994 (arcsethi): Likewise.
3995 (arcsetls): Likewise.
3997 2016-01-26 Jakub Jelinek <jakub@redhat.com>
3999 PR tree-optimization/69483
4000 * gimple-fold.c (canonicalize_constructor_val): Return NULL
4001 if base has error_mark_node type.
4003 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
4006 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
4007 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
4009 (vget_lane_f16): Handle big-endian.
4010 (vgetq_lane_f16): Likewise.
4011 (vset_lane_f16): Likewise.
4012 (vsetq_lane_f16): Likewise.
4013 * config/arm/iterators.md (VQXMOV): Add V8HF.
4014 (VDQ): Add V4HF and V8HF.
4015 (V_reg): Handle V4HF and V8HF.
4016 (Is_float_mode): Likewise.
4017 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
4018 neon_vdup_nv8hf): New patterns.
4019 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
4020 Use VD_LANE iterator.
4021 (neon_vld1_dup<mode>): Use VQ2 iterator.
4023 2016-01-26 Nathan Sidwell <nathan@acm.org>
4025 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
4026 (set_oacc_fn_attrib): Add IS_KERNEL arg.
4027 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
4028 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
4029 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
4030 (oacc_validate_dims): Add LEVEL arg, don't return level.
4031 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
4033 (execute_oacc_device_lower): Adjust, add more dump output.
4034 * tree-ssa-loop.c (gate_oacc_kernels): Use
4035 oacc_fn_attrib_kernels_p.
4036 * tree-parloops.c (create_parallel_loop): Adjust
4037 set_oacc_fn_attrib call.
4039 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4042 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
4043 (append_compiler_options): Handle -fcilkplus.
4044 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
4046 2016-01-26 Nick Clifton <nickc@redhat.com>
4049 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
4050 been marked as DECL_ONE_ONLY but we do not the means to make it
4051 so, then do not allow it to bind locally.
4053 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4056 * opts.h (parse_sanitizer_options): New prototype.
4057 * opts.c (sanitizer_opts): New array.
4058 (parse_sanitizer_options): New function.
4059 (common_handle_option): Use parse_sanitizer_options.
4061 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
4064 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
4065 alignment adjustment to ...
4066 (ix86_update_stack_boundary): Here. Don't over-align stack for
4068 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
4069 if __tls_get_addr is called.
4071 2016-01-26 Christian Bruel <christian.bruel@st.com>
4073 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
4075 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
4077 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
4079 2016-01-26 Richard Biener <rguenther@suse.de>
4082 * match.pd: Guard X * CST CMP 0 pattern with single_use.
4084 2016-01-26 Richard Biener <rguenther@suse.de>
4086 PR tree-optimization/69452
4087 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
4088 (move_computations_dom_walker::before_dom_children): Rename
4090 (move_computations_worker): This.
4091 (move_computations): Perform an RPO rather than a DOM walk.
4093 2016-01-26 Jakub Jelinek <jakub@redhat.com>
4096 * combine.c (combine_instructions): For REG_EQUAL note with
4097 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
4098 to the underlying register.
4099 * doc/rtl.texi (REG_EQUAL): Document the behavior of
4100 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
4102 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
4105 * config/aarch64/aarch64-builtins.c
4106 (aarch64_init_simd_builtin_types): Do not set structural
4107 equality to __Poly{8,16,64,128}_t types.
4109 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
4111 PR tree-optimization/69400
4112 * wide-int.cc (wi_pack): Take the precision as argument and
4113 perform canonicalization here rather than in the callers.
4114 Use the main loop to handle all full-width HWIs. Add a
4115 zero HWI if in_len isn't a full result.
4116 (wi::divmod_internal): Update accordingly.
4117 (wi::mul_internal): Likewise. Simplify.
4119 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
4120 Sebastian Pop <s.pop@samsung.com>
4122 * graphite-poly.c (apply_poly_transforms): Simplify.
4123 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
4124 (print_isl_map): Same.
4125 (print_isl_union_map): Same.
4126 (print_isl_schedule): New.
4127 (debug_isl_schedule): New.
4128 * graphite-dependences.c (scop_get_reads): Do not call
4129 isl_union_map_add_map that is undocumented isl functionality.
4130 (scop_get_must_writes): Same.
4131 (scop_get_may_writes): Same.
4132 (scop_get_original_schedule): Remove.
4133 (scop_get_dependences): Do not call isl_union_map_compute_flow that
4134 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
4135 (compute_deps): Remove.
4136 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
4137 (debug_schedule_ast): New.
4138 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
4139 set_separate_option.
4140 (graphite_regenerate_ast_isl): Add dump.
4141 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
4142 from scop->transformed_schedule.
4143 (graphite_regenerate_ast_isl): Add more dump.
4144 * graphite-optimize-isl.c (optimize_isl): Set
4145 scop->transformed_schedule. Check whether schedules are equal.
4146 (apply_poly_transforms): Move here.
4147 * graphite-poly.c (apply_poly_transforms): ... from here.
4148 (free_poly_bb): Static.
4149 (free_scop): Static.
4150 (pbb_number_of_iterations_at_time): Remove.
4151 (print_isl_ast): New.
4152 (debug_isl_ast): New.
4153 (debug_scop_pbb): New.
4154 * graphite-scop-detection.c (print_edge): Move.
4156 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
4157 (build_scop_scattering): Remove.
4158 (create_pw_aff_from_tree): Assert instead of bailing out.
4159 (add_condition_to_pbb): Remove unused code, do not fail.
4160 (add_conditions_to_domain): Same.
4161 (add_conditions_to_constraints): Remove.
4162 (build_scop_context): New.
4163 (add_iter_domain_dimension): New.
4164 (build_iteration_domains): Initialize pbb->iterators.
4165 Call add_conditions_to_domain.
4168 (index_outermost_in_loop): New.
4169 (index_pbb_in_loop): New.
4170 (outermost_pbb_in): New.
4171 (add_in_sequence): New.
4172 (add_outer_projection): New.
4173 (outer_projection_mupa): New.
4174 (add_loop_schedule): New.
4175 (build_schedule_pbb): New.
4176 (build_schedule_loop): New.
4177 (embed_in_surrounding_loops): New.
4178 (build_schedule_loop_nest): New.
4179 (build_original_schedule): New.
4180 (build_poly_scop): Call build_original_schedule.
4181 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
4182 (free_poly_dr): Remove.
4183 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
4184 (free_poly_bb): Remove.
4185 (debug_loop_vec): Remove.
4186 (print_isl_ast): Declare.
4187 (debug_isl_ast): Declare.
4188 (scop_do_interchange): Remove.
4189 (scop_do_strip_mine): Remove.
4190 (scop_do_block): Remove.
4191 (flatten_all_loops): Remove.
4192 (optimize_isl): Remove.
4193 (pbb_number_of_iterations_at_time): Remove.
4194 (debug_scop_pbb): Declare.
4195 (print_schedule_ast): Declare.
4196 (debug_schedule_ast): Declare.
4197 (struct scop): Remove schedule. Add original_schedule,
4198 transformed_schedule.
4199 (free_gimple_poly_bb): Remove.
4200 (print_generated_program): Remove.
4201 (debug_generated_program): Remove.
4202 (unify_scattering_dimensions): Remove.
4203 * sese.c (print_edge): ... here.
4204 (print_sese): ... here.
4205 (debug_edge): ... here.
4206 (debug_sese): ... here.
4207 * sese.h (print_edge): Declare.
4208 (print_sese): Declare.
4209 (dump_edge): Declare.
4210 (dump_sese): Declare.
4212 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
4213 Sebastian Pop <s.pop@samsung.com>
4215 * Makefile.in: Set ISLVER in site.exp.
4217 2016-01-25 Jakub Jelinek <jakub@redhat.com>
4219 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
4220 DECL_VALUE_EXPR of new_var even for the non-array case. Look
4221 through DECL_VALUE_EXPR for expansion.
4223 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4225 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
4226 the frame info after reload completed.
4228 2016-01-25 Jeff Law <law@redhat.com>
4230 PR tree-optimization/69196
4231 PR tree-optimization/68398
4232 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
4233 tree-ssa-threadupdate.c.
4234 (determine_bb_domination_status): Prototype
4235 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
4236 (determine_bb_domination_status): No longer static.
4237 (valid_jump_thread_path): Remove code to detect characteristics
4238 of the jump thread path not associated with correctness.
4239 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
4240 Correct test for thread path length. Count PHIs for real operands as
4241 statements that need to be copied. Do not count ASSERT_EXPRs.
4242 Look at all the blocks in the thread path. Compute and selectively
4243 filter thread paths based on threading through the latch, threading
4244 a multiway branch or crossing a multiway branch.
4246 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4248 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
4249 decl with __attribute__ ((unused)) annotation.
4251 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
4254 * tree-vect-stmts.c (vectorizable_condition): Check vectype
4255 of operands is compatible with a statement vectype.
4257 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
4259 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
4260 improve wording for mixed storage order support.
4262 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
4264 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
4265 (vcvt_u64_f64): Likewise.
4266 (vcvta_s64_f64): Likewise.
4267 (vcvta_u64_f64): Likewise.
4268 (vcvtm_s64_f64): Likewise.
4269 (vcvtm_u64_f64): Likewise.
4270 (vcvtn_s64_f64): Likewise.
4271 (vcvtn_u64_f64): Likewise.
4272 (vcvtp_s64_f64): Likewise.
4273 (vcvtp_u64_f64): Likewise.
4275 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
4277 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
4278 (arc_init): Check validity mll64 option.
4279 (arc_save_restore): Use double load/store instruction.
4280 (arc_expand_movmem): Likewise.
4281 (arc_split_move): Don't split if we have double load/store
4282 instructions. Returns a boolean.
4283 (arc_process_double_reg_moves): Change function to return boolean
4284 instead of a sequence of instructions.
4285 (arc_dwarf_register_span): New function.
4286 * config/arc/arc-protos.h (arc_split_move): Change prototype.
4287 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
4288 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
4289 (*movdf_insn): Likewise.
4290 * config/arc/arc.opt (mll64): New option.
4291 * config/arc/predicates.md (even_register_operand): New predicate.
4292 * doc/invoke.texi (ARC Options): Add mll64 documentation.
4294 2016-01-25 Richard Biener <rguenther@suse.de>
4297 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
4298 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
4300 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
4302 2016-01-25 Richard Biener <rguenther@suse.de>
4304 PR tree-optimization/69376
4305 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
4307 (VN_INFO_ANTI_RANGE_P): New inline.
4308 (VN_INFO_RANGE_TYPE): Likewise.
4309 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
4310 SSA_NAME_ANTI_RANGE_P.
4311 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
4312 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4313 Properly query VN_INFO_RANGE_TYPE.
4315 2016-01-25 Nick Clifton <nickc@redhat.com>
4318 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
4320 2016-01-23 Tom de Vries <tom@codesourcery.com>
4322 PR tree-optimization/69426
4323 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
4326 2016-01-23 Jakub Jelinek <jakub@redhat.com>
4328 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
4329 "the the" with "the" in the comments.
4330 * ipa-devirt.c (build_type_inheritance_graph,
4331 update_type_inheritance_graph): Likewise.
4332 * tree.c (build_function_type_list_1): Likewise.
4333 * cfgloopmanip.c (scale_loop_profile): Likewise.
4334 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
4335 * gimple-ssa-split-paths.c
4336 (find_block_to_duplicate_for_splitting_paths): Likewise.
4337 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
4338 * expr.c (convert_move): Likewise.
4339 * var-tracking.c (vt_stack_adjustments): Likewise.
4340 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
4341 * tree-vrp.c (test_for_singularity): Likewise.
4343 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
4344 directly instead of building a temporary tree.
4347 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
4348 remove <algorithm> include.
4350 2016-01-22 Jakub Jelinek <jakub@redhat.com>
4353 * config/i386/i386.c: Include dojump.h.
4354 (expand_small_movmem_or_setmem,
4355 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
4357 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
4358 if dynamic_check != -1.
4360 2016-01-21 Jeff Law <law@redhat.com>
4363 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
4364 record_temporary_equivalences. Rewritten to avoid unnecessary calls
4365 into dominated_by_p.
4366 (cprop_into_successor_phis): Avoid unnecessary tests.
4368 2016-01-22 Richard Henderson <rth@redhat.com>
4371 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
4372 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
4374 2016-01-22 Michael Matz <matz@suse.de>
4376 * system.h (string, algorithm): Include only conditionally.
4377 (new): Include always under C++.
4378 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
4379 * final.c (toplevel): Ditto.
4380 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
4381 * genconditions.c (write_header): Make gencondmd.c define
4383 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
4385 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
4386 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
4388 2016-01-22 Christian Bruel <christian.bruel@st.com>
4391 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
4393 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4396 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
4397 define_insn_and_split. Ensure operands[1] and operands[0] do not
4398 get assigned the same register.
4400 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
4402 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
4404 2016-01-22 Christian Bruel <christian.bruel@st.com>
4406 * config/arm/arm-c.c (arm_pragma_target_parse):
4407 Remove warn_builtin_macro_redefined overwrite.
4409 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
4411 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
4412 flag_non_call_exceptions compatibility.
4414 2016-01-22 Jakub Jelinek <jakub@redhat.com>
4417 * dwarf2out.c (add_child_die_after): New function.
4418 (dwarf_qual_info_t): New type.
4419 (dwarf_qual_info): New variable.
4420 (qualified_die_p): New function.
4421 (modified_type_die): For -fdebug-types-section, ensure
4422 canonical order of qualifiers. Put qualified DIEs adjacent
4423 to the corresponding non-qualified type DIE and search there
4424 for existing qualified DIEs.
4426 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
4428 * doc/extend.texi (scalar_storage_order type attribute): Document
4429 restriction on type punning and aliasing, and remove future tense.
4431 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
4434 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
4437 2016-01-21 Jeff Law <law@redhat.com>
4440 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
4441 useless call to record_temporary_equivalences.
4442 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
4443 allocate 10 slots in the bb_path vector and let it grow as needed.
4444 (fsm_find_control_statement_thread_paths): Similarly for the next_path
4447 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
4449 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
4451 * configure: Regenerate.
4453 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
4455 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
4456 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
4458 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
4461 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
4462 drop EXPAND_INITIALIZER.
4463 * rtl.h (contains_symbolic_reference_p): Declare.
4464 * rtlanal.c (contains_symbolic_reference_p): New function.
4465 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
4466 a subtraction into a NOT if symbolic constants are involved.
4468 2016-01-21 Anton Blanchard <anton@samba.org>
4469 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4472 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
4474 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
4477 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
4479 * config/microblaze/microblaze.c
4480 (get_branch_target): New.
4481 (insert_wic_for_ilb_runout): New.
4483 (microblaze_machine_dependent_reorg): New.
4484 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
4485 * config/microblaze/microblaze.md
4486 (UNSPEC_IPREFETCH): Define.
4487 (iprefetch): New pattern
4488 * config/microblaze/microblaze.opt
4489 (mxl-prefetch): New flag.
4491 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
4493 * config/microblaze/microblaze.h
4494 (FIXED_REGISTERS): Update in macro.
4495 (CALL_USED_REGISTERS): Update in macro.
4497 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
4499 PR rtl-optimization/68920
4500 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
4503 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
4505 PR rtl-optimization/68990
4506 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
4507 pseudo instead of inheritance ones.
4509 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
4510 Nick Clifton <nickc@redhat.com>
4514 * config/mips/mips.c (mips_compute_frame_info): Initialise
4515 args_size and hard_frame_pointer_offset fields of the frame
4516 structure before calling mips_global_pointer.
4518 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
4520 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
4522 * configure: Regenerate.
4524 2016-01-21 Richard Biener <rguenther@suse.de>
4526 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
4528 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
4530 * config/s390/s390.c (s390_asm_declare_function_size): Add code
4531 to actually emit the .size directive.
4533 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
4534 Jakub Jelinek <jakub@redhat.com>
4538 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
4539 args array size by one to avoid buffer overflow.
4541 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
4543 * config/s390/s390.md (pool_section_start): Use switch_to_section
4544 to select proper read-only data section instead of hardcoding
4546 (pool_section_end): Use switch_to_section to match the above.
4548 2016-01-21 Richard Biener <rguenther@suse.de>
4550 PR tree-optimization/69378
4551 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
4552 (set_ssa_val_to): Use it for dominance checks taking into
4553 account not executable edges.
4555 2016-01-21 Jakub Jelinek <jakub@redhat.com>
4558 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
4559 for bitsize instead of GET_MODE_PRECISION (mode).
4561 2016-01-20 Martin Sebor <msebor@redhat.com>
4564 * extend.texi (__sync Builtins): Clarify the semantics of
4565 __sync_fetch_and_OP built-ins on pointers.
4566 (__atomic Builtins): Same.
4568 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4569 Sebastian Pop <s.pop@samsung.com>
4571 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
4572 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
4573 (is_valid_rename): Same.
4574 (translate_isl_ast_to_gimple::get_rename): Same.
4575 (translate_isl_ast_to_gimple::rename_all_uses): Same.
4576 (translate_isl_ast_to_gimple::rename_uses): Same.
4577 (get_new_name): Check for close_phi nodes.
4578 (copy_loop_phi_args): Use phi_node_kind.
4579 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4580 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
4582 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4583 Sebastian Pop <s.pop@samsung.com>
4585 Revert commit r229783.
4586 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
4587 Remove use of parameter_rename_map.
4589 (copy_internal_parameters): Remove.
4590 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
4591 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
4592 (free_sese_info): Do not free parameter_rename_map.
4593 (set_rename): Do not use parameter_rename_map.
4594 (rename_uses): Update call to set_rename.
4595 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
4596 * sese.h (parameter_rename_map_t): Remove.
4597 (struct sese_info_t): Remove field parameter_rename_map.
4599 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4600 Sebastian Pop <s.pop@samsung.com>
4602 * graphite-isl-ast-to-gimple.c: Fix comment.
4603 * graphite-scop-detection.c (defined_in_loop_p): New.
4604 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
4605 names defined in loop.
4607 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4608 Sebastian Pop <s.pop@samsung.com>
4610 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
4611 Discard unstructured if-then-else regions.
4613 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4614 Sebastian Pop <s.pop@samsung.com>
4616 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
4617 (cleanup_loop_iter_dom): Remove.
4618 (build_loop_iteration_domains): Remove.
4619 (build_scop_context): Remove.
4620 (build_scop_iteration_domain): Remove.
4621 (add_loop_constraints): New.
4622 (build_iteration_domains): New.
4623 (build_poly_scop): Call build_iteration_domains.
4625 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4626 Sebastian Pop <s.pop@samsung.com>
4628 * graphite-scop-detection.c
4629 (scop_detection::harmful_loop_in_region): Free dom and loops.
4630 (scop_detection::loop_body_is_valid_scop): Free bbs.
4632 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4633 Sebastian Pop <s.pop@samsung.com>
4635 * graphite-scop-detection.c (record_loop_in_sese): New.
4636 (gather_bbs::before_dom_children): Call record_loop_in_sese.
4637 (build_scops): Remove call to build_sese_loop_nests.
4638 * sese.c (sese_record_loop): Remove.
4639 (build_sese_loop_nests): Remove.
4640 (new_sese_info): Remove region->loops.
4641 (free_sese_info): Same.
4642 * sese.h (sese_contains_loop): Same.
4643 (build_sese_loop_nests): Remove.
4644 (sese_contains_loop): Remove.
4646 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4647 Sebastian Pop <s.pop@samsung.com>
4649 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
4650 loop_is_valid_in_scop.
4651 (scop_detection::harmful_stmt_in_region): Renamed
4652 harmful_loop_in_region.
4653 Call loop_is_valid_in_scop.
4655 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4656 Sebastian Pop <s.pop@samsung.com>
4658 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
4661 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4662 Sebastian Pop <s.pop@samsung.com>
4664 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
4665 * graphite.h (struct poly_bb): Remove field is_reduction.
4666 (PBB_IS_REDUCTION): Remove.
4668 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
4669 Sebastian Pop <s.pop@samsung.com>
4671 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
4672 (add_pdr_constraints): Same.
4673 (scop_get_reads): Same.
4674 (scop_get_must_writes): Same.
4675 (scop_get_may_writes): Same.
4676 (scop_get_original_schedule): Same.
4677 (extend_schedule): Same.
4678 (apply_schedule_on_deps): Same.
4679 (carries_deps): Same.
4680 (compute_deps): Same.
4681 (scop_get_dependences): Same.
4682 * graphite-isl-ast-to-gimple.c
4683 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
4684 * graphite-optimize-isl.c (get_schedule_for_band): Same.
4685 (get_schedule_for_band_list): Same.
4686 (get_schedule_map): Same.
4687 (apply_schedule_map_to_scop): Same.
4688 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
4689 (build_loop_iteration_domains): Same.
4690 (add_condition_to_pbb): Same.
4691 (add_param_constraints): Same.
4692 (pdr_add_memory_accesses): Same.
4693 (pdr_add_data_dimensions): Same.
4695 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
4697 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
4700 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
4702 * common.opt (feliminate-dwarf2-dups): Replace references to
4703 "DWARF 2" with just "DWARF".
4704 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
4705 * doc/extend.texi: Likewise.
4706 * doc/cpp.texi: Likewise.
4707 * doc/invoke.texi: Likewise.
4708 (Option Summary): Add -gdwarf to list of Debugging Options.
4709 (Debugging Options): Document -gdwarf.
4710 * doc/contrib.texi: Spell "DWARF" like that.
4712 2016-01-21 Jakub Jelinek <jakub@redhat.com>
4714 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
4715 warning. Fix up formatting.
4718 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
4719 attempt to mark memory input operand addressable and
4720 call prepare_gimple_addressable in that case. Don't adjust
4721 input_location for diagnostics, use error_at instead.
4723 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
4725 * config/rs6000/ppc-auxv.h: New file.
4726 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
4728 (cpu_supports): Likewise.
4729 * config/rs6000/rs6000.c: include "ppc-auxv.h".
4730 (cpu_is_info): New variable.
4731 (cpu_supports_info): Likewise.
4732 (tcb_verification_symbol): Likewise.
4733 (cpu_builtin_p): Likewise.
4734 (cpu_expand_builtin): New function.
4735 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
4736 (rs6000_init_builtins): Likewise.
4737 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
4738 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
4739 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
4740 * configure: Regenerate.
4741 * config.in: Likewise.
4742 * doc/extend.texi (PowerPC Built-in Functions): Document
4743 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
4745 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
4748 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
4750 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
4753 2016-01-20 Richard Henderson <rth@redhat.com>
4759 * tree.c (tm_define_builtin): New.
4760 (find_tm_vector_type): New.
4761 (build_tm_vector_builtins): New.
4762 (build_common_builtin_nodes): Call it.
4764 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
4766 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
4767 (arm_fp_ok): Likewise.
4769 (arm_crypto): Likewise.
4771 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
4772 Richard Biener <rguenther@suse.de>
4774 PR tree-optimization/69328
4775 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
4776 vectors have same number of elements.
4777 (vectorizable_condition): Fix masked version recognition.
4779 2016-01-20 Richard Biener <rguenther@suse.de>
4781 PR tree-optimization/69345
4782 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
4783 (VN_INFO_PTR_INFO): Likewise.
4784 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
4785 info when it is equal between non-dominating SSA names.
4786 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4787 Make sure to look at original SSA infos.
4789 2016-01-20 Jeff Law <law@redhat.com>
4792 * config/m68k/predicates.md (pow2_m1_operand): New predicate
4794 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
4795 (pc_or_label_operand): New predicate.
4796 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
4797 tests for small integers that are 2^n - 1.
4799 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
4801 * doc/invoke.texi (Options Summary): Add '.' after @xref.
4803 2016-01-19 Jeff Law <law@redhat.com>
4806 * tree-ssa-threadbackwards.c
4807 (fsm_find_control_statement_thread_paths): Do not try to lookup
4808 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
4810 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
4812 * doc/lto.texi: Remove text that says only Gold has linker plugin
4815 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
4817 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
4818 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
4819 the DIE accordingly.
4820 (modified_type_die): Add REVERSE parameter and pass it recursively,
4821 as well as to base_type_die. Adjust presence check accordingly.
4822 (base_type_for_mode): Adjust call to modified_type_die.
4823 (add_type_attribute): Add REVERSE parameter and pass it to
4825 (generic_parameter_die): Adjust call to add_type_attribute.
4826 (add_scalar_info): Likewise.
4827 (add_subscript_info): Likewise.
4828 (gen_array_type_die): Likewise.
4829 (gen_descr_array_type_die): Likewise.
4830 (gen_entry_point_die): Likewise.
4831 (gen_enumeration_type_die): Likewise.
4832 (gen_formal_parameter_die): Likewise.
4833 (gen_subprogram_die): Likewise.
4834 (gen_variable_die ): Likewise.
4835 (gen_const_die): Likewise.
4836 (gen_field_die): Likewise.
4837 (gen_pointer_type_die): Likewise.
4838 (gen_reference_type_die): Likewise.
4839 (gen_ptr_to_mbr_type_die): Likewise.
4840 (gen_inheritance_die): Likewise.
4841 (gen_subroutine_type_die): Likewise.
4842 (gen_typedef_die): Likewise.
4843 (force_type_die): Adjust call to modified_type_die.
4845 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
4847 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
4848 flow throughout the file. Fix broken link to Objective-C 2.0
4850 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
4853 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4855 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
4857 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4860 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
4861 (maybe_record_node): Record cxa_pure_virtual as the only possible
4862 target if there are not ohter candidates.
4863 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
4865 2016-01-19 Richard Biener <rguenther@suse.de>
4867 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
4868 (get_memory_order): Likewise.
4870 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
4872 * tree-vect-stmts.c (vectorizable_store): Check
4875 2016-01-19 David Malcolm <dmalcolm@redhat.com>
4878 * gcc.c (driver::decode_argv): Add call to
4879 init_opts_obstack before init_options_struct.
4880 * opts.c (init_opts_obstack): Remove idempotency.
4881 (init_options_struct): Replace call to init_opts_obstack
4882 with a gcc_assert to verify that it has already been called.
4883 * toplev.c (toplev::main): Add call to init_opts_obstack before
4884 calls to init_options_struct.
4885 (toplev::finalize): Move cleanup of opts_obstack next to
4886 cleanup of save_decoded_options, clearing the latter, and
4887 save_decoded_options_count.
4889 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4892 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
4893 attribute to unconditional. Remove %? from output template.
4895 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4896 Jiong Wang <jiong.wang@arm.com>
4898 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
4899 generated from different expand order.
4901 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4903 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
4904 Add support for CCMP costing.
4906 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4908 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
4909 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
4910 (fccmpe<mode>): Likewise.
4911 (fcmp): Rename to fcmp and globalize pattern.
4913 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
4914 (aarch64_gen_ccmp_next): Add FP support.
4916 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
4918 * target.def (gen_ccmp_first): Update documentation.
4919 (gen_ccmp_next): Likewise.
4920 * doc/tm.texi (gen_ccmp_first): Update documentation.
4921 (gen_ccmp_next): Likewise.
4922 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
4923 expand_ccmp_expr_1. Improve comments.
4924 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
4925 (ccmp_ior<mode>): Remove pattern.
4926 (cmp<mode>): Remove expand.
4927 (cmp): Globalize pattern.
4928 (cstorecc4): Use cc_register.
4929 (mov<mode>cc): Remove ccmp_cc_register check.
4930 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
4931 Simplify after removal of CC_DNE/* modes.
4932 (aarch64_ccmp_mode_to_code): Remove.
4933 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
4934 In 'k' case use integer as condition.
4935 (aarch64_nzcv_codes): Remove inverted cases.
4936 (aarch64_code_to_ccmode): Remove.
4937 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
4938 comparison with CC register to be used in folowing CCMP/branch/CSEL.
4939 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
4940 pattern. Return the comparison with CC register. Invert conditions
4942 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
4943 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
4945 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4947 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
4948 instrumented_version.
4950 2016-01-19 Richard Biener <rguenther@suse.de>
4952 PR tree-optimization/69336
4953 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
4954 handled components with get_ref_base_and_extent.
4955 (equal_mem_array_ref_p): Adjust.
4957 2016-01-19 Jakub Jelinek <jakub@redhat.com>
4960 * shrink-wrap.c: Include valtrack.h.
4961 (move_insn_for_shrink_wrap): Add DEBUG argument. If
4962 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
4963 in between insn and where it will be moved to. Call
4964 dead_debug_insert_temp.
4965 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
4966 first and dead_debug_local_finish at the end.
4967 For uses and defs bitmap, handle all regs in between REGNO and
4968 END_REGNO, not just the first one.
4970 2016-01-19 Richard Biener <rguenther@suse.de>
4972 PR tree-optimization/69352
4973 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
4974 (equal_mem_array_ref_p): Constrain size and max size properly.
4975 Compare the reverse flag.
4977 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
4979 * ira.c (ira): Update regstat data if we deleted insns.
4981 2016-01-19 Jakub Jelinek <jakub@redhat.com>
4983 PR rtl-optimization/68955
4984 PR rtl-optimization/64557
4985 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
4986 here. Fix up formatting.
4987 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
4989 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4992 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
4993 assume that the node has body.
4994 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
4997 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
4999 * lto-streamer-out.c (lto_output): Do not stream instrumentation
5002 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5004 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
5005 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
5007 2016-01-19 Martin Jambor <mjambor@suse.cz>
5008 Martin Liska <mliska@suse.cz>
5009 Michael Matz <matz@suse.de>
5011 * Makefile.in (OBJS): Add new source files.
5012 (GTFILES): Add hsa.c.
5013 * common.opt (disable_hsa): New variable.
5014 (-Whsa): New warning.
5015 * config.in (ENABLE_HSA): New.
5016 * configure.ac: Treat hsa differently from other accelerators.
5017 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
5019 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
5020 * doc/install.texi (Configuration): Document --with-hsa-runtime,
5021 --with-hsa-runtime-include, --with-hsa-runtime-lib and
5023 * doc/invoke.texi (-Whsa): Document.
5024 (hsa-gen-debug-stores): Likewise.
5025 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
5026 to invoke offload compiler for hsa acclerator.
5027 * opts.c (common_handle_option): Determine whether HSA offloading
5028 should be performed.
5029 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
5030 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
5031 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
5032 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
5033 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
5034 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
5035 GF_OMP_FOR_KIND_GRID_LOOP.
5036 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
5037 (pp_gimple_stmt_1): Likewise.
5038 * gimple-walk.c (walk_gimple_stmt): Likewise.
5039 * gimple.c (gimple_build_omp_grid_body): New function.
5040 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
5041 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
5042 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
5043 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
5044 GF_OMP_TEAMS_GRID_PHONY.
5045 (gimple_statement_omp_single_layout): Updated comments.
5046 (gimple_build_omp_grid_body): New function.
5047 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
5048 (gimple_omp_for_grid_phony): New function.
5049 (gimple_omp_for_set_grid_phony): Likewise.
5050 (gimple_omp_parallel_grid_phony): Likewise.
5051 (gimple_omp_parallel_set_grid_phony): Likewise.
5052 (gimple_omp_teams_grid_phony): Likewise.
5053 (gimple_omp_teams_set_grid_phony): Likewise.
5054 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
5055 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
5056 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
5057 (BUILT_IN_GOMP_TARGET): Updated type.
5058 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
5059 (adjust_for_condition): New function.
5060 (get_omp_for_step_from_incr): Likewise.
5061 (extract_omp_for_data): Moved parts to adjust_for_condition and
5062 get_omp_for_step_from_incr.
5063 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
5064 (fixup_child_record_type): Bail out if receiver_decl is NULL.
5065 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
5066 (scan_omp_parallel): Do not create child functions for phony
5068 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
5069 (scan_omp_1_op): Checking assert we are not remapping to
5070 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
5071 (parallel_needs_hsa_kernel_p): New function.
5072 (expand_parallel_call): Register apprpriate parallel child
5073 functions as HSA kernels.
5074 (grid_launch_attributes_trees): New type.
5075 (grid_attr_trees): New variable.
5076 (grid_create_kernel_launch_attr_types): New function.
5077 (grid_insert_store_range_dim): Likewise.
5078 (grid_get_kernel_launch_attributes): Likewise.
5079 (get_target_argument_identifier_1): Likewise.
5080 (get_target_argument_identifier): Likewise.
5081 (get_target_argument_value): Likewise.
5082 (push_target_argument_according_to_value): Likewise.
5083 (get_target_arguments): Likewise.
5084 (expand_omp_target): Call get_target_arguments instead of looking
5085 up for teams and thread limit.
5086 (grid_expand_omp_for_loop): New function.
5087 (grid_arg_decl_map): New type.
5088 (grid_remap_kernel_arg_accesses): New function.
5089 (grid_expand_target_kernel_body): New function.
5090 (expand_omp): Call it.
5091 (lower_omp_for): Do not emit phony constructs.
5092 (lower_omp_taskreg): Do not emit phony constructs but create for them
5093 a temporary variable receiver_decl.
5094 (lower_omp_taskreg): Do not emit phony constructs.
5095 (lower_omp_teams): Likewise.
5096 (lower_omp_grid_body): New function.
5097 (lower_omp_1): Call it.
5098 (grid_reg_assignment_to_local_var_p): New function.
5099 (grid_seq_only_contains_local_assignments): Likewise.
5100 (grid_find_single_omp_among_assignments_1): Likewise.
5101 (grid_find_single_omp_among_assignments): Likewise.
5102 (grid_find_ungridifiable_statement): Likewise.
5103 (grid_target_follows_gridifiable_pattern): Likewise.
5104 (grid_remap_prebody_decls): Likewise.
5105 (grid_copy_leading_local_assignments): Likewise.
5106 (grid_process_kernel_body_copy): Likewise.
5107 (grid_attempt_target_gridification): Likewise.
5108 (grid_gridify_all_targets_stmt): Likewise.
5109 (grid_gridify_all_targets): Likewise.
5110 (execute_lower_omp): Call grid_gridify_all_targets.
5111 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
5112 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
5113 (tree_omp_clause): Added union field dimension.
5114 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
5115 * tree.c (omp_clause_num_ops): Added number of arguments of
5116 OMP_CLAUSE__GRIDDIM_.
5117 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
5118 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
5119 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
5120 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
5121 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
5122 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
5123 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
5124 * tree-pass.h (make_pass_gen_hsail): Declare.
5125 (make_pass_ipa_hsa): Likewise.
5126 * ipa-hsa.c: New file.
5127 * lto-section-in.c (lto_section_name): Add hsa section name.
5128 * lto-streamer.h (lto_section_type): Add hsa section.
5129 * timevar.def (TV_IPA_HSA): New.
5130 * hsa-brig-format.h: New file.
5131 * hsa-brig.c: New file.
5132 * hsa-dump.c: Likewise.
5133 * hsa-gen.c: Likewise.
5136 * toplev.c (compile_file): Call hsa_output_brig.
5137 * hsa-regalloc.c: New file.
5139 2016-01-18 Jeff Law <law@redhat.com>
5141 PR tree-optimization/69320
5142 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
5143 ranged object, do nothing if the RHS constant is not [0..1].
5144 (optimize_stmt): Comparing a boolean ranged object against a
5145 constant outside [0..1] results in a compile-time constant.
5147 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
5150 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
5152 * doc/invoke.texi (Invoking GCC): Add new section to menu.
5153 (Option Summary): Update to reflect new section and moved options.
5154 (C++ Dialect Options): Move -fstats to new section.
5155 (Debugging Options): Move all dump, statistics, and other GCC
5156 developer options to new section. Rewrite section introduction
5157 and re-order remaining options to put the more basic ones first.
5158 (Optimization Options): Move -fira-verbose and -flto-report* to
5160 (Developer Options): New section incorporating moved options.
5161 * doc/cppopts.texi (-dM): Update cross-reference.
5163 2016-01-18 Richard Henderson <rth@redhat.com>
5166 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
5167 operands to pseudo only if CSE is expected. Split long immediate
5168 operands only after reload, and for the stack pointer.
5169 (*add<GPI>3_pluslong): Remove.
5170 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
5171 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
5172 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
5173 (*add<GPI>3 peepholes): New.
5174 (*add<GPI>3 splitters): New.
5175 * config/aarch64/constraints.md (Upl): New.
5176 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
5178 2016-01-18 Richard Biener <rguenther@suse.de>
5180 PR tree-optimization/69297
5181 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
5183 (vect_bb_vectorization_profitable_p): Clear visited flag again.
5185 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
5188 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
5189 of mixind vector and scalar types.
5190 (fold_relational_const): Add handling of vector
5191 comparison with boolean result.
5192 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
5193 comparison of vector operands with boolean result for EQ/NE only.
5194 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
5195 (verify_gimple_cond): Likewise.
5196 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
5199 2016-01-18 Joseph Myers <joseph@codesourcery.com>
5201 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
5204 2016-01-18 Richard Biener <rguenther@suse.de>
5207 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
5209 2016-01-18 Tom de Vries <tom@codesourcery.com>
5211 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
5213 2016-01-18 Tom de Vries <tom@codesourcery.com>
5215 * omp-low.c (set_oacc_fn_attrib): Make extern.
5216 * omp-low.h (set_oacc_fn_attrib): Declare.
5217 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
5218 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
5219 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
5220 Add and handle function parameter oacc_kernels_p.
5221 (find_reduc_addr, get_omp_data_i_param): New function.
5222 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
5223 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
5224 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
5225 Calculate dominance info. Skip loops that are not in a kernels region
5226 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
5227 (pass_parallelize_loops::execute): Call parallelize_loops with
5228 oacc_kernels_p argument.
5229 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
5230 New member function.
5231 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
5232 * passes.def: Add argument to pass_parallelize_loops instantation.
5234 2016-01-18 Tom de Vries <tom@codesourcery.com>
5236 * tree-parloops.c (pass_parallelize_loops::execute): Allow
5237 pass_parallelize_loops to be run outside the loop pipeline.
5239 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
5241 * tree-scalar-evolution.c (follow_copies_to_constant): New.
5242 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
5244 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
5247 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
5248 using get_ref_base_and_extent.
5249 (equal_mem_array_ref_p): New.
5250 (hashable_expr_equal_p): Add call to previous.
5252 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
5255 * tree-sra.c (disqualified_constants, constant_decl_p): New.
5256 (sra_initialize): Allocate disqualified_constants.
5257 (sra_deinitialize): Free disqualified_constants.
5258 (disqualify_candidate): Update disqualified_constants when appropriate.
5259 (create_access): Scan for constant-pool entries as we go along.
5260 (scalarizable_type_p): Add check against type_contains_placeholder_p.
5261 (maybe_add_sra_candidate): Allow constant-pool entries.
5262 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
5263 (initialize_constant_pool_replacements): New.
5264 (sra_modify_assign): Avoid mangling assignments created by previous,
5265 and don't generate writes into constant pool.
5266 (sra_modify_function_body): Call initialize_constant_pool_replacements.
5268 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5270 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
5272 (scalar_chain::convert_op): Likewise.
5273 * config/i386/i386.md (*andndi3_doubleword): New.
5275 2016-01-18 Richard Biener <rguenther@suse.de>
5277 PR tree-optimization/69170
5278 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
5279 building a vector from scalar results of a pattern stmt.
5281 2016-01-18 Jakub Jelinek <jakub@redhat.com>
5283 * haifa-sched.c (autopref_multipass_init): Work around
5284 -Wmaybe-uninitialized warning.
5286 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
5288 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
5289 against the constant 0.
5291 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5293 PR tree-optimization/68799
5294 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
5295 look up phi candidates in the statement-candidate map.
5296 (phi_add_costs): Likewise.
5297 (record_phi_increments): Likewise.
5298 (phi_incr_cost): Likewise.
5299 (ncd_with_phi): Likewise.
5300 (all_phi_incrs_profitable): Likewise.
5302 2016-01-17 Jakub Jelinek <jakub@redhat.com>
5304 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
5305 -Wmaybe-uninitialized warning.
5307 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
5309 * doc/invoke.texi (Invoking GCC): Add new section to menu.
5310 (Option Summary): Update to reflect new section and moved options.
5311 (C++ Dialect Options): Move -fvtable-verify and related options.
5312 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
5313 and profiling-related options.
5314 (Optimization Options): Move profile generation options and
5315 -fstack-protector and related options.
5316 (Instrumentation Options): New section incorporating moved options.
5317 (Code Generation Options): Move -finstrument-functions and
5318 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
5320 2016-01-16 Tom de Vries <tom@codesourcery.com>
5322 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
5324 2016-01-16 Tom de Vries <tom@codesourcery.com>
5326 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
5328 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
5330 * hash-table.h (hash_table::empty): Turn into an inline wrapper
5331 that checks whether the table is already empty. Rename the
5332 original implementation to...
5333 (hash_table::empty_slot): ...this new private function.
5335 2016-01-15 David Malcolm <dmalcolm@redhat.com>
5338 * diagnostic-show-locus.c (layout::print_source_line): Move x
5339 offset of line until after call to
5340 get_line_width_without_trailing_whitespace.
5342 2016-01-15 Jeff Law <law@redhat.com>
5344 PR tree-optimization/69270
5345 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
5346 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
5347 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
5348 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
5349 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
5350 ssa_name_has_boolean_range and constant_boolean_node.
5352 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
5354 PR rtl-optimization/69030
5355 * lra-spills.c (remove_pseudos): Check nrefs and make the function
5357 (spill_pseudos): Delete debug insn for dead pseudo.
5358 (lra_spill): Initiate spill_hard_reg and slots memory separately.
5360 2016-01-15 Jiong Wang <jiong.wang@arm.com>
5362 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
5364 (TYPES_UNOPUS): Likewise.
5365 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
5366 builtin type, from UNOP to UNOPUS.
5367 (lbtruncuv4sf): Likewise.
5368 (lbtruncuv2df): Likewise.
5369 (lrounduv2sf): Likewise.
5370 (lrounduv4sf): Likewise.
5371 (lrounduv2df): Likewise.
5372 (lroundusf): Likewise.
5373 (lroundusf): Likewise.
5374 (lceiluv2sf): Likewise.
5375 (lceiluv4sf): Likewise.
5376 (lceiluv2df): Likewise.
5377 (lceilusf): Likewise.
5378 (lceiludf): Likewise.
5379 (lflooruv2sf): Likewise.
5380 (lflooruv4sf): Likewise.
5381 (lflooruv2df): Likewise.
5382 (lfloorusf): Likewise.
5383 (lfloorudf): Likewise.
5384 (lfrintnuv2sf): Likewise.
5385 (lfrintnuv4sf): Likewise.
5386 (lfrintnuv2df): Likewise.
5387 (lfrintnusf): Likewise.
5388 (lfrintnudf): Likewise.
5389 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
5391 (vcvtq_u32_f32): Likewise.
5392 (vcvtq_u64_f64): Likewise.
5393 (vcvta_u32_f32): Likewise.
5394 (vcvtaq_u32_f32): Likewise.
5395 (vcvtaq_u64_f64): Likewise.
5396 (vcvtm_u32_f32): Likewise.
5397 (vcvtmq_u32_f32): Likewise.
5398 (vcvtmq_u64_f64): Likewise.
5399 (vcvtn_u32_f32): Likwise.
5400 (vcvtnq_u32_f32): Likewise.
5401 (vcvtnq_u64_f64): Likewise.
5402 (vcvtp_u32_f32): Likewise.
5403 (vcvtpq_u32_f32): Likewise.
5404 (vcvtpq_u64_f64): Likewise.
5405 (vcvtmd_u64_f64): Likewise.
5406 (vcvtms_u32_f32): Likewise.
5407 (vcvtad_u64_f64): Likewise.
5408 (vcvtas_u32_f32): Likewise.
5409 (vcvtnd_u64_f64): Likewise.
5410 (vcvtns_u32_f32): Likewise.
5411 (vcvtpd_u64_f64): Likewise.
5412 (vcvtps_u32_f32): Likewise.
5414 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5416 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
5417 CSEL of zero_extended registers.
5419 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5421 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
5422 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
5424 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5426 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
5427 false when argument string is not found in the attributes table
5430 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
5433 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
5434 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
5435 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
5438 2016-01-15 Richard Biener <rguenther@suse.de>
5440 PR tree-optimization/66856
5441 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
5442 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
5443 (vect_create_new_slp_node): Increment stmt reference count.
5444 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
5445 an SLP tree before swapping operands.
5446 (vect_build_slp_tree): Likewise.
5447 (destroy_bb_vec_info): Free stmt info after SLP instances.
5448 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
5449 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
5450 (STMT_VINFO_NUM_SLP_USES): New macro.
5452 2016-01-15 Richard Biener <rguenther@suse.de>
5455 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
5456 (add_linkage_name): ... here.
5457 (gen_typedef_die): Use add_linkage_name_raw instead of
5458 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
5461 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5463 * gimplify.c (oacc_default_clause): Decode reference and pointer
5464 types for both kernels and parallel regions.
5466 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
5469 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
5471 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
5473 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
5474 (convert_scalars_to_vector): Likewise.
5476 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
5478 * doc/extend.texi (Type Traits): Fix grammar.
5480 2016-01-15 Martin Jambor <mjambor@suse.cz>
5482 * tree-inline.c (remap_decl): Use existing dclarations if
5483 remapping a type and prevent_decl_creation_for_types.
5484 (replace_locals_stmt): Do an initial remapping of non-VLA typed
5485 decls first. Do real remapping with
5486 prevent_decl_creation_for_types set.
5487 * tree-inline.h (copy_body_data): New field
5488 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
5491 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
5493 * config/s390/s390.opt (mmvcle): More verbose help text.
5495 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
5497 * config/s390/s390.opt: Add period to -mzvector option text.
5499 2016-01-15 Richard Biener <rguenther@suse.de>
5501 PR tree-optimization/68961
5502 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
5503 of invariants in stores again.
5505 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5507 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
5509 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
5511 * config/i386/i386.c (ix86_expand_branch): Don't split
5512 DI mode xor instruction to SI mode.
5514 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
5517 * ipa-icf.c (sem_function::merge): Virtual functions may become
5518 reachable even if they address is not taken and there are no
5521 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
5523 * lto-streamer-out.c (subtract_estimated_size): New function.
5524 (get_symbol_initial_value): Use it.
5526 2016-01-15 Christian Bruel <christian.bruel@st.com>
5529 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
5530 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
5531 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
5532 use add_builtin_function_ext_scope instead of add_builtin_function.
5533 (neon_set_p, neon_crypto_set_p): Remove.
5534 (arm_init_builtins): Always call arm_init_neon_builtins and
5535 arm_init_crypto_builtins.
5536 (arm_expand_builtin): Check that builtins are allowed for the arch.
5537 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
5538 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
5539 arm_init_neon_builtins call.
5541 2016-01-15 Richard Biener <rguenther@suse.de>
5543 PR tree-optimization/69117
5544 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
5545 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
5546 of the leader conservatively.
5547 (free_scc_vn): Restore original SSA name infos.
5549 2016-01-14 Jeff Law <law@redhat.com>
5551 PR tree-optimization/69270
5552 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
5553 single bit of precision, verify it's also unsigned.
5554 (record_edge_info): Use constant_boolean_node rather than fold_convert
5555 to convert boolean_true/boolean_false to the right type.
5557 2016-01-14 Richard Henderson <rth@redhat.com>
5560 * loop-doloop.c (record_reg_sets): New.
5561 (doloop_optimize): Reject the transform if the sequence
5562 clobbers registers live at the end of the loop block.
5563 (doloop_optimize_loops): Enable df_live if needed.
5565 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5567 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
5568 * gcc/config/rs6000/rs6000.c: Likewise.
5569 * gcc/config/rs6000/rs6000.h: Likewise.
5570 * gcc/config/rs6000/rs6000.md: Likewise.
5571 * gcc/doc/extend.texi: Likewsie.
5573 2016-01-14 Jeff Law <law@redhat.com>
5575 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
5578 2016-01-14 Richard Henderson <rth@redhat.com>
5582 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
5583 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
5584 instead of builtin_decl_declared_p to test for declaration.
5586 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
5588 * doc/loop.texi (Loop Analysis and Representation): Document
5589 loop_depth function.
5591 2016-01-14 Tom de Vries <tom@codesourcery.com>
5593 PR tree-optimization/68773
5594 * omp-low.c (expand_omp_target): Don't set force_output.
5595 * varpool.c (varpool_node::get_create): Same.
5596 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
5597 offload_funcs with force_output.
5599 2016-01-14 Jakub Jelinek <jakub@redhat.com>
5602 * lra-eliminations.c (move_plus_up): Don't change anything if either
5603 the outer or inner subreg mode is not MODE_INT.
5604 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
5605 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
5607 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
5609 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
5610 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
5611 reduc_uplus_@var{m}): Remove.
5612 * expr.c (expand_expr_real_2): Remove expansion path for
5613 reduc_[us](min|max|plus) optabs.
5614 * optabs-tree.c (scalar_reduc_to_vector): Remove.
5615 * optabs-tree.h (scalar_reduc_to_vector): Remove.
5616 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
5617 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
5618 * tree-vect-loop.c (vectorizable_reduction): Remove test for
5619 reduc_[us](min|max|plus) optabs.
5621 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
5623 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
5624 (reduc_plus_scal_v2sf): New.
5625 (reduc_smax_v2sf): Rename to...
5626 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
5627 (reduc_smin_v2sf): Rename to...
5628 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
5630 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
5632 * alias.c (compare_base_symbol_refs): New function.
5633 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
5636 2016-01-14 Jakub Jelinek <jakub@redhat.com>
5639 PR tree-optimization/69155
5640 * tree-complex.c: Include cfganal.h.
5641 (phis_to_revisit): New variable.
5642 (extract_component): Add phiarg_p argument. Assert that returned
5643 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
5644 (update_phi_components): Partly rewrite to use loop over real/imag
5645 components instead of code duplication. If extract_component returns
5646 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
5647 create_tmp_reg into the PHI node instead, and mention the phi triplet
5649 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
5650 in phis_to_revisit at the end.
5652 2016-01-14 Richard Biener <rguenther@suse.de>
5654 PR tree-optimization/68060
5655 * tree-vect-loop.c (vect_is_simple_reduction): Check the
5656 outer loop reduction is only used in the inner loop before
5657 detecting a double reduction.
5659 2016-01-14 Jakub Jelinek <jakub@redhat.com>
5662 * combine.c (expand_field_assignment): Punt if compute_mode is
5663 unsupported scalar mode.
5665 2016-01-14 Richard Biener <rguenther@suse.de>
5667 PR tree-optimization/66856
5668 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
5669 SLP node only if it built successfully.
5670 (vect_analyze_slp_instance): Adjust.
5672 2016-01-14 Jeff Law <law@redhat.com>
5674 PR tree-optimization/69270
5675 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
5676 (record_edge_info): Use it. Convert boolean_{true,false}_node
5679 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
5682 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
5683 use block_ultimate_origin
5684 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
5686 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
5688 * doc/invoke.texi (Submodel Options): Rename section to
5689 "Machine-Dependent Options" to better reflect its content.
5690 Rewrite introductory text to remove archaic CPU names.
5693 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
5695 * doc/invoke.texi (Code Gen Options): Move section up in file,
5696 before target-specific options. Update menu and option summary
5697 to reflect the new section ordering.
5699 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
5701 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
5702 (C++ Dialect Options): Add cross-reference to -std option.
5703 * doc/standards.texi (C++ Language): Document C++14 support.
5705 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5707 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
5708 for pack/unpack functions for __ibm128.
5709 (PACK_IF): Likewise.
5710 (UNPACK_IF): Likewise.
5712 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
5713 support for __ibm128 pack/unpack functions.
5714 (rs6000_invalid_builtin): Likewise.
5715 (rs6000_init_builtins): Likewise.
5716 (rs6000_opt_masks): Likewise.
5718 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
5719 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
5721 (RS6000_BTM_COMMON): Likewise.
5723 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
5724 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
5725 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
5726 128-bit floating point. Add support for the double values to be
5727 in Altivec registers for TF/IF packing and unpacking, but restrict
5728 TD packing sub-fields to be FPR registers. Don't allow overlapped
5729 register support for packing. Allow pack inputs to be memory
5730 locations. Don't build generator functions for unpack<mode>_dm
5731 and unpack<mode>_nodm.
5732 (unpack<mode>_dm): Likewise.
5733 (unpack<mode>_nodm): Likewise.
5734 (pack<mode>): Likewise.
5736 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
5737 built-in functions to pack/unpack explicit __ibm128 values.
5738 (__builtin_unpack_ibm128): Likewise.
5740 * doc/extend.texi (PowerPC Built-in Functions): Document
5741 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
5743 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
5746 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
5747 Add new arg loc and pass it down as context.
5748 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
5749 to the location to use for the warning.
5750 (check_function_arguments): New arg loc. All callers changed. Pass
5751 it to check_function_nonnull.
5752 * c-common.h (check_function_arguments): Adjust declaration.
5754 2016-01-13 Jakub Jelinek <jakub@redhat.com>
5756 PR tree-optimization/69156
5757 * gimple.c (validate_type): Removed.
5758 (gimple_builtin_call_types_compatible_p): Use
5759 useless_type_conversion_p instead of validate_type.
5760 * value-prof.c (gimple_stringop_fixed_value): Fold
5761 icall_size to correct type.
5763 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
5765 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
5768 2016-01-13 Richard Henderson <rth@redhat.com>
5771 * target.def (builtin_tm_load, builtin_tm_store): Remove.
5772 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
5773 (ix86_builtin_tm_store): Remove.
5774 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5775 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5776 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
5777 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
5778 * doc/tm.texi: Rebuild.
5780 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
5781 (BUILT_IN_TM_MEMCPY_RTWN): New.
5782 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
5783 fallback from vector to integer helpers.
5784 (build_tm_load): Handle vector types directly, instead of
5786 (build_tm_store): Likewise.
5787 (expand_assign_tm): Prepare for register types not handled by
5788 the above. Copy them to memory and use memcpy.
5789 * tree.c (tm_define_builtin): New.
5790 (find_tm_vector_type): New.
5791 (build_tm_vector_builtins): New.
5792 (build_common_builtin_nodes): Call it.
5794 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
5796 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
5797 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
5799 2016-01-13 Tom de Vries <tom@codesourcery.com>
5801 PR tree-optimization/69169
5802 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
5803 handled_struct_type param.
5804 (create_variable_info_for, intra_create_variable_infos): Call
5805 create_variable_info_for_1 with extra arg.
5807 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
5809 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
5810 and "armv8.1-a+crc" entries.
5812 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
5815 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
5816 Change first operand predicate from register_or_constm1_operand
5817 to register_operand.
5818 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
5819 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
5820 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
5821 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
5822 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
5823 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
5824 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
5825 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
5826 comparison with constm1_rtx from vec_prefetch_gen part.
5828 2016-01-13 Richard Biener <rguenther@suse.de>
5830 PR tree-optimization/69013
5831 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
5832 Exchange assert for a test.
5834 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5837 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
5839 2016-01-13 Richard Biener <rguenther@suse.de>
5841 PR tree-optimization/69242
5842 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
5843 assert with a check.
5845 2016-01-13 Richard Biener <rguenther@suse.de>
5847 PR tree-optimization/69186
5848 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5849 Properly guard vect_update_misalignment_for_peel call.
5851 2016-01-12 Jeff Law <law@redhat.com>
5853 PR tree-optimization/pr67755
5854 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
5855 "need_profile_correction".
5856 (thread_block_1): Initialize new field to false by default. If we
5857 have multiple thread paths through a common joiner to different
5858 final targets, then set new field to true.
5859 (compute_path_counts): Only do count adjustment when it's really
5862 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
5864 * doc/invoke.texi (Spec Files): Move section down in file, past
5865 all command-line option descriptions.
5867 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5870 * doc/gty.texi: Remove documentation of mark_hook.
5871 * gengtype.c (struct write_types_data): Remove code to support
5872 mark_hook attribute.
5873 (walk_type): Likewise.
5874 (write_func_for_structure): Likewise.
5876 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
5878 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
5879 Directory Options, and -specs= to Overall Options.
5880 (Overall Options): Adjust similarly. Reorder to group related
5881 options together. Make -specs= cross-reference the spec file details.
5882 (Directory Options): Adjust similarly.
5884 2016-01-12 Jeff Law <law@redhat.com>
5886 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
5888 2016-01-12 Olivier Hainque <hainque@adacore.com>
5890 * gcc.c (spec_undefvar_allowed): New global.
5891 (process_command): Set to true when running for --version or --help,
5893 (getenv_spec_function): When the variable is not defined, use the
5894 variable name as the variable value if we're allowed not to issue
5897 2016-01-12 Bin Cheng <bin.cheng@arm.com>
5899 PR tree-optimization/68911
5900 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
5901 information computed for expression "init + nit * step".
5903 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
5905 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
5906 about name of GCC executable. Remove deleted node from menu.
5907 (Directory Options) <-B>: Remove cross-reference to deleted node.
5908 (Target Options): Delete section.
5910 2016-01-12 Christian Bruel <christian.bruel@st.com>
5913 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
5914 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
5916 2016-01-12 Jakub Jelinek <jakub@redhat.com>
5919 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
5920 aligned_mem is properly set for AVX512-VL floating point masked
5924 * ifcvt.c (cond_exec_process_if_block): When removing the last
5925 insn from then_bb, remove also any possible barriers that follow it.
5927 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
5931 * config/i386/iamcu.h (SIZE_TYPE): New macro.
5932 (PTRDIFF_TYPE): Likewise.
5933 (WCHAR_TYPE): Likewise.
5934 (WCHAR_TYPE_SIZE): Likewise.
5935 (STDINT_LONG32): Likewise.
5937 2016-01-12 Richard Biener <rguenther@suse.de>
5939 PR tree-optimization/69053
5940 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
5941 convert initial value for cond reductions.
5943 2016-01-12 Richard Biener <rguenther@suse.de>
5945 PR tree-optimization/69007
5946 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
5947 widen_sum after dot_prod and sad.
5949 2016-01-12 Richard Biener <rguenther@suse.de>
5951 PR tree-optimization/69168
5952 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
5953 pattern stmt SLP type.
5954 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
5955 end up unused so cope with that case.
5957 2016-01-12 Richard Biener <rguenther@suse.de>
5959 PR tree-optimization/69157
5960 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
5961 stmts def type only during analyze phase.
5962 (vectorizable_call): Likewise.
5963 (vectorizable_simd_clone_call): Likewise.
5964 (vectorizable_conversion): Likewise.
5965 (vectorizable_assignment): Likewise.
5966 (vectorizable_shift): Likewise.
5967 (vectorizable_operation): Likewise.
5968 (vectorizable_store): Likewise.
5969 (vectorizable_load): Likewise.
5971 2016-01-12 Richard Biener <rguenther@suse.de>
5973 PR tree-optimization/69174
5974 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
5976 (vectorizable_load): Properly compute the number of loads needed
5977 for permuted strided SLP loads and do not spuriously assign
5978 to SLP_TREE_VEC_STMTS.
5980 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
5982 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
5983 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
5984 (MD_EXEC_PREFIX): Remove.
5985 (MD_STARTFILE_PREFIX) Removee.
5986 (FILE_NAME_ABSOLUTE_P): Remove.
5987 (CPP_SPEC): Do not read macros from sys/version.h.
5988 (LINK_COMMAND_SPEC): Remove.
5989 (LOCAL_INCLUDE_DIR): Remove.
5990 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
5991 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
5992 (POST_LINK_SPEC): Define to invoke stubify after linker
5993 (LIBSTDCXX): Remove define
5994 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
5995 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
5996 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
5997 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
5998 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
5999 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
6000 (i386_djgpp_asm_named_section): Add propotype of new procedure
6002 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
6003 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
6004 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
6005 in config/i386/djgpp.h).
6006 (STANDARD_STARTFILE_PREFIX_2): Define identical to
6007 STANDARD_STARTFILE_PREFIX_1.
6008 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
6009 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
6010 installation errors.
6011 (MAX_OFILE_ALIGNMENT): Define to 128.
6012 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
6014 * config/i386/djgpp.c: New file. Add implementation of
6015 i386_djgpp_asm_named_section.
6017 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
6019 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
6020 Add rule for building djgpp.o.
6022 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6024 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
6025 (rtx_is_swappable_p): Reductions are swappable.
6026 (insn_is_swappable_p): V2DF reductions are swappable.
6028 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
6030 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
6031 reloads for other unsupported memory operands.
6033 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6034 Jim Wilson <jim.wilson@linaro.org>
6037 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
6038 copy_to_mode_reg instead of force_reg.
6040 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
6043 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
6044 TARGET_80387 is true.
6046 2016-01-11 Jakub Jelinek <jakub@redhat.com>
6049 * lra-eliminations.c (move_plus_up): Only move plus up
6050 if subreg of the constant can be simplified into constant
6051 and use the simplified subreg of the constant instead of
6052 the original constant.
6054 * fold-const.c (fold_convertible_p): Don't return true
6055 for conversion of VECTOR_TYPE to same sized integral type.
6056 (fold_convert_loc): Fix up formatting. Fold conversion of
6057 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
6058 instead of NOP_EXPR.
6060 PR tree-optimization/69214
6061 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
6062 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6065 PR tree-optimization/69207
6066 * tree-vect-slp.c (vect_get_constant_vectors): For
6067 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
6068 fold_convertible_p to vector_type's element type, and always
6069 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
6071 2016-01-11 Richard Biener <rguenther@suse.de>
6073 PR tree-optimization/69173
6074 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
6075 fixup the cycle if all stmts are in a pattern.
6077 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
6080 * alias.c (base_alias_check): Move check for addresses with
6081 alignment ANDs before the call for compare_base_decls.
6082 (memrefs_conflict_p): Return -1 for different decls
6083 that went through alignment adjustments.
6085 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6087 PR rtl-optimization/68796
6088 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
6089 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
6090 and QImode comparisons against zero with CC_NZmode.
6091 * config/aarch64/iterators.md (short_mask): New mode_attr.
6093 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
6095 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
6096 (<avx512>_store<mode>_mask): Likewise.
6098 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
6099 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6101 PR rtl-optimization/68841
6102 * ifcvt.c (struct noce_if_info): Add orig_x field.
6103 (bbs_ok_for_cmove_arith): Add to_rename parameter.
6104 Don't record conflicts on to_rename if it's present.
6105 Allow memory destinations in sets.
6106 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
6107 blocks, passing orig_x to the checks.
6108 (noce_process_if_block): Set if_info->orig_x appropriately.
6110 2016-01-11 Tom de Vries <tom@codesourcery.com>
6112 PR tree-optimization/69069
6113 * tree-parloops.c (create_parallel_loop): Add missing phi args.
6115 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
6117 PR rtl-optimization/68920
6118 * config/i386/i386.c (ix86_option_override_internal): Restrict number
6119 of conditional moves for RTL if-conversion to 1 for
6120 TARGET_ONE_IF_CONV_INSN.
6121 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
6122 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
6123 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
6124 parameter to restirct number of conditional moves for
6126 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
6127 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
6130 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
6133 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
6134 onepart vars. Fix typo in comment. Fix reversed condition in
6136 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
6139 * var-tracking.c (dump_onepart_variable_differences): New.
6140 (dataflow_set_different): If a detailed dump is requested,
6141 delay early returns and dump differences between onepart
6142 variables present before and after, and added variables.
6144 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
6147 * expr.c (expand_expr_real_1): For boolean vector constants
6148 with a scalar mode use const_scalar_mask_from_tree.
6149 (const_scalar_mask_from_tree): New.
6150 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
6151 assigned to a mask type to handle constants.
6153 2016-01-11 Martin Jambor <mjambor@suse.cz>
6156 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
6157 useless parameters if we cannot change function signature.
6159 2016-01-11 Martin Jambor <mjambor@suse.cz>
6162 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
6165 2016-01-11 Tom de Vries <tom@codesourcery.com>
6167 PR tree-optimization/69109
6168 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
6171 2016-01-11 Tom de Vries <tom@codesourcery.com>
6173 PR tree-optimization/69108
6174 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
6175 res is not used in a phi.
6177 2016-01-11 Yury Gribov <y.gribov@samsung.com>
6180 * common.opt (frandom-seed): Fix parameter name.
6181 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
6183 2016-01-11 Tom de Vries <tom@codesourcery.com>
6185 PR tree-optimization/69058
6186 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
6189 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
6191 * config/arc/arc.opt (mdiv-rem): Add period to the end.
6192 (mcode-density): Likewise.
6194 2016-01-10 Tom de Vries <tom@codesourcery.com>
6196 PR tree-optimization/69062
6197 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
6198 (parallelize_loops): Don't paralelize loop that has phi with address
6201 2016-01-10 Tom de Vries <tom@codesourcery.com>
6203 PR tree-optimization/69039
6204 * tree-parloops.c (try_create_reduction_list): Only allow single exit
6207 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
6210 * match.pd: Require target has function_c99_misc before doing
6211 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
6213 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
6215 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
6217 * configure: Regenerate.
6219 2016-01-09 Jakub Jelinek <jakub@redhat.com>
6222 PR tree-optimization/69097
6223 * fold-const.h (expr_not_equal_to): New prototype.
6224 * fold-const.c: Include stringpool.h and tree-ssanames.h.
6225 (expr_not_equal_to): New function.
6226 * match.pd (X % -Y is the same as X % Y): Don't optimize
6227 unless X is known not to be equal to minimum or Y is known
6228 not to be equal to -1.
6229 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
6230 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
6231 (simplify_stmt_using_ranges): Adjust caller.
6232 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
6233 substitute_and_fold.
6235 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
6237 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
6240 2016-01-08 Jakub Jelinek <jakub@redhat.com>
6242 PR tree-optimization/69167
6243 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
6244 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
6246 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
6248 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
6249 Richard Biener <rguenther@suse.de>
6251 PR tree-optimization/68707
6252 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
6253 instances that can be handled via vect_load_lanes.
6255 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
6257 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
6258 if we can't determine address equivalence.
6259 * alias.c (compare_base_decl): Update for changed return value of
6260 symtab_node::equal_address_to.
6262 2016-01-08 Jason Merrill <jason@redhat.com>
6266 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
6267 * expr.c (store_field): Not here.
6268 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
6269 call with TREE_ADDRESSABLE type.
6270 * tree-cfg.c (verify_gimple_call): Adjust.
6272 2016-01-08 Olivier Hainque <hainque@adacore.com>
6274 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
6277 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
6279 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
6280 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
6281 (reduc_smin_v2sf): Rename to...
6282 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
6283 (reduc_splus_v2sf): Rename to...
6284 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
6286 2016-01-08 Jakub Jelinek <jakub@redhat.com>
6288 PR tree-optimization/69162
6289 * gimplify.c (gimplify_va_arg_expr): Encode original type of
6290 valist argument in another argument.
6291 (gimplify_modify_expr): Adjust for the above change. Cleanup.
6292 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
6293 to determine the va_list type, build a MEM_REF instead of
6294 build_fold_indirect_ref.
6296 PR tree-optimization/69172
6297 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
6300 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
6302 PR tree-optimization/67781
6303 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
6304 and cmpnop in two steps: first the ones not accessed in original
6305 gimple expression in a endian independent way and then the ones not
6306 accessed in the final result in an endian-specific way.
6308 2016-01-08 Jakub Jelinek <jakub@redhat.com>
6310 PR tree-optimization/69083
6311 * tree-vect-slp.c (vect_get_constant_vectors): For
6312 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
6313 element type. If op is fold_convertible_p to vector_type's element
6314 type, use NOP_EXPR instead of VCE.
6316 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
6318 PR rtl-optimization/67778
6319 PR rtl-optimization/68634
6320 PR rtl-optimization/68909
6321 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
6322 block from the stack until done with it. Remove a superfluous
6323 bitmap set. Remove a superfluous bitmap test.
6325 2016-01-07 Martin Sebor <msebor@redhat.com>
6328 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
6329 constraint on the type of arguments.
6331 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
6333 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
6334 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
6335 unaligned_access on the gcc_options set.
6336 * config/arm/arm.c (arm_option_override_internal): Use
6337 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
6339 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
6342 * config/i386/i386.c (ix86_frame_pointer_required): Enable
6343 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
6345 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
6348 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
6351 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
6352 depending on frame_pointer_needed before remaining integer and SSE
6353 registers are saved.
6355 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
6358 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
6360 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6363 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
6364 Use the "xBm" constraint.
6365 (float<sseintvecmodelower><mode>2<mask_name><round_name):
6367 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
6368 (sse_cvtsi2ssq<round_name>): Likewise.
6369 (sse_cvtss2si<round_name>): Likewise.
6370 (sse_cvtss2siq<round_name>): Likewise.
6371 (sse2_cvtsi2sdq<round_name>): Likewise.
6372 (sse2_cvtsd2si<round_name>): Likewise.
6373 (sse2_cvtsd2siq<round_name>): Likewise.
6374 * config/i386/subst.md (round_nimm_scalar_predicate): New
6377 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
6380 * varasm.c (make_decl_rtl): Mark invalid register vars as
6383 PR rtl-optimization/66206
6384 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
6385 All callers changed.
6387 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6389 PR tree-optimization/69141
6390 * tree-ssa-pre.c: Include langhooks.h.
6391 (eliminate_dom_walker::before_dom_children): Use
6392 lang_hooks.decl_printable_name instead of
6393 cgraph_node::get ()->name ().
6396 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
6397 it and DECL_ALIGN too.
6399 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
6401 * config/mips/mips-ftypes.def: Sort to lexicographical order.
6403 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
6406 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
6407 depending on frame_pointer_needed before remaining integer and SSE
6408 registers are saved.
6410 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6412 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
6413 mode iterator with VSX_M2.
6414 (*p9_vecstore_<mode>): Likewise.
6415 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
6416 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
6417 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
6418 (define_split for VSX_LE128 stores): Likewise.
6419 (define_peephole2 for TImode LE swaps): Likewise.
6420 (define_split for VSX_LE128 post-reload stores): Likewise.
6422 2016-01-06 Marek Polacek <polacek@redhat.com>
6425 * convert.c (convert_to_integer_1): Adjust call to
6426 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
6427 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
6428 EXPR instead of ARG.
6429 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
6431 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
6434 * doc/extend.texi (RL78 Variable Attributes): New section.
6436 2016-01-05 Marek Polacek <polacek@redhat.com>
6439 * builtins.c (get_memmodel): Use expansion point location rather than
6440 the input location. Call warning_at rather than warning.
6441 (expand_builtin_atomic_compare_exchange): Likewise.
6442 (expand_builtin_atomic_load): Likewise.
6443 (expand_builtin_atomic_store): Likewise.
6444 (expand_builtin_atomic_clear): Likewise.
6446 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
6449 * config/i386/i386.c (ix86_expand_vector_logical_operator):
6450 Replace nonimmediate_operand with vector_operand.
6451 * config/i386/predicates.md (vector_operand): New predicate.
6452 (general_vector_operand): Replace nonimmediate_operand with
6454 * config/i386/sse.md: Replace nonimmediate_operand with
6455 vector_operand and m constraint with Bm constraint on SSE
6456 patterns with 16-byte memory operand.
6457 * config/i386/subst.md (round_nimm_predicate): Replace
6458 nonimmediate_operand with vector_operand.
6459 (round_saeonly_nimm_predicate): Likewise.
6460 (round_saeonly_nimm_scalar_predicate): New.
6462 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
6465 * config/i386/constraints.md (Bm): New constraint.
6466 * config/i386/predicates.md (vector_memory_operand): New
6468 * config/i386/sse.md: Replace xm with xBm in plusminus and
6471 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
6474 * doc/extend.texi (V850 Function Attributes): New section.
6475 (V850 Variable Attributes): New section.
6477 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
6480 * doc/extend.texi (MicroBlaze Function Attributes): Document
6481 interrupt_handler and fast_interrupt attributes.
6483 2016-01-05 Sergei Trofimovich <siarheit@google.com>
6486 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
6487 for local symbolic operands.
6488 * config/ia64/predicates.md (local_symbolic_operand64): New
6491 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6493 PR rtl-optimization/68651
6494 * combine.c (combine_simplify_rtx): Canonicalize x + x into
6497 2016-01-05 Nathan Sidwell <nathan@acm.org>
6499 * alias.c (compare_base_decls): Use symtab_node::get.
6501 2016-01-05 Nick Clifton <nickc@redhat.com>
6504 * ira-costs.c (copy_cost): Initialise the t_icode field of the
6505 secondary_reload_info structure.
6508 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
6509 decls if weak support is available.
6511 2016-01-04 Martin Sebor <msebor@redhat.com>
6513 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
6515 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6517 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
6518 OPTION_MASK_P9_DFORM.
6520 * config/rs6000/constraints.md (wo constraint): New constraint for
6523 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
6525 (rs6000_init_hard_regno_mode_ok): Likewise.
6527 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
6530 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
6531 expanders not to have constraints. Add support for ISA 3.0 xxperm
6532 instruction. Add support for fusing xxlor with xxperm.
6533 (altivec_vperm_<mode>_internal): Likewise.
6534 (altivec_vperm_v8hiv16qi): Likewise.
6535 (altivec_vperm_<mode>v16q): Likewise.
6536 (altivec_vperm_<mode>_uns): Likewise.
6537 (vperm_v8hiv4si): Likewise.
6538 (vperm_v16qiv8hi): Likewise.
6540 * doc/md.texi (RS/6000 constraints): Document wo constraint.
6542 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6544 Update copyright years.
6546 * gcc.c (process_command): Update copyright notice dates.
6547 * gcov-dump.c (print_version): Ditto.
6548 * gcov.c (print_version): Ditto.
6549 * gcov-tool.c (print_version): Ditto.
6550 * gengtype.c (create_file): Ditto.
6551 * doc/cpp.texi: Bump @copying's copyright year.
6552 * doc/cppinternals.texi: Ditto.
6553 * doc/gcc.texi: Ditto.
6554 * doc/gccint.texi: Ditto.
6555 * doc/gcov.texi: Ditto.
6556 * doc/install.texi: Ditto.
6557 * doc/invoke.texi: Ditto.
6559 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
6561 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
6562 modes larger than TImode as TImode if NEON is not enabled.
6564 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
6567 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
6568 mode for %f0-%f31 only if TARGET_FPU.
6570 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
6573 * config/sparc/sparc.c (scan_record_type): Take into account subfields
6574 to compute the PACKED_P predicate.
6575 (function_arg_record_value): Minor tweaks.
6577 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
6579 * doc/install.texi (--with-multilib-list): Describe the meaning of the
6580 option for arm*-*-* targets.
6582 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
6584 * doc/extend.texi (Common Function Attributes): Move docs for
6585 MSP430-specific attributes to....
6586 (MSP430 Function Attributes): ...here. Delete the redundant
6587 entries and copy-edit the remaining text.
6588 (MSP430 Variable Attributes): Use uniform format for index
6589 entries and add a cross-reference to the corresponding function
6592 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
6594 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
6596 (x86 Options): Likewise.
6598 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
6602 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
6603 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
6604 to corresponding attribute.
6606 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
6608 * doc/extend.texi (Common Function Attributes) <noplt>: Move
6609 to correct alphabetization of table. Copy-edit and correct
6611 <stack_protect>: Likewise.
6612 <target_clones>: Likewise.
6614 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
6615 Correct punctuation.
6616 (Code Gen Options) <-fno-plt>: Copy-edit.
6618 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6621 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
6622 SI values. Explicitly convert SI to DI and vice-versa.
6624 2016-01-01 Jakub Jelinek <jakub@redhat.com>
6626 PR tree-optimization/69070
6627 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
6628 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
6631 * ubsan.c (ubsan_instrument_float_cast): Call
6632 initialize_sanitizer_builtins.
6635 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
6637 Copyright (C) 2016 Free Software Foundation, Inc.
6639 Copying and distribution of this file, with or without modification,
6640 are permitted in any medium without royalty provided the copyright
6641 notice and this notice are preserved.