1 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
3 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
6 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
8 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
9 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
11 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
14 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
15 drop EXPAND_INITIALIZER.
16 * rtl.h (contains_symbolic_reference_p): Declare.
17 * rtlanal.c (contains_symbolic_reference_p): New function.
18 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
19 a subtraction into a NOT if symbolic constants are involved.
21 2016-01-21 Anton Blanchard <anton@samba.org>
22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
27 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
30 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32 * config/microblaze/microblaze.c
33 (get_branch_target): New.
34 (insert_wic_for_ilb_runout): New.
36 (microblaze_machine_dependent_reorg): New.
37 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
38 * config/microblaze/microblaze.md
39 (UNSPEC_IPREFETCH): Define.
40 (iprefetch): New pattern
41 * config/microblaze/microblaze.opt
42 (mxl-prefetch): New flag.
44 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
46 * config/microblaze/microblaze.h
47 (FIXED_REGISTERS): Update in macro.
48 (CALL_USED_REGISTERS): Update in macro.
50 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
52 PR rtl-optimization/68920
53 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
56 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
58 PR rtl-optimization/68990
59 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
60 pseudo instead of inheritance ones.
62 2016-01-21 Bernd Enlinger <bernd.edlinger@hotmail.de>
63 Nick Clifton <nickc@redhat.com>
67 * config/mips/mips.c (mips_compute_frame_info): Initialise
68 args_size and hard_frame_pointer_offset fields of the frame
69 structure before calling mips_global_pointer.
71 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
73 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
75 * configure: Regenerate.
77 2016-01-21 Richard Biener <rguenther@suse.de>
79 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
81 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
83 * config/s390/s390.c (s390_asm_declare_function_size): Add code
84 to actually emit the .size directive.
86 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
87 Jakub Jelinek <jakub@redhat.com>
91 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
92 args array size by one to avoid buffer overflow.
94 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
96 * config/s390/s390.md (pool_section_start): Use switch_to_section
97 to select proper read-only data section instead of hardcoding
99 (pool_section_end): Use switch_to_section to match the above.
101 2016-01-21 Richard Biener <rguenther@suse.de>
103 PR tree-optimization/69378
104 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
105 (set_ssa_val_to): Use it for dominance checks taking into
106 account not executable edges.
108 2016-01-21 Jakub Jelinek <jakub@redhat.com>
111 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
112 for bitsize instead of GET_MODE_PRECISION (mode).
114 2016-01-20 Martin Sebor <msebor@redhat.com>
117 * extend.texi (__sync Builtins): Clarify the semantics of
118 __sync_fetch_and_OP built-ins on pointers.
119 (__atomic Builtins): Same.
121 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
122 Sebastian Pop <s.pop@samsung.com>
124 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
125 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
126 (is_valid_rename): Same.
127 (translate_isl_ast_to_gimple::get_rename): Same.
128 (translate_isl_ast_to_gimple::rename_all_uses): Same.
129 (translate_isl_ast_to_gimple::rename_uses): Same.
130 (get_new_name): Check for close_phi nodes.
131 (copy_loop_phi_args): Use phi_node_kind.
132 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
133 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
135 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
136 Sebastian Pop <s.pop@samsung.com>
138 Revert commit r229783.
139 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
140 Remove use of parameter_rename_map.
142 (copy_internal_parameters): Remove.
143 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
144 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
145 (free_sese_info): Do not free parameter_rename_map.
146 (set_rename): Do not use parameter_rename_map.
147 (rename_uses): Update call to set_rename.
148 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
149 * sese.h (parameter_rename_map_t): Remove.
150 (struct sese_info_t): Remove field parameter_rename_map.
152 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
153 Sebastian Pop <s.pop@samsung.com>
155 * graphite-isl-ast-to-gimple.c: Fix comment.
156 * graphite-scop-detection.c (defined_in_loop_p): New.
157 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
158 names defined in loop.
160 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
161 Sebastian Pop <s.pop@samsung.com>
163 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
164 Discard unstructured if-then-else regions.
166 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
167 Sebastian Pop <s.pop@samsung.com>
169 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
170 (cleanup_loop_iter_dom): Remove.
171 (build_loop_iteration_domains): Remove.
172 (build_scop_context): Remove.
173 (build_scop_iteration_domain): Remove.
174 (add_loop_constraints): New.
175 (build_iteration_domains): New.
176 (build_poly_scop): Call build_iteration_domains.
178 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
179 Sebastian Pop <s.pop@samsung.com>
181 * graphite-scop-detection.c
182 (scop_detection::harmful_loop_in_region): Free dom and loops.
183 (scop_detection::loop_body_is_valid_scop): Free bbs.
185 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
186 Sebastian Pop <s.pop@samsung.com>
188 * graphite-scop-detection.c (record_loop_in_sese): New.
189 (gather_bbs::before_dom_children): Call record_loop_in_sese.
190 (build_scops): Remove call to build_sese_loop_nests.
191 * sese.c (sese_record_loop): Remove.
192 (build_sese_loop_nests): Remove.
193 (new_sese_info): Remove region->loops.
194 (free_sese_info): Same.
195 * sese.h (sese_contains_loop): Same.
196 (build_sese_loop_nests): Remove.
197 (sese_contains_loop): Remove.
199 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
200 Sebastian Pop <s.pop@samsung.com>
202 * graphite-scop-detection.c (loop_is_valid_scop): Renamed loop_is_valid_in_scop.
203 (scop_detection::harmful_stmt_in_region): Renamed harmful_loop_in_region.
204 Call loop_is_valid_in_scop.
206 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
207 Sebastian Pop <s.pop@samsung.com>
209 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
212 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
213 Sebastian Pop <s.pop@samsung.com>
215 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
216 * graphite.h (struct poly_bb): Remove field is_reduction.
217 (PBB_IS_REDUCTION): Remove.
219 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
220 Sebastian Pop <s.pop@samsung.com>
222 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
223 (add_pdr_constraints): Same.
224 (scop_get_reads): Same.
225 (scop_get_must_writes): Same.
226 (scop_get_may_writes): Same.
227 (scop_get_original_schedule): Same.
228 (extend_schedule): Same.
229 (apply_schedule_on_deps): Same.
230 (carries_deps): Same.
231 (compute_deps): Same.
232 (scop_get_dependences): Same.
233 * graphite-isl-ast-to-gimple.c
234 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
235 * graphite-optimize-isl.c (get_schedule_for_band): Same.
236 (get_schedule_for_band_list): Same.
237 (get_schedule_map): Same.
238 (apply_schedule_map_to_scop): Same.
239 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
240 (build_loop_iteration_domains): Same.
241 (add_condition_to_pbb): Same.
242 (add_param_constraints): Same.
243 (pdr_add_memory_accesses): Same.
244 (pdr_add_data_dimensions): Same.
246 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
248 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
251 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
253 * common.opt (feliminate-dwarf2-dups): Replace references to
254 "DWARF 2" with just "DWARF".
255 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
256 * doc/extend.texi: Likewise.
257 * doc/cpp.texi: Likewise.
258 * doc/invoke.texi: Likewise.
259 (Option Summary): Add -gdwarf to list of Debugging Options.
260 (Debugging Options): Document -gdwarf.
261 * doc/contrib.texi: Spell "DWARF" like that.
263 2016-01-21 Jakub Jelinek <jakub@redhat.com>
265 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
266 warning. Fix up formatting.
269 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
270 attempt to mark memory input operand addressable and
271 call prepare_gimple_addressable in that case. Don't adjust
272 input_location for diagnostics, use error_at instead.
274 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
276 * config/rs6000/ppc-auxv.h: New file.
277 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
279 (cpu_supports): Likewise.
280 * config/rs6000/rs6000.c: include "ppc-auxv.h".
281 (cpu_is_info): New variable.
282 (cpu_supports_info): Likewise.
283 (tcb_verification_symbol): Likewise.
284 (cpu_builtin_p): Likewise.
285 (cpu_expand_builtin): New function.
286 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
287 (rs6000_init_builtins): Likewise.
288 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
289 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
290 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
291 * configure: Regenerate.
292 * config.in: Likewise.
293 * doc/extend.texi (PowerPC Built-in Functions): Document
294 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
296 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
299 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
301 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
304 2016-01-20 Richard Henderson <rth@redhat.com>
310 * tree.c (tm_define_builtin): New.
311 (find_tm_vector_type): New.
312 (build_tm_vector_builtins): New.
313 (build_common_builtin_nodes): Call it.
315 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
317 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
318 (arm_fp_ok): Likewise.
320 (arm_crypto): Likewise.
322 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
323 Richard Biener <rguenther@suse.de>
325 PR tree-optimization/69328
326 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
327 vectors have same number of elements.
328 (vectorizable_condition): Fix masked version recognition.
330 2016-01-20 Richard Biener <rguenther@suse.de>
332 PR tree-optimization/69345
333 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
334 (VN_INFO_PTR_INFO): Likewise.
335 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
336 info when it is equal between non-dominating SSA names.
337 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
338 Make sure to look at original SSA infos.
340 2016-01-20 Jeff Law <law@redhat.com>
343 * config/m68k/predicates.md (pow2_m1_operand): New predicate
345 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
346 (pc_or_label_operand): New predicate.
347 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
348 tests for small integers that are 2^n - 1.
350 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
352 * doc/invoke.texi (Options Summary): Add '.' after @xref.
354 2016-01-19 Jeff Law <law@redhat.com>
357 * tree-ssa-threadbackwards.c
358 (fsm_find_control_statement_thread_paths): Do not try to lookup
359 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
361 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
363 * doc/lto.texi: Remove text that says only Gold has linker plugin
366 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
368 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
369 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
371 (modified_type_die): Add REVERSE parameter and pass it recursively,
372 as well as to base_type_die. Adjust presence check accordingly.
373 (base_type_for_mode): Adjust call to modified_type_die.
374 (add_type_attribute): Add REVERSE parameter and pass it to
376 (generic_parameter_die): Adjust call to add_type_attribute.
377 (add_scalar_info): Likewise.
378 (add_subscript_info): Likewise.
379 (gen_array_type_die): Likewise.
380 (gen_descr_array_type_die): Likewise.
381 (gen_entry_point_die): Likewise.
382 (gen_enumeration_type_die): Likewise.
383 (gen_formal_parameter_die): Likewise.
384 (gen_subprogram_die): Likewise.
385 (gen_variable_die ): Likewise.
386 (gen_const_die): Likewise.
387 (gen_field_die): Likewise.
388 (gen_pointer_type_die): Likewise.
389 (gen_reference_type_die): Likewise.
390 (gen_ptr_to_mbr_type_die): Likewise.
391 (gen_inheritance_die): Likewise.
392 (gen_subroutine_type_die): Likewise.
393 (gen_typedef_die): Likewise.
394 (force_type_die): Adjust call to modified_type_die.
396 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
398 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
399 flow throughout the file. Fix broken link to Objective-C 2.0
401 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
404 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
406 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
408 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
411 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
412 (maybe_record_node): Record cxa_pure_virtual as the only possible
413 target if there are not ohter candidates.
414 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
416 2016-01-19 Richard Biener <rguenther@suse.de>
418 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
419 (get_memory_order): Likewise.
421 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
423 * tree-vect-stmts.c (vectorizable_store): Check
426 2016-01-19 David Malcolm <dmalcolm@redhat.com>
429 * gcc.c (driver::decode_argv): Add call to
430 init_opts_obstack before init_options_struct.
431 * opts.c (init_opts_obstack): Remove idempotency.
432 (init_options_struct): Replace call to init_opts_obstack
433 with a gcc_assert to verify that it has already been called.
434 * toplev.c (toplev::main): Add call to init_opts_obstack before
435 calls to init_options_struct.
436 (toplev::finalize): Move cleanup of opts_obstack next to
437 cleanup of save_decoded_options, clearing the latter, and
438 save_decoded_options_count.
440 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
443 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
444 attribute to unconditional. Remove %? from output template.
446 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
447 Jiong Wang <jiong.wang@arm.com>
449 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
450 generated from different expand order.
452 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
454 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
455 Add support for CCMP costing.
457 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
459 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
460 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
461 (fccmpe<mode>): Likewise.
462 (fcmp): Rename to fcmp and globalize pattern.
464 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
465 (aarch64_gen_ccmp_next): Add FP support.
467 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
469 * target.def (gen_ccmp_first): Update documentation.
470 (gen_ccmp_next): Likewise.
471 * doc/tm.texi (gen_ccmp_first): Update documentation.
472 (gen_ccmp_next): Likewise.
473 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
474 expand_ccmp_expr_1. Improve comments.
475 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
476 (ccmp_ior<mode>): Remove pattern.
477 (cmp<mode>): Remove expand.
478 (cmp): Globalize pattern.
479 (cstorecc4): Use cc_register.
480 (mov<mode>cc): Remove ccmp_cc_register check.
481 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
482 Simplify after removal of CC_DNE/* modes.
483 (aarch64_ccmp_mode_to_code): Remove.
484 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
485 In 'k' case use integer as condition.
486 (aarch64_nzcv_codes): Remove inverted cases.
487 (aarch64_code_to_ccmode): Remove.
488 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
489 comparison with CC register to be used in folowing CCMP/branch/CSEL.
490 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
491 pattern. Return the comparison with CC register. Invert conditions
493 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
494 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
496 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
498 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
499 instrumented_version.
501 2016-01-19 Richard Biener <rguenther@suse.de>
503 PR tree-optimization/69336
504 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
505 handled components with get_ref_base_and_extent.
506 (equal_mem_array_ref_p): Adjust.
508 2016-01-19 Jakub Jelinek <jakub@redhat.com>
511 * shrink-wrap.c: Include valtrack.h.
512 (move_insn_for_shrink_wrap): Add DEBUG argument. If
513 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
514 in between insn and where it will be moved to. Call
515 dead_debug_insert_temp.
516 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
517 first and dead_debug_local_finish at the end.
518 For uses and defs bitmap, handle all regs in between REGNO and
519 END_REGNO, not just the first one.
521 2016-01-19 Richard Biener <rguenther@suse.de>
523 PR tree-optimization/69352
524 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
525 (equal_mem_array_ref_p): Constrain size and max size properly.
526 Compare the reverse flag.
528 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
530 * ira.c (ira): Update regstat data if we deleted insns.
532 2016-01-19 Jakub Jelinek <jakub@redhat.com>
534 PR rtl-optimization/68955
535 PR rtl-optimization/64557
536 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
537 here. Fix up formatting.
538 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
540 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
543 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
544 assume that the node has body.
545 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
548 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
550 * lto-streamer-out.c (lto_output): Do not stream instrumentation
553 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
555 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
556 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
558 2016-01-19 Martin Jambor <mjambor@suse.cz>
559 Martin Liska <mliska@suse.cz>
560 Michael Matz <matz@suse.de>
562 * Makefile.in (OBJS): Add new source files.
563 (GTFILES): Add hsa.c.
564 * common.opt (disable_hsa): New variable.
565 (-Whsa): New warning.
566 * config.in (ENABLE_HSA): New.
567 * configure.ac: Treat hsa differently from other accelerators.
568 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
570 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
571 * doc/install.texi (Configuration): Document --with-hsa-runtime,
572 --with-hsa-runtime-include, --with-hsa-runtime-lib and
574 * doc/invoke.texi (-Whsa): Document.
575 (hsa-gen-debug-stores): Likewise.
576 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
577 to invoke offload compiler for hsa acclerator.
578 * opts.c (common_handle_option): Determine whether HSA offloading
580 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
581 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
582 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
583 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
584 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
585 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
586 GF_OMP_FOR_KIND_GRID_LOOP.
587 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
588 (pp_gimple_stmt_1): Likewise.
589 * gimple-walk.c (walk_gimple_stmt): Likewise.
590 * gimple.c (gimple_build_omp_grid_body): New function.
591 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
592 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
593 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
594 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
595 GF_OMP_TEAMS_GRID_PHONY.
596 (gimple_statement_omp_single_layout): Updated comments.
597 (gimple_build_omp_grid_body): New function.
598 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
599 (gimple_omp_for_grid_phony): New function.
600 (gimple_omp_for_set_grid_phony): Likewise.
601 (gimple_omp_parallel_grid_phony): Likewise.
602 (gimple_omp_parallel_set_grid_phony): Likewise.
603 (gimple_omp_teams_grid_phony): Likewise.
604 (gimple_omp_teams_set_grid_phony): Likewise.
605 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
606 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
607 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
608 (BUILT_IN_GOMP_TARGET): Updated type.
609 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
610 (adjust_for_condition): New function.
611 (get_omp_for_step_from_incr): Likewise.
612 (extract_omp_for_data): Moved parts to adjust_for_condition and
613 get_omp_for_step_from_incr.
614 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
615 (fixup_child_record_type): Bail out if receiver_decl is NULL.
616 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
617 (scan_omp_parallel): Do not create child functions for phony
619 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
620 (scan_omp_1_op): Checking assert we are not remapping to
621 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
622 (parallel_needs_hsa_kernel_p): New function.
623 (expand_parallel_call): Register apprpriate parallel child
624 functions as HSA kernels.
625 (grid_launch_attributes_trees): New type.
626 (grid_attr_trees): New variable.
627 (grid_create_kernel_launch_attr_types): New function.
628 (grid_insert_store_range_dim): Likewise.
629 (grid_get_kernel_launch_attributes): Likewise.
630 (get_target_argument_identifier_1): Likewise.
631 (get_target_argument_identifier): Likewise.
632 (get_target_argument_value): Likewise.
633 (push_target_argument_according_to_value): Likewise.
634 (get_target_arguments): Likewise.
635 (expand_omp_target): Call get_target_arguments instead of looking
636 up for teams and thread limit.
637 (grid_expand_omp_for_loop): New function.
638 (grid_arg_decl_map): New type.
639 (grid_remap_kernel_arg_accesses): New function.
640 (grid_expand_target_kernel_body): New function.
641 (expand_omp): Call it.
642 (lower_omp_for): Do not emit phony constructs.
643 (lower_omp_taskreg): Do not emit phony constructs but create for them
644 a temporary variable receiver_decl.
645 (lower_omp_taskreg): Do not emit phony constructs.
646 (lower_omp_teams): Likewise.
647 (lower_omp_grid_body): New function.
648 (lower_omp_1): Call it.
649 (grid_reg_assignment_to_local_var_p): New function.
650 (grid_seq_only_contains_local_assignments): Likewise.
651 (grid_find_single_omp_among_assignments_1): Likewise.
652 (grid_find_single_omp_among_assignments): Likewise.
653 (grid_find_ungridifiable_statement): Likewise.
654 (grid_target_follows_gridifiable_pattern): Likewise.
655 (grid_remap_prebody_decls): Likewise.
656 (grid_copy_leading_local_assignments): Likewise.
657 (grid_process_kernel_body_copy): Likewise.
658 (grid_attempt_target_gridification): Likewise.
659 (grid_gridify_all_targets_stmt): Likewise.
660 (grid_gridify_all_targets): Likewise.
661 (execute_lower_omp): Call grid_gridify_all_targets.
662 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
663 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
664 (tree_omp_clause): Added union field dimension.
665 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
666 * tree.c (omp_clause_num_ops): Added number of arguments of
667 OMP_CLAUSE__GRIDDIM_.
668 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
669 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
670 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
671 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
672 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
673 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
674 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
675 * tree-pass.h (make_pass_gen_hsail): Declare.
676 (make_pass_ipa_hsa): Likewise.
677 * ipa-hsa.c: New file.
678 * lto-section-in.c (lto_section_name): Add hsa section name.
679 * lto-streamer.h (lto_section_type): Add hsa section.
680 * timevar.def (TV_IPA_HSA): New.
681 * hsa-brig-format.h: New file.
682 * hsa-brig.c: New file.
683 * hsa-dump.c: Likewise.
684 * hsa-gen.c: Likewise.
687 * toplev.c (compile_file): Call hsa_output_brig.
688 * hsa-regalloc.c: New file.
690 2016-01-18 Jeff Law <law@redhat.com>
692 PR tree-optimization/69320
693 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
694 ranged object, do nothing if the RHS constant is not [0..1].
695 (optimize_stmt): Comparing a boolean ranged object against a
696 constant outside [0..1] results in a compile-time constant.
698 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
701 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
703 * doc/invoke.texi (Invoking GCC): Add new section to menu.
704 (Option Summary): Update to reflect new section and moved options.
705 (C++ Dialect Options): Move -fstats to new section.
706 (Debugging Options): Move all dump, statistics, and other GCC
707 developer options to new section. Rewrite section introduction
708 and re-order remaining options to put the more basic ones first.
709 (Optimization Options): Move -fira-verbose and -flto-report* to
711 (Developer Options): New section incorporating moved options.
712 * doc/cppopts.texi (-dM): Update cross-reference.
714 2016-01-18 Richard Henderson <rth@redhat.com>
717 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
718 operands to pseudo only if CSE is expected. Split long immediate
719 operands only after reload, and for the stack pointer.
720 (*add<GPI>3_pluslong): Remove.
721 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
722 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
723 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
724 (*add<GPI>3 peepholes): New.
725 (*add<GPI>3 splitters): New.
726 * config/aarch64/constraints.md (Upl): New.
727 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
729 2016-01-18 Richard Biener <rguenther@suse.de>
731 PR tree-optimization/69297
732 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
734 (vect_bb_vectorization_profitable_p): Clear visited flag again.
736 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
739 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
740 of mixind vector and scalar types.
741 (fold_relational_const): Add handling of vector
742 comparison with boolean result.
743 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
744 comparison of vector operands with boolean result for EQ/NE only.
745 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
746 (verify_gimple_cond): Likewise.
747 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
750 2016-01-18 Joseph Myers <joseph@codesourcery.com>
752 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
755 2016-01-18 Richard Biener <rguenther@suse.de>
758 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
760 2016-01-18 Tom de Vries <tom@codesourcery.com>
762 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
764 2016-01-18 Tom de Vries <tom@codesourcery.com>
766 * omp-low.c (set_oacc_fn_attrib): Make extern.
767 * omp-low.h (set_oacc_fn_attrib): Declare.
768 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
769 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
770 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
771 Add and handle function parameter oacc_kernels_p.
772 (find_reduc_addr, get_omp_data_i_param): New function.
773 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
774 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
775 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
776 Calculate dominance info. Skip loops that are not in a kernels region
777 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
778 (pass_parallelize_loops::execute): Call parallelize_loops with
779 oacc_kernels_p argument.
780 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
782 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
783 * passes.def: Add argument to pass_parallelize_loops instantation.
785 2016-01-18 Tom de Vries <tom@codesourcery.com>
787 * tree-parloops.c (pass_parallelize_loops::execute): Allow
788 pass_parallelize_loops to be run outside the loop pipeline.
790 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
792 * tree-scalar-evolution.c (follow_copies_to_constant): New.
793 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
795 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
798 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
799 using get_ref_base_and_extent.
800 (equal_mem_array_ref_p): New.
801 (hashable_expr_equal_p): Add call to previous.
803 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
806 * tree-sra.c (disqualified_constants, constant_decl_p): New.
807 (sra_initialize): Allocate disqualified_constants.
808 (sra_deinitialize): Free disqualified_constants.
809 (disqualify_candidate): Update disqualified_constants when appropriate.
810 (create_access): Scan for constant-pool entries as we go along.
811 (scalarizable_type_p): Add check against type_contains_placeholder_p.
812 (maybe_add_sra_candidate): Allow constant-pool entries.
813 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
814 (initialize_constant_pool_replacements): New.
815 (sra_modify_assign): Avoid mangling assignments created by previous,
816 and don't generate writes into constant pool.
817 (sra_modify_function_body): Call initialize_constant_pool_replacements.
819 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
821 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
823 (scalar_chain::convert_op): Likewise.
824 * config/i386/i386.md (*andndi3_doubleword): New.
826 2016-01-18 Richard Biener <rguenther@suse.de>
828 PR tree-optimization/69170
829 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
830 building a vector from scalar results of a pattern stmt.
832 2016-01-18 Jakub Jelinek <jakub@redhat.com>
834 * haifa-sched.c (autopref_multipass_init): Work around
835 -Wmaybe-uninitialized warning.
837 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
839 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
840 against the constant 0.
842 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
844 PR tree-optimization/68799
845 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
846 look up phi candidates in the statement-candidate map.
847 (phi_add_costs): Likewise.
848 (record_phi_increments): Likewise.
849 (phi_incr_cost): Likewise.
850 (ncd_with_phi): Likewise.
851 (all_phi_incrs_profitable): Likewise.
853 2016-01-17 Jakub Jelinek <jakub@redhat.com>
855 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
856 -Wmaybe-uninitialized warning.
858 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
860 * doc/invoke.texi (Invoking GCC): Add new section to menu.
861 (Option Summary): Update to reflect new section and moved options.
862 (C++ Dialect Options): Move -fvtable-verify and related options.
863 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
864 and profiling-related options.
865 (Optimization Options): Move profile generation options and
866 -fstack-protector and related options.
867 (Instrumentation Options): New section incorporating moved options.
868 (Code Generation Options): Move -finstrument-functions and
869 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
871 2016-01-16 Tom de Vries <tom@codesourcery.com>
873 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
875 2016-01-16 Tom de Vries <tom@codesourcery.com>
877 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
879 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
881 * hash-table.h (hash_table::empty): Turn into an inline wrapper
882 that checks whether the table is already empty. Rename the
883 original implementation to...
884 (hash_table::empty_slot): ...this new private function.
886 2016-01-15 David Malcolm <dmalcolm@redhat.com>
889 * diagnostic-show-locus.c (layout::print_source_line): Move x
890 offset of line until after call to
891 get_line_width_without_trailing_whitespace.
893 2016-01-15 Jeff Law <law@redhat.com>
895 PR tree-optimization/69270
896 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
897 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
898 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
899 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
900 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
901 ssa_name_has_boolean_range and constant_boolean_node.
903 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
905 PR rtl-optimization/69030
906 * lra-spills.c (remove_pseudos): Check nrefs and make the function
908 (spill_pseudos): Delete debug insn for dead pseudo.
909 (lra_spill): Initiate spill_hard_reg and slots memory separately.
911 2016-01-15 Jiong Wang <jiong.wang@arm.com>
913 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
915 (TYPES_UNOPUS): Likewise.
916 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
917 builtin type, from UNOP to UNOPUS.
918 (lbtruncuv4sf): Likewise.
919 (lbtruncuv2df): Likewise.
920 (lrounduv2sf): Likewise.
921 (lrounduv4sf): Likewise.
922 (lrounduv2df): Likewise.
923 (lroundusf): Likewise.
924 (lroundusf): Likewise.
925 (lceiluv2sf): Likewise.
926 (lceiluv4sf): Likewise.
927 (lceiluv2df): Likewise.
928 (lceilusf): Likewise.
929 (lceiludf): Likewise.
930 (lflooruv2sf): Likewise.
931 (lflooruv4sf): Likewise.
932 (lflooruv2df): Likewise.
933 (lfloorusf): Likewise.
934 (lfloorudf): Likewise.
935 (lfrintnuv2sf): Likewise.
936 (lfrintnuv4sf): Likewise.
937 (lfrintnuv2df): Likewise.
938 (lfrintnusf): Likewise.
939 (lfrintnudf): Likewise.
940 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
942 (vcvtq_u32_f32): Likewise.
943 (vcvtq_u64_f64): Likewise.
944 (vcvta_u32_f32): Likewise.
945 (vcvtaq_u32_f32): Likewise.
946 (vcvtaq_u64_f64): Likewise.
947 (vcvtm_u32_f32): Likewise.
948 (vcvtmq_u32_f32): Likewise.
949 (vcvtmq_u64_f64): Likewise.
950 (vcvtn_u32_f32): Likwise.
951 (vcvtnq_u32_f32): Likewise.
952 (vcvtnq_u64_f64): Likewise.
953 (vcvtp_u32_f32): Likewise.
954 (vcvtpq_u32_f32): Likewise.
955 (vcvtpq_u64_f64): Likewise.
956 (vcvtmd_u64_f64): Likewise.
957 (vcvtms_u32_f32): Likewise.
958 (vcvtad_u64_f64): Likewise.
959 (vcvtas_u32_f32): Likewise.
960 (vcvtnd_u64_f64): Likewise.
961 (vcvtns_u32_f32): Likewise.
962 (vcvtpd_u64_f64): Likewise.
963 (vcvtps_u32_f32): Likewise.
965 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
967 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
968 CSEL of zero_extended registers.
970 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
972 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
973 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
975 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
977 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
978 false when argument string is not found in the attributes table
981 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
984 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
985 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
986 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
989 2016-01-15 Richard Biener <rguenther@suse.de>
991 PR tree-optimization/66856
992 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
993 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
994 (vect_create_new_slp_node): Increment stmt reference count.
995 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
996 an SLP tree before swapping operands.
997 (vect_build_slp_tree): Likewise.
998 (destroy_bb_vec_info): Free stmt info after SLP instances.
999 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
1000 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
1001 (STMT_VINFO_NUM_SLP_USES): New macro.
1003 2016-01-15 Richard Biener <rguenther@suse.de>
1006 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
1007 (add_linkage_name): ... here.
1008 (gen_typedef_die): Use add_linkage_name_raw instead of
1009 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
1012 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
1014 * gimplify.c (oacc_default_clause): Decode reference and pointer
1015 types for both kernels and parallel regions.
1017 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
1020 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
1022 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
1024 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
1025 (convert_scalars_to_vector): Likewise.
1027 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
1029 * doc/extend.texi (Type Traits): Fix grammar.
1031 2016-01-15 Martin Jambor <mjambor@suse.cz>
1033 * tree-inline.c (remap_decl): Use existing dclarations if
1034 remapping a type and prevent_decl_creation_for_types.
1035 (replace_locals_stmt): Do an initial remapping of non-VLA typed
1036 decls first. Do real remapping with
1037 prevent_decl_creation_for_types set.
1038 * tree-inline.h (copy_body_data): New field
1039 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
1042 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
1044 * config/s390/s390.opt (mmvcle): More verbose help text.
1046 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
1048 * config/s390/s390.opt: Add period to -mzvector option text.
1050 2016-01-15 Richard Biener <rguenther@suse.de>
1052 PR tree-optimization/68961
1053 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
1054 of invariants in stores again.
1056 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
1058 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
1060 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
1062 * config/i386/i386.c (ix86_expand_branch): Don't split
1063 DI mode xor instruction to SI mode.
1065 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
1068 * ipa-icf.c (sem_function::merge): Virtual functions may become
1069 reachable even if they address is not taken and there are no
1072 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
1074 * lto-streamer-out.c (subtract_estimated_size): New function.
1075 (get_symbol_initial_value): Use it.
1077 2016-01-15 Christian Bruel <christian.bruel@st.com>
1080 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
1081 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
1082 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
1083 use add_builtin_function_ext_scope instead of add_builtin_function.
1084 (neon_set_p, neon_crypto_set_p): Remove.
1085 (arm_init_builtins): Always call arm_init_neon_builtins and
1086 arm_init_crypto_builtins.
1087 (arm_expand_builtin): Check that builtins are allowed for the arch.
1088 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
1089 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
1090 arm_init_neon_builtins call.
1092 2016-01-15 Richard Biener <rguenther@suse.de>
1094 PR tree-optimization/69117
1095 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
1096 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
1097 of the leader conservatively.
1098 (free_scc_vn): Restore original SSA name infos.
1100 2016-01-14 Jeff Law <law@redhat.com>
1102 PR tree-optimization/69270
1103 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
1104 single bit of precision, verify it's also unsigned.
1105 (record_edge_info): Use constant_boolean_node rather than fold_convert
1106 to convert boolean_true/boolean_false to the right type.
1108 2016-01-14 Richard Henderson <rth@redhat.com>
1111 * loop-doloop.c (record_reg_sets): New.
1112 (doloop_optimize): Reject the transform if the sequence
1113 clobbers registers live at the end of the loop block.
1114 (doloop_optimize_loops): Enable df_live if needed.
1116 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1118 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
1119 * gcc/config/rs6000/rs6000.c: Likewise.
1120 * gcc/config/rs6000/rs6000.h: Likewise.
1121 * gcc/config/rs6000/rs6000.md: Likewise.
1122 * gcc/doc/extend.texi: Likewsie.
1124 2016-01-14 Jeff Law <law@redhat.com>
1126 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
1129 2016-01-14 Richard Henderson <rth@redhat.com>
1133 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
1134 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
1135 instead of builtin_decl_declared_p to test for declaration.
1137 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
1139 * doc/loop.texi (Loop Analysis and Representation): Document
1140 loop_depth function.
1142 2016-01-14 Tom de Vries <tom@codesourcery.com>
1144 PR tree-optimization/68773
1145 * omp-low.c (expand_omp_target): Don't set force_output.
1146 * varpool.c (varpool_node::get_create): Same.
1147 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
1148 offload_funcs with force_output.
1150 2016-01-14 Jakub Jelinek <jakub@redhat.com>
1153 * lra-eliminations.c (move_plus_up): Don't change anything if either
1154 the outer or inner subreg mode is not MODE_INT.
1155 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
1156 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
1158 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
1160 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
1161 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
1162 reduc_uplus_@var{m}): Remove.
1163 * expr.c (expand_expr_real_2): Remove expansion path for
1164 reduc_[us](min|max|plus) optabs.
1165 * optabs-tree.c (scalar_reduc_to_vector): Remove.
1166 * optabs-tree.h (scalar_reduc_to_vector): Remove.
1167 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
1168 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
1169 * tree-vect-loop.c (vectorizable_reduction): Remove test for
1170 reduc_[us](min|max|plus) optabs.
1172 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
1174 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
1175 (reduc_plus_scal_v2sf): New.
1176 (reduc_smax_v2sf): Rename to...
1177 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
1178 (reduc_smin_v2sf): Rename to...
1179 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
1181 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
1183 * alias.c (compare_base_symbol_refs): New function.
1184 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
1187 2016-01-14 Jakub Jelinek <jakub@redhat.com>
1190 PR tree-optimization/69155
1191 * tree-complex.c: Include cfganal.h.
1192 (phis_to_revisit): New variable.
1193 (extract_component): Add phiarg_p argument. Assert that returned
1194 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
1195 (update_phi_components): Partly rewrite to use loop over real/imag
1196 components instead of code duplication. If extract_component returns
1197 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
1198 create_tmp_reg into the PHI node instead, and mention the phi triplet
1200 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
1201 in phis_to_revisit at the end.
1203 2016-01-14 Richard Biener <rguenther@suse.de>
1205 PR tree-optimization/68060
1206 * tree-vect-loop.c (vect_is_simple_reduction): Check the
1207 outer loop reduction is only used in the inner loop before
1208 detecting a double reduction.
1210 2016-01-14 Jakub Jelinek <jakub@redhat.com>
1213 * combine.c (expand_field_assignment): Punt if compute_mode is
1214 unsupported scalar mode.
1216 2016-01-14 Richard Biener <rguenther@suse.de>
1218 PR tree-optimization/66856
1219 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
1220 SLP node only if it built successfully.
1221 (vect_analyze_slp_instance): Adjust.
1223 2016-01-14 Jeff Law <law@redhat.com>
1225 PR tree-optimization/69270
1226 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
1227 (record_edge_info): Use it. Convert boolean_{true,false}_node
1230 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
1233 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
1234 use block_ultimate_origin
1235 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
1237 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
1239 * doc/invoke.texi (Submodel Options): Rename section to
1240 "Machine-Dependent Options" to better reflect its content.
1241 Rewrite introductory text to remove archaic CPU names.
1244 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
1246 * doc/invoke.texi (Code Gen Options): Move section up in file,
1247 before target-specific options. Update menu and option summary
1248 to reflect the new section ordering.
1250 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
1252 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
1253 (C++ Dialect Options): Add cross-reference to -std option.
1254 * doc/standards.texi (C++ Language): Document C++14 support.
1256 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1258 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
1259 for pack/unpack functions for __ibm128.
1260 (PACK_IF): Likewise.
1261 (UNPACK_IF): Likewise.
1263 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
1264 support for __ibm128 pack/unpack functions.
1265 (rs6000_invalid_builtin): Likewise.
1266 (rs6000_init_builtins): Likewise.
1267 (rs6000_opt_masks): Likewise.
1269 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
1270 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
1272 (RS6000_BTM_COMMON): Likewise.
1274 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
1275 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
1276 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
1277 128-bit floating point. Add support for the double values to be
1278 in Altivec registers for TF/IF packing and unpacking, but restrict
1279 TD packing sub-fields to be FPR registers. Don't allow overlapped
1280 register support for packing. Allow pack inputs to be memory
1281 locations. Don't build generator functions for unpack<mode>_dm
1282 and unpack<mode>_nodm.
1283 (unpack<mode>_dm): Likewise.
1284 (unpack<mode>_nodm): Likewise.
1285 (pack<mode>): Likewise.
1287 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
1288 built-in functions to pack/unpack explicit __ibm128 values.
1289 (__builtin_unpack_ibm128): Likewise.
1291 * doc/extend.texi (PowerPC Built-in Functions): Document
1292 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
1294 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
1297 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
1298 Add new arg loc and pass it down as context.
1299 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
1300 to the location to use for the warning.
1301 (check_function_arguments): New arg loc. All callers changed. Pass
1302 it to check_function_nonnull.
1303 * c-common.h (check_function_arguments): Adjust declaration.
1305 2016-01-13 Jakub Jelinek <jakub@redhat.com>
1307 PR tree-optimization/69156
1308 * gimple.c (validate_type): Removed.
1309 (gimple_builtin_call_types_compatible_p): Use
1310 useless_type_conversion_p instead of validate_type.
1311 * value-prof.c (gimple_stringop_fixed_value): Fold
1312 icall_size to correct type.
1314 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
1316 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
1319 2016-01-13 Richard Henderson <rth@redhat.com>
1322 * target.def (builtin_tm_load, builtin_tm_store): Remove.
1323 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
1324 (ix86_builtin_tm_store): Remove.
1325 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
1326 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
1327 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
1328 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
1329 * doc/tm.texi: Rebuild.
1331 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
1332 (BUILT_IN_TM_MEMCPY_RTWN): New.
1333 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
1334 fallback from vector to integer helpers.
1335 (build_tm_load): Handle vector types directly, instead of
1337 (build_tm_store): Likewise.
1338 (expand_assign_tm): Prepare for register types not handled by
1339 the above. Copy them to memory and use memcpy.
1340 * tree.c (tm_define_builtin): New.
1341 (find_tm_vector_type): New.
1342 (build_tm_vector_builtins): New.
1343 (build_common_builtin_nodes): Call it.
1345 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
1347 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
1348 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
1350 2016-01-13 Tom de Vries <tom@codesourcery.com>
1352 PR tree-optimization/69169
1353 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
1354 handled_struct_type param.
1355 (create_variable_info_for, intra_create_variable_infos): Call
1356 create_variable_info_for_1 with extra arg.
1358 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
1360 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
1361 and "armv8.1-a+crc" entries.
1363 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
1366 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
1367 Change first operand predicate from register_or_constm1_operand
1368 to register_operand.
1369 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
1370 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
1371 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
1372 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
1373 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
1374 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
1375 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
1376 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
1377 comparison with constm1_rtx from vec_prefetch_gen part.
1379 2016-01-13 Richard Biener <rguenther@suse.de>
1381 PR tree-optimization/69013
1382 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
1383 Exchange assert for a test.
1385 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1388 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
1390 2016-01-13 Richard Biener <rguenther@suse.de>
1392 PR tree-optimization/69242
1393 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
1394 assert with a check.
1396 2016-01-13 Richard Biener <rguenther@suse.de>
1398 PR tree-optimization/69186
1399 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1400 Properly guard vect_update_misalignment_for_peel call.
1402 2016-01-12 Jeff Law <law@redhat.com>
1404 PR tree-optimization/pr67755
1405 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
1406 "need_profile_correction".
1407 (thread_block_1): Initialize new field to false by default. If we
1408 have multiple thread paths through a common joiner to different
1409 final targets, then set new field to true.
1410 (compute_path_counts): Only do count adjustment when it's really
1413 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
1415 * doc/invoke.texi (Spec Files): Move section down in file, past
1416 all command-line option descriptions.
1418 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1421 * doc/gty.texi: Remove documentation of mark_hook.
1422 * gengtype.c (struct write_types_data): Remove code to support
1423 mark_hook attribute.
1424 (walk_type): Likewise.
1425 (write_func_for_structure): Likewise.
1427 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
1429 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
1430 Directory Options, and -specs= to Overall Options.
1431 (Overall Options): Adjust similarly. Reorder to group related
1432 options together. Make -specs= cross-reference the spec file details.
1433 (Directory Options): Adjust similarly.
1435 2016-01-12 Jeff Law <law@redhat.com>
1437 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
1439 2016-01-12 Olivier Hainque <hainque@adacore.com>
1441 * gcc.c (spec_undefvar_allowed): New global.
1442 (process_command): Set to true when running for --version or --help,
1444 (getenv_spec_function): When the variable is not defined, use the
1445 variable name as the variable value if we're allowed not to issue
1448 2016-01-12 Bin Cheng <bin.cheng@arm.com>
1450 PR tree-optimization/68911
1451 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
1452 information computed for expression "init + nit * step".
1454 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
1456 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
1457 about name of GCC executable. Remove deleted node from menu.
1458 (Directory Options) <-B>: Remove cross-reference to deleted node.
1459 (Target Options): Delete section.
1461 2016-01-12 Christian Bruel <christian.bruel@st.com>
1464 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
1465 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
1467 2016-01-12 Jakub Jelinek <jakub@redhat.com>
1470 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
1471 aligned_mem is properly set for AVX512-VL floating point masked
1475 * ifcvt.c (cond_exec_process_if_block): When removing the last
1476 insn from then_bb, remove also any possible barriers that follow it.
1478 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
1482 * config/i386/iamcu.h (SIZE_TYPE): New macro.
1483 (PTRDIFF_TYPE): Likewise.
1484 (WCHAR_TYPE): Likewise.
1485 (WCHAR_TYPE_SIZE): Likewise.
1486 (STDINT_LONG32): Likewise.
1488 2016-01-12 Richard Biener <rguenther@suse.de>
1490 PR tree-optimization/69053
1491 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
1492 convert initial value for cond reductions.
1494 2016-01-12 Richard Biener <rguenther@suse.de>
1496 PR tree-optimization/69007
1497 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
1498 widen_sum after dot_prod and sad.
1500 2016-01-12 Richard Biener <rguenther@suse.de>
1502 PR tree-optimization/69168
1503 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
1504 pattern stmt SLP type.
1505 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
1506 end up unused so cope with that case.
1508 2016-01-12 Richard Biener <rguenther@suse.de>
1510 PR tree-optimization/69157
1511 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1512 stmts def type only during analyze phase.
1513 (vectorizable_call): Likewise.
1514 (vectorizable_simd_clone_call): Likewise.
1515 (vectorizable_conversion): Likewise.
1516 (vectorizable_assignment): Likewise.
1517 (vectorizable_shift): Likewise.
1518 (vectorizable_operation): Likewise.
1519 (vectorizable_store): Likewise.
1520 (vectorizable_load): Likewise.
1522 2016-01-12 Richard Biener <rguenther@suse.de>
1524 PR tree-optimization/69174
1525 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
1527 (vectorizable_load): Properly compute the number of loads needed
1528 for permuted strided SLP loads and do not spuriously assign
1529 to SLP_TREE_VEC_STMTS.
1531 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
1533 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
1534 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
1535 (MD_EXEC_PREFIX): Remove.
1536 (MD_STARTFILE_PREFIX) Removee.
1537 (FILE_NAME_ABSOLUTE_P): Remove.
1538 (CPP_SPEC): Do not read macros from sys/version.h.
1539 (LINK_COMMAND_SPEC): Remove.
1540 (LOCAL_INCLUDE_DIR): Remove.
1541 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
1542 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
1543 (POST_LINK_SPEC): Define to invoke stubify after linker
1544 (LIBSTDCXX): Remove define
1545 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
1546 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
1547 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
1548 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
1549 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
1550 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
1551 (i386_djgpp_asm_named_section): Add propotype of new procedure
1553 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
1554 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
1555 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX in config/i386/djgpp.h).
1556 (STANDARD_STARTFILE_PREFIX_2): Define identical to STANDARD_STARTFILE_PREFIX_1.
1557 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
1558 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal installation errors.
1559 (MAX_OFILE_ALIGNMENT): Define to 128.
1560 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
1562 * config/i386/djgpp.c: New file. Add implementation of i386_djgpp_asm_named_section.
1564 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
1566 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
1567 Add rule for building djgpp.o.
1569 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1571 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
1572 (rtx_is_swappable_p): Reductions are swappable.
1573 (insn_is_swappable_p): V2DF reductions are swappable.
1575 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
1577 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
1578 reloads for other unsupported memory operands.
1580 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
1581 Jim Wilson <jim.wilson@linaro.org>
1584 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
1585 copy_to_mode_reg instead of force_reg.
1587 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
1590 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
1591 TARGET_80387 is true.
1593 2016-01-11 Jakub Jelinek <jakub@redhat.com>
1596 * lra-eliminations.c (move_plus_up): Only move plus up
1597 if subreg of the constant can be simplified into constant
1598 and use the simplified subreg of the constant instead of
1599 the original constant.
1601 * fold-const.c (fold_convertible_p): Don't return true
1602 for conversion of VECTOR_TYPE to same sized integral type.
1603 (fold_convert_loc): Fix up formatting. Fold conversion of
1604 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
1605 instead of NOP_EXPR.
1607 PR tree-optimization/69214
1608 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
1609 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1612 PR tree-optimization/69207
1613 * tree-vect-slp.c (vect_get_constant_vectors): For
1614 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
1615 fold_convertible_p to vector_type's element type, and always
1616 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
1618 2016-01-11 Richard Biener <rguenther@suse.de>
1620 PR tree-optimization/69173
1621 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
1622 fixup the cycle if all stmts are in a pattern.
1624 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
1627 * alias.c (base_alias_check): Move check for addresses with
1628 alignment ANDs before the call for compare_base_decls.
1629 (memrefs_conflict_p): Return -1 for different decls
1630 that went through alignment adjustments.
1632 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1634 PR rtl-optimization/68796
1635 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
1636 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
1637 and QImode comparisons against zero with CC_NZmode.
1638 * config/aarch64/iterators.md (short_mask): New mode_attr.
1640 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
1642 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
1643 (<avx512>_store<mode>_mask): Likewise.
1645 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
1646 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1648 PR rtl-optimization/68841
1649 * ifcvt.c (struct noce_if_info): Add orig_x field.
1650 (bbs_ok_for_cmove_arith): Add to_rename parameter.
1651 Don't record conflicts on to_rename if it's present.
1652 Allow memory destinations in sets.
1653 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
1654 blocks, passing orig_x to the checks.
1655 (noce_process_if_block): Set if_info->orig_x appropriately.
1657 2016-01-11 Tom de Vries <tom@codesourcery.com>
1659 PR tree-optimization/69069
1660 * tree-parloops.c (create_parallel_loop): Add missing phi args.
1662 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
1664 PR rtl-optimization/68920
1665 * config/i386/i386.c (ix86_option_override_internal): Restrict number
1666 of conditional moves for RTL if-conversion to 1 for
1667 TARGET_ONE_IF_CONV_INSN.
1668 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
1669 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
1670 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
1671 parameter to restirct number of conditional moves for
1673 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
1674 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
1677 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
1680 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
1681 onepart vars. Fix typo in comment. Fix reversed condition in
1683 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
1686 * var-tracking.c (dump_onepart_variable_differences): New.
1687 (dataflow_set_different): If a detailed dump is requested,
1688 delay early returns and dump differences between onepart
1689 variables present before and after, and added variables.
1691 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1694 * expr.c (expand_expr_real_1): For boolean vector constants
1695 with a scalar mode use const_scalar_mask_from_tree.
1696 (const_scalar_mask_from_tree): New.
1697 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
1698 assigned to a mask type to handle constants.
1700 2016-01-11 Martin Jambor <mjambor@suse.cz>
1703 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
1704 useless parameters if we cannot change function signature.
1706 2016-01-11 Martin Jambor <mjambor@suse.cz>
1709 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
1712 2016-01-11 Tom de Vries <tom@codesourcery.com>
1714 PR tree-optimization/69109
1715 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
1718 2016-01-11 Tom de Vries <tom@codesourcery.com>
1720 PR tree-optimization/69108
1721 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
1722 res is not used in a phi.
1724 2016-01-11 Yury Gribov <y.gribov@samsung.com>
1727 * common.opt (frandom-seed): Fix parameter name.
1728 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
1730 2016-01-11 Tom de Vries <tom@codesourcery.com>
1732 PR tree-optimization/69058
1733 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
1736 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
1738 * config/arc/arc.opt (mdiv-rem): Add period to the end.
1739 (mcode-density): Likewise.
1741 2016-01-10 Tom de Vries <tom@codesourcery.com>
1743 PR tree-optimization/69062
1744 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
1745 (parallelize_loops): Don't paralelize loop that has phi with address
1748 2016-01-10 Tom de Vries <tom@codesourcery.com>
1750 PR tree-optimization/69039
1751 * tree-parloops.c (try_create_reduction_list): Only allow single exit
1754 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
1757 * match.pd: Require target has function_c99_misc before doing
1758 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
1760 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
1762 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
1764 * configure: Regenerate.
1766 2016-01-09 Jakub Jelinek <jakub@redhat.com>
1769 PR tree-optimization/69097
1770 * fold-const.h (expr_not_equal_to): New prototype.
1771 * fold-const.c: Include stringpool.h and tree-ssanames.h.
1772 (expr_not_equal_to): New function.
1773 * match.pd (X % -Y is the same as X % Y): Don't optimize
1774 unless X is known not to be equal to minimum or Y is known
1775 not to be equal to -1.
1776 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
1777 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
1778 (simplify_stmt_using_ranges): Adjust caller.
1779 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
1780 substitute_and_fold.
1782 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
1784 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
1787 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1789 PR tree-optimization/69167
1790 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
1791 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
1793 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
1795 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1796 Richard Biener <rguenther@suse.de>
1798 PR tree-optimization/68707
1799 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
1800 instances that can be handled via vect_load_lanes.
1802 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
1804 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
1805 if we can't determine address equivalence.
1806 * alias.c (compare_base_decl): Update for changed return value of
1807 symtab_node::equal_address_to.
1809 2016-01-08 Jason Merrill <jason@redhat.com>
1813 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
1814 * expr.c (store_field): Not here.
1815 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
1816 call with TREE_ADDRESSABLE type.
1817 * tree-cfg.c (verify_gimple_call): Adjust.
1819 2016-01-08 Olivier Hainque <hainque@adacore.com>
1821 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
1824 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
1826 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
1827 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
1828 (reduc_smin_v2sf): Rename to...
1829 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
1830 (reduc_splus_v2sf): Rename to...
1831 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
1833 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1835 PR tree-optimization/69162
1836 * gimplify.c (gimplify_va_arg_expr): Encode original type of
1837 valist argument in another argument.
1838 (gimplify_modify_expr): Adjust for the above change. Cleanup.
1839 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
1840 to determine the va_list type, build a MEM_REF instead of
1841 build_fold_indirect_ref.
1843 PR tree-optimization/69172
1844 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
1847 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1849 PR tree-optimization/67781
1850 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
1851 and cmpnop in two steps: first the ones not accessed in original
1852 gimple expression in a endian independent way and then the ones not
1853 accessed in the final result in an endian-specific way.
1855 2016-01-08 Jakub Jelinek <jakub@redhat.com>
1857 PR tree-optimization/69083
1858 * tree-vect-slp.c (vect_get_constant_vectors): For
1859 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
1860 element type. If op is fold_convertible_p to vector_type's element
1861 type, use NOP_EXPR instead of VCE.
1863 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
1865 PR rtl-optimization/67778
1866 PR rtl-optimization/68634
1867 PR rtl-optimization/68909
1868 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
1869 block from the stack until done with it. Remove a superfluous
1870 bitmap set. Remove a superfluous bitmap test.
1872 2016-01-07 Martin Sebor <msebor@redhat.com>
1875 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
1876 constraint on the type of arguments.
1878 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
1880 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
1881 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
1882 unaligned_access on the gcc_options set.
1883 * config/arm/arm.c (arm_option_override_internal): Use
1884 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
1886 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1889 * config/i386/i386.c (ix86_frame_pointer_required): Enable
1890 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
1892 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
1895 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1898 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1899 depending on frame_pointer_needed before remaining integer and SSE
1900 registers are saved.
1902 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
1905 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
1907 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
1910 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
1911 Use the "xBm" constraint.
1912 (float<sseintvecmodelower><mode>2<mask_name><round_name):
1914 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
1915 (sse_cvtsi2ssq<round_name>): Likewise.
1916 (sse_cvtss2si<round_name>): Likewise.
1917 (sse_cvtss2siq<round_name>): Likewise.
1918 (sse2_cvtsi2sdq<round_name>): Likewise.
1919 (sse2_cvtsd2si<round_name>): Likewise.
1920 (sse2_cvtsd2siq<round_name>): Likewise.
1921 * config/i386/subst.md (round_nimm_scalar_predicate): New
1924 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
1927 * varasm.c (make_decl_rtl): Mark invalid register vars as
1930 PR rtl-optimization/66206
1931 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
1932 All callers changed.
1934 2016-01-07 Jakub Jelinek <jakub@redhat.com>
1936 PR tree-optimization/69141
1937 * tree-ssa-pre.c: Include langhooks.h.
1938 (eliminate_dom_walker::before_dom_children): Use
1939 lang_hooks.decl_printable_name instead of
1940 cgraph_node::get ()->name ().
1943 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
1944 it and DECL_ALIGN too.
1946 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
1948 * config/mips/mips-ftypes.def: Sort to lexicographical order.
1950 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
1953 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
1954 depending on frame_pointer_needed before remaining integer and SSE
1955 registers are saved.
1957 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1959 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
1960 mode iterator with VSX_M2.
1961 (*p9_vecstore_<mode>): Likewise.
1962 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
1963 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
1964 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
1965 (define_split for VSX_LE128 stores): Likewise.
1966 (define_peephole2 for TImode LE swaps): Likewise.
1967 (define_split for VSX_LE128 post-reload stores): Likewise.
1969 2016-01-06 Marek Polacek <polacek@redhat.com>
1972 * convert.c (convert_to_integer_1): Adjust call to
1973 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
1974 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
1975 EXPR instead of ARG.
1976 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
1978 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
1981 * doc/extend.texi (RL78 Variable Attributes): New section.
1983 2016-01-05 Marek Polacek <polacek@redhat.com>
1986 * builtins.c (get_memmodel): Use expansion point location rather than
1987 the input location. Call warning_at rather than warning.
1988 (expand_builtin_atomic_compare_exchange): Likewise.
1989 (expand_builtin_atomic_load): Likewise.
1990 (expand_builtin_atomic_store): Likewise.
1991 (expand_builtin_atomic_clear): Likewise.
1993 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
1996 * config/i386/i386.c (ix86_expand_vector_logical_operator):
1997 Replace nonimmediate_operand with vector_operand.
1998 * config/i386/predicates.md (vector_operand): New predicate.
1999 (general_vector_operand): Replace nonimmediate_operand with
2001 * config/i386/sse.md: Replace nonimmediate_operand with
2002 vector_operand and m constraint with Bm constraint on SSE
2003 patterns with 16-byte memory operand.
2004 * config/i386/subst.md (round_nimm_predicate): Replace
2005 nonimmediate_operand with vector_operand.
2006 (round_saeonly_nimm_predicate): Likewise.
2007 (round_saeonly_nimm_scalar_predicate): New.
2009 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
2012 * config/i386/constraints.md (Bm): New constraint.
2013 * config/i386/predicates.md (vector_memory_operand): New
2015 * config/i386/sse.md: Replace xm with xBm in plusminus and
2018 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
2021 * doc/extend.texi (V850 Function Attributes): New section.
2022 (V850 Variable Attributes): New section.
2024 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
2027 * doc/extend.texi (MicroBlaze Function Attributes): Document
2028 interrupt_handler and fast_interrupt attributes.
2030 2016-01-05 Sergei Trofimovich <siarheit@google.com>
2033 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
2034 for local symbolic operands.
2035 * config/ia64/predicates.md (local_symbolic_operand64): New
2038 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2040 PR rtl-optimization/68651
2041 * combine.c (combine_simplify_rtx): Canonicalize x + x into
2044 2016-01-05 Nathan Sidwell <nathan@acm.org>
2046 * alias.c (compare_base_decls): Use symtab_node::get.
2048 2016-01-05 Nick Clifton <nickc@redhat.com>
2051 * ira-costs.c (copy_cost): Initialise the t_icode field of the
2052 secondary_reload_info structure.
2055 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
2056 decls if weak support is available.
2058 2016-01-04 Martin Sebor <msebor@redhat.com>
2060 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
2062 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
2064 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
2065 OPTION_MASK_P9_DFORM.
2067 * config/rs6000/constraints.md (wo constraint): New constraint for
2070 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
2072 (rs6000_init_hard_regno_mode_ok): Likewise.
2074 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
2077 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
2078 expanders not to have constraints. Add support for ISA 3.0 xxperm
2079 instruction. Add support for fusing xxlor with xxperm.
2080 (altivec_vperm_<mode>_internal): Likewise.
2081 (altivec_vperm_v8hiv16qi): Likewise.
2082 (altivec_vperm_<mode>v16q): Likewise.
2083 (altivec_vperm_<mode>_uns): Likewise.
2084 (vperm_v8hiv4si): Likewise.
2085 (vperm_v16qiv8hi): Likewise.
2087 * doc/md.texi (RS/6000 constraints): Document wo constraint.
2089 2016-01-04 Jakub Jelinek <jakub@redhat.com>
2091 Update copyright years.
2093 * gcc.c (process_command): Update copyright notice dates.
2094 * gcov-dump.c (print_version): Ditto.
2095 * gcov.c (print_version): Ditto.
2096 * gcov-tool.c (print_version): Ditto.
2097 * gengtype.c (create_file): Ditto.
2098 * doc/cpp.texi: Bump @copying's copyright year.
2099 * doc/cppinternals.texi: Ditto.
2100 * doc/gcc.texi: Ditto.
2101 * doc/gccint.texi: Ditto.
2102 * doc/gcov.texi: Ditto.
2103 * doc/install.texi: Ditto.
2104 * doc/invoke.texi: Ditto.
2106 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2108 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
2109 modes larger than TImode as TImode if NEON is not enabled.
2111 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2114 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
2115 mode for %f0-%f31 only if TARGET_FPU.
2117 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
2120 * config/sparc/sparc.c (scan_record_type): Take into account subfields
2121 to compute the PACKED_P predicate.
2122 (function_arg_record_value): Minor tweaks.
2124 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
2126 * doc/install.texi (--with-multilib-list): Describe the meaning of the
2127 option for arm*-*-* targets.
2129 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
2131 * doc/extend.texi (Common Function Attributes): Move docs for
2132 MSP430-specific attributes to....
2133 (MSP430 Function Attributes): ...here. Delete the redundant
2134 entries and copy-edit the remaining text.
2135 (MSP430 Variable Attributes): Use uniform format for index
2136 entries and add a cross-reference to the corresponding function
2139 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
2141 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
2143 (x86 Options): Likewise.
2145 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
2149 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
2150 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
2151 to corresponding attribute.
2153 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
2155 * doc/extend.texi (Common Function Attributes) <noplt>: Move
2156 to correct alphabetization of table. Copy-edit and correct
2158 <stack_protect>: Likewise.
2159 <target_clones>: Likewise.
2161 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
2162 Correct punctuation.
2163 (Code Gen Options) <-fno-plt>: Copy-edit.
2165 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2168 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
2169 SI values. Explicitly convert SI to DI and vice-versa.
2171 2016-01-01 Jakub Jelinek <jakub@redhat.com>
2173 PR tree-optimization/69070
2174 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
2175 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
2178 * ubsan.c (ubsan_instrument_float_cast): Call
2179 initialize_sanitizer_builtins.
2182 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
2184 Copyright (C) 2016 Free Software Foundation, Inc.
2186 Copying and distribution of this file, with or without modification,
2187 are permitted in any medium without royalty provided the copyright
2188 notice and this notice are preserved.