1 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
4 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6 2016-01-29 Jakub Jelinek <jakub@redhat.com>
9 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
10 SSE1, copy target into the temporary reg first before recursing
13 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
15 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
18 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
20 * ginclude/stdarg.h: Test __cplusplus instead of
21 __GXX_EXPERIMENTAL_CXX0X__.
23 2016-01-29 Richard Biener <rguenther@suse.de>
25 PR tree-optimization/69547
26 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
27 Do not mark clobbers necessary.
28 (mark_all_reaching_defs_necessary_1): Likewise.
30 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
32 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
33 declaration name with %qs and print it in both error messages.
36 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
39 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
40 trailing blank line from error message.
42 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
45 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
48 2016-01-29 Richard Biener <rguenther@suse.de>
51 * match.pd: Allow all integral types when simplifying a
52 widening or sign-changing conversion.
54 2016-01-28 Sebastian Pop <s.pop@samsung.com>
56 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
57 back to setting codegen_error to fail codegen.
59 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
62 * config/i386/constraints.md (C): Only accept constant zero operand.
64 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
65 instead of C constraint.
66 * doc/md.texi (Machine Constraints): Update description
69 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
72 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
74 2016-01-28 Jakub Jelinek <jakub@redhat.com>
77 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
80 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
82 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
83 branches if using guessed profile.
85 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
87 * graphite-optimize-isl.c (optimize_isl): Fix dump.
89 2016-01-28 Richard Henderson <rth@redhat.com>
92 * config/aarch64/aarch64-modes.def (CC_Cmode): New
93 * config/aarch64/aarch64-protos.h: Update.
94 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
95 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
96 (aarch64_get_condition_code_1): Handle CC_Cmode.
97 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
98 (*add<mode>3_compareC_cconly_imm): New.
99 (*add<mode>3_compareC_cconly): New.
100 (*add<mode>3_compareC_imm): New.
101 (add<mode>3_compareC): New.
102 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
103 to be first. Use aarch64_carry_operation.
104 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
105 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
106 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
107 (subti3): Use subdi3_compare1.
108 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
109 (sub<mode>3_compare1): New.
110 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
111 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
112 (*subsi3_carryin_uxtw): Likewise.
113 (*ngc<mode>, *ngcsi_uxtw): Likewise.
114 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
115 * config/aarch64/iterators.md (DWI): New.
116 * config/aarch64/predicates.md (aarch64_carry_operation): New.
117 (aarch64_borrow_operation): New.
119 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
121 * graphite-optimize-isl.c (optimize_isl): Print a different debug
122 message when isl does not return a valid schedule.
124 2016-01-28 Sebastian Pop <s.pop@samsung.com>
126 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
127 Remove comments from class declarations: they are already in the code
130 2016-01-28 Sebastian Pop <s.pop@samsung.com>
132 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
134 (ternary_op_to_tree): Same.
135 (unary_op_to_tree): Same.
136 (nary_op_to_tree): Same.
137 (gcc_expression_from_isl_expr_op): Same.
138 (gcc_expression_from_isl_expression): Same.
139 (graphite_create_new_loop): Same.
140 (graphite_create_new_loop_guard): Same.
141 (build_iv_mapping): Same.
142 (graphite_create_new_guard): Same.
143 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
144 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
146 2016-01-28 Sebastian Pop <s.pop@samsung.com>
148 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
149 instead of setting codegen_error to fail codegen.
151 2016-01-28 Jason Merrill <jason@redhat.com>
153 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
155 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
157 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
158 Remove CONST_INT_P check in CCMP cost calculation.
160 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
162 * config/aarch64/aarch64.c (generic_vector_cost):
163 Set vec_permute_cost.
164 (cortexa57_vector_cost): Likewise.
165 (exynosm1_vector_cost): Likewise.
166 (xgene1_vector_cost): Likewise.
167 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
168 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
169 Add vec_permute_cost entry.
171 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
173 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
175 (add<mode>3_compare0): Likewise.
176 (addsi3_compare0_uxtw): Likewise.
177 (add<mode>3nr_compare0): Likewise.
178 (compare_neg<mode>): Likewise.
179 (<optab><mode>3): Likewise.
181 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
183 * tree-vect-stmts.c (vectorizable_comparison): Add
184 NULL check for vectype.
186 2016-01-28 Richard Biener <rguenther@suse.de>
188 PR tree-optimization/69466
189 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
190 Account for PHIs we couldn't duplicate.
192 2016-01-28 Martin Liska <mliska@suse.cz>
195 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
196 instead of ENABLE_VALGRIND_CHECKING.
198 2016-01-27 Richard Henderson <rth@redhat.com>
201 * lra-remat.c (subreg_regs): New.
202 (dump_candidates_and_remat_bb_data): Dump it.
203 (operand_to_remat): Reject if operand in subreg_regs.
204 (set_bb_regs): Collect subreg_regs.
205 (lra_remat): Init and free subreg_regs. Compute
206 calculate_local_reg_remat_bb_data before create_cands.
208 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
211 * config/i386/i386.c (ix86_update_stack_boundary): Don't
212 change stack_alignment_needed for __tls_get_addr call.
214 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
216 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
218 2016-01-27 Jeff Law <law@redhat.com>
220 PR tree-optimization/68398
221 PR tree-optimization/69196
222 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
223 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
224 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
225 Only count PHIs in the last block in the path. The others will
226 const/copy propagate away. Add heuristic to allow more irreducible
227 subloops to be created when it is likely profitable to do so.
229 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
230 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
231 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
233 2016-01-27 Jakub Jelinek <jakub@redhat.com>
236 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
237 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
238 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
239 * tree-streamer-in.c: Include asan.h.
240 (streamer_get_builtin_tree): For builtins in sanitizer
241 range call initialize_sanitizer_builtins and retry.
243 2016-01-27 Ian Lance Taylor <iant@google.com>
245 * common.opt (fkeep-gc-roots-live): New undocumented option.
246 * tree-ssa-loop-ivopts.c (add_candidate_1): If
247 -fkeep-gc-roots-live, skip pointers.
248 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
251 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
254 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
255 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
257 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
260 * configure.ac: NetBSD provides SSP in its C library.
261 * configure: Updated.
263 2016-01-27 Richard Biener <rguenther@suse.de>
265 PR tree-optimization/69166
266 * tree-vect-loop.c (vect_is_simple_reduction): Always check
267 reduction code for commutativity / associativity.
269 2016-01-27 Martin Jambor <mjambor@suse.cz>
271 PR tree-optimization/69355
272 * tree-sra.c (analyze_access_subtree): Correct hole detection when
273 total_scalarization fails.
275 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
277 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
280 2016-01-27 Christian Bruel <christian.bruel@st.com>
283 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
284 Move arm_reset_previous_fndecl and set_target_option_current_node in
285 the conditional part. Call save_restore_target_globals.
286 * config/arm/arm.c (arm_set_current_function):
287 Refactor to better support #pragma target and attribute mix.
288 Call save_restore_target_globals.
289 * config/arm/arm-protos.h (save_restore_target_globals): New function.
291 2016-01-27 Martin Liska <mliska@suse.cz>
293 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
294 reference for an HSA kernel and its host function.
296 2016-01-27 Jakub Jelinek <jakub@redhat.com>
298 PR tree-optimization/69399
299 * wide-int.h (wi::lrshift): For larger precisions, only
300 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
302 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
304 * config/arc/predicates.md (proper_comparison_operator): Reject
305 constant-constant comparison.
307 2016-01-26 Tom de Vries <tom@codesourcery.com>
309 PR tree-optimization/69110
310 * tree-data-ref.c (initialize_data_dependence_relation): Handle
311 DR_NUM_DIMENSIONS == 0.
313 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
314 Sebastian Pop <s.pop@samsung.com>
316 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
317 isl_ast_op_cond and isl_ast_op_select.
318 (gcc_expression_from_isl_expr_op): Same.
320 2016-01-26 Jason Merrill <jason@redhat.com>
323 * tree.c (recompute_constructor_flags): Split out from
325 (verify_constructor_flags): New.
326 * tree.h: Declare them.
328 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
330 PR rtl-optimization/69217
331 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
332 are no TYPE_FIELDS set for the record type.
334 2016-01-26 Jakub Jelinek <jakub@redhat.com>
337 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
338 toc_label_name unconditionally.
339 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
340 SYMBOL_REF string. Use toc_label_name instead of constructing
342 (rs6000_elf_declare_function_name): Use toc_label_name instead of
345 2016-01-26 Martin Sebor <msebor@redhat.com>
348 * doc/extend.texi (Common Type Attributes): Move text that talks about
349 attribute packed from attribute aligned to the section discussing
350 the former attribute for clarity.
352 2016-01-26 Richard Henderson <rth@redhat.com>
355 * trans-mem.c (tm_region_init): Mark entry block as visited.
357 2016-01-26 David Malcolm <dmalcolm@redhat.com>
360 * diagnostic-show-locus.c (layout::print_source_line): Replace
361 call to pp_newline with call to layout::print_newline.
362 (layout::print_annotation_line): Likewise.
363 (layout::move_to_column): Likewise.
364 (layout::print_any_fixits): After printing any fixits, print a
365 trailing newline, if necessary.
366 (layout::print_newline): New method, resetting any colorization
368 (diagnostic_show_locus): Move the pp_newline to before the
369 early bailout. Remove dummy block enclosing the layout instance.
370 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
371 of pp_newline_and_flush with pp_flush.
372 (diagnostic_append_note): Delete use of pp_newline.
373 (diagnostic_append_note_at_rich_loc): Delete.
374 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
375 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
376 when newline characters are added to the buffer.
378 2016-01-26 Michael Matz <matz@suse.de>
380 * configure.ac (ac_cv_std_swap_in_utility): New test.
381 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
382 * configure: Regenerate.
383 * config.in: Regenerate.
385 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
387 * config/arc/arc.md (cstoresi4): Force operand into register.
388 (arcset<code>): Fix predicate.
389 (arcsetltu): Likewise.
390 (arcsetgeu): Likewise.
391 (arcsethi): Likewise.
392 (arcsetls): Likewise.
394 2016-01-26 Jakub Jelinek <jakub@redhat.com>
396 PR tree-optimization/69483
397 * gimple-fold.c (canonicalize_constructor_val): Return NULL
398 if base has error_mark_node type.
400 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
403 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
404 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
406 (vget_lane_f16): Handle big-endian.
407 (vgetq_lane_f16): Likewise.
408 (vset_lane_f16): Likewise.
409 (vsetq_lane_f16): Likewise.
410 * config/arm/iterators.md (VQXMOV): Add V8HF.
411 (VDQ): Add V4HF and V8HF.
412 (V_reg): Handle V4HF and V8HF.
413 (Is_float_mode): Likewise.
414 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
415 neon_vdup_nv8hf): New patterns.
416 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
417 Use VD_LANE iterator.
418 (neon_vld1_dup<mode>): Use VQ2 iterator.
420 2016-01-26 Nathan Sidwell <nathan@acm.org>
422 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
423 (set_oacc_fn_attrib): Add IS_KERNEL arg.
424 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
425 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
426 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
427 (oacc_validate_dims): Add LEVEL arg, don't return level.
428 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
430 (execute_oacc_device_lower): Adjust, add more dump output.
431 * tree-ssa-loop.c (gate_oacc_kernels): Use
432 oacc_fn_attrib_kernels_p.
433 * tree-parloops.c (create_parallel_loop): Adjust
434 set_oacc_fn_attrib call.
436 2016-01-26 Jakub Jelinek <jakub@redhat.com>
439 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
440 (append_compiler_options): Handle -fcilkplus.
441 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
443 2016-01-26 Nick Clifton <nickc@redhat.com>
446 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
447 been marked as DECL_ONE_ONLY but we do not the means to make it
448 so, then do not allow it to bind locally.
450 2016-01-26 Jakub Jelinek <jakub@redhat.com>
453 * opts.h (parse_sanitizer_options): New prototype.
454 * opts.c (sanitizer_opts): New array.
455 (parse_sanitizer_options): New function.
456 (common_handle_option): Use parse_sanitizer_options.
458 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
461 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
462 alignment adjustment to ...
463 (ix86_update_stack_boundary): Here. Don't over-align stack for
465 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
466 if __tls_get_addr is called.
468 2016-01-26 Christian Bruel <christian.bruel@st.com>
470 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
472 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
474 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
476 2016-01-26 Richard Biener <rguenther@suse.de>
479 * match.pd: Guard X * CST CMP 0 pattern with single_use.
481 2016-01-26 Richard Biener <rguenther@suse.de>
483 PR tree-optimization/69452
484 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
485 (move_computations_dom_walker::before_dom_children): Rename
487 (move_computations_worker): This.
488 (move_computations): Perform an RPO rather than a DOM walk.
490 2016-01-26 Jakub Jelinek <jakub@redhat.com>
493 * combine.c (combine_instructions): For REG_EQUAL note with
494 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
495 to the underlying register.
496 * doc/rtl.texi (REG_EQUAL): Document the behavior of
497 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
499 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
502 * config/aarch64/aarch64-builtins.c
503 (aarch64_init_simd_builtin_types): Do not set structural
504 equality to __Poly{8,16,64,128}_t types.
506 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
508 PR tree-optimization/69400
509 * wide-int.cc (wi_pack): Take the precision as argument and
510 perform canonicalization here rather than in the callers.
511 Use the main loop to handle all full-width HWIs. Add a
512 zero HWI if in_len isn't a full result.
513 (wi::divmod_internal): Update accordingly.
514 (wi::mul_internal): Likewise. Simplify.
516 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
517 Sebastian Pop <s.pop@samsung.com>
519 * graphite-poly.c (apply_poly_transforms): Simplify.
520 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
521 (print_isl_map): Same.
522 (print_isl_union_map): Same.
523 (print_isl_schedule): New.
524 (debug_isl_schedule): New.
525 * graphite-dependences.c (scop_get_reads): Do not call
526 isl_union_map_add_map that is undocumented isl functionality.
527 (scop_get_must_writes): Same.
528 (scop_get_may_writes): Same.
529 (scop_get_original_schedule): Remove.
530 (scop_get_dependences): Do not call isl_union_map_compute_flow that
531 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
532 (compute_deps): Remove.
533 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
534 (debug_schedule_ast): New.
535 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
537 (graphite_regenerate_ast_isl): Add dump.
538 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
539 from scop->transformed_schedule.
540 (graphite_regenerate_ast_isl): Add more dump.
541 * graphite-optimize-isl.c (optimize_isl): Set
542 scop->transformed_schedule. Check whether schedules are equal.
543 (apply_poly_transforms): Move here.
544 * graphite-poly.c (apply_poly_transforms): ... from here.
545 (free_poly_bb): Static.
547 (pbb_number_of_iterations_at_time): Remove.
548 (print_isl_ast): New.
549 (debug_isl_ast): New.
550 (debug_scop_pbb): New.
551 * graphite-scop-detection.c (print_edge): Move.
553 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
554 (build_scop_scattering): Remove.
555 (create_pw_aff_from_tree): Assert instead of bailing out.
556 (add_condition_to_pbb): Remove unused code, do not fail.
557 (add_conditions_to_domain): Same.
558 (add_conditions_to_constraints): Remove.
559 (build_scop_context): New.
560 (add_iter_domain_dimension): New.
561 (build_iteration_domains): Initialize pbb->iterators.
562 Call add_conditions_to_domain.
565 (index_outermost_in_loop): New.
566 (index_pbb_in_loop): New.
567 (outermost_pbb_in): New.
568 (add_in_sequence): New.
569 (add_outer_projection): New.
570 (outer_projection_mupa): New.
571 (add_loop_schedule): New.
572 (build_schedule_pbb): New.
573 (build_schedule_loop): New.
574 (embed_in_surrounding_loops): New.
575 (build_schedule_loop_nest): New.
576 (build_original_schedule): New.
577 (build_poly_scop): Call build_original_schedule.
578 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
579 (free_poly_dr): Remove.
580 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
581 (free_poly_bb): Remove.
582 (debug_loop_vec): Remove.
583 (print_isl_ast): Declare.
584 (debug_isl_ast): Declare.
585 (scop_do_interchange): Remove.
586 (scop_do_strip_mine): Remove.
587 (scop_do_block): Remove.
588 (flatten_all_loops): Remove.
589 (optimize_isl): Remove.
590 (pbb_number_of_iterations_at_time): Remove.
591 (debug_scop_pbb): Declare.
592 (print_schedule_ast): Declare.
593 (debug_schedule_ast): Declare.
594 (struct scop): Remove schedule. Add original_schedule,
595 transformed_schedule.
596 (free_gimple_poly_bb): Remove.
597 (print_generated_program): Remove.
598 (debug_generated_program): Remove.
599 (unify_scattering_dimensions): Remove.
600 * sese.c (print_edge): ... here.
601 (print_sese): ... here.
602 (debug_edge): ... here.
603 (debug_sese): ... here.
604 * sese.h (print_edge): Declare.
605 (print_sese): Declare.
606 (dump_edge): Declare.
607 (dump_sese): Declare.
609 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
610 Sebastian Pop <s.pop@samsung.com>
612 * Makefile.in: Set ISLVER in site.exp.
614 2016-01-25 Jakub Jelinek <jakub@redhat.com>
616 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
617 DECL_VALUE_EXPR of new_var even for the non-array case. Look
618 through DECL_VALUE_EXPR for expansion.
620 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
622 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
623 the frame info after reload completed.
625 2016-01-25 Jeff Law <law@redhat.com>
627 PR tree-optimization/69196
628 PR tree-optimization/68398
629 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
630 tree-ssa-threadupdate.c.
631 (determine_bb_domination_status): Prototype
632 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
633 (determine_bb_domination_status): No longer static.
634 (valid_jump_thread_path): Remove code to detect characteristics
635 of the jump thread path not associated with correctness.
636 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
637 Correct test for thread path length. Count PHIs for real operands as
638 statements that need to be copied. Do not count ASSERT_EXPRs.
639 Look at all the blocks in the thread path. Compute and selectively
640 filter thread paths based on threading through the latch, threading
641 a multiway branch or crossing a multiway branch.
643 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
645 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
646 decl with __attribute__ ((unused)) annotation.
648 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
651 * tree-vect-stmts.c (vectorizable_condition): Check vectype
652 of operands is compatible with a statement vectype.
654 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
656 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
657 improve wording for mixed storage order support.
659 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
661 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
662 (vcvt_u64_f64): Likewise.
663 (vcvta_s64_f64): Likewise.
664 (vcvta_u64_f64): Likewise.
665 (vcvtm_s64_f64): Likewise.
666 (vcvtm_u64_f64): Likewise.
667 (vcvtn_s64_f64): Likewise.
668 (vcvtn_u64_f64): Likewise.
669 (vcvtp_s64_f64): Likewise.
670 (vcvtp_u64_f64): Likewise.
672 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
674 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
675 (arc_init): Check validity mll64 option.
676 (arc_save_restore): Use double load/store instruction.
677 (arc_expand_movmem): Likewise.
678 (arc_split_move): Don't split if we have double load/store
679 instructions. Returns a boolean.
680 (arc_process_double_reg_moves): Change function to return boolean
681 instead of a sequence of instructions.
682 (arc_dwarf_register_span): New function.
683 * config/arc/arc-protos.h (arc_split_move): Change prototype.
684 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
685 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
686 (*movdf_insn): Likewise.
687 * config/arc/arc.opt (mll64): New option.
688 * config/arc/predicates.md (even_register_operand): New predicate.
689 * doc/invoke.texi (ARC Options): Add mll64 documentation.
691 2016-01-25 Richard Biener <rguenther@suse.de>
694 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
695 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
697 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
699 2016-01-25 Richard Biener <rguenther@suse.de>
701 PR tree-optimization/69376
702 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
704 (VN_INFO_ANTI_RANGE_P): New inline.
705 (VN_INFO_RANGE_TYPE): Likewise.
706 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
707 SSA_NAME_ANTI_RANGE_P.
708 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
709 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
710 Properly query VN_INFO_RANGE_TYPE.
712 2016-01-25 Nick Clifton <nickc@redhat.com>
715 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
717 2016-01-23 Tom de Vries <tom@codesourcery.com>
719 PR tree-optimization/69426
720 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
723 2016-01-23 Jakub Jelinek <jakub@redhat.com>
725 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
726 "the the" with "the" in the comments.
727 * ipa-devirt.c (build_type_inheritance_graph,
728 update_type_inheritance_graph): Likewise.
729 * tree.c (build_function_type_list_1): Likewise.
730 * cfgloopmanip.c (scale_loop_profile): Likewise.
731 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
732 * gimple-ssa-split-paths.c
733 (find_block_to_duplicate_for_splitting_paths): Likewise.
734 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
735 * expr.c (convert_move): Likewise.
736 * var-tracking.c (vt_stack_adjustments): Likewise.
737 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
738 * tree-vrp.c (test_for_singularity): Likewise.
740 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
741 directly instead of building a temporary tree.
744 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
745 remove <algorithm> include.
747 2016-01-22 Jakub Jelinek <jakub@redhat.com>
750 * config/i386/i386.c: Include dojump.h.
751 (expand_small_movmem_or_setmem,
752 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
754 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
755 if dynamic_check != -1.
757 2016-01-21 Jeff Law <law@redhat.com>
760 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
761 record_temporary_equivalences. Rewritten to avoid unnecessary calls
763 (cprop_into_successor_phis): Avoid unnecessary tests.
765 2016-01-22 Richard Henderson <rth@redhat.com>
768 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
769 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
771 2016-01-22 Michael Matz <matz@suse.de>
773 * system.h (string, algorithm): Include only conditionally.
774 (new): Include always under C++.
775 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
776 * final.c (toplevel): Ditto.
777 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
778 * genconditions.c (write_header): Make gencondmd.c define
780 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
782 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
783 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
785 2016-01-22 Christian Bruel <christian.bruel@st.com>
788 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
790 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
793 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
794 define_insn_and_split. Ensure operands[1] and operands[0] do not
795 get assigned the same register.
797 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
799 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
801 2016-01-22 Christian Bruel <christian.bruel@st.com>
803 * config/arm/arm-c.c (arm_pragma_target_parse):
804 Remove warn_builtin_macro_redefined overwrite.
806 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
808 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
809 flag_non_call_exceptions compatibility.
811 2016-01-22 Jakub Jelinek <jakub@redhat.com>
814 * dwarf2out.c (add_child_die_after): New function.
815 (dwarf_qual_info_t): New type.
816 (dwarf_qual_info): New variable.
817 (qualified_die_p): New function.
818 (modified_type_die): For -fdebug-types-section, ensure
819 canonical order of qualifiers. Put qualified DIEs adjacent
820 to the corresponding non-qualified type DIE and search there
821 for existing qualified DIEs.
823 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
825 * doc/extend.texi (scalar_storage_order type attribute): Document
826 restriction on type punning and aliasing, and remove future tense.
828 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
831 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
834 2016-01-21 Jeff Law <law@redhat.com>
837 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
838 useless call to record_temporary_equivalences.
839 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
840 allocate 10 slots in the bb_path vector and let it grow as needed.
841 (fsm_find_control_statement_thread_paths): Similarly for the next_path
844 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
846 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
848 * configure: Regenerate.
850 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
852 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
853 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
855 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
858 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
859 drop EXPAND_INITIALIZER.
860 * rtl.h (contains_symbolic_reference_p): Declare.
861 * rtlanal.c (contains_symbolic_reference_p): New function.
862 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
863 a subtraction into a NOT if symbolic constants are involved.
865 2016-01-21 Anton Blanchard <anton@samba.org>
866 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
869 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
871 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
874 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
876 * config/microblaze/microblaze.c
877 (get_branch_target): New.
878 (insert_wic_for_ilb_runout): New.
880 (microblaze_machine_dependent_reorg): New.
881 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
882 * config/microblaze/microblaze.md
883 (UNSPEC_IPREFETCH): Define.
884 (iprefetch): New pattern
885 * config/microblaze/microblaze.opt
886 (mxl-prefetch): New flag.
888 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
890 * config/microblaze/microblaze.h
891 (FIXED_REGISTERS): Update in macro.
892 (CALL_USED_REGISTERS): Update in macro.
894 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
896 PR rtl-optimization/68920
897 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
900 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
902 PR rtl-optimization/68990
903 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
904 pseudo instead of inheritance ones.
906 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
907 Nick Clifton <nickc@redhat.com>
911 * config/mips/mips.c (mips_compute_frame_info): Initialise
912 args_size and hard_frame_pointer_offset fields of the frame
913 structure before calling mips_global_pointer.
915 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
917 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
919 * configure: Regenerate.
921 2016-01-21 Richard Biener <rguenther@suse.de>
923 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
925 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
927 * config/s390/s390.c (s390_asm_declare_function_size): Add code
928 to actually emit the .size directive.
930 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
931 Jakub Jelinek <jakub@redhat.com>
935 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
936 args array size by one to avoid buffer overflow.
938 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
940 * config/s390/s390.md (pool_section_start): Use switch_to_section
941 to select proper read-only data section instead of hardcoding
943 (pool_section_end): Use switch_to_section to match the above.
945 2016-01-21 Richard Biener <rguenther@suse.de>
947 PR tree-optimization/69378
948 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
949 (set_ssa_val_to): Use it for dominance checks taking into
950 account not executable edges.
952 2016-01-21 Jakub Jelinek <jakub@redhat.com>
955 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
956 for bitsize instead of GET_MODE_PRECISION (mode).
958 2016-01-20 Martin Sebor <msebor@redhat.com>
961 * extend.texi (__sync Builtins): Clarify the semantics of
962 __sync_fetch_and_OP built-ins on pointers.
963 (__atomic Builtins): Same.
965 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
966 Sebastian Pop <s.pop@samsung.com>
968 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
969 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
970 (is_valid_rename): Same.
971 (translate_isl_ast_to_gimple::get_rename): Same.
972 (translate_isl_ast_to_gimple::rename_all_uses): Same.
973 (translate_isl_ast_to_gimple::rename_uses): Same.
974 (get_new_name): Check for close_phi nodes.
975 (copy_loop_phi_args): Use phi_node_kind.
976 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
977 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
979 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
980 Sebastian Pop <s.pop@samsung.com>
982 Revert commit r229783.
983 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
984 Remove use of parameter_rename_map.
986 (copy_internal_parameters): Remove.
987 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
988 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
989 (free_sese_info): Do not free parameter_rename_map.
990 (set_rename): Do not use parameter_rename_map.
991 (rename_uses): Update call to set_rename.
992 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
993 * sese.h (parameter_rename_map_t): Remove.
994 (struct sese_info_t): Remove field parameter_rename_map.
996 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
997 Sebastian Pop <s.pop@samsung.com>
999 * graphite-isl-ast-to-gimple.c: Fix comment.
1000 * graphite-scop-detection.c (defined_in_loop_p): New.
1001 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
1002 names defined in loop.
1004 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1005 Sebastian Pop <s.pop@samsung.com>
1007 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1008 Discard unstructured if-then-else regions.
1010 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1011 Sebastian Pop <s.pop@samsung.com>
1013 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
1014 (cleanup_loop_iter_dom): Remove.
1015 (build_loop_iteration_domains): Remove.
1016 (build_scop_context): Remove.
1017 (build_scop_iteration_domain): Remove.
1018 (add_loop_constraints): New.
1019 (build_iteration_domains): New.
1020 (build_poly_scop): Call build_iteration_domains.
1022 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1023 Sebastian Pop <s.pop@samsung.com>
1025 * graphite-scop-detection.c
1026 (scop_detection::harmful_loop_in_region): Free dom and loops.
1027 (scop_detection::loop_body_is_valid_scop): Free bbs.
1029 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1030 Sebastian Pop <s.pop@samsung.com>
1032 * graphite-scop-detection.c (record_loop_in_sese): New.
1033 (gather_bbs::before_dom_children): Call record_loop_in_sese.
1034 (build_scops): Remove call to build_sese_loop_nests.
1035 * sese.c (sese_record_loop): Remove.
1036 (build_sese_loop_nests): Remove.
1037 (new_sese_info): Remove region->loops.
1038 (free_sese_info): Same.
1039 * sese.h (sese_contains_loop): Same.
1040 (build_sese_loop_nests): Remove.
1041 (sese_contains_loop): Remove.
1043 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1044 Sebastian Pop <s.pop@samsung.com>
1046 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
1047 loop_is_valid_in_scop.
1048 (scop_detection::harmful_stmt_in_region): Renamed
1049 harmful_loop_in_region.
1050 Call loop_is_valid_in_scop.
1052 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1053 Sebastian Pop <s.pop@samsung.com>
1055 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
1058 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1059 Sebastian Pop <s.pop@samsung.com>
1061 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
1062 * graphite.h (struct poly_bb): Remove field is_reduction.
1063 (PBB_IS_REDUCTION): Remove.
1065 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
1066 Sebastian Pop <s.pop@samsung.com>
1068 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
1069 (add_pdr_constraints): Same.
1070 (scop_get_reads): Same.
1071 (scop_get_must_writes): Same.
1072 (scop_get_may_writes): Same.
1073 (scop_get_original_schedule): Same.
1074 (extend_schedule): Same.
1075 (apply_schedule_on_deps): Same.
1076 (carries_deps): Same.
1077 (compute_deps): Same.
1078 (scop_get_dependences): Same.
1079 * graphite-isl-ast-to-gimple.c
1080 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
1081 * graphite-optimize-isl.c (get_schedule_for_band): Same.
1082 (get_schedule_for_band_list): Same.
1083 (get_schedule_map): Same.
1084 (apply_schedule_map_to_scop): Same.
1085 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1086 (build_loop_iteration_domains): Same.
1087 (add_condition_to_pbb): Same.
1088 (add_param_constraints): Same.
1089 (pdr_add_memory_accesses): Same.
1090 (pdr_add_data_dimensions): Same.
1092 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
1094 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
1097 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
1099 * common.opt (feliminate-dwarf2-dups): Replace references to
1100 "DWARF 2" with just "DWARF".
1101 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
1102 * doc/extend.texi: Likewise.
1103 * doc/cpp.texi: Likewise.
1104 * doc/invoke.texi: Likewise.
1105 (Option Summary): Add -gdwarf to list of Debugging Options.
1106 (Debugging Options): Document -gdwarf.
1107 * doc/contrib.texi: Spell "DWARF" like that.
1109 2016-01-21 Jakub Jelinek <jakub@redhat.com>
1111 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
1112 warning. Fix up formatting.
1115 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
1116 attempt to mark memory input operand addressable and
1117 call prepare_gimple_addressable in that case. Don't adjust
1118 input_location for diagnostics, use error_at instead.
1120 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
1122 * config/rs6000/ppc-auxv.h: New file.
1123 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
1125 (cpu_supports): Likewise.
1126 * config/rs6000/rs6000.c: include "ppc-auxv.h".
1127 (cpu_is_info): New variable.
1128 (cpu_supports_info): Likewise.
1129 (tcb_verification_symbol): Likewise.
1130 (cpu_builtin_p): Likewise.
1131 (cpu_expand_builtin): New function.
1132 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
1133 (rs6000_init_builtins): Likewise.
1134 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
1135 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
1136 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
1137 * configure: Regenerate.
1138 * config.in: Likewise.
1139 * doc/extend.texi (PowerPC Built-in Functions): Document
1140 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
1142 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
1145 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
1147 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
1150 2016-01-20 Richard Henderson <rth@redhat.com>
1156 * tree.c (tm_define_builtin): New.
1157 (find_tm_vector_type): New.
1158 (build_tm_vector_builtins): New.
1159 (build_common_builtin_nodes): Call it.
1161 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
1163 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
1164 (arm_fp_ok): Likewise.
1166 (arm_crypto): Likewise.
1168 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
1169 Richard Biener <rguenther@suse.de>
1171 PR tree-optimization/69328
1172 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
1173 vectors have same number of elements.
1174 (vectorizable_condition): Fix masked version recognition.
1176 2016-01-20 Richard Biener <rguenther@suse.de>
1178 PR tree-optimization/69345
1179 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
1180 (VN_INFO_PTR_INFO): Likewise.
1181 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
1182 info when it is equal between non-dominating SSA names.
1183 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1184 Make sure to look at original SSA infos.
1186 2016-01-20 Jeff Law <law@redhat.com>
1189 * config/m68k/predicates.md (pow2_m1_operand): New predicate
1191 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
1192 (pc_or_label_operand): New predicate.
1193 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
1194 tests for small integers that are 2^n - 1.
1196 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
1198 * doc/invoke.texi (Options Summary): Add '.' after @xref.
1200 2016-01-19 Jeff Law <law@redhat.com>
1203 * tree-ssa-threadbackwards.c
1204 (fsm_find_control_statement_thread_paths): Do not try to lookup
1205 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
1207 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
1209 * doc/lto.texi: Remove text that says only Gold has linker plugin
1212 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
1214 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
1215 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
1216 the DIE accordingly.
1217 (modified_type_die): Add REVERSE parameter and pass it recursively,
1218 as well as to base_type_die. Adjust presence check accordingly.
1219 (base_type_for_mode): Adjust call to modified_type_die.
1220 (add_type_attribute): Add REVERSE parameter and pass it to
1222 (generic_parameter_die): Adjust call to add_type_attribute.
1223 (add_scalar_info): Likewise.
1224 (add_subscript_info): Likewise.
1225 (gen_array_type_die): Likewise.
1226 (gen_descr_array_type_die): Likewise.
1227 (gen_entry_point_die): Likewise.
1228 (gen_enumeration_type_die): Likewise.
1229 (gen_formal_parameter_die): Likewise.
1230 (gen_subprogram_die): Likewise.
1231 (gen_variable_die ): Likewise.
1232 (gen_const_die): Likewise.
1233 (gen_field_die): Likewise.
1234 (gen_pointer_type_die): Likewise.
1235 (gen_reference_type_die): Likewise.
1236 (gen_ptr_to_mbr_type_die): Likewise.
1237 (gen_inheritance_die): Likewise.
1238 (gen_subroutine_type_die): Likewise.
1239 (gen_typedef_die): Likewise.
1240 (force_type_die): Adjust call to modified_type_die.
1242 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
1244 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
1245 flow throughout the file. Fix broken link to Objective-C 2.0
1247 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
1250 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1252 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
1254 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1257 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
1258 (maybe_record_node): Record cxa_pure_virtual as the only possible
1259 target if there are not ohter candidates.
1260 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
1262 2016-01-19 Richard Biener <rguenther@suse.de>
1264 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
1265 (get_memory_order): Likewise.
1267 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
1269 * tree-vect-stmts.c (vectorizable_store): Check
1272 2016-01-19 David Malcolm <dmalcolm@redhat.com>
1275 * gcc.c (driver::decode_argv): Add call to
1276 init_opts_obstack before init_options_struct.
1277 * opts.c (init_opts_obstack): Remove idempotency.
1278 (init_options_struct): Replace call to init_opts_obstack
1279 with a gcc_assert to verify that it has already been called.
1280 * toplev.c (toplev::main): Add call to init_opts_obstack before
1281 calls to init_options_struct.
1282 (toplev::finalize): Move cleanup of opts_obstack next to
1283 cleanup of save_decoded_options, clearing the latter, and
1284 save_decoded_options_count.
1286 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1289 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
1290 attribute to unconditional. Remove %? from output template.
1292 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1293 Jiong Wang <jiong.wang@arm.com>
1295 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
1296 generated from different expand order.
1298 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1300 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
1301 Add support for CCMP costing.
1303 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1305 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
1306 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
1307 (fccmpe<mode>): Likewise.
1308 (fcmp): Rename to fcmp and globalize pattern.
1310 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
1311 (aarch64_gen_ccmp_next): Add FP support.
1313 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
1315 * target.def (gen_ccmp_first): Update documentation.
1316 (gen_ccmp_next): Likewise.
1317 * doc/tm.texi (gen_ccmp_first): Update documentation.
1318 (gen_ccmp_next): Likewise.
1319 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
1320 expand_ccmp_expr_1. Improve comments.
1321 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
1322 (ccmp_ior<mode>): Remove pattern.
1323 (cmp<mode>): Remove expand.
1324 (cmp): Globalize pattern.
1325 (cstorecc4): Use cc_register.
1326 (mov<mode>cc): Remove ccmp_cc_register check.
1327 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
1328 Simplify after removal of CC_DNE/* modes.
1329 (aarch64_ccmp_mode_to_code): Remove.
1330 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
1331 In 'k' case use integer as condition.
1332 (aarch64_nzcv_codes): Remove inverted cases.
1333 (aarch64_code_to_ccmode): Remove.
1334 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
1335 comparison with CC register to be used in folowing CCMP/branch/CSEL.
1336 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
1337 pattern. Return the comparison with CC register. Invert conditions
1339 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
1340 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
1342 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1344 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
1345 instrumented_version.
1347 2016-01-19 Richard Biener <rguenther@suse.de>
1349 PR tree-optimization/69336
1350 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
1351 handled components with get_ref_base_and_extent.
1352 (equal_mem_array_ref_p): Adjust.
1354 2016-01-19 Jakub Jelinek <jakub@redhat.com>
1357 * shrink-wrap.c: Include valtrack.h.
1358 (move_insn_for_shrink_wrap): Add DEBUG argument. If
1359 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
1360 in between insn and where it will be moved to. Call
1361 dead_debug_insert_temp.
1362 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
1363 first and dead_debug_local_finish at the end.
1364 For uses and defs bitmap, handle all regs in between REGNO and
1365 END_REGNO, not just the first one.
1367 2016-01-19 Richard Biener <rguenther@suse.de>
1369 PR tree-optimization/69352
1370 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
1371 (equal_mem_array_ref_p): Constrain size and max size properly.
1372 Compare the reverse flag.
1374 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
1376 * ira.c (ira): Update regstat data if we deleted insns.
1378 2016-01-19 Jakub Jelinek <jakub@redhat.com>
1380 PR rtl-optimization/68955
1381 PR rtl-optimization/64557
1382 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
1383 here. Fix up formatting.
1384 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
1386 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1389 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
1390 assume that the node has body.
1391 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
1394 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1396 * lto-streamer-out.c (lto_output): Do not stream instrumentation
1399 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
1401 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
1402 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
1404 2016-01-19 Martin Jambor <mjambor@suse.cz>
1405 Martin Liska <mliska@suse.cz>
1406 Michael Matz <matz@suse.de>
1408 * Makefile.in (OBJS): Add new source files.
1409 (GTFILES): Add hsa.c.
1410 * common.opt (disable_hsa): New variable.
1411 (-Whsa): New warning.
1412 * config.in (ENABLE_HSA): New.
1413 * configure.ac: Treat hsa differently from other accelerators.
1414 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
1416 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
1417 * doc/install.texi (Configuration): Document --with-hsa-runtime,
1418 --with-hsa-runtime-include, --with-hsa-runtime-lib and
1420 * doc/invoke.texi (-Whsa): Document.
1421 (hsa-gen-debug-stores): Likewise.
1422 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
1423 to invoke offload compiler for hsa acclerator.
1424 * opts.c (common_handle_option): Determine whether HSA offloading
1425 should be performed.
1426 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
1427 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
1428 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
1429 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
1430 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
1431 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
1432 GF_OMP_FOR_KIND_GRID_LOOP.
1433 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
1434 (pp_gimple_stmt_1): Likewise.
1435 * gimple-walk.c (walk_gimple_stmt): Likewise.
1436 * gimple.c (gimple_build_omp_grid_body): New function.
1437 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
1438 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
1439 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
1440 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
1441 GF_OMP_TEAMS_GRID_PHONY.
1442 (gimple_statement_omp_single_layout): Updated comments.
1443 (gimple_build_omp_grid_body): New function.
1444 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
1445 (gimple_omp_for_grid_phony): New function.
1446 (gimple_omp_for_set_grid_phony): Likewise.
1447 (gimple_omp_parallel_grid_phony): Likewise.
1448 (gimple_omp_parallel_set_grid_phony): Likewise.
1449 (gimple_omp_teams_grid_phony): Likewise.
1450 (gimple_omp_teams_set_grid_phony): Likewise.
1451 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
1452 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
1453 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
1454 (BUILT_IN_GOMP_TARGET): Updated type.
1455 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
1456 (adjust_for_condition): New function.
1457 (get_omp_for_step_from_incr): Likewise.
1458 (extract_omp_for_data): Moved parts to adjust_for_condition and
1459 get_omp_for_step_from_incr.
1460 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
1461 (fixup_child_record_type): Bail out if receiver_decl is NULL.
1462 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
1463 (scan_omp_parallel): Do not create child functions for phony
1465 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
1466 (scan_omp_1_op): Checking assert we are not remapping to
1467 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
1468 (parallel_needs_hsa_kernel_p): New function.
1469 (expand_parallel_call): Register apprpriate parallel child
1470 functions as HSA kernels.
1471 (grid_launch_attributes_trees): New type.
1472 (grid_attr_trees): New variable.
1473 (grid_create_kernel_launch_attr_types): New function.
1474 (grid_insert_store_range_dim): Likewise.
1475 (grid_get_kernel_launch_attributes): Likewise.
1476 (get_target_argument_identifier_1): Likewise.
1477 (get_target_argument_identifier): Likewise.
1478 (get_target_argument_value): Likewise.
1479 (push_target_argument_according_to_value): Likewise.
1480 (get_target_arguments): Likewise.
1481 (expand_omp_target): Call get_target_arguments instead of looking
1482 up for teams and thread limit.
1483 (grid_expand_omp_for_loop): New function.
1484 (grid_arg_decl_map): New type.
1485 (grid_remap_kernel_arg_accesses): New function.
1486 (grid_expand_target_kernel_body): New function.
1487 (expand_omp): Call it.
1488 (lower_omp_for): Do not emit phony constructs.
1489 (lower_omp_taskreg): Do not emit phony constructs but create for them
1490 a temporary variable receiver_decl.
1491 (lower_omp_taskreg): Do not emit phony constructs.
1492 (lower_omp_teams): Likewise.
1493 (lower_omp_grid_body): New function.
1494 (lower_omp_1): Call it.
1495 (grid_reg_assignment_to_local_var_p): New function.
1496 (grid_seq_only_contains_local_assignments): Likewise.
1497 (grid_find_single_omp_among_assignments_1): Likewise.
1498 (grid_find_single_omp_among_assignments): Likewise.
1499 (grid_find_ungridifiable_statement): Likewise.
1500 (grid_target_follows_gridifiable_pattern): Likewise.
1501 (grid_remap_prebody_decls): Likewise.
1502 (grid_copy_leading_local_assignments): Likewise.
1503 (grid_process_kernel_body_copy): Likewise.
1504 (grid_attempt_target_gridification): Likewise.
1505 (grid_gridify_all_targets_stmt): Likewise.
1506 (grid_gridify_all_targets): Likewise.
1507 (execute_lower_omp): Call grid_gridify_all_targets.
1508 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
1509 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
1510 (tree_omp_clause): Added union field dimension.
1511 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
1512 * tree.c (omp_clause_num_ops): Added number of arguments of
1513 OMP_CLAUSE__GRIDDIM_.
1514 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
1515 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
1516 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
1517 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
1518 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
1519 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
1520 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
1521 * tree-pass.h (make_pass_gen_hsail): Declare.
1522 (make_pass_ipa_hsa): Likewise.
1523 * ipa-hsa.c: New file.
1524 * lto-section-in.c (lto_section_name): Add hsa section name.
1525 * lto-streamer.h (lto_section_type): Add hsa section.
1526 * timevar.def (TV_IPA_HSA): New.
1527 * hsa-brig-format.h: New file.
1528 * hsa-brig.c: New file.
1529 * hsa-dump.c: Likewise.
1530 * hsa-gen.c: Likewise.
1533 * toplev.c (compile_file): Call hsa_output_brig.
1534 * hsa-regalloc.c: New file.
1536 2016-01-18 Jeff Law <law@redhat.com>
1538 PR tree-optimization/69320
1539 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
1540 ranged object, do nothing if the RHS constant is not [0..1].
1541 (optimize_stmt): Comparing a boolean ranged object against a
1542 constant outside [0..1] results in a compile-time constant.
1544 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
1547 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
1549 * doc/invoke.texi (Invoking GCC): Add new section to menu.
1550 (Option Summary): Update to reflect new section and moved options.
1551 (C++ Dialect Options): Move -fstats to new section.
1552 (Debugging Options): Move all dump, statistics, and other GCC
1553 developer options to new section. Rewrite section introduction
1554 and re-order remaining options to put the more basic ones first.
1555 (Optimization Options): Move -fira-verbose and -flto-report* to
1557 (Developer Options): New section incorporating moved options.
1558 * doc/cppopts.texi (-dM): Update cross-reference.
1560 2016-01-18 Richard Henderson <rth@redhat.com>
1563 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
1564 operands to pseudo only if CSE is expected. Split long immediate
1565 operands only after reload, and for the stack pointer.
1566 (*add<GPI>3_pluslong): Remove.
1567 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
1568 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
1569 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
1570 (*add<GPI>3 peepholes): New.
1571 (*add<GPI>3 splitters): New.
1572 * config/aarch64/constraints.md (Upl): New.
1573 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
1575 2016-01-18 Richard Biener <rguenther@suse.de>
1577 PR tree-optimization/69297
1578 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
1580 (vect_bb_vectorization_profitable_p): Clear visited flag again.
1582 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1585 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
1586 of mixind vector and scalar types.
1587 (fold_relational_const): Add handling of vector
1588 comparison with boolean result.
1589 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
1590 comparison of vector operands with boolean result for EQ/NE only.
1591 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
1592 (verify_gimple_cond): Likewise.
1593 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
1596 2016-01-18 Joseph Myers <joseph@codesourcery.com>
1598 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
1601 2016-01-18 Richard Biener <rguenther@suse.de>
1604 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
1606 2016-01-18 Tom de Vries <tom@codesourcery.com>
1608 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
1610 2016-01-18 Tom de Vries <tom@codesourcery.com>
1612 * omp-low.c (set_oacc_fn_attrib): Make extern.
1613 * omp-low.h (set_oacc_fn_attrib): Declare.
1614 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
1615 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
1616 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
1617 Add and handle function parameter oacc_kernels_p.
1618 (find_reduc_addr, get_omp_data_i_param): New function.
1619 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
1620 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
1621 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
1622 Calculate dominance info. Skip loops that are not in a kernels region
1623 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
1624 (pass_parallelize_loops::execute): Call parallelize_loops with
1625 oacc_kernels_p argument.
1626 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
1627 New member function.
1628 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
1629 * passes.def: Add argument to pass_parallelize_loops instantation.
1631 2016-01-18 Tom de Vries <tom@codesourcery.com>
1633 * tree-parloops.c (pass_parallelize_loops::execute): Allow
1634 pass_parallelize_loops to be run outside the loop pipeline.
1636 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
1638 * tree-scalar-evolution.c (follow_copies_to_constant): New.
1639 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
1641 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
1644 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
1645 using get_ref_base_and_extent.
1646 (equal_mem_array_ref_p): New.
1647 (hashable_expr_equal_p): Add call to previous.
1649 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
1652 * tree-sra.c (disqualified_constants, constant_decl_p): New.
1653 (sra_initialize): Allocate disqualified_constants.
1654 (sra_deinitialize): Free disqualified_constants.
1655 (disqualify_candidate): Update disqualified_constants when appropriate.
1656 (create_access): Scan for constant-pool entries as we go along.
1657 (scalarizable_type_p): Add check against type_contains_placeholder_p.
1658 (maybe_add_sra_candidate): Allow constant-pool entries.
1659 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
1660 (initialize_constant_pool_replacements): New.
1661 (sra_modify_assign): Avoid mangling assignments created by previous,
1662 and don't generate writes into constant pool.
1663 (sra_modify_function_body): Call initialize_constant_pool_replacements.
1665 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
1667 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
1669 (scalar_chain::convert_op): Likewise.
1670 * config/i386/i386.md (*andndi3_doubleword): New.
1672 2016-01-18 Richard Biener <rguenther@suse.de>
1674 PR tree-optimization/69170
1675 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
1676 building a vector from scalar results of a pattern stmt.
1678 2016-01-18 Jakub Jelinek <jakub@redhat.com>
1680 * haifa-sched.c (autopref_multipass_init): Work around
1681 -Wmaybe-uninitialized warning.
1683 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1685 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
1686 against the constant 0.
1688 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1690 PR tree-optimization/68799
1691 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
1692 look up phi candidates in the statement-candidate map.
1693 (phi_add_costs): Likewise.
1694 (record_phi_increments): Likewise.
1695 (phi_incr_cost): Likewise.
1696 (ncd_with_phi): Likewise.
1697 (all_phi_incrs_profitable): Likewise.
1699 2016-01-17 Jakub Jelinek <jakub@redhat.com>
1701 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
1702 -Wmaybe-uninitialized warning.
1704 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
1706 * doc/invoke.texi (Invoking GCC): Add new section to menu.
1707 (Option Summary): Update to reflect new section and moved options.
1708 (C++ Dialect Options): Move -fvtable-verify and related options.
1709 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
1710 and profiling-related options.
1711 (Optimization Options): Move profile generation options and
1712 -fstack-protector and related options.
1713 (Instrumentation Options): New section incorporating moved options.
1714 (Code Generation Options): Move -finstrument-functions and
1715 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
1717 2016-01-16 Tom de Vries <tom@codesourcery.com>
1719 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
1721 2016-01-16 Tom de Vries <tom@codesourcery.com>
1723 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
1725 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
1727 * hash-table.h (hash_table::empty): Turn into an inline wrapper
1728 that checks whether the table is already empty. Rename the
1729 original implementation to...
1730 (hash_table::empty_slot): ...this new private function.
1732 2016-01-15 David Malcolm <dmalcolm@redhat.com>
1735 * diagnostic-show-locus.c (layout::print_source_line): Move x
1736 offset of line until after call to
1737 get_line_width_without_trailing_whitespace.
1739 2016-01-15 Jeff Law <law@redhat.com>
1741 PR tree-optimization/69270
1742 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
1743 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
1744 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
1745 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
1746 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
1747 ssa_name_has_boolean_range and constant_boolean_node.
1749 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
1751 PR rtl-optimization/69030
1752 * lra-spills.c (remove_pseudos): Check nrefs and make the function
1754 (spill_pseudos): Delete debug insn for dead pseudo.
1755 (lra_spill): Initiate spill_hard_reg and slots memory separately.
1757 2016-01-15 Jiong Wang <jiong.wang@arm.com>
1759 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
1761 (TYPES_UNOPUS): Likewise.
1762 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
1763 builtin type, from UNOP to UNOPUS.
1764 (lbtruncuv4sf): Likewise.
1765 (lbtruncuv2df): Likewise.
1766 (lrounduv2sf): Likewise.
1767 (lrounduv4sf): Likewise.
1768 (lrounduv2df): Likewise.
1769 (lroundusf): Likewise.
1770 (lroundusf): Likewise.
1771 (lceiluv2sf): Likewise.
1772 (lceiluv4sf): Likewise.
1773 (lceiluv2df): Likewise.
1774 (lceilusf): Likewise.
1775 (lceiludf): Likewise.
1776 (lflooruv2sf): Likewise.
1777 (lflooruv4sf): Likewise.
1778 (lflooruv2df): Likewise.
1779 (lfloorusf): Likewise.
1780 (lfloorudf): Likewise.
1781 (lfrintnuv2sf): Likewise.
1782 (lfrintnuv4sf): Likewise.
1783 (lfrintnuv2df): Likewise.
1784 (lfrintnusf): Likewise.
1785 (lfrintnudf): Likewise.
1786 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
1788 (vcvtq_u32_f32): Likewise.
1789 (vcvtq_u64_f64): Likewise.
1790 (vcvta_u32_f32): Likewise.
1791 (vcvtaq_u32_f32): Likewise.
1792 (vcvtaq_u64_f64): Likewise.
1793 (vcvtm_u32_f32): Likewise.
1794 (vcvtmq_u32_f32): Likewise.
1795 (vcvtmq_u64_f64): Likewise.
1796 (vcvtn_u32_f32): Likwise.
1797 (vcvtnq_u32_f32): Likewise.
1798 (vcvtnq_u64_f64): Likewise.
1799 (vcvtp_u32_f32): Likewise.
1800 (vcvtpq_u32_f32): Likewise.
1801 (vcvtpq_u64_f64): Likewise.
1802 (vcvtmd_u64_f64): Likewise.
1803 (vcvtms_u32_f32): Likewise.
1804 (vcvtad_u64_f64): Likewise.
1805 (vcvtas_u32_f32): Likewise.
1806 (vcvtnd_u64_f64): Likewise.
1807 (vcvtns_u32_f32): Likewise.
1808 (vcvtpd_u64_f64): Likewise.
1809 (vcvtps_u32_f32): Likewise.
1811 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1813 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
1814 CSEL of zero_extended registers.
1816 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1818 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
1819 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
1821 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1823 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
1824 false when argument string is not found in the attributes table
1827 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
1830 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
1831 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
1832 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
1835 2016-01-15 Richard Biener <rguenther@suse.de>
1837 PR tree-optimization/66856
1838 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
1839 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
1840 (vect_create_new_slp_node): Increment stmt reference count.
1841 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
1842 an SLP tree before swapping operands.
1843 (vect_build_slp_tree): Likewise.
1844 (destroy_bb_vec_info): Free stmt info after SLP instances.
1845 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
1846 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
1847 (STMT_VINFO_NUM_SLP_USES): New macro.
1849 2016-01-15 Richard Biener <rguenther@suse.de>
1852 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
1853 (add_linkage_name): ... here.
1854 (gen_typedef_die): Use add_linkage_name_raw instead of
1855 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
1858 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
1860 * gimplify.c (oacc_default_clause): Decode reference and pointer
1861 types for both kernels and parallel regions.
1863 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
1866 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
1868 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
1870 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
1871 (convert_scalars_to_vector): Likewise.
1873 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
1875 * doc/extend.texi (Type Traits): Fix grammar.
1877 2016-01-15 Martin Jambor <mjambor@suse.cz>
1879 * tree-inline.c (remap_decl): Use existing dclarations if
1880 remapping a type and prevent_decl_creation_for_types.
1881 (replace_locals_stmt): Do an initial remapping of non-VLA typed
1882 decls first. Do real remapping with
1883 prevent_decl_creation_for_types set.
1884 * tree-inline.h (copy_body_data): New field
1885 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
1888 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
1890 * config/s390/s390.opt (mmvcle): More verbose help text.
1892 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
1894 * config/s390/s390.opt: Add period to -mzvector option text.
1896 2016-01-15 Richard Biener <rguenther@suse.de>
1898 PR tree-optimization/68961
1899 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
1900 of invariants in stores again.
1902 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
1904 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
1906 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
1908 * config/i386/i386.c (ix86_expand_branch): Don't split
1909 DI mode xor instruction to SI mode.
1911 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
1914 * ipa-icf.c (sem_function::merge): Virtual functions may become
1915 reachable even if they address is not taken and there are no
1918 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
1920 * lto-streamer-out.c (subtract_estimated_size): New function.
1921 (get_symbol_initial_value): Use it.
1923 2016-01-15 Christian Bruel <christian.bruel@st.com>
1926 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
1927 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
1928 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
1929 use add_builtin_function_ext_scope instead of add_builtin_function.
1930 (neon_set_p, neon_crypto_set_p): Remove.
1931 (arm_init_builtins): Always call arm_init_neon_builtins and
1932 arm_init_crypto_builtins.
1933 (arm_expand_builtin): Check that builtins are allowed for the arch.
1934 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
1935 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
1936 arm_init_neon_builtins call.
1938 2016-01-15 Richard Biener <rguenther@suse.de>
1940 PR tree-optimization/69117
1941 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
1942 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
1943 of the leader conservatively.
1944 (free_scc_vn): Restore original SSA name infos.
1946 2016-01-14 Jeff Law <law@redhat.com>
1948 PR tree-optimization/69270
1949 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
1950 single bit of precision, verify it's also unsigned.
1951 (record_edge_info): Use constant_boolean_node rather than fold_convert
1952 to convert boolean_true/boolean_false to the right type.
1954 2016-01-14 Richard Henderson <rth@redhat.com>
1957 * loop-doloop.c (record_reg_sets): New.
1958 (doloop_optimize): Reject the transform if the sequence
1959 clobbers registers live at the end of the loop block.
1960 (doloop_optimize_loops): Enable df_live if needed.
1962 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1964 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
1965 * gcc/config/rs6000/rs6000.c: Likewise.
1966 * gcc/config/rs6000/rs6000.h: Likewise.
1967 * gcc/config/rs6000/rs6000.md: Likewise.
1968 * gcc/doc/extend.texi: Likewsie.
1970 2016-01-14 Jeff Law <law@redhat.com>
1972 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
1975 2016-01-14 Richard Henderson <rth@redhat.com>
1979 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
1980 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
1981 instead of builtin_decl_declared_p to test for declaration.
1983 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
1985 * doc/loop.texi (Loop Analysis and Representation): Document
1986 loop_depth function.
1988 2016-01-14 Tom de Vries <tom@codesourcery.com>
1990 PR tree-optimization/68773
1991 * omp-low.c (expand_omp_target): Don't set force_output.
1992 * varpool.c (varpool_node::get_create): Same.
1993 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
1994 offload_funcs with force_output.
1996 2016-01-14 Jakub Jelinek <jakub@redhat.com>
1999 * lra-eliminations.c (move_plus_up): Don't change anything if either
2000 the outer or inner subreg mode is not MODE_INT.
2001 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
2002 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
2004 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
2006 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
2007 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
2008 reduc_uplus_@var{m}): Remove.
2009 * expr.c (expand_expr_real_2): Remove expansion path for
2010 reduc_[us](min|max|plus) optabs.
2011 * optabs-tree.c (scalar_reduc_to_vector): Remove.
2012 * optabs-tree.h (scalar_reduc_to_vector): Remove.
2013 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
2014 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
2015 * tree-vect-loop.c (vectorizable_reduction): Remove test for
2016 reduc_[us](min|max|plus) optabs.
2018 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
2020 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
2021 (reduc_plus_scal_v2sf): New.
2022 (reduc_smax_v2sf): Rename to...
2023 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
2024 (reduc_smin_v2sf): Rename to...
2025 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
2027 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
2029 * alias.c (compare_base_symbol_refs): New function.
2030 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
2033 2016-01-14 Jakub Jelinek <jakub@redhat.com>
2036 PR tree-optimization/69155
2037 * tree-complex.c: Include cfganal.h.
2038 (phis_to_revisit): New variable.
2039 (extract_component): Add phiarg_p argument. Assert that returned
2040 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
2041 (update_phi_components): Partly rewrite to use loop over real/imag
2042 components instead of code duplication. If extract_component returns
2043 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
2044 create_tmp_reg into the PHI node instead, and mention the phi triplet
2046 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
2047 in phis_to_revisit at the end.
2049 2016-01-14 Richard Biener <rguenther@suse.de>
2051 PR tree-optimization/68060
2052 * tree-vect-loop.c (vect_is_simple_reduction): Check the
2053 outer loop reduction is only used in the inner loop before
2054 detecting a double reduction.
2056 2016-01-14 Jakub Jelinek <jakub@redhat.com>
2059 * combine.c (expand_field_assignment): Punt if compute_mode is
2060 unsupported scalar mode.
2062 2016-01-14 Richard Biener <rguenther@suse.de>
2064 PR tree-optimization/66856
2065 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
2066 SLP node only if it built successfully.
2067 (vect_analyze_slp_instance): Adjust.
2069 2016-01-14 Jeff Law <law@redhat.com>
2071 PR tree-optimization/69270
2072 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
2073 (record_edge_info): Use it. Convert boolean_{true,false}_node
2076 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
2079 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
2080 use block_ultimate_origin
2081 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
2083 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
2085 * doc/invoke.texi (Submodel Options): Rename section to
2086 "Machine-Dependent Options" to better reflect its content.
2087 Rewrite introductory text to remove archaic CPU names.
2090 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
2092 * doc/invoke.texi (Code Gen Options): Move section up in file,
2093 before target-specific options. Update menu and option summary
2094 to reflect the new section ordering.
2096 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
2098 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
2099 (C++ Dialect Options): Add cross-reference to -std option.
2100 * doc/standards.texi (C++ Language): Document C++14 support.
2102 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2104 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
2105 for pack/unpack functions for __ibm128.
2106 (PACK_IF): Likewise.
2107 (UNPACK_IF): Likewise.
2109 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
2110 support for __ibm128 pack/unpack functions.
2111 (rs6000_invalid_builtin): Likewise.
2112 (rs6000_init_builtins): Likewise.
2113 (rs6000_opt_masks): Likewise.
2115 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
2116 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
2118 (RS6000_BTM_COMMON): Likewise.
2120 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
2121 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
2122 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
2123 128-bit floating point. Add support for the double values to be
2124 in Altivec registers for TF/IF packing and unpacking, but restrict
2125 TD packing sub-fields to be FPR registers. Don't allow overlapped
2126 register support for packing. Allow pack inputs to be memory
2127 locations. Don't build generator functions for unpack<mode>_dm
2128 and unpack<mode>_nodm.
2129 (unpack<mode>_dm): Likewise.
2130 (unpack<mode>_nodm): Likewise.
2131 (pack<mode>): Likewise.
2133 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
2134 built-in functions to pack/unpack explicit __ibm128 values.
2135 (__builtin_unpack_ibm128): Likewise.
2137 * doc/extend.texi (PowerPC Built-in Functions): Document
2138 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
2140 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
2143 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
2144 Add new arg loc and pass it down as context.
2145 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
2146 to the location to use for the warning.
2147 (check_function_arguments): New arg loc. All callers changed. Pass
2148 it to check_function_nonnull.
2149 * c-common.h (check_function_arguments): Adjust declaration.
2151 2016-01-13 Jakub Jelinek <jakub@redhat.com>
2153 PR tree-optimization/69156
2154 * gimple.c (validate_type): Removed.
2155 (gimple_builtin_call_types_compatible_p): Use
2156 useless_type_conversion_p instead of validate_type.
2157 * value-prof.c (gimple_stringop_fixed_value): Fold
2158 icall_size to correct type.
2160 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
2162 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
2165 2016-01-13 Richard Henderson <rth@redhat.com>
2168 * target.def (builtin_tm_load, builtin_tm_store): Remove.
2169 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
2170 (ix86_builtin_tm_store): Remove.
2171 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
2172 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
2173 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
2174 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
2175 * doc/tm.texi: Rebuild.
2177 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
2178 (BUILT_IN_TM_MEMCPY_RTWN): New.
2179 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
2180 fallback from vector to integer helpers.
2181 (build_tm_load): Handle vector types directly, instead of
2183 (build_tm_store): Likewise.
2184 (expand_assign_tm): Prepare for register types not handled by
2185 the above. Copy them to memory and use memcpy.
2186 * tree.c (tm_define_builtin): New.
2187 (find_tm_vector_type): New.
2188 (build_tm_vector_builtins): New.
2189 (build_common_builtin_nodes): Call it.
2191 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
2193 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
2194 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
2196 2016-01-13 Tom de Vries <tom@codesourcery.com>
2198 PR tree-optimization/69169
2199 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
2200 handled_struct_type param.
2201 (create_variable_info_for, intra_create_variable_infos): Call
2202 create_variable_info_for_1 with extra arg.
2204 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
2206 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
2207 and "armv8.1-a+crc" entries.
2209 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
2212 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
2213 Change first operand predicate from register_or_constm1_operand
2214 to register_operand.
2215 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
2216 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
2217 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
2218 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
2219 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
2220 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
2221 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
2222 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
2223 comparison with constm1_rtx from vec_prefetch_gen part.
2225 2016-01-13 Richard Biener <rguenther@suse.de>
2227 PR tree-optimization/69013
2228 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
2229 Exchange assert for a test.
2231 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2234 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
2236 2016-01-13 Richard Biener <rguenther@suse.de>
2238 PR tree-optimization/69242
2239 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
2240 assert with a check.
2242 2016-01-13 Richard Biener <rguenther@suse.de>
2244 PR tree-optimization/69186
2245 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2246 Properly guard vect_update_misalignment_for_peel call.
2248 2016-01-12 Jeff Law <law@redhat.com>
2250 PR tree-optimization/pr67755
2251 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
2252 "need_profile_correction".
2253 (thread_block_1): Initialize new field to false by default. If we
2254 have multiple thread paths through a common joiner to different
2255 final targets, then set new field to true.
2256 (compute_path_counts): Only do count adjustment when it's really
2259 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
2261 * doc/invoke.texi (Spec Files): Move section down in file, past
2262 all command-line option descriptions.
2264 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2267 * doc/gty.texi: Remove documentation of mark_hook.
2268 * gengtype.c (struct write_types_data): Remove code to support
2269 mark_hook attribute.
2270 (walk_type): Likewise.
2271 (write_func_for_structure): Likewise.
2273 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
2275 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
2276 Directory Options, and -specs= to Overall Options.
2277 (Overall Options): Adjust similarly. Reorder to group related
2278 options together. Make -specs= cross-reference the spec file details.
2279 (Directory Options): Adjust similarly.
2281 2016-01-12 Jeff Law <law@redhat.com>
2283 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
2285 2016-01-12 Olivier Hainque <hainque@adacore.com>
2287 * gcc.c (spec_undefvar_allowed): New global.
2288 (process_command): Set to true when running for --version or --help,
2290 (getenv_spec_function): When the variable is not defined, use the
2291 variable name as the variable value if we're allowed not to issue
2294 2016-01-12 Bin Cheng <bin.cheng@arm.com>
2296 PR tree-optimization/68911
2297 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
2298 information computed for expression "init + nit * step".
2300 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
2302 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
2303 about name of GCC executable. Remove deleted node from menu.
2304 (Directory Options) <-B>: Remove cross-reference to deleted node.
2305 (Target Options): Delete section.
2307 2016-01-12 Christian Bruel <christian.bruel@st.com>
2310 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
2311 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
2313 2016-01-12 Jakub Jelinek <jakub@redhat.com>
2316 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
2317 aligned_mem is properly set for AVX512-VL floating point masked
2321 * ifcvt.c (cond_exec_process_if_block): When removing the last
2322 insn from then_bb, remove also any possible barriers that follow it.
2324 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
2328 * config/i386/iamcu.h (SIZE_TYPE): New macro.
2329 (PTRDIFF_TYPE): Likewise.
2330 (WCHAR_TYPE): Likewise.
2331 (WCHAR_TYPE_SIZE): Likewise.
2332 (STDINT_LONG32): Likewise.
2334 2016-01-12 Richard Biener <rguenther@suse.de>
2336 PR tree-optimization/69053
2337 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
2338 convert initial value for cond reductions.
2340 2016-01-12 Richard Biener <rguenther@suse.de>
2342 PR tree-optimization/69007
2343 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
2344 widen_sum after dot_prod and sad.
2346 2016-01-12 Richard Biener <rguenther@suse.de>
2348 PR tree-optimization/69168
2349 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
2350 pattern stmt SLP type.
2351 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
2352 end up unused so cope with that case.
2354 2016-01-12 Richard Biener <rguenther@suse.de>
2356 PR tree-optimization/69157
2357 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
2358 stmts def type only during analyze phase.
2359 (vectorizable_call): Likewise.
2360 (vectorizable_simd_clone_call): Likewise.
2361 (vectorizable_conversion): Likewise.
2362 (vectorizable_assignment): Likewise.
2363 (vectorizable_shift): Likewise.
2364 (vectorizable_operation): Likewise.
2365 (vectorizable_store): Likewise.
2366 (vectorizable_load): Likewise.
2368 2016-01-12 Richard Biener <rguenther@suse.de>
2370 PR tree-optimization/69174
2371 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
2373 (vectorizable_load): Properly compute the number of loads needed
2374 for permuted strided SLP loads and do not spuriously assign
2375 to SLP_TREE_VEC_STMTS.
2377 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
2379 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
2380 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
2381 (MD_EXEC_PREFIX): Remove.
2382 (MD_STARTFILE_PREFIX) Removee.
2383 (FILE_NAME_ABSOLUTE_P): Remove.
2384 (CPP_SPEC): Do not read macros from sys/version.h.
2385 (LINK_COMMAND_SPEC): Remove.
2386 (LOCAL_INCLUDE_DIR): Remove.
2387 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
2388 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
2389 (POST_LINK_SPEC): Define to invoke stubify after linker
2390 (LIBSTDCXX): Remove define
2391 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
2392 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
2393 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
2394 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
2395 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
2396 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
2397 (i386_djgpp_asm_named_section): Add propotype of new procedure
2399 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
2400 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
2401 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
2402 in config/i386/djgpp.h).
2403 (STANDARD_STARTFILE_PREFIX_2): Define identical to
2404 STANDARD_STARTFILE_PREFIX_1.
2405 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
2406 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
2407 installation errors.
2408 (MAX_OFILE_ALIGNMENT): Define to 128.
2409 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
2411 * config/i386/djgpp.c: New file. Add implementation of
2412 i386_djgpp_asm_named_section.
2414 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
2416 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
2417 Add rule for building djgpp.o.
2419 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2421 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
2422 (rtx_is_swappable_p): Reductions are swappable.
2423 (insn_is_swappable_p): V2DF reductions are swappable.
2425 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
2427 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
2428 reloads for other unsupported memory operands.
2430 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
2431 Jim Wilson <jim.wilson@linaro.org>
2434 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
2435 copy_to_mode_reg instead of force_reg.
2437 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
2440 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
2441 TARGET_80387 is true.
2443 2016-01-11 Jakub Jelinek <jakub@redhat.com>
2446 * lra-eliminations.c (move_plus_up): Only move plus up
2447 if subreg of the constant can be simplified into constant
2448 and use the simplified subreg of the constant instead of
2449 the original constant.
2451 * fold-const.c (fold_convertible_p): Don't return true
2452 for conversion of VECTOR_TYPE to same sized integral type.
2453 (fold_convert_loc): Fix up formatting. Fold conversion of
2454 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
2455 instead of NOP_EXPR.
2457 PR tree-optimization/69214
2458 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
2459 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2462 PR tree-optimization/69207
2463 * tree-vect-slp.c (vect_get_constant_vectors): For
2464 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
2465 fold_convertible_p to vector_type's element type, and always
2466 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
2468 2016-01-11 Richard Biener <rguenther@suse.de>
2470 PR tree-optimization/69173
2471 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
2472 fixup the cycle if all stmts are in a pattern.
2474 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
2477 * alias.c (base_alias_check): Move check for addresses with
2478 alignment ANDs before the call for compare_base_decls.
2479 (memrefs_conflict_p): Return -1 for different decls
2480 that went through alignment adjustments.
2482 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2484 PR rtl-optimization/68796
2485 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
2486 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
2487 and QImode comparisons against zero with CC_NZmode.
2488 * config/aarch64/iterators.md (short_mask): New mode_attr.
2490 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
2492 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
2493 (<avx512>_store<mode>_mask): Likewise.
2495 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
2496 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2498 PR rtl-optimization/68841
2499 * ifcvt.c (struct noce_if_info): Add orig_x field.
2500 (bbs_ok_for_cmove_arith): Add to_rename parameter.
2501 Don't record conflicts on to_rename if it's present.
2502 Allow memory destinations in sets.
2503 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
2504 blocks, passing orig_x to the checks.
2505 (noce_process_if_block): Set if_info->orig_x appropriately.
2507 2016-01-11 Tom de Vries <tom@codesourcery.com>
2509 PR tree-optimization/69069
2510 * tree-parloops.c (create_parallel_loop): Add missing phi args.
2512 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
2514 PR rtl-optimization/68920
2515 * config/i386/i386.c (ix86_option_override_internal): Restrict number
2516 of conditional moves for RTL if-conversion to 1 for
2517 TARGET_ONE_IF_CONV_INSN.
2518 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
2519 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
2520 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
2521 parameter to restirct number of conditional moves for
2523 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
2524 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
2527 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
2530 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
2531 onepart vars. Fix typo in comment. Fix reversed condition in
2533 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
2536 * var-tracking.c (dump_onepart_variable_differences): New.
2537 (dataflow_set_different): If a detailed dump is requested,
2538 delay early returns and dump differences between onepart
2539 variables present before and after, and added variables.
2541 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
2544 * expr.c (expand_expr_real_1): For boolean vector constants
2545 with a scalar mode use const_scalar_mask_from_tree.
2546 (const_scalar_mask_from_tree): New.
2547 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
2548 assigned to a mask type to handle constants.
2550 2016-01-11 Martin Jambor <mjambor@suse.cz>
2553 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
2554 useless parameters if we cannot change function signature.
2556 2016-01-11 Martin Jambor <mjambor@suse.cz>
2559 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
2562 2016-01-11 Tom de Vries <tom@codesourcery.com>
2564 PR tree-optimization/69109
2565 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
2568 2016-01-11 Tom de Vries <tom@codesourcery.com>
2570 PR tree-optimization/69108
2571 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
2572 res is not used in a phi.
2574 2016-01-11 Yury Gribov <y.gribov@samsung.com>
2577 * common.opt (frandom-seed): Fix parameter name.
2578 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
2580 2016-01-11 Tom de Vries <tom@codesourcery.com>
2582 PR tree-optimization/69058
2583 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
2586 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
2588 * config/arc/arc.opt (mdiv-rem): Add period to the end.
2589 (mcode-density): Likewise.
2591 2016-01-10 Tom de Vries <tom@codesourcery.com>
2593 PR tree-optimization/69062
2594 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
2595 (parallelize_loops): Don't paralelize loop that has phi with address
2598 2016-01-10 Tom de Vries <tom@codesourcery.com>
2600 PR tree-optimization/69039
2601 * tree-parloops.c (try_create_reduction_list): Only allow single exit
2604 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
2607 * match.pd: Require target has function_c99_misc before doing
2608 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
2610 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
2612 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
2614 * configure: Regenerate.
2616 2016-01-09 Jakub Jelinek <jakub@redhat.com>
2619 PR tree-optimization/69097
2620 * fold-const.h (expr_not_equal_to): New prototype.
2621 * fold-const.c: Include stringpool.h and tree-ssanames.h.
2622 (expr_not_equal_to): New function.
2623 * match.pd (X % -Y is the same as X % Y): Don't optimize
2624 unless X is known not to be equal to minimum or Y is known
2625 not to be equal to -1.
2626 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
2627 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
2628 (simplify_stmt_using_ranges): Adjust caller.
2629 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
2630 substitute_and_fold.
2632 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
2634 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
2637 2016-01-08 Jakub Jelinek <jakub@redhat.com>
2639 PR tree-optimization/69167
2640 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
2641 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
2643 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
2645 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
2646 Richard Biener <rguenther@suse.de>
2648 PR tree-optimization/68707
2649 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
2650 instances that can be handled via vect_load_lanes.
2652 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
2654 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
2655 if we can't determine address equivalence.
2656 * alias.c (compare_base_decl): Update for changed return value of
2657 symtab_node::equal_address_to.
2659 2016-01-08 Jason Merrill <jason@redhat.com>
2663 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
2664 * expr.c (store_field): Not here.
2665 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
2666 call with TREE_ADDRESSABLE type.
2667 * tree-cfg.c (verify_gimple_call): Adjust.
2669 2016-01-08 Olivier Hainque <hainque@adacore.com>
2671 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
2674 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
2676 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
2677 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
2678 (reduc_smin_v2sf): Rename to...
2679 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
2680 (reduc_splus_v2sf): Rename to...
2681 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
2683 2016-01-08 Jakub Jelinek <jakub@redhat.com>
2685 PR tree-optimization/69162
2686 * gimplify.c (gimplify_va_arg_expr): Encode original type of
2687 valist argument in another argument.
2688 (gimplify_modify_expr): Adjust for the above change. Cleanup.
2689 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
2690 to determine the va_list type, build a MEM_REF instead of
2691 build_fold_indirect_ref.
2693 PR tree-optimization/69172
2694 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
2697 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
2699 PR tree-optimization/67781
2700 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
2701 and cmpnop in two steps: first the ones not accessed in original
2702 gimple expression in a endian independent way and then the ones not
2703 accessed in the final result in an endian-specific way.
2705 2016-01-08 Jakub Jelinek <jakub@redhat.com>
2707 PR tree-optimization/69083
2708 * tree-vect-slp.c (vect_get_constant_vectors): For
2709 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
2710 element type. If op is fold_convertible_p to vector_type's element
2711 type, use NOP_EXPR instead of VCE.
2713 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
2715 PR rtl-optimization/67778
2716 PR rtl-optimization/68634
2717 PR rtl-optimization/68909
2718 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
2719 block from the stack until done with it. Remove a superfluous
2720 bitmap set. Remove a superfluous bitmap test.
2722 2016-01-07 Martin Sebor <msebor@redhat.com>
2725 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
2726 constraint on the type of arguments.
2728 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
2730 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
2731 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
2732 unaligned_access on the gcc_options set.
2733 * config/arm/arm.c (arm_option_override_internal): Use
2734 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
2736 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
2739 * config/i386/i386.c (ix86_frame_pointer_required): Enable
2740 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
2742 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
2745 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
2748 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
2749 depending on frame_pointer_needed before remaining integer and SSE
2750 registers are saved.
2752 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
2755 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
2757 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
2760 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
2761 Use the "xBm" constraint.
2762 (float<sseintvecmodelower><mode>2<mask_name><round_name):
2764 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
2765 (sse_cvtsi2ssq<round_name>): Likewise.
2766 (sse_cvtss2si<round_name>): Likewise.
2767 (sse_cvtss2siq<round_name>): Likewise.
2768 (sse2_cvtsi2sdq<round_name>): Likewise.
2769 (sse2_cvtsd2si<round_name>): Likewise.
2770 (sse2_cvtsd2siq<round_name>): Likewise.
2771 * config/i386/subst.md (round_nimm_scalar_predicate): New
2774 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
2777 * varasm.c (make_decl_rtl): Mark invalid register vars as
2780 PR rtl-optimization/66206
2781 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
2782 All callers changed.
2784 2016-01-07 Jakub Jelinek <jakub@redhat.com>
2786 PR tree-optimization/69141
2787 * tree-ssa-pre.c: Include langhooks.h.
2788 (eliminate_dom_walker::before_dom_children): Use
2789 lang_hooks.decl_printable_name instead of
2790 cgraph_node::get ()->name ().
2793 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
2794 it and DECL_ALIGN too.
2796 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
2798 * config/mips/mips-ftypes.def: Sort to lexicographical order.
2800 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
2803 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
2804 depending on frame_pointer_needed before remaining integer and SSE
2805 registers are saved.
2807 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2809 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
2810 mode iterator with VSX_M2.
2811 (*p9_vecstore_<mode>): Likewise.
2812 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
2813 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
2814 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
2815 (define_split for VSX_LE128 stores): Likewise.
2816 (define_peephole2 for TImode LE swaps): Likewise.
2817 (define_split for VSX_LE128 post-reload stores): Likewise.
2819 2016-01-06 Marek Polacek <polacek@redhat.com>
2822 * convert.c (convert_to_integer_1): Adjust call to
2823 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
2824 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
2825 EXPR instead of ARG.
2826 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
2828 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
2831 * doc/extend.texi (RL78 Variable Attributes): New section.
2833 2016-01-05 Marek Polacek <polacek@redhat.com>
2836 * builtins.c (get_memmodel): Use expansion point location rather than
2837 the input location. Call warning_at rather than warning.
2838 (expand_builtin_atomic_compare_exchange): Likewise.
2839 (expand_builtin_atomic_load): Likewise.
2840 (expand_builtin_atomic_store): Likewise.
2841 (expand_builtin_atomic_clear): Likewise.
2843 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
2846 * config/i386/i386.c (ix86_expand_vector_logical_operator):
2847 Replace nonimmediate_operand with vector_operand.
2848 * config/i386/predicates.md (vector_operand): New predicate.
2849 (general_vector_operand): Replace nonimmediate_operand with
2851 * config/i386/sse.md: Replace nonimmediate_operand with
2852 vector_operand and m constraint with Bm constraint on SSE
2853 patterns with 16-byte memory operand.
2854 * config/i386/subst.md (round_nimm_predicate): Replace
2855 nonimmediate_operand with vector_operand.
2856 (round_saeonly_nimm_predicate): Likewise.
2857 (round_saeonly_nimm_scalar_predicate): New.
2859 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
2862 * config/i386/constraints.md (Bm): New constraint.
2863 * config/i386/predicates.md (vector_memory_operand): New
2865 * config/i386/sse.md: Replace xm with xBm in plusminus and
2868 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
2871 * doc/extend.texi (V850 Function Attributes): New section.
2872 (V850 Variable Attributes): New section.
2874 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
2877 * doc/extend.texi (MicroBlaze Function Attributes): Document
2878 interrupt_handler and fast_interrupt attributes.
2880 2016-01-05 Sergei Trofimovich <siarheit@google.com>
2883 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
2884 for local symbolic operands.
2885 * config/ia64/predicates.md (local_symbolic_operand64): New
2888 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2890 PR rtl-optimization/68651
2891 * combine.c (combine_simplify_rtx): Canonicalize x + x into
2894 2016-01-05 Nathan Sidwell <nathan@acm.org>
2896 * alias.c (compare_base_decls): Use symtab_node::get.
2898 2016-01-05 Nick Clifton <nickc@redhat.com>
2901 * ira-costs.c (copy_cost): Initialise the t_icode field of the
2902 secondary_reload_info structure.
2905 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
2906 decls if weak support is available.
2908 2016-01-04 Martin Sebor <msebor@redhat.com>
2910 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
2912 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
2914 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2915 OPTION_MASK_P9_DFORM.
2917 * config/rs6000/constraints.md (wo constraint): New constraint for
2920 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
2922 (rs6000_init_hard_regno_mode_ok): Likewise.
2924 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
2927 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
2928 expanders not to have constraints. Add support for ISA 3.0 xxperm
2929 instruction. Add support for fusing xxlor with xxperm.
2930 (altivec_vperm_<mode>_internal): Likewise.
2931 (altivec_vperm_v8hiv16qi): Likewise.
2932 (altivec_vperm_<mode>v16q): Likewise.
2933 (altivec_vperm_<mode>_uns): Likewise.
2934 (vperm_v8hiv4si): Likewise.
2935 (vperm_v16qiv8hi): Likewise.
2937 * doc/md.texi (RS/6000 constraints): Document wo constraint.
2939 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2941 Update copyright years.
2943 * gcc.c (process_command): Update copyright notice dates.
2944 * gcov-dump.c (print_version): Ditto.
2945 * gcov.c (print_version): Ditto.
2946 * gcov-tool.c (print_version): Ditto.
2947 * gengtype.c (create_file): Ditto.
2948 * doc/cpp.texi: Bump @copying's copyright year.
2949 * doc/cppinternals.texi: Ditto.
2950 * doc/gcc.texi: Ditto.
2951 * doc/gccint.texi: Ditto.
2952 * doc/gcov.texi: Ditto.
2953 * doc/install.texi: Ditto.
2954 * doc/invoke.texi: Ditto.
2956 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2958 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
2959 modes larger than TImode as TImode if NEON is not enabled.
2961 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2964 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
2965 mode for %f0-%f31 only if TARGET_FPU.
2967 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2970 * config/sparc/sparc.c (scan_record_type): Take into account subfields
2971 to compute the PACKED_P predicate.
2972 (function_arg_record_value): Minor tweaks.
2974 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2976 * doc/install.texi (--with-multilib-list): Describe the meaning of the
2977 option for arm*-*-* targets.
2979 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
2981 * doc/extend.texi (Common Function Attributes): Move docs for
2982 MSP430-specific attributes to....
2983 (MSP430 Function Attributes): ...here. Delete the redundant
2984 entries and copy-edit the remaining text.
2985 (MSP430 Variable Attributes): Use uniform format for index
2986 entries and add a cross-reference to the corresponding function
2989 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
2991 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
2993 (x86 Options): Likewise.
2995 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
2999 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
3000 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
3001 to corresponding attribute.
3003 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
3005 * doc/extend.texi (Common Function Attributes) <noplt>: Move
3006 to correct alphabetization of table. Copy-edit and correct
3008 <stack_protect>: Likewise.
3009 <target_clones>: Likewise.
3011 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
3012 Correct punctuation.
3013 (Code Gen Options) <-fno-plt>: Copy-edit.
3015 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3018 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
3019 SI values. Explicitly convert SI to DI and vice-versa.
3021 2016-01-01 Jakub Jelinek <jakub@redhat.com>
3023 PR tree-optimization/69070
3024 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
3025 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
3028 * ubsan.c (ubsan_instrument_float_cast): Call
3029 initialize_sanitizer_builtins.
3032 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
3034 Copyright (C) 2016 Free Software Foundation, Inc.
3036 Copying and distribution of this file, with or without modification,
3037 are permitted in any medium without royalty provided the copyright
3038 notice and this notice are preserved.