1 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
3 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
5 * configure: Regenerate.
7 2016-01-21 Richard Biener <rguenther@suse.de>
9 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
11 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
13 * config/s390/s390.c (s390_asm_declare_function_size): Add code
14 to actually emit the .size directive.
16 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
17 Jakub Jelinek <jakub@redhat.com>
21 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
22 args array size by one to avoid buffer overflow.
24 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
26 * config/s390/s390.md (pool_section_start): Use switch_to_section
27 to select proper read-only data section instead of hardcoding
29 (pool_section_end): Use switch_to_section to match the above.
31 2016-01-21 Richard Biener <rguenther@suse.de>
33 PR tree-optimization/69378
34 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
35 (set_ssa_val_to): Use it for dominance checks taking into
36 account not executable edges.
38 2016-01-21 Jakub Jelinek <jakub@redhat.com>
41 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
42 for bitsize instead of GET_MODE_PRECISION (mode).
44 2016-01-20 Martin Sebor <msebor@redhat.com>
47 * extend.texi (__sync Builtins): Clarify the semantics of
48 __sync_fetch_and_OP built-ins on pointers.
49 (__atomic Builtins): Same.
51 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
52 Sebastian Pop <s.pop@samsung.com>
54 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
55 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
56 (is_valid_rename): Same.
57 (translate_isl_ast_to_gimple::get_rename): Same.
58 (translate_isl_ast_to_gimple::rename_all_uses): Same.
59 (translate_isl_ast_to_gimple::rename_uses): Same.
60 (get_new_name): Check for close_phi nodes.
61 (copy_loop_phi_args): Use phi_node_kind.
62 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
63 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
65 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
66 Sebastian Pop <s.pop@samsung.com>
68 Revert commit r229783.
69 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
70 Remove use of parameter_rename_map.
72 (copy_internal_parameters): Remove.
73 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
74 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
75 (free_sese_info): Do not free parameter_rename_map.
76 (set_rename): Do not use parameter_rename_map.
77 (rename_uses): Update call to set_rename.
78 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
79 * sese.h (parameter_rename_map_t): Remove.
80 (struct sese_info_t): Remove field parameter_rename_map.
82 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
83 Sebastian Pop <s.pop@samsung.com>
85 * graphite-isl-ast-to-gimple.c: Fix comment.
86 * graphite-scop-detection.c (defined_in_loop_p): New.
87 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
88 names defined in loop.
90 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
91 Sebastian Pop <s.pop@samsung.com>
93 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
94 Discard unstructured if-then-else regions.
96 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
97 Sebastian Pop <s.pop@samsung.com>
99 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
100 (cleanup_loop_iter_dom): Remove.
101 (build_loop_iteration_domains): Remove.
102 (build_scop_context): Remove.
103 (build_scop_iteration_domain): Remove.
104 (add_loop_constraints): New.
105 (build_iteration_domains): New.
106 (build_poly_scop): Call build_iteration_domains.
108 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
109 Sebastian Pop <s.pop@samsung.com>
111 * graphite-scop-detection.c
112 (scop_detection::harmful_loop_in_region): Free dom and loops.
113 (scop_detection::loop_body_is_valid_scop): Free bbs.
115 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
116 Sebastian Pop <s.pop@samsung.com>
118 * graphite-scop-detection.c (record_loop_in_sese): New.
119 (gather_bbs::before_dom_children): Call record_loop_in_sese.
120 (build_scops): Remove call to build_sese_loop_nests.
121 * sese.c (sese_record_loop): Remove.
122 (build_sese_loop_nests): Remove.
123 (new_sese_info): Remove region->loops.
124 (free_sese_info): Same.
125 * sese.h (sese_contains_loop): Same.
126 (build_sese_loop_nests): Remove.
127 (sese_contains_loop): Remove.
129 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
130 Sebastian Pop <s.pop@samsung.com>
132 * graphite-scop-detection.c (loop_is_valid_scop): Renamed loop_is_valid_in_scop.
133 (scop_detection::harmful_stmt_in_region): Renamed harmful_loop_in_region.
134 Call loop_is_valid_in_scop.
136 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
137 Sebastian Pop <s.pop@samsung.com>
139 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
142 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
143 Sebastian Pop <s.pop@samsung.com>
145 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
146 * graphite.h (struct poly_bb): Remove field is_reduction.
147 (PBB_IS_REDUCTION): Remove.
149 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
150 Sebastian Pop <s.pop@samsung.com>
152 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
153 (add_pdr_constraints): Same.
154 (scop_get_reads): Same.
155 (scop_get_must_writes): Same.
156 (scop_get_may_writes): Same.
157 (scop_get_original_schedule): Same.
158 (extend_schedule): Same.
159 (apply_schedule_on_deps): Same.
160 (carries_deps): Same.
161 (compute_deps): Same.
162 (scop_get_dependences): Same.
163 * graphite-isl-ast-to-gimple.c
164 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
165 * graphite-optimize-isl.c (get_schedule_for_band): Same.
166 (get_schedule_for_band_list): Same.
167 (get_schedule_map): Same.
168 (apply_schedule_map_to_scop): Same.
169 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
170 (build_loop_iteration_domains): Same.
171 (add_condition_to_pbb): Same.
172 (add_param_constraints): Same.
173 (pdr_add_memory_accesses): Same.
174 (pdr_add_data_dimensions): Same.
176 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
178 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
181 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
183 * common.opt (feliminate-dwarf2-dups): Replace references to
184 "DWARF 2" with just "DWARF".
185 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
186 * doc/extend.texi: Likewise.
187 * doc/cpp.texi: Likewise.
188 * doc/invoke.texi: Likewise.
189 (Option Summary): Add -gdwarf to list of Debugging Options.
190 (Debugging Options): Document -gdwarf.
191 * doc/contrib.texi: Spell "DWARF" like that.
193 2016-01-21 Jakub Jelinek <jakub@redhat.com>
195 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
196 warning. Fix up formatting.
199 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
200 attempt to mark memory input operand addressable and
201 call prepare_gimple_addressable in that case. Don't adjust
202 input_location for diagnostics, use error_at instead.
204 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
206 * config/rs6000/ppc-auxv.h: New file.
207 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
209 (cpu_supports): Likewise.
210 * config/rs6000/rs6000.c: include "ppc-auxv.h".
211 (cpu_is_info): New variable.
212 (cpu_supports_info): Likewise.
213 (tcb_verification_symbol): Likewise.
214 (cpu_builtin_p): Likewise.
215 (cpu_expand_builtin): New function.
216 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
217 (rs6000_init_builtins): Likewise.
218 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
219 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
220 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
221 * configure: Regenerate.
222 * config.in: Likewise.
223 * doc/extend.texi (PowerPC Built-in Functions): Document
224 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
226 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
229 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
231 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
234 2016-01-20 Richard Henderson <rth@redhat.com>
240 * tree.c (tm_define_builtin): New.
241 (find_tm_vector_type): New.
242 (build_tm_vector_builtins): New.
243 (build_common_builtin_nodes): Call it.
245 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
247 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
248 (arm_fp_ok): Likewise.
250 (arm_crypto): Likewise.
252 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
253 Richard Biener <rguenther@suse.de>
255 PR tree-optimization/69328
256 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
257 vectors have same number of elements.
258 (vectorizable_condition): Fix masked version recognition.
260 2016-01-20 Richard Biener <rguenther@suse.de>
262 PR tree-optimization/69345
263 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
264 (VN_INFO_PTR_INFO): Likewise.
265 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
266 info when it is equal between non-dominating SSA names.
267 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
268 Make sure to look at original SSA infos.
270 2016-01-20 Jeff Law <law@redhat.com>
273 * config/m68k/predicates.md (pow2_m1_operand): New predicate
275 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
276 (pc_or_label_operand): New predicate.
277 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
278 tests for small integers that are 2^n - 1.
280 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
282 * doc/invoke.texi (Options Summary): Add '.' after @xref.
284 2016-01-19 Jeff Law <law@redhat.com>
287 * tree-ssa-threadbackwards.c
288 (fsm_find_control_statement_thread_paths): Do not try to lookup
289 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
291 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
293 * doc/lto.texi: Remove text that says only Gold has linker plugin
296 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
298 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
299 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
301 (modified_type_die): Add REVERSE parameter and pass it recursively,
302 as well as to base_type_die. Adjust presence check accordingly.
303 (base_type_for_mode): Adjust call to modified_type_die.
304 (add_type_attribute): Add REVERSE parameter and pass it to
306 (generic_parameter_die): Adjust call to add_type_attribute.
307 (add_scalar_info): Likewise.
308 (add_subscript_info): Likewise.
309 (gen_array_type_die): Likewise.
310 (gen_descr_array_type_die): Likewise.
311 (gen_entry_point_die): Likewise.
312 (gen_enumeration_type_die): Likewise.
313 (gen_formal_parameter_die): Likewise.
314 (gen_subprogram_die): Likewise.
315 (gen_variable_die ): Likewise.
316 (gen_const_die): Likewise.
317 (gen_field_die): Likewise.
318 (gen_pointer_type_die): Likewise.
319 (gen_reference_type_die): Likewise.
320 (gen_ptr_to_mbr_type_die): Likewise.
321 (gen_inheritance_die): Likewise.
322 (gen_subroutine_type_die): Likewise.
323 (gen_typedef_die): Likewise.
324 (force_type_die): Adjust call to modified_type_die.
326 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
328 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
329 flow throughout the file. Fix broken link to Objective-C 2.0
331 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
334 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
336 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
338 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
341 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
342 (maybe_record_node): Record cxa_pure_virtual as the only possible
343 target if there are not ohter candidates.
344 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
346 2016-01-19 Richard Biener <rguenther@suse.de>
348 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
349 (get_memory_order): Likewise.
351 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
353 * tree-vect-stmts.c (vectorizable_store): Check
356 2016-01-19 David Malcolm <dmalcolm@redhat.com>
359 * gcc.c (driver::decode_argv): Add call to
360 init_opts_obstack before init_options_struct.
361 * opts.c (init_opts_obstack): Remove idempotency.
362 (init_options_struct): Replace call to init_opts_obstack
363 with a gcc_assert to verify that it has already been called.
364 * toplev.c (toplev::main): Add call to init_opts_obstack before
365 calls to init_options_struct.
366 (toplev::finalize): Move cleanup of opts_obstack next to
367 cleanup of save_decoded_options, clearing the latter, and
368 save_decoded_options_count.
370 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
373 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
374 attribute to unconditional. Remove %? from output template.
376 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
377 Jiong Wang <jiong.wang@arm.com>
379 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
380 generated from different expand order.
382 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
384 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
385 Add support for CCMP costing.
387 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
389 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
390 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
391 (fccmpe<mode>): Likewise.
392 (fcmp): Rename to fcmp and globalize pattern.
394 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
395 (aarch64_gen_ccmp_next): Add FP support.
397 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
399 * target.def (gen_ccmp_first): Update documentation.
400 (gen_ccmp_next): Likewise.
401 * doc/tm.texi (gen_ccmp_first): Update documentation.
402 (gen_ccmp_next): Likewise.
403 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
404 expand_ccmp_expr_1. Improve comments.
405 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
406 (ccmp_ior<mode>): Remove pattern.
407 (cmp<mode>): Remove expand.
408 (cmp): Globalize pattern.
409 (cstorecc4): Use cc_register.
410 (mov<mode>cc): Remove ccmp_cc_register check.
411 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
412 Simplify after removal of CC_DNE/* modes.
413 (aarch64_ccmp_mode_to_code): Remove.
414 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
415 In 'k' case use integer as condition.
416 (aarch64_nzcv_codes): Remove inverted cases.
417 (aarch64_code_to_ccmode): Remove.
418 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
419 comparison with CC register to be used in folowing CCMP/branch/CSEL.
420 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
421 pattern. Return the comparison with CC register. Invert conditions
423 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
424 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
426 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
428 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
429 instrumented_version.
431 2016-01-19 Richard Biener <rguenther@suse.de>
433 PR tree-optimization/69336
434 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
435 handled components with get_ref_base_and_extent.
436 (equal_mem_array_ref_p): Adjust.
438 2016-01-19 Jakub Jelinek <jakub@redhat.com>
441 * shrink-wrap.c: Include valtrack.h.
442 (move_insn_for_shrink_wrap): Add DEBUG argument. If
443 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
444 in between insn and where it will be moved to. Call
445 dead_debug_insert_temp.
446 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
447 first and dead_debug_local_finish at the end.
448 For uses and defs bitmap, handle all regs in between REGNO and
449 END_REGNO, not just the first one.
451 2016-01-19 Richard Biener <rguenther@suse.de>
453 PR tree-optimization/69352
454 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
455 (equal_mem_array_ref_p): Constrain size and max size properly.
456 Compare the reverse flag.
458 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
460 * ira.c (ira): Update regstat data if we deleted insns.
462 2016-01-19 Jakub Jelinek <jakub@redhat.com>
464 PR rtl-optimization/68955
465 PR rtl-optimization/64557
466 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
467 here. Fix up formatting.
468 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
470 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
473 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
474 assume that the node has body.
475 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
478 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
480 * lto-streamer-out.c (lto_output): Do not stream instrumentation
483 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
485 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
486 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
488 2016-01-19 Martin Jambor <mjambor@suse.cz>
489 Martin Liska <mliska@suse.cz>
490 Michael Matz <matz@suse.de>
492 * Makefile.in (OBJS): Add new source files.
493 (GTFILES): Add hsa.c.
494 * common.opt (disable_hsa): New variable.
495 (-Whsa): New warning.
496 * config.in (ENABLE_HSA): New.
497 * configure.ac: Treat hsa differently from other accelerators.
498 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
500 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
501 * doc/install.texi (Configuration): Document --with-hsa-runtime,
502 --with-hsa-runtime-include, --with-hsa-runtime-lib and
504 * doc/invoke.texi (-Whsa): Document.
505 (hsa-gen-debug-stores): Likewise.
506 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
507 to invoke offload compiler for hsa acclerator.
508 * opts.c (common_handle_option): Determine whether HSA offloading
510 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
511 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
512 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
513 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
514 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
515 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
516 GF_OMP_FOR_KIND_GRID_LOOP.
517 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
518 (pp_gimple_stmt_1): Likewise.
519 * gimple-walk.c (walk_gimple_stmt): Likewise.
520 * gimple.c (gimple_build_omp_grid_body): New function.
521 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
522 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
523 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
524 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
525 GF_OMP_TEAMS_GRID_PHONY.
526 (gimple_statement_omp_single_layout): Updated comments.
527 (gimple_build_omp_grid_body): New function.
528 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
529 (gimple_omp_for_grid_phony): New function.
530 (gimple_omp_for_set_grid_phony): Likewise.
531 (gimple_omp_parallel_grid_phony): Likewise.
532 (gimple_omp_parallel_set_grid_phony): Likewise.
533 (gimple_omp_teams_grid_phony): Likewise.
534 (gimple_omp_teams_set_grid_phony): Likewise.
535 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
536 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
537 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
538 (BUILT_IN_GOMP_TARGET): Updated type.
539 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
540 (adjust_for_condition): New function.
541 (get_omp_for_step_from_incr): Likewise.
542 (extract_omp_for_data): Moved parts to adjust_for_condition and
543 get_omp_for_step_from_incr.
544 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
545 (fixup_child_record_type): Bail out if receiver_decl is NULL.
546 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
547 (scan_omp_parallel): Do not create child functions for phony
549 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
550 (scan_omp_1_op): Checking assert we are not remapping to
551 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
552 (parallel_needs_hsa_kernel_p): New function.
553 (expand_parallel_call): Register apprpriate parallel child
554 functions as HSA kernels.
555 (grid_launch_attributes_trees): New type.
556 (grid_attr_trees): New variable.
557 (grid_create_kernel_launch_attr_types): New function.
558 (grid_insert_store_range_dim): Likewise.
559 (grid_get_kernel_launch_attributes): Likewise.
560 (get_target_argument_identifier_1): Likewise.
561 (get_target_argument_identifier): Likewise.
562 (get_target_argument_value): Likewise.
563 (push_target_argument_according_to_value): Likewise.
564 (get_target_arguments): Likewise.
565 (expand_omp_target): Call get_target_arguments instead of looking
566 up for teams and thread limit.
567 (grid_expand_omp_for_loop): New function.
568 (grid_arg_decl_map): New type.
569 (grid_remap_kernel_arg_accesses): New function.
570 (grid_expand_target_kernel_body): New function.
571 (expand_omp): Call it.
572 (lower_omp_for): Do not emit phony constructs.
573 (lower_omp_taskreg): Do not emit phony constructs but create for them
574 a temporary variable receiver_decl.
575 (lower_omp_taskreg): Do not emit phony constructs.
576 (lower_omp_teams): Likewise.
577 (lower_omp_grid_body): New function.
578 (lower_omp_1): Call it.
579 (grid_reg_assignment_to_local_var_p): New function.
580 (grid_seq_only_contains_local_assignments): Likewise.
581 (grid_find_single_omp_among_assignments_1): Likewise.
582 (grid_find_single_omp_among_assignments): Likewise.
583 (grid_find_ungridifiable_statement): Likewise.
584 (grid_target_follows_gridifiable_pattern): Likewise.
585 (grid_remap_prebody_decls): Likewise.
586 (grid_copy_leading_local_assignments): Likewise.
587 (grid_process_kernel_body_copy): Likewise.
588 (grid_attempt_target_gridification): Likewise.
589 (grid_gridify_all_targets_stmt): Likewise.
590 (grid_gridify_all_targets): Likewise.
591 (execute_lower_omp): Call grid_gridify_all_targets.
592 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
593 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
594 (tree_omp_clause): Added union field dimension.
595 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
596 * tree.c (omp_clause_num_ops): Added number of arguments of
597 OMP_CLAUSE__GRIDDIM_.
598 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
599 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
600 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
601 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
602 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
603 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
604 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
605 * tree-pass.h (make_pass_gen_hsail): Declare.
606 (make_pass_ipa_hsa): Likewise.
607 * ipa-hsa.c: New file.
608 * lto-section-in.c (lto_section_name): Add hsa section name.
609 * lto-streamer.h (lto_section_type): Add hsa section.
610 * timevar.def (TV_IPA_HSA): New.
611 * hsa-brig-format.h: New file.
612 * hsa-brig.c: New file.
613 * hsa-dump.c: Likewise.
614 * hsa-gen.c: Likewise.
617 * toplev.c (compile_file): Call hsa_output_brig.
618 * hsa-regalloc.c: New file.
620 2016-01-18 Jeff Law <law@redhat.com>
622 PR tree-optimization/69320
623 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
624 ranged object, do nothing if the RHS constant is not [0..1].
625 (optimize_stmt): Comparing a boolean ranged object against a
626 constant outside [0..1] results in a compile-time constant.
628 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
631 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
633 * doc/invoke.texi (Invoking GCC): Add new section to menu.
634 (Option Summary): Update to reflect new section and moved options.
635 (C++ Dialect Options): Move -fstats to new section.
636 (Debugging Options): Move all dump, statistics, and other GCC
637 developer options to new section. Rewrite section introduction
638 and re-order remaining options to put the more basic ones first.
639 (Optimization Options): Move -fira-verbose and -flto-report* to
641 (Developer Options): New section incorporating moved options.
642 * doc/cppopts.texi (-dM): Update cross-reference.
644 2016-01-18 Richard Henderson <rth@redhat.com>
647 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
648 operands to pseudo only if CSE is expected. Split long immediate
649 operands only after reload, and for the stack pointer.
650 (*add<GPI>3_pluslong): Remove.
651 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
652 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
653 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
654 (*add<GPI>3 peepholes): New.
655 (*add<GPI>3 splitters): New.
656 * config/aarch64/constraints.md (Upl): New.
657 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
659 2016-01-18 Richard Biener <rguenther@suse.de>
661 PR tree-optimization/69297
662 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
664 (vect_bb_vectorization_profitable_p): Clear visited flag again.
666 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
669 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
670 of mixind vector and scalar types.
671 (fold_relational_const): Add handling of vector
672 comparison with boolean result.
673 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
674 comparison of vector operands with boolean result for EQ/NE only.
675 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
676 (verify_gimple_cond): Likewise.
677 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
680 2016-01-18 Joseph Myers <joseph@codesourcery.com>
682 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
685 2016-01-18 Richard Biener <rguenther@suse.de>
688 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
690 2016-01-18 Tom de Vries <tom@codesourcery.com>
692 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
694 2016-01-18 Tom de Vries <tom@codesourcery.com>
696 * omp-low.c (set_oacc_fn_attrib): Make extern.
697 * omp-low.h (set_oacc_fn_attrib): Declare.
698 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
699 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
700 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
701 Add and handle function parameter oacc_kernels_p.
702 (find_reduc_addr, get_omp_data_i_param): New function.
703 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
704 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
705 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
706 Calculate dominance info. Skip loops that are not in a kernels region
707 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
708 (pass_parallelize_loops::execute): Call parallelize_loops with
709 oacc_kernels_p argument.
710 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
712 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
713 * passes.def: Add argument to pass_parallelize_loops instantation.
715 2016-01-18 Tom de Vries <tom@codesourcery.com>
717 * tree-parloops.c (pass_parallelize_loops::execute): Allow
718 pass_parallelize_loops to be run outside the loop pipeline.
720 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
722 * tree-scalar-evolution.c (follow_copies_to_constant): New.
723 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
725 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
728 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
729 using get_ref_base_and_extent.
730 (equal_mem_array_ref_p): New.
731 (hashable_expr_equal_p): Add call to previous.
733 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
736 * tree-sra.c (disqualified_constants, constant_decl_p): New.
737 (sra_initialize): Allocate disqualified_constants.
738 (sra_deinitialize): Free disqualified_constants.
739 (disqualify_candidate): Update disqualified_constants when appropriate.
740 (create_access): Scan for constant-pool entries as we go along.
741 (scalarizable_type_p): Add check against type_contains_placeholder_p.
742 (maybe_add_sra_candidate): Allow constant-pool entries.
743 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
744 (initialize_constant_pool_replacements): New.
745 (sra_modify_assign): Avoid mangling assignments created by previous,
746 and don't generate writes into constant pool.
747 (sra_modify_function_body): Call initialize_constant_pool_replacements.
749 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
751 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
753 (scalar_chain::convert_op): Likewise.
754 * config/i386/i386.md (*andndi3_doubleword): New.
756 2016-01-18 Richard Biener <rguenther@suse.de>
758 PR tree-optimization/69170
759 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
760 building a vector from scalar results of a pattern stmt.
762 2016-01-18 Jakub Jelinek <jakub@redhat.com>
764 * haifa-sched.c (autopref_multipass_init): Work around
765 -Wmaybe-uninitialized warning.
767 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
769 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
770 against the constant 0.
772 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
774 PR tree-optimization/68799
775 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
776 look up phi candidates in the statement-candidate map.
777 (phi_add_costs): Likewise.
778 (record_phi_increments): Likewise.
779 (phi_incr_cost): Likewise.
780 (ncd_with_phi): Likewise.
781 (all_phi_incrs_profitable): Likewise.
783 2016-01-17 Jakub Jelinek <jakub@redhat.com>
785 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
786 -Wmaybe-uninitialized warning.
788 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
790 * doc/invoke.texi (Invoking GCC): Add new section to menu.
791 (Option Summary): Update to reflect new section and moved options.
792 (C++ Dialect Options): Move -fvtable-verify and related options.
793 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
794 and profiling-related options.
795 (Optimization Options): Move profile generation options and
796 -fstack-protector and related options.
797 (Instrumentation Options): New section incorporating moved options.
798 (Code Generation Options): Move -finstrument-functions and
799 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
801 2016-01-16 Tom de Vries <tom@codesourcery.com>
803 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
805 2016-01-16 Tom de Vries <tom@codesourcery.com>
807 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
809 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
811 * hash-table.h (hash_table::empty): Turn into an inline wrapper
812 that checks whether the table is already empty. Rename the
813 original implementation to...
814 (hash_table::empty_slot): ...this new private function.
816 2016-01-15 David Malcolm <dmalcolm@redhat.com>
819 * diagnostic-show-locus.c (layout::print_source_line): Move x
820 offset of line until after call to
821 get_line_width_without_trailing_whitespace.
823 2016-01-15 Jeff Law <law@redhat.com>
825 PR tree-optimization/69270
826 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
827 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
828 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
829 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
830 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
831 ssa_name_has_boolean_range and constant_boolean_node.
833 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
835 PR rtl-optimization/69030
836 * lra-spills.c (remove_pseudos): Check nrefs and make the function
838 (spill_pseudos): Delete debug insn for dead pseudo.
839 (lra_spill): Initiate spill_hard_reg and slots memory separately.
841 2016-01-15 Jiong Wang <jiong.wang@arm.com>
843 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
845 (TYPES_UNOPUS): Likewise.
846 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
847 builtin type, from UNOP to UNOPUS.
848 (lbtruncuv4sf): Likewise.
849 (lbtruncuv2df): Likewise.
850 (lrounduv2sf): Likewise.
851 (lrounduv4sf): Likewise.
852 (lrounduv2df): Likewise.
853 (lroundusf): Likewise.
854 (lroundusf): Likewise.
855 (lceiluv2sf): Likewise.
856 (lceiluv4sf): Likewise.
857 (lceiluv2df): Likewise.
858 (lceilusf): Likewise.
859 (lceiludf): Likewise.
860 (lflooruv2sf): Likewise.
861 (lflooruv4sf): Likewise.
862 (lflooruv2df): Likewise.
863 (lfloorusf): Likewise.
864 (lfloorudf): Likewise.
865 (lfrintnuv2sf): Likewise.
866 (lfrintnuv4sf): Likewise.
867 (lfrintnuv2df): Likewise.
868 (lfrintnusf): Likewise.
869 (lfrintnudf): Likewise.
870 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
872 (vcvtq_u32_f32): Likewise.
873 (vcvtq_u64_f64): Likewise.
874 (vcvta_u32_f32): Likewise.
875 (vcvtaq_u32_f32): Likewise.
876 (vcvtaq_u64_f64): Likewise.
877 (vcvtm_u32_f32): Likewise.
878 (vcvtmq_u32_f32): Likewise.
879 (vcvtmq_u64_f64): Likewise.
880 (vcvtn_u32_f32): Likwise.
881 (vcvtnq_u32_f32): Likewise.
882 (vcvtnq_u64_f64): Likewise.
883 (vcvtp_u32_f32): Likewise.
884 (vcvtpq_u32_f32): Likewise.
885 (vcvtpq_u64_f64): Likewise.
886 (vcvtmd_u64_f64): Likewise.
887 (vcvtms_u32_f32): Likewise.
888 (vcvtad_u64_f64): Likewise.
889 (vcvtas_u32_f32): Likewise.
890 (vcvtnd_u64_f64): Likewise.
891 (vcvtns_u32_f32): Likewise.
892 (vcvtpd_u64_f64): Likewise.
893 (vcvtps_u32_f32): Likewise.
895 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
897 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
898 CSEL of zero_extended registers.
900 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
902 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
903 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
905 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
907 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
908 false when argument string is not found in the attributes table
911 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
914 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
915 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
916 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
919 2016-01-15 Richard Biener <rguenther@suse.de>
921 PR tree-optimization/66856
922 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
923 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
924 (vect_create_new_slp_node): Increment stmt reference count.
925 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
926 an SLP tree before swapping operands.
927 (vect_build_slp_tree): Likewise.
928 (destroy_bb_vec_info): Free stmt info after SLP instances.
929 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
930 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
931 (STMT_VINFO_NUM_SLP_USES): New macro.
933 2016-01-15 Richard Biener <rguenther@suse.de>
936 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
937 (add_linkage_name): ... here.
938 (gen_typedef_die): Use add_linkage_name_raw instead of
939 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
942 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
944 * gimplify.c (oacc_default_clause): Decode reference and pointer
945 types for both kernels and parallel regions.
947 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
950 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
952 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
954 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
955 (convert_scalars_to_vector): Likewise.
957 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
959 * doc/extend.texi (Type Traits): Fix grammar.
961 2016-01-15 Martin Jambor <mjambor@suse.cz>
963 * tree-inline.c (remap_decl): Use existing dclarations if
964 remapping a type and prevent_decl_creation_for_types.
965 (replace_locals_stmt): Do an initial remapping of non-VLA typed
966 decls first. Do real remapping with
967 prevent_decl_creation_for_types set.
968 * tree-inline.h (copy_body_data): New field
969 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
972 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
974 * config/s390/s390.opt (mmvcle): More verbose help text.
976 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
978 * config/s390/s390.opt: Add period to -mzvector option text.
980 2016-01-15 Richard Biener <rguenther@suse.de>
982 PR tree-optimization/68961
983 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
984 of invariants in stores again.
986 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
988 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
990 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
992 * config/i386/i386.c (ix86_expand_branch): Don't split
993 DI mode xor instruction to SI mode.
995 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
998 * ipa-icf.c (sem_function::merge): Virtual functions may become
999 reachable even if they address is not taken and there are no
1002 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
1004 * lto-streamer-out.c (subtract_estimated_size): New function.
1005 (get_symbol_initial_value): Use it.
1007 2016-01-15 Christian Bruel <christian.bruel@st.com>
1010 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
1011 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
1012 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
1013 use add_builtin_function_ext_scope instead of add_builtin_function.
1014 (neon_set_p, neon_crypto_set_p): Remove.
1015 (arm_init_builtins): Always call arm_init_neon_builtins and
1016 arm_init_crypto_builtins.
1017 (arm_expand_builtin): Check that builtins are allowed for the arch.
1018 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
1019 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
1020 arm_init_neon_builtins call.
1022 2016-01-15 Richard Biener <rguenther@suse.de>
1024 PR tree-optimization/69117
1025 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
1026 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
1027 of the leader conservatively.
1028 (free_scc_vn): Restore original SSA name infos.
1030 2016-01-14 Jeff Law <law@redhat.com>
1032 PR tree-optimization/69270
1033 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
1034 single bit of precision, verify it's also unsigned.
1035 (record_edge_info): Use constant_boolean_node rather than fold_convert
1036 to convert boolean_true/boolean_false to the right type.
1038 2016-01-14 Richard Henderson <rth@redhat.com>
1041 * loop-doloop.c (record_reg_sets): New.
1042 (doloop_optimize): Reject the transform if the sequence
1043 clobbers registers live at the end of the loop block.
1044 (doloop_optimize_loops): Enable df_live if needed.
1046 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1048 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
1049 * gcc/config/rs6000/rs6000.c: Likewise.
1050 * gcc/config/rs6000/rs6000.h: Likewise.
1051 * gcc/config/rs6000/rs6000.md: Likewise.
1052 * gcc/doc/extend.texi: Likewsie.
1054 2016-01-14 Jeff Law <law@redhat.com>
1056 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
1059 2016-01-14 Richard Henderson <rth@redhat.com>
1063 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
1064 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
1065 instead of builtin_decl_declared_p to test for declaration.
1067 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
1069 * doc/loop.texi (Loop Analysis and Representation): Document
1070 loop_depth function.
1072 2016-01-14 Tom de Vries <tom@codesourcery.com>
1074 PR tree-optimization/68773
1075 * omp-low.c (expand_omp_target): Don't set force_output.
1076 * varpool.c (varpool_node::get_create): Same.
1077 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
1078 offload_funcs with force_output.
1080 2016-01-14 Jakub Jelinek <jakub@redhat.com>
1083 * lra-eliminations.c (move_plus_up): Don't change anything if either
1084 the outer or inner subreg mode is not MODE_INT.
1085 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
1086 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
1088 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
1090 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
1091 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
1092 reduc_uplus_@var{m}): Remove.
1093 * expr.c (expand_expr_real_2): Remove expansion path for
1094 reduc_[us](min|max|plus) optabs.
1095 * optabs-tree.c (scalar_reduc_to_vector): Remove.
1096 * optabs-tree.h (scalar_reduc_to_vector): Remove.
1097 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
1098 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
1099 * tree-vect-loop.c (vectorizable_reduction): Remove test for
1100 reduc_[us](min|max|plus) optabs.
1102 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
1104 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
1105 (reduc_plus_scal_v2sf): New.
1106 (reduc_smax_v2sf): Rename to...
1107 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
1108 (reduc_smin_v2sf): Rename to...
1109 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
1111 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
1113 * alias.c (compare_base_symbol_refs): New function.
1114 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
1117 2016-01-14 Jakub Jelinek <jakub@redhat.com>
1120 PR tree-optimization/69155
1121 * tree-complex.c: Include cfganal.h.
1122 (phis_to_revisit): New variable.
1123 (extract_component): Add phiarg_p argument. Assert that returned
1124 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
1125 (update_phi_components): Partly rewrite to use loop over real/imag
1126 components instead of code duplication. If extract_component returns
1127 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
1128 create_tmp_reg into the PHI node instead, and mention the phi triplet
1130 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
1131 in phis_to_revisit at the end.
1133 2016-01-14 Richard Biener <rguenther@suse.de>
1135 PR tree-optimization/68060
1136 * tree-vect-loop.c (vect_is_simple_reduction): Check the
1137 outer loop reduction is only used in the inner loop before
1138 detecting a double reduction.
1140 2016-01-14 Jakub Jelinek <jakub@redhat.com>
1143 * combine.c (expand_field_assignment): Punt if compute_mode is
1144 unsupported scalar mode.
1146 2016-01-14 Richard Biener <rguenther@suse.de>
1148 PR tree-optimization/66856
1149 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
1150 SLP node only if it built successfully.
1151 (vect_analyze_slp_instance): Adjust.
1153 2016-01-14 Jeff Law <law@redhat.com>
1155 PR tree-optimization/69270
1156 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
1157 (record_edge_info): Use it. Convert boolean_{true,false}_node
1160 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
1163 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
1164 use block_ultimate_origin
1165 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
1167 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
1169 * doc/invoke.texi (Submodel Options): Rename section to
1170 "Machine-Dependent Options" to better reflect its content.
1171 Rewrite introductory text to remove archaic CPU names.
1174 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
1176 * doc/invoke.texi (Code Gen Options): Move section up in file,
1177 before target-specific options. Update menu and option summary
1178 to reflect the new section ordering.
1180 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
1182 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
1183 (C++ Dialect Options): Add cross-reference to -std option.
1184 * doc/standards.texi (C++ Language): Document C++14 support.
1186 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1188 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
1189 for pack/unpack functions for __ibm128.
1190 (PACK_IF): Likewise.
1191 (UNPACK_IF): Likewise.
1193 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
1194 support for __ibm128 pack/unpack functions.
1195 (rs6000_invalid_builtin): Likewise.
1196 (rs6000_init_builtins): Likewise.
1197 (rs6000_opt_masks): Likewise.
1199 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
1200 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
1202 (RS6000_BTM_COMMON): Likewise.
1204 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
1205 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
1206 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
1207 128-bit floating point. Add support for the double values to be
1208 in Altivec registers for TF/IF packing and unpacking, but restrict
1209 TD packing sub-fields to be FPR registers. Don't allow overlapped
1210 register support for packing. Allow pack inputs to be memory
1211 locations. Don't build generator functions for unpack<mode>_dm
1212 and unpack<mode>_nodm.
1213 (unpack<mode>_dm): Likewise.
1214 (unpack<mode>_nodm): Likewise.
1215 (pack<mode>): Likewise.
1217 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
1218 built-in functions to pack/unpack explicit __ibm128 values.
1219 (__builtin_unpack_ibm128): Likewise.
1221 * doc/extend.texi (PowerPC Built-in Functions): Document
1222 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
1224 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
1227 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
1228 Add new arg loc and pass it down as context.
1229 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
1230 to the location to use for the warning.
1231 (check_function_arguments): New arg loc. All callers changed. Pass
1232 it to check_function_nonnull.
1233 * c-common.h (check_function_arguments): Adjust declaration.
1235 2016-01-13 Jakub Jelinek <jakub@redhat.com>
1237 PR tree-optimization/69156
1238 * gimple.c (validate_type): Removed.
1239 (gimple_builtin_call_types_compatible_p): Use
1240 useless_type_conversion_p instead of validate_type.
1241 * value-prof.c (gimple_stringop_fixed_value): Fold
1242 icall_size to correct type.
1244 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
1246 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
1249 2016-01-13 Richard Henderson <rth@redhat.com>
1252 * target.def (builtin_tm_load, builtin_tm_store): Remove.
1253 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
1254 (ix86_builtin_tm_store): Remove.
1255 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
1256 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
1257 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
1258 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
1259 * doc/tm.texi: Rebuild.
1261 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
1262 (BUILT_IN_TM_MEMCPY_RTWN): New.
1263 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
1264 fallback from vector to integer helpers.
1265 (build_tm_load): Handle vector types directly, instead of
1267 (build_tm_store): Likewise.
1268 (expand_assign_tm): Prepare for register types not handled by
1269 the above. Copy them to memory and use memcpy.
1270 * tree.c (tm_define_builtin): New.
1271 (find_tm_vector_type): New.
1272 (build_tm_vector_builtins): New.
1273 (build_common_builtin_nodes): Call it.
1275 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
1277 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
1278 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
1280 2016-01-13 Tom de Vries <tom@codesourcery.com>
1282 PR tree-optimization/69169
1283 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
1284 handled_struct_type param.
1285 (create_variable_info_for, intra_create_variable_infos): Call
1286 create_variable_info_for_1 with extra arg.
1288 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
1290 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
1291 and "armv8.1-a+crc" entries.
1293 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
1296 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
1297 Change first operand predicate from register_or_constm1_operand
1298 to register_operand.
1299 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
1300 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
1301 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
1302 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
1303 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
1304 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
1305 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
1306 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
1307 comparison with constm1_rtx from vec_prefetch_gen part.
1309 2016-01-13 Richard Biener <rguenther@suse.de>
1311 PR tree-optimization/69013
1312 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
1313 Exchange assert for a test.
1315 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1318 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
1320 2016-01-13 Richard Biener <rguenther@suse.de>
1322 PR tree-optimization/69242
1323 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
1324 assert with a check.
1326 2016-01-13 Richard Biener <rguenther@suse.de>
1328 PR tree-optimization/69186
1329 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1330 Properly guard vect_update_misalignment_for_peel call.
1332 2016-01-12 Jeff Law <law@redhat.com>
1334 PR tree-optimization/pr67755
1335 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
1336 "need_profile_correction".
1337 (thread_block_1): Initialize new field to false by default. If we
1338 have multiple thread paths through a common joiner to different
1339 final targets, then set new field to true.
1340 (compute_path_counts): Only do count adjustment when it's really
1343 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
1345 * doc/invoke.texi (Spec Files): Move section down in file, past
1346 all command-line option descriptions.
1348 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1351 * doc/gty.texi: Remove documentation of mark_hook.
1352 * gengtype.c (struct write_types_data): Remove code to support
1353 mark_hook attribute.
1354 (walk_type): Likewise.
1355 (write_func_for_structure): Likewise.
1357 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
1359 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
1360 Directory Options, and -specs= to Overall Options.
1361 (Overall Options): Adjust similarly. Reorder to group related
1362 options together. Make -specs= cross-reference the spec file details.
1363 (Directory Options): Adjust similarly.
1365 2016-01-12 Jeff Law <law@redhat.com>
1367 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
1369 2016-01-12 Olivier Hainque <hainque@adacore.com>
1371 * gcc.c (spec_undefvar_allowed): New global.
1372 (process_command): Set to true when running for --version or --help,
1374 (getenv_spec_function): When the variable is not defined, use the
1375 variable name as the variable value if we're allowed not to issue
1378 2016-01-12 Bin Cheng <bin.cheng@arm.com>
1380 PR tree-optimization/68911
1381 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
1382 information computed for expression "init + nit * step".
1384 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
1386 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
1387 about name of GCC executable. Remove deleted node from menu.
1388 (Directory Options) <-B>: Remove cross-reference to deleted node.
1389 (Target Options): Delete section.
1391 2016-01-12 Christian Bruel <christian.bruel@st.com>
1394 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
1395 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
1397 2016-01-12 Jakub Jelinek <jakub@redhat.com>
1400 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
1401 aligned_mem is properly set for AVX512-VL floating point masked
1405 * ifcvt.c (cond_exec_process_if_block): When removing the last
1406 insn from then_bb, remove also any possible barriers that follow it.
1408 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
1412 * config/i386/iamcu.h (SIZE_TYPE): New macro.
1413 (PTRDIFF_TYPE): Likewise.
1414 (WCHAR_TYPE): Likewise.
1415 (WCHAR_TYPE_SIZE): Likewise.
1416 (STDINT_LONG32): Likewise.
1418 2016-01-12 Richard Biener <rguenther@suse.de>
1420 PR tree-optimization/69053
1421 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
1422 convert initial value for cond reductions.
1424 2016-01-12 Richard Biener <rguenther@suse.de>
1426 PR tree-optimization/69007
1427 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
1428 widen_sum after dot_prod and sad.
1430 2016-01-12 Richard Biener <rguenther@suse.de>
1432 PR tree-optimization/69168
1433 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
1434 pattern stmt SLP type.
1435 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
1436 end up unused so cope with that case.
1438 2016-01-12 Richard Biener <rguenther@suse.de>
1440 PR tree-optimization/69157
1441 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1442 stmts def type only during analyze phase.
1443 (vectorizable_call): Likewise.
1444 (vectorizable_simd_clone_call): Likewise.
1445 (vectorizable_conversion): Likewise.
1446 (vectorizable_assignment): Likewise.
1447 (vectorizable_shift): Likewise.
1448 (vectorizable_operation): Likewise.
1449 (vectorizable_store): Likewise.
1450 (vectorizable_load): Likewise.
1452 2016-01-12 Richard Biener <rguenther@suse.de>
1454 PR tree-optimization/69174
1455 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
1457 (vectorizable_load): Properly compute the number of loads needed
1458 for permuted strided SLP loads and do not spuriously assign
1459 to SLP_TREE_VEC_STMTS.
1461 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
1463 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
1464 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
1465 (MD_EXEC_PREFIX): Remove.
1466 (MD_STARTFILE_PREFIX) Removee.
1467 (FILE_NAME_ABSOLUTE_P): Remove.
1468 (CPP_SPEC): Do not read macros from sys/version.h.
1469 (LINK_COMMAND_SPEC): Remove.
1470 (LOCAL_INCLUDE_DIR): Remove.
1471 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
1472 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
1473 (POST_LINK_SPEC): Define to invoke stubify after linker
1474 (LIBSTDCXX): Remove define
1475 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
1476 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
1477 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
1478 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
1479 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
1480 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
1481 (i386_djgpp_asm_named_section): Add propotype of new procedure
1483 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
1484 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
1485 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX in config/i386/djgpp.h).
1486 (STANDARD_STARTFILE_PREFIX_2): Define identical to STANDARD_STARTFILE_PREFIX_1.
1487 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
1488 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal installation errors.
1489 (MAX_OFILE_ALIGNMENT): Define to 128.
1490 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
1492 * config/i386/djgpp.c: New file. Add implementation of i386_djgpp_asm_named_section.
1494 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
1496 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
1497 Add rule for building djgpp.o.
1499 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1501 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
1502 (rtx_is_swappable_p): Reductions are swappable.
1503 (insn_is_swappable_p): V2DF reductions are swappable.
1505 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
1507 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
1508 reloads for other unsupported memory operands.
1510 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1511 Jim Wilson <jim.wilson@linaro.org>
1514 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
1515 copy_to_mode_reg instead of force_reg.
1517 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
1520 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
1521 TARGET_80387 is true.
1523 2016-01-11 Jakub Jelinek <jakub@redhat.com>
1526 * lra-eliminations.c (move_plus_up): Only move plus up
1527 if subreg of the constant can be simplified into constant
1528 and use the simplified subreg of the constant instead of
1529 the original constant.
1531 * fold-const.c (fold_convertible_p): Don't return true
1532 for conversion of VECTOR_TYPE to same sized integral type.
1533 (fold_convert_loc): Fix up formatting. Fold conversion of
1534 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
1535 instead of NOP_EXPR.
1537 PR tree-optimization/69214
1538 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
1539 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1542 PR tree-optimization/69207
1543 * tree-vect-slp.c (vect_get_constant_vectors): For
1544 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
1545 fold_convertible_p to vector_type's element type, and always
1546 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
1548 2016-01-11 Richard Biener <rguenther@suse.de>
1550 PR tree-optimization/69173
1551 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
1552 fixup the cycle if all stmts are in a pattern.
1554 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
1557 * alias.c (base_alias_check): Move check for addresses with
1558 alignment ANDs before the call for compare_base_decls.
1559 (memrefs_conflict_p): Return -1 for different decls
1560 that went through alignment adjustments.
1562 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1564 PR rtl-optimization/68796
1565 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
1566 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
1567 and QImode comparisons against zero with CC_NZmode.
1568 * config/aarch64/iterators.md (short_mask): New mode_attr.
1570 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
1572 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
1573 (<avx512>_store<mode>_mask): Likewise.
1575 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
1576 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1578 PR rtl-optimization/68841
1579 * ifcvt.c (struct noce_if_info): Add orig_x field.
1580 (bbs_ok_for_cmove_arith): Add to_rename parameter.
1581 Don't record conflicts on to_rename if it's present.
1582 Allow memory destinations in sets.
1583 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
1584 blocks, passing orig_x to the checks.
1585 (noce_process_if_block): Set if_info->orig_x appropriately.
1587 2016-01-11 Tom de Vries <tom@codesourcery.com>
1589 PR tree-optimization/69069
1590 * tree-parloops.c (create_parallel_loop): Add missing phi args.
1592 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
1594 PR rtl-optimization/68920
1595 * config/i386/i386.c (ix86_option_override_internal): Restrict number
1596 of conditional moves for RTL if-conversion to 1 for
1597 TARGET_ONE_IF_CONV_INSN.
1598 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
1599 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
1600 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
1601 parameter to restirct number of conditional moves for
1603 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
1604 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
1607 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
1610 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
1611 onepart vars. Fix typo in comment. Fix reversed condition in
1613 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
1616 * var-tracking.c (dump_onepart_variable_differences): New.
1617 (dataflow_set_different): If a detailed dump is requested,
1618 delay early returns and dump differences between onepart
1619 variables present before and after, and added variables.
1621 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1624 * expr.c (expand_expr_real_1): For boolean vector constants
1625 with a scalar mode use const_scalar_mask_from_tree.
1626 (const_scalar_mask_from_tree): New.
1627 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
1628 assigned to a mask type to handle constants.
1630 2016-01-11 Martin Jambor <mjambor@suse.cz>
1633 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
1634 useless parameters if we cannot change function signature.
1636 2016-01-11 Martin Jambor <mjambor@suse.cz>
1639 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
1642 2016-01-11 Tom de Vries <tom@codesourcery.com>
1644 PR tree-optimization/69109
1645 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
1648 2016-01-11 Tom de Vries <tom@codesourcery.com>
1650 PR tree-optimization/69108
1651 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
1652 res is not used in a phi.
1654 2016-01-11 Yury Gribov <y.gribov@samsung.com>
1657 * common.opt (frandom-seed): Fix parameter name.
1658 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
1660 2016-01-11 Tom de Vries <tom@codesourcery.com>
1662 PR tree-optimization/69058
1663 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
1666 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
1668 * config/arc/arc.opt (mdiv-rem): Add period to the end.
1669 (mcode-density): Likewise.
1671 2016-01-10 Tom de Vries <tom@codesourcery.com>
1673 PR tree-optimization/69062
1674 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
1675 (parallelize_loops): Don't paralelize loop that has phi with address
1678 2016-01-10 Tom de Vries <tom@codesourcery.com>
1680 PR tree-optimization/69039
1681 * tree-parloops.c (try_create_reduction_list): Only allow single exit
1684 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
1687 * match.pd: Require target has function_c99_misc before doing
1688 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
1690 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
1692 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
1694 * configure: Regenerate.
1696 2016-01-09 Jakub Jelinek <jakub@redhat.com>
1699 PR tree-optimization/69097
1700 * fold-const.h (expr_not_equal_to): New prototype.
1701 * fold-const.c: Include stringpool.h and tree-ssanames.h.
1702 (expr_not_equal_to): New function.
1703 * match.pd (X % -Y is the same as X % Y): Don't optimize
1704 unless X is known not to be equal to minimum or Y is known
1705 not to be equal to -1.
1706 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
1707 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
1708 (simplify_stmt_using_ranges): Adjust caller.
1709 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
1710 substitute_and_fold.
1712 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
1714 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
1717 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1719 PR tree-optimization/69167
1720 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
1721 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
1723 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
1725 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1726 Richard Biener <rguenther@suse.de>
1728 PR tree-optimization/68707
1729 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
1730 instances that can be handled via vect_load_lanes.
1732 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
1734 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
1735 if we can't determine address equivalence.
1736 * alias.c (compare_base_decl): Update for changed return value of
1737 symtab_node::equal_address_to.
1739 2016-01-08 Jason Merrill <jason@redhat.com>
1743 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
1744 * expr.c (store_field): Not here.
1745 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
1746 call with TREE_ADDRESSABLE type.
1747 * tree-cfg.c (verify_gimple_call): Adjust.
1749 2016-01-08 Olivier Hainque <hainque@adacore.com>
1751 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
1754 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1756 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
1757 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
1758 (reduc_smin_v2sf): Rename to...
1759 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
1760 (reduc_splus_v2sf): Rename to...
1761 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
1763 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1765 PR tree-optimization/69162
1766 * gimplify.c (gimplify_va_arg_expr): Encode original type of
1767 valist argument in another argument.
1768 (gimplify_modify_expr): Adjust for the above change. Cleanup.
1769 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
1770 to determine the va_list type, build a MEM_REF instead of
1771 build_fold_indirect_ref.
1773 PR tree-optimization/69172
1774 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
1777 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1779 PR tree-optimization/67781
1780 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
1781 and cmpnop in two steps: first the ones not accessed in original
1782 gimple expression in a endian independent way and then the ones not
1783 accessed in the final result in an endian-specific way.
1785 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1787 PR tree-optimization/69083
1788 * tree-vect-slp.c (vect_get_constant_vectors): For
1789 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
1790 element type. If op is fold_convertible_p to vector_type's element
1791 type, use NOP_EXPR instead of VCE.
1793 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
1795 PR rtl-optimization/67778
1796 PR rtl-optimization/68634
1797 PR rtl-optimization/68909
1798 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
1799 block from the stack until done with it. Remove a superfluous
1800 bitmap set. Remove a superfluous bitmap test.
1802 2016-01-07 Martin Sebor <msebor@redhat.com>
1805 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
1806 constraint on the type of arguments.
1808 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
1810 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
1811 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
1812 unaligned_access on the gcc_options set.
1813 * config/arm/arm.c (arm_option_override_internal): Use
1814 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
1816 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1819 * config/i386/i386.c (ix86_frame_pointer_required): Enable
1820 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
1822 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1825 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1828 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1829 depending on frame_pointer_needed before remaining integer and SSE
1830 registers are saved.
1832 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
1835 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
1837 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
1840 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
1841 Use the "xBm" constraint.
1842 (float<sseintvecmodelower><mode>2<mask_name><round_name):
1844 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
1845 (sse_cvtsi2ssq<round_name>): Likewise.
1846 (sse_cvtss2si<round_name>): Likewise.
1847 (sse_cvtss2siq<round_name>): Likewise.
1848 (sse2_cvtsi2sdq<round_name>): Likewise.
1849 (sse2_cvtsd2si<round_name>): Likewise.
1850 (sse2_cvtsd2siq<round_name>): Likewise.
1851 * config/i386/subst.md (round_nimm_scalar_predicate): New
1854 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
1857 * varasm.c (make_decl_rtl): Mark invalid register vars as
1860 PR rtl-optimization/66206
1861 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
1862 All callers changed.
1864 2016-01-07 Jakub Jelinek <jakub@redhat.com>
1866 PR tree-optimization/69141
1867 * tree-ssa-pre.c: Include langhooks.h.
1868 (eliminate_dom_walker::before_dom_children): Use
1869 lang_hooks.decl_printable_name instead of
1870 cgraph_node::get ()->name ().
1873 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
1874 it and DECL_ALIGN too.
1876 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
1878 * config/mips/mips-ftypes.def: Sort to lexicographical order.
1880 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1883 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1884 depending on frame_pointer_needed before remaining integer and SSE
1885 registers are saved.
1887 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1889 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
1890 mode iterator with VSX_M2.
1891 (*p9_vecstore_<mode>): Likewise.
1892 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
1893 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
1894 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
1895 (define_split for VSX_LE128 stores): Likewise.
1896 (define_peephole2 for TImode LE swaps): Likewise.
1897 (define_split for VSX_LE128 post-reload stores): Likewise.
1899 2016-01-06 Marek Polacek <polacek@redhat.com>
1902 * convert.c (convert_to_integer_1): Adjust call to
1903 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
1904 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
1905 EXPR instead of ARG.
1906 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
1908 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1911 * doc/extend.texi (RL78 Variable Attributes): New section.
1913 2016-01-05 Marek Polacek <polacek@redhat.com>
1916 * builtins.c (get_memmodel): Use expansion point location rather than
1917 the input location. Call warning_at rather than warning.
1918 (expand_builtin_atomic_compare_exchange): Likewise.
1919 (expand_builtin_atomic_load): Likewise.
1920 (expand_builtin_atomic_store): Likewise.
1921 (expand_builtin_atomic_clear): Likewise.
1923 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
1926 * config/i386/i386.c (ix86_expand_vector_logical_operator):
1927 Replace nonimmediate_operand with vector_operand.
1928 * config/i386/predicates.md (vector_operand): New predicate.
1929 (general_vector_operand): Replace nonimmediate_operand with
1931 * config/i386/sse.md: Replace nonimmediate_operand with
1932 vector_operand and m constraint with Bm constraint on SSE
1933 patterns with 16-byte memory operand.
1934 * config/i386/subst.md (round_nimm_predicate): Replace
1935 nonimmediate_operand with vector_operand.
1936 (round_saeonly_nimm_predicate): Likewise.
1937 (round_saeonly_nimm_scalar_predicate): New.
1939 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
1942 * config/i386/constraints.md (Bm): New constraint.
1943 * config/i386/predicates.md (vector_memory_operand): New
1945 * config/i386/sse.md: Replace xm with xBm in plusminus and
1948 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1951 * doc/extend.texi (V850 Function Attributes): New section.
1952 (V850 Variable Attributes): New section.
1954 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1957 * doc/extend.texi (MicroBlaze Function Attributes): Document
1958 interrupt_handler and fast_interrupt attributes.
1960 2016-01-05 Sergei Trofimovich <siarheit@google.com>
1963 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
1964 for local symbolic operands.
1965 * config/ia64/predicates.md (local_symbolic_operand64): New
1968 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1970 PR rtl-optimization/68651
1971 * combine.c (combine_simplify_rtx): Canonicalize x + x into
1974 2016-01-05 Nathan Sidwell <nathan@acm.org>
1976 * alias.c (compare_base_decls): Use symtab_node::get.
1978 2016-01-05 Nick Clifton <nickc@redhat.com>
1981 * ira-costs.c (copy_cost): Initialise the t_icode field of the
1982 secondary_reload_info structure.
1985 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
1986 decls if weak support is available.
1988 2016-01-04 Martin Sebor <msebor@redhat.com>
1990 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
1992 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
1994 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
1995 OPTION_MASK_P9_DFORM.
1997 * config/rs6000/constraints.md (wo constraint): New constraint for
2000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
2002 (rs6000_init_hard_regno_mode_ok): Likewise.
2004 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
2007 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
2008 expanders not to have constraints. Add support for ISA 3.0 xxperm
2009 instruction. Add support for fusing xxlor with xxperm.
2010 (altivec_vperm_<mode>_internal): Likewise.
2011 (altivec_vperm_v8hiv16qi): Likewise.
2012 (altivec_vperm_<mode>v16q): Likewise.
2013 (altivec_vperm_<mode>_uns): Likewise.
2014 (vperm_v8hiv4si): Likewise.
2015 (vperm_v16qiv8hi): Likewise.
2017 * doc/md.texi (RS/6000 constraints): Document wo constraint.
2019 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2021 Update copyright years.
2023 * gcc.c (process_command): Update copyright notice dates.
2024 * gcov-dump.c (print_version): Ditto.
2025 * gcov.c (print_version): Ditto.
2026 * gcov-tool.c (print_version): Ditto.
2027 * gengtype.c (create_file): Ditto.
2028 * doc/cpp.texi: Bump @copying's copyright year.
2029 * doc/cppinternals.texi: Ditto.
2030 * doc/gcc.texi: Ditto.
2031 * doc/gccint.texi: Ditto.
2032 * doc/gcov.texi: Ditto.
2033 * doc/install.texi: Ditto.
2034 * doc/invoke.texi: Ditto.
2036 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2038 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
2039 modes larger than TImode as TImode if NEON is not enabled.
2041 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2044 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
2045 mode for %f0-%f31 only if TARGET_FPU.
2047 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2050 * config/sparc/sparc.c (scan_record_type): Take into account subfields
2051 to compute the PACKED_P predicate.
2052 (function_arg_record_value): Minor tweaks.
2054 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2056 * doc/install.texi (--with-multilib-list): Describe the meaning of the
2057 option for arm*-*-* targets.
2059 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
2061 * doc/extend.texi (Common Function Attributes): Move docs for
2062 MSP430-specific attributes to....
2063 (MSP430 Function Attributes): ...here. Delete the redundant
2064 entries and copy-edit the remaining text.
2065 (MSP430 Variable Attributes): Use uniform format for index
2066 entries and add a cross-reference to the corresponding function
2069 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
2071 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
2073 (x86 Options): Likewise.
2075 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
2079 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
2080 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
2081 to corresponding attribute.
2083 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
2085 * doc/extend.texi (Common Function Attributes) <noplt>: Move
2086 to correct alphabetization of table. Copy-edit and correct
2088 <stack_protect>: Likewise.
2089 <target_clones>: Likewise.
2091 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
2092 Correct punctuation.
2093 (Code Gen Options) <-fno-plt>: Copy-edit.
2095 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2098 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
2099 SI values. Explicitly convert SI to DI and vice-versa.
2101 2016-01-01 Jakub Jelinek <jakub@redhat.com>
2103 PR tree-optimization/69070
2104 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
2105 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
2108 * ubsan.c (ubsan_instrument_float_cast): Call
2109 initialize_sanitizer_builtins.
2112 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
2114 Copyright (C) 2016 Free Software Foundation, Inc.
2116 Copying and distribution of this file, with or without modification,
2117 are permitted in any medium without royalty provided the copyright
2118 notice and this notice are preserved.