1 2016-02-16 Jakub Jelinek <jakub@redhat.com>
3 PR tree-optimization/69802
4 * tree-ssa-reassoc.c (update_range_test): If op is
5 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
6 op == 1 test of precision 1 integral op, otherwise handle
7 that case as op itself. Fix up formatting.
8 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
11 2016-02-16 Richard Biener <rguenther@suse.de>
13 PR tree-optimization/69586
14 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
15 types for conversion sources.
17 2016-02-16 Richard Biener <rguenther@suse.de>
20 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
23 2016-02-16 Alan Modra <amodra@gmail.com>
26 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
27 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
28 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
30 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
31 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
32 (p8_fmrgow_<mode>): Likewise.
33 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
35 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
36 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
37 to use movdi_internal64. Remove op0_di.
38 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
40 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
42 Add support for the FCCMP insn types
44 * config/aarch64/aarch64.md (fccmp): Change insn type.
46 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
47 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
48 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
49 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
50 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
51 * config/arm/types.md (fccmps): Add new insn type.
54 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
56 * alias.c (get_alias_set): Fix a typo in comment.
58 2016-02-15 Richard Biener <rguenther@suse.de>
60 PR tree-optimization/69595
61 * match.pd: Complete range test simplification to true.
63 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
65 PR rtl-optimization/69648
66 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
69 PR rtl-optimization/69752
70 * ira.c (update_equiv_regs): When looking for more than a single SET,
71 also take other side effects into account.
73 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
75 * config/s390/s390.c (s390_function_profiler): Add a new sequence
76 for z900+ CPUs in 31-bit mode.
78 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
80 * common/config/s390/s390-common.c (s390_supports_split_stack):
82 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
83 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
84 * config/s390/s390.c (struct machine_function): New field
85 split_stack_varargs_pointer.
86 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
87 in s390_emit_prologue.
88 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
90 (morestack_ref): New global.
91 (SPLIT_STACK_AVAILABLE): New macro.
92 (s390_expand_split_stack_prologue): New function.
93 (s390_live_on_entry): New function.
94 (s390_va_start): Use split-stack vararg pointer if appropriate.
95 (s390_asm_file_end): Emit the split-stack note sections.
96 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
97 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
98 (UNSPECV_SPLIT_STACK_CALL): New unspec.
99 (UNSPECV_SPLIT_STACK_DATA): New unspec.
100 (split_stack_prologue): New expand.
101 (split_stack_space_check): New expand.
102 (split_stack_data): New insn.
103 (split_stack_call): New expand.
104 (split_stack_call_*): New insn.
105 (split_stack_cond_call): New expand.
106 (split_stack_cond_call_*): New insn.
108 2016-02-15 Richard Biener <rguenther@suse.de>
110 PR tree-optimization/69783
111 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
112 Add trivially correct cases.
114 2016-02-15 Tom de Vries <tom@codesourcery.com>
117 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
119 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
121 2016-02-15 Richard Biener <rguenther@suse.de>
123 PR tree-optimization/69776
124 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
125 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
126 indicate whether we can use TBAA to disambiguate against stores.
127 Use alias-set zero if not.
128 (visit_reference_op_store): Do not use TBAA when looking up
130 * tree-ssa-pre.c (compute_avail): Use TBAA here.
131 (eliminate_dom_walker::before_dom_children): But not when looking
134 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
136 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
138 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
140 * config/i386/znver1.md
141 (znver1_pop, znver1_pop_mem,
142 znver1_load_imov_double_store,
143 znver1_load_imov_direct_store,
144 znver1_load_imov_direct_load,
145 znver1_load_imov_double_load): Add new.
146 (znver1_insn, znver1_insn_load): Add icmov type.
148 znver1_sseavx_fma_load,
150 znver1_avx256_fma_load): Fix pipe usage.
152 2016-02-14 Alan Modra <amodra@gmail.com>
155 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
156 with an invalid hard reg, reload just the reg not the entire
157 pre/post-inc/dec address expression.
159 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
162 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
163 fixed R1_REG scratch reg.
164 (sibcall_value_pcrel_fdpic): Likewise.
166 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
170 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
172 2016-02-12 Walter Lee <walt@tilera.com>
174 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
175 * config/tilegx/t-tilegx: Likewise.
177 2016-02-12 David Malcolm <dmalcolm@redhat.com>
180 * diagnostic-show-locus.c (struct line_span): New struct.
181 (layout::get_first_line): Delete.
182 (layout::get_last_line): Delete.
183 (layout::get_num_line_spans): New member function.
184 (layout::get_line_span): Likewise.
185 (layout::print_heading_for_line_span_index_p): Likewise.
186 (layout::get_expanded_location): Likewise.
187 (layout::calculate_line_spans): Likewise.
188 (layout::m_first_line): Delete.
189 (layout::m_last_line): Delete.
190 (layout::m_line_spans): New field.
191 (layout::layout): Update comment. Replace m_first_line and
192 m_last_line with m_line_spans, replacing their initialization
193 with a call to calculate_line_spans.
194 (diagnostic_show_locus): When printing source lines and
195 annotations, rather than looping over a single span
196 of lines, instead loop over each line_span within
197 the layout, with an inner loop over the lines within them.
198 Call the context's start_span callback when changing line spans.
199 * diagnostic.c (diagnostic_initialize): Initialize start_span.
200 (diagnostic_build_prefix): Break out the building of the location
201 part of the string into...
202 (diagnostic_get_location_text): ...this new function, rewriting
203 it from nested ternary expressions to a sequence of "if"
205 (default_diagnostic_start_span_fn): New function.
206 * diagnostic.h (diagnostic_start_span_fn): New typedef.
207 (diagnostic_context::start_span): New field.
208 (default_diagnostic_start_span_fn): New prototype.
210 2016-02-12 David Malcolm <dmalcolm@redhat.com>
213 * gcc.c (driver::finalize): Fix cleanup of "specs".
215 2016-02-12 David Malcolm <dmalcolm@redhat.com>
219 * gcc.c (driver::driver): Initialize m_option_suggestions.
220 (driver::~driver): Clean up m_option_suggestions.
221 (suggest_option): Convert to...
222 (driver::suggest_option): ...this, and split out into
223 driver::build_option_suggestions and find_closest_string.
224 (driver::build_option_suggestions): New function, from
225 first half of suggest_option. Special-case
226 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
227 the sanitizer_opts array. For options of enum types, add the
228 various enum values to the candidate strings.
229 (driver::handle_unrecognized_options): Remove "const".
230 * gcc.h (driver::handle_unrecognized_options): Likewise.
231 (driver::build_option_suggestions): New decl.
232 (driver::suggest_option): New decl.
233 (driver::m_option_suggestions): New field.
234 * opts-common.c (add_misspelling_candidates): New function.
235 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
237 * opts.h (sanitizer_opts): New array decl.
238 (add_misspelling_candidates): New function decl.
239 * spellcheck.c (find_closest_string): New function.
240 * spellcheck.h (find_closest_string): New function decl.
242 2016-02-12 Jakub Jelinek <jakub@redhat.com>
244 PR rtl-optimization/69764
245 PR rtl-optimization/69771
246 * optabs.c (expand_binop_directly): For shift_optab_p, force
247 convert_modes with VOIDmode if xop1 has VOIDmode.
249 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
252 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
253 to correctly determine instrumentation thunks.
255 2016-02-12 Jakub Jelinek <jakub@redhat.com>
258 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
259 type by reference, force lhs on the call.
262 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
263 Compute retval and retbnd early in all cases if split_part_return_p
264 and return_bb is not EXIT. Remove all clobber stmts and reset
265 all debug stmts that refer to SSA_NAMEs defined in split part,
266 except if it is retval, in that case replace the old retval with the
267 lhs of the call to the split part.
269 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
272 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
275 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
276 whose result is used in PHI.
277 (maybe_optimize_range_tests): Likewise.
278 (final_range_test_p): Likweise.
280 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
283 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
284 whose result is used in PHI.
285 (maybe_optimize_range_tests): Likewise.
286 (final_range_test_p): Likweise.
288 2016-02-12 Jakub Jelinek <jakub@redhat.com>
290 * cgraph.c: Spelling fixes - behaviour -> behavior and
291 neighbour -> neighbor.
292 * target.def: Likewise.
293 * sel-sched.c: Likewise.
294 * config/mips/mips.c: Likewise.
295 * config/arc/arc.md: Likewise.
296 * config/arm/cortex-a57.md: Likewise.
297 * config/arm/arm.c: Likewise.
298 * config/arm/neon.md: Likewise.
299 * config/arm/arm-c.c: Likewise.
300 * config/vms/vms-c.c: Likewise.
301 * config/s390/s390.c: Likewise.
302 * config/i386/znver1.md: Likewise.
303 * config/i386/i386.c: Likewise.
304 * config/ia64/hpux-unix2003.h: Likewise.
305 * config/msp430/msp430.md: Likewise.
306 * config/rx/rx.c: Likewise.
307 * config/rx/rx.md: Likewise.
308 * config/aarch64/aarch64-simd.md: Likewise.
309 * config/aarch64/aarch64.c: Likewise.
310 * config/nvptx/nvptx.c: Likewise.
311 * config/bfin/bfin.c: Likewise.
312 * config/cris/cris.opt: Likewise.
313 * config/rs6000/rs6000.c: Likewise.
314 * target.h: Likewise.
315 * spellcheck.c: Likewise.
316 * ira-build.c: Likewise.
317 * tree-inline.c: Likewise.
318 * builtins.c: Likewise.
319 * lra-constraints.c: Likewise.
320 * explow.c: Likewise.
322 * targhooks.c: Likewise.
323 * tree-vect-data-refs.c: Likewise.
325 * doc/tm.texi: Likewise.
326 * doc/extend.texi: Likewise.
327 * doc/install.texi: Likewise.
328 * doc/md.texi: Likewise.
329 * tree-ssa-tail-merge.c: Likewise.
330 * sched-int.h: Likewise.
331 * match.pd: Likewise.
332 * sched-ebb.c: Likewise.
333 * target.def (omit_struct_return_reg): Likewise.
334 * gimple-ssa-isolate-paths.c: Likewise.
335 (find_implicit_erroneous_behaviour): Renamed to...
336 (find_implicit_erroneous_behavior): ... this.
337 (find_explicit_erroneous_behaviour): Renamed to...
338 (find_explicit_erroneous_behavior): ... this.
339 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
341 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
343 PR rtl-optimization/64682
344 PR rtl-optimization/69567
345 PR rtl-optimization/69737
346 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
347 in I2 as well, just lose it.
349 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
351 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
353 (aarch64_last_printed_tune_string): Likewise.
354 (aarch64_declare_function_name): Only output .arch assembler
355 directive if it will be different from the previously output
356 directive. Same for .tune comment but only if -dA is set.
357 (aarch64_start_file): New function.
358 (TARGET_ASM_FILE_START): Define.
360 2016-02-11 David Malcolm <dmalcolm@redhat.com>
363 * Makefile.in (PLUGIN_HEADERS): Add params.list.
365 2016-02-11 Jakub Jelinek <jakub@redhat.com>
368 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
369 -Wmaybe-uninitialized warning.
371 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
374 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
376 2016-02-11 Richard Biener <rguenther@suse.de>
378 PR rtl-optimization/69291
379 * ifcvt.c (noce_try_store_flag_constants): Do not allow
380 subexpressions affected by changing the result.
382 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
385 * lra-constraints.c (curr_insn_transform): Find in/out operands
386 for secondary memory moves. Update dups.
388 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
390 PR tree-optimization/69652
391 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
392 to nested loop, did source re-formatting, skip debug statements,
393 add check on statement with volatile operand, remove dead scalar
396 2016-02-10 Jakub Jelinek <jakub@redhat.com>
397 Patrick Palka <ppalka@gcc.gnu.org>
401 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
402 calls if the return type is TREE_ADDRESSABLE.
403 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
404 * ipa-split.c (split_function): Fix doubled "we" in comment.
405 Use void return type for the split part even if
406 !split_point->split_part_set_retval.
408 2016-02-10 Bin Cheng <bin.cheng@arm.com>
410 PR tree-optimization/68021
411 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
412 when computing the value of biv cand by itself.
414 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
416 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
417 (cortexa57_tunings): Likewise.
418 (cortexa72_tunings): Likewise.
419 (arch_macro_fusion_pair_p): Add support for AES fusion.
420 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
421 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
422 Allow virtual registers before reload so early scheduling works.
423 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
424 correct latency and pipeline.
425 (cortex_a57_crypto_complex): Likewise.
426 (cortex_a57_crypto_xor): Likewise.
427 (define_bypass): Add AES bypass.
429 2016-02-10 Richard Biener <rguenther@suse.de>
431 PR tree-optimization/69726
432 * passes.def: Add DCE pass before late uninit.
433 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
434 really fixup if-conversions job.
436 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
438 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
439 (arm_cortex_a57_tune): Likewise.
440 (aarch_macro_fusion_pair_p): Add support for AES fusion.
441 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
443 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
445 * timevar.def (TV_PHASE_DBGINFO): Delete.
446 (TV_PHASE_CHECK_DBGINFO): Likewise.
447 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
449 2016-02-10 Richard Biener <rguenther@suse.de>
451 PR tree-optimization/69719
452 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
453 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
455 2016-02-09 Andrew Pinski <apinski@cavium.com>
458 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
459 get_vcond_mask_icode returns false.
461 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
464 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
465 an ADDIS that adds a pointer to a large constant that sets the
466 upper16 bits with a load operation.
468 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
471 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
473 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
475 (vzipq_s16): Likewise.
476 (vzipq_s32): Likewise.
477 (vzipq_f32): Likewise.
478 (vzipq_u8): Likewise.
479 (vzipq_u16): Likewise.
480 (vzipq_u32): Likewise.
481 (vzipq_p8): Likewise.
482 (vzipq_p16): Likewise.
484 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
487 * config/arm/arm.c (neon_endian_lane_map): New function.
488 (neon_vector_pair_endian_lane_map): New function.
489 (arm_evpc_neon_vuzp): Allow for big endian lane order.
490 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
492 (vuzpq_s16): Likewise.
493 (vuzpq_s32): Likewise.
494 (vuzpq_f32): Likewise.
495 (vuzpq_u8): Likewise.
496 (vuzpq_u16): Likewise.
497 (vuzpq_u32): Likewise.
498 (vuzpq_p8): Likewise.
499 (vuzpq_p16): Likewise.
501 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
504 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
507 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
509 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
510 truncate const_int operand 1 to QImode.
512 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
514 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
515 corresponding to an abnormal edge.
517 2016-02-09 Tom de Vries <tom@codesourcery.com>
519 PR tree-optimization/69599
520 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
522 (find_func_aliases_for_builtin_call, find_func_clobbers)
523 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
526 2016-02-09 Richard Biener <rguenther@suse.de>
528 PR tree-optimization/69715
529 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
530 LHS on calls as non-rewritable.
532 2016-02-09 Tom de Vries <tom@codesourcery.com>
535 * lto-wrapper.c (append_diag_options): New function.
536 (compile_offload_image): Call append_diag_options.
538 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
541 * doc/extend.texi (Flag Output Operands): Correct sectioning.
542 Minor copy-edit to fix verb tenses.
544 2016-02-08 Jakub Jelinek <jakub@redhat.com>
546 PR tree-optimization/69209
547 * ipa-split.c (split_function): If split part is not
548 returning retval, retval has gimple type but is not
549 gimple value, force it into a SSA_NAME first.
551 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
553 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
556 2016-02-08 Jason Merrill <jason@redhat.com>
559 * convert.c (convert_to_integer_1): Check dofold on truncation
561 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
562 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
563 Rename from *_nofold.
564 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
565 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
567 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
570 * tree.c (build_common_tree_nodes): Remove short_double argument.
572 * tree.h (build_common_tree_nodes): Adjust declaration.
573 * doc/invoke.texi (-fshort-double): Remove documentation.
574 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
575 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
576 * lto-wrapper.c (merge_and_complain, append_compiler_options)
577 (append_linker_options): Don't handle OPT_fshort_double.
579 PR rtl-optimization/68730
580 * lra-remat.c (insn_to_cand_activation): New static variable.
581 (lra_remat): Allocate and free it.
582 (create_cand): New arg activation. Initialize a field in
583 insn_to_cand_activation if it is nonnull.
584 (create_cands): Pass the activation insn to create_cand when making
585 a candidate involving an output reload. Reorganize code a little.
586 (do_remat): Keep track of active status of candidates in a separate
589 2016-02-08 Richard Biener <rguenther@suse.de>
591 PR tree-optimization/69719
592 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
593 Properly use absolute of the difference of the two offsets to
594 compare or adjust the segment length.
596 2016-02-08 Richard Biener <rguenther@suse.de>
597 Jeff Law <law@redhat.com>
600 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
601 types for anonymous SSA names.
603 2016-02-08 Richard Biener <rguenther@suse.de>
605 PR rtl-optimization/69274
606 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
608 2016-02-08 Jeff Law <law@redhat.com>
610 PR tree-optimization/65917
611 * tree-ssa-dom.c (record_temporary_equivalences): Record both
612 equivalences from if (x == y) style conditionals.
613 (loop_depth_of_name): Remove.
614 (record_equality): Remove loop depth check.
615 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
616 (const_and_copies::record_const_or_copy_raw): New member function.
617 * tree-ssa-scopedtables.c
618 (const_and_copies::record_const_or_copy_raw): New, factored out of
619 (const_and_copies::record_const_or_copy): Call new member function.
621 2016-02-05 Jeff Law <law@redhat.com>
623 PR tree-optimization/68541
624 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
625 (count_stmts_in_block): New function.
626 (poor_ifcvt_candidate_code): Likewise.
627 (is_feasible_trace): Add some heuristics to determine when path
628 splitting is profitable.
629 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
630 is a diamond with a single exit.
632 2016-02-05 Martin Sebor <msebor@redhat.com>
635 * doc/invoke.texi: Update -Wplacement-new to take an optional
638 2016-02-06 Richard Henderson <rth@redhat.com>
641 * tree.c (tree_nop_conversion_p): Do not strip casts into or
642 out of non-standard address spaces.
644 2016-02-05 Jakub Jelinek <jakub@redhat.com>
646 PR rtl-optimization/69691
647 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
649 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
651 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
652 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
653 (*ieee128_mfvsrd_64bit): Likewise.
654 (*ieee128_mfvsrd_32bit): Likewise.
656 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
660 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
662 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
663 instrumented_version.
665 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
667 * doc/invoke.texi (Optimize Options): In table of --param options
668 rename second occurrence of tracer-min-branch-ratio to
669 tracer-min-branch-probability, rename
670 tracer-min-branch-ratio-feedback to
671 tracer-min-branch-probability-feedback and clarify description,
672 rename sched-spec-state-edge-prob-cutoff to
673 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
674 to selsched-insns-to-rename, rename lto-minpartition to
675 lto-min-partition, delete reorder-blocks-duplicate and
676 reorder-blocks-duplicate-feedback.
678 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
680 * config/s390/s390.c (s390_register_info_set_ranges): Remove
683 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
685 * doc/extend.texi: S/390: Correct some typos.
687 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
689 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
691 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
694 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
695 (s390_register_info_gprtofpr): Use new macros above.
696 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
698 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
699 its name. Adjust restore and save gpr ranges.
700 (s390_register_info_set_ranges): New function.
701 (s390_register_info): Use new macros above. Call
702 s390_register_info_set_ranges.
703 (s390_optimize_register_info): Likewise.
704 (s390_hard_regno_rename_ok): Use new macros.
705 (s390_hard_regno_scratch_ok): Likewise.
706 (s390_emit_epilogue): Likewise.
707 (s390_can_use_return_insn): Likewise.
708 (s390_optimize_prologue): Likewise.
709 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
711 2016-02-05 Jakub Jelinek <jakub@redhat.com>
714 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
716 (ix86_option_override_internal): Disable TARGET_STV even for
717 -m{incoming,preferred}-stack-boundary=3.
719 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
721 * config.gcc: Mark deprecated rtems targets as obsolete.
723 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
725 PR rtl-optimization/64682
726 PR rtl-optimization/69567
727 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
728 before I2 only if the register is both used and set in I2.
730 2016-02-04 DJ Delorie <dj@redhat.com>
732 * config/msp430/msp430.c (msp430_start_function): Add function type.
734 2016-02-04 Jakub Jelinek <jakub@redhat.com>
737 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
739 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
741 PR rtl-optimization/69577
743 2015-10-29 Richard Henderson <rth@redhat.com>
747 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
748 sse check to the exact conditions of PR 67609.
750 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
753 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
754 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
755 not allowed into the traditional Altivec registers.
756 (movtd_64bit_nodm): Likewise.
757 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
759 2016-02-04 David Malcolm <dmalcolm@redhat.com>
761 * config/aarch64/cortex-a57-fma-steering.c
762 (aarch64_register_fma_steering): Remove "static" from arguments
765 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
768 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
771 2016-02-04 Mike Frysinger <vapier@gentoo.org>
773 * doc/invoke.texi: Delete -mno-fma4.
775 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
777 PR rtl-optimization/69577
778 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
779 (find_subregs_of_mode): Update accordingly. Iterate over partial
782 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
784 * config/arm/arm-protos.h (neon_reinterpret): Remove.
785 * config/arm/arm.c (neon_reinterpret): Remove.
786 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
787 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
788 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
789 vreinterpretti): Remove.
790 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
791 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
792 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
793 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
794 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
795 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
796 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
797 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
798 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
799 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
800 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
801 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
802 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
803 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
804 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
805 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
806 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
807 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
808 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
809 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
810 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
811 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
812 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
813 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
814 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
815 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
816 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
817 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
818 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
819 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
820 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
821 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
822 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
823 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
824 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
825 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
826 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
827 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
828 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
829 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
830 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
831 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
832 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
833 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
834 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
835 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
836 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
837 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
838 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
839 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
840 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
841 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
842 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
843 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
844 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
845 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
846 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
847 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
848 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
849 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
850 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
851 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
852 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
853 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
854 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
855 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
856 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
857 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
858 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
859 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
860 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
861 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
862 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
863 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
864 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
865 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
866 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
867 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
868 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
869 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
870 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
871 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
872 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
873 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
874 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
875 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
876 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
877 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
878 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
879 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
880 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
881 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
882 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
883 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
884 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
885 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
886 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
887 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
888 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
889 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
890 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
891 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
892 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
894 2016-02-04 Martin Liska <mliska@suse.cz>
897 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
898 that are gimple_store_p.
899 (maybe_instrument_call): Likewise.
901 2016-02-04 Bin Cheng <bin.cheng@arm.com>
903 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
904 register scaling out of memory reference and comment why.
906 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
910 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
911 folding the source of a SET.
913 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
917 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
918 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
920 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
924 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
927 2016-02-04 Christian Bruel <christian.bruel@st.com>
929 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
930 * config/arm/arm.c (arm_set_current_function): Likewise.
932 2016-02-04 Jakub Jelinek <jakub@redhat.com>
933 Ilya Enkovich <enkovich.gnu@gmail.com>
934 H.J. Lu <hongjiu.lu@intel.com>
937 * config/i386/i386.c (convert_scalars_to_vector): Remove
938 stack alignment fixes.
939 (ix86_option_override_internal): Disable TARGET_STV if stack
940 might not be aligned enough.
941 (ix86_minimum_alignment): Assert that TARGET_STV is false.
943 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
945 * gcc/config/i386/x86-tune.def: Disable default prefetching
948 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
949 Vladimir Makarov <vmakarov@redhat.com>
952 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
953 in validating fused toc addresses.
955 2016-02-03 Jakub Jelinek <jakub@redhat.com>
958 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
959 range->m_caret fields if range->m_show_caret_p is false.
962 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
963 Force oldval into register if it does not satisfy reg_or_short_operand
964 predicate. Fix up formatting.
966 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
967 Alexandre Oliva <aoliva@redhat.com>
970 * lra-constraints.c (simplify_operand_subreg): Check additionally
971 address validity after potential reloading.
972 (process_address_1): Check insns validity. In case of failure do
975 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
978 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
981 2016-02-02 Jakub Jelinek <jakub@redhat.com>
983 * wide-int.cc (canonize_uhwi): New function.
984 (wi::divmod_internal): Use it.
986 2016-02-02 James Norris <jnorris@codesourcery.com
988 * gimplify.c (omp_notice_variable): Add usage check.
990 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
992 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
993 like LE, GE, LT, GT when emitting relational operator.
995 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
997 * ira-costs.c (find_costs_and_classes): Add extra argument.
998 * target.def (ira_change_pseudo_allocno_class): Add parameter.
999 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
1000 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
1001 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
1002 Add best_class parameter, and return it if not ALL_REGS.
1003 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
1005 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
1008 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
1010 * config/aarch64/aarch64.c
1011 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
1012 (aarch64_ira_change_pseudo_allocno_class): New function.
1014 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
1017 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
1019 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1021 * config/avr/avr.c (avr_option_override): Set
1022 PARAM_ALLOW_STORE_DATA_RACES to 1.
1024 2016-02-02 Richard Biener <rguenther@suse.de>
1026 PR tree-optimization/69595
1027 * match.pd: Add range test simplifications to true/false.
1029 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
1031 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
1032 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
1035 2016-02-02 Richard Biener <rguenther@suse.de>
1037 PR tree-optimization/69606
1038 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
1039 info on the result before moving a stmt.
1041 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
1044 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
1045 branch with vector comparison.
1046 * config/i386/sse.md (VI48_AVX): New mode iterator.
1047 (define_expand "cbranch<mode>4): Add support for conditional branch
1048 with vector comparison.
1049 * tree-vect-loop.c (optimize_mask_stores): New function.
1050 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
1051 has_mask_store field of vect_info.
1052 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
1053 vectorized loops having masked stores after vec_info destroy.
1054 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
1055 correspondent macros.
1056 (optimize_mask_stores): Add prototype.
1058 2016-02-02 Alan Modra <amodra@gmail.com>
1061 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
1064 2016-02-02 Alan Modra <amodra@gmail.com>
1067 * config/rs6000/rs6000.c (need_toc_init): New var, set it
1068 whenever toc_label_name used.
1069 (rs6000_file_start): Don't set up toc section here,
1070 (rs6000_output_function_epilogue): do so here instead,
1071 (rs6000_xcoff_file_start): and here.
1072 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
1073 (load_toc_aix_di): Likewise.
1075 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1077 PR rtl-optimization/69592
1078 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
1079 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
1080 (num_sign_bit_copies_binary_arith_p): New inline function.
1081 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
1083 2016-02-01 Jeff Law <law@redhat.com>
1085 PR tree-optimization/69580
1086 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
1087 * tree-ssa-threadbackward.c
1088 (fsm_find_control_statement_thread_paths): Do not try to walk
1089 through large PHI nodes.
1091 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1093 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
1094 when count is incremented above limit, don't analyze further
1097 * omp-low.c (oacc_parse_default_dims): Avoid
1098 -Wsign-compare warning, make sure value fits into int
1099 rather than just unsigned int.
1101 2016-02-01 Bin Cheng <bin.cheng@arm.com>
1103 PR tree-optimization/67921
1104 * fold-const.c (split_tree): New parameters. Convert pointer
1105 type variable part to proper type before negating.
1106 (fold_binary_loc): Pass new arguments to split_tree.
1108 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1110 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
1111 (nvptx_goacc_validate_dims): Extend to handle global defaults.
1112 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
1113 * doc/tm.texti: Rebuilt.
1114 * doc/invoke.texi (fopenacc-dim): Document.
1115 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
1116 (append_compiler_options): Likewise.
1117 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
1118 (oacc_parse_default_dims): New.
1119 (oacc_validate_dims): Add USED arg. Select non-unity default when
1121 (oacc_loop_fixed_partitions): Return mask of used partitions.
1122 (oacc_loop_auto_partitions): Emit dump info.
1123 (oacc_loop_partition): Return mask of used partitions.
1124 (execute_oacc_device_lower): Parse default dimension arg. Adjust
1125 loop partitioning and validation calls.
1127 2016-02-01 Richard Biener <rguenther@suse.de>
1130 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
1132 2016-02-01 Richard Biener <rguenther@suse.de>
1134 PR tree-optimization/69574
1135 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
1136 of asserting return chrec_dont_know.
1138 2016-02-01 Martin Liska <mliska@suse.cz>
1140 * mem-stats-traits.h: Add copyright header.
1141 * mem-stats.h: Likewise.
1143 2016-02-01 Richard Biener <rguenther@suse.de>
1145 PR tree-optimization/69579
1146 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
1147 Do not propagate through abnormal PHI results.
1149 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
1151 * postreload.c (reload_cse_simplify): Remove dead code.
1153 2016-02-01 Jakub Jelinek <jakub@redhat.com>
1155 PR rtl-optimization/69570
1156 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
1157 if there is more than one set, not if there is a single set.
1159 2016-02-01 Richard Henderson <rth@redhat.com>
1162 * combine.c (make_compound_operation): When looking through a
1163 subreg, make sure to re-extend to the width of the outer mode.
1165 2016-01-30 Jakub Jelinek <jakub@redhat.com>
1167 PR tree-optimization/69546
1168 * wide-int.cc (wi::divmod_internal): For unsigned division
1169 where both operands fit into uhwi, if o1 is 1 and o0 has
1170 msb set, if divident_prec is larger than bits per hwi,
1171 clear another quotient word and return 2 instead of 1.
1172 Similarly for remainder with msb in HWI set, if dividend_prec
1173 is larger than bits per hwi.
1175 2016-01-29 Martin Jambor <mjambor@suse.cz>
1177 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
1178 Use short lowercase names.
1179 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
1180 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
1181 acq_rel one. Protect warning agains segfaults if
1182 get_memory_order_name returns NULL.
1183 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
1184 with release semantics. Do not warn if get_memory_order already did.
1185 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
1186 semantics. Fix check for relaxed or acquire semantics. Do not warn
1187 if get_memory_order already did.
1189 2016-01-29 Sebastian Pop <s.pop@samsung.com>
1191 * doc/install.texi: Document that isl-0.16 is supported.
1193 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
1196 * config/i386/constraints.md (Bm): Describe as special memory
1198 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
1199 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1200 * genpreds.c (struct constraint_data): Add is_special_memory.
1201 (have_special_memory_constraints, special_memory_start): New
1203 (special_memory_end): Ditto.
1204 (add_constraint): Add new arg is_special_memory. Add code to
1205 process its true value. Update have_special_memory_constraints.
1206 (process_define_constraint): Pass the new arg.
1207 (process_define_register_constraint): Ditto.
1208 (choose_enum_order): Process special memory.
1209 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
1210 function insn_extra_special_memory_constraint.
1211 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1212 * gensupport.c (process_rtx): Process
1213 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
1214 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
1215 * ira-lives.c (single_reg_class): Use
1216 insn_extra_special_memory_constraint.
1217 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
1218 * lra-constraints.c (process_alt_operands): Ditto.
1219 (curr_insn_transform): Use insn_extra_special_memory_constraint.
1220 * recog.c (asm_operand_ok, preprocess_constraints): Process
1222 * reload.c (find_reloads): Ditto.
1223 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
1224 * stmt.c (parse_input_constraint): Use
1225 insn_extra_special_memory_constraint.
1227 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1230 * lra-splill.c (lra_final_code_change): Revert r229087 by
1231 removing all sub-registers.
1233 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
1236 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
1238 2016-01-29 Jakub Jelinek <jakub@redhat.com>
1241 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
1242 SSE1, copy target into the temporary reg first before recursing
1245 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
1247 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
1250 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1252 * ginclude/stdarg.h: Test __cplusplus instead of
1253 __GXX_EXPERIMENTAL_CXX0X__.
1255 2016-01-29 Richard Biener <rguenther@suse.de>
1257 PR tree-optimization/69547
1258 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
1259 Do not mark clobbers necessary.
1260 (mark_all_reaching_defs_necessary_1): Likewise.
1262 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1264 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
1265 declaration name with %qs and print it in both error messages.
1266 Also fix indentation.
1268 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
1271 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
1272 trailing blank line from error message.
1274 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
1277 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
1280 2016-01-29 Richard Biener <rguenther@suse.de>
1283 * match.pd: Allow all integral types when simplifying a
1284 widening or sign-changing conversion.
1286 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1288 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
1289 back to setting codegen_error to fail codegen.
1291 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
1294 * config/i386/constraints.md (C): Only accept constant zero operand.
1295 (BC): New constraint.
1296 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
1297 instead of C constraint.
1298 * doc/md.texi (Machine Constraints): Update description
1301 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
1304 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
1306 2016-01-28 Jakub Jelinek <jakub@redhat.com>
1309 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
1312 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
1314 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
1315 branches if using guessed profile.
1317 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
1319 * graphite-optimize-isl.c (optimize_isl): Fix dump.
1321 2016-01-28 Richard Henderson <rth@redhat.com>
1324 * config/aarch64/aarch64-modes.def (CC_Cmode): New
1325 * config/aarch64/aarch64-protos.h: Update.
1326 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
1327 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
1328 (aarch64_get_condition_code_1): Handle CC_Cmode.
1329 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
1330 (*add<mode>3_compareC_cconly_imm): New.
1331 (*add<mode>3_compareC_cconly): New.
1332 (*add<mode>3_compareC_imm): New.
1333 (add<mode>3_compareC): New.
1334 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
1335 to be first. Use aarch64_carry_operation.
1336 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
1337 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
1338 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
1339 (subti3): Use subdi3_compare1.
1340 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
1341 (sub<mode>3_compare1): New.
1342 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
1343 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
1344 (*subsi3_carryin_uxtw): Likewise.
1345 (*ngc<mode>, *ngcsi_uxtw): Likewise.
1346 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
1347 * config/aarch64/iterators.md (DWI): New.
1348 * config/aarch64/predicates.md (aarch64_carry_operation): New.
1349 (aarch64_borrow_operation): New.
1351 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1353 * graphite-optimize-isl.c (optimize_isl): Print a different debug
1354 message when isl does not return a valid schedule.
1356 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1358 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1359 Remove comments from class declarations: they are already in the code
1362 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1364 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
1366 (ternary_op_to_tree): Same.
1367 (unary_op_to_tree): Same.
1368 (nary_op_to_tree): Same.
1369 (gcc_expression_from_isl_expr_op): Same.
1370 (gcc_expression_from_isl_expression): Same.
1371 (graphite_create_new_loop): Same.
1372 (graphite_create_new_loop_guard): Same.
1373 (build_iv_mapping): Same.
1374 (graphite_create_new_guard): Same.
1375 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
1376 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
1378 2016-01-28 Sebastian Pop <s.pop@samsung.com>
1380 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
1381 instead of setting codegen_error to fail codegen.
1383 2016-01-28 Jason Merrill <jason@redhat.com>
1385 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
1387 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1389 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1390 Remove CONST_INT_P check in CCMP cost calculation.
1392 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1394 * config/aarch64/aarch64.c (generic_vector_cost):
1395 Set vec_permute_cost.
1396 (cortexa57_vector_cost): Likewise.
1397 (exynosm1_vector_cost): Likewise.
1398 (xgene1_vector_cost): Likewise.
1399 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
1400 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
1401 Add vec_permute_cost entry.
1403 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
1405 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
1407 (add<mode>3_compare0): Likewise.
1408 (addsi3_compare0_uxtw): Likewise.
1409 (add<mode>3nr_compare0): Likewise.
1410 (compare_neg<mode>): Likewise.
1411 (<optab><mode>3): Likewise.
1413 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
1415 * tree-vect-stmts.c (vectorizable_comparison): Add
1416 NULL check for vectype.
1418 2016-01-28 Richard Biener <rguenther@suse.de>
1420 PR tree-optimization/69466
1421 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
1422 Account for PHIs we couldn't duplicate.
1424 2016-01-28 Martin Liska <mliska@suse.cz>
1427 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
1428 instead of ENABLE_VALGRIND_CHECKING.
1430 2016-01-27 Richard Henderson <rth@redhat.com>
1433 * lra-remat.c (subreg_regs): New.
1434 (dump_candidates_and_remat_bb_data): Dump it.
1435 (operand_to_remat): Reject if operand in subreg_regs.
1436 (set_bb_regs): Collect subreg_regs.
1437 (lra_remat): Init and free subreg_regs. Compute
1438 calculate_local_reg_remat_bb_data before create_cands.
1440 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
1443 * config/i386/i386.c (ix86_update_stack_boundary): Don't
1444 change stack_alignment_needed for __tls_get_addr call.
1446 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
1448 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
1450 2016-01-27 Jeff Law <law@redhat.com>
1452 PR tree-optimization/68398
1453 PR tree-optimization/69196
1454 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
1455 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
1456 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1457 Only count PHIs in the last block in the path. The others will
1458 const/copy propagate away. Add heuristic to allow more irreducible
1459 subloops to be created when it is likely profitable to do so.
1461 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1462 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
1463 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
1465 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1468 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
1469 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
1470 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
1471 * tree-streamer-in.c: Include asan.h.
1472 (streamer_get_builtin_tree): For builtins in sanitizer
1473 range call initialize_sanitizer_builtins and retry.
1475 2016-01-27 Ian Lance Taylor <iant@google.com>
1477 * common.opt (fkeep-gc-roots-live): New undocumented option.
1478 * tree-ssa-loop-ivopts.c (add_candidate_1): If
1479 -fkeep-gc-roots-live, skip pointers.
1480 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
1483 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
1486 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
1487 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
1489 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
1492 * configure.ac: NetBSD provides SSP in its C library.
1493 * configure: Updated.
1495 2016-01-27 Richard Biener <rguenther@suse.de>
1497 PR tree-optimization/69166
1498 * tree-vect-loop.c (vect_is_simple_reduction): Always check
1499 reduction code for commutativity / associativity.
1501 2016-01-27 Martin Jambor <mjambor@suse.cz>
1503 PR tree-optimization/69355
1504 * tree-sra.c (analyze_access_subtree): Correct hole detection when
1505 total_scalarization fails.
1507 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
1509 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
1512 2016-01-27 Christian Bruel <christian.bruel@st.com>
1515 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
1516 Move arm_reset_previous_fndecl and set_target_option_current_node in
1517 the conditional part. Call save_restore_target_globals.
1518 * config/arm/arm.c (arm_set_current_function):
1519 Refactor to better support #pragma target and attribute mix.
1520 Call save_restore_target_globals.
1521 * config/arm/arm-protos.h (save_restore_target_globals): New function.
1523 2016-01-27 Martin Liska <mliska@suse.cz>
1525 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
1526 reference for an HSA kernel and its host function.
1528 2016-01-27 Jakub Jelinek <jakub@redhat.com>
1530 PR tree-optimization/69399
1531 * wide-int.h (wi::lrshift): For larger precisions, only
1532 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
1534 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
1536 * config/arc/predicates.md (proper_comparison_operator): Reject
1537 constant-constant comparison.
1539 2016-01-26 Tom de Vries <tom@codesourcery.com>
1541 PR tree-optimization/69110
1542 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1543 DR_NUM_DIMENSIONS == 0.
1545 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
1546 Sebastian Pop <s.pop@samsung.com>
1548 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
1549 isl_ast_op_cond and isl_ast_op_select.
1550 (gcc_expression_from_isl_expr_op): Same.
1552 2016-01-26 Jason Merrill <jason@redhat.com>
1555 * tree.c (recompute_constructor_flags): Split out from
1557 (verify_constructor_flags): New.
1558 * tree.h: Declare them.
1560 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
1562 PR rtl-optimization/69217
1563 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
1564 are no TYPE_FIELDS set for the record type.
1566 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1569 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
1570 toc_label_name unconditionally.
1571 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
1572 SYMBOL_REF string. Use toc_label_name instead of constructing
1574 (rs6000_elf_declare_function_name): Use toc_label_name instead of
1575 constructing LCTOC1.
1577 2016-01-26 Martin Sebor <msebor@redhat.com>
1580 * doc/extend.texi (Common Type Attributes): Move text that talks about
1581 attribute packed from attribute aligned to the section discussing
1582 the former attribute for clarity.
1584 2016-01-26 Richard Henderson <rth@redhat.com>
1587 * trans-mem.c (tm_region_init): Mark entry block as visited.
1589 2016-01-26 David Malcolm <dmalcolm@redhat.com>
1592 * diagnostic-show-locus.c (layout::print_source_line): Replace
1593 call to pp_newline with call to layout::print_newline.
1594 (layout::print_annotation_line): Likewise.
1595 (layout::move_to_column): Likewise.
1596 (layout::print_any_fixits): After printing any fixits, print a
1597 trailing newline, if necessary.
1598 (layout::print_newline): New method, resetting any colorization
1600 (diagnostic_show_locus): Move the pp_newline to before the
1601 early bailout. Remove dummy block enclosing the layout instance.
1602 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
1603 of pp_newline_and_flush with pp_flush.
1604 (diagnostic_append_note): Delete use of pp_newline.
1605 (diagnostic_append_note_at_rich_loc): Delete.
1606 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
1607 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
1608 when newline characters are added to the buffer.
1610 2016-01-26 Michael Matz <matz@suse.de>
1612 * configure.ac (ac_cv_std_swap_in_utility): New test.
1613 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
1614 * configure: Regenerate.
1615 * config.in: Regenerate.
1617 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
1619 * config/arc/arc.md (cstoresi4): Force operand into register.
1620 (arcset<code>): Fix predicate.
1621 (arcsetltu): Likewise.
1622 (arcsetgeu): Likewise.
1623 (arcsethi): Likewise.
1624 (arcsetls): Likewise.
1626 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1628 PR tree-optimization/69483
1629 * gimple-fold.c (canonicalize_constructor_val): Return NULL
1630 if base has error_mark_node type.
1632 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
1635 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
1636 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
1638 (vget_lane_f16): Handle big-endian.
1639 (vgetq_lane_f16): Likewise.
1640 (vset_lane_f16): Likewise.
1641 (vsetq_lane_f16): Likewise.
1642 * config/arm/iterators.md (VQXMOV): Add V8HF.
1643 (VDQ): Add V4HF and V8HF.
1644 (V_reg): Handle V4HF and V8HF.
1645 (Is_float_mode): Likewise.
1646 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
1647 neon_vdup_nv8hf): New patterns.
1648 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
1649 Use VD_LANE iterator.
1650 (neon_vld1_dup<mode>): Use VQ2 iterator.
1652 2016-01-26 Nathan Sidwell <nathan@acm.org>
1654 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
1655 (set_oacc_fn_attrib): Add IS_KERNEL arg.
1656 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
1657 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
1658 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
1659 (oacc_validate_dims): Add LEVEL arg, don't return level.
1660 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
1662 (execute_oacc_device_lower): Adjust, add more dump output.
1663 * tree-ssa-loop.c (gate_oacc_kernels): Use
1664 oacc_fn_attrib_kernels_p.
1665 * tree-parloops.c (create_parallel_loop): Adjust
1666 set_oacc_fn_attrib call.
1668 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1671 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
1672 (append_compiler_options): Handle -fcilkplus.
1673 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
1675 2016-01-26 Nick Clifton <nickc@redhat.com>
1678 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
1679 been marked as DECL_ONE_ONLY but we do not the means to make it
1680 so, then do not allow it to bind locally.
1682 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1685 * opts.h (parse_sanitizer_options): New prototype.
1686 * opts.c (sanitizer_opts): New array.
1687 (parse_sanitizer_options): New function.
1688 (common_handle_option): Use parse_sanitizer_options.
1690 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
1693 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
1694 alignment adjustment to ...
1695 (ix86_update_stack_boundary): Here. Don't over-align stack for
1697 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
1698 if __tls_get_addr is called.
1700 2016-01-26 Christian Bruel <christian.bruel@st.com>
1702 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
1704 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
1706 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
1708 2016-01-26 Richard Biener <rguenther@suse.de>
1711 * match.pd: Guard X * CST CMP 0 pattern with single_use.
1713 2016-01-26 Richard Biener <rguenther@suse.de>
1715 PR tree-optimization/69452
1716 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
1717 (move_computations_dom_walker::before_dom_children): Rename
1719 (move_computations_worker): This.
1720 (move_computations): Perform an RPO rather than a DOM walk.
1722 2016-01-26 Jakub Jelinek <jakub@redhat.com>
1725 * combine.c (combine_instructions): For REG_EQUAL note with
1726 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
1727 to the underlying register.
1728 * doc/rtl.texi (REG_EQUAL): Document the behavior of
1729 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
1731 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
1734 * config/aarch64/aarch64-builtins.c
1735 (aarch64_init_simd_builtin_types): Do not set structural
1736 equality to __Poly{8,16,64,128}_t types.
1738 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
1740 PR tree-optimization/69400
1741 * wide-int.cc (wi_pack): Take the precision as argument and
1742 perform canonicalization here rather than in the callers.
1743 Use the main loop to handle all full-width HWIs. Add a
1744 zero HWI if in_len isn't a full result.
1745 (wi::divmod_internal): Update accordingly.
1746 (wi::mul_internal): Likewise. Simplify.
1748 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
1749 Sebastian Pop <s.pop@samsung.com>
1751 * graphite-poly.c (apply_poly_transforms): Simplify.
1752 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
1753 (print_isl_map): Same.
1754 (print_isl_union_map): Same.
1755 (print_isl_schedule): New.
1756 (debug_isl_schedule): New.
1757 * graphite-dependences.c (scop_get_reads): Do not call
1758 isl_union_map_add_map that is undocumented isl functionality.
1759 (scop_get_must_writes): Same.
1760 (scop_get_may_writes): Same.
1761 (scop_get_original_schedule): Remove.
1762 (scop_get_dependences): Do not call isl_union_map_compute_flow that
1763 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
1764 (compute_deps): Remove.
1765 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
1766 (debug_schedule_ast): New.
1767 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
1768 set_separate_option.
1769 (graphite_regenerate_ast_isl): Add dump.
1770 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
1771 from scop->transformed_schedule.
1772 (graphite_regenerate_ast_isl): Add more dump.
1773 * graphite-optimize-isl.c (optimize_isl): Set
1774 scop->transformed_schedule. Check whether schedules are equal.
1775 (apply_poly_transforms): Move here.
1776 * graphite-poly.c (apply_poly_transforms): ... from here.
1777 (free_poly_bb): Static.
1778 (free_scop): Static.
1779 (pbb_number_of_iterations_at_time): Remove.
1780 (print_isl_ast): New.
1781 (debug_isl_ast): New.
1782 (debug_scop_pbb): New.
1783 * graphite-scop-detection.c (print_edge): Move.
1785 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
1786 (build_scop_scattering): Remove.
1787 (create_pw_aff_from_tree): Assert instead of bailing out.
1788 (add_condition_to_pbb): Remove unused code, do not fail.
1789 (add_conditions_to_domain): Same.
1790 (add_conditions_to_constraints): Remove.
1791 (build_scop_context): New.
1792 (add_iter_domain_dimension): New.
1793 (build_iteration_domains): Initialize pbb->iterators.
1794 Call add_conditions_to_domain.
1797 (index_outermost_in_loop): New.
1798 (index_pbb_in_loop): New.
1799 (outermost_pbb_in): New.
1800 (add_in_sequence): New.
1801 (add_outer_projection): New.
1802 (outer_projection_mupa): New.
1803 (add_loop_schedule): New.
1804 (build_schedule_pbb): New.
1805 (build_schedule_loop): New.
1806 (embed_in_surrounding_loops): New.
1807 (build_schedule_loop_nest): New.
1808 (build_original_schedule): New.
1809 (build_poly_scop): Call build_original_schedule.
1810 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
1811 (free_poly_dr): Remove.
1812 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
1813 (free_poly_bb): Remove.
1814 (debug_loop_vec): Remove.
1815 (print_isl_ast): Declare.
1816 (debug_isl_ast): Declare.
1817 (scop_do_interchange): Remove.
1818 (scop_do_strip_mine): Remove.
1819 (scop_do_block): Remove.
1820 (flatten_all_loops): Remove.
1821 (optimize_isl): Remove.
1822 (pbb_number_of_iterations_at_time): Remove.
1823 (debug_scop_pbb): Declare.
1824 (print_schedule_ast): Declare.
1825 (debug_schedule_ast): Declare.
1826 (struct scop): Remove schedule. Add original_schedule,
1827 transformed_schedule.
1828 (free_gimple_poly_bb): Remove.
1829 (print_generated_program): Remove.
1830 (debug_generated_program): Remove.
1831 (unify_scattering_dimensions): Remove.
1832 * sese.c (print_edge): ... here.
1833 (print_sese): ... here.
1834 (debug_edge): ... here.
1835 (debug_sese): ... here.
1836 * sese.h (print_edge): Declare.
1837 (print_sese): Declare.
1838 (dump_edge): Declare.
1839 (dump_sese): Declare.
1841 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
1842 Sebastian Pop <s.pop@samsung.com>
1844 * Makefile.in: Set ISLVER in site.exp.
1846 2016-01-25 Jakub Jelinek <jakub@redhat.com>
1848 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
1849 DECL_VALUE_EXPR of new_var even for the non-array case. Look
1850 through DECL_VALUE_EXPR for expansion.
1852 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1854 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
1855 the frame info after reload completed.
1857 2016-01-25 Jeff Law <law@redhat.com>
1859 PR tree-optimization/69196
1860 PR tree-optimization/68398
1861 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
1862 tree-ssa-threadupdate.c.
1863 (determine_bb_domination_status): Prototype
1864 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
1865 (determine_bb_domination_status): No longer static.
1866 (valid_jump_thread_path): Remove code to detect characteristics
1867 of the jump thread path not associated with correctness.
1868 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
1869 Correct test for thread path length. Count PHIs for real operands as
1870 statements that need to be copied. Do not count ASSERT_EXPRs.
1871 Look at all the blocks in the thread path. Compute and selectively
1872 filter thread paths based on threading through the latch, threading
1873 a multiway branch or crossing a multiway branch.
1875 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1877 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
1878 decl with __attribute__ ((unused)) annotation.
1880 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
1883 * tree-vect-stmts.c (vectorizable_condition): Check vectype
1884 of operands is compatible with a statement vectype.
1886 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
1888 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
1889 improve wording for mixed storage order support.
1891 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
1893 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
1894 (vcvt_u64_f64): Likewise.
1895 (vcvta_s64_f64): Likewise.
1896 (vcvta_u64_f64): Likewise.
1897 (vcvtm_s64_f64): Likewise.
1898 (vcvtm_u64_f64): Likewise.
1899 (vcvtn_s64_f64): Likewise.
1900 (vcvtn_u64_f64): Likewise.
1901 (vcvtp_s64_f64): Likewise.
1902 (vcvtp_u64_f64): Likewise.
1904 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
1906 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
1907 (arc_init): Check validity mll64 option.
1908 (arc_save_restore): Use double load/store instruction.
1909 (arc_expand_movmem): Likewise.
1910 (arc_split_move): Don't split if we have double load/store
1911 instructions. Returns a boolean.
1912 (arc_process_double_reg_moves): Change function to return boolean
1913 instead of a sequence of instructions.
1914 (arc_dwarf_register_span): New function.
1915 * config/arc/arc-protos.h (arc_split_move): Change prototype.
1916 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
1917 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
1918 (*movdf_insn): Likewise.
1919 * config/arc/arc.opt (mll64): New option.
1920 * config/arc/predicates.md (even_register_operand): New predicate.
1921 * doc/invoke.texi (ARC Options): Add mll64 documentation.
1923 2016-01-25 Richard Biener <rguenther@suse.de>
1926 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
1927 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
1929 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
1931 2016-01-25 Richard Biener <rguenther@suse.de>
1933 PR tree-optimization/69376
1934 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
1936 (VN_INFO_ANTI_RANGE_P): New inline.
1937 (VN_INFO_RANGE_TYPE): Likewise.
1938 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
1939 SSA_NAME_ANTI_RANGE_P.
1940 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
1941 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1942 Properly query VN_INFO_RANGE_TYPE.
1944 2016-01-25 Nick Clifton <nickc@redhat.com>
1947 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
1949 2016-01-23 Tom de Vries <tom@codesourcery.com>
1951 PR tree-optimization/69426
1952 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
1955 2016-01-23 Jakub Jelinek <jakub@redhat.com>
1957 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
1958 "the the" with "the" in the comments.
1959 * ipa-devirt.c (build_type_inheritance_graph,
1960 update_type_inheritance_graph): Likewise.
1961 * tree.c (build_function_type_list_1): Likewise.
1962 * cfgloopmanip.c (scale_loop_profile): Likewise.
1963 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
1964 * gimple-ssa-split-paths.c
1965 (find_block_to_duplicate_for_splitting_paths): Likewise.
1966 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
1967 * expr.c (convert_move): Likewise.
1968 * var-tracking.c (vt_stack_adjustments): Likewise.
1969 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
1970 * tree-vrp.c (test_for_singularity): Likewise.
1972 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
1973 directly instead of building a temporary tree.
1976 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
1977 remove <algorithm> include.
1979 2016-01-22 Jakub Jelinek <jakub@redhat.com>
1982 * config/i386/i386.c: Include dojump.h.
1983 (expand_small_movmem_or_setmem,
1984 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
1986 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
1987 if dynamic_check != -1.
1989 2016-01-21 Jeff Law <law@redhat.com>
1992 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
1993 record_temporary_equivalences. Rewritten to avoid unnecessary calls
1994 into dominated_by_p.
1995 (cprop_into_successor_phis): Avoid unnecessary tests.
1997 2016-01-22 Richard Henderson <rth@redhat.com>
2000 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
2001 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
2003 2016-01-22 Michael Matz <matz@suse.de>
2005 * system.h (string, algorithm): Include only conditionally.
2006 (new): Include always under C++.
2007 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
2008 * final.c (toplevel): Ditto.
2009 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
2010 * genconditions.c (write_header): Make gencondmd.c define
2012 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
2014 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
2015 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
2017 2016-01-22 Christian Bruel <christian.bruel@st.com>
2020 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
2022 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2025 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
2026 define_insn_and_split. Ensure operands[1] and operands[0] do not
2027 get assigned the same register.
2029 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
2031 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
2033 2016-01-22 Christian Bruel <christian.bruel@st.com>
2035 * config/arm/arm-c.c (arm_pragma_target_parse):
2036 Remove warn_builtin_macro_redefined overwrite.
2038 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2040 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
2041 flag_non_call_exceptions compatibility.
2043 2016-01-22 Jakub Jelinek <jakub@redhat.com>
2046 * dwarf2out.c (add_child_die_after): New function.
2047 (dwarf_qual_info_t): New type.
2048 (dwarf_qual_info): New variable.
2049 (qualified_die_p): New function.
2050 (modified_type_die): For -fdebug-types-section, ensure
2051 canonical order of qualifiers. Put qualified DIEs adjacent
2052 to the corresponding non-qualified type DIE and search there
2053 for existing qualified DIEs.
2055 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
2057 * doc/extend.texi (scalar_storage_order type attribute): Document
2058 restriction on type punning and aliasing, and remove future tense.
2060 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
2063 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
2066 2016-01-21 Jeff Law <law@redhat.com>
2069 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
2070 useless call to record_temporary_equivalences.
2071 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
2072 allocate 10 slots in the bb_path vector and let it grow as needed.
2073 (fsm_find_control_statement_thread_paths): Similarly for the next_path
2076 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2078 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
2080 * configure: Regenerate.
2082 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
2084 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
2085 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
2087 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
2090 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
2091 drop EXPAND_INITIALIZER.
2092 * rtl.h (contains_symbolic_reference_p): Declare.
2093 * rtlanal.c (contains_symbolic_reference_p): New function.
2094 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
2095 a subtraction into a NOT if symbolic constants are involved.
2097 2016-01-21 Anton Blanchard <anton@samba.org>
2098 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2101 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
2103 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
2106 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2108 * config/microblaze/microblaze.c
2109 (get_branch_target): New.
2110 (insert_wic_for_ilb_runout): New.
2112 (microblaze_machine_dependent_reorg): New.
2113 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
2114 * config/microblaze/microblaze.md
2115 (UNSPEC_IPREFETCH): Define.
2116 (iprefetch): New pattern
2117 * config/microblaze/microblaze.opt
2118 (mxl-prefetch): New flag.
2120 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
2122 * config/microblaze/microblaze.h
2123 (FIXED_REGISTERS): Update in macro.
2124 (CALL_USED_REGISTERS): Update in macro.
2126 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
2128 PR rtl-optimization/68920
2129 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
2132 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
2134 PR rtl-optimization/68990
2135 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
2136 pseudo instead of inheritance ones.
2138 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2139 Nick Clifton <nickc@redhat.com>
2143 * config/mips/mips.c (mips_compute_frame_info): Initialise
2144 args_size and hard_frame_pointer_offset fields of the frame
2145 structure before calling mips_global_pointer.
2147 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
2149 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
2151 * configure: Regenerate.
2153 2016-01-21 Richard Biener <rguenther@suse.de>
2155 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
2157 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2159 * config/s390/s390.c (s390_asm_declare_function_size): Add code
2160 to actually emit the .size directive.
2162 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
2163 Jakub Jelinek <jakub@redhat.com>
2167 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
2168 args array size by one to avoid buffer overflow.
2170 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
2172 * config/s390/s390.md (pool_section_start): Use switch_to_section
2173 to select proper read-only data section instead of hardcoding
2175 (pool_section_end): Use switch_to_section to match the above.
2177 2016-01-21 Richard Biener <rguenther@suse.de>
2179 PR tree-optimization/69378
2180 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
2181 (set_ssa_val_to): Use it for dominance checks taking into
2182 account not executable edges.
2184 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2187 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
2188 for bitsize instead of GET_MODE_PRECISION (mode).
2190 2016-01-20 Martin Sebor <msebor@redhat.com>
2193 * extend.texi (__sync Builtins): Clarify the semantics of
2194 __sync_fetch_and_OP built-ins on pointers.
2195 (__atomic Builtins): Same.
2197 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2198 Sebastian Pop <s.pop@samsung.com>
2200 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
2201 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
2202 (is_valid_rename): Same.
2203 (translate_isl_ast_to_gimple::get_rename): Same.
2204 (translate_isl_ast_to_gimple::rename_all_uses): Same.
2205 (translate_isl_ast_to_gimple::rename_uses): Same.
2206 (get_new_name): Check for close_phi nodes.
2207 (copy_loop_phi_args): Use phi_node_kind.
2208 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2209 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
2211 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2212 Sebastian Pop <s.pop@samsung.com>
2214 Revert commit r229783.
2215 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2216 Remove use of parameter_rename_map.
2218 (copy_internal_parameters): Remove.
2219 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2220 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2221 (free_sese_info): Do not free parameter_rename_map.
2222 (set_rename): Do not use parameter_rename_map.
2223 (rename_uses): Update call to set_rename.
2224 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2225 * sese.h (parameter_rename_map_t): Remove.
2226 (struct sese_info_t): Remove field parameter_rename_map.
2228 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2229 Sebastian Pop <s.pop@samsung.com>
2231 * graphite-isl-ast-to-gimple.c: Fix comment.
2232 * graphite-scop-detection.c (defined_in_loop_p): New.
2233 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
2234 names defined in loop.
2236 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2237 Sebastian Pop <s.pop@samsung.com>
2239 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2240 Discard unstructured if-then-else regions.
2242 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2243 Sebastian Pop <s.pop@samsung.com>
2245 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
2246 (cleanup_loop_iter_dom): Remove.
2247 (build_loop_iteration_domains): Remove.
2248 (build_scop_context): Remove.
2249 (build_scop_iteration_domain): Remove.
2250 (add_loop_constraints): New.
2251 (build_iteration_domains): New.
2252 (build_poly_scop): Call build_iteration_domains.
2254 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2255 Sebastian Pop <s.pop@samsung.com>
2257 * graphite-scop-detection.c
2258 (scop_detection::harmful_loop_in_region): Free dom and loops.
2259 (scop_detection::loop_body_is_valid_scop): Free bbs.
2261 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2262 Sebastian Pop <s.pop@samsung.com>
2264 * graphite-scop-detection.c (record_loop_in_sese): New.
2265 (gather_bbs::before_dom_children): Call record_loop_in_sese.
2266 (build_scops): Remove call to build_sese_loop_nests.
2267 * sese.c (sese_record_loop): Remove.
2268 (build_sese_loop_nests): Remove.
2269 (new_sese_info): Remove region->loops.
2270 (free_sese_info): Same.
2271 * sese.h (sese_contains_loop): Same.
2272 (build_sese_loop_nests): Remove.
2273 (sese_contains_loop): Remove.
2275 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2276 Sebastian Pop <s.pop@samsung.com>
2278 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
2279 loop_is_valid_in_scop.
2280 (scop_detection::harmful_stmt_in_region): Renamed
2281 harmful_loop_in_region.
2282 Call loop_is_valid_in_scop.
2284 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2285 Sebastian Pop <s.pop@samsung.com>
2287 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
2290 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2291 Sebastian Pop <s.pop@samsung.com>
2293 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
2294 * graphite.h (struct poly_bb): Remove field is_reduction.
2295 (PBB_IS_REDUCTION): Remove.
2297 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
2298 Sebastian Pop <s.pop@samsung.com>
2300 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
2301 (add_pdr_constraints): Same.
2302 (scop_get_reads): Same.
2303 (scop_get_must_writes): Same.
2304 (scop_get_may_writes): Same.
2305 (scop_get_original_schedule): Same.
2306 (extend_schedule): Same.
2307 (apply_schedule_on_deps): Same.
2308 (carries_deps): Same.
2309 (compute_deps): Same.
2310 (scop_get_dependences): Same.
2311 * graphite-isl-ast-to-gimple.c
2312 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
2313 * graphite-optimize-isl.c (get_schedule_for_band): Same.
2314 (get_schedule_for_band_list): Same.
2315 (get_schedule_map): Same.
2316 (apply_schedule_map_to_scop): Same.
2317 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2318 (build_loop_iteration_domains): Same.
2319 (add_condition_to_pbb): Same.
2320 (add_param_constraints): Same.
2321 (pdr_add_memory_accesses): Same.
2322 (pdr_add_data_dimensions): Same.
2324 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2326 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
2329 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
2331 * common.opt (feliminate-dwarf2-dups): Replace references to
2332 "DWARF 2" with just "DWARF".
2333 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
2334 * doc/extend.texi: Likewise.
2335 * doc/cpp.texi: Likewise.
2336 * doc/invoke.texi: Likewise.
2337 (Option Summary): Add -gdwarf to list of Debugging Options.
2338 (Debugging Options): Document -gdwarf.
2339 * doc/contrib.texi: Spell "DWARF" like that.
2341 2016-01-21 Jakub Jelinek <jakub@redhat.com>
2343 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
2344 warning. Fix up formatting.
2347 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
2348 attempt to mark memory input operand addressable and
2349 call prepare_gimple_addressable in that case. Don't adjust
2350 input_location for diagnostics, use error_at instead.
2352 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
2354 * config/rs6000/ppc-auxv.h: New file.
2355 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
2357 (cpu_supports): Likewise.
2358 * config/rs6000/rs6000.c: include "ppc-auxv.h".
2359 (cpu_is_info): New variable.
2360 (cpu_supports_info): Likewise.
2361 (tcb_verification_symbol): Likewise.
2362 (cpu_builtin_p): Likewise.
2363 (cpu_expand_builtin): New function.
2364 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
2365 (rs6000_init_builtins): Likewise.
2366 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
2367 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
2368 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
2369 * configure: Regenerate.
2370 * config.in: Likewise.
2371 * doc/extend.texi (PowerPC Built-in Functions): Document
2372 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
2374 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
2377 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
2379 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
2382 2016-01-20 Richard Henderson <rth@redhat.com>
2388 * tree.c (tm_define_builtin): New.
2389 (find_tm_vector_type): New.
2390 (build_tm_vector_builtins): New.
2391 (build_common_builtin_nodes): Call it.
2393 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
2395 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
2396 (arm_fp_ok): Likewise.
2398 (arm_crypto): Likewise.
2400 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
2401 Richard Biener <rguenther@suse.de>
2403 PR tree-optimization/69328
2404 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
2405 vectors have same number of elements.
2406 (vectorizable_condition): Fix masked version recognition.
2408 2016-01-20 Richard Biener <rguenther@suse.de>
2410 PR tree-optimization/69345
2411 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
2412 (VN_INFO_PTR_INFO): Likewise.
2413 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
2414 info when it is equal between non-dominating SSA names.
2415 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2416 Make sure to look at original SSA infos.
2418 2016-01-20 Jeff Law <law@redhat.com>
2421 * config/m68k/predicates.md (pow2_m1_operand): New predicate
2423 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
2424 (pc_or_label_operand): New predicate.
2425 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
2426 tests for small integers that are 2^n - 1.
2428 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
2430 * doc/invoke.texi (Options Summary): Add '.' after @xref.
2432 2016-01-19 Jeff Law <law@redhat.com>
2435 * tree-ssa-threadbackwards.c
2436 (fsm_find_control_statement_thread_paths): Do not try to lookup
2437 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
2439 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
2441 * doc/lto.texi: Remove text that says only Gold has linker plugin
2444 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
2446 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
2447 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
2448 the DIE accordingly.
2449 (modified_type_die): Add REVERSE parameter and pass it recursively,
2450 as well as to base_type_die. Adjust presence check accordingly.
2451 (base_type_for_mode): Adjust call to modified_type_die.
2452 (add_type_attribute): Add REVERSE parameter and pass it to
2454 (generic_parameter_die): Adjust call to add_type_attribute.
2455 (add_scalar_info): Likewise.
2456 (add_subscript_info): Likewise.
2457 (gen_array_type_die): Likewise.
2458 (gen_descr_array_type_die): Likewise.
2459 (gen_entry_point_die): Likewise.
2460 (gen_enumeration_type_die): Likewise.
2461 (gen_formal_parameter_die): Likewise.
2462 (gen_subprogram_die): Likewise.
2463 (gen_variable_die ): Likewise.
2464 (gen_const_die): Likewise.
2465 (gen_field_die): Likewise.
2466 (gen_pointer_type_die): Likewise.
2467 (gen_reference_type_die): Likewise.
2468 (gen_ptr_to_mbr_type_die): Likewise.
2469 (gen_inheritance_die): Likewise.
2470 (gen_subroutine_type_die): Likewise.
2471 (gen_typedef_die): Likewise.
2472 (force_type_die): Adjust call to modified_type_die.
2474 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
2476 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
2477 flow throughout the file. Fix broken link to Objective-C 2.0
2479 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
2482 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2484 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
2486 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2489 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
2490 (maybe_record_node): Record cxa_pure_virtual as the only possible
2491 target if there are not ohter candidates.
2492 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
2494 2016-01-19 Richard Biener <rguenther@suse.de>
2496 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
2497 (get_memory_order): Likewise.
2499 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
2501 * tree-vect-stmts.c (vectorizable_store): Check
2504 2016-01-19 David Malcolm <dmalcolm@redhat.com>
2507 * gcc.c (driver::decode_argv): Add call to
2508 init_opts_obstack before init_options_struct.
2509 * opts.c (init_opts_obstack): Remove idempotency.
2510 (init_options_struct): Replace call to init_opts_obstack
2511 with a gcc_assert to verify that it has already been called.
2512 * toplev.c (toplev::main): Add call to init_opts_obstack before
2513 calls to init_options_struct.
2514 (toplev::finalize): Move cleanup of opts_obstack next to
2515 cleanup of save_decoded_options, clearing the latter, and
2516 save_decoded_options_count.
2518 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2521 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
2522 attribute to unconditional. Remove %? from output template.
2524 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2525 Jiong Wang <jiong.wang@arm.com>
2527 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
2528 generated from different expand order.
2530 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2532 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
2533 Add support for CCMP costing.
2535 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2537 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
2538 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
2539 (fccmpe<mode>): Likewise.
2540 (fcmp): Rename to fcmp and globalize pattern.
2542 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
2543 (aarch64_gen_ccmp_next): Add FP support.
2545 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
2547 * target.def (gen_ccmp_first): Update documentation.
2548 (gen_ccmp_next): Likewise.
2549 * doc/tm.texi (gen_ccmp_first): Update documentation.
2550 (gen_ccmp_next): Likewise.
2551 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
2552 expand_ccmp_expr_1. Improve comments.
2553 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
2554 (ccmp_ior<mode>): Remove pattern.
2555 (cmp<mode>): Remove expand.
2556 (cmp): Globalize pattern.
2557 (cstorecc4): Use cc_register.
2558 (mov<mode>cc): Remove ccmp_cc_register check.
2559 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
2560 Simplify after removal of CC_DNE/* modes.
2561 (aarch64_ccmp_mode_to_code): Remove.
2562 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
2563 In 'k' case use integer as condition.
2564 (aarch64_nzcv_codes): Remove inverted cases.
2565 (aarch64_code_to_ccmode): Remove.
2566 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
2567 comparison with CC register to be used in folowing CCMP/branch/CSEL.
2568 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
2569 pattern. Return the comparison with CC register. Invert conditions
2571 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
2572 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
2574 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2576 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
2577 instrumented_version.
2579 2016-01-19 Richard Biener <rguenther@suse.de>
2581 PR tree-optimization/69336
2582 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
2583 handled components with get_ref_base_and_extent.
2584 (equal_mem_array_ref_p): Adjust.
2586 2016-01-19 Jakub Jelinek <jakub@redhat.com>
2589 * shrink-wrap.c: Include valtrack.h.
2590 (move_insn_for_shrink_wrap): Add DEBUG argument. If
2591 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
2592 in between insn and where it will be moved to. Call
2593 dead_debug_insert_temp.
2594 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
2595 first and dead_debug_local_finish at the end.
2596 For uses and defs bitmap, handle all regs in between REGNO and
2597 END_REGNO, not just the first one.
2599 2016-01-19 Richard Biener <rguenther@suse.de>
2601 PR tree-optimization/69352
2602 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
2603 (equal_mem_array_ref_p): Constrain size and max size properly.
2604 Compare the reverse flag.
2606 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
2608 * ira.c (ira): Update regstat data if we deleted insns.
2610 2016-01-19 Jakub Jelinek <jakub@redhat.com>
2612 PR rtl-optimization/68955
2613 PR rtl-optimization/64557
2614 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
2615 here. Fix up formatting.
2616 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
2618 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2621 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
2622 assume that the node has body.
2623 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
2626 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2628 * lto-streamer-out.c (lto_output): Do not stream instrumentation
2631 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
2633 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
2634 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
2636 2016-01-19 Martin Jambor <mjambor@suse.cz>
2637 Martin Liska <mliska@suse.cz>
2638 Michael Matz <matz@suse.de>
2640 * Makefile.in (OBJS): Add new source files.
2641 (GTFILES): Add hsa.c.
2642 * common.opt (disable_hsa): New variable.
2643 (-Whsa): New warning.
2644 * config.in (ENABLE_HSA): New.
2645 * configure.ac: Treat hsa differently from other accelerators.
2646 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
2648 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
2649 * doc/install.texi (Configuration): Document --with-hsa-runtime,
2650 --with-hsa-runtime-include, --with-hsa-runtime-lib and
2652 * doc/invoke.texi (-Whsa): Document.
2653 (hsa-gen-debug-stores): Likewise.
2654 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
2655 to invoke offload compiler for hsa acclerator.
2656 * opts.c (common_handle_option): Determine whether HSA offloading
2657 should be performed.
2658 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
2659 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
2660 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
2661 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
2662 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
2663 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
2664 GF_OMP_FOR_KIND_GRID_LOOP.
2665 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
2666 (pp_gimple_stmt_1): Likewise.
2667 * gimple-walk.c (walk_gimple_stmt): Likewise.
2668 * gimple.c (gimple_build_omp_grid_body): New function.
2669 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
2670 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
2671 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
2672 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
2673 GF_OMP_TEAMS_GRID_PHONY.
2674 (gimple_statement_omp_single_layout): Updated comments.
2675 (gimple_build_omp_grid_body): New function.
2676 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
2677 (gimple_omp_for_grid_phony): New function.
2678 (gimple_omp_for_set_grid_phony): Likewise.
2679 (gimple_omp_parallel_grid_phony): Likewise.
2680 (gimple_omp_parallel_set_grid_phony): Likewise.
2681 (gimple_omp_teams_grid_phony): Likewise.
2682 (gimple_omp_teams_set_grid_phony): Likewise.
2683 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
2684 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
2685 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
2686 (BUILT_IN_GOMP_TARGET): Updated type.
2687 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
2688 (adjust_for_condition): New function.
2689 (get_omp_for_step_from_incr): Likewise.
2690 (extract_omp_for_data): Moved parts to adjust_for_condition and
2691 get_omp_for_step_from_incr.
2692 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
2693 (fixup_child_record_type): Bail out if receiver_decl is NULL.
2694 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
2695 (scan_omp_parallel): Do not create child functions for phony
2697 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
2698 (scan_omp_1_op): Checking assert we are not remapping to
2699 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
2700 (parallel_needs_hsa_kernel_p): New function.
2701 (expand_parallel_call): Register apprpriate parallel child
2702 functions as HSA kernels.
2703 (grid_launch_attributes_trees): New type.
2704 (grid_attr_trees): New variable.
2705 (grid_create_kernel_launch_attr_types): New function.
2706 (grid_insert_store_range_dim): Likewise.
2707 (grid_get_kernel_launch_attributes): Likewise.
2708 (get_target_argument_identifier_1): Likewise.
2709 (get_target_argument_identifier): Likewise.
2710 (get_target_argument_value): Likewise.
2711 (push_target_argument_according_to_value): Likewise.
2712 (get_target_arguments): Likewise.
2713 (expand_omp_target): Call get_target_arguments instead of looking
2714 up for teams and thread limit.
2715 (grid_expand_omp_for_loop): New function.
2716 (grid_arg_decl_map): New type.
2717 (grid_remap_kernel_arg_accesses): New function.
2718 (grid_expand_target_kernel_body): New function.
2719 (expand_omp): Call it.
2720 (lower_omp_for): Do not emit phony constructs.
2721 (lower_omp_taskreg): Do not emit phony constructs but create for them
2722 a temporary variable receiver_decl.
2723 (lower_omp_taskreg): Do not emit phony constructs.
2724 (lower_omp_teams): Likewise.
2725 (lower_omp_grid_body): New function.
2726 (lower_omp_1): Call it.
2727 (grid_reg_assignment_to_local_var_p): New function.
2728 (grid_seq_only_contains_local_assignments): Likewise.
2729 (grid_find_single_omp_among_assignments_1): Likewise.
2730 (grid_find_single_omp_among_assignments): Likewise.
2731 (grid_find_ungridifiable_statement): Likewise.
2732 (grid_target_follows_gridifiable_pattern): Likewise.
2733 (grid_remap_prebody_decls): Likewise.
2734 (grid_copy_leading_local_assignments): Likewise.
2735 (grid_process_kernel_body_copy): Likewise.
2736 (grid_attempt_target_gridification): Likewise.
2737 (grid_gridify_all_targets_stmt): Likewise.
2738 (grid_gridify_all_targets): Likewise.
2739 (execute_lower_omp): Call grid_gridify_all_targets.
2740 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
2741 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
2742 (tree_omp_clause): Added union field dimension.
2743 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
2744 * tree.c (omp_clause_num_ops): Added number of arguments of
2745 OMP_CLAUSE__GRIDDIM_.
2746 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
2747 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
2748 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
2749 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
2750 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
2751 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
2752 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
2753 * tree-pass.h (make_pass_gen_hsail): Declare.
2754 (make_pass_ipa_hsa): Likewise.
2755 * ipa-hsa.c: New file.
2756 * lto-section-in.c (lto_section_name): Add hsa section name.
2757 * lto-streamer.h (lto_section_type): Add hsa section.
2758 * timevar.def (TV_IPA_HSA): New.
2759 * hsa-brig-format.h: New file.
2760 * hsa-brig.c: New file.
2761 * hsa-dump.c: Likewise.
2762 * hsa-gen.c: Likewise.
2765 * toplev.c (compile_file): Call hsa_output_brig.
2766 * hsa-regalloc.c: New file.
2768 2016-01-18 Jeff Law <law@redhat.com>
2770 PR tree-optimization/69320
2771 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
2772 ranged object, do nothing if the RHS constant is not [0..1].
2773 (optimize_stmt): Comparing a boolean ranged object against a
2774 constant outside [0..1] results in a compile-time constant.
2776 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
2779 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
2781 * doc/invoke.texi (Invoking GCC): Add new section to menu.
2782 (Option Summary): Update to reflect new section and moved options.
2783 (C++ Dialect Options): Move -fstats to new section.
2784 (Debugging Options): Move all dump, statistics, and other GCC
2785 developer options to new section. Rewrite section introduction
2786 and re-order remaining options to put the more basic ones first.
2787 (Optimization Options): Move -fira-verbose and -flto-report* to
2789 (Developer Options): New section incorporating moved options.
2790 * doc/cppopts.texi (-dM): Update cross-reference.
2792 2016-01-18 Richard Henderson <rth@redhat.com>
2795 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
2796 operands to pseudo only if CSE is expected. Split long immediate
2797 operands only after reload, and for the stack pointer.
2798 (*add<GPI>3_pluslong): Remove.
2799 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
2800 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
2801 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
2802 (*add<GPI>3 peepholes): New.
2803 (*add<GPI>3 splitters): New.
2804 * config/aarch64/constraints.md (Upl): New.
2805 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
2807 2016-01-18 Richard Biener <rguenther@suse.de>
2809 PR tree-optimization/69297
2810 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
2812 (vect_bb_vectorization_profitable_p): Clear visited flag again.
2814 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
2817 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
2818 of mixind vector and scalar types.
2819 (fold_relational_const): Add handling of vector
2820 comparison with boolean result.
2821 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
2822 comparison of vector operands with boolean result for EQ/NE only.
2823 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
2824 (verify_gimple_cond): Likewise.
2825 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
2828 2016-01-18 Joseph Myers <joseph@codesourcery.com>
2830 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
2833 2016-01-18 Richard Biener <rguenther@suse.de>
2836 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
2838 2016-01-18 Tom de Vries <tom@codesourcery.com>
2840 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
2842 2016-01-18 Tom de Vries <tom@codesourcery.com>
2844 * omp-low.c (set_oacc_fn_attrib): Make extern.
2845 * omp-low.h (set_oacc_fn_attrib): Declare.
2846 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
2847 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
2848 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
2849 Add and handle function parameter oacc_kernels_p.
2850 (find_reduc_addr, get_omp_data_i_param): New function.
2851 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
2852 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
2853 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
2854 Calculate dominance info. Skip loops that are not in a kernels region
2855 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
2856 (pass_parallelize_loops::execute): Call parallelize_loops with
2857 oacc_kernels_p argument.
2858 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
2859 New member function.
2860 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
2861 * passes.def: Add argument to pass_parallelize_loops instantation.
2863 2016-01-18 Tom de Vries <tom@codesourcery.com>
2865 * tree-parloops.c (pass_parallelize_loops::execute): Allow
2866 pass_parallelize_loops to be run outside the loop pipeline.
2868 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
2870 * tree-scalar-evolution.c (follow_copies_to_constant): New.
2871 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
2873 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
2876 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
2877 using get_ref_base_and_extent.
2878 (equal_mem_array_ref_p): New.
2879 (hashable_expr_equal_p): Add call to previous.
2881 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
2884 * tree-sra.c (disqualified_constants, constant_decl_p): New.
2885 (sra_initialize): Allocate disqualified_constants.
2886 (sra_deinitialize): Free disqualified_constants.
2887 (disqualify_candidate): Update disqualified_constants when appropriate.
2888 (create_access): Scan for constant-pool entries as we go along.
2889 (scalarizable_type_p): Add check against type_contains_placeholder_p.
2890 (maybe_add_sra_candidate): Allow constant-pool entries.
2891 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
2892 (initialize_constant_pool_replacements): New.
2893 (sra_modify_assign): Avoid mangling assignments created by previous,
2894 and don't generate writes into constant pool.
2895 (sra_modify_function_body): Call initialize_constant_pool_replacements.
2897 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2899 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
2901 (scalar_chain::convert_op): Likewise.
2902 * config/i386/i386.md (*andndi3_doubleword): New.
2904 2016-01-18 Richard Biener <rguenther@suse.de>
2906 PR tree-optimization/69170
2907 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
2908 building a vector from scalar results of a pattern stmt.
2910 2016-01-18 Jakub Jelinek <jakub@redhat.com>
2912 * haifa-sched.c (autopref_multipass_init): Work around
2913 -Wmaybe-uninitialized warning.
2915 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
2917 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
2918 against the constant 0.
2920 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2922 PR tree-optimization/68799
2923 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
2924 look up phi candidates in the statement-candidate map.
2925 (phi_add_costs): Likewise.
2926 (record_phi_increments): Likewise.
2927 (phi_incr_cost): Likewise.
2928 (ncd_with_phi): Likewise.
2929 (all_phi_incrs_profitable): Likewise.
2931 2016-01-17 Jakub Jelinek <jakub@redhat.com>
2933 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
2934 -Wmaybe-uninitialized warning.
2936 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
2938 * doc/invoke.texi (Invoking GCC): Add new section to menu.
2939 (Option Summary): Update to reflect new section and moved options.
2940 (C++ Dialect Options): Move -fvtable-verify and related options.
2941 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
2942 and profiling-related options.
2943 (Optimization Options): Move profile generation options and
2944 -fstack-protector and related options.
2945 (Instrumentation Options): New section incorporating moved options.
2946 (Code Generation Options): Move -finstrument-functions and
2947 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
2949 2016-01-16 Tom de Vries <tom@codesourcery.com>
2951 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
2953 2016-01-16 Tom de Vries <tom@codesourcery.com>
2955 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
2957 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
2959 * hash-table.h (hash_table::empty): Turn into an inline wrapper
2960 that checks whether the table is already empty. Rename the
2961 original implementation to...
2962 (hash_table::empty_slot): ...this new private function.
2964 2016-01-15 David Malcolm <dmalcolm@redhat.com>
2967 * diagnostic-show-locus.c (layout::print_source_line): Move x
2968 offset of line until after call to
2969 get_line_width_without_trailing_whitespace.
2971 2016-01-15 Jeff Law <law@redhat.com>
2973 PR tree-optimization/69270
2974 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
2975 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
2976 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
2977 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
2978 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
2979 ssa_name_has_boolean_range and constant_boolean_node.
2981 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
2983 PR rtl-optimization/69030
2984 * lra-spills.c (remove_pseudos): Check nrefs and make the function
2986 (spill_pseudos): Delete debug insn for dead pseudo.
2987 (lra_spill): Initiate spill_hard_reg and slots memory separately.
2989 2016-01-15 Jiong Wang <jiong.wang@arm.com>
2991 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
2993 (TYPES_UNOPUS): Likewise.
2994 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
2995 builtin type, from UNOP to UNOPUS.
2996 (lbtruncuv4sf): Likewise.
2997 (lbtruncuv2df): Likewise.
2998 (lrounduv2sf): Likewise.
2999 (lrounduv4sf): Likewise.
3000 (lrounduv2df): Likewise.
3001 (lroundusf): Likewise.
3002 (lroundusf): Likewise.
3003 (lceiluv2sf): Likewise.
3004 (lceiluv4sf): Likewise.
3005 (lceiluv2df): Likewise.
3006 (lceilusf): Likewise.
3007 (lceiludf): Likewise.
3008 (lflooruv2sf): Likewise.
3009 (lflooruv4sf): Likewise.
3010 (lflooruv2df): Likewise.
3011 (lfloorusf): Likewise.
3012 (lfloorudf): Likewise.
3013 (lfrintnuv2sf): Likewise.
3014 (lfrintnuv4sf): Likewise.
3015 (lfrintnuv2df): Likewise.
3016 (lfrintnusf): Likewise.
3017 (lfrintnudf): Likewise.
3018 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
3020 (vcvtq_u32_f32): Likewise.
3021 (vcvtq_u64_f64): Likewise.
3022 (vcvta_u32_f32): Likewise.
3023 (vcvtaq_u32_f32): Likewise.
3024 (vcvtaq_u64_f64): Likewise.
3025 (vcvtm_u32_f32): Likewise.
3026 (vcvtmq_u32_f32): Likewise.
3027 (vcvtmq_u64_f64): Likewise.
3028 (vcvtn_u32_f32): Likwise.
3029 (vcvtnq_u32_f32): Likewise.
3030 (vcvtnq_u64_f64): Likewise.
3031 (vcvtp_u32_f32): Likewise.
3032 (vcvtpq_u32_f32): Likewise.
3033 (vcvtpq_u64_f64): Likewise.
3034 (vcvtmd_u64_f64): Likewise.
3035 (vcvtms_u32_f32): Likewise.
3036 (vcvtad_u64_f64): Likewise.
3037 (vcvtas_u32_f32): Likewise.
3038 (vcvtnd_u64_f64): Likewise.
3039 (vcvtns_u32_f32): Likewise.
3040 (vcvtpd_u64_f64): Likewise.
3041 (vcvtps_u32_f32): Likewise.
3043 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3045 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
3046 CSEL of zero_extended registers.
3048 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3050 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3051 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
3053 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3055 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
3056 false when argument string is not found in the attributes table
3059 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
3062 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
3063 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
3064 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
3067 2016-01-15 Richard Biener <rguenther@suse.de>
3069 PR tree-optimization/66856
3070 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
3071 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
3072 (vect_create_new_slp_node): Increment stmt reference count.
3073 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
3074 an SLP tree before swapping operands.
3075 (vect_build_slp_tree): Likewise.
3076 (destroy_bb_vec_info): Free stmt info after SLP instances.
3077 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
3078 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
3079 (STMT_VINFO_NUM_SLP_USES): New macro.
3081 2016-01-15 Richard Biener <rguenther@suse.de>
3084 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
3085 (add_linkage_name): ... here.
3086 (gen_typedef_die): Use add_linkage_name_raw instead of
3087 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
3090 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3092 * gimplify.c (oacc_default_clause): Decode reference and pointer
3093 types for both kernels and parallel regions.
3095 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
3098 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
3100 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3102 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
3103 (convert_scalars_to_vector): Likewise.
3105 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
3107 * doc/extend.texi (Type Traits): Fix grammar.
3109 2016-01-15 Martin Jambor <mjambor@suse.cz>
3111 * tree-inline.c (remap_decl): Use existing dclarations if
3112 remapping a type and prevent_decl_creation_for_types.
3113 (replace_locals_stmt): Do an initial remapping of non-VLA typed
3114 decls first. Do real remapping with
3115 prevent_decl_creation_for_types set.
3116 * tree-inline.h (copy_body_data): New field
3117 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
3120 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3122 * config/s390/s390.opt (mmvcle): More verbose help text.
3124 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
3126 * config/s390/s390.opt: Add period to -mzvector option text.
3128 2016-01-15 Richard Biener <rguenther@suse.de>
3130 PR tree-optimization/68961
3131 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
3132 of invariants in stores again.
3134 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
3136 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
3138 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
3140 * config/i386/i386.c (ix86_expand_branch): Don't split
3141 DI mode xor instruction to SI mode.
3143 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3146 * ipa-icf.c (sem_function::merge): Virtual functions may become
3147 reachable even if they address is not taken and there are no
3150 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
3152 * lto-streamer-out.c (subtract_estimated_size): New function.
3153 (get_symbol_initial_value): Use it.
3155 2016-01-15 Christian Bruel <christian.bruel@st.com>
3158 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
3159 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
3160 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
3161 use add_builtin_function_ext_scope instead of add_builtin_function.
3162 (neon_set_p, neon_crypto_set_p): Remove.
3163 (arm_init_builtins): Always call arm_init_neon_builtins and
3164 arm_init_crypto_builtins.
3165 (arm_expand_builtin): Check that builtins are allowed for the arch.
3166 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
3167 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
3168 arm_init_neon_builtins call.
3170 2016-01-15 Richard Biener <rguenther@suse.de>
3172 PR tree-optimization/69117
3173 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
3174 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
3175 of the leader conservatively.
3176 (free_scc_vn): Restore original SSA name infos.
3178 2016-01-14 Jeff Law <law@redhat.com>
3180 PR tree-optimization/69270
3181 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
3182 single bit of precision, verify it's also unsigned.
3183 (record_edge_info): Use constant_boolean_node rather than fold_convert
3184 to convert boolean_true/boolean_false to the right type.
3186 2016-01-14 Richard Henderson <rth@redhat.com>
3189 * loop-doloop.c (record_reg_sets): New.
3190 (doloop_optimize): Reject the transform if the sequence
3191 clobbers registers live at the end of the loop block.
3192 (doloop_optimize_loops): Enable df_live if needed.
3194 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3196 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
3197 * gcc/config/rs6000/rs6000.c: Likewise.
3198 * gcc/config/rs6000/rs6000.h: Likewise.
3199 * gcc/config/rs6000/rs6000.md: Likewise.
3200 * gcc/doc/extend.texi: Likewsie.
3202 2016-01-14 Jeff Law <law@redhat.com>
3204 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
3207 2016-01-14 Richard Henderson <rth@redhat.com>
3211 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
3212 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
3213 instead of builtin_decl_declared_p to test for declaration.
3215 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
3217 * doc/loop.texi (Loop Analysis and Representation): Document
3218 loop_depth function.
3220 2016-01-14 Tom de Vries <tom@codesourcery.com>
3222 PR tree-optimization/68773
3223 * omp-low.c (expand_omp_target): Don't set force_output.
3224 * varpool.c (varpool_node::get_create): Same.
3225 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
3226 offload_funcs with force_output.
3228 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3231 * lra-eliminations.c (move_plus_up): Don't change anything if either
3232 the outer or inner subreg mode is not MODE_INT.
3233 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
3234 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
3236 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3238 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
3239 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
3240 reduc_uplus_@var{m}): Remove.
3241 * expr.c (expand_expr_real_2): Remove expansion path for
3242 reduc_[us](min|max|plus) optabs.
3243 * optabs-tree.c (scalar_reduc_to_vector): Remove.
3244 * optabs-tree.h (scalar_reduc_to_vector): Remove.
3245 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
3246 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
3247 * tree-vect-loop.c (vectorizable_reduction): Remove test for
3248 reduc_[us](min|max|plus) optabs.
3250 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
3252 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
3253 (reduc_plus_scal_v2sf): New.
3254 (reduc_smax_v2sf): Rename to...
3255 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
3256 (reduc_smin_v2sf): Rename to...
3257 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
3259 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
3261 * alias.c (compare_base_symbol_refs): New function.
3262 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
3265 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3268 PR tree-optimization/69155
3269 * tree-complex.c: Include cfganal.h.
3270 (phis_to_revisit): New variable.
3271 (extract_component): Add phiarg_p argument. Assert that returned
3272 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
3273 (update_phi_components): Partly rewrite to use loop over real/imag
3274 components instead of code duplication. If extract_component returns
3275 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
3276 create_tmp_reg into the PHI node instead, and mention the phi triplet
3278 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
3279 in phis_to_revisit at the end.
3281 2016-01-14 Richard Biener <rguenther@suse.de>
3283 PR tree-optimization/68060
3284 * tree-vect-loop.c (vect_is_simple_reduction): Check the
3285 outer loop reduction is only used in the inner loop before
3286 detecting a double reduction.
3288 2016-01-14 Jakub Jelinek <jakub@redhat.com>
3291 * combine.c (expand_field_assignment): Punt if compute_mode is
3292 unsupported scalar mode.
3294 2016-01-14 Richard Biener <rguenther@suse.de>
3296 PR tree-optimization/66856
3297 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
3298 SLP node only if it built successfully.
3299 (vect_analyze_slp_instance): Adjust.
3301 2016-01-14 Jeff Law <law@redhat.com>
3303 PR tree-optimization/69270
3304 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
3305 (record_edge_info): Use it. Convert boolean_{true,false}_node
3308 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
3311 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
3312 use block_ultimate_origin
3313 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
3315 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3317 * doc/invoke.texi (Submodel Options): Rename section to
3318 "Machine-Dependent Options" to better reflect its content.
3319 Rewrite introductory text to remove archaic CPU names.
3322 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
3324 * doc/invoke.texi (Code Gen Options): Move section up in file,
3325 before target-specific options. Update menu and option summary
3326 to reflect the new section ordering.
3328 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3330 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
3331 (C++ Dialect Options): Add cross-reference to -std option.
3332 * doc/standards.texi (C++ Language): Document C++14 support.
3334 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3336 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
3337 for pack/unpack functions for __ibm128.
3338 (PACK_IF): Likewise.
3339 (UNPACK_IF): Likewise.
3341 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
3342 support for __ibm128 pack/unpack functions.
3343 (rs6000_invalid_builtin): Likewise.
3344 (rs6000_init_builtins): Likewise.
3345 (rs6000_opt_masks): Likewise.
3347 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
3348 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
3350 (RS6000_BTM_COMMON): Likewise.
3352 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
3353 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
3354 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
3355 128-bit floating point. Add support for the double values to be
3356 in Altivec registers for TF/IF packing and unpacking, but restrict
3357 TD packing sub-fields to be FPR registers. Don't allow overlapped
3358 register support for packing. Allow pack inputs to be memory
3359 locations. Don't build generator functions for unpack<mode>_dm
3360 and unpack<mode>_nodm.
3361 (unpack<mode>_dm): Likewise.
3362 (unpack<mode>_nodm): Likewise.
3363 (pack<mode>): Likewise.
3365 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
3366 built-in functions to pack/unpack explicit __ibm128 values.
3367 (__builtin_unpack_ibm128): Likewise.
3369 * doc/extend.texi (PowerPC Built-in Functions): Document
3370 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
3372 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
3375 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
3376 Add new arg loc and pass it down as context.
3377 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
3378 to the location to use for the warning.
3379 (check_function_arguments): New arg loc. All callers changed. Pass
3380 it to check_function_nonnull.
3381 * c-common.h (check_function_arguments): Adjust declaration.
3383 2016-01-13 Jakub Jelinek <jakub@redhat.com>
3385 PR tree-optimization/69156
3386 * gimple.c (validate_type): Removed.
3387 (gimple_builtin_call_types_compatible_p): Use
3388 useless_type_conversion_p instead of validate_type.
3389 * value-prof.c (gimple_stringop_fixed_value): Fold
3390 icall_size to correct type.
3392 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
3394 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
3397 2016-01-13 Richard Henderson <rth@redhat.com>
3400 * target.def (builtin_tm_load, builtin_tm_store): Remove.
3401 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
3402 (ix86_builtin_tm_store): Remove.
3403 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3404 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3405 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
3406 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
3407 * doc/tm.texi: Rebuild.
3409 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
3410 (BUILT_IN_TM_MEMCPY_RTWN): New.
3411 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
3412 fallback from vector to integer helpers.
3413 (build_tm_load): Handle vector types directly, instead of
3415 (build_tm_store): Likewise.
3416 (expand_assign_tm): Prepare for register types not handled by
3417 the above. Copy them to memory and use memcpy.
3418 * tree.c (tm_define_builtin): New.
3419 (find_tm_vector_type): New.
3420 (build_tm_vector_builtins): New.
3421 (build_common_builtin_nodes): Call it.
3423 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
3425 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
3426 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
3428 2016-01-13 Tom de Vries <tom@codesourcery.com>
3430 PR tree-optimization/69169
3431 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
3432 handled_struct_type param.
3433 (create_variable_info_for, intra_create_variable_infos): Call
3434 create_variable_info_for_1 with extra arg.
3436 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
3438 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
3439 and "armv8.1-a+crc" entries.
3441 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
3444 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
3445 Change first operand predicate from register_or_constm1_operand
3446 to register_operand.
3447 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
3448 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
3449 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
3450 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
3451 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
3452 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
3453 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
3454 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
3455 comparison with constm1_rtx from vec_prefetch_gen part.
3457 2016-01-13 Richard Biener <rguenther@suse.de>
3459 PR tree-optimization/69013
3460 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
3461 Exchange assert for a test.
3463 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3466 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
3468 2016-01-13 Richard Biener <rguenther@suse.de>
3470 PR tree-optimization/69242
3471 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
3472 assert with a check.
3474 2016-01-13 Richard Biener <rguenther@suse.de>
3476 PR tree-optimization/69186
3477 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3478 Properly guard vect_update_misalignment_for_peel call.
3480 2016-01-12 Jeff Law <law@redhat.com>
3482 PR tree-optimization/pr67755
3483 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
3484 "need_profile_correction".
3485 (thread_block_1): Initialize new field to false by default. If we
3486 have multiple thread paths through a common joiner to different
3487 final targets, then set new field to true.
3488 (compute_path_counts): Only do count adjustment when it's really
3491 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3493 * doc/invoke.texi (Spec Files): Move section down in file, past
3494 all command-line option descriptions.
3496 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3499 * doc/gty.texi: Remove documentation of mark_hook.
3500 * gengtype.c (struct write_types_data): Remove code to support
3501 mark_hook attribute.
3502 (walk_type): Likewise.
3503 (write_func_for_structure): Likewise.
3505 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3507 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
3508 Directory Options, and -specs= to Overall Options.
3509 (Overall Options): Adjust similarly. Reorder to group related
3510 options together. Make -specs= cross-reference the spec file details.
3511 (Directory Options): Adjust similarly.
3513 2016-01-12 Jeff Law <law@redhat.com>
3515 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
3517 2016-01-12 Olivier Hainque <hainque@adacore.com>
3519 * gcc.c (spec_undefvar_allowed): New global.
3520 (process_command): Set to true when running for --version or --help,
3522 (getenv_spec_function): When the variable is not defined, use the
3523 variable name as the variable value if we're allowed not to issue
3526 2016-01-12 Bin Cheng <bin.cheng@arm.com>
3528 PR tree-optimization/68911
3529 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
3530 information computed for expression "init + nit * step".
3532 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
3534 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
3535 about name of GCC executable. Remove deleted node from menu.
3536 (Directory Options) <-B>: Remove cross-reference to deleted node.
3537 (Target Options): Delete section.
3539 2016-01-12 Christian Bruel <christian.bruel@st.com>
3542 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
3543 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
3545 2016-01-12 Jakub Jelinek <jakub@redhat.com>
3548 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
3549 aligned_mem is properly set for AVX512-VL floating point masked
3553 * ifcvt.c (cond_exec_process_if_block): When removing the last
3554 insn from then_bb, remove also any possible barriers that follow it.
3556 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
3560 * config/i386/iamcu.h (SIZE_TYPE): New macro.
3561 (PTRDIFF_TYPE): Likewise.
3562 (WCHAR_TYPE): Likewise.
3563 (WCHAR_TYPE_SIZE): Likewise.
3564 (STDINT_LONG32): Likewise.
3566 2016-01-12 Richard Biener <rguenther@suse.de>
3568 PR tree-optimization/69053
3569 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
3570 convert initial value for cond reductions.
3572 2016-01-12 Richard Biener <rguenther@suse.de>
3574 PR tree-optimization/69007
3575 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
3576 widen_sum after dot_prod and sad.
3578 2016-01-12 Richard Biener <rguenther@suse.de>
3580 PR tree-optimization/69168
3581 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
3582 pattern stmt SLP type.
3583 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
3584 end up unused so cope with that case.
3586 2016-01-12 Richard Biener <rguenther@suse.de>
3588 PR tree-optimization/69157
3589 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3590 stmts def type only during analyze phase.
3591 (vectorizable_call): Likewise.
3592 (vectorizable_simd_clone_call): Likewise.
3593 (vectorizable_conversion): Likewise.
3594 (vectorizable_assignment): Likewise.
3595 (vectorizable_shift): Likewise.
3596 (vectorizable_operation): Likewise.
3597 (vectorizable_store): Likewise.
3598 (vectorizable_load): Likewise.
3600 2016-01-12 Richard Biener <rguenther@suse.de>
3602 PR tree-optimization/69174
3603 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
3605 (vectorizable_load): Properly compute the number of loads needed
3606 for permuted strided SLP loads and do not spuriously assign
3607 to SLP_TREE_VEC_STMTS.
3609 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
3611 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
3612 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
3613 (MD_EXEC_PREFIX): Remove.
3614 (MD_STARTFILE_PREFIX) Removee.
3615 (FILE_NAME_ABSOLUTE_P): Remove.
3616 (CPP_SPEC): Do not read macros from sys/version.h.
3617 (LINK_COMMAND_SPEC): Remove.
3618 (LOCAL_INCLUDE_DIR): Remove.
3619 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
3620 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
3621 (POST_LINK_SPEC): Define to invoke stubify after linker
3622 (LIBSTDCXX): Remove define
3623 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
3624 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
3625 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
3626 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
3627 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
3628 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
3629 (i386_djgpp_asm_named_section): Add propotype of new procedure
3631 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
3632 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
3633 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
3634 in config/i386/djgpp.h).
3635 (STANDARD_STARTFILE_PREFIX_2): Define identical to
3636 STANDARD_STARTFILE_PREFIX_1.
3637 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
3638 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
3639 installation errors.
3640 (MAX_OFILE_ALIGNMENT): Define to 128.
3641 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
3643 * config/i386/djgpp.c: New file. Add implementation of
3644 i386_djgpp_asm_named_section.
3646 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
3648 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
3649 Add rule for building djgpp.o.
3651 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3653 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
3654 (rtx_is_swappable_p): Reductions are swappable.
3655 (insn_is_swappable_p): V2DF reductions are swappable.
3657 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
3659 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
3660 reloads for other unsupported memory operands.
3662 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3663 Jim Wilson <jim.wilson@linaro.org>
3666 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
3667 copy_to_mode_reg instead of force_reg.
3669 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
3672 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
3673 TARGET_80387 is true.
3675 2016-01-11 Jakub Jelinek <jakub@redhat.com>
3678 * lra-eliminations.c (move_plus_up): Only move plus up
3679 if subreg of the constant can be simplified into constant
3680 and use the simplified subreg of the constant instead of
3681 the original constant.
3683 * fold-const.c (fold_convertible_p): Don't return true
3684 for conversion of VECTOR_TYPE to same sized integral type.
3685 (fold_convert_loc): Fix up formatting. Fold conversion of
3686 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
3687 instead of NOP_EXPR.
3689 PR tree-optimization/69214
3690 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
3691 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3694 PR tree-optimization/69207
3695 * tree-vect-slp.c (vect_get_constant_vectors): For
3696 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
3697 fold_convertible_p to vector_type's element type, and always
3698 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
3700 2016-01-11 Richard Biener <rguenther@suse.de>
3702 PR tree-optimization/69173
3703 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
3704 fixup the cycle if all stmts are in a pattern.
3706 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
3709 * alias.c (base_alias_check): Move check for addresses with
3710 alignment ANDs before the call for compare_base_decls.
3711 (memrefs_conflict_p): Return -1 for different decls
3712 that went through alignment adjustments.
3714 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3716 PR rtl-optimization/68796
3717 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
3718 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
3719 and QImode comparisons against zero with CC_NZmode.
3720 * config/aarch64/iterators.md (short_mask): New mode_attr.
3722 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
3724 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
3725 (<avx512>_store<mode>_mask): Likewise.
3727 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
3728 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3730 PR rtl-optimization/68841
3731 * ifcvt.c (struct noce_if_info): Add orig_x field.
3732 (bbs_ok_for_cmove_arith): Add to_rename parameter.
3733 Don't record conflicts on to_rename if it's present.
3734 Allow memory destinations in sets.
3735 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
3736 blocks, passing orig_x to the checks.
3737 (noce_process_if_block): Set if_info->orig_x appropriately.
3739 2016-01-11 Tom de Vries <tom@codesourcery.com>
3741 PR tree-optimization/69069
3742 * tree-parloops.c (create_parallel_loop): Add missing phi args.
3744 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
3746 PR rtl-optimization/68920
3747 * config/i386/i386.c (ix86_option_override_internal): Restrict number
3748 of conditional moves for RTL if-conversion to 1 for
3749 TARGET_ONE_IF_CONV_INSN.
3750 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
3751 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
3752 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
3753 parameter to restirct number of conditional moves for
3755 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
3756 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
3759 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
3762 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
3763 onepart vars. Fix typo in comment. Fix reversed condition in
3765 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
3768 * var-tracking.c (dump_onepart_variable_differences): New.
3769 (dataflow_set_different): If a detailed dump is requested,
3770 delay early returns and dump differences between onepart
3771 variables present before and after, and added variables.
3773 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
3776 * expr.c (expand_expr_real_1): For boolean vector constants
3777 with a scalar mode use const_scalar_mask_from_tree.
3778 (const_scalar_mask_from_tree): New.
3779 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
3780 assigned to a mask type to handle constants.
3782 2016-01-11 Martin Jambor <mjambor@suse.cz>
3785 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
3786 useless parameters if we cannot change function signature.
3788 2016-01-11 Martin Jambor <mjambor@suse.cz>
3791 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
3794 2016-01-11 Tom de Vries <tom@codesourcery.com>
3796 PR tree-optimization/69109
3797 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
3800 2016-01-11 Tom de Vries <tom@codesourcery.com>
3802 PR tree-optimization/69108
3803 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
3804 res is not used in a phi.
3806 2016-01-11 Yury Gribov <y.gribov@samsung.com>
3809 * common.opt (frandom-seed): Fix parameter name.
3810 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
3812 2016-01-11 Tom de Vries <tom@codesourcery.com>
3814 PR tree-optimization/69058
3815 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
3818 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
3820 * config/arc/arc.opt (mdiv-rem): Add period to the end.
3821 (mcode-density): Likewise.
3823 2016-01-10 Tom de Vries <tom@codesourcery.com>
3825 PR tree-optimization/69062
3826 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
3827 (parallelize_loops): Don't paralelize loop that has phi with address
3830 2016-01-10 Tom de Vries <tom@codesourcery.com>
3832 PR tree-optimization/69039
3833 * tree-parloops.c (try_create_reduction_list): Only allow single exit
3836 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
3839 * match.pd: Require target has function_c99_misc before doing
3840 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
3842 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
3844 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
3846 * configure: Regenerate.
3848 2016-01-09 Jakub Jelinek <jakub@redhat.com>
3851 PR tree-optimization/69097
3852 * fold-const.h (expr_not_equal_to): New prototype.
3853 * fold-const.c: Include stringpool.h and tree-ssanames.h.
3854 (expr_not_equal_to): New function.
3855 * match.pd (X % -Y is the same as X % Y): Don't optimize
3856 unless X is known not to be equal to minimum or Y is known
3857 not to be equal to -1.
3858 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
3859 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
3860 (simplify_stmt_using_ranges): Adjust caller.
3861 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
3862 substitute_and_fold.
3864 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
3866 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
3869 2016-01-08 Jakub Jelinek <jakub@redhat.com>
3871 PR tree-optimization/69167
3872 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
3873 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
3875 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
3877 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
3878 Richard Biener <rguenther@suse.de>
3880 PR tree-optimization/68707
3881 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
3882 instances that can be handled via vect_load_lanes.
3884 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
3886 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
3887 if we can't determine address equivalence.
3888 * alias.c (compare_base_decl): Update for changed return value of
3889 symtab_node::equal_address_to.
3891 2016-01-08 Jason Merrill <jason@redhat.com>
3895 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
3896 * expr.c (store_field): Not here.
3897 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
3898 call with TREE_ADDRESSABLE type.
3899 * tree-cfg.c (verify_gimple_call): Adjust.
3901 2016-01-08 Olivier Hainque <hainque@adacore.com>
3903 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
3906 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
3908 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
3909 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
3910 (reduc_smin_v2sf): Rename to...
3911 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
3912 (reduc_splus_v2sf): Rename to...
3913 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
3915 2016-01-08 Jakub Jelinek <jakub@redhat.com>
3917 PR tree-optimization/69162
3918 * gimplify.c (gimplify_va_arg_expr): Encode original type of
3919 valist argument in another argument.
3920 (gimplify_modify_expr): Adjust for the above change. Cleanup.
3921 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
3922 to determine the va_list type, build a MEM_REF instead of
3923 build_fold_indirect_ref.
3925 PR tree-optimization/69172
3926 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
3929 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
3931 PR tree-optimization/67781
3932 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
3933 and cmpnop in two steps: first the ones not accessed in original
3934 gimple expression in a endian independent way and then the ones not
3935 accessed in the final result in an endian-specific way.
3937 2016-01-08 Jakub Jelinek <jakub@redhat.com>
3939 PR tree-optimization/69083
3940 * tree-vect-slp.c (vect_get_constant_vectors): For
3941 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
3942 element type. If op is fold_convertible_p to vector_type's element
3943 type, use NOP_EXPR instead of VCE.
3945 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
3947 PR rtl-optimization/67778
3948 PR rtl-optimization/68634
3949 PR rtl-optimization/68909
3950 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
3951 block from the stack until done with it. Remove a superfluous
3952 bitmap set. Remove a superfluous bitmap test.
3954 2016-01-07 Martin Sebor <msebor@redhat.com>
3957 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
3958 constraint on the type of arguments.
3960 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
3962 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
3963 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
3964 unaligned_access on the gcc_options set.
3965 * config/arm/arm.c (arm_option_override_internal): Use
3966 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
3968 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
3971 * config/i386/i386.c (ix86_frame_pointer_required): Enable
3972 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
3974 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
3977 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
3980 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
3981 depending on frame_pointer_needed before remaining integer and SSE
3982 registers are saved.
3984 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
3987 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
3989 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
3992 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
3993 Use the "xBm" constraint.
3994 (float<sseintvecmodelower><mode>2<mask_name><round_name):
3996 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
3997 (sse_cvtsi2ssq<round_name>): Likewise.
3998 (sse_cvtss2si<round_name>): Likewise.
3999 (sse_cvtss2siq<round_name>): Likewise.
4000 (sse2_cvtsi2sdq<round_name>): Likewise.
4001 (sse2_cvtsd2si<round_name>): Likewise.
4002 (sse2_cvtsd2siq<round_name>): Likewise.
4003 * config/i386/subst.md (round_nimm_scalar_predicate): New
4006 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
4009 * varasm.c (make_decl_rtl): Mark invalid register vars as
4012 PR rtl-optimization/66206
4013 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
4014 All callers changed.
4016 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4018 PR tree-optimization/69141
4019 * tree-ssa-pre.c: Include langhooks.h.
4020 (eliminate_dom_walker::before_dom_children): Use
4021 lang_hooks.decl_printable_name instead of
4022 cgraph_node::get ()->name ().
4025 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
4026 it and DECL_ALIGN too.
4028 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
4030 * config/mips/mips-ftypes.def: Sort to lexicographical order.
4032 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
4035 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
4036 depending on frame_pointer_needed before remaining integer and SSE
4037 registers are saved.
4039 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4041 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
4042 mode iterator with VSX_M2.
4043 (*p9_vecstore_<mode>): Likewise.
4044 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
4045 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
4046 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
4047 (define_split for VSX_LE128 stores): Likewise.
4048 (define_peephole2 for TImode LE swaps): Likewise.
4049 (define_split for VSX_LE128 post-reload stores): Likewise.
4051 2016-01-06 Marek Polacek <polacek@redhat.com>
4054 * convert.c (convert_to_integer_1): Adjust call to
4055 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
4056 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
4057 EXPR instead of ARG.
4058 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
4060 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4063 * doc/extend.texi (RL78 Variable Attributes): New section.
4065 2016-01-05 Marek Polacek <polacek@redhat.com>
4068 * builtins.c (get_memmodel): Use expansion point location rather than
4069 the input location. Call warning_at rather than warning.
4070 (expand_builtin_atomic_compare_exchange): Likewise.
4071 (expand_builtin_atomic_load): Likewise.
4072 (expand_builtin_atomic_store): Likewise.
4073 (expand_builtin_atomic_clear): Likewise.
4075 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4078 * config/i386/i386.c (ix86_expand_vector_logical_operator):
4079 Replace nonimmediate_operand with vector_operand.
4080 * config/i386/predicates.md (vector_operand): New predicate.
4081 (general_vector_operand): Replace nonimmediate_operand with
4083 * config/i386/sse.md: Replace nonimmediate_operand with
4084 vector_operand and m constraint with Bm constraint on SSE
4085 patterns with 16-byte memory operand.
4086 * config/i386/subst.md (round_nimm_predicate): Replace
4087 nonimmediate_operand with vector_operand.
4088 (round_saeonly_nimm_predicate): Likewise.
4089 (round_saeonly_nimm_scalar_predicate): New.
4091 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
4094 * config/i386/constraints.md (Bm): New constraint.
4095 * config/i386/predicates.md (vector_memory_operand): New
4097 * config/i386/sse.md: Replace xm with xBm in plusminus and
4100 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4103 * doc/extend.texi (V850 Function Attributes): New section.
4104 (V850 Variable Attributes): New section.
4106 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
4109 * doc/extend.texi (MicroBlaze Function Attributes): Document
4110 interrupt_handler and fast_interrupt attributes.
4112 2016-01-05 Sergei Trofimovich <siarheit@google.com>
4115 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
4116 for local symbolic operands.
4117 * config/ia64/predicates.md (local_symbolic_operand64): New
4120 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4122 PR rtl-optimization/68651
4123 * combine.c (combine_simplify_rtx): Canonicalize x + x into
4126 2016-01-05 Nathan Sidwell <nathan@acm.org>
4128 * alias.c (compare_base_decls): Use symtab_node::get.
4130 2016-01-05 Nick Clifton <nickc@redhat.com>
4133 * ira-costs.c (copy_cost): Initialise the t_icode field of the
4134 secondary_reload_info structure.
4137 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
4138 decls if weak support is available.
4140 2016-01-04 Martin Sebor <msebor@redhat.com>
4142 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
4144 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4146 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
4147 OPTION_MASK_P9_DFORM.
4149 * config/rs6000/constraints.md (wo constraint): New constraint for
4152 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
4154 (rs6000_init_hard_regno_mode_ok): Likewise.
4156 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
4159 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
4160 expanders not to have constraints. Add support for ISA 3.0 xxperm
4161 instruction. Add support for fusing xxlor with xxperm.
4162 (altivec_vperm_<mode>_internal): Likewise.
4163 (altivec_vperm_v8hiv16qi): Likewise.
4164 (altivec_vperm_<mode>v16q): Likewise.
4165 (altivec_vperm_<mode>_uns): Likewise.
4166 (vperm_v8hiv4si): Likewise.
4167 (vperm_v16qiv8hi): Likewise.
4169 * doc/md.texi (RS/6000 constraints): Document wo constraint.
4171 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4173 Update copyright years.
4175 * gcc.c (process_command): Update copyright notice dates.
4176 * gcov-dump.c (print_version): Ditto.
4177 * gcov.c (print_version): Ditto.
4178 * gcov-tool.c (print_version): Ditto.
4179 * gengtype.c (create_file): Ditto.
4180 * doc/cpp.texi: Bump @copying's copyright year.
4181 * doc/cppinternals.texi: Ditto.
4182 * doc/gcc.texi: Ditto.
4183 * doc/gccint.texi: Ditto.
4184 * doc/gcov.texi: Ditto.
4185 * doc/install.texi: Ditto.
4186 * doc/invoke.texi: Ditto.
4188 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4190 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
4191 modes larger than TImode as TImode if NEON is not enabled.
4193 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4196 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
4197 mode for %f0-%f31 only if TARGET_FPU.
4199 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
4202 * config/sparc/sparc.c (scan_record_type): Take into account subfields
4203 to compute the PACKED_P predicate.
4204 (function_arg_record_value): Minor tweaks.
4206 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
4208 * doc/install.texi (--with-multilib-list): Describe the meaning of the
4209 option for arm*-*-* targets.
4211 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
4213 * doc/extend.texi (Common Function Attributes): Move docs for
4214 MSP430-specific attributes to....
4215 (MSP430 Function Attributes): ...here. Delete the redundant
4216 entries and copy-edit the remaining text.
4217 (MSP430 Variable Attributes): Use uniform format for index
4218 entries and add a cross-reference to the corresponding function
4221 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
4223 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
4225 (x86 Options): Likewise.
4227 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4231 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
4232 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
4233 to corresponding attribute.
4235 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
4237 * doc/extend.texi (Common Function Attributes) <noplt>: Move
4238 to correct alphabetization of table. Copy-edit and correct
4240 <stack_protect>: Likewise.
4241 <target_clones>: Likewise.
4243 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
4244 Correct punctuation.
4245 (Code Gen Options) <-fno-plt>: Copy-edit.
4247 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4250 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
4251 SI values. Explicitly convert SI to DI and vice-versa.
4253 2016-01-01 Jakub Jelinek <jakub@redhat.com>
4255 PR tree-optimization/69070
4256 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
4257 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
4260 * ubsan.c (ubsan_instrument_float_cast): Call
4261 initialize_sanitizer_builtins.
4264 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
4266 Copyright (C) 2016 Free Software Foundation, Inc.
4268 Copying and distribution of this file, with or without modification,
4269 are permitted in any medium without royalty provided the copyright
4270 notice and this notice are preserved.